/* ===========================================================
   站点补充样式 —— 头部导航、底部、版块、表格、对比、FAQ 等
   基于现有 Tailwind 编译产物补充，不重写工具类
   =========================================================== */

/* === 全站基础 === */
:root {
  --ink-950: #05060d;
  --ink-900: #0b0d17;
  --ink-800: #131724;
  --line: rgba(255, 255, 255, 0.08);
  --tk-cyan: #25f4ee;
  --tk-pink: #fe2c55;
  --tk-gold: #ffb300;
  --text: #e6e8ee;
  --text-muted: rgba(230, 232, 238, 0.7);
  --max-w: 1200px;
}

html,
body {
  background: var(--ink-950);
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

/* === 顶部导航 === */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 6, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-nav .nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--tk-cyan), var(--tk-pink));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #0a0d18;
}

.site-nav .brand-text small {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.site-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav .nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 14px;
  transition: all 0.2s ease;
}

.site-nav .nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.site-nav .nav-links a.active {
  color: var(--tk-cyan);
  background: rgba(37, 244, 238, 0.08);
}

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tk-cyan), var(--tk-pink));
  color: #0a0d18;
  font-weight: 600;
  font-size: 14px;
}

.site-nav .menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  color: var(--text);
  align-items: center;
  justify-content: center;
}

@media (max-width: 980px) {
  .site-nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink-950);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 8px 16px 16px;
    align-items: stretch;
    gap: 2px;
  }
  .site-nav .nav-links.open {
    display: flex;
  }
  .site-nav .nav-links a {
    padding: 12px;
  }
  .site-nav .menu-toggle {
    display: inline-flex;
  }
  .site-nav .nav-cta {
    display: none;
  }
}

/* === Banner === */
.page-banner {
  position: relative;
  padding: 88px 24px 72px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 6, 13, 0.55) 0%, rgba(5, 6, 13, 0.95) 100%),
    var(--banner-bg, #0b0d17) center/cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60vw 40vw at 20% 20%, rgba(37, 244, 238, 0.18), transparent 60%),
    radial-gradient(50vw 30vw at 80% 10%, rgba(254, 44, 85, 0.18), transparent 60%);
  pointer-events: none;
}

.page-banner .container {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-banner .crumb {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.page-banner .crumb a {
  color: var(--text-muted);
}

.page-banner .crumb a:hover {
  color: var(--tk-cyan);
}

.page-banner h1 {
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0 0 18px;
}

.page-banner h1 .grad {
  background: linear-gradient(90deg, var(--tk-cyan), var(--tk-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-banner .lede {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-muted);
  max-width: 760px;
  line-height: 1.7;
}

.page-banner .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.page-banner .meta-row .chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
}

/* === 主体容器 === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section.block {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

section.block:last-child {
  border-bottom: 0;
}

section.block h2 {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

section.block .lead {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
  max-width: 760px;
  margin-bottom: 32px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--tk-cyan);
  margin-bottom: 12px;
  text-transform: uppercase;
}

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

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

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

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* === 信息卡片 === */
.info-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  transition: all 0.25s ease;
  height: 100%;
}

.info-card:hover {
  border-color: rgba(37, 244, 238, 0.4);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.info-card .ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 244, 238, 0.1);
  color: var(--tk-cyan);
  margin-bottom: 14px;
  font-weight: 700;
}

.info-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}

.info-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.info-card ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.info-card li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
  line-height: 1.7;
}

.info-card li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--tk-cyan);
}

/* === 流程时间轴 === */
.steps {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  margin-top: 16px;
}

@media (max-width: 980px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  position: relative;
  padding: 18px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--tk-cyan), var(--tk-pink));
  color: #0a0d18;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
}

.step h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
}

.step p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === 表格 === */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.tbl th,
.tbl td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.tbl th {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.tbl td {
  color: var(--text-muted);
  line-height: 1.65;
}

.tbl tr:last-child td {
  border-bottom: 0;
}

.tbl-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* === 脚本/代码块 === */
.script-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 18px;
}

.script-block .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.script-block .meta span {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 244, 238, 0.08);
  color: var(--tk-cyan);
  letter-spacing: 0.04em;
}

.script-block h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.script-block .desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.script-block ol,
.script-block ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.85;
}

.script-block code {
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
}

/* === 对比框 === */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 760px) {
  .compare {
    grid-template-columns: 1fr;
  }
}

.compare-col {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.compare-col h4 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
}

.compare-col.a h4 {
  color: var(--tk-cyan);
}

.compare-col.b h4 {
  color: var(--tk-gold);
}

.compare-col p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 12px;
  line-height: 1.65;
}

/* === FAQ 折叠 === */
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-q {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  list-style: none;
  user-select: none;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::after {
  content: "+";
  font-size: 22px;
  color: var(--tk-cyan);
  transition: transform 0.2s ease;
  font-weight: 300;
}

.faq-item[open] .faq-q::after {
  content: "−";
}

.faq-a {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}

.faq-a p {
  margin: 0 0 8px;
}

/* === CTA 块 === */
.cta-block {
  margin: 60px 0 0;
  background: linear-gradient(135deg, rgba(37, 244, 238, 0.08), rgba(254, 44, 85, 0.08));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-block h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
}

.cta-block p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.cta-block .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* === 底部 === */
.site-footer {
  background: var(--ink-900);
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
  margin-top: 0;
}

.site-footer .foot-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.site-footer .foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
}

@media (max-width: 900px) {
  .site-footer .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .site-footer .foot-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer h5 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--text);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--tk-cyan);
}

.site-footer .legal {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.site-footer .legal a {
  color: var(--text-muted);
}

.site-footer .legal a:hover {
  color: var(--tk-cyan);
}

/* === 二级侧栏 / TOC === */
.toc {
  position: sticky;
  top: 84px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.toc h5 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--text-muted);
}

.toc a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 0;
  border-left: 2px solid transparent;
  padding-left: 10px;
  margin-left: -12px;
}

.toc a:hover {
  color: var(--tk-cyan);
  border-left-color: var(--tk-cyan);
}

/* === 通用 anchor === */
section[id] {
  scroll-margin-top: 90px;
}

/* === 列表 === */
ul.bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.bullets li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

ul.bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--tk-cyan);
}

/* === 强调 === */
.note {
  border-left: 3px solid var(--tk-gold);
  background: rgba(255, 179, 0, 0.05);
  padding: 14px 18px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.75;
  margin: 18px 0;
}

.note strong {
  color: var(--tk-gold);
}

/* === 双栏（页面布局） === */
.layout-side {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 980px) {
  .layout-side {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
  }
}
