/* ============================================================
   墨矩钣金冲压模具 · 站点样式
   科技工业风：深空底 + 钢蓝光电 + 钛金点缀
   全部本地绘制，无外部字体 / CDN 依赖
   ============================================================ */

:root {
  --bg: #05080f;
  --bg-2: #070c16;
  --panel: #0c1424;
  --panel-2: #111c30;
  --line: rgba(126, 166, 224, 0.16);
  --line-2: rgba(126, 166, 224, 0.08);
  --txt: #e9effa;
  --txt-2: #a6b7d3;
  --txt-3: #6f80a0;
  --acc: #38a8ff;
  --acc-2: #7bdff2;
  --gold: #e4b75a;
  --ok: #4fd6a0;
  --warn: #f2b155;
  --danger: #f2736f;
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 28px 70px -28px rgba(0, 0, 0, 0.9);
  --shadow-s: 0 12px 32px -18px rgba(0, 0, 0, 0.8);
  --maxw: 1240px;
  --mast: 74px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(760px 460px at 12% -6%, rgba(56, 168, 255, 0.15), transparent 62%),
    radial-gradient(620px 420px at 92% 4%, rgba(123, 223, 242, 0.08), transparent 60%),
    radial-gradient(900px 700px at 50% 108%, rgba(56, 168, 255, 0.07), transparent 66%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(126, 166, 224, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 166, 224, 0.045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 78%);
}

img,
svg { max-width: 100%; height: auto; }

a { color: var(--acc); text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }
a:hover { color: var(--acc-2); }

h1, h2, h3, h4 { line-height: 1.28; letter-spacing: -0.01em; margin: 0 0 0.6em; font-weight: 650; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: 0.42em; }
hr { border: 0; border-top: 1px solid var(--line-2); margin: 48px 0; }

strong { color: #fff; font-weight: 650; }
code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: rgba(56, 168, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  color: var(--acc-2);
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--acc); color: #04101f; padding: 10px 18px; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip:focus { left: 0; }

/* ---------- 顶部导航 ---------- */
.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(5, 8, 15, 0.78);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line-2);
}
.masthead .wrap { display: flex; align-items: center; gap: 24px; height: var(--mast); }

.brand { display: flex; align-items: center; gap: 12px; color: var(--txt); flex: none; }
.brand:hover { color: var(--txt); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: linear-gradient(150deg, rgba(56, 168, 255, 0.22), rgba(123, 223, 242, 0.06));
  border: 1px solid rgba(56, 168, 255, 0.42);
  display: grid; place-items: center;
  box-shadow: inset 0 0 18px rgba(56, 168, 255, 0.18);
}
.brand-mark svg { width: 24px; height: 24px; display: block; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: 0.02em; }
.brand-sub { font-size: 11px; color: var(--txt-3); letter-spacing: 0.16em; font-family: var(--mono); }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--txt-2); font-size: 14.5px; padding: 9px 15px; border-radius: 999px;
  border: 1px solid transparent; white-space: nowrap;
}
.nav a:hover { color: var(--txt); background: rgba(126, 166, 224, 0.08); }
.nav a[aria-current="page"] { color: var(--acc); background: rgba(56, 168, 255, 0.1); border-color: rgba(56, 168, 255, 0.3); }

.mast-act { display: flex; align-items: center; gap: 10px; flex: none; }

.burger {
  display: none; width: 42px; height: 42px; border-radius: 11px; flex: none;
  background: var(--panel); border: 1px solid var(--line); cursor: pointer;
  align-items: center; justify-content: center; color: var(--txt);
}
.burger span { display: block; width: 18px; height: 1.6px; background: currentColor; position: relative; }
.burger span::before,
.burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.6px; background: currentColor;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--txt); font-size: 14.5px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all 0.22s ease; white-space: nowrap;
}
.btn:hover { border-color: rgba(56, 168, 255, 0.5); transform: translateY(-1px); color: var(--txt); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--acc), #2b7fd4);
  border-color: transparent; color: #04101f;
  box-shadow: 0 12px 30px -14px rgba(56, 168, 255, 0.75);
}
.btn-primary:hover { color: #04101f; filter: brightness(1.08); }
.btn-ghost { background: transparent; }
.btn-lg { padding: 14px 28px; font-size: 15.5px; }

/* ---------- 通用区块 ---------- */
.section { padding: 92px 0; position: relative; z-index: 1; }
.section-tight { padding: 60px 0; }
.section-alt { background: linear-gradient(180deg, rgba(12, 20, 36, 0.6), rgba(5, 8, 15, 0)); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--acc-2); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--acc-2); }

.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 14px; }
.section-head p { color: var(--txt-2); font-size: 16.5px; margin: 0; }

.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tile {
  position: relative; padding: 26px 24px; border-radius: var(--radius);
  background: linear-gradient(165deg, var(--panel), rgba(8, 13, 24, 0.9));
  border: 1px solid var(--line); overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.tile::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.25s ease;
  background: radial-gradient(420px 160px at 20% 0%, rgba(56, 168, 255, 0.16), transparent 70%);
}
.tile:hover { transform: translateY(-3px); border-color: rgba(56, 168, 255, 0.42); box-shadow: var(--shadow-s); }
.tile:hover::before { opacity: 1; }
.tile > * { position: relative; }
.tile h3 { font-size: 18px; margin-bottom: 10px; }
.tile h3 a { color: var(--txt); }
.tile p { color: var(--txt-2); font-size: 14.5px; margin: 0; }
.tile-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(56, 168, 255, 0.1); border: 1px solid rgba(56, 168, 255, 0.28); color: var(--acc-2); }
.tile-ico svg { width: 21px; height: 21px; }
.tile-meta { font-family: var(--mono); font-size: 11.5px; color: var(--txt-3); letter-spacing: 0.1em; margin-top: 14px; display: block; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; margin-top: 14px; }
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 首屏 ---------- */
.hero { padding: 86px 0 68px; position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 52px; align-items: center; }
.hero h1 {
  font-size: clamp(31px, 4.6vw, 55px); line-height: 1.16; margin-bottom: 20px; font-weight: 700;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--acc-2), var(--acc) 46%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 17.5px; color: var(--txt-2); max-width: 620px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.tags-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-text {
  display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12.5px;
  background: rgba(126, 166, 224, 0.08); border: 1px solid var(--line-2); color: var(--txt-2);
}

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-2);
  border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.metric { background: var(--panel); padding: 20px 18px; }
.metric b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.metric b i { font-style: normal; font-size: 13px; color: var(--acc-2); margin-left: 3px; letter-spacing: 0; }
.metric span { font-size: 12.5px; color: var(--txt-3); }

.blueprint {
  position: relative; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(17, 28, 48, 0.95), rgba(6, 10, 20, 0.95));
  padding: 22px; box-shadow: var(--shadow); overflow: hidden;
}
.blueprint-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.blueprint-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: block; }
.blueprint-bar i:first-child { background: var(--danger); }
.blueprint-bar i:nth-child(2) { background: var(--warn); }
.blueprint-bar i:nth-child(3) { background: var(--ok); }
.blueprint-bar span { font-family: var(--mono); font-size: 11.5px; color: var(--txt-3); letter-spacing: 0.12em; margin-left: auto; }
.blueprint svg { display: block; width: 100%; }

/* ---------- 流程轴线 ---------- */
.flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.flow-step { position: relative; padding-top: 26px; border-top: 2px solid var(--line-2); }
.flow-step::before {
  content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--acc); box-shadow: 0 0 0 4px rgba(56, 168, 255, 0.12);
}
.flow-step b { font-family: var(--mono); font-size: 12px; color: var(--acc-2); letter-spacing: 0.16em; }
.flow-step h3 { font-size: 16px; margin: 8px 0 8px; }
.flow-step p { font-size: 13.5px; color: var(--txt-2); margin: 0 0 10px; }
.flow-step em { display: block; font-style: normal; font-size: 12px; color: var(--gold);
  border-left: 2px solid var(--gold); padding-left: 9px; font-family: var(--mono); }

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--panel); margin: 0 0 24px;
  -webkit-overflow-scrolling: touch;
}
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
table.data th {
  text-align: left; padding: 14px 16px; font-size: 13px; letter-spacing: 0.06em;
  color: var(--acc-2); font-weight: 650; white-space: nowrap;
  background: rgba(56, 168, 255, 0.07); border-bottom: 1px solid var(--line);
}
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); color: var(--txt-2); vertical-align: top; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: rgba(126, 166, 224, 0.045); color: var(--txt); }
table.data td:first-child { color: var(--txt); font-weight: 600; white-space: nowrap; }

/* ---------- 选型工具 ---------- */
.selector { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(165deg, var(--panel-2), var(--panel)); overflow: hidden; }
.selector-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 24px; border-bottom: 1px solid var(--line-2); }
.field label { display: block; font-size: 12.5px; color: var(--txt-3); margin-bottom: 7px; font-family: var(--mono); letter-spacing: 0.1em; }
.field select, .field input {
  width: 100%; padding: 12px 14px; border-radius: 11px; background: var(--bg-2);
  border: 1px solid var(--line); color: var(--txt); font-family: inherit; font-size: 15px;
}
.field select:focus, .field input:focus { outline: 2px solid rgba(56, 168, 255, 0.5); outline-offset: 1px; }
.selector-out { padding: 24px; min-height: 148px; }
.selector-out-inner { border: 1px dashed rgba(56, 168, 255, 0.34); border-radius: var(--radius-s); padding: 20px;
  background: rgba(56, 168, 255, 0.05); }
.selector-die { font-size: 22px; font-weight: 700; color: var(--acc-2); margin-bottom: 10px; }
.selector-reason { color: var(--txt-2); font-size: 14.5px; margin: 0 0 14px; }

/* ---------- 列表页：左侧分类 + 右侧内容 ---------- */
.cat-layout { display: grid; grid-template-columns: 242px minmax(0, 1fr); gap: 44px; align-items: start; padding: 56px 0 88px; }
.cat-side { position: sticky; top: calc(var(--mast) + 20px); }
.cat-side h2 { font-size: 13px; letter-spacing: 0.18em; color: var(--txt-3); font-family: var(--mono); margin-bottom: 14px; text-transform: uppercase; }
ul.category-list { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
ul.category-list li { margin: 0; }
ul.category-list a {
  display: block; padding: 10px 16px; font-size: 14.5px; color: var(--txt-2);
  border-left: 2px solid transparent; margin-left: -1px; transition: all 0.2s ease;
}
ul.category-list a:hover { color: var(--txt); background: rgba(126, 166, 224, 0.06); }
ul.category-list a[aria-current="page"] { color: var(--acc); border-left-color: var(--acc); background: rgba(56, 168, 255, 0.08); font-weight: 600; }
ul.category-list .cnt { float: right; font-family: var(--mono); font-size: 11.5px; color: var(--txt-3); }

.page-head { margin-bottom: 34px; }
.page-head h1 { font-size: clamp(25px, 3.2vw, 38px); margin-bottom: 12px; }
.page-head p { color: var(--txt-2); margin: 0; font-size: 16px; }

.entry-list { display: grid; gap: 14px; }
.entry {
  display: block; padding: 22px 24px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: var(--panel); transition: all 0.22s ease; color: inherit;
}
.entry:hover { border-color: rgba(56, 168, 255, 0.4); transform: translateY(-2px); color: inherit; box-shadow: var(--shadow-s); }
.entry h3 { font-size: 18px; margin: 0 0 8px; }
.entry p { color: var(--txt-2); font-size: 14.5px; margin: 0 0 12px; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--txt-3); font-family: var(--mono); }

/* ---------- 面包屑 ---------- */
nav.breadcrumb { font-size: 13px; color: var(--txt-3); margin: 22px 0 0; }
nav.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
nav.breadcrumb li { margin: 0; }
nav.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
nav.breadcrumb a { color: var(--txt-2); }
nav.breadcrumb a:hover { color: var(--acc); }
nav.breadcrumb [aria-current="page"] { color: var(--acc-2); }

/* ---------- 详情页：正文 + 悬浮目录 ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 252px; gap: 46px; align-items: start; padding: 26px 0 90px; }
.article-body { max-width: 760px; margin: 0 auto; }
.article-head h1 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 16px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 13px; color: var(--txt-3); margin-bottom: 26px; }
.article-meta time { font-family: var(--mono); }

.abstract {
  border: 1px solid rgba(56, 168, 255, 0.3); border-left: 3px solid var(--acc);
  border-radius: 0 var(--radius-s) var(--radius-s) 0; padding: 20px 22px; margin: 0 0 26px;
  background: linear-gradient(100deg, rgba(56, 168, 255, 0.1), rgba(56, 168, 255, 0.02));
  font-size: 16px; color: var(--txt);
}
.abstract strong { color: var(--acc-2); }
.article-body blockquote.abstract {
  border-left: 3px solid var(--acc); border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding: 20px 22px; margin: 0 0 26px; font-size: 16px; color: var(--txt);
  background: linear-gradient(100deg, rgba(56, 168, 255, 0.1), rgba(56, 168, 255, 0.02));
}
.article-body blockquote.abstract p:last-child { margin: 0; }

.callout {
  border: 1px solid rgba(228, 183, 90, 0.32); border-radius: var(--radius-s);
  padding: 18px 20px; margin: 0 0 24px; background: rgba(228, 183, 90, 0.06);
}
.callout h4 { margin: 0 0 8px; font-size: 14px; color: var(--gold); font-family: var(--mono); letter-spacing: 0.1em; }
.callout p:last-child { margin: 0; }

.conclusion { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 20px 22px; margin: 0 0 26px; background: var(--panel-2); }
.conclusion h3 { font-size: 16px; margin-bottom: 12px; }

.article-body h2 { font-size: 24px; margin: 44px 0 16px; padding-top: 10px; scroll-margin-top: 96px; }
.article-body h3 { font-size: 19px; margin: 30px 0 12px; scroll-margin-top: 96px; }
.article-body > p, .article-body > ul, .article-body > ol { font-size: 16px; color: var(--txt-2); }
.article-body li strong { color: var(--txt); }
.article-body figure { margin: 26px 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--panel); }
.article-body figure img { display: block; border-radius: 8px; }
.article-body figcaption { font-size: 13px; color: var(--txt-3); margin-top: 12px; text-align: center; }
.article-body blockquote { margin: 0 0 22px; padding: 14px 20px; border-left: 3px solid var(--gold);
  background: rgba(228, 183, 90, 0.05); color: var(--txt-2); font-size: 15px; border-radius: 0 10px 10px 0; }
.article-body blockquote p:last-child { margin: 0; }
.article-body .key-line { display: block; font-size: 14.5px; color: var(--txt-2); margin-bottom: 24px; }

.toc-aside { position: sticky; top: calc(var(--mast) + 22px); max-height: calc(100vh - 120px); overflow-y: auto; }
#toc {
  border: 1px solid var(--line); border-radius: var(--radius-s); padding: 18px 18px 18px 0;
  background: var(--panel); font-size: 14px;
}
#toc h2 { font-size: 12px; letter-spacing: 0.18em; color: var(--txt-3); font-family: var(--mono); margin: 0 0 12px 18px; text-transform: uppercase; }
#toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
#toc li { margin: 0; }
#toc a { display: block; padding: 7px 14px; color: var(--txt-2); border-left: 2px solid transparent; margin-left: -1px; font-size: 13.5px; }
#toc a:hover { color: var(--txt); }
#toc a.on { color: var(--acc); border-left-color: var(--acc); background: rgba(56, 168, 255, 0.07); }
#toc .toc-h3 a { padding-left: 26px; font-size: 13px; color: var(--txt-3); }

/* ---------- FAQ ---------- */
.faq-wrap { margin: 30px 0; border-top: 1px solid var(--line-2); }
.faq-wrap details { border-bottom: 1px solid var(--line-2); }
.faq-wrap details > summary {
  cursor: pointer; padding: 16px 34px 16px 0; position: relative; list-style: none;
  font-size: 16px; font-weight: 600; color: var(--txt); transition: color 0.2s ease;
}
.faq-wrap details > summary::-webkit-details-marker { display: none; }
.faq-wrap details > summary::after {
  content: ""; position: absolute; right: 6px; top: 24px; width: 8px; height: 8px;
  border-right: 1.6px solid var(--acc); border-bottom: 1.6px solid var(--acc);
  transform: rotate(45deg); transition: transform 0.22s ease;
}
.faq-wrap details[open] > summary { color: var(--acc-2); }
.faq-wrap details[open] > summary::after { transform: rotate(-135deg); }
.faq-wrap details .faq-a { padding: 0 40px 18px 0; color: var(--txt-2); font-size: 15px; }
.faq-wrap details .faq-a > :last-child { margin-bottom: 0; }

/* ---------- 产品详情 ---------- */
.product-hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: center; padding: 34px 0 8px; }
.spec-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 22px; }
.spec-box h3 { font-size: 13px; font-family: var(--mono); letter-spacing: 0.16em; color: var(--txt-3); margin-bottom: 14px; text-transform: uppercase; }
.spec-box dl { margin: 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px 14px; font-size: 14.5px; }
.spec-box dt { color: var(--txt-3); }
.spec-box dd { margin: 0; color: var(--txt); }

.scenarios { list-style: none; padding: 0; margin: 0 0 24px; }
.scenarios li { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 16px 18px; margin-bottom: 12px; background: var(--panel); }
.scenarios b { display: block; color: var(--acc-2); margin-bottom: 6px; font-size: 15.5px; }
.scenarios span { color: var(--txt-2); font-size: 14.5px; }

/* ---------- 相关阅读 / 产品 ---------- */
.related { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: var(--panel); }
.related h2 { font-size: 15px; font-family: var(--mono); letter-spacing: 0.14em; color: var(--txt-3); text-transform: uppercase; margin-bottom: 12px; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { padding: 11px 0; border-top: 1px solid var(--line-2); font-size: 15px; }
.related li:first-child { border-top: 0; }
.related li small { display: block; color: var(--txt-3); font-size: 13px; }

/* ---------- 名片 / 微信 ---------- */
.card-stage {
  position: relative; border-radius: var(--radius); border: 1px solid rgba(56, 168, 255, 0.28);
  background: linear-gradient(165deg, rgba(17, 28, 48, 0.9), rgba(6, 10, 20, 0.95));
  padding: 40px 28px; text-align: center; overflow: hidden; box-shadow: var(--shadow);
}
.card-stage::after {
  content: ""; position: absolute; inset: -40% -10% auto; height: 320px;
  background: radial-gradient(ellipse at center, rgba(56, 168, 255, 0.16), transparent 66%);
  pointer-events: none;
}
.card-frame {
  width: 300px; min-height: 500px; height: 500px; margin: 0 auto 20px; border-radius: 16px; overflow: hidden;
  cursor: pointer; border: 1px solid rgba(56, 168, 255, 0.4); background: #ffffff;
  box-shadow: 0 22px 50px -22px rgba(0, 0, 0, 0.95); transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative; display: block;
}
.card-frame:hover { transform: translateY(-4px) scale(1.012); box-shadow: 0 30px 62px -22px rgba(56, 168, 255, 0.4); }
.card-frame img { display: block; width: 300px; max-width: 100%; height: auto; margin: 0; }
.card-frame .card-veil {
  position: absolute; inset: 0; display: grid; place-items: center; gap: 10px; z-index: 2;
  background: linear-gradient(180deg, rgba(6, 11, 21, 0.94), rgba(6, 11, 21, 0.8));
  color: var(--txt); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  font-size: 14.5px; letter-spacing: 0.06em; transition: opacity 0.28s ease;
}
.card-frame .card-veil svg { width: 34px; height: 34px; color: var(--acc-2); }
.card-frame.revealed .card-veil { opacity: 0; pointer-events: none; }
.card-hint { font-size: 13.5px; color: var(--txt-3); font-family: var(--mono); letter-spacing: 0.08em; }
.card-note { font-size: 14px; color: var(--txt-2); max-width: 460px; margin: 0 auto 22px; }

.card-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 620px; margin: 26px auto 0; text-align: left; }
.card-info div { border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 14px 16px; background: rgba(12, 20, 36, 0.7); }
.card-info b { display: block; font-size: 12.5px; color: var(--txt-3); font-family: var(--mono); letter-spacing: 0.1em; margin-bottom: 5px; }
.card-info span { font-size: 14.5px; color: var(--txt); }

/* ---------- 右侧胶囊悬浮坞 ---------- */
.dock {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 70;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
}
.dock-btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 12px 18px; border-radius: 999px; font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--txt); background: rgba(14, 22, 38, 0.86);
  border: 1px solid rgba(56, 168, 255, 0.34); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.95); transition: all 0.24s ease; white-space: nowrap;
}
.dock-btn:hover { color: #fff; border-color: var(--acc); transform: translateX(-3px); }
.dock-btn svg { width: 18px; height: 18px; flex: none; color: var(--acc-2); }
.dock-btn.dock-wx { background: linear-gradient(135deg, rgba(56, 168, 255, 0.95), rgba(37, 122, 200, 0.95)); color: #04101f; border-color: transparent; }
.dock-btn.dock-wx svg { color: #04101f; }
.dock-btn.dock-top { opacity: 0; visibility: hidden; transform: translateY(8px); }
.dock-btn.dock-top.show { opacity: 1; visibility: visible; transform: none; }
.dock-ring { position: absolute; inset: -4px; border-radius: 999px; border: 1px solid rgba(56, 168, 255, 0.35); animation: pulse 2.6s ease-out infinite; pointer-events: none; }
@keyframes pulse { 0% { opacity: 0.7; transform: scale(1); } 70% { opacity: 0; transform: scale(1.14); } 100% { opacity: 0; } }

/* ---------- 微信弹层 ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: none; }
.modal.open { display: grid; place-items: center; }
.modal-bd { position: absolute; inset: 0; background: rgba(3, 6, 12, 0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-card {
  position: relative; z-index: 2; width: 300px; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(56, 168, 255, 0.42); background: var(--panel-2);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 1); animation: pop 0.28s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal-card img { display: block; width: 100%; height: auto; }
.modal-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-top: 1px solid var(--line-2); background: rgba(6, 10, 20, 0.9); }
.modal-bar span { font-size: 13px; color: var(--txt-2); }
.modal-x { border: 0; background: rgba(126, 166, 224, 0.1); color: var(--txt-2); cursor: pointer;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; line-height: 1; }
.modal-x:hover { color: #fff; background: rgba(56, 168, 255, 0.24); }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(9, 14, 26, 0.9), rgba(5, 8, 15, 1)); padding: 62px 0 30px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.footer h3 { font-size: 13px; font-family: var(--mono); letter-spacing: 0.16em; color: var(--txt-3); text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 9px; font-size: 14px; }
.footer li a { color: var(--txt-2); }
.footer li a:hover { color: var(--acc); }
.footer-brand p { color: var(--txt-2); font-size: 14px; max-width: 340px; }
.footer-domain { font-family: var(--mono); font-size: 13px; color: var(--acc-2); letter-spacing: 0.06em; margin-bottom: 14px; display: block; }
.footer-bottom { border-top: 1px solid var(--line-2); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; }
.footer-bottom p { margin: 0; font-size: 13px; color: var(--txt-3); max-width: 780px; }

/* ---------- 归档 / 404 ---------- */
.archive-year { margin-bottom: 34px; }
.archive-year > h2 { font-family: var(--mono); font-size: 15px; color: var(--acc-2); letter-spacing: 0.2em; margin-bottom: 14px; }
.archive-year ul { list-style: none; padding: 0; margin: 0; }
.archive-year li { border-top: 1px solid var(--line-2); padding: 11px 0; display: flex; gap: 18px; align-items: baseline; font-size: 15px; }
.archive-year li span { font-family: var(--mono); font-size: 12.5px; color: var(--txt-3); flex: none; width: 92px; }

.e404 { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 90px 0; }
.e404 b { font-family: var(--mono); font-size: 84px; letter-spacing: 0.06em;
  background: linear-gradient(120deg, var(--acc-2), var(--acc) 60%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .card-frame { width: 300px; height: 500px; }
}

/* ---------- 分页 ---------- */
.pagination { margin: 38px 0 0; }
.pagination .pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pagination .pager a,
.pagination .pager span {
  min-width: 38px; height: 38px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--txt-2); font-size: 14px;
}
.pagination .pager a:hover { border-color: rgba(56, 168, 255, 0.5); color: var(--txt); }
.pagination .pager span[aria-current="page"] { border-color: transparent; background: linear-gradient(135deg, var(--acc), #2b7fd4); color: #04101f; font-weight: 700; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: var(--mast); left: 0; right: 0;
    background: rgba(7, 12, 22, 0.97); backdrop-filter: blur(20px); padding: 14px 24px 22px;
    border-bottom: 1px solid var(--line); gap: 2px;
  }
  .burger { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .detail-layout { grid-template-columns: 1fr; gap: 0; }
  .toc-aside { position: static; max-height: none; margin-bottom: 34px; order: -1; }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-hero { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .cat-layout { grid-template-columns: 1fr; gap: 26px; }
  .cat-side { position: static; }
  ul.category-list { display: flex; flex-wrap: wrap; gap: 6px; border-left: 0; }
  ul.category-list a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; border-left-width: 1px; margin-left: 0; }
  ul.category-list a[aria-current="page"] { border-color: var(--acc); }
  ul.category-list .cnt { display: none; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .section { padding: 62px 0; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .selector-form { grid-template-columns: 1fr; }
  .card-info { grid-template-columns: 1fr; }
  .dock { right: 12px; gap: 10px; }
  .dock-btn { padding: 10px 14px; font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .article-body h2 { font-size: 21px; }
  .hero { padding: 54px 0 44px; }
  .card-frame { width: 100%; max-width: 300px; }
}

@media (max-width: 480px) {
  .metrics { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .spec-box dl { grid-template-columns: 1fr; gap: 2px 0; }
  .spec-box dd { margin-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
