/* ============================================================
   TwinSphere 站点样式 · 军工深蓝科技风
   ============================================================ */

:root {
  --bg: #081526;
  --bg-2: #0b1f3a;
  --panel: #16294b;
  --panel-2: #10203c;
  --line: #1e3a63;
  --text: #e8f1ff;
  --text-dim: #9db1d3;
  --text-muted: #5a6b8c;
  --accent: #00c2ff;
  --accent-2: #3a8dff;
  --grad: linear-gradient(135deg, #00c2ff 0%, #3a8dff 100%);
  --radius: 14px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --font: "PingFang SC", "Source Han Sans SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
}

/* ── 亮色主题（与文档中心共用 localStorage: twinsphere-theme）── */
:root[data-theme="light"] {
  --bg: #f5f8fd;
  --bg-2: #eaf1fa;
  --panel: #ffffff;
  --panel-2: #f2f6fc;
  --line: #c3d4e8;
  --text: #0f2136;
  --text-dim: #4a5f7a;
  --text-muted: #8598ad;
  --accent: #0088cc;
  --accent-2: #1467c8;
  --shadow: 0 16px 40px rgba(15, 33, 54, 0.12);
}
/* 亮色下需单独覆盖的硬编码处（集中一处，便于维护） */
:root[data-theme="light"] .site-header {
  background: rgba(245, 248, 253, 0.85);
  border-bottom-color: rgba(195, 212, 232, 0.9);
}
:root[data-theme="light"] .site-header.scrolled { box-shadow: 0 8px 24px rgba(15, 33, 54, 0.12); }
:root[data-theme="light"] .site-footer { background: #e4ecf7; }

/* 卡片类：5 处硬编码深蓝渐变 → 浅色面板 */
:root[data-theme="light"] .card,
:root[data-theme="light"] .qr-card,
:root[data-theme="light"] .model-block,
:root[data-theme="light"] .chain-step,
:root[data-theme="light"] .arch-layer,
:root[data-theme="light"] .vstep {
  background: linear-gradient(180deg, #ffffff, #f4f8fd);
}

/* 首屏：标题文字渐变 + 网格线 */
:root[data-theme="light"] .hero-bg { background: linear-gradient(120deg, #ffffff, #dceafc 60%, #b8dcf5); }
:root[data-theme="light"] .hero-bg::before {
  background-image:
    linear-gradient(rgba(195, 212, 232, 0.75) 1px, transparent 1px),
    linear-gradient(90deg, rgba(195, 212, 232, 0.75) 1px, transparent 1px);
}
:root[data-theme="light"] .hero-title {
  background: linear-gradient(120deg, #0f2136, #1467c8 60%, #0088cc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="light"] .btn-primary { color: #ffffff; box-shadow: 0 8px 22px rgba(0, 136, 204, 0.28); }

/* 分隔线与移动端菜单面板 */
:root[data-theme="light"] .section-alt { border-color: rgba(195, 212, 232, 0.85); }
:root[data-theme="light"] .main-nav { background: rgba(245, 248, 253, 0.98); border-color: rgba(195, 212, 232, 0.9); }
:root[data-theme="light"] .compare-table th,
:root[data-theme="light"] .compare-table td { border-bottom-color: rgba(195, 212, 232, 0.8); }

/* 演示素材 */
:root[data-theme="light"] .demo-media:not(.filled) { background: rgba(15, 33, 54, 0.04); border-color: var(--line); }
:root[data-theme="light"] .demo-dot { border-color: rgba(15, 33, 54, 0.45); background: rgba(255, 255, 255, 0.65); }
:root[data-theme="light"] .demo-media-caption { background: rgba(255, 255, 255, 0.88); }

/* V 模型 */
:root[data-theme="light"] .vmodel-svg .vnode rect { fill: #ffffff; stroke: var(--line); }
:root[data-theme="light"] .vmodel-svg .vnode:hover rect { fill: #eaf1fa; }
:root[data-theme="light"] .vmodel-svg .legend-line { stroke: var(--line); }
:root[data-theme="light"] .vmodel-svg .xil-mil { fill: #0b8fd0; }
:root[data-theme="light"] .vmodel-svg .xil-sil { fill: #15803d; }
:root[data-theme="light"] .vmodel-svg .xil-hil { fill: #b45309; }
:root[data-theme="light"] .vmodel-svg .xil-lvc { fill: #7e22ce; }

/* 其他 */
:root[data-theme="light"] .float-qr-icon,
:root[data-theme="light"] .float-qr-icon::after { border-color: #0f2136; }
:root[data-theme="light"] .compare-table thead th { background: #eaf1fa; }

/* ── 导航右侧主题切换按钮（与文档中心同款）── */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--text-dim);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { display: block; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8, 21, 38, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(30, 58, 99, 0.6);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; letter-spacing: 0.5px; }
.brand-mark { width: 30px; height: 30px; border-radius: 7px; display: block; }

.main-nav { display: flex; gap: 26px; }
.main-nav a {
  font-size: 0.95rem; color: var(--text-dim);
  position: relative; padding: 4px 0; transition: color 0.2s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--grad); transition: width 0.25s;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; border-radius: 8px;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.5px;
  border: 1px solid transparent; cursor: pointer; transition: all 0.25s;
}
.btn-primary { background: var(--grad); color: #04121f; box-shadow: 0 8px 22px rgba(0, 194, 255, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 194, 255, 0.5); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* 移动端菜单按钮 */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex; align-items: center;
  padding: 130px 0 70px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 70% 20%, rgba(0, 194, 255, 0.16), transparent),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(58, 141, 255, 0.12), transparent),
    var(--bg);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(30, 58, 99, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 99, 0.28) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}

.hero-inner { text-align: center; }
.hero-eyebrow { font-size: 0.8rem; letter-spacing: 4px; color: var(--accent); margin-bottom: 22px; }
.hero-title {
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  font-weight: 800; line-height: 1.25; margin-bottom: 24px;
  background: linear-gradient(120deg, #ffffff, #b8e6ff 60%, #00c2ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-dim); margin-bottom: 36px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats {
  display: flex; gap: 48px; justify-content: center; flex-wrap: wrap;
  padding-top: 36px; border-top: 1px solid var(--line);
}
.stat { text-align: center; }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.stat-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 22px; height: 36px; border: 2px solid var(--line); border-radius: 12px;
}
.hero-scroll span {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 2px; background: var(--accent);
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; transform: translate(-50%, 0); }
  70% { opacity: 0; transform: translate(-50%, 12px); }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ---------- 区块通用 ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid rgba(30, 58, 99, 0.5); border-bottom: 1px solid rgba(30, 58, 99, 0.5); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-eyebrow { font-size: 0.78rem; letter-spacing: 4px; color: var(--accent); margin-bottom: 14px; }
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; margin-bottom: 14px; }
.section-sub { color: var(--text-muted); font-size: 1.02rem; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, rgba(22, 41, 75, 0.9), rgba(16, 32, 60, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(0, 194, 255, 0.55); box-shadow: var(--shadow); }
.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- 对比表 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid rgba(30, 58, 99, 0.5); }
.compare-table thead th { background: var(--panel-2); color: var(--accent); font-weight: 700; font-size: 1rem; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: rgba(0, 194, 255, 0.05); }
.compare-table td:first-child { color: var(--text-dim); }
.ok { color: #7fd6a6; }
.part { color: var(--text-muted); }
.no { color: #c77; }
.win { color: var(--accent); font-weight: 600; }

/* ---------- 获客区 ---------- */
.contact-grid { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.qr-card {
  text-align: center; padding: 30px 44px;
  background: linear-gradient(180deg, rgba(22, 41, 75, 0.9), rgba(16, 32, 60, 0.9));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.qr-card img { margin: 0 auto 16px; border-radius: 8px; background: #fff; padding: 8px; }
.qr-card h3 { font-size: 1.05rem; }
.qr-card p { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #060f1e; border-top: 1px solid var(--line); padding: 34px 0; }
.footer-inner { text-align: center; }
.footer-brand { font-weight: 600; margin-bottom: 8px; }
.footer-meta { color: var(--text-muted); font-size: 0.85rem; white-space: pre-wrap; }
.footer-meta a { color: var(--accent); }

/* ---------- 悬浮二维码 ---------- */
.float-qr {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--grad); display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0, 194, 255, 0.45);
  transition: transform 0.25s;
}
.float-qr:hover { transform: scale(1.08); }
.float-qr-icon { width: 24px; height: 24px; border: 2px solid #04121f; border-radius: 3px; position: relative; }
.float-qr-icon::after { content: ""; position: absolute; inset: 4px; border: 1px solid #04121f; border-radius: 1px; }

/* ---------- 滚动显现动效 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 四类模型详解 ---------- */
.model-detail { display: flex; flex-direction: column; gap: 26px; }
.model-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 36px;
  background: linear-gradient(180deg, rgba(22, 41, 75, 0.9), rgba(16, 32, 60, 0.9));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.model-block:hover { border-color: rgba(0, 194, 255, 0.55); box-shadow: var(--shadow); }
.model-block.reverse .model-media { order: 2; }
.model-body h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); font-weight: 800; margin-bottom: 12px; }
.model-body p { color: var(--text-dim); margin-bottom: 16px; font-size: 0.98rem; }
.model-body ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.model-body ul li { position: relative; padding-left: 20px; color: var(--text-dim); font-size: 0.95rem; }
.model-body ul li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--grad);
}

/* GIF 动图占位 */
.demo-media {
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--line);
  border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(180deg, rgba(22, 41, 75, 0.55), rgba(16, 32, 60, 0.55));
  color: var(--text-muted);
}
.demo-media-tag { font-size: 0.7rem; letter-spacing: 3px; color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 2px 10px; }
.demo-media-text { font-size: 0.9rem; }
.card .demo-media { margin-bottom: 18px; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(8, 21, 38, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
    transform: translateY(-140%);
    transition: transform 0.3s;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 24px; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-actions .btn-ghost { display: none; }

  .grid-2 { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .section { padding: 70px 0; }

  .model-block { grid-template-columns: 1fr; gap: 20px; }
  .model-block.reverse .model-media { order: 0; }
}

@media (max-width: 480px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}

/* ============================================================
   产品平台与工具链（#platform）
   ============================================================ */
.section-subhead {
  text-align: center; margin: 72px 0 32px;
}
.section-subhead h3 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 800; margin-bottom: 8px;
  display: inline-flex; align-items: center; gap: 12px;
}
.section-subhead h3::before, .section-subhead h3::after {
  content: ""; width: 42px; height: 1px; background: var(--line);
}
.section-subhead p { color: var(--text-muted); font-size: 0.92rem; }

/* 七层架构 */
.arch-layers {
  list-style: none; max-width: 860px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 14px;
}
.arch-layer {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(180deg, rgba(22, 41, 75, 0.9), rgba(16, 32, 60, 0.9));
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 22px;
  transition: transform 0.3s, border-color 0.3s;
}
.arch-layer:hover { transform: translateX(6px); border-color: rgba(0, 194, 255, 0.55); }
.arch-no {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 1rem;
  background: var(--grad); color: #04121f;
}
.arch-body h4 { font-size: 1.02rem; margin-bottom: 2px; }
.arch-body p { color: var(--text-dim); font-size: 0.9rem; }

/* 工具链卡片 */
.tool-card h3 { font-size: 1rem; margin-bottom: 8px; }
.tool-card code {
  color: var(--accent); font-family: "Cascadia Code", Consolas, "Courier New", monospace;
  font-size: 0.88em;
}
.tool-card p { font-size: 0.88rem; }

/* V 模型 */
.vmodel {
  list-style: none; display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 12px; counter-reset: vstep;
}
.vstep {
  position: relative; text-align: center;
  background: linear-gradient(180deg, rgba(22, 41, 75, 0.9), rgba(16, 32, 60, 0.9));
  border: 1px solid var(--line); border-radius: 12px; padding: 22px 14px;
  transition: transform 0.3s, border-color 0.3s;
}
.vstep:hover { transform: translateY(-4px); border-color: rgba(0, 194, 255, 0.55); }
.vstep h4 {
  font-size: 1rem; margin-bottom: 8px; color: var(--accent);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.vstep h4::before { counter-increment: vstep; content: counter(vstep); font-size: 0.72rem; }
.vstep p { color: var(--text-dim); font-size: 0.82rem; line-height: 1.6; }
.vstep:not(:last-child)::after {
  content: "→"; position: absolute; right: -10px; top: 50%;
  transform: translateY(-50%); color: var(--accent); font-size: 1.1rem; z-index: 1;
}

/* 管理区方法论图标 */
.icon-method { background: linear-gradient(135deg, #00e0a4, #00c2ff); }
.icon-method::after { content: "法"; position: absolute; inset: 0; display: grid; place-items: center; color: #04121f; font-size: 0.9rem; font-weight: 700; }

/* 对标卡片 */
.bench-grid { align-items: stretch; }
.bench-card { display: flex; flex-direction: column; }
.bench-head h3 { font-size: 1.15rem; display: flex; align-items: baseline; gap: 10px; }
.bench-sub { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; }
.bench-list { display: flex; flex-direction: column; gap: 0; margin-top: 14px; }
.bench-row { padding: 11px 0; border-bottom: 1px dashed rgba(30, 58, 99, 0.6); }
.bench-row:last-child { border-bottom: none; }
.bench-row dt { font-size: 0.86rem; color: var(--text-dim); font-weight: 600; }
.bench-row dd { font-size: 0.86rem; color: var(--accent); margin-top: 3px; }
.bench-row dd code {
  font-family: "Cascadia Code", Consolas, "Courier New", monospace; font-size: 0.9em;
}

/* 平台分区响应式 */
@media (max-width: 960px) {
  .vmodel { grid-template-columns: repeat(3, 1fr); }
  .vstep:not(:last-child)::after { display: none; }
}
@media (max-width: 768px) {
  .vmodel { grid-template-columns: 1fr 1fr; }
  .bench-grid { grid-template-columns: 1fr; }
  .arch-layer { align-items: flex-start; }
  .section-subhead h3::before, .section-subhead h3::after { width: 20px; }
}
@media (max-width: 480px) {
  .vmodel { grid-template-columns: 1fr; }
}

/* ============================================================
   2026-09-18 新增：五段主线 / MBSE 边界说明 / 路线图标签 / 演示媒体
   ============================================================ */
.chain-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  list-style: none;
  margin-bottom: 34px;
}
.chain-step {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px 20px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.chain-step:hover { transform: translateY(-4px); border-color: rgba(0, 194, 255, 0.55); box-shadow: var(--shadow); }
.chain-no {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--grad); color: #04121f; font-weight: 800; margin-bottom: 12px;
}
.chain-step h3 { font-size: 1.05rem; margin-bottom: 2px; }
.chain-sub { color: var(--accent); font-size: 0.8rem; margin-bottom: 10px; letter-spacing: 0.5px; }
.chain-step p:last-child { color: var(--text-dim); font-size: 0.9rem; line-height: 1.65; }

.boundary {
  border: 1px dashed rgba(0, 194, 255, 0.45);
  border-radius: var(--radius);
  padding: 22px 26px;
  background: rgba(0, 194, 255, 0.04);
}
.boundary h4 { font-size: 1rem; color: var(--accent); margin-bottom: 8px; }
.boundary p { color: var(--text-dim); font-size: 0.93rem; line-height: 1.75; }

.tag-soon {
  display: inline-block; font-size: 0.7rem; letter-spacing: 2px; color: #ffcc66;
  border: 1px solid rgba(255, 204, 102, 0.55); border-radius: 4px; padding: 2px 10px; margin-bottom: 12px;
}

.demo-media.filled { padding: 0; border: none; background: none; position: relative; display: block; overflow: hidden; border-radius: 10px; }
.demo-media .demo-item {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: 10px; opacity: 0; transition: opacity 0.45s ease;
}
.demo-media .demo-item.active { opacity: 1; }
.demo-media-caption {
  position: absolute; right: 12px; top: 10px; font-size: 0.78rem; color: var(--text-dim);
  background: rgba(6, 15, 30, 0.72); border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; z-index: 2;
}
.demo-dots {
  position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2;
  display: flex; gap: 8px; justify-content: center;
}
.demo-dot {
  width: 10px; height: 10px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(232, 241, 255, 0.75); background: rgba(6, 15, 30, 0.45);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.demo-dot:hover { transform: scale(1.25); }
.demo-dot.active { background: var(--accent); border-color: var(--accent); }

@media (max-width: 1000px) {
  .chain-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .chain-steps { grid-template-columns: 1fr; }
}

/* V 模型（内联 SVG） */
.vmodel-svg svg { width: 100%; height: auto; display: block; }
.vmodel-svg text { font-family: var(--font); }
.vmodel-svg .vnode rect { fill: #10203c; stroke: #1e3a63; stroke-width: 1.5; transition: stroke 0.25s ease, fill 0.25s ease; }
.vmodel-svg .vnode:hover rect { stroke: var(--accent); fill: #16294b; }
.vmodel-svg .svg-h { fill: var(--text); font-size: 15px; font-weight: 700; }
.vmodel-svg .svg-p { fill: var(--text-dim); font-size: 11.5px; }
.vmodel-svg .svg-note { fill: var(--text-muted); font-size: 11.5px; }
.vmodel-svg .svg-side { fill: var(--accent); font-size: 12.5px; letter-spacing: 2px; }
.vmodel-svg .svg-chain { fill: var(--text-dim); font-size: 12.5px; }

/* 在环级别徽标（MIL / SIL / HIL / LVC）：节点内彩色圆点 + 级别文字 */
.vmodel-svg .xil { font-size: 11px; font-weight: 600; }
.vmodel-svg .xil-base { fill: var(--text-muted); font-weight: 400; }
.vmodel-svg .xil-mil { fill: #00c2ff; }
.vmodel-svg .xil-sil { fill: #22c55e; }
.vmodel-svg .xil-hil { fill: #f59e0b; }
.vmodel-svg .xil-lvc { fill: #a855f7; }

/* 底部图例（与节点徽标同色） */
.vmodel-svg .legend-line { stroke: #1e3a63; stroke-width: 1; }
.vmodel-svg .legend-text { fill: var(--text-dim); font-size: 12px; }
.vmodel-svg .svg-arrow-s { fill: var(--accent); font-size: 13px; }

/* ── V 模型 → 三角形（平台页：V + 数字孪生虚线闭环）────────── */
.vmodel-svg .vt-band { fill: none; stroke: url(#vtGrad); stroke-width: 30; stroke-linecap: round; stroke-linejoin: round; opacity: 0.14; }
.vmodel-svg .vt-line { fill: none; stroke: url(#vtGrad); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.vmodel-svg .vt-node { fill: var(--panel); stroke: var(--accent-2); stroke-width: 2; transition: fill 0.25s, stroke 0.25s; }
.vmodel-svg .vt-group .svg-h { transition: fill 0.25s; }
.vmodel-svg .vt-group.is-active .vt-node { fill: var(--accent); stroke: var(--accent); }
.vmodel-svg .vt-group.is-active .svg-h { fill: var(--accent); }
.vmodel-svg .vt-center { fill: rgba(58, 141, 255, 0.10); stroke: var(--line); stroke-width: 1.5; }
.vmodel-svg .vt-ray { stroke: var(--line); stroke-width: 1.2; stroke-dasharray: 4 5; }
.vmodel-svg .vt-cross { stroke: var(--accent); stroke-width: 1.3; stroke-dasharray: 6 5; opacity: 0.8; }
.vmodel-svg .vt-loop { stroke: var(--accent); stroke-width: 1.8; stroke-dasharray: 7 6; fill: none; }
.vmodel-svg .vt-twin { fill: rgba(0, 194, 255, 0.10); stroke: var(--accent); stroke-width: 1.6; }
.vmodel-svg .vt-twin-title { fill: var(--accent); font-size: 13.5px; font-weight: 700; }
.vmodel-svg .vt-twin-sub { fill: var(--text-dim); font-size: 11px; }
.vmodel-svg .vt-wb { fill: var(--text-muted); font-size: 10.5px; }
:root[data-theme="light"] .vmodel-svg .vt-center { fill: #e9f1fb; }
:root[data-theme="light"] .vmodel-svg .vt-twin { fill: #e6f6ff; }

/* 步骤卡（点击 / 聚焦时图上对应节点高亮） */
.vm-steps { margin-top: 26px; }
.vm-step {
  display: flex; gap: 14px; align-items: flex-start; text-align: left;
  padding: 20px 22px; cursor: pointer;
}
.vm-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vm-step.is-active { border-color: var(--accent); box-shadow: var(--shadow); }
.vm-no {
  flex: none; font-size: 0.78rem; font-weight: 800; color: var(--accent);
  border: 1px solid rgba(0, 194, 255, 0.4); border-radius: 6px; padding: 2px 8px;
}
.vm-body { display: flex; flex-direction: column; gap: 6px; }
.vm-body strong { font-size: 0.98rem; }
.vm-body em { font-style: normal; font-size: 0.86rem; color: var(--text-dim); line-height: 1.7; }
.vm-wb { font-size: 0.78rem; color: var(--accent); }
.vm-wb:hover { text-decoration: underline; }

/* 窄屏：三角形图保持可读（容器内横向滚动，页面本身不溢出） */
@media (max-width: 900px) {
  .vmodel-svg { overflow-x: auto; padding-bottom: 6px; }
  .vmodel-svg svg { min-width: 780px; }
}

/* workbench 卡片状态标签（首页 workbench 系列卡片墙） */
.pill {
  display: inline-block; font-size: 0.68rem; letter-spacing: 1px;
  border-radius: 4px; padding: 1px 7px; margin-left: 8px; vertical-align: middle;
  font-weight: 500;
}
.pill-now { color: #6ee7a8; border: 1px solid rgba(110, 231, 168, 0.5); background: rgba(110, 231, 168, 0.08); }
.pill-soon { color: #ffcc66; border: 1px solid rgba(255, 204, 102, 0.5); background: rgba(255, 204, 102, 0.08); }

/* ── 数字线索（主页自绘 SVG）────────────────────────────── */
.thread-svg { margin-top: 10px; }
.thread-svg svg { width: 100%; height: auto; display: block; }
.thread-svg text { font-family: var(--font); }
.thread-svg .th-panel { fill: var(--panel-2); stroke: var(--line); stroke-width: 1.5; }
.thread-svg .th-card { fill: var(--panel-2); stroke: var(--line); stroke-width: 1.5; }
.thread-svg .th-pillar { fill: rgba(58, 141, 255, 0.13); stroke: var(--line); stroke-width: 1; }
.thread-svg .th-chip { fill: none; stroke: var(--accent); stroke-width: 1.1; }
.thread-svg .th-chip.soon { stroke: #d99a1f; stroke-dasharray: 4 3; }
.thread-svg .th-chip-text { fill: var(--accent); font-size: 10px; }
.thread-svg .th-chip-text.soon { fill: #d99a1f; }
.thread-svg .th-h { fill: var(--text); font-size: 15.5px; font-weight: 700; }
.thread-svg .th-en { fill: var(--text-muted); font-size: 10px; letter-spacing: 1.6px; }
.thread-svg .th-cn { fill: var(--text); font-size: 12.5px; font-weight: 600; }
.thread-svg .th-p { fill: var(--text-dim); font-size: 11px; }
.thread-svg .th-barrier { stroke: #e05a5a; stroke-width: 1.6; stroke-dasharray: 6 5; }
.thread-svg .th-barrier-text { fill: #e05a5a; font-size: 10.5px; letter-spacing: 0.8px; }
.thread-svg .th-bar { fill: rgba(0, 194, 255, 0.09); stroke: var(--accent); stroke-width: 1.4; }
.thread-svg .th-bar-title { fill: var(--accent); font-size: 12.5px; font-weight: 700; }
.thread-svg .th-tick { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.thread-svg .th-arrow { stroke: var(--text-muted); stroke-width: 1.4; fill: none; }
.thread-svg .th-twin { fill: var(--accent-2); }
.thread-svg .th-twin-text { fill: #ffffff; font-size: 12.5px; font-weight: 700; }
.thread-svg .th-legend { fill: var(--text-muted); font-size: 11.5px; }
:root[data-theme="light"] .thread-svg .th-panel,
:root[data-theme="light"] .thread-svg .th-card { fill: #ffffff; }
:root[data-theme="light"] .thread-svg .th-pillar { fill: #e7f0fb; }
:root[data-theme="light"] .thread-svg .th-bar { fill: #e6f6ff; }
:root[data-theme="light"] .thread-svg .th-chip.soon { stroke: #b45309; }
:root[data-theme="light"] .thread-svg .th-chip-text.soon { fill: #b45309; }

/* 产品体系表：产品名 + 层标注两行；窄屏横向滚动 */
.prod-name { display: block; font-weight: 600; color: var(--text); font-size: 0.97rem; }
.prod-sub { display: block; margin-top: 3px; font-size: 0.78rem; color: var(--text-muted); }
/* 首列（产品 / 字段名）给足宽度，避免名称被挤成多行 */
.compare-table td:first-child, .compare-table thead th:first-child { min-width: 190px; }
/* 需要不换行的状态列：在单元格上加 .col-status */
.compare-table .col-status { white-space: nowrap; }
.pill { white-space: nowrap; }
@media (max-width: 720px) {
  .compare-table { min-width: 720px; }
}

/* ── 新增架构图（数字孪生双环 / RFLP / 系统模型总览）────── */
.thread-svg .dg-soft { fill: rgba(58, 141, 255, 0.10); stroke: var(--line); stroke-width: 1.5; }
.thread-svg .dg-hex { fill: rgba(58, 141, 255, 0.13); stroke: var(--accent-2); stroke-width: 1.6; }
:root[data-theme="light"] .thread-svg .dg-soft { fill: #e9f1fb; }
:root[data-theme="light"] .thread-svg .dg-hex { fill: #e3eefb; }

/* ============================================================
   多页面结构：面包屑 / 子页首屏 / 产品导航 / 方案区块
   ============================================================ */

/* 面包屑 */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-dim); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-muted); }
.breadcrumb em { font-style: normal; color: var(--text); }

/* 子页首屏（比首页 Hero 紧凑） */
.page-hero { position: relative; overflow: hidden; padding: 130px 0 46px; border-bottom: 1px solid rgba(30, 58, 99, 0.5); }
:root[data-theme="light"] .page-hero { border-bottom-color: rgba(195, 212, 232, 0.8); }
.page-hero .hero-eyebrow { margin-bottom: 16px; }
.page-title {
  font-size: clamp(1.8rem, 4.2vw, 2.9rem); font-weight: 800; line-height: 1.25; margin-bottom: 16px;
  background: linear-gradient(120deg, #ffffff, #b8e6ff 60%, #00c2ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="light"] .page-title {
  background: linear-gradient(120deg, #0f2136, #1467c8 60%, #0088cc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-sub { color: var(--text-dim); font-size: clamp(0.98rem, 1.8vw, 1.12rem); max-width: 880px; }

/* 引导段（产品页 / 方案页开头） */
.lead {
  color: var(--text-dim); font-size: 1.02rem; line-height: 1.85;
  border-left: 3px solid var(--accent); padding: 4px 0 4px 18px;
  margin-bottom: 40px; max-width: 980px;
}
.lead b { color: var(--text); }

/* 产品导航（胶囊链接，当前项高亮） */
.product-nav, .anchor-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.product-nav a, .anchor-pills a {
  font-size: 0.85rem; padding: 6px 15px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-dim); transition: all 0.2s;
}
.product-nav a:hover, .anchor-pills a:hover { border-color: var(--accent); color: var(--accent); }
.product-nav a[aria-current="page"], .anchor-pills a[aria-current="page"] {
  background: var(--grad); color: #04121f; border-color: transparent; font-weight: 600;
}

/* 产品卡片 */
.product-card .prod-sub { margin-bottom: 8px; }
.card-link { display: inline-block; margin-top: 14px; font-size: 0.88rem; color: var(--accent); }
.card-link:hover { text-decoration: underline; }
.prod-link { display: block; color: inherit; }
.prod-link:hover .prod-name { color: var(--accent); }

/* 区块底部「查看全部 →」按钮 */
.section-more { text-align: center; margin-top: 36px; }

/* ============================================================
   产品 / 解决方案页版式：分区标题 · 入口卡 · 工作台卡 · 面板分组 · 目录栏
   ============================================================ */

/* 分区标题：左侧竖条 + 说明 */
.section-bar { margin-bottom: 26px; }
.section-bar h2 {
  position: relative; padding-left: 16px;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 800;
}
.section-bar h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 1.05em; border-radius: 2px; background: var(--grad);
}
.section-bar p { color: var(--text-muted); font-size: 0.92rem; margin-top: 8px; padding-left: 16px; }

.grid-note { color: var(--text-muted); font-size: 0.85rem; margin-top: 16px; }

/* 工作台卡：名称 + 分组条目 */
.wb-card { display: flex; flex-direction: column; padding: 26px 24px; }
.wb-head { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.wb-head strong { display: block; font-size: 1.02rem; }
.wb-head em { font-style: normal; font-size: 0.78rem; color: var(--accent); }
.wb-groups dt { font-size: 0.72rem; letter-spacing: 2px; color: var(--accent); margin: 14px 0 4px; }
.wb-groups dd {
  position: relative; padding-left: 16px;
  font-size: 0.86rem; color: var(--text-dim); line-height: 1.7;
}
.wb-groups dd::before { content: "→"; position: absolute; left: 0; color: var(--text-muted); }
.wb-card .card-link { margin-top: auto; padding-top: 16px; }

/* 面板：标签 chip + 箭头条目列表 */
.panel-card { padding: 26px 24px; }
.panel-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 36px; }
.tag-chip {
  display: inline-block; font-size: 0.78rem; font-weight: 600; color: var(--accent);
  background: rgba(0, 194, 255, 0.10); border: 1px solid rgba(0, 194, 255, 0.35);
  border-radius: 6px; padding: 3px 12px; margin-bottom: 12px;
}
:root[data-theme="light"] .tag-chip { background: #e6f6ff; }
.arrow-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.arrow-list li {
  position: relative; padding-left: 18px;
  font-size: 0.88rem; color: var(--text-dim); line-height: 1.7;
}
.arrow-list li::before { content: "→"; position: absolute; left: 0; color: var(--text-muted); }
.arrow-list li b { color: var(--text); }
.arrow-list a { color: var(--accent); }
.arrow-list a:hover { text-decoration: underline; }

/* 子页首屏：锚点胶囊 + 主按钮 */
.banner-actions {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  margin-top: 26px;
}
.banner-actions .anchor-pills { margin-bottom: 0; }

/* 解决方案页：左目录 + 主内容 + 右侧栏 */
.doc-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr) 220px; gap: 34px; align-items: start; }
.doc-menu { position: sticky; top: 92px; }
.doc-menu-title { font-size: 0.72rem; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 12px; }
.doc-menu ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.doc-menu a {
  display: block; position: relative; padding: 7px 0 7px 14px;
  font-size: 0.88rem; color: var(--text-muted); transition: color 0.2s;
}
.doc-menu a::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: currentColor;
}
.doc-menu a:hover { color: var(--text-dim); }
.doc-menu a.active { color: var(--text); font-weight: 600; }
.doc-menu a.active::before { width: 3px; height: 16px; border-radius: 2px; background: var(--grad); }

.sol-block { margin-bottom: 46px; scroll-margin-top: 96px; }
.sol-block h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 800; margin-bottom: 10px; }
.sol-lead { color: var(--text-dim); font-size: 0.96rem; margin-bottom: 20px; max-width: 860px; }
.doc-main .cta-panel { margin-top: 0; }

.side-card { border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 28px; }
.side-card h3 { font-size: 0.95rem; margin-bottom: 12px; color: var(--accent); }

@media (max-width: 1100px) {
  .doc-layout { grid-template-columns: 170px minmax(0, 1fr); }
  .doc-side { grid-column: 1 / -1; }
  .panel-cols { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-menu { position: static; }
  .doc-menu ul { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .doc-menu a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; }
  .doc-menu a::before { display: none; }
  .banner-actions { justify-content: flex-start; }
}

/* 常见问题（FAQ，正文对应 head 里的 FAQPage 结构化数据） */
.faq { display: grid; gap: 14px; max-width: 960px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px;
  background: linear-gradient(180deg, rgba(22, 41, 75, 0.9), rgba(16, 32, 60, 0.9));
  transition: border-color 0.3s;
}
:root[data-theme="light"] .faq-item { background: linear-gradient(180deg, #ffffff, #f4f8fd); }
.faq-item:hover, .faq-item[open] { border-color: rgba(0, 194, 255, 0.55); }
.faq-item summary {
  cursor: pointer; list-style: none; position: relative; padding-right: 32px;
  font-size: 1rem; font-weight: 600; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-weight: 700; font-size: 1.2rem; line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--text-dim); font-size: 0.95rem; margin-top: 12px; }
.faq-item p b { color: var(--text); }

/* 页尾 CTA */
.cta-panel {
  margin-top: 46px; padding: 40px 30px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 41, 75, 0.9), rgba(16, 32, 60, 0.9));
}
:root[data-theme="light"] .cta-panel { background: linear-gradient(180deg, #ffffff, #f4f8fd); }
.cta-panel h3 { font-size: 1.3rem; margin-bottom: 8px; }
.cta-panel p { color: var(--text-dim); margin-bottom: 22px; }

/* 解决方案区块 */
.solution {
  padding: 38px 34px; margin-bottom: 26px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 41, 75, 0.9), rgba(16, 32, 60, 0.9));
  transition: border-color 0.3s, box-shadow 0.3s;
}
:root[data-theme="light"] .solution { background: linear-gradient(180deg, #ffffff, #f4f8fd); }
.solution:hover { border-color: rgba(0, 194, 255, 0.55); box-shadow: var(--shadow); }
.solution-head { max-width: 880px; margin-bottom: 26px; }
.solution-head h2 { font-size: clamp(1.35rem, 2.8vw, 1.85rem); font-weight: 800; margin-bottom: 10px; }
.solution-sub { color: var(--text-dim); font-size: 0.98rem; }
.solution-cell h4 {
  font-size: 0.95rem; color: var(--accent); margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 10px;
}
.solution-cell h4::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--grad); }
.solution-cell ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.solution-cell ul li { position: relative; padding-left: 20px; color: var(--text-dim); font-size: 0.94rem; }
.solution-cell ul li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--grad);
}
.solution-carriers, .solution-scene {
  margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line);
  font-size: 0.92rem; color: var(--text-dim);
}
.solution-scene { margin-top: 10px; padding-top: 0; border-top: none; }
.solution-carriers a { color: var(--accent); }
.solution-carriers a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .page-hero { padding: 106px 0 34px; }
  .solution { padding: 28px 22px; }
}
