/* ============================================================
   瀚好智慧科技 · 官网重构设计系统
   版式范式参考 Palantir（仅风格），色彩/字体/资产均为瀚好自有
   ============================================================ */

:root {
  /* 品牌主色（源自 brand/brand-board.html） */
  --ink: #1A1D21;
  --ink-2: #16181C;
  --ink-3: #22262B;
  --paper: #F7F8FA;
  --paper-2: #EEF1F5;
  --surface: #FFFFFF;
  --slate: #5B6472;
  --slate-2: #39404B;
  --slate-3: #9AA4B2;
  --line: #E2E7EE;
  --line-dark: #232A33;

  /* 强调与分类色 */
  --verm: #0B5CDB;
  --verm-2: #0780E7;
  --amber: #FFB020;
  --teal: #14B8A6;
  --olive: #84CC16;
  --violet: #8B5CF6;
  --blue: #00C2FF;
  --rose: #FF3D8A;

  /* 语义 */
  --ok: #22C55E;
  --warn: #F59E0B;
  --danger: #EF4444;
  --info: #0780E7;

  /* 字体 */
  --font-display: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, "DejaVu Sans Mono", monospace;

  /* 字阶 */
  --fs-eyebrow: 0.7rem;
  --fs-small: 0.85rem;
  --fs-body: 1rem;
  --fs-lead: 1.15rem;
  --fs-h3: 1.35rem;
  --fs-h2: clamp(1.9rem, 3.6vw, 2.8rem);
  --fs-h1: clamp(2.4rem, 5vw, 4.2rem);

  --nav-h: 64px;
  --ann-h: 40px;
  --radius: 3px;
  --container: 1280px;
  --shadow-1: 0 1px 2px rgba(20, 36, 64, 0.08), 0 8px 24px rgba(20, 36, 64, 0.1);
  --shadow-2: 0 2px 6px rgba(20, 36, 64, 0.12), 0 24px 64px rgba(20, 36, 64, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: calc(var(--nav-h) + var(--ann-h) + 16px); }
html.no-ann { scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 颗粒层 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* 滚动条（自有视觉语言） */
html { scrollbar-color: var(--verm) var(--paper-2); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--slate-2); border: 2px solid var(--paper-2); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--verm); }
.dark ::-webkit-scrollbar-track, .field-dark ::-webkit-scrollbar-track { background: var(--ink-2); }
.dark ::-webkit-scrollbar-thumb, .field-dark ::-webkit-scrollbar-thumb { background: var(--slate-2); border-color: var(--ink-2); }

::selection { background: var(--verm); color: var(--paper); }

img, svg, canvas, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

:focus-visible { outline: 2px solid var(--verm); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); }

/* ---------- 公告条 + 固定导航 ---------- */
.ann {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
  height: var(--ann-h);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--verm); color: var(--paper);
  font-size: var(--fs-small); letter-spacing: 0.02em;
  padding: 0 48px 0 16px; text-align: center;
}
.ann a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ann button {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: inherit; cursor: pointer; font-size: 16px; line-height: 1; padding: 6px;
}
html.no-ann .ann { display: none; }

.nav {
  position: fixed; left: 0; right: 0; z-index: 1000;
  top: var(--ann-h);
  height: var(--nav-h);
  background: color-mix(in srgb, #31363C 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
  transition: top 0.25s ease, box-shadow 0.25s ease;
}
html.no-ann .nav { top: 0; }
.nav.scrolled { box-shadow: 0 8px 32px rgba(6, 12, 26, 0.45); }
.nav-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; gap: 28px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); }
.nav-logo img { height: 30px; width: auto; }
.nav-logo .word { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.01em; font-size: 1.02rem; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--slate-3); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius); position: relative; transition: color 0.2s;
}
.nav-links a:hover { color: var(--paper); }
.nav-links a[aria-current="page"] { color: var(--paper); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--verm-2);
}
.nav-cta {
  background: var(--paper); color: var(--ink); border: 0; border-radius: 2px;
  font-weight: 700; font-size: 0.9rem; padding: 10px 18px; cursor: pointer; text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--verm-2); color: var(--paper); transform: translateY(-1px); }
.nav-icon {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-dark); border-radius: 2px;
  color: var(--paper); cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.nav-icon:hover { border-color: var(--verm-2); background: rgba(242, 114, 79, 0.12); }
.nav-burger { display: none; }
.nav-progress { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--verm-2); width: 0; }

/* 移动菜单 */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1200; background: var(--ink-2);
  display: none; flex-direction: column; padding: 88px 28px 40px; gap: 6px; overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--paper); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
.mobile-menu a small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 0.7rem; color: var(--slate); letter-spacing: 0.16em; }
.mobile-menu .close { position: absolute; top: 18px; right: 20px; }

/* 搜索浮层 */
.search-overlay { position: fixed; inset: 0; z-index: 1300; background: rgba(13, 24, 48, 0.66); backdrop-filter: blur(4px); display: none; padding: 12vh 20px 20px; }
.search-overlay.open { display: block; }
.search-panel { max-width: 680px; margin: 0 auto; background: var(--surface); border-radius: 4px; box-shadow: var(--shadow-2); overflow: hidden; border: 1px solid var(--line); }
.search-panel input { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 18px 20px; font-size: 1.05rem; font-family: var(--font-body); background: transparent; color: var(--ink); }
.search-panel input:focus { outline: none; }
.search-results { max-height: 52vh; overflow-y: auto; padding: 8px; }
.search-results a { display: block; padding: 12px 14px; text-decoration: none; border-radius: 3px; }
.search-results a:hover, .search-results a.sel { background: var(--paper-2); }
.search-results .k { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; color: var(--verm); display: block; }
.search-results .t { font-weight: 600; color: var(--ink); }
.search-results .s { font-size: 0.85rem; color: var(--slate-2); display: block; }
.search-empty { padding: 24px; color: var(--slate-2); font-size: 0.9rem; }

/* ---------- 场（明暗交替） ---------- */
.field { position: relative; padding: 96px 0; border-top: 1px solid var(--line); }
.field:first-of-type { border-top: 0; }
.field-dark { background: var(--ink-2); color: var(--paper); border-top-color: var(--line-dark); }
.field-dark2 { background: var(--ink); color: var(--paper); border-top-color: var(--line-dark); }
.field-tint { background: var(--paper-2); }
.field-surface { background: var(--surface); }

.eyebrow {
  font-family: var(--font-mono); font-size: var(--fs-eyebrow); font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--verm);
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
}
.field-dark .eyebrow, .field-dark2 .eyebrow { color: var(--verm-2); }
.eyebrow::before { content: "//"; opacity: 0.7; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; font-weight: 800; }
h1 { font-size: var(--fs-h1); font-weight: 900; line-height: 1.08; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
.lead { font-size: var(--fs-lead); color: var(--slate-2); max-width: 62ch; }
.field-dark .lead, .field-dark2 .lead { color: var(--slate-3); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head .lead { margin: 0; }

.link-arrow { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--verm); text-decoration: none; white-space: nowrap; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.link-arrow:hover { border-color: var(--verm); }
.field-dark .link-arrow, .field-dark2 .link-arrow { color: var(--verm-2); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 2px; border: 1px solid transparent; cursor: pointer; text-decoration: none;
  font-weight: 700; font-size: 0.95rem; padding: 14px 26px; font-family: var(--font-body);
  transition: transform 0.15s ease, background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--verm); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.field-dark .btn-primary, .field-dark2 .btn-primary { background: var(--paper); color: var(--ink); }
.field-dark .btn-primary:hover, .field-dark2 .btn-primary:hover { background: var(--verm-2); color: var(--paper); }
.btn-accent { background: var(--verm); color: var(--paper); }
.btn-accent:hover { background: var(--verm-2); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.btn-ghost { border-color: var(--slate); color: inherit; background: transparent; }
.btn-ghost:hover { border-color: var(--verm); color: var(--verm); }
.field-dark .btn-ghost, .field-dark2 .btn-ghost { border-color: var(--slate-2); color: var(--paper); }
.field-dark .btn-ghost:hover, .field-dark2 .btn-ghost:hover { border-color: var(--verm-2); color: var(--verm-2); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + var(--ann-h) + 72px) 0 88px; background: var(--ink-2); color: var(--paper); overflow: hidden; border-top: 0; }
html.no-ann .hero { padding-top: calc(var(--nav-h) + 72px); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.hero-bg .g1 { width: 52vw; height: 52vw; left: -14vw; top: -18vw; background: radial-gradient(circle, rgba(224, 75, 47, 0.5), transparent 65%); animation: drift1 26s ease-in-out infinite alternate; }
.hero-bg .g2 { width: 44vw; height: 44vw; right: -12vw; bottom: -20vw; background: radial-gradient(circle, rgba(0, 112, 106, 0.55), transparent 65%); animation: drift2 32s ease-in-out infinite alternate; }
.hero-bg .g3 { width: 30vw; height: 30vw; left: 38vw; top: 6vw; background: radial-gradient(circle, rgba(62, 111, 217, 0.4), transparent 65%); animation: drift1 38s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vw, 4vw, 0) scale(1.15); } }
@keyframes drift2 { from { transform: translate3d(0, 0, 0) scale(1.1); } to { transform: translate3d(-5vw, -3vw, 0) scale(0.95); } }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px); background-size: 72px 72px; opacity: 0.35; mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--verm-2); }
.hero .lead { color: var(--slate-3); }
.case-notice { margin-top: 20px; max-width: 78ch; font-size: 13px; line-height: 1.7; color: var(--slate-3); }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 26px; margin-top: 26px; flex-wrap: nowrap; }
.hero-meta div { border-left: 1px solid var(--verm); padding-left: 12px; }
.hero-meta .n { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.2; }
.hero-meta .l { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; color: var(--slate); }
.hero-visual { position: relative; }
.hero-visual canvas { width: 100%; height: 460px; }
.hero-visual .hint { display: block; text-align: right; margin-top: 10px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; color: var(--slate); }

/* ---------- 通用组件 ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; padding: 4px 10px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--slate-2); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--verm)); }
.field-dark .chip, .field-dark2 .chip { background: var(--ink-3); border-color: var(--line-dark); color: var(--slate-3); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s; position: relative; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); border-color: var(--verm); }
.card .idx { font-family: var(--font-mono); font-size: 0.68rem; color: var(--verm); letter-spacing: 0.16em; }
.card h3 { margin: 12px 0 10px; }
.card p { margin: 0; color: var(--slate-2); font-size: 0.95rem; }
.field-dark .card, .field-dark2 .card { background: var(--ink-3); border-color: var(--line-dark); }
.field-dark .card p, .field-dark2 .card p { color: var(--slate-3); }

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

/* ↳ 产品列表（Palantir motif） */
.platform-list { border-top: 1px solid var(--line-dark); }
.platform-row { display: grid; grid-template-columns: 220px 1fr auto; gap: 24px; align-items: center; padding: 26px 8px; border-bottom: 1px solid var(--line-dark); text-decoration: none; color: inherit; transition: background 0.2s, padding-left 0.2s; }
.platform-row:hover { background: rgba(242, 114, 79, 0.07); padding-left: 18px; }
.platform-row .name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; }
.platform-row .name::before { content: "↳ "; color: var(--verm-2); }
.platform-row .desc { color: var(--slate-3); font-size: 0.95rem; }
.platform-row .go { font-family: var(--font-mono); color: var(--verm-2); font-size: 0.8rem; letter-spacing: 0.12em; }

/* 截图框 */
.shot { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-1); position: relative; }
.shot .bar { display: flex; gap: 6px; align-items: center; padding: 9px 12px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.shot .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--slate-3); }
.shot .bar i:first-child { background: var(--verm-2); }
.shot .bar span { margin-left: 8px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--slate-2); }
.shot img { width: 100%; }
.field-dark .shot, .field-dark2 .shot { border-color: var(--line-dark); }
.field-dark .shot .bar, .field-dark2 .shot .bar { background: var(--ink-3); border-color: var(--line-dark); }
.field-dark .shot .bar span, .field-dark2 .shot .bar span { color: var(--slate); }

/* sticky 双栏 */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.split .sticky-col { position: sticky; top: calc(var(--nav-h) + var(--ann-h) + 32px); }
html.no-ann .split .sticky-col { top: calc(var(--nav-h) + 32px); }
.split.reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

/* 数据带 */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.stat-band > div { background: var(--ink-2); padding: 32px 28px; }
.stat-band .n { font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.03em; color: var(--paper); }
.stat-band .n small { font-size: 0.5em; color: var(--verm-2); font-weight: 700; }
.stat-band .l { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; color: var(--slate); margin-top: 6px; }

/* 案例卡 */
.case-card { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: var(--verm); }
.case-card .img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.case-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.case-card:hover .img img { transform: scale(1.05); }
.case-card .img .tag { position: absolute; left: 14px; top: 14px; background: var(--ink-2); color: var(--paper); font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; padding: 5px 9px; border-radius: 2px; }
.case-card .body { padding: 22px 22px 26px; }
.case-card .eyebrow { margin-bottom: 10px; }
.case-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.case-card p { color: var(--slate-2); font-size: 0.92rem; margin: 0; }
.case-card .metric { margin-top: 16px; font-family: var(--font-display); font-weight: 800; color: var(--verm); font-size: 1.05rem; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); color: var(--verm); font-size: 1.3rem; transition: transform 0.25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .a { padding: 0 4px 24px; color: var(--slate-2); max-width: 78ch; }
.faq-item .a strong { color: var(--ink); }

/* 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
table.hh { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
table.hh th { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate-2); text-align: left; padding: 12px 16px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
table.hh td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.hh tr:last-child td { border-bottom: 0; }
table.hh tr:hover td { background: rgba(224, 75, 47, 0.04); }

/* 表单 */
.form-grid { display: grid; gap: 18px; }
.field-row label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; }
.field-row label .req { color: var(--verm); }
.field-row input, .field-row textarea, .field-row select {
  width: 100%; border: 1px solid var(--line); border-radius: 2px; background: var(--surface);
  padding: 12px 14px; font-size: 0.98rem; font-family: var(--font-body); color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field-row input:focus, .field-row textarea:focus, .field-row select:focus { outline: none; border-color: var(--verm); box-shadow: 0 0 0 3px rgba(224, 75, 47, 0.15); }
.field-row textarea { min-height: 130px; resize: vertical; }
.field-row .err { color: var(--danger); font-size: 0.82rem; margin-top: 6px; display: none; }
.field-row.invalid input, .field-row.invalid textarea { border-color: var(--danger); }
.field-row.invalid .err { display: block; }
.form-note { font-size: 0.82rem; color: var(--slate-2); }

.alert { border-radius: 3px; padding: 14px 18px; font-size: 0.92rem; border: 1px solid; display: none; }
.alert.show { display: block; }
.alert-ok { background: rgba(47, 143, 59, 0.1); border-color: var(--ok); color: #1d5c26; }
.alert-err { background: rgba(194, 47, 29, 0.08); border-color: var(--danger); color: var(--danger); }

/* 页脚 */
.footer { background: var(--ink-2); color: var(--slate-3); border-top: 1px solid var(--line-dark); padding: 72px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h3 { color: var(--paper); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; font-weight: 500; margin-bottom: 18px; }
.footer a { color: var(--slate-3); text-decoration: none; display: block; padding: 5px 0; font-size: 0.92rem; }
.footer a:hover { color: var(--verm-2); }
.footer a::before { content: "— "; color: var(--slate-2); }
.footer .brandline { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer .brandline img { height: 34px; }
.footer .desc { font-size: 0.9rem; max-width: 40ch; color: var(--slate-3); }
.footer .contact { font-size: 0.9rem; line-height: 2; }
.footer .contact a { display: inline; padding: 0; }
.footer .contact a::before { content: none; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 0.8rem; color: var(--slate-3); }
.footer-bottom a { display: inline; padding: 0; }
.footer-bottom a::before { content: none; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 36px; height: 36px; border: 1px solid var(--line-dark); border-radius: 2px; display: grid; place-items: center; padding: 0; }
.socials a::before { content: none; }
.socials a:hover { border-color: var(--verm-2); color: var(--verm-2); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- 动效 ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
.hero [data-reveal] { opacity: 1; transform: none; transition: none; }
[data-parallax] { will-change: transform; }

/* 图谱控件区 */
.graph-controls { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; padding: 16px 18px; border: 1px solid var(--line-dark); border-radius: 4px; background: var(--ink-3); margin-top: 18px; }
.graph-controls .gc { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; color: var(--slate-3); }
.graph-controls input[type="range"] { width: 110px; accent-color: var(--verm-2); }
.graph-controls select { background: var(--ink-2); color: var(--paper); border: 1px solid var(--line-dark); border-radius: 2px; padding: 5px 8px; font-family: var(--font-mono); font-size: 0.7rem; }
.graph-controls .switch { position: relative; width: 34px; height: 18px; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 10px; cursor: pointer; transition: background 0.2s; }
.graph-controls .switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--slate); transition: transform 0.2s, background 0.2s; }
.graph-controls .switch[aria-checked="true"] { background: var(--verm); border-color: var(--verm); }
.graph-controls .switch[aria-checked="true"]::after { transform: translateX(16px); background: var(--paper); }
.graph-controls button { background: var(--ink-2); border: 1px solid var(--line-dark); color: var(--paper); border-radius: 2px; padding: 6px 12px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.graph-controls button:hover { border-color: var(--verm-2); color: var(--verm-2); }

/* 管理面板 */
.admin-shell { max-width: 1080px; margin: 0 auto; padding: calc(var(--nav-h) + var(--ann-h) + 48px) 24px 80px; }
html.no-ann .admin-shell { padding-top: calc(var(--nav-h) + 48px); }
.admin-card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 32px; box-shadow: var(--shadow-1); }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.badge { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; padding: 3px 8px; border-radius: 2px; border: 1px solid; }
.badge-ok { color: var(--ok); border-color: var(--ok); background: rgba(47, 143, 59, 0.08); }
.badge-warn { color: var(--warn); border-color: var(--warn); background: rgba(199, 120, 0, 0.08); }
.modal-scrim { position: fixed; inset: 0; background: rgba(13, 24, 48, 0.6); z-index: 1400; display: none; place-items: center; padding: 20px; }
.modal-scrim.open { display: grid; }
.modal { background: var(--surface); border-radius: 4px; max-width: 460px; width: 100%; padding: 28px; box-shadow: var(--shadow-2); }
.modal h3 { margin-bottom: 10px; }
.modal .actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 22px; }

/* 响应式 */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual canvas { height: 380px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 32px; }
  .split .sticky-col { position: static; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .platform-row { grid-template-columns: 1fr; gap: 8px; }
  .platform-row .go { display: none; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .nav-cta { display: none; }
  .field { padding: 64px 0; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-bottom: 56px; }
  .hero-visual canvas { height: 320px; }
  .section-head { margin-bottom: 32px; }
  .ann { font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-bg .glow { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
/* ---------- v3 升级：小窗媒体 / 对比动效 / 语言切换 / 开源序列 / 脱敏案例 ---------- */
.nav-lang {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em;
  color: var(--slate-3); text-decoration: none; border: 1px solid var(--line-dark);
  border-radius: 2px; padding: 8px 10px; transition: color .2s, border-color .2s;
}
.nav-lang:hover { color: var(--verm-2); border-color: var(--verm-2); }

.media-card .media-win {
  position: relative; height: 250px; border: 1px solid var(--line-dark); border-radius: 6px;
  background: var(--ink-2); overflow: hidden; box-shadow: var(--shadow-1);
}
.media-card .media-win canvas { width: 100%; height: 100%; display: block; }
.win-label {
  position: absolute; top: 10px; left: 12px; font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.14em; color: var(--slate-3); background: rgba(13, 24, 48, 0.72);
  padding: 4px 8px; border-radius: 2px; pointer-events: none;
}
.media-cap { color: var(--slate-3); font-size: 0.88rem; margin: 12px 2px 0; }
.shot.media-win { height: auto; }
.shot.media-win img { width: 100%; height: auto; display: block; }

.duel { margin-top: 36px; display: grid; gap: 28px; }
.duel-label { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.duel-label.old { color: var(--slate-2); }
.duel-label.new { color: var(--verm); }
.duel-track { position: relative; height: 46px; border-radius: 23px; background: var(--paper-2); border: 1px solid var(--line); overflow: hidden; }
.duel-bar { position: absolute; top: 0; bottom: 0; left: 0; width: 0%; border-radius: 23px; }
.duel-bar.old { background: linear-gradient(90deg, #c9c9c9, #8592a3); }
.duel-bar.new { background: linear-gradient(90deg, var(--verm), var(--verm-2) 55%, var(--amber)); box-shadow: 0 0 28px rgba(224, 75, 47, 0.45); }
.duel-state { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--slate-2); }
.duel-state[data-duel-state="new"] { color: #fff; text-shadow: 0 1px 3px rgba(13, 24, 48, 0.5); }
.duel-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

.case-card .img.abstract, .case-hero-abstract {
  display: grid; place-items: center; position: relative;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 60%, #2a3c5e 100%);
}
.case-card .img.abstract { aspect-ratio: 3/2; }
.case-hero-abstract { height: 320px; border-radius: 6px; border: 1px solid var(--line-dark); }
.a-coal-mine { background: linear-gradient(135deg, #142440 0%, #41536b 55%, #c77800 140%); }
.a-manufacturing { background: linear-gradient(135deg, #0d1830 0%, #1b3055 55%, #00706a 140%); }
.a-social-unit { background: linear-gradient(135deg, #142440 0%, #41536b 50%, #634dbf 140%); }
.case-card .img.abstract .glyph, .case-hero-abstract .glyph {
  font-family: var(--font-display); font-weight: 900; font-size: 4rem;
  color: rgba(247, 244, 237, 0.88); letter-spacing: 0.02em;
}
.case-hero-abstract .tagline { position: absolute; bottom: 14px; left: 16px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; color: var(--slate-3); }
.case-card .img.abstract .tag { position: absolute; left: 14px; top: 14px; background: var(--ink-2); color: var(--paper); font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; padding: 5px 9px; border-radius: 2px; }

.series-block .os-entry { padding: 32px; }
.eco-card { background: var(--surface); }

@media (max-width: 720px) {
  .media-card .media-win { height: 200px; }
  .duel-track { height: 38px; }
  .case-card .img.abstract .glyph, .case-hero-abstract .glyph { font-size: 2.6rem; }
  .case-hero-abstract { height: 220px; }
  .nav-lang { padding: 6px 8px; }
}

/* ---------- v3 移动导航修正 ---------- */
@media (max-width: 720px) {
  .nav-inner { gap: 10px; padding: 0 14px; }
  .nav-logo .word { font-size: 0.9rem; white-space: nowrap; }
  .nav-logo img { height: 26px; width: 26px; }
  .ann span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .nav-icon { width: 34px; height: 34px; }
  .nav-lang { padding: 6px 7px; font-size: 0.64rem; }
}
@media (max-width: 400px) {
  .nav-logo .word { display: none; }
}

/* ---------- WB 三态切换查看器 ---------- */
.wb-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 20px; }
.wb-tab {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 2px;
  background: var(--surface); color: var(--slate-2); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.wb-tab:hover { border-color: var(--verm); color: var(--verm); }
.wb-tab.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.wb-view { display: none; }
.wb-view.on { display: block; animation: wbIn .35s ease; }
@keyframes wbIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wb-view.on { animation: none; } }

/* ---------- 网格子项 min-width 修正（防止表格/截图撑破移动视口） ---------- */
.split > *, .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.table-wrap { max-width: 100%; }

/* ================= v4 · cobalt editorial ================= */
h1, h2 { text-wrap: balance; font-weight: 700; letter-spacing: -0.02em; }
h3 { text-wrap: balance; }
p.lead, .doc-lead { text-wrap: pretty; }
.btn-primary { background: var(--verm); color: #fff; }
.btn-primary:hover { background: var(--verm-2); color: #fff; }
.field-dark .btn-primary, .field-dark2 .btn-primary { background: var(--paper); color: var(--ink); }
.field-dark .btn-primary:hover, .field-dark2 .btn-primary:hover { background: var(--verm-2); color: #fff; }
.btn-accent { background: var(--verm); color: #fff; }
.btn-accent:hover { background: var(--verm-2); }
.nav-logo .word { font-family: var(--font-body); font-weight: 800; letter-spacing: 0.02em; }
.hero-bg .g1 { background: radial-gradient(circle, rgba(11, 92, 219, 0.55), transparent 65%); }
.hero-bg .g2 { background: radial-gradient(circle, rgba(0, 194, 255, 0.4), transparent 65%); }
.hero-bg .g3 { background: radial-gradient(circle, rgba(255, 61, 138, 0.3), transparent 65%); }
.duel-bar.new { background: linear-gradient(90deg, var(--verm), var(--verm-2) 45%, var(--blue)); box-shadow: 0 0 28px rgba(7, 128, 231, 0.45); }
.duel-label.new { color: var(--verm); }
.case-card .img.abstract, .case-hero-abstract { background: linear-gradient(135deg, #1A1D21 0%, #22262B 60%, #12305e 100%); }
.a-coal-mine, .a-mining { background: linear-gradient(135deg, #1A1D21 0%, #39404B 55%, #FFB020 140%); }
.a-manufacturing { background: linear-gradient(135deg, #16181C 0%, #22262B 55%, #14B8A6 140%); }
.a-social-unit { background: linear-gradient(135deg, #1A1D21 0%, #39404B 50%, #8B5CF6 140%); }

/* 社交图标行 */
.social-row { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 18px; }
.social-item { display: inline-flex; align-items: center; gap: 8px; color: var(--slate-3); font-size: 0.85rem; text-decoration: none; transition: color .2s; }
.social-item svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
a.social-item:hover { color: var(--verm-2); }

/* 横向步骤流 */
.steps-h { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: st; }
.step-card { position: relative; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 18px 16px 16px; }
.field-dark .step-card, .field-dark2 .step-card { background: var(--ink-3); border-color: var(--line-dark); }
.step-card .n { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; color: var(--verm-2); }
.step-card h3 { font-size: 1.02rem; margin: 8px 0 6px; font-family: var(--font-body); font-weight: 800; letter-spacing: 0; }
.step-card p { margin: 0; font-size: 0.85rem; color: var(--slate-2); line-height: 1.6; }
.field-dark .step-card p, .field-dark2 .step-card p { color: var(--slate-3); }
.step-card:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 50%; transform: translateY(-50%); color: var(--verm-2); font-size: 0.9rem; z-index: 1; }
@media (max-width: 1024px) { .steps-h { grid-template-columns: repeat(2, 1fr); } .step-card:not(:last-child)::after { display: none; } }
@media (max-width: 620px) { .steps-h { grid-template-columns: 1fr; } }

/* 小窗组合 + 放大 */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.media-grid.two { grid-template-columns: var(--cols, repeat(2, 1fr)); }
.shot.win-sm .bar span { font-size: 0.6rem; }
.shot.win-sm img { width: 100%; height: auto; object-fit: fill; cursor: default; display: block; }
.media-grid.two .shot.win-sm img { height: auto; }
@media (max-width: 1024px) { .media-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .media-grid, .media-grid.two { grid-template-columns: 1fr; } }
.lightbox { display: none !important; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; border-radius: 6px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6); }
.lightbox .lb-close { position: absolute; top: 18px; right: 22px; background: none; border: 1px solid var(--line-dark); color: var(--paper); border-radius: 3px; width: 38px; height: 38px; cursor: pointer; font-size: 1rem; }
.lightbox .lb-cap { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; color: var(--slate-3); }

/* hero 架构图 */
.hero-arch { position: relative; }
.hero-arch canvas { width: 100%; height: 480px; display: block; }
@media (max-width: 720px) { .hero-arch canvas { height: 340px; } }

/* v4 修正：页脚社交项不带列表破折号 */
.footer a.social-item::before { content: none; }
.footer .social-row { align-items: center; }
.footer .social-item { padding: 0; }

/* ================= v5 ================= */
@media (max-width: 720px) { .hero-meta { flex-wrap: wrap; gap: 14px; } }
.footer .social-row { flex-direction: column; align-items: flex-start; gap: 10px; }
.footer .social-item { padding: 0; }
button.social-item { background: none; border: 0; cursor: pointer; font: inherit; }
button.social-item:hover { color: var(--verm-2); }
.beian-badge { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; }
.qr-pop { position: fixed; inset: 0; z-index: 1600; display: none; place-items: center; background: rgba(22, 24, 28, 0.72); backdrop-filter: blur(3px); }
.qr-pop.open { display: grid; }
.qr-card { background: var(--surface); border-radius: 8px; padding: 22px 22px 16px; text-align: center; box-shadow: var(--shadow-2); position: relative; }
.qr-card img { width: 190px; height: 190px; object-fit: contain; border-radius: 4px; }
.qr-card .t { margin-top: 12px; font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.qr-card .s { font-size: 0.72rem; color: var(--slate); margin-top: 4px; }
.qr-card .lb-close { position: absolute; top: 8px; right: 8px; background: none; border: 0; color: var(--slate); cursor: pointer; font-size: 0.95rem; }
.slides-wrap { position: relative; }
.slides { overflow: hidden; width: 100vw; margin-left: calc(50% - 50vw); padding: 4px 0 16px; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slides-track { display: flex; gap: 18px; width: max-content; animation: marquee 80s linear infinite; }
.slides:hover .slides-track, .slides:focus-within .slides-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.slides .case-card { flex: 0 0 380px; }
.slides-nav { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.slide-btn { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--ink); cursor: pointer; font-size: 1rem; transition: border-color .2s, color .2s; }
.slide-btn:hover { border-color: var(--verm); color: var(--verm); }
.slide-count { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; color: var(--slate); }
@media (max-width: 620px) { .slides .case-card { flex: 0 0 82vw; } }
@media (prefers-reduced-motion: reduce) { .slides-track { animation: none; } .slides { overflow-x: auto; } }
.eco-shot { margin-top: 16px; }
.eco-shot img { width: 100%; max-height: 300px; object-fit: cover; object-position: top center; border-radius: 6px; border: 1px solid var(--line-dark); }
.loop-card { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 22px; }
.field-dark .loop-card, .field-dark2 .loop-card, .field-tint .loop-card { background: var(--surface); }
.loop-card .k { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.16em; color: var(--verm); }
.loop-steps { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: lp; }
.loop-steps li { counter-increment: lp; position: relative; padding: 0 0 16px 40px; }
.loop-steps li::before { content: counter(lp, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 3px; font-family: var(--font-mono); font-size: 0.66rem; color: var(--verm); background: var(--paper); }
.loop-steps li::after { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 1px; background: var(--line); }
.loop-steps li:last-child::after { display: none; }
.loop-steps b { display: block; font-size: 0.92rem; }
.loop-steps span { font-size: 0.8rem; color: var(--slate-2); }
.office-card { display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: start; }
.office-qr { text-align: center; }
.office-qr img { width: 128px; height: 128px; object-fit: contain; border-radius: 6px; border: 1px solid var(--line-dark); background: #fff; padding: 6px; }
.office-qr .t { margin-top: 8px; font-size: 0.72rem; color: var(--slate-3); }
@media (max-width: 620px) { .office-card { grid-template-columns: 1fr; } }

/* v5.1：四态小窗完整显示截图（contain 留边，不裁切） */
.wb-view .shot.win-sm img { height: auto; object-fit: fill; background: none; }

/* v6: footer inline socials + one-line beian + address nowrap */
.footer a.social-item, .footer button.social-item { display: inline-flex; }
.footer-bottom a { display: inline; }
.footer .contact { font-size: 0.85rem; }
.footer .contact .addr { white-space: nowrap; }
@media (max-width: 1024px) { .footer .contact .addr { white-space: normal; } }

/* v6.1：警徽图标行内显示，备案号单行 */
.beian-badge { display: inline-block; }

/* v7：四态截图容器限宽，与页内前序图片窗宽度统一 */
.wb-view .shot { max-width: 686px; }

/* v7.1：组合小窗各自贴合图片高度，避免拉伸留白 */
.media-grid .shot { align-self: start; }

/* ---------- 移动端性能降级 ---------- */
@media (max-width: 720px) {
  body::after { display: none; }
  .nav { backdrop-filter: none; background: #31363C; }
}

/* ---------- 可访问性 ---------- */
.skip-link {
  position: fixed; left: 12px; top: -64px; z-index: 3000;
  padding: 10px 16px; background: var(--paper); color: var(--ink);
  border-radius: var(--radius); font-size: 0.9rem; text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--verm); outline-offset: 2px; }
