/* ============================================================
   税安犬官网 · 设计系统
   深色科技风：警觉蓝 × 信号青，OKLCH 定义 + hex 回退
   字体：Space Grotesk（展示） / Noto Sans SC（正文） / JetBrains Mono（数据）
   间距 8px 基线；动效 cubic-bezier(0.16, 1, 0.3, 1)
   ============================================================ */

/* ---------- 1. 原始值（浅色基调） ---------- */
:root {
  --c-bg: #f4f6fb;
  --c-panel: #ffffff;
  --c-panel-2: #edf1f9;
  --c-line: rgba(28, 56, 110, 0.12);
  --c-line-strong: rgba(28, 56, 110, 0.24);

  --c-ink-hi: #101a30;
  --c-ink: #41506c;
  --c-ink-lo: #75829e;

  --c-blue: #2f6bff;                /* 按钮 / 装饰渐变用 */
  --c-cyan: #0891b2;               /* 正文可读的青色（浅色底对比度） */
  --c-green: #059669;
  --c-warn: #d97706;

  --grad-brand: linear-gradient(118deg, #2f6bff 0%, #06b6d4 100%);
  --grad-text: linear-gradient(112deg, #2563eb 0%, #0891b2 78%);

  --font-display: "Space Grotesk", "Noto Sans SC", sans-serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --sp-1: 8px;  --sp-2: 16px; --sp-3: 24px; --sp-4: 32px;
  --sp-5: 48px; --sp-6: 64px; --sp-7: 96px; --sp-8: 128px;
  --radius: 16px;
  --container: 1200px;
}

/* ---------- 2. 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: linear-gradient(180deg, #e9eef8 0%, var(--c-bg) 480px);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* H5：去掉点按高亮、双指缩放误触 */
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

::selection { background: rgba(47, 107, 255, 0.25); color: var(--c-ink-hi); }

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-4); }

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- 3. 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), backdrop-filter 0.3s var(--ease-out);
}
.nav.scrolled {
  background: rgba(246, 248, 253, 0.86);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--c-line);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-4);
  height: 72px; display: flex; align-items: center; gap: var(--sp-5);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--c-ink-hi); letter-spacing: 0.02em; white-space: nowrap; }
.brand svg { display: block; }
.nav-links { display: flex; gap: var(--sp-3); margin-left: auto; }
.nav-links a {
  font-size: 14px; color: var(--c-ink-lo); padding: 6px 2px; position: relative;
  white-space: nowrap;
  transition: color 0.2s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--grad-brand); border-radius: 2px;
  transition: right 0.25s var(--ease-out);
}
.nav-links a:hover { color: var(--c-ink-hi); }
.nav-links a:hover::after { right: 0; }
.nav-cta { margin-left: var(--sp-2); }

/* 移动端菜单（H5） */
.nav-burger { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--c-ink-hi); margin: 5px 0; border-radius: 2px; transition: transform 0.2s var(--ease-out), opacity 0.2s var(--ease-out); }
@media (max-width: 860px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-burger { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(244, 246, 252, 0.98); border-bottom: 1px solid var(--c-line);
    box-shadow: 0 28px 50px -24px rgba(28, 56, 110, 0.35);
    padding: var(--sp-3) var(--sp-4) calc(var(--sp-4) + env(safe-area-inset-bottom, 0px));
    gap: var(--sp-1); max-height: calc(100vh - 72px); overflow: auto;
  }
  .nav.open .nav-links > a { font-size: 16px; padding: 12px 0; }
}

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  padding: 12px 24px; border-radius: 12px; border: 0; cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 28px -10px rgba(60, 114, 255, 0.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(6, 182, 212, 0.45); }
.btn-ghost { background: transparent; color: var(--c-ink-hi); border: 1px solid var(--c-line-strong); }
.btn-ghost:hover { border-color: var(--c-cyan); color: var(--c-cyan); }
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 10px; }

/* ---------- 5. Hero ---------- */
.hero { position: relative; padding: calc(72px + var(--sp-7)) 0 var(--sp-7); overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 78, 158, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 78, 158, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 78%);
}
.hero-glow {
  position: absolute; width: 720px; height: 520px; border-radius: 50%;
  filter: blur(120px); opacity: 0.22; pointer-events: none;
}
.hero-glow-1 { top: -180px; left: 8%; background: radial-gradient(circle, #9db8ff 0%, transparent 65%); }
.hero-glow-2 { top: -60px; right: -120px; background: radial-gradient(circle, #a5e3f0 0%, transparent 62%); }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-6); align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--c-cyan); border: 1px solid rgba(8, 145, 178, 0.3);
  background: rgba(8, 145, 178, 0.08);
  padding: 6px 14px; border-radius: 999px; margin-bottom: var(--sp-3);
}
.hero-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-green); box-shadow: 0 0 8px var(--c-green); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.16; letter-spacing: -0.015em;
  color: var(--c-ink-hi); font-weight: 700; margin-bottom: var(--sp-3);
}
.hero h1 .grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 18px; color: var(--c-ink-lo); max-width: 34em; margin-bottom: var(--sp-4); }
.hero-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.hero-mono-note { font-family: var(--font-mono); font-size: 12.5px; color: var(--c-ink-lo); letter-spacing: 0.02em; }
.hero-mono-note b { color: var(--c-cyan); font-weight: 500; }

/* 巡检终端窗口（浅色页面上的深色设备窗，保留暗色保证可读性） */
.term {
  --term-cyan: #22d3ee; --term-green: #34d399; --term-warn: #fbbf24; --term-dim: #8b99b8;
  background: linear-gradient(180deg, #101a2e 0%, #0a101e 100%);
  border: 1px solid rgba(148, 172, 220, 0.28); border-radius: var(--radius);
  box-shadow: 0 40px 90px -30px rgba(20, 40, 90, 0.5), 0 0 70px -30px rgba(47, 107, 255, 0.35);
  overflow: hidden; font-family: var(--font-mono); font-size: 13px; line-height: 1.9;
}
.term-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid rgba(148, 172, 220, 0.14); background: rgba(7, 11, 20, 0.6);
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.term-title { margin-left: 8px; color: var(--term-dim); font-size: 12px; letter-spacing: 0.06em; }
.term-body { padding: 18px 20px 22px; min-height: 292px; }
.term-line { display: flex; gap: 10px; white-space: pre-wrap; word-break: break-all; }
.term-time { color: #56617980; flex: none; }
.term-ok { color: var(--term-green); }
.term-info { color: var(--term-cyan); }
.term-warn { color: var(--term-warn); }
.term-dim { color: var(--term-dim); }
.term-cursor { display: inline-block; width: 8px; height: 16px; background: var(--term-cyan); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- 6. 数字带 ---------- */
.stats { border-block: 1px solid var(--c-line); background: linear-gradient(180deg, rgba(237, 241, 249, 0.9), rgba(244, 246, 251, 0)); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: var(--sp-5) var(--sp-4); text-align: left; }
.stat + .stat { border-left: 1px solid var(--c-line); }
.stat-num { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; color: var(--c-ink-hi); letter-spacing: -0.01em; }
.stat-num em { font-style: normal; font-size: 0.55em; color: var(--c-cyan); margin-left: 2px; }
.stat-label { font-size: 13.5px; color: var(--c-ink-lo); margin-top: 4px; }

/* ---------- 7. 通用区块 ---------- */
.section { padding: var(--sp-8) 0; }
.section-head { max-width: 720px; margin-bottom: var(--sp-6); }
.kicker {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.18em;
  color: var(--c-cyan); text-transform: uppercase; display: flex; align-items: center; gap: 12px;
  margin-bottom: var(--sp-2);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--grad-brand); }
.section-head h2 {
  font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 42px);
  color: var(--c-ink-hi); letter-spacing: -0.01em; line-height: 1.25; font-weight: 700;
  margin-bottom: var(--sp-2);
}
.section-head p { color: var(--c-ink-lo); font-size: 16.5px; }

/* 产品矩阵：编号大卡（非等距三卡） */
.products { display: flex; flex-direction: column; gap: var(--sp-4); }
.product {
  position: relative; display: grid; grid-template-columns: 88px 1fr 320px; gap: var(--sp-4);
  padding: var(--sp-5); border: 1px solid var(--c-line); border-radius: 20px;
  background: linear-gradient(180deg, var(--c-panel) 0%, var(--c-panel-2) 100%);
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  overflow: hidden;
}
.product::before {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(600px 200px at 20% 0%, rgba(47, 107, 255, 0.08), transparent 70%);
  transition: opacity 0.3s var(--ease-out);
}
.product:hover { border-color: rgba(47, 107, 255, 0.42); transform: translateY(-3px); box-shadow: 0 24px 60px -30px rgba(37, 99, 235, 0.35); }
.product:hover::before { opacity: 1; }
.product-no {
  font-family: var(--font-display); font-size: 44px; font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(37, 99, 235, 0.4);
  transition: -webkit-text-stroke-color 0.3s var(--ease-out);
}
.product:hover .product-no { -webkit-text-stroke-color: var(--c-cyan); }
.product-name { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--c-ink-hi); margin-bottom: 6px; }
.product-tag { font-family: var(--font-mono); font-size: 12px; color: var(--c-cyan); letter-spacing: 0.08em; margin-bottom: 12px; }
.product-desc { font-size: 15px; color: var(--c-ink); max-width: 56ch; }
.product-feats { display: flex; flex-direction: column; gap: 9px; align-self: center; }
.product-feats li { list-style: none; display: flex; gap: 9px; align-items: center; font-size: 13.5px; color: var(--c-ink); }
.product-feats li::before { content: ""; flex: none; width: 0; height: 0; border-left: 5px solid var(--c-cyan); border-block: 4px solid transparent; border-radius: 1px; }
.product-link { margin-top: var(--sp-2); display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--c-cyan); }
.product-link svg { transition: transform 0.25s var(--ease-out); }
.product:hover .product-link svg { transform: translateX(4px); }

/* 技术能力 2×2 */
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.tech-card {
  padding: var(--sp-4); border: 1px solid var(--c-line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--c-panel) 0%, var(--c-panel-2) 100%);
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.tech-card:hover { border-color: rgba(47, 107, 255, 0.4); transform: translateY(-2px); }
.tech-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(47, 107, 255, 0.1); border: 1px solid rgba(47, 107, 255, 0.25); margin-bottom: var(--sp-2);
}
.tech-card h3 { font-size: 17.5px; color: var(--c-ink-hi); font-weight: 700; margin-bottom: 8px; }
.tech-card p { font-size: 14px; color: var(--c-ink-lo); }
.tech-card code { font-family: var(--font-mono); font-size: 12px; color: var(--c-cyan); background: rgba(8, 145, 178, 0.08); padding: 1px 6px; border-radius: 5px; }

/* 关于 */
.about-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-6); align-items: start; }
.about-copy p + p { margin-top: var(--sp-2); }
.fact-card {
  border: 1px solid var(--c-line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--c-panel) 0%, var(--c-panel-2) 100%);
  padding: var(--sp-4);
}
.fact-card h3 { font-family: var(--font-display); font-size: 18px; color: var(--c-ink-hi); margin-bottom: var(--sp-2); }
.fact-list { display: grid; grid-template-columns: 96px 1fr; row-gap: 10px; font-size: 14px; }
.fact-list dt { color: var(--c-ink-lo); }
.fact-list dd { color: var(--c-ink); word-break: break-all; }

/* 联系 CTA */
.contact {
  text-align: center; border: 1px solid var(--c-line); border-radius: 24px;
  padding: var(--sp-7) var(--sp-4); position: relative; overflow: hidden;
  background:
    radial-gradient(700px 260px at 50% -60px, rgba(47, 107, 255, 0.14), transparent 70%),
    linear-gradient(180deg, var(--c-panel) 0%, var(--c-panel-2) 100%);
}
.contact h2 { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 38px); color: var(--c-ink-hi); margin-bottom: var(--sp-2); }
.contact p { color: var(--c-ink-lo); margin-bottom: var(--sp-4); }
.contact-actions { display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap; }
.contact-mono { margin-top: var(--sp-3); font-family: var(--font-mono); font-size: 13px; color: var(--c-ink-lo); }
.contact-mono a { color: var(--c-cyan); }

/* ---------- 8. 页脚 ---------- */
.footer { border-top: 1px solid var(--c-line); padding: var(--sp-6) 0 calc(var(--sp-4) + env(safe-area-inset-bottom, 0px)); background: var(--c-panel-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-5); margin-bottom: var(--sp-5); }
.footer-brand p { font-size: 14px; color: var(--c-ink-lo); margin-top: 12px; max-width: 34em; }
.footer h4 { font-size: 13px; color: var(--c-ink-hi); letter-spacing: 0.1em; margin-bottom: 14px; font-family: var(--font-mono); font-weight: 500; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer li a, .footer li span { font-size: 14px; color: var(--c-ink-lo); transition: color 0.2s var(--ease-out); }
.footer li a:hover { color: var(--c-cyan); }
.footer-bottom {
  border-top: 1px solid var(--c-line); padding-top: var(--sp-3);
  display: flex; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap;
  font-size: 13px; color: var(--c-ink-lo);
}
.footer-bottom a { color: var(--c-ink-lo); }
.footer-bottom a:hover { color: var(--c-cyan); }

/* ---------- 9. 滚动入场 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; } .reveal-d2 { transition-delay: 0.16s; } .reveal-d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 10. 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .term { max-width: 640px; }
  .product { grid-template-columns: 64px 1fr; }
  .product-feats { grid-column: 2; }
  .about-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--c-line); }
  .tech-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .product { padding: var(--sp-4); grid-template-columns: 1fr; }
  .product-no { font-size: 34px; }
  .hero { padding: calc(72px + var(--sp-5)) 0 var(--sp-5); }
  .hero h1 { font-size: clamp(32px, 9.4vw, 44px); }
  .hero-sub { font-size: 15.5px; }
  .hero-mono-note { font-size: 11.5px; }
  .section { padding: var(--sp-6) 0; }
  .section-head { margin-bottom: var(--sp-4); }
  .container { padding: 0 var(--sp-3); }
  .stat { padding: var(--sp-3) var(--sp-2); }
  .term { max-width: 100%; font-size: 12.5px; }
  .term-body { padding: 14px 14px 18px; }
  .term-time { font-size: 11px; }
  .contact { padding: var(--sp-5) var(--sp-3); }
  .page-hero { padding: calc(72px + var(--sp-4)) 0 var(--sp-4); }
  .psection { padding: var(--sp-5) 0; }
}
/* H5 小屏：按钮撑满、抽屉内边距收紧 */
@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .nav-inner { padding: 0 var(--sp-3); }
  .hero-actions { gap: 10px; }
}

/* ============================================================
   11. 子页面组件（产品详情 / 私有化部署 / 更新日志）
   ============================================================ */

/* 页面包屑与页头 */
.page-hero {
  position: relative; padding: calc(72px + var(--sp-6)) 0 var(--sp-5); overflow: hidden;
  border-bottom: 1px solid var(--c-line);
}
.page-hero .hero-grid { mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 20%, transparent 75%); }
.crumb { font-family: var(--font-mono); font-size: 12.5px; color: var(--c-ink-lo); margin-bottom: var(--sp-3); display: flex; gap: 8px; align-items: center; }
.crumb a { color: var(--c-ink-lo); } .crumb a:hover { color: var(--c-cyan); }
.crumb .sep { opacity: 0.5; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(32px, 4.4vw, 52px); color: var(--c-ink-hi); letter-spacing: -0.01em; line-height: 1.2; margin-bottom: var(--sp-2); }
.page-hero .lead { font-size: 17px; color: var(--c-ink); max-width: 46em; }
.page-hero .meta-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: var(--sp-3); }
.meta-tag { font-family: var(--font-mono); font-size: 12px; color: var(--c-cyan); border: 1px solid rgba(8,145,178,0.28); background: rgba(8,145,178,0.06); padding: 4px 12px; border-radius: 999px; }

/* 内容区块（详情页通用） */
.psection { padding: var(--sp-6) 0; border-bottom: 1px solid var(--c-line); }
.psection:last-of-type { border-bottom: 0; }
.psection-head { margin-bottom: var(--sp-4); }
.psection-head h2 { font-family: var(--font-display); font-size: clamp(24px, 2.8vw, 32px); color: var(--c-ink-hi); margin-bottom: 8px; }
.psection-head p { color: var(--c-ink-lo); max-width: 62ch; }

/* 功能矩阵 */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.feat-card { border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--sp-3); background: var(--c-panel); transition: border-color .25s var(--ease-out), transform .25s var(--ease-out); }
.feat-card:hover { border-color: rgba(96,140,255,.4); transform: translateY(-2px); }
.feat-card h3 { font-size: 16px; color: var(--c-ink-hi); margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.feat-card h3 svg { flex: none; }
.feat-card p { font-size: 13.5px; color: var(--c-ink-lo); line-height: 1.7; }
@media (max-width: 1024px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .feat-grid { grid-template-columns: 1fr; } }

/* 使用说明：步骤时间线 */
.steps { position: relative; display: flex; flex-direction: column; gap: 0; padding-left: 26px; }
.steps::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(180deg, var(--c-blue), var(--c-cyan)); opacity: .45; }
.step { position: relative; padding: 0 0 var(--sp-4) var(--sp-3); }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: -22px; top: 7px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--c-bg); border: 2px solid var(--c-cyan); box-shadow: 0 0 10px rgba(8,145,178,.35);
}
.step-no { font-family: var(--font-mono); font-size: 12px; color: var(--c-cyan); letter-spacing: .1em; margin-bottom: 4px; }
.step h3 { font-size: 16.5px; color: var(--c-ink-hi); margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--c-ink-lo); max-width: 66ch; }
.step p code { font-family: var(--font-mono); font-size: 12px; color: var(--c-cyan); background: rgba(8,145,178,.08); padding: 1px 6px; border-radius: 5px; }

/* 数据表 */
.tbl-wrap { border: 1px solid var(--c-line); border-radius: var(--radius); overflow: auto; background: var(--c-panel); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.tbl th { text-align: left; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--c-cyan); font-weight: 500; padding: 13px 18px; border-bottom: 1px solid var(--c-line-strong); background: var(--c-panel-2); white-space: nowrap; }
.tbl td { padding: 13px 18px; border-bottom: 1px solid var(--c-line); color: var(--c-ink); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { color: var(--c-ink-hi); white-space: nowrap; }
.tbl .num { font-size: 13px; }

/* 部署规格卡 */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.plan { border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--sp-4); background: linear-gradient(180deg, var(--c-panel) 0%, var(--c-panel-2) 100%); position: relative; }
.plan.hot { border-color: rgba(47,107,255,.55); box-shadow: 0 0 0 1px rgba(47,107,255,.18), 0 24px 60px -30px rgba(37,99,235,.4); }
.plan-badge { position: absolute; top: -11px; left: var(--sp-3); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; background: var(--grad-brand); color: #fff; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 17px; color: var(--c-ink-hi); margin-bottom: 4px; }
.plan .plan-sub { font-family: var(--font-mono); font-size: 12px; color: var(--c-ink-lo); margin-bottom: var(--sp-2); }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.plan ul li { font-size: 13.5px; color: var(--c-ink); display: flex; gap: 8px; align-items: flex-start; }
.plan ul li::before { content: "✓"; color: var(--c-green); flex: none; font-family: var(--font-mono); }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; } }

/* 痛点引用块 */
.pain-quote {
  border-left: 3px solid var(--c-blue); padding: var(--sp-2) var(--sp-3);
  background: rgba(60,114,255,.06); border-radius: 0 12px 12px 0;
  color: var(--c-ink); font-size: 15.5px; margin: var(--sp-3) 0;
}
.pain-quote b { color: var(--c-ink-hi); }
.pain-quote .q-src { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--c-ink-lo); }

/* 对比表（痛点 → 税安犬） */
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.vs-col { border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--sp-4); }
.vs-col.pain { background: linear-gradient(180deg, rgba(251,191,36,.05), transparent 60%); border-color: rgba(251,191,36,.25); }
.vs-col.gain { background: linear-gradient(180deg, rgba(52,211,153,.05), transparent 60%); border-color: rgba(52,211,153,.3); }
.vs-col h3 { font-size: 15px; font-family: var(--font-mono); letter-spacing: .1em; margin-bottom: var(--sp-2); }
.vs-col.pain h3 { color: var(--c-warn); }
.vs-col.gain h3 { color: var(--c-green); }
.vs-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.vs-col li { font-size: 14px; color: var(--c-ink); padding-left: 20px; position: relative; }
.vs-col.pain li::before { content: "×"; position: absolute; left: 0; color: var(--c-warn); font-family: var(--font-mono); }
.vs-col.gain li::before { content: "✓"; position: absolute; left: 0; color: var(--c-green); font-family: var(--font-mono); }
@media (max-width: 760px) { .vs-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.faq-item { border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-panel); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 16px 20px; font-family: var(--font-sans); font-size: 15px; font-weight: 600; color: var(--c-ink-hi);
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq-q .ind { font-family: var(--font-mono); color: var(--c-cyan); transition: transform .25s var(--ease-out); flex: none; }
.faq-item.open .faq-q .ind { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease-out); }

.faq-a > div { padding: 0 20px 18px; font-size: 14px; color: var(--c-ink-lo); line-height: 1.8; }
.faq-a code { font-family: var(--font-mono); font-size: 12px; color: var(--c-cyan); }

/* 更新日志 */
.changelog { display: flex; flex-direction: column; max-width: 860px; }
.cl-item { display: grid; grid-template-columns: 128px 1fr; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--c-line); }
.cl-item:last-child { border-bottom: 0; }
.cl-date { font-family: var(--font-mono); font-size: 13px; color: var(--c-ink-lo); padding-top: 2px; }
.cl-body h3 { font-size: 16px; color: var(--c-ink-hi); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cl-tag { font-family: var(--font-mono); font-size: 11px; padding: 2px 9px; border-radius: 999px; border: 1px solid rgba(47,107,255,.35); color: #2563eb; background: rgba(47,107,255,.07); }
.cl-tag.hl { border-color: rgba(8,145,178,.4); color: var(--c-cyan); background: rgba(8,145,178,.07); }
.cl-body ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.cl-body li { font-size: 14px; color: var(--c-ink); padding-left: 16px; position: relative; }
.cl-body li::before { content: "·"; position: absolute; left: 4px; color: var(--c-cyan); font-weight: 700; }
@media (max-width: 640px) { .cl-item { grid-template-columns: 1fr; gap: 6px; } }

/* 导航下拉（产品菜单） */
.nav-drop { position: relative; }
.nav-drop > a::after { content: " ▾"; font-family: var(--font-mono); font-size: 11px; opacity: .7; }
/* 悬浮桥：触发器与面板之间的隐形 hover 区，鼠标下移时菜单不再中途折叠 */
.nav-drop::before {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: 400px; height: 24px;
}
.nav-drop-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: 400px; max-width: calc(100vw - 32px);
  display: flex; flex-direction: column; gap: 4px;
  background: var(--c-panel); border: 1px solid var(--c-line-strong);
  border-radius: 16px; padding: 12px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility 0s linear .2s;
  box-shadow: 0 24px 60px -22px rgba(28, 56, 110, 0.3), 0 8px 24px -12px rgba(28, 56, 110, 0.18);
}
.nav-drop:hover .nav-drop-panel, .nav-drop:focus-within .nav-drop-panel, .nav-drop.drop-open .nav-drop-panel {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility 0s;
}
/* 窄桌面：面板贴右对齐，避免右缘溢出视口 */
@media (max-width: 1099px) {
  .nav-drop::before { left: auto; right: 0; transform: none; }
  .nav-drop-panel { left: auto; right: 0; transform: translateY(6px); }
  .nav-drop:hover .nav-drop-panel, .nav-drop:focus-within .nav-drop-panel, .nav-drop.drop-open .nav-drop-panel { transform: translateY(0); }
}
.nav-drop-panel a { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; border-radius: 12px; }
.nav-drop-panel a:hover { background: rgba(47, 107, 255, 0.08); }
.nav-drop-panel a::after { display: none; }
.nav-drop-panel b { font-size: 14.5px; color: var(--c-ink-hi); font-weight: 600; }
.nav-drop-panel span { font-size: 12.5px; color: var(--c-ink-lo); }
.nav-drop-panel .drop-more { border-top: 1px solid var(--c-line); margin-top: 6px; padding-top: 14px; border-radius: 0; }
@media (max-width: 860px) { .nav-drop-panel, .nav-drop::before { display: none; } }

/* 移动端抽屉内产品平铺 */
.nav-flat { display: none; }
@media (max-width: 860px) {
  .nav.open .nav-flat { display: flex; flex-direction: column; border-top: 1px solid var(--c-line); margin-top: 6px; padding-top: 8px; }
  .nav.open .nav-flat a { font-size: 15px; color: var(--c-ink-lo); padding: 11px 0 11px 14px; }
  .nav.open .nav-flat a:hover { color: var(--c-cyan); }
}
