/* ============================================================
   泉江物联 · 设计系统
   品牌：泉江科技（QuanJiang Tech）
   ============================================================ */

:root {
  --brand: #1a7fd4;
  --brand-dark: #12609f;
  --brand-deep: #0d4a7d;
  --brand-light: #eaf4fd;
  --brand-soft: #d3e8fa;
  --accent: #f08a24;
  --accent-dark: #d4740f;
  --accent-light: #fdf1e3;

  --ink: #16202e;
  --ink-2: #33415c;
  --muted: #6b7a90;
  --muted-2: #97a3b4;
  --line: #e5eaf1;
  --line-2: #eef2f7;
  --bg: #f5f8fc;
  --white: #fff;

  --ok: #14a06a;
  --danger: #e5484d;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(16, 32, 56, .06);
  --sh-2: 0 4px 16px rgba(16, 32, 56, .08);
  --sh-3: 0 12px 32px rgba(16, 32, 56, .12);

  --head-h: 68px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans CJK SC", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; border: 0; vertical-align: middle; }
a { color: var(--brand); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.35; font-weight: 700; color: var(--ink); }
h1 { font-size: 34px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
code, pre, kbd { font-family: var(--mono); }

.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 900px; }

/* ---------- 顶部公告 ---------- */
.topbar {
  background: var(--brand-deep);
  color: #cfe4f7;
  font-size: 13px;
  line-height: 36px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar a { color: #cfe4f7; }
.topbar a:hover { color: #fff; }
.topbar strong { color: #fff; font-weight: 600; }
.topbar-links { display: flex; gap: 18px; }
.topbar-links a { white-space: nowrap; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  height: var(--head-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.logo img { height: 40px; width: auto; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text b { font-size: 18px; letter-spacing: .5px; color: var(--ink); }
.logo-text span { font-size: 11px; color: var(--muted); letter-spacing: 2.5px; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav > a, .main-nav > .nav-item > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.main-nav > a:hover, .main-nav > .nav-item > a:hover,
.main-nav > a.active, .main-nav > .nav-item.active > a {
  color: var(--brand);
  background: var(--brand-light);
}
.nav-item { position: relative; }
.nav-item > a::after {
  content: "";
  width: 5px; height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  margin-left: 2px;
  opacity: .6;
}
.nav-item.no-sub > a::after { display: none; }
.nav-sub {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-3);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .18s;
}
.nav-item:hover .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-sub a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: 14px;
}
.nav-sub a:hover { background: var(--brand-light); color: var(--brand); }
.nav-sub .nav-sub-title {
  font-size: 12px;
  color: var(--muted-2);
  padding: 10px 12px 4px;
  letter-spacing: 1px;
}
.nav-sub hr { margin: 6px 4px; }

.header-tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  background: #fff;
}
.cart-btn:hover { border-color: var(--brand-soft); color: var(--brand); }
.cart-count {
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-weight: 700;
}
.cart-count[hidden] { display: none; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle i, .nav-toggle::before, .nav-toggle::after {
  display: block; height: 2px; background: var(--ink-2); margin: 4px auto; width: 18px; content: "";
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-family: inherit;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: all .16s;
  white-space: nowrap;
  text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink-2); background: #fff; }
.btn-ghost:hover { border-color: var(--brand-soft); color: var(--brand); background: var(--brand-light); }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn-sm { padding: 6px 13px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 通用块 ---------- */
.section { padding: 64px 0; }
.section-sm { padding: 42px 0; }
.section-gray { background: var(--bg); }
.section-brand { background: linear-gradient(135deg, var(--brand-deep), var(--brand) 60%, #2f9de0); color: #fff; }
.section-brand h1, .section-brand h2, .section-brand h3 { color: #fff; }
.section-brand p { color: #d5e8f8; }

.section-head { text-align: center; max-width: 780px; margin: 0 auto 40px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 { font-size: 30px; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }
.section-brand .section-head .eyebrow { color: #ffd9ad; }
.section-brand .section-head p { color: #cfe4f7; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); padding: 16px 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span.sep { color: var(--muted-2); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
}
.card-hover { transition: all .2s; }
.card-hover:hover { border-color: var(--brand-soft); box-shadow: var(--sh-2); transform: translateY(-2px); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--brand-light);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}
.tag-accent { background: var(--accent-light); color: var(--accent-dark); }
.tag-gray { background: var(--line-2); color: var(--muted); }
.tag-ok { background: #e6f7ef; color: var(--ok); }

.price { color: var(--accent-dark); font-weight: 800; }
.price .cur { font-size: 15px; margin-right: 1px; }
.price .num { font-size: 26px; letter-spacing: -.5px; }
.price-old { color: var(--muted-2); text-decoration: line-through; font-size: 14px; font-weight: 400; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, #0b3f6b 0%, #12609f 42%, #1a7fd4 78%, #35a3e5 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -140px; top: -120px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(240, 138, 36, .38), transparent 62%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-top: 68px; padding-bottom: 68px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 46px; line-height: 1.22; letter-spacing: -.5px; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: #ffc987; }
.hero-lead { font-size: 17px; color: #d3e8fa; max-width: 560px; }
.hero-sub { font-size: 15px; color: #a9cdea; max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-actions .btn-outline { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.hero-actions .btn-outline:hover { background: #fff; color: var(--brand-deep); }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; font-size: 14px; color: #cfe4f7; }
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points li::before { content: "✓"; color: #7fd6a5; font-weight: 700; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; filter: drop-shadow(0 24px 48px rgba(0, 0, 0, .3)); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .16);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 44px;
}
.hero-stats div { background: rgba(9, 45, 78, .42); padding: 18px 20px; text-align: center; }
.hero-stats b { display: block; font-size: 26px; color: #fff; line-height: 1.2; }
.hero-stats span { font-size: 13px; color: #a9cdea; }

/* ---------- 分类快捷入口 ---------- */
.cat-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.cat-strip a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
}
.cat-strip a:hover { border-color: var(--brand); color: var(--brand); box-shadow: var(--sh-2); transform: translateY(-3px); }
.cat-strip img { width: 56px; height: 56px; object-fit: contain; }

/* ---------- 产品卡片 ---------- */
.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: all .2s;
}
.product-card:hover { border-color: var(--brand-soft); box-shadow: var(--sh-2); transform: translateY(-3px); }
.product-card .thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fbfcfe;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow: hidden;
}
.product-card .thumb img { max-height: 100%; transition: transform .35s; }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .thumb .ribbon {
  position: absolute;
  top: 10px; left: 10px;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.product-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.product-card .name { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0; min-height: 44px; }
.product-card .desc { font-size: 12.5px; color: var(--muted); margin: 0; flex: 1; }
.product-card .foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.product-card .foot .price .num { font-size: 20px; }
.muted-note { font-size: 12px; color: var(--muted-2); }

/* ---------- 产品详情 ---------- */
.pd-top { display: grid; grid-template-columns: 460px 1fr; gap: 44px; padding: 26px 0 44px; }
.pd-gallery .stage {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fbfcfe;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.pd-gallery .stage img { max-height: 100%; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumbs button {
  width: 62px; height: 62px;
  padding: 4px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.pd-thumbs button.selected { border-color: var(--brand); }
.pd-thumbs img { max-height: 100%; }

.pd-info h1 { font-size: 27px; margin-bottom: 10px; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pd-buy { border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--sh-1); }
.pd-buy .row { display: flex; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); align-items: flex-start; }
.pd-buy .row:last-child { border-bottom: 0; }
.pd-buy .row > .label { flex: 0 0 68px; color: var(--muted); font-size: 14px; padding-top: 6px; }
.pd-buy .row > .value { flex: 1; min-width: 0; }
.opt-group { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.opt:hover { border-color: var(--brand-soft); color: var(--brand); }
.opt.selected { border-color: var(--brand); background: var(--brand-light); color: var(--brand-dark); font-weight: 600; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.qty button { width: 36px; height: 38px; border: 0; background: #fff; font-size: 18px; color: var(--ink-2); cursor: pointer; }
.qty button:hover { background: var(--brand-light); color: var(--brand); }
.qty input { width: 58px; height: 38px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-size: 15px; font-family: inherit; }
.price-box { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-box .price .num { font-size: 30px; }
.pd-actions { display: flex; gap: 12px; }
.pd-actions .btn { flex: 1; }
.pd-meta { margin: 14px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); display: grid; gap: 6px; }
.pd-meta li::before { content: "·"; margin-right: 7px; color: var(--brand); font-weight: 700; }

.pd-tabs {
  position: sticky;
  top: var(--head-h);
  z-index: 500;
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.pd-tabs .container { display: flex; gap: 6px; overflow-x: auto; }
.pd-tabs a { padding: 14px 16px; color: var(--ink-2); font-weight: 500; font-size: 15px; border-bottom: 2px solid transparent; white-space: nowrap; }
.pd-tabs a:hover { color: var(--brand); }
.pd-tabs a.active { color: var(--brand); border-bottom-color: var(--brand); }

.pd-section { padding: 40px 0; border-bottom: 1px solid var(--line-2); }
.pd-section:last-child { border-bottom: 0; }
.pd-section > h2 { font-size: 24px; text-align: center; margin-bottom: 28px; }

.spec-table, .cmp-table, .data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td, .cmp-table th, .cmp-table td, .data-table th, .data-table td {
  border: 1px solid var(--line);
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
}
.spec-table th, .cmp-table thead th, .data-table thead th {
  background: var(--bg);
  font-weight: 600;
  color: var(--ink-2);
  width: 168px;
}
.cmp-table thead th { text-align: center; width: auto; }
.cmp-table td { text-align: left; }
.spec-table tr:hover td, .cmp-table tbody tr:hover td { background: #fafcfe; }
.spec-table .variant { color: var(--muted); font-size: 13px; display: block; }
.spec-table .v-sep { border-top: 1px dashed var(--line); margin: 6px 0 5px; }

.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gallery-grid figure { margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fbfcfe; }
.gallery-grid img { display: block; width: 100%; }
.gallery-grid figcaption { padding: 10px 14px; font-size: 13.5px; color: var(--muted); background: #fff; border-top: 1px solid var(--line-2); }

.cmd-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 24px; list-style: none; }
.cmd-list li {
  display: flex;
  flex-direction: column;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  min-width: 148px;
}
.cmd-list li b { font-size: 15px; color: var(--ink); }
.cmd-list li code { font-size: 12.5px; color: var(--brand); background: var(--brand-light); padding: 2px 6px; border-radius: 4px; margin-top: 4px; align-self: flex-start; }

pre.code {
  background: #10202f;
  color: #d6e6f2;
  padding: 18px 20px;
  border-radius: var(--r);
  overflow: auto;
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 16px;
}
pre.code .k { color: #7fd6a5; }
:not(pre) > code { background: var(--line-2); padding: 2px 6px; border-radius: 4px; font-size: 13px; color: var(--brand-dark); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps > li {
  position: relative;
  padding: 16px 20px 16px 62px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
}
.steps > li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 18px; top: 16px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 14px;
  line-height: 28px;
  text-align: center;
}
.steps > li > b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.steps > li p { margin: 0; color: var(--muted); font-size: 14px; }

.notice {
  padding: 14px 18px;
  border-left: 3px solid var(--brand);
  background: var(--brand-light);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 14px;
  color: var(--ink-2);
  margin: 0 0 18px;
}
.notice-accent { border-left-color: var(--accent); background: var(--accent-light); }

/* ---------- 功能/方案 ---------- */
.feature { display: flex; gap: 16px; }
.feature .ico {
  flex: 0 0 46px;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--brand-light);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
}
.feature h4 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.solution-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  overflow: hidden;
  transition: all .22s;
}
.solution-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.solution-card:hover { box-shadow: var(--sh-3); transform: translateY(-4px); }
.solution-card h3 { margin: 0; }
.solution-card p { color: var(--muted); margin: 0; font-size: 14.5px; }

/* ---------- 侧栏布局 ---------- */
.layout-side { display: grid; grid-template-columns: 232px 1fr; gap: 40px; align-items: start; padding: 34px 0 64px; }
.side-nav { position: sticky; top: calc(var(--head-h) + 20px); }
.side-nav .side-title { font-size: 12px; letter-spacing: 2px; color: var(--muted-2); text-transform: uppercase; margin-bottom: 10px; }
.side-nav ul { list-style: none; margin: 0 0 22px; padding: 0; border-left: 2px solid var(--line-2); }
.side-nav li a { display: block; padding: 8px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); font-size: 14.5px; }
.side-nav li a:hover { color: var(--brand); }
.side-nav li a.active { color: var(--brand); border-left-color: var(--brand); font-weight: 600; background: linear-gradient(90deg, var(--brand-light), transparent); }
.doc-body h2 { font-size: 24px; margin-top: 34px; padding-top: 6px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 18px; margin-top: 26px; }
.doc-body ul, .doc-body ol { padding-left: 22px; }
.doc-body li { margin-bottom: 6px; }

/* ---------- 表格/购物车 ---------- */
.cart-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cart-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 12px; border-bottom: 1px solid var(--line); background: var(--bg); }
.cart-table td { padding: 14px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.cart-table .ci { display: flex; gap: 14px; align-items: center; }
.cart-table .ci img { width: 68px; height: 68px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px; background: #fff; }
.cart-table .ci b { display: block; font-size: 14.5px; }
.cart-table .ci small { color: var(--muted); }
.link-danger { color: var(--danger); font-size: 13px; background: none; border: 0; cursor: pointer; padding: 0; font-family: inherit; }
.link-danger:hover { text-decoration: underline; }

.summary { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; background: #fff; position: sticky; top: calc(var(--head-h) + 20px); }
.summary dl { margin: 0 0 16px; display: grid; gap: 10px; }
.summary dl > div { display: flex; justify-content: space-between; font-size: 14.5px; }
.summary dl dt { color: var(--muted); }
.summary dl dd { margin: 0; font-weight: 600; }
.summary .total { border-top: 1px solid var(--line); padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.summary .total b { font-size: 26px; color: var(--accent-dark); }

.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; }
.form-layout { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field label .req { color: var(--danger); margin-left: 3px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26, 127, 212, .12);
}
.field .hint { font-size: 12.5px; color: var(--muted-2); margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  margin: 0;
}
.radio-row input { width: auto; }
.radio-row label:has(input:checked) { border-color: var(--brand); background: var(--brand-light); color: var(--brand-dark); }

.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state .big { font-size: 46px; margin-bottom: 12px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0e1a2b; color: #93a3b8; padding: 56px 0 0; font-size: 14px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 34px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.site-footer a { color: #93a3b8; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand img { height: 40px; width: auto; align-self: flex-start; background: #fff; padding: 5px 8px; border-radius: var(--r-sm); }
.footer-brand p { margin: 0; font-size: 13.5px; line-height: 1.8; }
.footer-contact li { display: flex; gap: 8px; }
.footer-contact b { color: #d6e0ec; font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #7387a0;
}
.footer-bottom .links { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- 浮动工具 ---------- */
.float-bar {
  position: fixed;
  right: 18px; bottom: 22px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-bar a, .float-bar button {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--ink-2);
  cursor: pointer;
  text-align: center;
  line-height: 1.15;
  font-family: inherit;
  padding: 4px;
}
.float-bar a:hover, .float-bar button:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.float-bar .top { color: var(--muted); }
.float-bar .top[hidden] { display: none; }

/* ---------- 提示条 ---------- */
.toast-wrap { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 2000; display: grid; gap: 10px; }
.toast {
  padding: 11px 22px;
  border-radius: var(--r-pill);
  background: #16202e;
  color: #fff;
  font-size: 14px;
  box-shadow: var(--sh-3);
  animation: toastIn .25s;
}
.toast.ok { background: #14a06a; }
.toast.err { background: #e5484d; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- 分页/筛选条 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px 0; }
.filter-bar .spacer { flex: 1; }
.chip {
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink-2);
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.chip:hover { border-color: var(--brand-soft); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.search-box { position: relative; }
.search-box input { padding-left: 38px; width: 240px; }
.search-box::before { content: "⌕"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 17px; }

/* ---------- 产品功能示意热区 ---------- */
.hot-wrap { position: relative; display: block; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fbfcfe; }
.hot-wrap img { display: block; width: 100%; }
.hot-wrap .hot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  box-shadow: 0 0 0 3px rgba(240, 138, 36, .25);
}
.hot-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.hot-list li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); align-items: baseline; }
.hot-list li b { flex: 0 0 auto; color: var(--brand-dark); font-weight: 600; }
.hot-list li span { color: var(--muted); }

/* ---------- 套餐方案明细 ---------- */
.btn-group-xs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.opt-mini {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  background: #fff;
}
.opt-mini input { display: none; }
.opt-mini.selected { border-color: var(--brand); background: var(--brand-light); color: var(--brand-dark); font-weight: 600; }
.plan-table td { vertical-align: middle; }
.plan-table .qty button { width: 30px; height: 32px; }
.plan-table .qty input { width: 46px; height: 32px; }

/* ---------- 文档正文内嵌元素 ---------- */
.doc-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
.doc-body th, .doc-body td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; vertical-align: top; }
.doc-body thead th, .doc-body table tr:first-child th { background: var(--bg); font-weight: 600; color: var(--ink-2); }
.doc-body img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r); margin: 14px 0; display: block; }
.doc-body table img { margin: 0; border: 0; }
.doc-body h2 { border-bottom: 1px solid var(--line-2); padding-bottom: 8px; }
.doc-body a { text-decoration: underline; text-decoration-color: var(--brand-soft); text-underline-offset: 3px; }
.doc-body a:hover { text-decoration-color: var(--brand); }
.doc-body hr { margin: 20px 0; }
.doc-body > div > div { margin-bottom: 14px; }
.doc-body code { word-break: break-all; }
/* 原站已下架产品/页面：保留文字，去掉失效链接 */
.dead-link { color: var(--muted); border-bottom: 1px dashed var(--line); }

@keyframes carBar { from { width: 0 } to { width: 100% } }

/* ---------- 首屏右侧：产品展示台（参照友友物联首页效果） ---------- */
.showcase {
  position: relative;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 60px rgba(4, 24, 46, .32);
  overflow: hidden;
}
.sc-stage {
  position: relative;
  aspect-ratio: 1 / .86;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 62%, #f6faff 100%);
}

/* 展台底座：直接使用 3D 渲染的白色圆形展台 */
.sc-podium {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  pointer-events: none;
}
.sc-podium img { display: block; width: 100%; height: auto; }

/* 轮播窗口：一次显示三款，中间大、两侧小 */
.sc-window {
  position: absolute;
  left: 0; right: 0; top: 0;
  bottom: 24%;               /* 与展台台面齐平 */
  overflow: hidden;
  z-index: 2;
}
.sc-track {
  display: flex;
  height: 100%;
  align-items: flex-end;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.sc-track.no-anim { transition: none; }
.sc-item {
  flex: 0 0 auto;
  width: 28%;                /* 两侧小卡宽度，当前项由 JS 放大到 44% */
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 6px;
  box-sizing: border-box;
  transition: width .55s cubic-bezier(.22, .61, .36, 1);
}
.sc-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;   /* 关键：产品底部对齐窗口底部，才能「站」在展台上 */
  transition: opacity .5s ease, filter .5s ease, transform .55s cubic-bezier(.22, .61, .36, 1);
  transform: scale(.8);
  transform-origin: bottom center;
  opacity: .55;
  filter: saturate(.8);
}
.sc-item.active { width: 44%; }
.sc-item.active img {
  transform: scale(1);
  opacity: 1;
  filter: none;
}
.sc-track.no-anim .sc-item,
.sc-track.no-anim .sc-item img { transition: none; }
/* 左右渐隐，让两侧产品自然融进背景 */
.sc-fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 64px;
  z-index: 3;
  pointer-events: none;
}
.sc-fade.left { left: 0; background: linear-gradient(90deg, #fff 12%, rgba(255, 255, 255, 0)); }
.sc-fade.right { right: 0; background: linear-gradient(270deg, #fff 12%, rgba(255, 255, 255, 0)); }

/* 左右切换箭头 */
.sc-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--sh-1);
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .2s, background .18s, color .18s;
}
.showcase:hover .sc-arrow, .showcase:focus-within .sc-arrow { opacity: 1; }
.sc-arrow:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.sc-arrow.prev { left: 12px; }
.sc-arrow.next { right: 12px; }

/* 产品信息 */
.sc-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 4px;
  border-top: 1px solid var(--line-2);
}
.sc-text { min-width: 0; flex: 1; }
.sc-text b {
  display: block;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sc-text span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sc-price { flex: 0 0 auto; text-align: right; color: var(--accent-dark); font-weight: 800; }
.sc-price .cur { font-size: 13px; }
.sc-price .num { font-size: 22px; letter-spacing: -.5px; }
.sc-price .ask { font-size: 13px; color: var(--muted); font-weight: 600; }

.sc-foot { display: flex; align-items: center; gap: 12px; padding: 8px 20px 14px; }
.sc-cta {
  font-size: 13px; font-weight: 600;
  color: var(--brand);
  background: var(--brand-light);
  border-radius: var(--r-sm);
  padding: 7px 14px;
}
.sc-cta:hover { background: var(--brand); color: #fff; }
.sc-dots { display: flex; gap: 6px; margin-left: auto; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.sc-dots button {
  width: 7px; height: 7px; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--brand-soft);
  cursor: pointer;
  transition: all .25s;
}
.sc-dots button:hover { background: var(--brand); }
.sc-dots button.on { width: 20px; border-radius: var(--r-pill); background: var(--brand); }

.sc-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line-2); }
.sc-progress i { display: block; height: 100%; width: 0; background: var(--accent); }
.sc-progress.run i { animation: carBar var(--sc-interval, 3000ms) linear forwards; }
.showcase.paused .sc-progress.run i { animation-play-state: paused; }

@keyframes carBar { from { width: 0 } to { width: 100% } }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 36px; }
  .sc-stage { aspect-ratio: 1 / .72; }
  .sc-window { bottom: 28%; }
  .pd-top { grid-template-columns: 1fr; gap: 28px; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .cat-strip { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .cart-layout, .form-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .layout-side { grid-template-columns: 1fr; gap: 24px; }
  .side-nav { position: static; }
  .side-nav ul { display: flex; flex-wrap: wrap; border-left: 0; gap: 6px; }
  .side-nav li a { border-left: 0; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 14px; }
  .side-nav li a.active { border-color: var(--brand); background: var(--brand-light); }
}
@media (max-width: 820px) {
  .topbar-links { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: var(--head-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-3);
    padding: 10px;
    display: none;
    max-height: calc(100vh - var(--head-h));
    overflow: auto;
  }
  .main-nav.open { display: flex; }
  .nav-sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; display: none; }
  .nav-item.expanded .nav-sub { display: block; }
  .section { padding: 44px 0; }
  .sc-stage { aspect-ratio: 1 / .66; }
  .sc-text b { font-size: 15px; }
  .sc-price .num { font-size: 19px; }
  .sc-fade { width: 44px; }
  .hero h1 { font-size: 30px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .cart-table .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .cat-strip { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 15px; }
  .pd-actions { flex-direction: column; }
}
