:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --ink: #1f2d3d;
  --ink-soft: #5b6b7e;
  --line: #e8edf4;
  --brand: #1f7ae0;
  --brand-2: #2f9bff;
  --brand-soft: #e8f2fd;
  --ok: #1aa260;
  --ok-soft: #e6f7ee;
  --warn: #d98a00;
  --warn-soft: #fdf3e0;
  --bad: #d9483b;
  --bad-soft: #fdecea;
  --radius: 16px;
  --shadow: 0 4px 18px rgba(31,45,61,.07);
  --shadow-hover: 0 10px 30px rgba(31,45,61,.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(1200px 400px at 10% -10%, #eaf3ff 0%, rgba(234,243,255,0) 60%),
    radial-gradient(1000px 380px at 100% -5%, #eaf7ff 0%, rgba(234,247,255,0) 55%),
    var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
a { color: var(--brand); text-decoration: none; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 18px;
  padding: 12px 22px;
}
.topbar .logo {
  font-weight: 800; font-size: 18px; color: var(--ink); display: flex; align-items: center; gap: 10px;
  text-decoration: none; cursor: pointer; transition: color .18s, transform .18s;
}
.topbar .logo:hover { color: var(--brand); transform: translateX(2px); }
.topbar .logo:hover .dot { box-shadow: 0 0 0 6px rgba(31,122,224,.18); }
.topbar .logo .dot { transition: box-shadow .18s; }
.topbar .logo:active { transform: scale(.98); }
.topbar .logo .dot { width: 11px; height: 11px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #46c0ff); display: inline-block; box-shadow: 0 0 0 4px rgba(31,122,224,.12); }
.topbar nav { margin-left: auto; display: flex; gap: 6px; font-size: 14px; }
.topbar nav a { color: var(--ink-soft); padding: 7px 14px; border-radius: 999px; transition: all .15s; }
.topbar nav a.active, .topbar nav a:hover { color: var(--brand); background: var(--brand-soft); }

/* ---------- 容器 ---------- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 26px 22px 60px; }

/* ---------- 首页 ---------- */
.hero {
  background: linear-gradient(135deg, #1f7ae0, #34a4ff 70%, #46c0ff);
  color: #fff; border-radius: 22px; padding: 40px 36px;
  box-shadow: 0 12px 30px rgba(31,122,224,.25); margin-bottom: 26px; position: relative; overflow: hidden;
}
.hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; background: rgba(255,255,255,.12); border-radius: 50%; }
.hero::before { content: ""; position: absolute; right: 90px; bottom: -70px; width: 150px; height: 150px; background: rgba(255,255,255,.08); border-radius: 50%; }
.hero h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: .5px; }
.hero-brand {
  position: absolute; top: 50%; right: 22px;
  transform: translateY(-50%);
  font-size: 24px; font-weight: 800; color: rgba(255,255,255,.92);
  letter-spacing: 4px; z-index: 2;
}
.hero p { margin: 0; opacity: .94; font-size: 15px; }
.hero .note { margin-top: 16px; font-size: 12.5px; opacity: .82; border-left: 3px solid rgba(255,255,255,.5); padding-left: 10px; }

/* ---------- 筛选栏 ---------- */
.filterbar {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 22px;
}
.filter-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.search {
  flex: 1; min-width: 220px; padding: 11px 15px; border: 1px solid var(--line);
  border-radius: 11px; font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s; background: #fbfdff;
}
.search:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: #fff; }
.count { font-size: 13px; color: var(--ink-soft); font-weight: 600; white-space: nowrap; background: var(--brand-soft); padding: 5px 12px; border-radius: 999px; }
.facet { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; border-top: 1px dashed var(--line); }
.facet:first-of-type { border-top: none; }
.flabel { font-size: 13px; color: var(--ink-soft); font-weight: 700; flex-shrink: 0; width: 64px; padding-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  font-size: 13px; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  transition: all .12s; font-family: inherit;
}
.chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.chip.active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 4px 10px rgba(31,122,224,.3); }

.pcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 18px; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--ink-soft); padding: 40px 0; font-size: 14px; }
.pcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
  transition: transform .15s, box-shadow .15s, border-color .15s; position: relative; overflow: hidden;
  animation: fadeInUp .5s cubic-bezier(.22,.61,.36,1) both;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #cfe0f5; }
.pcard.is-tested { border-color: #bfe6cf; }
.pcard.is-tested::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ok); }
.pcard-top { display: flex; gap: 14px; align-items: center; }
.pcard-cover { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: #f1f5fa; position: relative; }
.pcard-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-cover::after {
  content: "🔍"; position: absolute; right: 5px; bottom: 5px; z-index: 2;
  width: 22px; height: 22px; border-radius: 50%; background: rgba(15,23,34,.6); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
  opacity: 0; transition: opacity .15s; pointer-events: none;
}
.pcard-cover:hover::after { opacity: 1; }
.pcard-topmeta { min-width: 0; flex: 1; }
.pcard-topmeta h3 { margin: 6px 0 0; font-size: 17px; line-height: 1.35; }
.pcard h3 { margin: 0; font-size: 18px; }
.pcard .plist { margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--ink-soft); }
.pcard .plist li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.pcard .plist li span:first-child { color: var(--ink-soft); }
.pcard .plist li span:last-child { color: var(--ink); font-weight: 600; text-align: right; }
.badge-todo {
  align-self: flex-start; font-size: 12px; padding: 4px 11px; border-radius: 999px;
  background: var(--warn-soft); color: var(--warn); font-weight: 600;
}
.pcard.is-tested .badge-todo { background: var(--ok-soft); color: var(--ok); }
.pcard .go {
  margin-top: auto; text-align: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  padding: 11px; border-radius: 11px; font-weight: 600; font-size: 14px; transition: opacity .15s, transform .15s;
}
.pcard .go:hover { opacity: .94; transform: translateY(-1px); }

/* ---------- 品牌 Logo ---------- */
.brand-logo { height: 26px; width: auto; max-width: 110px; object-fit: contain; display: inline-block; vertical-align: middle; }
.brand-logo.bl-product { height: 34px; max-width: 150px; }
.brand-logo.bl-ov { height: 30px; max-width: 130px; }
.brand-logo-text { font-weight: 800; color: var(--brand); font-size: 15px; }

/* 产品图占位（预留空位，用户后续上传） */
.cover-ph {
  width: 100%; height: 100%; min-height: 84px; border-radius: 12px;
  background: repeating-linear-gradient(45deg, #eef3f9, #eef3f9 12px, #e7eef6 12px, #e7eef6 24px);
  border: 2px dashed #c2d4e8; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; color: var(--ink-soft); text-align: center; padding: 8px;
}
.cover-ph .ph-ic { font-size: 26px; }
.cover-ph .ph-t1 { font-weight: 700; font-size: 13px; color: var(--ink); }
.cover-ph .ph-t2 { font-size: 11px; opacity: .8; }
.pcard-cover .cover-ph { min-height: 84px; }

/* ---------- 产品页布局 ---------- */
.product-head {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px;
}
.product-head .cover {
  width: 200px; height: 200px; border-radius: 14px; background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center; font-size: 46px; color: var(--brand);
  flex-shrink: 0; overflow: hidden;
}
.product-head .cover img { width: 100%; height: 100%; object-fit: cover; }
.product-head .cover .cover-ph { border: none; border-radius: 14px; }
.product-head .meta { flex: 1; min-width: 260px; }
.brand-line { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.product-head h2 { margin: 0 0 6px; font-size: 22px; }
.product-head .sub { color: var(--ink-soft); font-size: 13px; margin-bottom: 12px; }
.product-head .params { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 6px 22px; font-size: 13px; }
.product-head .params div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 3px 0; }
.product-head .params div b { color: var(--ink-soft); font-weight: 500; }
.product-head .params div span { font-weight: 600; }

.layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } }

/* 侧边菜单 */
.sidemenu { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: sticky; top: 76px; }
.sidemenu .grp { border-bottom: 1px solid var(--line); }
.sidemenu .grp:last-child { border-bottom: none; }
.sidemenu .grp > .gtitle {
  padding: 12px 14px; font-weight: 700; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; gap: 8px; user-select: none;
  background: #fafcff;
}
.sidemenu .grp > .gtitle .arrow { margin-left: auto; transition: transform .15s; color: var(--ink-soft); font-size: 12px; }
.sidemenu .grp.collapsed .arrow { transform: rotate(-90deg); }
.sidemenu .grp.collapsed .items { display: none; }
.sidemenu .items { padding: 4px 0 8px; }
.sidemenu .items a {
  display: block; padding: 7px 14px 7px 30px; font-size: 13px; color: var(--ink-soft);
  border-left: 3px solid transparent;
}
.sidemenu .items a:hover { background: var(--brand-soft); color: var(--brand); }
.sidemenu .items a.active { background: var(--brand-soft); color: var(--brand); border-left-color: var(--brand); font-weight: 600; }

/* 内容区 */
.content { min-width: 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.panel h2 { margin: 0 0 4px; font-size: 20px; }
.panel .grpname { color: var(--brand); font-size: 12.5px; font-weight: 600; margin-bottom: 14px; }
.method { background: var(--brand-soft); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; color: #2a4a6b; margin: 12px 0 18px; }

/* 视频占位 */
.video-box {
  position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 12px;
  background: repeating-linear-gradient(45deg, #eef2f7, #eef2f7 14px, #e7edf4 14px, #e7edf4 28px);
  border: 2px dashed #c2d0e0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; color: var(--ink-soft); text-align: center; padding: 16px;
  margin-top: 18px;
}
.video-box .ic { font-size: 38px; }
.video-box .t1 { font-weight: 700; font-size: 15px; color: var(--ink); }
.video-box .t2 { font-size: 12px; }
.video-box .code-hint {
  margin-top: 6px; font-size: 11.5px; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 10px; color: var(--ink-soft); max-width: 90%;
}
.video-embed { width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin-top: 18px; }
.video-embed iframe, .video-embed video { width: 100%; height: 100%; border: 0; display: block; }

.img-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 12px; margin-top: 14px; }
.img-ph { aspect-ratio: 4/3; border-radius: 10px; background: #eef2f7; border: 2px dashed #c2d0e0; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 12.5px; text-align: center; padding: 8px; }
.img-cell { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: #eef2f7; border: 1px solid var(--line); }
.img-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 迷你结果卡 */
.mini-result { margin-top: 20px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mini-result .mr-title { background: #fafcff; padding: 8px 14px; font-size: 13px; font-weight: 700; }
.mini-result table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini-result td { padding: 8px 14px; border-top: 1px solid var(--line); }
.mini-result td:first-child { color: var(--ink-soft); width: 96px; }

/* ---------- 总览 ---------- */
.ov-product { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 22px; position: relative; overflow: hidden; }
.ov-product.is-tested { border-color: #bfe6cf; }
.ov-product.is-tested::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ok); }
.ov-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.ov-head h2 { margin: 0; font-size: 20px; }
.ov-head .badge-todo { align-self: center; }
.ov-product h2 { margin: 0 0 2px; font-size: 20px; }
.ov-product .osub { color: var(--ink-soft); font-size: 13px; margin-bottom: 14px; }
.ov-section-title { font-size: 15px; font-weight: 700; margin: 18px 0 10px; display: flex; align-items: center; gap: 8px; }
.ov-section-title .pill { font-size: 11px; padding: 2px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 600; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); }
.tbl th, .tbl td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { background: #fafcff; font-weight: 700; color: var(--ink); }
/* 表头固定：在滚动容器内吸顶，滚动时始终可见 */
.tbl thead th { position: sticky; top: 0; z-index: 2; background: #fafcff; box-shadow: inset 0 -1px 0 var(--line); }
.tbl tr:last-child td { border-bottom: none; }
/* 详细测试数据：限制高度并吸顶表头（移动端长表更好读） */
.tbl-scroll { max-height: 62vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; -webkit-overflow-scrolling: touch; }
.tbl-scroll > .tbl { border: none; border-radius: 0; overflow: visible; }
.tbl-scroll > .tbl thead th { top: 0; z-index: 3; }
.tbl td.verdict { font-weight: 700; white-space: nowrap; }
.v-ok { color: var(--ok); }
.v-warn { color: var(--warn); }
.v-bad { color: var(--bad); }
.v-todo { color: var(--ink-soft); }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.tag-bad { background: var(--bad-soft); color: var(--bad); }
.tag-todo { background: #eef2f7; color: var(--ink-soft); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }

.empty-hint { font-size: 12px; color: var(--ink-soft); margin: 4px 0 0; }

/* footer */
.foot { text-align: center; color: var(--ink-soft); font-size: 13.5px; padding: 26px 0 8px; }

/* 视频直链播放器（管理后台粘贴 mp4/webm 直链时使用） */
.vod-video { width: 100%; max-height: 520px; background: #000; border-radius: 12px; display: block; object-fit: contain; }

/* ---------- 判定结果汇总徽章 ---------- */
.vsum { margin-top: 12px; }
.vsum.compact { margin: 2px 0 10px; }
.vs-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vs-total { font-size: 12.5px; font-weight: 800; color: var(--ink); }
.vs {
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  white-space: nowrap; line-height: 1.5;
  animation: vsPop .38s cubic-bezier(.34,1.56,.64,1) both;
}
.vs-ok   { background: var(--ok-soft);   color: var(--ok); }
.vs-warn { background: var(--warn-soft); color: var(--warn); }
.vs-bad  { background: var(--bad-soft);  color: var(--bad); }
.vs-todo { background: #eef2f7;          color: var(--ink-soft); }
.vs-line .vs:nth-child(2) { animation-delay: .04s; }
.vs-line .vs:nth-child(3) { animation-delay: .10s; }
.vs-line .vs:nth-child(4) { animation-delay: .16s; }
.vs-line .vs:nth-child(5) { animation-delay: .22s; }
@keyframes vsPop { from { opacity: 0; transform: translateY(5px) scale(.9); } to { opacity: 1; transform: none; } }

.vs-bar {
  display: flex; height: 6px; border-radius: 999px; overflow: hidden;
  background: #edf1f6; margin-top: 8px; max-width: 460px;
}
.vs-bar i { display: block; height: 100%; transition: width .6s cubic-bezier(.22,.61,.36,1); }
.vs-bar .b-ok   { background: linear-gradient(90deg,#2fbf71,#28a862); }
.vs-bar .b-warn { background: linear-gradient(90deg,#f0a94c,#e8942c); }
.vs-bar .b-bad  { background: linear-gradient(90deg,#f0685f,#d9342a); }
.pcard .vsum.compact .vs-bar { margin-top: 6px; max-width: none; }

/* ---------- 产品一句话总结 ---------- */
.prod-summary {
  margin-top: 10px;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 13.2px;
  line-height: 1.55;
  color: var(--ink);
  background: linear-gradient(135deg, #fff8e6, #fff3d6);
  border: 1px solid #f0dca0;
  position: relative;
}
.prod-summary::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 10px 0 0 10px;
  background: linear-gradient(180deg, #f5a623, #e8942c);
}

/* ---------- 上一项 / 下一项 ---------- */
.item-nav {
  display: flex; align-items: stretch; gap: 10px; margin-top: 22px;
  padding-top: 16px; border-top: 1px dashed var(--line);
  animation: panelIn .5s cubic-bezier(.22,.61,.36,1) .26s both;
}
.inav {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px;
  padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-family: inherit; text-align: left;
  transition: transform .15s, box-shadow .15s, border-color .15s, background .15s;
}
.inav.next { text-align: right; align-items: flex-end; }
.inav .ia { font-size: 11.5px; color: var(--brand); font-weight: 800; letter-spacing: .3px; }
.inav .it {
  font-size: 13.5px; color: var(--ink); font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.inav:not(.disabled):hover {
  border-color: var(--brand); background: #f7fbff;
  transform: translateY(-2px); box-shadow: 0 6px 16px rgba(31,122,224,.15);
}
.inav.prev:not(.disabled):hover { transform: translateY(-2px) translateX(-3px); }
.inav.next:not(.disabled):hover { transform: translateY(-2px) translateX(3px); }
.inav:not(.disabled):active { transform: scale(.98); }
.inav.disabled { opacity: .45; cursor: default; }
.inav.disabled .ia { color: var(--ink-soft); }
.inav-count {
  align-self: center; font-size: 12px; font-weight: 800; color: var(--ink-soft);
  background: var(--brand-soft); color: var(--brand);
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}

.back-link { font-size: 13px; color: var(--ink-soft); display: inline-block; margin-bottom: 10px; }

/* ============================================================
 * 丝滑动效 & 主推标记
 * ============================================================ */
html { scroll-behavior: smooth; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulseRec {
  0%, 100% { box-shadow: 0 3px 8px rgba(255,122,24,.35), 0 0 0 0 rgba(255,153,0,.5); }
  50%      { box-shadow: 0 3px 8px rgba(255,122,24,.35), 0 0 0 8px rgba(255,153,0,0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes shine {
  0%   { transform: translateX(-120%) skewX(-18deg); }
  60%  { transform: translateX(220%) skewX(-18deg); }
  100% { transform: translateX(220%) skewX(-18deg); }
}

/* 总览块也逐张错峰入场 */
.ov-product { animation: fadeInUp .5s cubic-bezier(.22,.61,.36,1) both; }

/* 主推款卡片：暖色描边 + 微光背景 */
.pcard.featured {
  border-color: #ffd591;
  background: linear-gradient(180deg, #fffdf6, #ffffff 40%);
  box-shadow: 0 6px 22px rgba(255,153,0,.14);
}
.pcard.featured:hover { border-color: #ffbf66; box-shadow: 0 14px 34px rgba(255,153,0,.22); transform: translateY(-3px); }
.ov-product.featured { border-color: #ffd591; box-shadow: 0 6px 22px rgba(255,153,0,.12); }

/* 右上角「性价比推荐」角标 */
.rec-corner {
  position: absolute; top: 0; right: 0; z-index: 4;
  font-size: 11.5px; font-weight: 800; color: #fff; letter-spacing: .3px;
  padding: 5px 12px 6px; border-bottom-left-radius: 12px;
  background: linear-gradient(135deg, #ff9d2e, #ff7a18);
  animation: pulseRec 2.2s ease-in-out infinite;
  overflow: hidden;
}
.rec-corner::after {
  content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.55), rgba(255,255,255,0));
  animation: shine 3.2s ease-in-out infinite;
}
.rec-corner.ov { top: 14px; right: 14px; border-radius: 999px; padding: 5px 13px; border-bottom-left-radius: 999px; }

/* 产品页内联推荐标 */
.rec-tag {
  font-size: 11.5px; font-weight: 800; color: #fff; padding: 3px 11px; border-radius: 999px;
  background: linear-gradient(135deg, #ff9d2e, #ff7a18); box-shadow: 0 3px 8px rgba(255,122,24,.3);
}

/* hero 轻微呼吸浮动 */
.hero { animation: floatY 6s ease-in-out infinite; }

/* 无障碍：尊重系统「减少动态」设置 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- 图片点击放大 Lightbox ---------- */
.zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 9999; display: none; }
.lightbox.open { display: block; }
.lightbox .lb-backdrop { position: absolute; inset: 0; background: rgba(15,23,34,.88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: lbFade .2s ease both; }
.lightbox .lb-panel { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 5vh 5vw; }
.lightbox .lb-img {
  max-width: 92vw; max-height: 86vh; width: auto; height: auto; object-fit: contain;
  border-radius: 14px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.55);
  cursor: zoom-out; animation: lbPop .26s cubic-bezier(.22,.61,.36,1) both;
}
.lightbox .lb-close {
  position: absolute; top: 18px; right: 22px; z-index: 3;
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff; font-size: 18px; line-height: 1;
  cursor: pointer; backdrop-filter: blur(4px); transition: background .15s, transform .15s;
}
.lightbox .lb-close:hover { background: rgba(255,255,255,.32); transform: scale(1.07); }
.lightbox .lb-tip { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.72); font-size: 12.5px; pointer-events: none; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbPop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }

/* ---------- 详情咨询按钮 ---------- */
.consult-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #ff9d2e, #ff7a18); color: #fff;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  padding: 12px 22px; border-radius: 999px; box-shadow: 0 6px 18px rgba(255,122,24,.32);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.consult-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,122,24,.42); }
.consult-btn:active { transform: translateY(0); opacity: .92; }
.hero .consult-btn { margin: 16px 0 4px; }
.consult-btn.block { display: flex; width: 100%; margin: 4px 0 18px; }
/* 移动端固定底栏：默认隐藏，仅小屏显示 */
.mobile-cta { display: none; }

/* 移动端测试项标签栏（PC端隐藏） */
.mobile-tabs { display: none; }
.mtabs-wrap {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 4px;
}
.mtab {
  flex-shrink: 0; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-soft); font-size: 12.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: all .15s;
  font-family: inherit;
}
.mtab:hover { border-color: var(--brand); color: var(--brand); }
.mtab.active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; box-shadow: 0 3px 8px rgba(31,122,224,.25); }
.mtabs-hint { text-align: center; font-size: 14px; font-weight: 700; color: var(--brand); padding: 4px 0 10px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 移动端适配 ---------- */
@media (max-width: 860px) {
  .wrap { padding: 18px 14px 64px; }
  .hero { padding: 26px 20px; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 14px; }
  .hero-brand { top: 50%; right: 14px; transform: translateY(-50%); font-size: 18px; letter-spacing: 3px; }
  /* 筛选栏：标签竖排更清晰 */
  .facet { flex-direction: column; align-items: flex-start; gap: 6px; }
  .flabel { width: auto; padding-top: 0; }
  /* 卡片单列，避免 320px 下限导致横向溢出 */
  .pcards { grid-template-columns: 1fr; }
  /* 产品页：侧边菜单取消 sticky，分组卡片化，不再遮挡内容 */
  .layout { grid-template-columns: 1fr; }
  .sidemenu { position: static; top: auto; box-shadow: none; overflow: visible; }
  .sidemenu .grp { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--card); box-shadow: var(--shadow); }
  .sidemenu .grp > .gtitle { border-radius: 12px 12px 0 0; }
  /* 移动端：隐藏PC侧边栏，显示紧凑标签栏（在内容上方） */
  .sidemenu { display: none; }
  .mobile-tabs { display: block; }
  /* 移动端：隐藏中间的咨询按钮，只保留底部固定栏 */
  .consult-btn.block { display: none !important; }
}
@media (max-width: 640px) {
  .topbar { padding: 10px 14px; gap: 10px; }
  .topbar .logo { font-size: 15px; }
  .topbar nav { gap: 14px; font-size: 13px; }
  .product-head { padding: 16px; gap: 14px; }
  .product-head .cover { width: 140px; height: 140px; }
  .product-head .params { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
  .img-row { grid-template-columns: 1fr; }
  .foot { font-size: 11.5px; }
  /* 总览表格横向滚动，防溢出 */
  .ov-product { overflow-x: auto; }
}
/* 移动端固定底栏：随时可点咨询 */
@media (max-width: 860px) {
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 500;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  }
  .mobile-cta .consult-btn { width: 100%; }
  .foot { margin-bottom: 72px; }

  /* 产品页：详细数据按钮在窄屏占满 */
  .detail-btn { width: 100%; justify-content: center; margin-top: 4px; }
}

/* ---------- 查看详细测试数据（弹层） ---------- */
.detail-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg,#ff5a4d,#e5342a); color: #fff;
  font-size: 14.5px; font-weight: 800; letter-spacing: .3px; border: none;
  box-shadow: 0 4px 14px rgba(217,52,42,.32);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  animation: attnPulse 2.4s ease-in-out infinite;
}
.detail-btn::after {
  content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.45), rgba(255,255,255,0));
  animation: shine 3.4s ease-in-out infinite; pointer-events: none;
}
.detail-btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 8px 22px rgba(217,52,42,.45); }
.detail-btn:active { transform: translateY(0) scale(.97); }
@keyframes attnPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(217,52,42,.32), 0 0 0 0 rgba(229,52,42,.45); }
  55%      { box-shadow: 0 4px 14px rgba(217,52,42,.32), 0 0 0 9px rgba(229,52,42,0); }
}

.modal-mask {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(15,23,42,.55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.modal-mask.show { display: flex; animation: dmFade .2s ease; }
.modal-box {
  background: var(--card); border-radius: 16px; width: min(960px, 100%);
  max-height: 90vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  animation: dmPop .24s cubic-bezier(.2,.8,.25,1);
}
.dm-head {
  display: flex; align-items: center; gap: 12px; padding: 15px 18px;
  background: linear-gradient(135deg,#2f9bff,#1f7ae0); color: #fff;
}
.dm-head .bl-product { background: rgba(255,255,255,.94); border-radius: 8px; padding: 4px 6px; height: 34px; width: auto; object-fit: contain; }
.dm-titles { flex: 1; min-width: 0; }
.dm-title { font-size: 17px; font-weight: 800; }
.dm-sub { font-size: 12.5px; opacity: .92; margin-top: 2px; }
.dm-close {
  flex: none; width: 34px; height: 34px; border: none; border-radius: 9px; cursor: pointer;
  background: rgba(255,255,255,.2); color: #fff; font-size: 16px; line-height: 1; transition: background .15s;
}
.dm-close:hover { background: rgba(255,255,255,.34); }
.dm-body { padding: 14px 18px 18px; overflow: auto; -webkit-overflow-scrolling: touch; }
.dm-body .tbl { font-size: 13px; min-width: 760px; }

@keyframes dmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dmPop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* 移动端：详细数据弹层改为底部抽屉式 */
@media (max-width: 860px) {
  .modal-mask { padding: 0; align-items: flex-end; }
  .modal-box { width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; }
}

/* ============================================================
 * 交互动效增强
 * ============================================================ */

/* —— 弹层关闭动画（原本是瞬间消失） —— */
.modal-mask.closing { animation: dmFadeOut .2s ease forwards; }
.modal-mask.closing .modal-box { animation: dmPopOut .2s ease forwards; }
@keyframes dmFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes dmPopOut {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(14px) scale(.97); }
}
@media (max-width: 860px) {
  /* 抽屉式：向下滑出 */
  @keyframes dmPopOut { from { transform: none; } to { transform: translateY(100%); } }
}

/* —— 图片放大关闭动画 —— */
.lightbox.closing .lb-backdrop,
.lightbox.closing .lb-panel { animation: lbFadeOut .18s ease forwards; }
@keyframes lbFadeOut { from { opacity: 1; } to { opacity: 0; } }

/* —— 切换测试项：内容面板淡入上移 —— */
.panel { animation: panelIn .34s cubic-bezier(.22,.61,.36,1) both; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
/* 面板内元素错峰入场，层次更明显 */
.panel .method     { animation: panelIn .38s cubic-bezier(.22,.61,.36,1) .04s both; }
.panel .video-embed,
.panel .video-box  { animation: panelIn .42s cubic-bezier(.22,.61,.36,1) .09s both; }
.panel .img-row    { animation: panelIn .46s cubic-bezier(.22,.61,.36,1) .14s both; }
.panel .mini-result{ animation: panelIn .5s  cubic-bezier(.22,.61,.36,1) .19s both; }

/* —— 测试项标签：按压反馈 + 选中弹跳 —— */
.mtab:active { transform: scale(.93); }
.mtab.active { animation: tabPop .3s cubic-bezier(.34,1.56,.64,1); }
@keyframes tabPop {
  0%   { transform: scale(.9); }
  60%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}
/* PC 侧边菜单选中项也加一点动效 */
.sidemenu .items a { transition: background .16s, color .16s, padding-left .16s, border-left-color .16s; }
.sidemenu .items a:hover { padding-left: 34px; }

/* —— 测试截图：hover 微放大 + 放大镜提示 —— */
.img-cell { position: relative; }
.img-cell img { transition: transform .35s cubic-bezier(.22,.61,.36,1); }
.img-cell:hover img { transform: scale(1.07); }
.img-cell::after {
  content: "🔍"; position: absolute; right: 7px; bottom: 7px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%; background: rgba(15,23,34,.6); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  opacity: 0; transform: scale(.8); transition: opacity .18s, transform .18s; pointer-events: none;
}
.img-cell:hover::after { opacity: 1; transform: scale(1); }

/* —— 返回链接 / 参数行 微交互 —— */
.back-link { transition: color .15s, transform .15s; }
.back-link:hover { color: var(--brand); transform: translateX(-3px); }
.product-head .params div { transition: background .15s; border-radius: 5px; }
.product-head .params div:hover { background: var(--brand-soft); }
.tbl tbody tr { transition: background .14s; }
.tbl tbody tr:hover { background: #f7fbff; }

/* ============================================================
 * 移动端左下角「返回首页」悬浮按钮
 * ============================================================ */
.fab-home {
  display: none; align-items: center; gap: 6px;
  position: fixed; left: 14px; z-index: 600;
  bottom: calc(78px + env(safe-area-inset-bottom));
  padding: 10px 16px 10px 13px; border-radius: 999px;
  background: rgba(255,255,255,.97);
  border: 1px solid #d8e6f7; color: var(--brand);
  font-size: 13.5px; font-weight: 800; text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 20px rgba(31,45,61,.2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: fabIn .45s cubic-bezier(.22,.61,.36,1) .15s both;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.fab-home .fh-ic { font-size: 16px; line-height: 1; }
.fab-home:active { transform: scale(.93); box-shadow: 0 3px 10px rgba(31,45,61,.22); }
@keyframes fabIn {
  from { opacity: 0; transform: translateY(16px) scale(.86); }
  to   { opacity: 1; transform: none; }
}
/* 总览页无底部咨询栏，悬浮按钮可以更靠下 */
body[data-page="overview"] .fab-home { bottom: calc(18px + env(safe-area-inset-bottom)); }

@media (max-width: 860px) {
  .fab-home { display: inline-flex; }
  /* 已有悬浮按钮，页面顶部的文字版返回链接隐藏，避免重复 */
  .back-link { display: none; }

  /* 上一项/下一项：窄屏压缩，序号移到中间小胶囊 */
  .item-nav { gap: 8px; margin-top: 18px; }
  .inav { padding: 9px 11px; border-radius: 10px; }
  .inav .ia { font-size: 11px; }
  .inav .it { font-size: 12.5px; -webkit-line-clamp: 2; }
  .inav-count { font-size: 11.5px; padding: 4px 9px; }

  /* 判定汇总徽章 */
  .vs { font-size: 11.5px; padding: 3px 9px; }
  .vs-total { font-size: 12px; }
  .vs-bar { max-width: none; }
}
