/* 天鹰 · 主伞智能选型  样式表 */
:root{
  --ink:#0B2545;
  --ink-2:#163A6B;
  --blue:#2F6FED;
  --blue-soft:#EAF1FF;
  --orange:#FF7A29;
  --orange-soft:#FFF3EA;
  --bg:#F3F6FB;
  --surface:#FFFFFF;
  --line:#E2E9F3;
  --muted:#71809A;
  --soft:#F1F5FB;
  --ok:#12A594;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
body{
  background:var(--bg);
  color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:14px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
button,input{font-family:inherit;touch-action:manipulation}
button{cursor:pointer}
.num{font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}

/* ============ 外框 ============ */
.app{
  max-width:960px;margin:0 auto;min-height:100vh;background:var(--surface);
  box-shadow:0 0 40px rgba(11,37,69,.07);
  display:flex;flex-direction:column;
}

/* ============ 品牌头（天鹰布置） ============ */
.brand{
  position:relative;overflow:hidden;color:#fff;
  padding:calc(18px + env(safe-area-inset-top)) 20px 18px;
  background:linear-gradient(118deg,#081C37 0%,#0B2A50 48%,#15477A 100%);
}
.brand::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);
  background-size:26px 26px;
}
.brand::after{
  content:"";position:absolute;right:-70px;bottom:-120px;width:260px;height:260px;
  border-radius:50%;border:1px solid rgba(255,255,255,.09);
  box-shadow:0 0 0 34px rgba(255,255,255,.025),0 0 0 70px rgba(255,255,255,.02);
  pointer-events:none; /* 装饰圆环不得拦截按钮点击 */
}
.brand-inner{position:relative;z-index:2;display:flex;align-items:center}
/* Logo 拆分：鹰形可独立缩小，文字（SKYEAGLE/天鹰装备）保持原基线大小 */
.brand-mark{display:block;flex:none;width:auto;height:52px;object-fit:contain;object-position:left center}
.brand-wordmark{display:block;flex:none;width:auto;height:74px;object-fit:contain;object-position:left center}
.brand-sub{
  position:relative;z-index:2;margin-top:14px;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;
}
.brand-sub h1{font-size:16px;margin:0;font-weight:700;letter-spacing:.5px}
.brand-sub p{margin:0;font-size:10.5px;color:#A9C8E9}
.chute-bg{position:absolute;right:6px;top:6px;width:150px;height:150px;opacity:.12;z-index:1;pointer-events:none}

/* ============ 步骤条 ============ */
.steps{display:flex;align-items:center;gap:8px;padding:13px 20px;border-bottom:1px solid var(--line);background:#fff}
.step{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted);white-space:nowrap}
.step i{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:10px;font-weight:700;background:var(--soft);color:var(--muted);border:1px solid var(--line)}
.step.done i{background:var(--ok);color:#fff;border-color:var(--ok)}
.step.active{color:var(--ink);font-weight:700}
.step.active i{background:var(--blue);color:#fff;border-color:var(--blue);box-shadow:0 0 0 4px var(--blue-soft)}
.step.current{color:var(--ink);font-weight:700}
.step.nav{cursor:pointer;user-select:none;transition:color .15s}
.step.nav:hover{color:var(--blue)}
.step.nav:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:6px}
.step-line{flex:1;height:1px;background:var(--line);min-width:8px}

/* ============ 视图 ============ */
main{flex:1}
.view{display:none}
.view.active{display:block;animation:fade .32s ease}
@keyframes fade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.pad{padding:20px}
.hero-title{font-size:19px;font-weight:700;letter-spacing:.3px}
.hero-sub{font-size:12px;color:var(--muted);margin-top:6px;line-height:1.7}
.sec-label{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;color:var(--ink-2);margin:22px 0 10px}
.sec-label::before{content:"";width:3px;height:13px;border-radius:2px;background:var(--orange)}

/* ============ 输入表单 ============ */
.form-card{border:1px solid var(--line);border-radius:16px;padding:2px 16px;box-shadow:0 8px 24px rgba(16,42,80,.05);background:#fff}
.field{padding:15px 0;border-bottom:1px solid var(--line)}
.field:last-child{border-bottom:0}
.field-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.field-top label{font-size:13px;font-weight:700;display:flex;align-items:center;gap:7px}
.field-top label svg{flex:none}
.field-top .req{display:none;color:var(--orange);font-size:11px;font-weight:600}
.input-wrap{display:flex;align-items:center;gap:8px;margin-top:11px;background:var(--soft);border:1px solid transparent;border-radius:11px;padding:0 13px;transition:.2s}
.input-wrap:focus-within{border-color:var(--blue);background:#fff;box-shadow:0 0 0 3px rgba(47,111,237,.11)}
.input-wrap input{flex:1;width:100%;border:0;background:transparent;outline:0;padding:11px 0;font-size:21px;font-weight:700;color:var(--ink)}
.input-wrap input::placeholder{color:#B6C2D4;font-weight:500;font-size:16px}
.input-wrap .suffix{font-size:12px;color:var(--muted);white-space:nowrap;font-weight:600}
.hint{font-size:11px;color:var(--muted);margin-top:8px;line-height:1.6}
.err{color:#D8453B;font-size:11px;margin-top:8px;display:none}
.err.show{display:block}
.env-note{display:flex;gap:10px;align-items:flex-start;margin-top:12px;padding:12px 13px;border-radius:12px;background:var(--blue-soft);border:1px solid #D7E5FF}
.env-note svg{flex:none;margin-top:0}
.env-note b{display:block;font-size:11px;line-height:15px;color:var(--ink-2)}
.env-note p{margin:3px 0 0;font-size:11px;color:#5B7397;line-height:1.6}
.btn-primary{
  width:100%;margin-top:18px;height:50px;border:0;border-radius:12px;color:#fff;font-size:15px;font-weight:700;
  background:linear-gradient(100deg,#0B2545,#1D52A0);box-shadow:0 8px 18px rgba(11,37,69,.22);
  display:flex;align-items:center;justify-content:center;gap:9px;transition:.2s;letter-spacing:1px;
}
.btn-primary:active{transform:translateY(1px);box-shadow:0 4px 10px rgba(11,37,69,.2)}
.flow-note{text-align:center;font-size:11px;color:var(--muted);margin-top:14px;line-height:1.7}

/* ============ 结果页：参数回显 ============ */
.back-link{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--muted);background:none;border:0;padding:0;margin-bottom:14px}
.back-link:hover{color:var(--blue)}
/* 智能匹配页：返回「输入参数」按钮做成描边幽灵按钮（白底蓝字蓝框，仅本页；结果页返回按钮不受影响） */
/* 智能匹配页：返回「输入参数」按钮放在底部固定操作条内，与「使用收口绳降载」并排，柔和浅绿底白字 */
.switch-actions{display:flex;gap:9px;align-items:stretch;flex:none}
#matchBar #btnBack{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:12px;font-weight:700;color:#fff;background:#16A34A;border:1px solid #16A34A;border-radius:10px;padding:11px 15px;margin:0;min-height:0;flex:0 0 auto;white-space:nowrap}
#matchBar #btnBack:hover{background:#138A3F;border-color:#138A3F;color:#fff}
.param-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.chip{background:var(--soft);border:1px solid var(--line);border-radius:11px;padding:10px 6px;text-align:center}
.chip span{display:block;font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chip b{display:block;font-size:15px;margin-top:3px;color:var(--ink)}
.chip b small{font-size:9px;color:var(--muted);font-weight:500;margin-left:2px}
.series-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:20px 0 12px}
.series-head>div:first-child{min-width:0}
.series-head h2{margin:0;font-size:17px;font-weight:700}
.series-head p{margin:5px 0 0;font-size:11px;color:var(--muted);line-height:1.6}
.tag-series{flex:none;font-size:10px;font-weight:700;color:var(--blue);background:var(--blue-soft);border:1px solid #D7E5FF;border-radius:20px;padding:5px 10px;white-space:nowrap}
.tag-series.reef{color:#C85A10;background:var(--orange-soft);border-color:#FFDCBF}

/* ============ 三款伞并列卡片 ============ */
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:stretch}
.pcard{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;display:flex;flex-direction:column;position:relative;transition:.2s}
.pcard.best{border-color:var(--blue);box-shadow:0 8px 22px rgba(47,111,237,.15)}
.pcard.picked{border-color:var(--orange);box-shadow:0 8px 22px rgba(255,122,41,.2)}
.ribbon{position:absolute;top:0;right:0;z-index:2;font-size:8px;font-weight:700;color:#fff;background:var(--blue);padding:3px 6px;border-radius:0 0 0 8px;letter-spacing:.5px}
.pcard.reef .ribbon{background:#B85C18;color:#fff}
.pcard-head{background:linear-gradient(150deg,#0E2A50,#1D5291);color:#fff;padding:13px 6px 12px;text-align:center}
.pcard.reef .pcard-head{background:linear-gradient(150deg,#CE6A20,#F6B06E)}
.pcard.reef .pcard-head .idx{color:rgba(255,255,255,.85)}
.pcard.reef .pcard-head .cap{color:rgba(255,255,255,.92)}
.pcard-head .idx{font-size:9px;letter-spacing:1px;color:#A9C8E9}
.pcard-head .area{font-size:22px;font-weight:800;line-height:1.25;margin-top:3px;letter-spacing:-.5px}
.pcard-head .area small{font-size:11px;font-weight:500;margin-left:2px}
.pcard-head .cap{font-size:9px;color:#BBD6F5;margin-top:2px}
.metrics{padding:2px 8px;flex:1}
.metric{padding:9px 0;border-bottom:1px dashed var(--line);text-align:center}
.metric:last-child{border-bottom:0}
.metric .k{font-size:10px;color:var(--muted);white-space:nowrap;letter-spacing:-.2px}
/* 英文版指标标签较长，手机端允许按词折行，避免末尾单词被卡片裁掉（中文短标签仍是单行） */
html[lang="en"] .metric .k{white-space:normal;overflow-wrap:break-word;line-height:1.3}
.metric .v{font-size:16px;font-weight:800;margin-top:3px;line-height:1.25;color:#000}
.metric .v small{font-size:9px;font-weight:500;color:var(--muted);margin-left:2px}
.metric.hl .v{color:#000}
.metric.life .v{color:#000}
.pick{
  margin:8px;padding:9px 0;border:1px solid var(--line);border-radius:9px;background:#fff;
  font-size:11px;font-weight:700;color:var(--ink-2);transition:.2s;
}
.pick:hover{border-color:var(--blue);color:var(--blue)}
.pcard.best .pick{background:var(--ink);color:#fff;border-color:var(--ink)}
.pcard.picked .pick{background:var(--orange);color:#fff;border-color:var(--orange)}
.pick:disabled{cursor:default}
/* 收口绳系列：橙色主题贯穿方案卡片（头部已橙，指标文字/按钮/描边同步橙色，描边加粗） */
.pcard.reef.best{border-color:var(--orange);border-width:1px;box-shadow:0 8px 22px rgba(255,122,41,.2)}
.pcard.reef .metric.hl .v{color:#000}
.pcard.reef.best .pick{background:var(--orange);border-color:var(--orange);color:#fff}
/* 滑块布系列：头部/指标/按钮保持深蓝；描边与优先推荐角标恢复原亮蓝 #2F6FED（白字），普通卡描边恢复原浅灰；粗细与收口绳一致：推荐 2px、普通 1px */
.pcard:not(.reef){border-color:var(--line)}
.pcard:not(.reef) .ribbon{background:var(--blue);color:#fff}
.pcard:not(.reef).best,
.pcard:not(.reef).picked{border-color:var(--blue);border-width:1px;box-shadow:0 8px 22px rgba(47,111,237,.15)}
.pcard:not(.reef) .metric.hl .v{color:#000}
.pcard:not(.reef) .pick{color:#0E2A50;border-color:#BFD2EA}
.pcard:not(.reef) .pick:hover{border-color:#0E2A50;color:#0E2A50}
.pcard:not(.reef).best .pick{background:#0E2A50;border-color:#0E2A50;color:#fff}
.pcard:not(.reef).picked:not(.best) .pick{background:#EAF1FF;border-color:#0E2A50;color:#0E2A50}
/* 选中非推荐方案：滑块布描边粗细与收口绳对齐为 1px（推荐卡仍 2px） */
.pcard:not(.reef).picked:not(.best){border-width:1px}
/* 选中非推荐方案：收口绳按钮改淡橙底橙字，与滑块布淡蓝底深蓝字一致（推荐卡仍橙底白字） */
.pcard.reef.picked:not(.best) .pick{background:var(--orange-soft);border-color:#B85C18;color:#B85C18}
/* 推荐卡彩色描边：border-width 保持 1px 不改布局（三张卡深蓝头部仍完全齐平），
   额外用 0 模糊外阴影向外扩 1px 画彩色实边，视觉描边 2px */
.pcard.reef.best{box-shadow:0 0 0 1px var(--orange),0 8px 22px rgba(255,122,41,.2)}
.pcard:not(.reef).best{box-shadow:0 0 0 1px var(--blue),0 8px 22px rgba(47,111,237,.15)}

/* ============ 切换系列 / 说明 ============ */
.switch-card{margin-top:16px;border-radius:14px;padding:15px;background:var(--orange-soft);border:1px solid #FFDCBF;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.switch-card .ic{width:36px;height:36px;flex:none;border-radius:10px;background:#fff;display:grid;place-items:center;border:1px solid #FFDCBF}
.switch-txt{flex:1;min-width:170px}
.switch-txt b{font-size:13px;color:#8A4210;display:block}
.switch-txt p{margin:4px 0 0;font-size:11px;color:#A2683C;line-height:1.6}
.btn-switch{flex:none;border:0;border-radius:10px;background:var(--orange);color:#fff;font-size:12px;font-weight:700;padding:11px 15px;box-shadow:0 5px 12px rgba(255,122,41,.25);white-space:nowrap}
.btn-switch:active{transform:translateY(1px)}
/* 「返回滑块布系列」与「使用收口绳降载」同款橙色实心按钮：不再为 back 状态单独改样式 */
details.spec{margin-top:14px;border:1px solid var(--line);border-radius:13px;background:#fff;overflow:hidden}
details.spec summary{list-style:none;padding:13px 15px;font-size:12px;font-weight:700;color:var(--ink-2);display:flex;align-items:center;justify-content:space-between;cursor:pointer}
details.spec summary::-webkit-details-marker{display:none}
details.spec summary::after{content:"＋";color:var(--muted);font-size:15px}
details.spec[open] summary::after{content:"－"}
.spec-body{padding:0 15px 15px;border-top:1px solid var(--line)}
.spec-body p{font-size:11px;color:var(--muted);line-height:1.8;margin:11px 0 0}
.formula{background:var(--soft);border-radius:9px;padding:9px 11px;margin-top:8px;font-size:11px;color:var(--ink-2);line-height:1.9;overflow-x:auto;white-space:nowrap}
.formula b{color:var(--blue)}
.warn{display:flex;gap:8px;align-items:flex-start;margin-top:12px;padding:11px 12px;background:#F7F9FC;border-radius:10px;font-size:11px;color:var(--muted);line-height:1.7}

/* ============ 底部确认条 / 页脚 ============ */
.confirm-bar{
  position:fixed;left:50%;bottom:0;transform:translateX(-50%);z-index:20;
  width:100%;max-width:960px;display:none;gap:10px;align-items:center;
  padding:11px 16px calc(11px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-top:1px solid var(--line);
  box-shadow:0 -6px 20px rgba(11,37,69,.06);
}
.confirm-bar.show{display:flex;animation:barIn .25s ease}
@keyframes barIn{from{opacity:0}to{opacity:1}}
.confirm-bar .ci{flex:1;min-width:0}
.confirm-bar .ci span{font-size:10px;color:var(--muted);display:block}
.confirm-bar .ci b{font-size:14px;color:var(--ink)}
.match-bar .ci b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.confirm-actions{display:flex;gap:8px;flex:none}
.btn-confirm{flex:none;display:inline-flex;align-items:center;justify-content:center;min-width:112px;white-space:nowrap;border:0;border-radius:10px;background:var(--orange);color:#fff;font-weight:700;font-size:12px;padding:11px 14px}
.btn-back-match{background:#16A34A}
/* 智能匹配页底部固定操作条：与结果页确认条同款白底毛玻璃；按钮沿用各自主题色 */
.match-bar .switch-actions{gap:8px}
/* 与「返回输入参数」按钮左右留白严格一致：15px 内边距 + 1px 同色边框 = 16px */
.match-bar .btn-switch{min-width:112px;padding-top:10px;padding-bottom:10px;border:1px solid var(--orange)}
footer{padding:16px 20px calc(20px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#FAFCFF}
footer p{margin:0;font-size:10px;color:#93A1B6;line-height:1.8;text-align:center}
.footer-beian{color:#93A1B6;text-decoration:none}
.footer-beian:hover{color:var(--blue,#1F5FA9);text-decoration:underline}
.toast{
  position:fixed;left:50%;bottom:80px;transform:translate(-50%,12px);z-index:100;
  background:rgba(11,37,69,.94);color:#fff;font-size:12px;padding:10px 16px;border-radius:10px;
  opacity:0;pointer-events:none;transition:.25s;box-shadow:0 8px 24px rgba(0,0,0,.2);max-width:86vw;text-align:center;
}
.toast.show{opacity:1;transform:translate(-50%,0)}
.empty{padding:28px 16px;text-align:center;color:var(--muted);font-size:12px;background:var(--soft);border-radius:14px;line-height:1.8}

/* ============ 桌面适配 ============ */
@media (min-width:700px){
  .pad{padding:28px 34px}
  .brand{padding:26px 34px 24px}
  .brand-sub{padding-left:10px}
  .brand-sub h1{font-size:20px}
  .steps{padding:15px 34px}
  .step{font-size:12px}
  .cards{gap:16px}
  .pcard-head{padding:18px 8px 16px}
  .pcard-head .area{font-size:29px}
  .metric{padding:12px 0}
  .metric .k{font-size:11px}
  .metric .v{font-size:20px}
  .pick{margin:12px;padding:11px 0;font-size:12px}
  .input-wrap input{font-size:23px}
  .field{padding:18px 0}
  .hero-title{font-size:22px}
  .switch-card{padding:18px 20px}
  footer p{font-size:11px}
}

/* ============ v1.0 工程版新增 ============ */
.status-bar{display:none;align-items:center;gap:7px;padding:8px 20px;background:#F7FAFF;border-bottom:1px solid var(--line);font-size:10px;color:#5B7397}
.status-bar .dot{width:7px;height:7px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 3px rgba(18,165,148,.13);flex:none}
.status-bar.offline{background:#FFF8F2}
.status-bar.offline .dot{background:var(--orange);box-shadow:0 0 0 3px rgba(255,122,41,.13)}
.status-mode{margin-left:auto;font-weight:700;color:var(--ink-2);white-space:nowrap}
.match-meta{display:flex;flex-wrap:wrap;gap:6px 12px;margin:-2px 0 11px;font-size:10px;color:var(--muted)}
.match-meta:empty{display:none}
.match-meta b{color:var(--ink-2)}
.warn-tag{color:#C85A10;background:var(--orange-soft);border-radius:5px;padding:1px 6px}
.card-warn{font-size:9px;line-height:1.4;text-align:center;color:#B25A16;background:#FFF3EA;padding:5px 4px;margin:0 8px 2px;border-radius:6px}
.detail-btn{margin:0 8px 9px;padding:5px 0;background:none;border:0;border-bottom:1px dashed var(--line);color:var(--muted);font-size:10px}
.detail-btn:hover{color:var(--blue)}
.detail-panel{margin-top:14px;border:1px solid var(--blue);border-radius:13px;background:#fff;overflow:hidden;box-shadow:0 8px 22px rgba(47,111,237,.1)}
.detail-panel[hidden]{display:none}
.detail-head{display:flex;align-items:center;justify-content:space-between;padding:11px 14px;background:var(--blue-soft);font-size:12px;color:var(--ink-2)}
.detail-head button{border:0;background:none;font-size:20px;line-height:1;color:var(--muted);padding:0 3px}
.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px;padding:6px 14px 12px}
.detail-row{display:flex;justify-content:space-between;gap:8px;padding:7px 0;border-bottom:1px dashed var(--line);font-size:10px}
.detail-row span{color:var(--muted);min-width:0}
.detail-row b{color:var(--ink-2);font-weight:700;text-align:right;white-space:nowrap}
.loading{position:fixed;inset:0;z-index:80;background:rgba(11,37,69,.28);display:grid;place-items:center}
.loading[hidden]{display:none}
.loading-box{background:#fff;border-radius:14px;padding:20px 26px;display:flex;align-items:center;gap:12px;font-size:13px;font-weight:600;color:var(--ink);box-shadow:0 12px 40px rgba(11,37,69,.22)}
.spinner{width:20px;height:20px;border:2px solid #D7E5FF;border-top-color:var(--blue);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media (min-width:700px){
  .status-bar{padding:9px 34px;font-size:11px}
  .match-meta{font-size:11px}
  .detail-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:0 22px}
  .detail-row{font-size:11px}
  .card-warn{font-size:10px}
  .detail-btn{font-size:11px}
}

/* ============================================================
   移动端真机适配 v1.1
   目标：手机端与电脑端观感一致 —— 字号/间距适度放大、触摸目标≥44px、
   防 iOS 聚焦缩放与字体放大、刘海屏安全区、杜绝横向溢出；
   三款主伞始终保持同一行并列展示（需求文档硬性要求）。
   ============================================================ */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overflow-x:hidden}
.app{width:100%;overflow-x:hidden}

@media (max-width:699px){
  .pad{padding:18px 16px}
  .brand{padding:calc(16px + env(safe-area-inset-top)) 18px 16px}
  /* 手机端：文字保持基线大小，鹰形缩小；整体宽度给右侧按钮留足空间 */
  .brand-mark{height:44px;width:auto;max-width:100%;transform:translateY(1.7px)}
  .brand-wordmark{height:58px;width:auto;max-width:calc(100vw - 142px)}
  .chute-bg{width:120px;height:120px;opacity:.1;right:2px;top:2px}
  .brand-sub h1{font-size:18px}
  .brand-sub p{font-size:10px}
  .hero-title{font-size:20px}
  .hero-sub{font-size:12.5px}
  .steps{padding:12px 16px;gap:6px}
  .step{font-size:11.5px;min-height:40px}
  .status-bar{padding:9px 16px}
  .param-strip{gap:6px}
  .chip{padding:11px 4px}
  .chip b{font-size:16px}
  .series-head h2{font-size:18px}
  .cards{gap:6px}
  /* 三张卡片深蓝头部等高：普通卡向带角标的推荐卡看齐，推荐卡不再向下鼓出 */
  .pcard-head{padding:22px 4px 13px}
  .pcard-head .area{font-size:24px}
  .metric{padding:10px 0}
  .metric .k{font-size:10.5px}
  .metric .v{font-size:17px}
  .pick{min-height:42px;font-size:12px}
  .detail-btn{min-height:38px;font-size:11px}
  .btn-primary{height:52px;font-size:16px}
  .btn-switch{width:100%;min-height:44px;padding:12px 16px;font-size:13px;text-align:center}
  .switch-actions{width:100%;display:flex;gap:9px}
  .switch-actions #btnBack,.switch-actions .btn-switch{flex:1 1 0;width:auto;min-width:0;min-height:44px;padding-left:6px;padding-right:6px}
  .btn-confirm{min-height:44px;font-size:13px;padding:12px 12px}
  .confirm-actions .btn-confirm{min-width:112px}
  /* 固定底栏内两按钮平分整行，左侧文案压缩避让 */
  .match-bar{gap:8px}
  .match-bar .ci{flex:0 1 auto;min-width:0}
  .match-bar .ci b{font-size:11px}
  .match-bar .switch-actions{flex:1 1 auto;width:auto;min-width:0;gap:6px}
  #matchBar .switch-actions #btnBack,.match-bar .switch-actions .btn-switch{flex:1 1 0;min-width:0;font-size:12px;padding-left:5px;padding-right:5px}
  .back-link{min-height:40px}
  .step.nav{min-height:40px}
  .input-wrap input{font-size:22px}
  .input-wrap .suffix{font-size:13px}
  details.spec summary{min-height:46px;font-size:13px}
  .switch-card{padding:14px}
  /* 手机上提示条置顶，避免遮挡三款伞卡片中部 */
  .toast{
    top:calc(12px + env(safe-area-inset-top));bottom:auto;
    transform:translate(-50%,-12px);max-width:90vw;
  }
  /* 弹层打开时提示条下移到弹层内，避免压住页头 Logo（如复制联系人） */
  body.modal-open .toast{
    top:auto;bottom:44%;
    transform:translate(-50%,12px);
  }
  body.modal-open .toast.show{transform:translate(-50%,0)}
}

/* 极窄屏（320~360，如 iPhone SE）：压缩内边距、字号，保证三列不换行不溢出 */
@media (max-width:360px){
  .pad{padding:16px 12px}
  .brand{padding:calc(14px + env(safe-area-inset-top)) 14px 30px}
  .brand-mark{height:36px;transform:translateY(1.4px)}
  .brand-wordmark{height:48px;max-width:calc(100vw - 132px)}
  .brand-sub h1{font-size:18px}
  .steps{padding:11px 12px;gap:4px}
  .step{font-size:10.5px;gap:4px}
  .step i{width:18px;height:18px;font-size:9px}
  .cards{gap:4px}
  /* 三张卡片深蓝头部等高（极窄屏同口径） */
  .pcard-head{padding:22px 2px 11px}
  .pcard-head .area{font-size:21px;letter-spacing:-.8px}
  .pcard-head .cap{font-size:8px}
  .metrics{padding:2px 4px}
  .metric .k{font-size:9.5px;letter-spacing:-.5px}
  .metric .v{font-size:15.5px}
  .metric .v small{font-size:8px}
  .pick{margin:6px 4px;font-size:11px}
  .detail-btn{margin:0 4px 8px}
  .card-warn{margin:0 4px 2px}
  .chip b{font-size:14px}
  .series-head h2{font-size:16px}
  .tag-series{font-size:9px;padding:4px 8px}
  .detail-grid{grid-template-columns:1fr}
  .formula{font-size:10px}
  /* 窄屏底栏隐藏左侧说明，两按钮平分整行，避免文字挤压截断 */
  .match-bar .ci{display:none}
  .match-bar .switch-actions{flex:1 1 auto;width:100%}
}

/* 触摸目标统一：手机 / 平板 / 桌面控件尺寸一致，避免同一页面在不同设备上观感割裂 */
.step.nav,.back-link,.pick,.detail-btn,.btn-switch,.btn-confirm,.btn-primary{min-height:44px}
.step.nav,.back-link{align-items:center}

/* ============================================================
   三视图流程 v1.2：智能匹配（候选） → 选型结果（选定方案分析）
   ============================================================ */
.view-kicker{display:inline-block;font-size:10px;font-weight:700;letter-spacing:1px;color:var(--blue);background:var(--blue-soft);border-radius:6px;padding:4px 9px;margin-bottom:12px}

.ana-nav{display:flex;gap:18px;flex-wrap:wrap;margin-bottom:12px}
.ana-nav .back-link{margin-bottom:0}

.ana-hero{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 8px 24px rgba(16,42,80,.06)}
.ana-hero-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:12px 15px;background:linear-gradient(110deg,#0B2545,#1D52A0);color:#fff}
.ana-badge{font-size:11px;font-weight:700;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3);padding:4px 10px;border-radius:20px}
.ana-badge.reef{background:rgba(255,122,41,.28);border-color:rgba(255,190,140,.6)}
.ana-id{font-size:11px;color:#C6DCF5}
.ana-area-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:16px 15px 12px}
.ana-area{font-size:34px;font-weight:800;line-height:1.15;letter-spacing:-1px}
.ana-area small{font-size:14px;font-weight:600;margin-left:3px;color:var(--muted)}
.ana-cap{font-size:10px;color:var(--muted);margin-top:2px}
.ana-margin{display:grid;grid-template-columns:auto auto;gap:3px 10px;align-items:center;font-size:11px;background:var(--soft);border-radius:10px;padding:10px 12px}
.ana-margin span{color:var(--muted)}
.ana-margin b{color:var(--ink-2);text-align:right}
.ana-params{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--line);border-top:1px solid var(--line)}
.ana-param{background:#fff;padding:12px 6px;text-align:center}
.ana-param span{display:block;font-size:10px;color:var(--muted);white-space:nowrap}
/* 英文指标名较长（Actual landing speed / Parachute clearance height 等），允许换行完整显示 */
html[lang="en"] .ana-param span{white-space:normal;line-height:1.3}
.ana-param b{display:block;font-size:17px;margin-top:4px;line-height:1.25}
.ana-param b small{font-size:9px;color:var(--muted);font-weight:500;margin-left:2px}
.ana-context{padding:10px 15px;font-size:10px;color:var(--muted);background:#FAFCFF;border-top:1px solid var(--line);line-height:1.7}
/* 主伞重量 / 主伞体积的口径说明（小字） */
.metric-note{margin:10px 2px 0;font-size:11px;line-height:1.75;color:var(--muted);text-align:left}
.metric-note.in-hero{margin:0;padding:0 15px 12px;background:#FAFCFF;font-size:10.5px}

.ana-conclusion{margin-top:16px;border:1px solid var(--line);border-radius:14px;background:#fff;padding:15px}
.ana-sec-title{font-size:13px;font-weight:700;color:var(--ink-2);margin-bottom:10px}
.ana-checks{display:grid;gap:8px}
.ana-check{display:flex;align-items:center;gap:10px;padding:10px 11px;border-radius:10px;background:var(--soft);border:1px solid var(--line)}
.ana-check i{flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-weight:700;font-size:12px;color:#fff;background:var(--ok)}
.ana-check.bad i{background:#E0762F}
.ana-check>div{flex:1;min-width:0}
.ana-check b{display:block;font-size:11.5px}
.ana-check span{display:block;font-size:10.5px;color:var(--muted);margin-top:2px;line-height:1.5}
.ana-check em{flex:none;font-style:normal;font-size:10px;font-weight:700;color:var(--ok)}
.ana-check.bad em{color:#C85A10}
.ana-summary{margin-top:12px;border-radius:10px;padding:11px 12px;font-size:11px;line-height:1.7}
.ana-summary.ok{background:#EAF8F5;border:1px solid #BFE9E0;color:#0B6E62}
.ana-summary.bad{background:#FFF3EA;border:1px solid #FFDCBF;color:#9A4A11}
.ana-summary b{font-size:12px}
.ana-summary p{margin:4px 0 0}

.cmp-card{border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
.cmp-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.cmp-wrap::-webkit-scrollbar{display:none}
.cmp-table{width:100%;min-width:560px;border-collapse:collapse;font-size:11px}
.cmp-table th,.cmp-table td{padding:10px 8px;text-align:center;border-bottom:1px solid var(--line);white-space:nowrap}
.cmp-table th{background:var(--soft);color:var(--ink-2);font-weight:700;font-size:10px}
.cmp-table tr:last-child td{border-bottom:0}
.cmp-table tr.sel td{background:#EAF1FF;color:var(--ink);font-weight:700}
.cmp-table td:first-child{text-align:left;padding-left:12px}
.cmp-table td em{font-style:normal;margin-left:5px;font-size:9px;color:#fff;background:var(--orange);border-radius:4px;padding:1px 5px}
.cmp-hint{font-size:10px;color:var(--muted);margin-top:6px;text-align:right}
.cmp-foot{font-size:10px;color:var(--muted);padding:9px 12px;border-top:1px solid var(--line);background:#FAFCFF;line-height:1.6;white-space:normal;word-break:break-word}
.ana-detail{margin-top:0}
.ana-detail .detail-grid{padding-bottom:14px}
.ana-note{text-align:center;font-size:10px;color:var(--muted);margin-top:14px;line-height:1.7}
/* 固定提交条不遮挡分析页内容与页脚；内容区底部留白收窄到 40px，让页脚分隔线向上贴近内容（页脚自身底部避让空间不变） */
#viewAnalysis .pad{padding-bottom:calc(40px + env(safe-area-inset-bottom))}
#viewMatch .pad{padding-bottom:calc(40px + env(safe-area-inset-bottom))}
.app.has-confirm footer,.app.has-matchbar footer{padding-bottom:calc(96px + env(safe-area-inset-bottom))}
/* 英文手机端底栏为两行、更高：页脚底部避让空间相应加大，保证版权行与备案号两行完整可见（中英文页脚线上移幅度不受影响） */
@media (max-width:699px){
  html[lang="en"] .app.has-confirm footer,
  html[lang="en"] .app.has-matchbar footer{padding-bottom:calc(104px + env(safe-area-inset-bottom))}
}
@media (max-width:360px){
  html[lang="en"] .app.has-confirm footer,
  html[lang="en"] .app.has-matchbar footer{padding-bottom:calc(136px + env(safe-area-inset-bottom))}
}

@media (min-width:700px){
  .ana-area{font-size:42px}
  .ana-param b{font-size:19px}
  .ana-params{grid-template-columns:repeat(6,minmax(0,1fr))}
  .cmp-table{min-width:0}
  .cmp-hint{display:none}
  .ana-conclusion{padding:18px}
}
@media (max-width:699px){
  .ana-area{font-size:30px}
  .ana-param{padding:11px 3px}
  .ana-param span{font-size:9.5px;letter-spacing:-.2px}
  .ana-param b{font-size:16px}
  .ana-hero-head{padding:11px 13px}
  .ana-area-row{padding:14px 13px 11px}
  .ana-context{padding:9px 13px}
  .ana-check span{font-size:10px}
  .cmp-table th,.cmp-table td{padding:11px 8px}
}
@media (max-width:360px){
  .ana-params{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ana-area{font-size:26px}
  .ana-margin{font-size:10px}
  .ana-check{gap:7px;padding:9px 8px}
  .ana-check em{font-size:9px}
}

/* ============================================================
   v1.3 头部快捷入口：联系我们 / 记录 + 两个弹层
   ============================================================ */
.brand-actions{
  position:absolute;right:16px;top:calc(63px + env(safe-area-inset-top));z-index:4;
  display:flex;flex-direction:column;align-items:flex-end;gap:9px;
}
.brand-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  min-height:38px;min-width:100px;padding:7px 14px;border-radius:19px;
  border:1px solid rgba(255,255,255,.6);background:rgba(255,255,255,.22);
  color:#fff;font-size:12px;font-weight:700;letter-spacing:.3px;white-space:nowrap;
  transition:background .18s,border-color .18s,transform .18s;backdrop-filter:blur(3px);
}
.brand-btn:hover{background:rgba(255,255,255,.34);border-color:rgba(255,255,255,.75)}
.brand-btn:active{transform:translateY(1px)}
.brand-btn:focus-visible{outline:2px solid #fff;outline-offset:2px}
.brand-btn svg{flex:none;opacity:.9}
.lang-btn{
  position:absolute;right:16px;top:calc(16px + env(safe-area-inset-top));z-index:4;
  display:inline-flex;align-items:center;justify-content:center;
  min-height:38px;min-width:100px;padding:7px 14px;border-radius:19px;
  border:1px solid rgba(255,255,255,.6);background:rgba(255,255,255,.22);
  color:#fff;font-size:12px;font-weight:700;letter-spacing:.3px;white-space:nowrap;
  transition:background .18s,border-color .18s;backdrop-filter:blur(3px);
}
.lang-btn:hover{background:rgba(255,255,255,.34);border-color:rgba(255,255,255,.75)}
.brand-sub{padding-right:116px}
body.modal-open{overflow:hidden}

/* ---------- 通用弹层 ---------- */
.modal{position:fixed;inset:0;z-index:90;display:flex;align-items:center;justify-content:center;padding:16px}
.modal[hidden]{display:none}
.modal-mask{position:absolute;inset:0;background:rgba(8,26,50,.55);backdrop-filter:blur(2px)}
.modal-sheet{
  position:relative;z-index:1;width:100%;max-width:520px;max-height:min(86vh,760px);
  display:flex;flex-direction:column;background:#fff;border-radius:18px;
  box-shadow:0 24px 70px rgba(8,26,50,.3);overflow:hidden;animation:sheetIn .22s ease;
}
@keyframes sheetIn{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
.record-sheet{max-width:720px}
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;background:linear-gradient(110deg,#0B2545,#1D52A0);color:#fff;flex:none}
.modal-head b{font-size:18px;letter-spacing:.5px}
.modal-x{position:relative;width:34px;height:34px;min-height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:0;line-height:1;display:grid;place-items:center}
.modal-x::before,.modal-x::after{content:"";position:absolute;left:50%;top:50%;width:14px;height:2px;border-radius:2px;background:currentColor}
.modal-x::before{transform:translate(-50%,-50%) rotate(45deg)}
.modal-x::after{transform:translate(-50%,-50%) rotate(-45deg)}
.modal-x:hover{background:rgba(255,255,255,.28)}
.modal-body{padding:18px;overflow-y:auto;-webkit-overflow-scrolling:touch;flex:1}
.record-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 18px;border-bottom:1px solid var(--line);background:#FAFCFF;font-size:11px;color:var(--muted);flex:none}
.link-btn{border:0;background:none;color:var(--blue);font-size:11px;font-weight:600;padding:8px 4px;min-height:36px}
.link-btn:hover{text-decoration:underline}
.record-body{background:var(--bg);padding:14px}

/* ---------- 联系我们 ---------- */
.contact-hero{display:flex;align-items:center;gap:0;min-height:78px;padding:12px 16px;border-radius:13px;background:#fff;overflow:hidden}
.contact-hero-logo{display:block;height:36px;width:auto;max-width:100%;object-fit:contain;object-position:left center}
.contact-hero-wordmark{display:block;height:56px;width:auto;max-width:calc(100% - 90px);object-fit:contain;object-position:left center}
.contact-intro{font-size:12px;color:var(--muted);line-height:1.8;margin:14px 0}
.contact-rows{display:grid;gap:9px}
.contact-row{display:flex;align-items:center;gap:11px;padding:12px 13px;border:1px solid var(--line);border-radius:12px;background:#FAFCFF}
.contact-row .ci{width:30px;height:30px;flex:none;border-radius:9px;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center}
.contact-row .ct{flex:1;min-width:0}
.contact-row .ct span{display:block;font-size:10px;color:var(--muted)}
.contact-row .ct b{display:block;font-size:13px;color:var(--ink);margin-top:2px;word-break:break-all}
.contact-row .ct a{color:var(--blue);text-decoration:none}
.contact-copy{border:1px solid var(--line);background:#fff;color:var(--ink-2);border-radius:8px;padding:7px 10px;font-size:11px;min-height:36px;white-space:nowrap}
.contact-copy:hover{border-color:var(--blue);color:var(--blue)}
.contact-foot{margin-top:14px;padding:11px 12px;background:var(--orange-soft);border:1px solid #FFDCC2;border-radius:11px;font-size:11px;color:#9A4A11;line-height:1.7}

/* ---------- 我的查找记录 ---------- */
.rec-empty{text-align:center;padding:38px 16px;color:var(--muted);font-size:12px;line-height:1.9}
.rec-empty b{display:block;color:var(--ink-2);font-size:14px;margin-bottom:6px}
.rec-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:13px 14px;margin-bottom:11px;box-shadow:0 4px 14px rgba(16,42,80,.04)}
.rec-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.rec-time{font-size:11px;color:var(--muted)}
.rec-badge{font-size:10px;font-weight:700;padding:3px 8px;border-radius:20px;background:var(--soft);color:var(--muted);border:1px solid var(--line)}
.rec-badge.picked{background:var(--blue-soft);color:var(--blue);border-color:#C9DDFF}
.rec-badge.done{background:#EAF8F5;color:#0B6E62;border-color:#BFE9E0}
.rec-params{font-size:13px;font-weight:700;color:var(--ink);margin-top:9px}
.rec-sub{font-size:11px;color:var(--muted);margin-top:4px;line-height:1.6}
.rec-areas{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.rec-areas span{font-size:10px;color:var(--ink-2);background:var(--soft);border:1px solid var(--line);border-radius:6px;padding:3px 7px}
.rec-picked{font-size:11px;color:var(--blue);margin-top:9px;font-weight:600;line-height:1.6}
.rec-actions{display:flex;gap:8px;margin-top:12px;padding-top:11px;border-top:1px solid var(--line)}
.rec-actions button{flex:1;min-height:40px;border-radius:9px;font-size:12px;font-weight:600;border:1px solid var(--line);background:#fff;color:var(--ink-2)}
.rec-actions button.primary{background:var(--blue);border-color:var(--blue);color:#fff}
.rec-actions button.danger{flex:0 0 78px;color:#C85A10}
.rec-actions button:hover{filter:brightness(.98)}
.rec-note{text-align:center;font-size:10px;color:var(--muted);margin-top:6px;line-height:1.7;padding-bottom:4px}

@media (max-width:699px){
  /* 手机品牌头重排：按钮从右下角改为整行等宽，消除与 logo/标题之间的对角空洞 */
  .brand-inner{gap:2px}
  .brand-sub{margin-top:11px;padding-right:96px;padding-left:4px;flex-direction:column;align-items:flex-start;gap:4px}
  .brand-sub h1{font-size:18px;letter-spacing:.3px}
  .brand-sub p{font-size:10px;line-height:1.5}
  .brand-actions{position:absolute;right:16px;top:calc(117px + env(safe-area-inset-top));bottom:auto;transform:translateY(-50%);margin-top:0;flex-direction:row;align-items:center;justify-content:flex-end;gap:9px;width:auto}
  .brand-btn{flex:none;min-width:72px;min-height:28px;padding:5px 8px;border-radius:14px;font-size:10px;gap:4px;justify-content:center}
  .lang-btn{top:calc(16px + env(safe-area-inset-top));right:16px;min-width:44px;min-height:26px;padding:4px 6px;border-radius:13px;font-size:10px}
  .brand-btn svg{width:11px;height:11px}
  .modal{padding:0;align-items:flex-end}
  .modal-sheet{max-width:none;max-height:92vh;border-radius:18px 18px 0 0;padding-bottom:env(safe-area-inset-bottom);animation:sheetUp .24s ease}
  @keyframes sheetUp{from{opacity:.5;transform:translateY(24px)}to{opacity:1;transform:none}}
  .modal-body{padding:16px}
  .record-body{padding:13px}
  .rec-actions button{min-height:44px}
  .contact-hero{min-height:64px;padding:10px 12px}
  .contact-hero-logo{height:30px;max-width:100%}
  .contact-hero-wordmark{height:44px;max-width:calc(100% - 70px)}
  .contact-copy{min-height:40px}
  .metric-note{font-size:11px;line-height:1.8;margin:10px 2px 0}
  .metric-note.in-hero{font-size:11px;padding:0 13px 12px}
}
@media (max-width:360px){
  .brand-actions{top:calc(103px + env(safe-area-inset-top));right:10px;gap:5px}
  .brand-btn{min-width:56px;min-height:26px;padding:4px 4px;font-size:9px;gap:3px}
  .lang-btn{top:calc(13px + env(safe-area-inset-top));right:10px;min-width:40px;min-height:24px;padding:3px 3px;font-size:9px}
  .brand-btn svg{display:none}
  .rec-actions button.danger{flex:0 0 66px}
  .contact-hero-logo{height:26px;max-width:100%}
  .contact-hero-wordmark{height:36px;max-width:calc(100% - 58px)}
}
/* ============ 开伞速度不适用提示弹层 ============ */
.notice-sheet{max-width:430px}
.notice-body{display:flex;gap:12px;align-items:center;padding:4px 2px 18px}
.notice-ic{flex:0 0 34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#FFF1E6;color:#F2681C;font-size:19px;font-weight:800}
.notice-body p{margin:0;font-size:14px;line-height:1.8;color:var(--ink)}
.notice-body + .btn-primary{width:100%}
.empty-title{display:block;font-size:15px;font-weight:700;color:var(--ink);margin-bottom:8px;line-height:1.6}
/* ============ 滑块布无标品提示弹层 ============ */
.no-match-body{align-items:flex-start;padding-bottom:2px}
.no-match-txt{flex:1;min-width:0}
/* 感叹号与提示语整段文字垂直居中（单行/多行都落在文字块中间）；说明文字与提示语左边缘对齐 */
.no-match-heading{display:flex;align-items:center;gap:12px}
.no-match-heading .notice-ic{flex:0 0 34px}
.no-match-msg{display:block;flex:1;min-width:0;font-size:16px;font-weight:700;color:var(--ink);line-height:1.6}
.no-match-txt p{margin:8px 0 0 46px;font-size:12px;color:var(--muted);line-height:1.8}
.no-match-actions{display:flex;gap:10px;margin-top:18px}
.no-match-actions .btn-switch{flex:1;min-height:44px;text-align:center}
.no-match-later{flex:0 0 100px;min-height:44px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink-2);font-size:12px;font-weight:600}
.no-match-later:hover{background:var(--soft)}
@media (max-width:699px){
  .no-match-actions{flex-direction:column}
  .no-match-actions .btn-switch,.no-match-later{width:100%;flex:none}
}
/* 标题独占一行后，窄屏不再需要压缩字号与说明文字抢宽度 */
@media (max-width:430px){.brand-sub h1{font-size:18px;letter-spacing:0}}
/* ≤360 中文标题变长后与右上角按钮轻微相挤，仅收紧字距（字号仍 18px，按钮不动） */
@media (max-width:360px){html:not([lang="en"]) .brand-sub h1{letter-spacing:-.6px}}

/* ============================================================
   英文版手机页头：长标题自然换行，按钮独立成行，避免与标题/说明挤在一起
   ============================================================ */
@media (max-width:699px){
  html[lang="en"] .brand-sub{padding-right:0;gap:5px}
  html[lang="en"] .brand-sub h1{font-size:17px;line-height:1.3;letter-spacing:0}
  /* 说明第二行加长后需避开右侧 Contact/Records 按钮（按钮左缘约 204px，文字起点 22px） */
  html[lang="en"] .brand-sub p{font-size:9px;line-height:1.5;max-width:300px;white-space:pre-line}
  html[lang="en"] .brand-actions{
    position:relative;top:auto;right:auto;z-index:4;width:100%;margin-top:-27px;transform:none;justify-content:flex-end;gap:5px
  }
  html[lang="en"] .brand-btn{min-width:62px;min-height:26px;padding:4px 5px;font-size:9px;gap:3px}
}
@media (max-width:360px){
  html[lang="en"] .brand-sub h1{font-size:16px}
  html[lang="en"] .brand-sub p{font-size:8.5px}
  html[lang="en"] .brand-actions{margin-top:-28px;gap:4px}
  html[lang="en"] .brand-btn{min-width:44px;padding:3px 2px;font-size:9px;gap:2px}
}

/* ============ 英文版手机底栏：保留说明文字，改两行（说明在上、按钮在下靠右），避免按钮文字被挤压 ============ */
@media (max-width:699px){
  html[lang="en"] #matchBar{flex-wrap:wrap;row-gap:6px}
  html[lang="en"] #matchBar .ci{display:block;flex:1 1 100%;min-width:0}
  html[lang="en"] #matchBar .ci b{white-space:pre-line;overflow:visible;text-overflow:clip}
  html[lang="en"] #matchBar .switch-actions{flex:0 0 100%;width:100%;justify-content:flex-end}
  html[lang="en"] #matchBar .switch-actions #btnBack,
  html[lang="en"] .match-bar .switch-actions .btn-switch{
    flex:0 0 auto;min-width:0;padding-left:8px;padding-right:8px
  }
  /* 两行底栏更高，页面底部留白相应加大；同步中文端上移幅度（原 132px 减 56px） */
  html[lang="en"] #viewMatch .pad{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
}
@media (max-width:360px){
  html[lang="en"] #matchBar .ci{display:block}
  html[lang="en"] #matchBar .switch-actions #btnBack,
  html[lang="en"] .match-bar .switch-actions .btn-switch{
    font-size:10px;padding-left:5px;padding-right:5px
  }
}

/* ============ 手机端两处底栏按钮同步缩小（智能匹配页 + 选型结果页，中英文一致） ============ */
@media (max-width:699px){
  #matchBar #btnBack,#matchBar .btn-switch,
  #confirmBar .btn-confirm,#confirmBar .btn-back-match{
    min-height:36px;font-size:11px;padding-top:8px;padding-bottom:8px;border-radius:8px
  }
}
@media (max-width:360px){
  #matchBar #btnBack,#matchBar .btn-switch,
  #confirmBar .btn-confirm,#confirmBar .btn-back-match{
    min-height:34px;font-size:10px;padding-top:7px;padding-bottom:7px
  }
}

/* 候选数独立元素：默认隐藏（中文沿用 matchBarTxt 完整文案），仅英文手机端显示 */
.match-count{display:none}

/* ============ 英文手机底栏：说明在上；「· N candidates」与按钮同一行（左文字右按钮、同一底边） ============ */
@media (max-width:699px){
  html[lang="en"] #matchBar{flex-wrap:wrap;row-gap:4px;align-items:center;gap:6px;padding:8px 12px calc(8px + env(safe-area-inset-bottom))}
  html[lang="en"] #matchBar .ci{flex:1 1 100%;min-width:0;display:block}
  html[lang="en"] #matchBar .ci b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html[lang="en"] #matchBar .match-count{display:inline-flex;align-items:center;align-self:flex-end;flex:1 1 auto;min-width:0;font-size:11px;font-weight:700;color:var(--ink);white-space:nowrap}
  html[lang="en"] #matchBar .switch-actions{flex:0 0 auto;width:auto;gap:4px;justify-content:flex-end;align-self:stretch}
  html[lang="en"] #matchBar .switch-actions #btnBack,
  html[lang="en"] #matchBar .switch-actions .btn-switch{
    flex:0 0 auto;min-width:0;min-height:24px;font-size:9px;padding:3px 5px;border-radius:6px;line-height:1.2
  }
  html[lang="en"] #viewMatch .pad{padding-bottom:calc(52px + env(safe-area-inset-bottom))}
}
@media (max-width:360px){
  html[lang="en"] #matchBar .ci b{font-size:10px}
  html[lang="en"] #matchBar .match-count{font-size:10px}
  html[lang="en"] #matchBar .switch-actions #btnBack,
  html[lang="en"] #matchBar .switch-actions .btn-switch{font-size:8px;padding:3px 3px;min-height:22px}
}

/* ============ 英文手机底栏按钮：位置、尺寸与选型结果页确认条完全一致 ============ */
@media (max-width:699px){
  html[lang="en"] #matchBar{padding-left:16px;padding-right:16px}
  html[lang="en"] #matchBar .switch-actions{gap:8px;align-self:flex-end}
  /* 与结果页确认条同宽同高：绿 121×36、橙 116×36；长文案两行完整显示 */
  html[lang="en"] #matchBar .switch-actions #btnBack{
    flex:0 0 121px;width:121px;min-width:121px;max-width:121px
  }
  html[lang="en"] #matchBar .switch-actions .btn-switch{
    flex:0 0 116px;width:116px;min-width:116px;max-width:116px
  }
  html[lang="en"] #matchBar .switch-actions #btnBack,
  html[lang="en"] #matchBar .switch-actions .btn-switch{
    min-height:36px;font-size:9px;line-height:1.1;
    padding:4px 5px;border-radius:8px;white-space:normal;text-align:center
  }
}
@media (max-width:360px){
  html[lang="en"] #matchBar{column-gap:0}
  html[lang="en"] #matchBar .switch-actions{gap:4px}
  html[lang="en"] #matchBar .switch-actions #btnBack,
  html[lang="en"] #matchBar .switch-actions .btn-switch{
    flex-basis:112px;width:112px;min-width:112px;max-width:112px;
    min-height:34px;font-size:8px;padding:4px 3px
  }
  html[lang="en"] #matchBar .match-count{
    flex:0 1 56px;font-size:8px;overflow:hidden;text-overflow:ellipsis
  }
}

/* ============ 英文手机底栏左侧文案块：与选型结果页确认条同款布局 ============ */
/* 标签 + 两行加粗文案组成一个整体，与右侧按钮同一行居中；候选数并入文案块，不再独立成行 */
@media (max-width:699px){
  html[lang="en"] #matchBar{
    flex-wrap:nowrap;row-gap:0;align-items:center;
    gap:8px;padding:11px 16px calc(11px + env(safe-area-inset-bottom))
  }
  html[lang="en"] #matchBar .ci{flex:1 1 auto;min-width:0;display:block}
  html[lang="en"] #matchBar .ci span{font-size:10px;line-height:1.3}
  html[lang="en"] #matchBar .ci b{
    display:block;font-size:14px;font-weight:700;
    white-space:pre-line;overflow:visible;text-overflow:clip
  }
  html[lang="en"] #matchBar .match-count{display:none}
  html[lang="en"] #matchBar .switch-actions{flex:0 0 auto;align-self:center}
}
@media (max-width:360px){
  html[lang="en"] #matchBar{gap:6px}
  html[lang="en"] #matchBar .ci b{font-size:9px;line-height:1.2}
}

/* ============ 英文手机底栏按钮下移：与左侧文案最后一行（Slider series）同一底边 ============ */
@media (max-width:699px){
  html[lang="en"] #matchBar,
  html[lang="en"] #confirmBar{align-items:flex-end}
  html[lang="en"] #matchBar .switch-actions,
  html[lang="en"] #confirmBar .confirm-actions{align-self:flex-end}
}

/* ============ 英文智能匹配页：按钮底边对齐 Slider series 行（候选数行留在按钮下方） ============ */
@media (max-width:699px){
  html[lang="en"] #matchBar{--ci-line-h:22px}
  html[lang="en"] #matchBar .switch-actions{transform:translateY(calc(var(--ci-line-h) * -1))}
}
@media (max-width:380px){
  html[lang="en"] #matchBar{--ci-line-h:43px}
}
@media (max-width:360px){
  html[lang="en"] #matchBar{--ci-line-h:38px}
}

/* 窄屏也与结果页统一字号：标签 10px、加粗文案 14px */
@media (max-width:360px){
  html[lang="en"] #matchBar .ci b{font-size:14px;line-height:normal}
}

/* 英文手机匹配页：按钮与最后一行「· 3 candidates」同一底边（撤销按 Slider series 行上移） */
@media (max-width:699px){
  html[lang="en"] #matchBar .switch-actions{transform:none}
}

/* ============ 英文手机底栏按钮内文字：字号/行高与结果页确认条一致 ============ */
@media (max-width:699px){
  html[lang="en"] #matchBar .switch-actions #btnBack,
  html[lang="en"] #matchBar .switch-actions .btn-switch{
    font-size:11px;line-height:1.05;padding-top:2px;padding-bottom:2px
  }
}
@media (max-width:360px){
  html[lang="en"] #matchBar .switch-actions #btnBack,
  html[lang="en"] #matchBar .switch-actions .btn-switch{font-size:10px}
}

/* ============ 中文手机/桌面底栏字号：与选型结果页确认条统一（仅匹配页，结果页不动） ============ */
/* 标签 10px 已一致；加粗文案统一 14px；按钮字号对齐结果页 11px（≤360 为 10px）；文案允许换行避免截断 */
.match-bar .ci b{font-size:14px;white-space:normal;overflow:visible;text-overflow:clip}
@media (max-width:699px){
  .match-bar .ci b{font-size:14px}
  #matchBar .switch-actions #btnBack{font-size:11px}
}
@media (max-width:360px){
  #matchBar .switch-actions #btnBack{font-size:10px}
}

/* ============ 中文手机结果页：按钮底边与左侧文案「系列」行同一底边 ============ */
@media (max-width:699px){
  html[lang="zh-CN"] #confirmBar{align-items:flex-end}
  html[lang="zh-CN"] #confirmBar .confirm-actions{align-self:flex-end}
}

/* ============ 手机版：中英文切换时顶部蓝色背景宽度保持统一 ============ */
/* 页头蓝色背景铺满视口；标题/说明恢复自然宽度（避免撑满破坏换行） */
@media (max-width:699px){
  .brand{width:100%;max-width:100%;box-sizing:border-box}
}
/* 顶部按钮的浅蓝背景：中英文统一固定宽度，切换语言时不宽窄跳变 */
@media (max-width:699px){
  .brand-btn{width:74px;min-width:74px;padding-left:0;padding-right:0}
  .lang-btn{width:44px;min-width:44px;padding-left:0;padding-right:0}
}
@media (max-width:360px){
  .brand-btn{width:56px;min-width:56px}
  .lang-btn{width:40px;min-width:40px}
}

/* 顶部按钮蓝底尺寸中英文彻底一致（需覆盖 html[lang=en] 专属的 26px 规则） */
@media (max-width:699px){
  html[lang="en"] .brand-btn{min-height:28px}
}
@media (max-width:360px){
  html[lang="en"] .brand-btn{min-height:26px}
}

/* ============ 三按钮统一：手机端同步竖排最右侧同一列、同大小、放大、白字 ============ */
@media (max-width:699px){
  .lang-btn{
    right:16px;top:calc(16px + env(safe-area-inset-top));
    width:74px;min-width:74px;height:30px;min-height:30px;padding:0;border-radius:15px;
    font-size:11px;font-weight:700;letter-spacing:.3px;
  }
  .brand-actions{
    position:absolute;right:16px;top:calc(55px + env(safe-area-inset-top));bottom:auto;
    transform:none;margin-top:0;
    flex-direction:column;align-items:flex-end;justify-content:flex-start;gap:9px;width:auto;
  }
  .brand-btn{
    width:74px;min-width:74px;height:30px;min-height:30px;padding:0;border-radius:15px;
    font-size:11px;font-weight:700;letter-spacing:.3px;gap:5px;
  }
  .brand-btn svg{width:12px;height:12px}
  .brand-sub{padding-right:96px}
  /* 英文：说明文字需避开右上角竖排按钮列 */
  html[lang="en"] .brand-actions{position:absolute;top:calc(55px + env(safe-area-inset-top));right:16px;margin-top:0;transform:none}
  html[lang="en"] .brand-sub{padding-right:96px}
  html[lang="en"] .brand-btn{width:74px;min-width:74px;height:30px;min-height:30px;padding:0;font-size:11px;gap:5px}
}
@media (max-width:360px){
  .lang-btn{right:10px;top:calc(13px + env(safe-area-inset-top));width:60px;min-width:60px;height:28px;min-height:28px;font-size:10px;border-radius:14px}
  .brand-actions{right:10px;top:calc(50px + env(safe-area-inset-top));gap:7px}
  .brand-btn{width:60px;min-width:60px;height:28px;min-height:28px;font-size:10px}
  .brand-btn svg{display:none}
  html[lang="en"] .brand-actions{right:10px;top:calc(50px + env(safe-area-inset-top))}
  html[lang="en"] .brand-btn{width:60px;min-width:60px;height:28px;min-height:28px;font-size:10px}
}

/* ============ 三按钮最终统一：间距/大小/字体色号全一致（覆盖前面所有中英文散落规则） ============ */
/* 固定 width/height（不用 min-*），杜绝英文长文案把按钮撑大；三按钮间距统一 9px */
.lang-btn,.brand-btn{
  width:100px;min-width:100px;height:38px;min-height:38px;padding:0;box-sizing:border-box;
  border-radius:19px;border:1px solid rgba(255,255,255,.6);background:rgba(255,255,255,.22);
  color:#fff;font-size:12px;font-weight:700;letter-spacing:.3px;line-height:1;gap:6px;
}
.brand-actions{gap:9px}
@media (max-width:699px){
  .lang-btn,.brand-btn,html[lang="en"] .lang-btn,html[lang="en"] .brand-btn{
    width:74px;min-width:74px;height:30px;min-height:30px;padding:0;border-radius:15px;
    font-size:11px;font-weight:700;letter-spacing:.3px;line-height:1;gap:5px;
  }
  .brand-actions,html[lang="en"] .brand-actions{gap:9px;margin-top:0}
}
@media (max-width:360px){
  .lang-btn,.brand-btn,html[lang="en"] .lang-btn,html[lang="en"] .brand-btn{
    width:60px;min-width:60px;height:28px;min-height:28px;padding:0;border-radius:14px;
    font-size:10px;font-weight:700;letter-spacing:.3px;line-height:1;gap:4px;
  }
  .brand-actions,html[lang="en"] .brand-actions{gap:9px;margin-top:0}
  .lang-btn svg,.brand-btn svg{width:12px;height:12px}
}

/* ==================== 提交选型信息表单（销售线索） ==================== */
.lead-sheet{max-width:472px}
/* 头部：图标 + 标题 */
.lead-sheet .modal-head{padding:20px 22px}
.lead-head-t{display:inline-flex;align-items:center;gap:11px;min-width:0}
.lead-head-t svg{width:21px;height:21px;flex:none;opacity:.92}
.lead-head-t b{font-size:18px;letter-spacing:.6px}
/* 主体 */
.lead-body{padding:20px 22px 22px;background:linear-gradient(180deg,#FBFCFF 0%,#fff 42%)}
/* 说明信息卡 */
.lead-note{display:block;margin:0 0 20px;padding:12px 14px;border:1px solid #DCE9FF;border-radius:12px;background:linear-gradient(110deg,#EFF5FF,#F6FAFF)}
.lead-note-row{display:flex;align-items:center;gap:10px}
.lead-note-row>svg{width:17px;height:17px;flex:none;color:var(--blue)}
.lead-intro{margin:0;font-size:12px;line-height:1.65;color:#33527E}
.lead-privacy{display:block;margin:4px 0 0 27px;font-size:10.5px;line-height:1.55;color:#6B7E99}
/* 字段 */
.lead-field{display:block;margin-bottom:15px}
.lead-label{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.lead-label svg{width:15px;height:15px;flex:none;color:var(--blue)}
.lead-label b{font-size:12.5px;font-weight:700;color:#25385B;letter-spacing:.2px}
.lead-field input,.lead-field textarea{
  width:100%;display:block;box-sizing:border-box;
  border:1px solid #DCE4F1;border-radius:11px;background:#F8FAFE;
  padding:12px 14px;font-size:15px;color:var(--ink);outline:0;
  font-family:inherit;transition:border-color .18s,background .18s,box-shadow .18s;
}
.lead-field textarea{resize:vertical;min-height:74px;line-height:1.55}
.lead-field input:hover,.lead-field textarea:hover{border-color:#B9CBE6}
.lead-field input:focus,.lead-field textarea:focus{border-color:var(--blue);background:#fff;box-shadow:0 0 0 3px rgba(47,111,237,.14)}
.lead-field input::placeholder,.lead-field textarea::placeholder{color:#A9B6CB}
/* 错误提示 */
.lead-err{display:none;margin:2px 0 12px;font-size:12px;line-height:1.5;color:#C9302C;background:#FFF1F0;border:1px solid #FFD6D3;border-radius:9px;padding:9px 11px}
.lead-err.show{display:block}
/* 按钮：主次分明 */
.lead-actions{display:flex;gap:11px;margin-top:20px}
.lead-cancel,.lead-submit{min-height:47px;border-radius:11px;font-size:14px;font-weight:700;cursor:pointer;transition:background .18s,transform .18s,opacity .18s,box-shadow .18s}
.lead-cancel{flex:1;border:1px solid #D9E2F1;background:#fff;color:#516485}
.lead-cancel:hover{background:#F2F6FC;border-color:#B9CBE6}
.lead-submit{flex:1;border:1px solid transparent;background:linear-gradient(110deg,#3779F5,#1D52A0);color:#fff;box-shadow:0 8px 18px rgba(47,111,237,.3)}
.lead-submit:hover{background:linear-gradient(110deg,#2B6AE4,#17458C);box-shadow:0 10px 22px rgba(47,111,237,.36)}
.lead-submit:active{transform:translateY(1px)}
.lead-submit:disabled{opacity:.6;cursor:default}
@media (max-width:699px){
  .lead-sheet{max-width:100%;border-radius:18px}
  .lead-sheet .modal-head{padding:18px}
  .lead-head-t svg{width:20px;height:20px}
  .lead-head-t b{font-size:17px}
  .lead-body{padding:18px}
  .lead-note{margin-bottom:18px;padding:11px 12px}
  .lead-label b{font-size:12.5px}
  .lead-field input,.lead-field textarea{font-size:16px;padding:13px 14px;border-radius:12px}
  .lead-cancel,.lead-submit{min-height:50px;font-size:15px}
}
