/* =====================================================
   1人漫剧 · 商业计划书 - 黑金科技风共享样式
   配色锚点: 项目主仓 prototype/shared.css (#0a0a0f / #D4AF37)
   ===================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #0a0a0f;
  --black-soft: #12121a;
  --black-card: #161620;
  --black-elev: #1d1d28;
  --gold: #D4AF37;
  --gold-light: #F3E5AB;
  --gold-dim: #8B7425;
  --gold-faint: rgba(212, 175, 55, 0.08);
  --gold-line: rgba(212, 175, 55, 0.22);
  --text-100: #f4f4f6;
  --text-200: #d8d8df;
  --text-300: #a8a8b3;
  --text-400: #777783;
  --text-500: #4d4d57;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);
  --green: #22c55e;
  --red: #ef4444;
  --blue: #60a5fa;
  --purple: #c084fc;
  --orange: #f59e0b;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 0 0 1px var(--gold-line), 0 12px 40px rgba(212, 175, 55, 0.08);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text-100);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", "Hiragino Sans GB", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  background-image:
    radial-gradient(ellipse 1200px 600px at 50% -100px, rgba(212, 175, 55, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 800px 400px at 100% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 60%);
  background-attachment: fixed;
}

::selection { background: var(--gold); color: var(--black); }

/* ========== Scrollbar ========== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.18); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212, 175, 55, 0.35); }

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }

/* =====================================================
   顶部导航
   ===================================================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 24px;
}

.site-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--text-100);
}

.brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-weight: 700;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.3);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text-cn { font-size: 15px; color: var(--text-100); }
.brand-text-en { font-size: 11px; color: var(--text-400); letter-spacing: 0.1em; }

.site-nav-links {
  margin-left: auto;
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-300);
  transition: var(--transition);
  font-weight: 500;
}
.nav-link:hover { color: var(--text-100); background: rgba(255, 255, 255, 0.04); }
.nav-link.is-active { color: var(--gold); background: var(--gold-faint); }

.nav-link-primary {
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--black);
  font-weight: 600;
  font-size: 14px;
}
.nav-link-primary:hover { background: var(--gold-light); color: var(--black); }

/* 阅读进度条 */
.read-progress {
  position: fixed;
  top: 64px; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  width: 0%;
  z-index: 99;
  transition: width 0.1s linear;
}

/* =====================================================
   通用排版
   ===================================================== */
.page-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 96px 32px 96px;
}

.page-wrap.is-wide { max-width: 1200px; }

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-100);
}

h1 { font-size: 42px; line-height: 1.2; margin-bottom: 24px; }
h2 { font-size: 30px; line-height: 1.3; margin: 64px 0 24px; }
h3 { font-size: 22px; line-height: 1.4; margin: 32px 0 16px; }
h4 { font-size: 17px; line-height: 1.4; margin: 24px 0 12px; color: var(--gold); }

p { margin-bottom: 16px; color: var(--text-200); }

.lead {
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-200);
  margin-bottom: 32px;
}

.muted { color: var(--text-400); }
.gold { color: var(--gold); }
.text-gold-light { color: var(--gold-light); }
.text-100 { color: var(--text-100); }
.text-300 { color: var(--text-300); }

.divider {
  height: 1px;
  background: var(--line);
  margin: 48px 0;
}

.section-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gold);
  padding: 4px 10px;
  background: var(--gold-faint);
  border-radius: 4px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

ul, ol { margin: 12px 0 16px 24px; color: var(--text-200); }
ul li, ol li { margin-bottom: 6px; }

strong { color: var(--text-100); font-weight: 600; }

/* =====================================================
   Hero (首页用)
   ===================================================== */
.hero {
  padding: 140px 32px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold-faint);
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  text-transform: uppercase;
  font-weight: 600;
}

.hero-title {
  font-size: 64px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #b8b8c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-300);
  margin-bottom: 40px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 48px;
  font-size: 13px;
  color: var(--text-400);
}

.hero-meta-item { display: flex; align-items: center; gap: 8px; }
.hero-meta-item::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}

/* =====================================================
   版本选择卡（首页核心 CTA）
   ===================================================== */
.plan-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.plan-card {
  position: relative;
  background: var(--black-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: var(--transition);
  text-align: left;
  display: flex;
  flex-direction: column;
}
.plan-card:hover {
  border-color: var(--gold-line);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.plan-card-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: var(--gold-faint);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
  text-transform: uppercase;
  font-weight: 600;
  align-self: flex-start;
}

.plan-card-title { font-size: 26px; margin-bottom: 8px; color: var(--text-100); }
.plan-card-sub { font-size: 14px; color: var(--text-400); margin-bottom: 20px; }
.plan-card-desc { font-size: 14px; color: var(--text-300); line-height: 1.7; margin-bottom: 24px; flex-grow: 1; }

.plan-card-points {
  list-style: none;
  margin: 0 0 24px 0;
  padding: 0;
}
.plan-card-points li {
  font-size: 13px;
  color: var(--text-300);
  padding: 6px 0 6px 22px;
  position: relative;
}
.plan-card-points li::before {
  content: '';
  position: absolute;
  left: 4px; top: 14px;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.plan-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--black);
  font-weight: 600;
  font-size: 14px;
  align-self: flex-start;
  transition: var(--transition);
}
.plan-card-cta:hover { background: var(--gold-light); transform: translateX(2px); }
.plan-card-cta::after {
  content: '→';
  font-weight: 400;
  margin-left: 4px;
}

/* =====================================================
   Section 通用
   ===================================================== */
.section {
  padding: 80px 0;
  scroll-margin-top: 96px;
}

.section-head {
  margin-bottom: 48px;
  max-width: 720px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
  border-left: 2px solid var(--gold);
  padding-left: 10px;
}

/* =====================================================
   卡片网格
   ===================================================== */
.card-grid {
  display: grid;
  gap: 16px;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--black-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}
.card:hover { border-color: var(--gold-line); }

.card.is-highlight {
  background: linear-gradient(135deg, var(--black-card) 0%, var(--black-elev) 100%);
  border-color: var(--gold-line);
}

.card-icon {
  width: 36px; height: 36px;
  background: var(--gold-faint);
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  color: var(--gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 16px;
}

.card-title { font-size: 17px; margin-bottom: 8px; color: var(--text-100); font-weight: 600; }
.card-text { font-size: 13.5px; color: var(--text-300); line-height: 1.7; }

/* =====================================================
   数据指标块
   ===================================================== */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.metric {
  background: var(--black-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.metric-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.02em;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.metric-label { font-size: 12px; color: var(--text-400); margin-top: 6px; letter-spacing: 0.05em; }
.metric-note { font-size: 11px; color: var(--text-500); margin-top: 4px; }

/* =====================================================
   表格
   ===================================================== */
.tbl-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--black-card);
}

.tbl th, .tbl td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.tbl th {
  background: var(--black-elev);
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: rgba(212, 175, 55, 0.03); }

.tbl td.cell-good { color: var(--green); font-weight: 600; }
.tbl td.cell-bad { color: var(--red); font-weight: 600; }
.tbl td.cell-warn { color: var(--orange); font-weight: 600; }
.tbl td.cell-num { font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 600; }

/* =====================================================
   引用 / 信息块
   ===================================================== */
.callout {
  border-left: 3px solid var(--gold);
  background: var(--gold-faint);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-size: 14px;
  color: var(--text-200);
}
.callout strong { color: var(--gold); }

.callout.is-info { border-left-color: var(--blue); background: rgba(96, 165, 250, 0.06); }
.callout.is-info strong { color: var(--blue); }

.callout.is-warn { border-left-color: var(--orange); background: rgba(245, 158, 11, 0.06); }
.callout.is-warn strong { color: var(--orange); }

.quote {
  font-size: 18px;
  line-height: 1.7;
  font-style: italic;
  color: var(--text-100);
  border-left: 3px solid var(--gold);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--gold-faint);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote-author {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 13px;
  color: var(--text-400);
}

/* =====================================================
   Pill / Tag
   ===================================================== */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold-faint);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--gold-line);
}
.pill.is-green { background: rgba(34, 197, 94, 0.08); color: var(--green); border-color: rgba(34, 197, 94, 0.2); }
.pill.is-orange { background: rgba(245, 158, 11, 0.08); color: var(--orange); border-color: rgba(245, 158, 11, 0.2); }
.pill.is-blue { background: rgba(96, 165, 250, 0.08); color: var(--blue); border-color: rgba(96, 165, 250, 0.2); }
.pill.is-muted { background: rgba(255,255,255,0.04); color: var(--text-400); border-color: var(--line); }

/* =====================================================
   时间线
   ===================================================== */
.timeline {
  position: relative;
  padding-left: 24px;
  margin: 32px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--gold-line);
}

.timeline-item {
  position: relative;
  padding-bottom: 28px;
  padding-left: 16px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px; top: 8px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--black);
}

.timeline-time {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.timeline-title { font-size: 16px; font-weight: 600; color: var(--text-100); margin-bottom: 6px; }
.timeline-text { font-size: 13.5px; color: var(--text-300); line-height: 1.7; }

/* =====================================================
   双栏对比
   ===================================================== */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.compare-side {
  background: var(--black-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.compare-side.is-bad { border-left: 3px solid var(--red); }
.compare-side.is-good { border-left: 3px solid var(--green); }

.compare-head {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}
.compare-side.is-bad .compare-head { color: var(--red); }
.compare-side.is-good .compare-head { color: var(--green); }

.compare-title { font-size: 18px; margin-bottom: 12px; }
.compare-list { list-style: none; padding: 0; margin: 0; }
.compare-list li { padding: 6px 0 6px 18px; font-size: 13.5px; color: var(--text-300); position: relative; }
.compare-list li::before { content: ''; position: absolute; left: 0; top: 13px; width: 8px; height: 1px; background: var(--text-500); }

/* =====================================================
   章节锚点目录（侧栏）
   ===================================================== */
.layout-with-toc {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 96px;
  font-size: 13px;
  padding-right: 16px;
  border-right: 1px solid var(--line);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.toc-title {
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin-bottom: 4px; }
.toc-list a {
  display: block;
  padding: 6px 10px;
  color: var(--text-400);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  transition: var(--transition);
}
.toc-list a:hover { background: var(--gold-faint); color: var(--gold); }
.toc-list a.is-current { background: var(--gold-faint); color: var(--gold); font-weight: 600; }

.toc-num {
  display: inline-block;
  width: 22px;
  font-variant-numeric: tabular-nums;
  color: var(--text-500);
  font-size: 11px;
}
.toc-list a.is-current .toc-num { color: var(--gold); }

/* =====================================================
   底部页脚
   ===================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 32px;
  margin-top: 80px;
  background: var(--black-soft);
  text-align: center;
}
.site-footer p { font-size: 13px; color: var(--text-400); margin-bottom: 4px; }
.site-footer .small { font-size: 12px; color: var(--text-500); }

/* =====================================================
   工具类
   ===================================================== */
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.no-marker { list-style: none; padding: 0; margin: 0; }

.kbd {
  font-family: "SF Mono", Consolas, monospace;
  font-size: 12px;
  padding: 2px 6px;
  background: var(--black-elev);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--gold);
}

/* =====================================================
   响应式
   ===================================================== */
/* 中等屏(平板 / 小笔记本): 卡片网格降列, 但目录保留左右布局 */
@media (max-width: 1100px) {
  .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-picker { grid-template-columns: 1fr; }
}

/* 窄屏(平板竖屏 / 手机): 目录变上下、Hero 缩字号 */
@media (max-width: 768px) {
  .layout-with-toc { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; max-height: none; padding-right: 0; border-right: none; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .compare { grid-template-columns: 1fr; }
  .hero-title { font-size: 44px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; margin: 48px 0 20px; }
  .site-nav { padding: 0 20px; gap: 12px; }
  .site-nav-links { gap: 0; }
  .nav-link { padding: 8px 10px; font-size: 13px; }
  .brand-text-en { display: none; }
  .page-wrap { padding: 80px 20px 64px; }
  .hero { padding: 100px 20px 60px; }
}

@media (max-width: 600px) {
  .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
}

/* 打印样式（叔叔可能想打印） */
@media print {
  .site-nav, .read-progress, .toc, .site-footer { display: none !important; }
  body { background: white; color: black; }
  h1, h2, h3, h4 { color: black !important; }
  p, li { color: #333 !important; }
  .card, .tbl, .callout, .quote { break-inside: avoid; background: white !important; border-color: #ccc !important; }
  .hero { padding: 32px 0 !important; }
}
