:root {
  --navy: #1f3864;
  --blue: #2e5598;
  --accent: #0f766e;
  --green: #15803d;
  --bg: #f4f6fa;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(31, 56, 100, .08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6;
}
body.no-scroll { overflow: hidden; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* topbar */
.topbar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.logo span { display: block; font-size: 11px; font-weight: 400; opacity: .75; margin-top: -2px; }
.nav { display: flex; gap: 22px; font-size: 14px; }
.nav a { opacity: .9; }
.nav a:hover { opacity: 1; text-decoration: underline; }

/* hero */
.hero { background: linear-gradient(135deg, #1f3864 0%, #2e5598 55%, #0f766e 100%); color: #fff; padding: 56px 0 64px; }
.hero h1 { font-size: 34px; line-height: 1.25; max-width: 760px; margin-bottom: 12px; }
.hero p { font-size: 16px; opacity: .9; max-width: 640px; margin-bottom: 28px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 36px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 30px; }
.hero-stats span { font-size: 13px; opacity: .8; }

/* toolbar */
.toolbar { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 0; }   /* 机型选择条：随页面滚动，不吸顶 */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--text); padding: 7px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters input, .filters select {
  height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; background: #fff; color: var(--text);
}
.filters input { flex: 1; min-width: 220px; }
.btn-reset { height: 40px; padding: 0 18px; border: 1px solid var(--line); background: #f3f4f6; border-radius: 10px; cursor: pointer; font-size: 14px; color: var(--muted); }
.btn-reset:hover { background: #e5e7eb; }

/* content */
.content { padding: 28px 0 48px; }
.result-bar { margin-bottom: 16px; color: var(--muted); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; cursor: pointer; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(31, 56, 100, .14); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: #eef2f8; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 10px; font-size: 12px; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.badge.condition { left: 10px; background: #fff; color: var(--navy); }
.badge.status { right: 10px; background: var(--accent); color: #fff; }
.card-body { padding: 14px 16px 16px; }
.card-body h3 { font-size: 17px; font-weight: 700; }
.card-body h3 .mem { color: var(--muted); font-weight: 500; font-size: 14px; }
.card-body .sub { color: var(--muted); font-size: 13px; margin: 2px 0 10px; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tag { font-size: 12px; background: #eef2f8; color: var(--blue); padding: 3px 9px; border-radius: 7px; }
.tag-green { background: #dcfce7; color: var(--green); }
.card-foot { display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 14px; color: var(--muted); }
.price strong { font-size: 20px; color: #d33400; font-weight: 800; }
.price del { font-size: 13px; margin-left: 4px; }
.btn-detail { background: var(--navy); color: #fff; border: none; padding: 8px 16px; border-radius: 9px; font-size: 13px; cursor: pointer; }
.btn-detail:hover { background: var(--blue); }

.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* services */
.services { background: #fff; border-top: 1px solid var(--line); padding: 48px 0 56px; }
.services h2 { font-size: 26px; margin-bottom: 24px; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.service { background: var(--bg); border-radius: var(--radius); padding: 22px; }
.service .ic { font-size: 30px; margin-bottom: 8px; }
.service h3 { font-size: 17px; margin-bottom: 6px; }
.service p { font-size: 14px; color: var(--muted); }

/* footer */
.footer { background: var(--navy); color: #fff; padding: 44px 0 50px; text-align: center; }
.footer h2 { font-size: 24px; margin-bottom: 10px; }
.footer p { opacity: .85; font-size: 15px; }
.footer .small { margin-top: 14px; opacity: .55; font-size: 12px; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .66); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal.open { display: flex; }
.modal-inner { background: #fff; border-radius: 18px; width: min(980px, 100%); max-height: 92vh; overflow: auto; position: relative; }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 5; width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(0,0,0,.45); color: #fff; font-size: 22px; cursor: pointer; }
.modal-grid { display: grid; grid-template-columns: 1.2fr 1fr; }
.modal-media { background: #f0f2f6; padding: 18px; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tab { border: 1px solid var(--line); background: #fff; color: var(--muted); padding: 8px 18px; border-radius: 999px; font-size: 14px; cursor: pointer; }
.tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; cursor: pointer; border: 2px solid transparent; }
.gallery img.active { border-color: var(--accent); }
.tab-panel video { width: 100%; border-radius: 12px; background: #000; }
.placeholder-video { background: #e5e9f0; border-radius: 12px; min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); padding: 20px; }
.placeholder-video .play { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 12px; }
.placeholder-video p { font-size: 16px; color: var(--text); }
.placeholder-video span { font-size: 12px; margin-top: 6px; }
.report-wrap { display: block; position: relative; }
.report-wrap .aisi-img { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 12px; background: #fff; }
.zoom-hint { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 5px 10px; border-radius: 999px; }

.modal-info { padding: 26px; }
.modal-info h2 { font-size: 24px; line-height: 1.3; }
.modal-info h2 span { font-size: 15px; color: var(--muted); font-weight: 400; }
.info-badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.info-badges .badge { position: static; }
.badge.machine { background: #eef2f8; color: var(--blue); }
.badge.battery { background: #dcfce7; color: var(--green); }
.price.big { margin: 6px 0 18px; }
.price.big strong { font-size: 30px; color: #d33400; }
.price.big del { color: var(--muted); margin-left: 8px; font-size: 16px; }
.specs { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 18px; }
.spec-row { display: flex; justify-content: space-between; padding: 9px 14px; font-size: 14px; border-bottom: 1px solid var(--line); }
.spec-row:last-child { border-bottom: none; }
.spec-row span { color: var(--muted); }
.modal-info .services { background: transparent; padding: 0; border: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.modal-info .services span { font-size: 12px; background: #eef2f8; color: var(--blue); padding: 5px 11px; border-radius: 999px; }
.note { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.btn-buy { display: block; width: 100%; text-align: center; background: var(--accent); color: #fff; padding: 13px; border-radius: 12px; font-weight: 700; font-size: 16px; border: none; cursor: pointer; font-family: inherit; }
.btn-buy:hover { background: #0d625c; }

@media (max-width: 760px) {
  .hero h1 { font-size: 26px; }
  .modal-grid { grid-template-columns: 1fr; }
  .filters input { min-width: 100%; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .fab-contact { display: flex; }
  body { padding-bottom: 66px; }
  .faq h2 { font-size: 22px; }
}
.footer .phone { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.qr-wrap { margin: 14px 0 6px; display: flex; justify-content: center; }
.qr-wrap img { box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.address-box { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 14px 0 8px; }
.addr-label { font-size: 12px; color: #a8c0e0; letter-spacing: 1px; }
.address-box span:not(.addr-label) { font-size: 15px; }
.map-btn { display: inline-flex; margin-top: 4px; background: #0f766e; color: #fff; padding: 8px 18px; border-radius: 999px; font-size: 13px; }
.map-btn:hover { background: #0d625c; }

/* ---------- 首页行动按钮 / 常见问题 / 联系区 ---------- */
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 20px 0 8px; }
.btn-hero { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 26px; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; border: none; cursor: pointer; font-family: inherit; }
.btn-hero.primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(15,118,110,.35); }
.btn-hero.primary:hover { background: #0d625c; }
.btn-hero.ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-hero.ghost:hover { background: rgba(255,255,255,.24); }
.btn-hero:disabled { opacity: .65; cursor: default; }

.faq { padding: 46px 0; background: #fff; }
.faq h2 { text-align: center; font-size: 26px; color: var(--navy); margin-bottom: 22px; }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-list details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; background: #fbfcfe; }
.faq-list summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--navy); }
.faq-list details[open] summary { margin-bottom: 8px; }
.faq-list p { font-size: 14px; color: #4b5563; line-height: 1.75; }

.contact-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 14px 0 6px; }
.btn-contact { display: inline-flex; align-items: center; padding: 11px 22px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; border: none; cursor: pointer; text-decoration: none; font-family: inherit; }
.btn-contact.ghost { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.45); }
.btn-contact:hover { filter: brightness(1.08); }

/* 手机端悬浮联系 */
.fab-contact { position: fixed; left: 0; right: 0; bottom: 0; display: none; gap: 10px; padding: 10px 14px; background: rgba(31,56,100,.96); z-index: 90; }
.fab-contact button, .fab-contact a { flex: 1; text-align: center; padding: 12px; border-radius: 12px; border: none; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; font-family: inherit; }
.fab-contact button { background: var(--accent); color: #fff; }
.fab-contact a { background: rgba(255,255,255,.16); color: #fff; }

/* 咨询弹窗 */
.consult-inner { max-width: 520px; padding: 26px; }
.consult-inner h2 { font-size: 22px; color: var(--navy); }
.consult-sub { font-size: 13px; color: var(--muted); margin: 6px 0 18px; }
.consult-inner form label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.consult-inner input, .consult-inner textarea {
  width: 100%; margin-top: 6px; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; font-size: 15px; font-family: inherit; background: #fff; color: var(--text);
}
.consult-inner textarea { resize: vertical; }
.consult-inner input:focus, .consult-inner textarea:focus { outline: 2px solid rgba(15,118,110,.35); border-color: var(--accent); }
.req { color: #d33400; }
.consult-actions { display: flex; gap: 10px; margin-top: 6px; }
.consult-actions .btn-hero { flex: 1; }
.consult-actions .btn-hero.ghost { background: #eef2f8; color: var(--blue); border: none; }
.consult-tip { font-size: 13px; margin-top: 12px; min-height: 18px; }
.consult-tip.ok { color: var(--green); font-weight: 600; }
.consult-tip.err { color: #c0392b; }
.consult-alt { font-size: 12px; color: var(--muted); margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }

/* ---------- 机型图片卡 / 价格筛选 / 对比 ---------- */
.model-cards { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.model-cards .chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 8px; border-radius: 14px; background: #fff; border: 2px solid var(--line);
  font-size: 13px; color: var(--text); cursor: pointer; min-height: 96px;
}
.model-cards .chip img { width: 100%; max-width: 78px; height: 52px; object-fit: contain; }
.model-cards .chip .chip-name { font-weight: 600; }
.model-cards .chip:hover { border-color: #b9c6dd; }
.model-cards .chip.active { border-color: var(--accent); background: #f0fdfa; box-shadow: 0 4px 14px rgba(15,118,110,.16); }

.compare-hint { font-size: 12px; color: var(--muted); margin-left: 12px; }
.card .pick { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.92); border-radius: 999px; padding: 3px 9px 3px 7px; font-size: 12px;
  color: var(--navy); cursor: pointer; z-index: 3; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.card .pick input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.card.picked { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent), 0 12px 26px rgba(15,118,110,.22); }
.card .sku { font-size: 12px; color: #7c8798; margin-top: -2px; }

.compare-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 95;
  display: flex; align-items: center; gap: 12px; background: var(--navy); color: #fff;
  padding: 11px 18px; border-radius: 999px; box-shadow: 0 12px 30px rgba(15,23,42,.35); font-size: 14px; }
.compare-bar button { border: none; border-radius: 999px; padding: 8px 18px; font-size: 14px; font-weight: 700;
  cursor: pointer; background: var(--accent); color: #fff; font-family: inherit; }
.compare-bar button.ghost { background: rgba(255,255,255,.16); font-weight: 400; }
.compare-bar button:disabled { opacity: .55; cursor: default; }

.compare-inner { max-width: 1000px; padding: 24px; }
.compare-inner h2 { font-size: 22px; color: var(--navy); margin-bottom: 16px; }
.compare-scroll { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.compare-table th, .compare-table td { border: 1px solid var(--line); padding: 10px 12px; font-size: 14px; text-align: center; }
.compare-table thead th { background: #f6f8fc; }
.compare-table thead th img { width: 100%; max-width: 110px; height: 74px; object-fit: contain; display: block; margin: 0 auto 6px; }
.compare-table thead th span { display: block; font-size: 13px; color: var(--navy); font-weight: 700; }
.compare-table tbody th { background: #fafbfe; text-align: left; color: var(--muted); font-weight: 500; white-space: nowrap; }
.cmp-price { color: #d33400; font-size: 16px; }
.cmp-consult { margin-top: 8px; border: none; border-radius: 999px; padding: 6px 14px; font-size: 12px;
  background: var(--accent); color: #fff; cursor: pointer; font-family: inherit; }

@media (max-width: 760px) {
  .model-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compare-hint { display: block; margin: 4px 0 0; }
  .compare-bar { left: 10px; right: 10px; transform: none; justify-content: space-between; bottom: 74px; }
}

/* 扫码进来但没找到机器时的提示条 */
.notice-bar { background: #fff4e5; color: #8a5a00; border-bottom: 1px solid #f0c36d;
  padding: 12px 18px; text-align: center; font-size: 14px; }
.detail-sku { font-size: 14px; color: var(--muted); margin: -4px 0 12px; }
.detail-sku b { color: var(--navy); font-size: 16px; letter-spacing: 1px; }

/* 对比表：官方参数分组与来源说明 */
.compare-table tr.cmp-group th { background: #eef2f8; color: var(--navy); font-size: 13px;
  text-align: left; letter-spacing: .5px; padding: 9px 12px; }
.compare-table td { vertical-align: top; line-height: 1.55; }
.cmp-note { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.7; }
.sku-todo { color: #b0b7c3; font-weight: 400; }
.cmp-launch { color: var(--navy); font-size: 15px; }
.cmp-drop { color: var(--green); font-size: 12px; display: block; margin-top: 2px; }

/* ---------- 购买 / 登录弹窗 ---------- */
.buy-inner { max-width: 560px; padding: 26px; }
.buy-inner h2 { font-size: 22px; color: var(--navy); margin-bottom: 6px; }
.auth-tabs { display: flex; gap: 8px; margin: 14px 0 4px; }
.auth-tab { flex: 1; padding: 9px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; font-family: inherit; }
.auth-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.buy-inner label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.buy-inner input, .buy-inner select { width: 100%; margin-top: 5px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 15px; font-family: inherit; }
.buy-price-line { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; padding: 11px 13px; font-size: 14px; color: #8a5a00; margin-bottom: 14px; line-height: 1.8; }
.buy-price-line b { color: #d33400; font-size: 17px; }
.pay-picks label { display: flex; align-items: center; gap: 8px; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; font-size: 14px; color: var(--text); cursor: pointer; }
.pay-picks input { width: auto; margin: 0; }
.btn-buy-now { background: #d33400; }
.btn-buy-now:hover { background: #b32c00; }

/* ---------- 活动条 / 卡片买按钮 ---------- */
.promo-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
.promo-bar span { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4); color: #fff;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; }
.btn-mini-buy { background: #d33400; color: #fff; border: none; border-radius: 10px; padding: 9px 16px;
  font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; margin-left: 8px; }
.btn-mini-buy:hover { background: #b32c00; }
#services .service-grid .service h3 { font-size: 15px; }

/* ---------- 上线活动专区 ---------- */
.promo { padding: 46px 0; background: linear-gradient(135deg, #1f3864 0%, #2e5598 55%, #0f766e 100%); color: #fff; }
.promo h2 { text-align: center; font-size: 26px; margin-bottom: 8px; }
.promo-sub { text-align: center; font-size: 14px; color: #cfe0ff; margin-bottom: 24px; }
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; max-width: 980px; margin: 0 auto; }
.promo-card { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); border-radius: 14px; padding: 18px 16px; text-align: center; }
.promo-card .p-ic { font-size: 26px; margin-bottom: 6px; }
.promo-card strong { display: block; font-size: 17px; margin-bottom: 6px; }
.promo-card span { font-size: 13px; color: #dbe7ff; line-height: 1.7; }
.promo-card .p-big { font-size: 26px; font-weight: 800; color: #ffd66b; display: block; margin-bottom: 4px; }
.promo-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.btn-hero.ghost.dark { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.5); }
@media (max-width: 760px) { .promo h2 { font-size: 22px; } }

/* 页脚合规链接 */
.footer .legal-links { margin-top: 12px; font-size: 13px; }
.footer .legal-links a { color: #cfe0ff; }
.footer .legal-links a:hover { color: #fff; text-decoration: underline; }

/* 下单后的微信支付二维码 */
.wxpay-box { display: flex; align-items: center; gap: 14px; margin: 12px 0; text-align: left; }
.wxpay-box img { width: 180px; height: 180px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

/* ============================================================
   移动端适配（客户大多用手机，这里是重点）
   断点：900px / 760px / 520px
   ============================================================ */


/* ---------- 关键修复：hidden 属性必须真的隐藏 ----------
   .compare-bar 等元素设了 display:flex，会覆盖 [hidden] 的默认 display:none，
   导致“隐藏”失效（手机上对比栏一直挡着内容）。 */
[hidden] { display: none !important; }

/* ---------- 顶栏与汉堡菜单 ---------- */
.nav-toggle {
  display: none;                    /* 桌面端不显示 */
  width: 44px; height: 44px;        /* 手指可点面积 */
  margin-left: auto;
  background: transparent; border: 0; padding: 0;
  cursor: pointer; position: relative; flex: none;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px;
  margin: 5px auto; transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.logo { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.logo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo small { display: block; font-size: 11px; font-weight: 400; opacity: .75; margin-top: -2px; white-space: nowrap; }

/* ---------- 手机端：导航收进抽屉 ---------- */
@media (max-width: 900px) {
  .topbar-inner { height: 56px; gap: 10px; }
  .logo { font-size: 17px; }
  .logo small { font-size: 10px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 56px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--navy);
    padding: 6px 0 12px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .28);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .18s ease;
    max-height: calc(100vh - 56px); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a {
    padding: 14px 20px;                 /* 手指友好的行高 */
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    opacity: 1;
  }
  .nav a:last-child { border-bottom: 0; }
  .nav a:active { background: rgba(255, 255, 255, .1); }
}

/* ---------- 手机端：英雄区与统计 ---------- */
@media (max-width: 760px) {
  .hero { padding: 30px 0 34px; }
  .hero h1 { font-size: 23px; line-height: 1.32; margin-bottom: 10px; }
  .hero p { font-size: 14.5px; margin-bottom: 20px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn-hero { padding: 14px; font-size: 16px; }   /* 更好点 */
  .hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .hero-stats strong { font-size: 24px; }
  .hero-stats div span { font-size: 12.5px; }
  .promo-bar { gap: 8px; margin-top: 14px; }
  .promo-bar span { font-size: 12px; padding: 6px 11px; }
  .badge { font-size: 11px; padding: 3px 8px; }
}

/* ---------- 手机端：机器卡片（图片更小、按钮更好点） ---------- */
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .card-media { aspect-ratio: 5 / 4; }
  .card-media .badge.status { font-size: 10px; padding: 2px 6px; }
  .card-media .badge.condition { font-size: 10px; padding: 2px 6px; }
  .card-body { padding: 10px 11px 12px; }
  .card-body h3 { font-size: 15px; }
  .card-body .sku { font-size: 11.5px; }
  .card-body .sub { font-size: 12px; }
  .card-tags { gap: 4px; }
  .card-tags .tag { font-size: 10.5px; padding: 2px 6px; }
  .card-foot { flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  .price strong { font-size: 18px; }
  .price del { font-size: 12px; }
  .btn-detail { min-height: 40px; padding: 0 14px; flex: 1 1 auto; }
  .btn-mini-buy { min-height: 40px; min-width: 52px; margin-left: 0; }
  .pick { width: 40px; height: 40px; }
  .pick span { font-size: 11px; }
}

@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-media { aspect-ratio: 1 / 1; }
  .model-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .model-card img { height: 54px; }
  .model-card strong { font-size: 13px; }
}

/* ---------- 手机端：筛选栏（横滑不挤压） ---------- */
@media (max-width: 760px) {
  .toolbar-inner { gap: 8px; overflow-x: auto; padding: 10px 14px; -webkit-overflow-scrolling: touch; }
  .toolbar-inner > * { flex: none; }
  .toolbar input[type="search"], .toolbar input#adminSearch { min-width: 190px; }
  .filters { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .filters select, .filters input { min-width: 118px; min-height: 40px; }
  .chips { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .chips .chip { flex: none; min-height: 40px; display: inline-flex; align-items: center; }
}

/* ---------- 手机端：对比栏（不挡内容） ---------- */
@media (max-width: 760px) {
  .compare-bar {
    left: 10px; right: 10px; bottom: 10px; transform: none;
    padding: 9px 12px; border-radius: 14px;
    flex-wrap: nowrap; gap: 8px; justify-content: space-between;
    font-size: 13px;
  }
  .compare-bar .btn-hero { padding: 10px 14px; font-size: 14px; }
  .compare-bar #clearCompare { padding: 10px 12px; font-size: 13px; }
  body.has-compare,
  body:has(.compare-bar:not([hidden])) { padding-bottom: 86px; }
}

/* ---------- 手机端：详情弹窗（全屏化） ---------- */
@media (max-width: 760px) {
  .modal-inner {
    width: 100%; max-width: 100%; height: 100%; max-height: 100%;
    border-radius: 0; padding: 16px 14px 24px;
  }
  .modal-close {
    position: sticky; top: 0; float: right;
    width: 40px; height: 40px; font-size: 26px;
  }
  .modal-grid { gap: 14px; }
  .detail-gallery img, .detail-main img { border-radius: 12px; }
  .detail-actions { position: sticky; bottom: 0; background: #fff; padding: 10px 0 4px; z-index: 5; }
  .btn-buy { min-height: 48px; font-size: 16px; }
  .detail-specs { grid-template-columns: 1fr; }
}

/* ---------- 手机端：购买/登录弹窗与表单 ---------- */
@media (max-width: 760px) {
  .buy-inner { padding: 18px 16px 22px; border-radius: 16px 16px 0 0;
    position: fixed; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; }
  .buy-inner h2 { font-size: 19px; }
  .buy-inner input, .buy-inner select { font-size: 16px; min-height: 46px; }  /* ≥16px 防 iOS 自动放大 */
  .pay-picks label { min-height: 48px; }
  .consult-actions { flex-direction: column; gap: 8px; }
  .consult-actions .btn-hero { width: 100%; min-height: 46px; }
}

/* ---------- 手机端：活动专区 / 服务承诺 / FAQ ---------- */
@media (max-width: 760px) {
  .promo { padding: 30px 0; }
  .promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .promo-card { padding: 14px 12px; }
  .promo-card .p-big { font-size: 22px; }
  .promo-card strong { font-size: 15px; }
  .promo-card span { font-size: 12px; }
  .promo-actions { flex-direction: column; gap: 10px; }
  .promo-actions .btn-hero { width: 100%; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .faq-item summary { font-size: 15px; padding: 13px 0; }
  .footer { padding: 26px 0; }
  .footer h2 { font-size: 19px; }
  .legal-links { line-height: 2; }
}

/* ---------- 手机端：微信支付二维码区域 ---------- */
@media (max-width: 760px) {
  .wxpay-box { flex-direction: column; text-align: center; gap: 10px; }
  .wxpay-box img { width: 220px; height: 220px; }
}

/* ---------- 触屏优化：去掉 hover 依赖、避免误触 ---------- */
@media (hover: none) {
  .card:hover { transform: none; }
  .btn-hero:hover { filter: none; }
}
* { -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
img, video { max-width: 100%; height: auto; }

/* ============================================================
   手机端空间优化（客户大多用手机：让一屏能看到更多机器）
   ============================================================ */

/* ---------- 搜索 + 筛选折叠条 ---------- */
.filter-bar { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.filter-bar input[type="search"] { flex: 1 1 auto; min-width: 0; }
.btn-filter-toggle {
  display: none;                     /* 桌面端不显示（下拉直接铺开） */
  align-items: center; gap: 5px;
  flex: none; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 14px; font-family: inherit; color: var(--text); cursor: pointer;
}
.btn-filter-toggle .ico { font-size: 13px; opacity: .7; }
.btn-filter-toggle.active { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.ft-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 11px; font-style: normal;
}

@media (max-width: 900px) {
  .btn-filter-toggle { display: inline-flex; }
  /* 筛选面板默认收起，点“筛选”才展开 */
  .filters {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px; margin-top: 10px;
  }
  .filters.open { display: grid; }
  .filters select, .filters input, .filters .btn-reset { min-width: 0; width: 100%; min-height: 42px; font-size: 15px; }
  .filters .btn-reset { grid-column: 1 / -1; }
}

/* ---------- 机型选择条：压扁 ---------- */
@media (max-width: 760px) {
  .toolbar { padding-top: 10px; }
  .model-cards { gap: 6px; margin-top: 0; }
  .model-card { padding: 6px 4px; border-radius: 10px; }
  .model-card img { height: 40px; margin-bottom: 2px; }
  .model-card strong { font-size: 12px; line-height: 1.25; }
  .model-card small { display: none; }        /* 手机上不显示副标题，省高度 */
  .toolbar .wrap { padding-top: 0; }
}

/* ---------- 机器卡片：整体瘦身（图片矮、文字紧凑、按钮小） ---------- */
@media (max-width: 760px) {
  .content { padding-top: 12px; }
  .result-bar { margin-bottom: 8px; font-size: 13px; }
  .grid { gap: 10px; }

  .card-media { aspect-ratio: 1 / 1; }          /* 图片再矮一点 */
  .card-media .badge { font-size: 10px; padding: 2px 6px; }
  .pick { width: 34px; height: 34px; }
  .pick span { font-size: 10px; }

  .card-body { padding: 8px 9px 10px; }
  .card-body h3 { font-size: 14px; margin-bottom: 2px; }
  .card-body h3 .mem { font-size: 11px; }
  .card-body .sku { font-size: 11px; margin-bottom: 1px; }
  .card-body .sub { font-size: 11px; margin-bottom: 6px; }

  .card-foot { flex-wrap: nowrap; gap: 6px; margin-top: 6px; align-items: center; }
  .price { flex: 1 1 auto; min-width: 0; }
  .price strong { font-size: 16px; }
  .price del { font-size: 11px; }
  .btn-detail { min-height: 34px; padding: 0 10px; font-size: 13px; flex: none; }
  .btn-mini-buy { min-height: 34px; min-width: 40px; font-size: 13px; margin-left: 0; padding: 0 12px; }
}

@media (max-width: 520px) {
  .model-card img { height: 34px; }
  .model-card strong { font-size: 11.5px; }
  .card-media { aspect-ratio: 4 / 3; }          /* 极窄屏图片略高一点，避免太扁 */
  .card-body h3 { font-size: 13.5px; }
  .btn-detail { padding: 0 9px; font-size: 12.5px; }
  .btn-mini-buy { padding: 0 10px; font-size: 12.5px; min-width: 36px; }
}

/* ---------- 结果条与提示更紧凑 ---------- */
@media (max-width: 760px) {
  .compare-hint { display: none; }              /* 手机上不显示对比提示，省一行 */
  .empty { padding: 32px 0; font-size: 14px; }
}

/* 机型选择条再压扁：手机上一屏尽量多露机器 */
@media (max-width: 760px) {
  .model-cards { gap: 5px !important; }
  .model-card { padding: 5px 3px !important; min-height: 0; }
  .model-card img { height: 34px !important; margin-bottom: 1px !important; }
  .model-card strong { font-size: 11.5px !important; font-weight: 600; }
  .model-card small { display: none !important; }
  /* 机型条不要吸顶，滚动时把空间让给机器列表 */
  .model-cards { position: static; }
}
@media (max-width: 520px) {
  .model-card img { height: 30px !important; }
  .model-card strong { font-size: 11px !important; }
}

/* 机型选择条：手机改成单行横滑（3 行 → 1 行，省约 100px） */
@media (max-width: 900px) {
  .model-cards {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: 6px !important;
    padding: 2px 0 6px;
    scrollbar-width: none;              /* 隐藏横向滚动条，更像原生 App */
  }
  .model-cards::-webkit-scrollbar { display: none; }
  .model-card {
    flex: 0 0 auto !important;
    min-width: 76px;
    scroll-snap-align: start;
  }
  /* 右侧加一点渐隐，暗示可以横滑 */
  .model-cards { mask-image: linear-gradient(90deg, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); }
}

/* 机型卡再收紧：单行横滑的每个卡片更扁 */
@media (max-width: 900px) {
  .model-card {
    min-width: 66px !important;
    padding: 5px 6px !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .model-card img { height: 32px !important; width: auto !important; margin: 0 0 2px !important; }
  .model-card strong { font-size: 11.5px !important; line-height: 1.2 !important; white-space: nowrap; }
  .model-cards { padding: 2px 0 4px !important; }
  /* 有图时不额外撑高 */
  .model-card img[style*="display: none"] { display: none !important; }
}

/* 机型选择条（真实类名是 .chip）：用更高优先级覆盖，避免被后面的 .chip 规则盖掉 */
@media (max-width: 900px) {
  .chips.model-cards { padding: 2px 0 4px !important; gap: 6px !important; }
  .chips.model-cards > .chip {
    padding: 5px 8px !important;
    min-height: 0 !important;
    min-width: 64px;
    border-radius: 10px !important;
    display: flex !important; flex-direction: column; align-items: center; justify-content: center;
  }
  .chips.model-cards > .chip .chip-name { font-size: 11.5px !important; line-height: 1.25 !important; white-space: nowrap; }
  .chips.model-cards > .chip img { height: 32px !important; width: auto !important; margin: 0 0 2px !important; }
  .chips.model-cards > .chip small { display: none !important; }
}
@media (max-width: 520px) {
  .chips.model-cards > .chip { padding: 4px 7px !important; min-width: 58px; }
  .chips.model-cards > .chip .chip-name { font-size: 11px !important; }
}

/* 机型条与搜索栏之间的空隙收紧 */
@media (max-width: 900px) {
  .toolbar { padding: 10px 0 0 !important; }
  .toolbar .wrap { padding-bottom: 0 !important; }
  .filter-bar { margin-top: 6px !important; }
  .chips.model-cards { margin-bottom: 0 !important; }
  .content { padding-top: 10px !important; }
  .result-bar { margin: 0 0 6px !important; padding: 0 !important; }
}

/* 平板/中屏（760-900px）：机型条别压太扁，图片保留 */
@media (min-width: 761px) and (max-width: 900px) {
  .chips.model-cards { padding: 4px 0 6px !important; }
  .chips.model-cards > .chip { padding: 8px 10px !important; min-width: 84px; }
  .chips.model-cards > .chip .chip-name { font-size: 13px !important; }
  .chips.model-cards > .chip img { height: 48px !important; margin-bottom: 3px !important; }
  /* 中等屏幕卡片三列更好看 */
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}



/* ============================================================
   搜索 + 筛选：随页面正常滚动（不吸顶）
   ============================================================ */
.filter-sticky {
  position: static;                 /* 不固定，跟着页面走 */
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.filter-sticky .filter-bar { margin: 0; padding: 10px 0; gap: 8px; }
.filter-sticky .filters { margin: 0; padding-bottom: 12px; }

@media (max-width: 900px) {
  .toolbar { position: static !important; top: auto !important; }
  .filter-sticky .filter-bar { padding: 8px 0; }
  .filter-sticky .filters { padding-bottom: 10px; }
  .content { padding-top: 0 !important; }
  .content > .wrap { padding-top: 10px; }
}

/* ============================================================
   机器卡片底部：价格一行、按钮一行（彻底避免互相挤压）
   原因：手机卡片只有 135~190px 宽，价格（现价+划线原价）约 91px，
        按钮（查看详情+买）约 52px，横排必挤 → 改成上下两行
   ============================================================ */
.card-foot { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin-top: 8px; }

/* 第一行：价格（现价 + 划线原价），占满整行 */
.card-foot .price {
  display: flex; align-items: baseline; gap: 6px; flex-wrap: nowrap;
  min-width: 0; width: 100%;
}
.card-foot .price strong { white-space: nowrap; }
.card-foot .price del { white-space: nowrap; }

/* 第二行：按钮，两个等分 */
.card-actions { display: flex; gap: 6px; width: 100%; }
.card-actions .btn-detail,
.card-actions .btn-mini-buy { flex: 1 1 0; min-width: 0; margin: 0; }

@media (max-width: 760px) {
  .card-foot { gap: 5px; margin-top: 7px; }
  .card-foot .price { gap: 5px; }
  .card-foot .price strong { font-size: 16px; letter-spacing: -.3px; }
  .card-foot .price del { font-size: 11.5px; }
  .card-actions { gap: 5px; }
  .card-actions .btn-detail,
  .card-actions .btn-mini-buy {
    height: 30px; min-height: 30px; line-height: 28px;
    padding: 0 6px; font-size: 12px; border-radius: 8px;
  }
}

@media (max-width: 380px) {
  .card-foot .price strong { font-size: 15px; }
  .card-foot .price del { font-size: 10.5px; }
  .card-actions .btn-detail,
  .card-actions .btn-mini-buy { height: 28px; min-height: 28px; line-height: 26px; font-size: 11.5px; }
  .card-body { padding: 7px 8px 9px; }
  .card-body h3 { font-size: 13px; }
  .card-body .sku, .card-body .sub { font-size: 10.5px; }
}

/* 卡片图片撑满卡片宽度，视觉更整齐 */
@media (max-width: 760px) {
  .card-media img { width: 100%; height: 100%; object-fit: cover; }
}
