/* 保时捷/新势力风格 选配页极简设计 */
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Segoe UI",Roboto,sans-serif;color:#111827;background:#fff;overflow:hidden;letter-spacing:0px}
*{box-sizing:border-box}

/* 顶部导航 */
.tesla-header{position:fixed;top:0;left:0;width:100%;height:60px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 40px;background:transparent;z-index:50;transition:background 0.3s}
.logo{
  flex:0 1 auto;
  min-width:0;
  max-width:calc(100vw - 220px);
  font-size:22px;
  font-weight:800;
  letter-spacing:2px;
  color:var(--info-text, #0f172a);
  padding:8px 14px;
  border-radius:14px;
  background:var(--info-bg, rgba(255,255,255,.76));
  border:1px solid var(--info-bd, rgba(226,232,240,.9));
  backdrop-filter:blur(8px);
  box-shadow:var(--info-shadow, 0 6px 16px rgba(15,23,42,.08));
  text-shadow:none;
}
.logo.logo-image{
  display:flex;
  align-items:center;
  max-width:min(72vw, 820px);
  padding:6px 12px;
}
.logo-img{
  display:block;
  max-height:52px;
  width:auto;
  max-width:100%;
  object-fit:contain;
}
.header-actions{display:flex;align-items:center;gap:8px}
.header-meta-wrap{position:relative}
.header-meta{font-size:12px;font-weight:700;color:#0f172a;background:rgba(255,255,255,0.82);border:1px solid #e2e8f0;border-radius:10px;padding:6px 10px;line-height:1}
.header-meta-btn{display:inline-flex;align-items:center;gap:6px;cursor:pointer;transition:.2s;background:rgba(255,255,255,0.82)}
.header-meta-btn:hover{border-color:#94a3b8;background:#fff}
.header-meta-btn:active{transform:translateY(1px) scale(.992)}
.header-meta-btn .meta-icon{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px}
.header-meta-btn .meta-icon svg{width:14px;height:14px;fill:#334155}
.header-meta-btn .meta-caret{font-size:10px;color:#64748b;transition:transform .2s ease}
.header-meta-wrap.is-open .header-meta-btn .meta-caret{transform:rotate(180deg)}
.header-meta-menu{
  position:absolute;
  top:calc(100% + 6px);
  right:0;
  min-width:132px;
  padding:6px;
  border-radius:10px;
  border:1px solid #dbe3ee;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(8px);
  box-shadow:0 10px 26px rgba(15,23,42,.14);
  opacity:0;
  visibility:hidden;
  transform:translateY(-6px) scale(.98);
  pointer-events:none;
  transition:opacity .22s ease, transform .22s ease, visibility .22s step-end;
  z-index:100;
}
.header-meta-wrap.is-open .header-meta-menu{
  opacity:1;
  visibility:visible;
  transform:translateY(0) scale(1);
  pointer-events:auto;
  transition:opacity .22s ease, transform .22s ease, visibility .22s step-start;
}
.header-meta-menu button{
  width:100%;
  border:none;
  background:transparent;
  text-align:left;
  font-size:12px;
  color:#0f172a;
  padding:7px 8px;
  border-radius:8px;
  cursor:pointer;
  transition:background .16s ease, transform .16s ease;
}
.header-meta-menu button:hover{background:#f1f5f9;transform:translateX(1px)}
.header-meta-menu button.is-active{background:#e2e8f0;font-weight:700}
.header-tag{font-size:12px;font-weight:600;color:#334155;background:rgba(255,255,255,0.78);border:1px solid #e2e8f0;border-radius:999px;padding:6px 12px}
.header-auto-hint{
  display:none;
  align-items:center;
  font-size:11px;
  font-weight:600;
  color:#475569;
  background:rgba(255,255,255,0.74);
  border:1px dashed #cbd5e1;
  border-radius:999px;
  padding:6px 10px;
  line-height:1;
  white-space:nowrap;
}
.header-auto-hint.is-visible{display:inline-flex}
html[dir="rtl"] .header-auto-hint{direction:rtl}

/* 主对半布局 */
.tesla-layout{display:flex;height:100vh;width:100vw;--config-pane-width:46%}

/* 左侧：全屏沉浸大图 (55%) */
.visual-pane{
  width:54%;
  height:100vh;
  position:relative;
  background:#f8f9fa;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  overflow:hidden;
  --info-bg: rgba(255,255,255,.58);
  --info-bd: rgba(226,232,240,.88);
  --info-shadow: 0 10px 24px rgba(15,23,42,.12);
  --info-text: #0f172a;
  --info-subtext: #475569;
  --info-chip-bg: rgba(255,255,255,.78);
  --info-chip-bd: rgba(226,232,240,.92);
}
.visual-pane::before{
  content:"";
  position:absolute;
  top:0;
  right:-1px;
  width:120px;
  height:100%;
  pointer-events:none;
  z-index:8;
  background:
    linear-gradient(90deg, rgba(15,23,42,0) 0%, rgba(15,23,42,.06) 58%, rgba(255,255,255,.32) 100%);
}
.visual-pane.tone-dark{
  --info-bg: rgba(15,23,42,.44);
  --info-bd: rgba(148,163,184,.38);
  --info-shadow: 0 12px 30px rgba(2,6,23,.35);
  --info-text: #f8fafc;
  --info-subtext: #cbd5e1;
  --info-chip-bg: rgba(15,23,42,.48);
  --info-chip-bd: rgba(148,163,184,.35);
}
.visual-pane.tone-light{
  --info-bg: rgba(255,255,255,.58);
  --info-bd: rgba(226,232,240,.88);
  --info-shadow: 0 10px 24px rgba(15,23,42,.12);
  --info-text: #0f172a;
  --info-subtext: #475569;
  --info-chip-bg: rgba(255,255,255,.78);
  --info-chip-bd: rgba(226,232,240,.92);
}
.visual-stage{width:100%;height:100%;position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:center}
.visual-stage{transition:transform .46s ease, filter .46s ease}
.visual-stage.is-initial-loading{
  background:
    linear-gradient(120deg, #eef2f7 25%, #f8fafc 38%, #eef2f7 52%);
  background-size:220% 100%;
  animation:stageSkeleton 1.15s ease-in-out infinite;
}
.visual-stage.is-initial-loading .main-vehicle{
  opacity:0;
}
.visual-stage.is-drawing-mode{cursor:grab}
.visual-stage.is-drawing-mode.is-dragging{cursor:grabbing}
.visual-stage::before{
  content:"";
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
  transition:opacity .35s ease;
}
.visual-stage.is-drawing-mode::before{
  opacity:1;
  background:
    radial-gradient(circle at 52% 45%, rgba(224,242,254,0.9) 0%, rgba(241,245,249,0.72) 48%, rgba(226,232,240,0.5) 100%),
    linear-gradient(rgba(148,163,184,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.12) 1px, transparent 1px);
  background-size:100% 100%, 26px 26px, 26px 26px;
  background-position:center;
}
.visual-stage::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(to top, rgba(15,23,42,.22) 0%, rgba(15,23,42,.08) 16%, rgba(15,23,42,0) 34%);
  opacity:.55;
}
.visual-pane.tone-dark .visual-stage::after{opacity:.72}
.anchor-layer{
  position:absolute;
  inset:0;
  z-index:4;
  pointer-events:none;
}
.anchor-layer.is-active{
  pointer-events:auto;
}
.anchor-dot{
  position:absolute;
  width:28px;
  height:28px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.95);
  background:linear-gradient(180deg, #2563eb 0%, #1e40af 100%);
  color:#fff;
  font-size:12px;
  font-weight:700;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transform:translate(-50%, -50%);
  box-shadow:0 12px 26px rgba(30,64,175,.34);
  transition:transform .2s ease, box-shadow .2s ease;
  animation:anchorPulse 2.1s ease-in-out infinite;
}
.anchor-dot::after{
  content:"";
  position:absolute;
  inset:-7px;
  border-radius:999px;
  border:2px solid rgba(59,130,246,.45);
  opacity:.9;
  transform:scale(.72);
  animation:anchorRing 2.1s ease-out infinite;
  pointer-events:none;
}
.anchor-dot:hover{
  animation:none;
  transform:translate(-50%, -50%) scale(1.06);
  box-shadow:0 14px 30px rgba(30,64,175,.4);
}
.anchor-dot.is-active{
  background:linear-gradient(180deg, #111827 0%, #020617 100%);
  box-shadow:0 14px 30px rgba(15,23,42,.5);
  animation:none;
}
.anchor-dot.is-active::after{
  display:none;
}
@keyframes anchorPulse{
  0%{transform:translate(-50%, -50%) scale(1)}
  12%{transform:translate(-50%, -50%) scale(1.06)}
  26%{transform:translate(-50%, -50%) scale(0.98)}
  44%{transform:translate(-50%, -50%) scale(1.04)}
  100%{transform:translate(-50%, -50%) scale(1)}
}
@keyframes anchorRing{
  0%{opacity:.56;transform:scale(.62)}
  66%{opacity:0;transform:scale(1.34)}
  100%{opacity:0;transform:scale(1.34)}
}
.anchor-popover{
  position:absolute;
  min-width:240px;
  max-width:min(420px, 82vw);
  background:rgba(2,6,23,.94);
  color:#f8fafc;
  border:1px solid rgba(148,163,184,.4);
  border-radius:12px;
  box-shadow:0 20px 38px rgba(2,6,23,.5);
  padding:12px 14px;
  pointer-events:auto;
  --shift-x: 0px;
  --shift-y: 0px;
}
.anchor-popover.is-top{
  transform:translate(calc(-50% + var(--shift-x)), calc(-100% - 16px + var(--shift-y)));
}
.anchor-popover.is-bottom{
  transform:translate(calc(-50% + var(--shift-x)), calc(16px + var(--shift-y)));
}
.anchor-popover.is-left{
  transform:translate(calc(-100% - 16px + var(--shift-x)), calc(-50% + var(--shift-y)));
}
.anchor-popover.is-right{
  transform:translate(calc(16px + var(--shift-x)), calc(-50% + var(--shift-y)));
}
.anchor-popover-title{
  font-size:16px;
  font-weight:700;
  margin-bottom:6px;
  line-height:1.35;
}
.anchor-popover-desc{
  font-size:14px;
  color:#e2e8f0;
  line-height:1.65;
  white-space:pre-wrap;
}
.main-vehicle{
  width:auto;
  height:auto;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  object-position:center;
  mix-blend-mode:multiply;
  transition:opacity .45s ease,transform .45s ease;
  transform:translate(var(--preview-pan-x, 0px), var(--preview-pan-y, 0px)) scale(var(--preview-zoom, 1));
  user-select:none;
  -webkit-user-drag:none
}
.main-vehicle.is-switching{opacity:.18;transform:translate(var(--preview-pan-x, 0px), var(--preview-pan-y, 0px)) scale(calc(var(--preview-zoom, 1) * 1.02))}
.main-vehicle.is-option-preview{
  width:auto;
  height:auto;
  max-width:96%;
  max-height:92%;
  object-fit:contain
}
.main-vehicle.is-drawing-preview{
  width:auto;
  height:auto;
  max-width:min(96%, 1040px);
  max-height:min(84%, 800px);
  object-fit:contain;
  object-position:center;
  mix-blend-mode:normal;
  filter:drop-shadow(0 18px 36px rgba(15,23,42,.16));
}
@keyframes stageSkeleton{
  0%{background-position:100% 0}
  100%{background-position:0 0}
}
.gallery-btn{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;border:1px solid rgba(17,24,39,0.2);background:rgba(255,255,255,0.75);color:#111827;font-size:28px;line-height:40px;display:flex;align-items:center;justify-content:center;cursor:pointer;backdrop-filter:blur(6px);transition:all .2s;z-index:5}
.gallery-btn:hover{border-color:#111827;background:#fff}
.gallery-btn:disabled{opacity:.4;cursor:not-allowed}
.gallery-prev{left:22px}
.gallery-next{right:22px}


/* 右侧：选配面板 (45%) */
.config-pane{width:var(--config-pane-width);min-width:560px;height:100vh;background:#fff;overflow-y:auto;position:relative;padding-top:72px;box-shadow:-4px 0 24px rgba(0,0,0,0.02);z-index:10;border-left:1px solid #f0f0f0}
.config-pane{
  background:linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  border-left:1px solid rgba(226,232,240,.88);
  box-shadow:-26px 0 52px rgba(15,23,42,.08);
}
.config-pane::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:-40px;
  width:40px;
  pointer-events:none;
  background:linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.7) 62%, rgba(255,255,255,.94) 100%);
}
.config-pane::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  width:1px;
  pointer-events:none;
  background:linear-gradient(180deg, rgba(148,163,184,0) 0%, rgba(148,163,184,.48) 22%, rgba(148,163,184,.4) 78%, rgba(148,163,184,0) 100%);
  opacity:.7;
}
.config-inner{width:100%;max-width:none;margin:0;padding:0 20px 40px}
.config-title{font-size:32px;font-weight:700;color:#111827;margin:0 0 28px;line-height:1.2}
.page-alert{margin:-8px 0 18px;padding:10px 12px;border-radius:10px;font-size:13px;font-weight:500;line-height:1.5}
.page-alert-hidden{display:none}
.page-alert-warning{background:#fff7ed;color:#9a3412;border:1px solid #fed7aa}
.page-alert-error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}
.editable-config-area{position:relative;border-radius:14px}

/* 区块通用样式 */
.config-section{margin-bottom:34px}
.section-title{font-size:20px;font-weight:600;color:#111827;margin-bottom:20px}

/* 产品型号列表：图片卡片排版 */
.product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px}
.product-grid.product-grid-compact{justify-content:flex-start}
.product-grid.product-grid-count-1{display:flex}
.product-grid.product-grid-count-1 .prod-card{width:min(320px,100%)}
.product-grid.product-grid-count-2{grid-template-columns:repeat(2,minmax(220px,320px))}
.product-grid.product-grid-count-3{grid-template-columns:repeat(auto-fit,minmax(200px,280px))}
.prod-card{border:1px solid #e5e7eb;border-radius:12px;cursor:pointer;transition:all 0.2s;overflow:hidden;background:#fff;display:flex;flex-direction:column;align-items:center}
.prod-card:hover{border-color:#111827;box-shadow:0 4px 12px rgba(0,0,0,0.05)}
.prod-card.active{border-color:#111827;box-shadow:0 0 0 1px #111827}
.prod-card img{width:100%;height:140px;object-fit:cover;background:#f3f4f6}
.prod-info{padding:16px;text-align:center;width:100%}
.prod-name{font-size:16px;font-weight:600;color:#111827}
.prod-desc{font-size:13px;color:#6b7280;margin-top:4px;display:flex;flex-direction:column;gap:4px}
.prod-price{font-size:16px;font-weight:600;color:#111827;margin-top:12px}
.prod-btn{margin-top:12px;width:100%;padding:8px;border:1px solid #111827;border-radius:8px;background:transparent;color:#111827;font-weight:500;font-size:13px;cursor:pointer;transition:all 0.2s}
.prod-card.active .prod-btn{background:#111827;color:#fff}

/* 参数选项列表 */
.options-container{display:flex;flex-direction:column;gap:30px}
.opt-group-title{font-size:18px;font-weight:600;margin-bottom:8px;color:#111827}
.opt-group-desc{margin:0 0 12px;color:#6b7280;font-size:13px;line-height:1.5}

/* 横向宽卡片选项（类似你截图的“吊臂配置”风格） */
.opt-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:12px;
}
.opt-row-card{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border:1px solid #e5e7eb;border-radius:12px;cursor:pointer;transition:all 0.2s;background:#fff}
.opt-row-card:hover{border-color:#111827}
.opt-row-card.active{border-color:#111827;box-shadow:0 0 0 1px #111827}
.opt-row-left{display:flex;flex-direction:column;gap:4px}
.opt-row-name{font-size:15px;font-weight:600;color:#111827}
.opt-row-desc{font-size:13px;color:#6b7280}
.opt-row-right{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.opt-row-price{font-size:15px;font-weight:600;color:#111827}
.opt-check{width:20px;height:20px;border-radius:50%;border:1px solid #d1d5db;display:flex;align-items:center;justify-content:center;color:transparent;transition:all 0.2s}
.opt-row-card.active .opt-check{background:#111827;border-color:#111827;color:#fff}
.opt-check svg{width:12px;height:12px}

/* 方块图标卡片（类似你截图的“控制系统”风格） */
.opt-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.opt-box-card{display:flex;flex-direction:column;padding:16px;border:1px solid #e5e7eb;border-radius:12px;cursor:pointer;transition:all 0.2s;background:#fff;position:relative}
.opt-box-card:hover{border-color:#111827}
.opt-box-card.active{border-color:#111827;box-shadow:0 0 0 1px #111827}
.opt-box-icon{width:40px;height:40px;background:#f3f4f6;border-radius:8px;margin-bottom:16px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.opt-box-icon img{width:100%;height:100%;object-fit:cover}
.opt-box-name{font-size:14px;font-weight:600;color:#111827;margin-bottom:4px}
.opt-box-desc{font-size:12px;color:#6b7280;margin-bottom:12px;line-height:1.4}
.opt-box-price{font-size:14px;font-weight:600;color:#111827;margin-top:auto}
.opt-box-card .opt-check{position:absolute;top:16px;right:16px}
.opt-box-card.active .opt-check{background:#111827;border-color:#111827;color:#fff}

/* 配置摘要卡片 */
.summary-section{margin-top:42px;margin-bottom:30px}
.summary-card{background:#f9fafb;border-radius:16px;padding:24px}
.summary-list{display:flex;flex-direction:column;gap:12px;margin-bottom:20px;padding-bottom:20px;border-bottom:1px solid #e5e7eb}
.summary-item{display:flex;justify-content:space-between;font-size:14px}
.summary-item-name{color:#4b5563;font-weight:500}
.summary-item-price{color:#111827;font-weight:600}
.summary-footer{display:flex;align-items:flex-start;gap:16px}
.summary-total-label{font-size:14px;font-weight:600;color:#111827}
.summary-total-val{font-size:14px;font-weight:600;color:#111827;line-height:1.5}
.summary-inline-checkout{
  margin-top:16px;
  padding-top:16px;
  border-top:1px dashed #d1d5db;
  display:none;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
}
.summary-inline-checkout-info{display:flex;flex-direction:column;gap:4px}
.summary-inline-label{font-size:12px;color:#64748b;font-weight:600;letter-spacing:.03em}
.summary-inline-price{font-size:24px;font-weight:800;color:#0f172a;line-height:1.2}
.summary-inline-state{font-size:12px;color:#475569;font-weight:500}
.summary-inline-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.summary-inline-btn{width:auto;min-width:180px;padding:0 20px}
.summary-inline-btn-ghost{height:44px}

/* 结算区吸底 */
.checkout-box{position:fixed;bottom:0;right:0;width:var(--config-pane-width);min-width:560px;background:rgba(255,255,255,0.95);backdrop-filter:blur(10px);padding:16px 20px 22px;border-top:1px solid #f0f0f0;z-index:20;transition:transform .45s cubic-bezier(.22,.8,.24,1),opacity .28s ease}
.checkout-content{display:flex;justify-content:space-between;align-items:center;max-width:none;margin:0}
/* translate.js 进度提示偶发滞留时，避免覆盖关键结算信息与操作按钮 */
/* 全局禁用 translate.js 的 in-progress 覆盖层伪元素，避免任何字段被长期遮挡 */
.translate_api_in_progress::before,
.translate_api_in_progress::after{
  display:none !important;
  content:none !important;
  animation:none !important;
}
.checkout-info{display:flex;flex-direction:column}
.checkout-actions{display:flex;align-items:center;gap:10px}
.checkout-label{font-size:13px;color:#6b7280;font-weight:500}
.checkout-price{font-size:28px;font-weight:700;color:#111827}
.tesla-btn-primary{width:200px;height:48px;background:#111827;color:#fff;border:none;border-radius:24px;font-size:15px;font-weight:600;cursor:pointer;transition:all 0.2s}
.tesla-btn-primary:hover{background:#374151}
.tesla-btn-primary:disabled{background:#d1d5db;cursor:not-allowed}
.tesla-btn-ghost{height:48px;padding:0 18px;background:#fff;color:#111827;border:1px solid #d1d5db;border-radius:24px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s}
.tesla-btn-ghost:hover{border-color:#111827}
.tesla-btn-ghost:disabled{color:#9ca3af;border-color:#e5e7eb;cursor:not-allowed}
body.order-flow-active .checkout-box{
  opacity:0;
  transform:translateY(110%);
  pointer-events:none;
  transition:transform .45s cubic-bezier(.22,.8,.24,1),opacity .28s ease;
}
body.order-flow-active .editable-config-area{
  display:none;
}
body.order-flow-active .summary-section{
  margin-top:10px;
}
body.order-flow-active .summary-inline-checkout{
  display:flex;
  animation:flowBarIn .35s ease;
}
@keyframes flowBarIn{
  0%{opacity:0;transform:translateY(10px)}
  100%{opacity:1;transform:translateY(0)}
}

.order-flow-section{
  display:none;
  margin-top:18px;
  margin-bottom:30px;
}
.order-flow-section.is-visible{
  display:block;
  animation:flowSectionIn .4s ease;
}
.order-flow-card{
  position:relative;
  background:#ffffff;
  border:1px solid #e2e8f0;
  border-radius:16px;
  box-shadow:0 18px 48px rgba(15,23,42,.08);
  overflow:hidden;
}
.order-flow-loading{
  display:none;
  position:absolute;
  inset:0;
  min-height:420px;
  background:#fff;
  align-items:center;
  justify-content:center;
  z-index:3;
}
.order-flow-loading-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  color:#334155;
}
.order-flow-loading-text{
  font-size:14px;
  font-weight:600;
  letter-spacing:.01em;
}
.order-flow-check-wrap{
  position:relative;
  width:92px;
  height:92px;
  display:grid;
  place-items:center;
}
.order-flow-check-ring{
  position:absolute;
  inset:0;
  border-radius:50%;
  border:3px solid rgba(34,197,94,.22);
  border-top-color:#22c55e;
  animation:orderFlowSpin .9s linear infinite;
}
.order-flow-check-core{
  width:62px;
  height:62px;
  border-radius:50%;
  background:linear-gradient(180deg,#dcfce7 0%,#bbf7d0 100%);
  box-shadow:0 10px 22px rgba(34,197,94,.26);
  display:grid;
  place-items:center;
}
.order-flow-check-core svg{
  width:30px;
  height:30px;
  fill:none;
  stroke:#16a34a;
  stroke-width:2.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.order-flow-card.is-loading .order-flow-loading{
  display:flex;
}
.order-flow-card.is-loading #orderFlowFrame{
  visibility:hidden;
  opacity:0;
  pointer-events:none;
}
#orderFlowFrame{
  display:block;
  width:100%;
  min-height:420px;
  border:0;
  background:#fff;
  overflow:hidden;
  transition:height .28s ease;
}
@keyframes orderFlowSpin{
  0%{transform:rotate(0deg)}
  100%{transform:rotate(360deg)}
}
@keyframes flowSectionIn{
  0%{opacity:0;transform:translateY(16px)}
  100%{opacity:1;transform:translateY(0)}
}

/* 提交前“吸入按钮”过渡 */
.submit-genie-ghost{
  position:fixed;
  z-index:120;
  border-radius:22px;
  object-fit:cover;
  pointer-events:none;
  box-shadow:0 28px 74px rgba(15,23,42,.28);
  transition:
    left 1.22s cubic-bezier(.18,.76,.2,1),
    top 1.22s cubic-bezier(.18,.76,.2,1),
    width 1.22s cubic-bezier(.18,.76,.2,1),
    height 1.22s cubic-bezier(.18,.76,.2,1),
    opacity .66s ease,
    transform 1.22s cubic-bezier(.18,.76,.2,1),
    filter 1.22s ease;
  will-change:left, top, width, height, opacity, transform, filter;
}
body.submit-genie-active .visual-stage{
  transform:scale(.988);
  filter:saturate(.92) brightness(.95);
}
body.submit-genie-active #btnSubmit{
  animation:submitButtonGlow 1.35s ease-out;
}
@keyframes submitButtonGlow{
  0%{box-shadow:0 0 0 0 rgba(30,64,175,.38)}
  70%{box-shadow:0 0 0 16px rgba(30,64,175,0)}
  100%{box-shadow:0 0 0 0 rgba(30,64,175,0)}
}
.submit-genie-sparkles{
  position:fixed;
  z-index:130;
  pointer-events:none;
  width:0;
  height:0;
}
.submit-genie-sparkles .sparkle{
  position:absolute;
  left:-7px;
  top:-7px;
  width:14px;
  height:14px;
  opacity:0;
  transform:translate(0,0) scale(.3) rotate(0deg);
  animation:sparklePop var(--dur,1s) ease-out var(--delay,0s) forwards;
}
.submit-genie-sparkles .sparkle svg{
  display:block;
  width:100%;
  height:100%;
  fill:#fbbf24;
  filter:drop-shadow(0 0 8px rgba(251,191,36,.6));
}
.submit-genie-sparkles .sparkle:nth-child(3n) svg{fill:#60a5fa;filter:drop-shadow(0 0 8px rgba(96,165,250,.62))}
.submit-genie-sparkles .sparkle:nth-child(3n+1) svg{fill:#f472b6;filter:drop-shadow(0 0 8px rgba(244,114,182,.58))}
@keyframes sparklePop{
  0%{opacity:0;transform:translate(0,0) scale(.24) rotate(0deg)}
  20%{opacity:1}
  100%{opacity:0;transform:translate(var(--tx), var(--ty)) scale(var(--scale,1)) rotate(140deg)}
}

/* 响应式调整 */
@media (max-width: 1280px) {
  .config-pane{min-width:520px}
  .checkout-box{min-width:520px}
}

@media (max-width: 1024px) {
  .tesla-layout{flex-direction:column}
  .visual-pane{width:100%;height:45vh}
  .config-pane{width:100%;height:55vh;padding-top:40px}
  .visual-pane::before,
  .config-pane::before,
  .config-pane::after{display:none}
  .checkout-box{width:100%;min-width:auto}
  body.order-flow-active .summary-inline-checkout{
    flex-direction:column;
    align-items:flex-start;
  }
  #orderFlowFrame{
    min-height:420px;
  }
  .logo{
    max-width:calc(100vw - 140px);
  }
  .logo.logo-image{
    max-width:min(72vw, 480px);
  }
  .logo-img{
    max-height:38px;
    max-width:100%;
  }
  .header-actions{gap:6px}
  .header-auto-hint{display:none}
  .header-tag{display:none}
}

@media (max-width: 640px) {
  .product-grid.product-grid-count-2,
  .product-grid.product-grid-count-3{
    grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  }
  .product-grid.product-grid-count-1 .prod-card{
    width:100%;
  }
}
