/* ============================================================
   Kaiser · Second Brain — v2 无缝版
   设计语言：无框、无边框、无分隔线
   内容浮在深空之上，板块靠留白与微光自然流动
   对比度：全部文字 WCAG ≥ 7:1 (AAA)
   ============================================================ */

:root {
  --bg: #05070d;
  --text: #e6edf3;          /* 17.0:1 */
  --text-dim: #aeb9cc;      /* 10.2:1 */
  --text-faint: #8b99b4;    /* 7.0:1 */
  --accent: #5eead4;        /* 13.6:1 电光青 */
  --accent2: #60a5fa;       /* 7.9:1 电光蓝 */
  --accent3: #a78bfa;       /* 7.4:1 星云紫 */
  --err: #fca5a5;           /* 错误标记（浅红，深底上清晰） */
  --maxw: 980px;
  --radius: 999px;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  --font-sans: -apple-system, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 深空星点 + 极淡网格，全页一体 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.22), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.16), transparent),
    radial-gradient(1.5px 1.5px at 60% 20%, rgba(255,255,255,0.18), transparent),
    radial-gradient(1px 1px at 75% 55%, rgba(255,255,255,0.13), transparent),
    radial-gradient(1px 1px at 85% 80%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 10% 85%, rgba(255,255,255,0.13), transparent),
    radial-gradient(1.5px 1.5px at 50% 45%, rgba(255,255,255,0.1), transparent),
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(96, 165, 250, 0.07), transparent),
    radial-gradient(ellipse 60% 50% at 90% 110%, rgba(167, 139, 250, 0.05), transparent);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.028) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 30%, transparent 78%);
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
a { color: inherit; text-decoration: none; }

/* ---------- 渐变文字 ---------- */
.gradient-text {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent2) 55%, var(--accent3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.accent { color: var(--accent); }

/* ---------- 导航（轻雾，无边框） ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(5, 7, 13, 0.88) 60%, rgba(5, 7, 13, 0));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(100deg, var(--text) 30%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-dot { -webkit-text-fill-color: var(--accent); text-shadow: 0 0 12px rgba(94, 234, 212, 0.8); }
.nav-links { display: flex; gap: 30px; font-size: 16px; color: var(--text-dim); }
.nav-links a { transition: color 0.25s ease, text-shadow 0.25s ease; }
.nav-links a:hover { color: var(--text); text-shadow: 0 0 14px rgba(94, 234, 212, 0.5); }

/* ---------- Hero：星空溶解在标题背后 ---------- */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  padding: 120px 0 110px;
  overflow: hidden;
}
#starfield { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
/* 标题区轻微暗角，保证星空中的文字依旧清晰 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 70% 60% at 30% 50%, rgba(5, 7, 13, 0.55), transparent 65%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }

.hero-kicker {
  font-size: 13px;
  letter-spacing: 0.42em;
  color: var(--text-faint);
  margin-bottom: 26px;
}
.hero-kicker::before { content: "▸ "; color: var(--accent); text-shadow: 0 0 10px rgba(94, 234, 212, 0.8); }

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  text-shadow: 0 0 50px rgba(94, 234, 212, 0.08);
}
.hero-sub { color: var(--text-dim); font-size: 19px; margin-bottom: 46px; max-width: 560px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-star-hint {
  margin-top: 34px;
  font-size: 14px;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}

/* 按钮：软光胶囊，无描边 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-sm { padding: 11px 24px; font-size: 15px; }
.btn-primary {
  background: linear-gradient(120deg, rgba(94, 234, 212, 0.18), rgba(96, 165, 250, 0.18));
  color: var(--accent);
  box-shadow: 0 0 22px rgba(94, 234, 212, 0.14), inset 0 0 20px rgba(94, 234, 212, 0.06);
}
.btn-primary:hover {
  background: linear-gradient(120deg, rgba(94, 234, 212, 0.3), rgba(96, 165, 250, 0.3));
  box-shadow: 0 0 34px rgba(94, 234, 212, 0.32), inset 0 0 24px rgba(94, 234, 212, 0.12);
  transform: translateY(-2px);
}
.btn-ghost {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
}
.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 18px rgba(94, 234, 212, 0.1);
  transform: translateY(-2px);
}

/* 重播开场 */
.replay-cg {
  position: absolute;
  right: 28px;
  bottom: 24px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-faint);
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 9px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-sans);
  border: none;
  transition: all 0.3s ease;
}
.replay-cg:hover { color: var(--accent); box-shadow: 0 0 16px rgba(94, 234, 212, 0.14); }

/* ---------- 子页（关于/知识库/联系） ---------- */
.page {
  padding: 150px 0 120px;
  min-height: 78vh;
  position: relative;
}
/* 顶部极淡辉光，无线条 */
.page::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 90%;
  height: 380px;
  background:
    radial-gradient(ellipse 55% 70% at 50% 0%, rgba(94, 234, 212, 0.08), transparent 70%),
    radial-gradient(ellipse 40% 60% at 18% 8%, rgba(96, 165, 250, 0.07), transparent 70%),
    radial-gradient(ellipse 40% 60% at 82% 10%, rgba(167, 139, 250, 0.06), transparent 70%);
  pointer-events: none;
}
.page .section-title { font-size: 38px; }
.page-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 54px; }
.page-back { margin-top: 60px; font-size: 15px; }
.page-back a {
  color: var(--text-faint);
  transition: color 0.3s ease, text-shadow 0.3s ease;
  letter-spacing: 0.05em;
}
.page-back a:hover { color: var(--accent); text-shadow: 0 0 14px rgba(94, 234, 212, 0.5); }

/* ---------- Obsidian 基础版仓库区块（知识库页） ---------- */
.vault-block {
  margin-top: 90px;
  padding: 44px 40px;
  position: relative;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.05), rgba(96, 165, 250, 0.04) 55%, rgba(167, 139, 250, 0.05));
  box-shadow: 0 0 40px rgba(94, 234, 212, 0.06), inset 0 0 30px rgba(94, 234, 212, 0.04);
}
.vault-block::before {
  content: "";
  position: absolute;
  left: 40px; top: 0;
  width: 56px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 12px rgba(94, 234, 212, 0.6);
}
.vault-title { font-size: 30px; margin-bottom: 14px; }
.vault-desc { color: var(--text-dim); font-size: 16px; line-height: 1.85; max-width: 640px; margin-bottom: 26px; }
.vault-desc strong { color: var(--text); font-weight: 600; }
.vault-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.vault-note {
  color: var(--text-faint);
  font-size: 14px;
  line-height: 1.8;
  max-width: 640px;
}
.vault-mail { color: var(--text-dim); }
.vault-mail a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: text-shadow 0.3s ease;
}
.vault-mail a:hover { text-shadow: 0 0 12px rgba(94, 234, 212, 0.5); }

/* ---------- Obsidian 板块页（obsidian.html） ---------- */
.obs-card {
  margin-top: 40px;
  padding: 38px 36px;
  border-radius: 22px;
  position: relative;
  max-width: 680px;
}
.obs-card::before {
  content: "";
  position: absolute;
  left: 36px; top: 0;
  width: 48px; height: 2px;
  box-shadow: 0 0 12px rgba(94, 234, 212, 0.6);
}
.obs-free {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.06), rgba(96, 165, 250, 0.04) 60%, transparent);
  box-shadow: 0 0 34px rgba(94, 234, 212, 0.05), inset 0 0 26px rgba(94, 234, 212, 0.04);
}
.obs-free::before { background: linear-gradient(90deg, var(--accent), transparent); }
.obs-pro {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.07), rgba(96, 165, 250, 0.05) 60%, transparent);
  box-shadow: 0 0 34px rgba(167, 139, 250, 0.06), inset 0 0 26px rgba(167, 139, 250, 0.05);
}
.obs-pro::before { background: linear-gradient(90deg, var(--accent3), transparent); }
.obs-card-head { margin-bottom: 18px; }
.obs-card-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.obs-card-sub { color: var(--text-dim); font-size: 15px; }
.obs-tag {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius);
  letter-spacing: 0.04em;
}
.tag-free { color: var(--accent); background: rgba(94, 234, 212, 0.12); }
.tag-pro { color: var(--accent3); background: rgba(167, 139, 250, 0.14); }
.obs-list {
  list-style: none;
  margin: 0 0 26px;
  display: grid;
  gap: 10px;
}
.obs-list li {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.7;
  padding-left: 22px;
  position: relative;
}
.obs-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
  top: 5px;
  text-shadow: 0 0 8px rgba(94, 234, 212, 0.6);
}
.obs-pro .obs-list li::before { color: var(--accent3); text-shadow: 0 0 8px rgba(167, 139, 250, 0.6); }
.obs-list strong { color: var(--text); font-weight: 600; }
.obs-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* 对比表格 */
.obs-compare {
  margin-top: 70px;
  max-width: 680px;
}
.obs-compare-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}
.obs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.obs-table th, .obs-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  vertical-align: top;
}
.obs-table th {
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
}
.obs-table td {
  color: var(--text-dim);
  line-height: 1.6;
}
.obs-table td:first-child { color: var(--text); white-space: nowrap; }
.obs-table tr:hover td { color: var(--text); }
.obs-compare-note {
  margin-top: 18px;
  color: var(--text-faint);
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- 板块通用（无缝：只有留白与微光） ---------- */
section { position: relative; }
.about, .library, .contact { padding: 120px 0; }

/* 板块之间以极淡的辉光过渡，不用任何线条 */
.about::before, .library::before, .contact::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 70%;
  height: 220px;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(96, 165, 250, 0.045), transparent 70%);
  pointer-events: none;
}

.section-kicker {
  font-size: 13px;
  letter-spacing: 0.42em;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}
.section-desc { color: var(--text-dim); font-size: 16px; margin-bottom: 54px; }

/* ---------- 关于 ---------- */
.about-flow { max-width: 720px; }
.about-flow p {
  color: var(--text-dim);
  margin-bottom: 20px;
  font-size: 18px;
}
.about-flow p:first-child {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--text);
  font-weight: 700;
}
.about-flow .gradient-text { font-weight: 700; }
.about-note {
  margin-top: 44px;
  font-size: 15px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}
.about-note::before { content: "✦ "; color: var(--accent); opacity: 0.8; }

/* ---------- 知识库条目（无卡片边框） ---------- */
.entries { margin-top: 10px; }
.entry {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 34px 20px;
  position: relative;
  transition: all 0.35s ease;
  border-radius: 18px;
}
/* hover 时身后浮起一片柔光，而不是出现一个框 */
.entry::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(ellipse 90% 90% at 30% 50%, rgba(94, 234, 212, 0.06), transparent 75%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.entry:hover::before { opacity: 1; }
.entry:hover { transform: translateX(6px); }

.entry-num {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(94, 234, 212, 0.5);
}
.entry-title {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 6px;
  transition: text-shadow 0.35s ease;
}
.entry:hover .entry-title { text-shadow: 0 0 18px rgba(94, 234, 212, 0.4); }
.entry-desc { color: var(--text-dim); font-size: 16px; line-height: 1.75; }
.entry-side { display: flex; align-items: center; gap: 18px; }
.entry-arrow {
  color: var(--accent);
  font-size: 18px;
  transition: transform 0.3s ease;
}
.entry:hover .entry-arrow { transform: translateX(6px); }

.entry-soon { cursor: default; }
.entry-soon .entry-num { color: var(--text-faint); text-shadow: none; opacity: 0.6; }
.entry-soon .entry-title { color: var(--text-dim); }
.entry-soon .entry-desc { opacity: 0.6; }
.entry-soon:hover { transform: none; }
.entry-soon:hover::before { opacity: 0; }
.entry-soon:hover .entry-title { text-shadow: none; }

/* 标签：无边描，软光胶囊 */
.entry-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.tag-live { background: rgba(94, 234, 212, 0.12); color: var(--accent); }
.tag-free { background: rgba(96, 165, 250, 0.12); color: var(--accent2); }
.tag-soon { background: rgba(255, 255, 255, 0.05); color: var(--text-faint); }

/* ---------- 联系 ---------- */
.contact-flow p { color: var(--text-dim); margin-bottom: 18px; font-size: 18px; }
.email-link {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(24px, 4.4vw, 36px);
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(100deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 6px 0 22px;
  transition: filter 0.3s ease, transform 0.3s ease;
}
.email-link:hover { filter: drop-shadow(0 0 18px rgba(94, 234, 212, 0.45)); transform: translateY(-2px); }
.contact-more { font-size: 15px; color: var(--text-faint); letter-spacing: 0.04em; }

/* ---------- 文章页 ---------- */
.article-hero { padding: 110px 0 80px; }
.article-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 6vw, 54px);
  font-weight: 700;
  line-height: 1.28;
  margin-bottom: 18px;
  text-shadow: 0 0 50px rgba(94, 234, 212, 0.08);
}
.article-lead { color: var(--text-dim); font-size: 19px; max-width: 680px; margin-bottom: 26px; }
.article-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.meta-date { font-size: 13px; color: var(--text-faint); letter-spacing: 0.06em; }
.article-download { display: flex; gap: 14px; flex-wrap: wrap; }

.article-section { padding: 90px 0; position: relative; }
/* 板块过渡辉光 */
.article-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 70%;
  height: 180px;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(96, 165, 250, 0.04), transparent 70%);
  pointer-events: none;
}

/* ---------- 总览（无框结构图） ---------- */
.overview {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0 10px;
}
.ov-core { text-align: center; position: relative; padding: 30px 20px; }
/* 核心星辉 */
.ov-core::before {
  content: "";
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(94, 234, 212, 0.14), transparent 68%);
  pointer-events: none;
}
.ov-core-label {
  position: relative;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(100deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 34px rgba(94, 234, 212, 0.25);
}
.ov-core-sub { position: relative; margin-top: 8px; font-size: 15px; color: var(--text-dim); }
/* 主干：一条渐隐的光茎（连接意象，非框线） */
.ov-stem {
  width: 1px;
  height: 44px;
  background: linear-gradient(rgba(94, 234, 212, 0.7), rgba(94, 234, 212, 0.08));
  box-shadow: 0 0 10px rgba(94, 234, 212, 0.4);
}
.ov-branches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  width: 100%;
  max-width: 880px;
  margin-top: 34px;
  text-align: center;
}
.ov-branch-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  color: var(--text);
}
.ov-hot .ov-branch-title { color: var(--accent); text-shadow: 0 0 16px rgba(94, 234, 212, 0.4); }
.ov-branch-item { font-size: 16px; color: var(--text-dim); padding: 4px 0; }
.ov-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(94, 234, 212, 0.12);
  padding: 1px 10px;
  border-radius: var(--radius);
  margin-left: 6px;
}

/* ---------- 正文流 ---------- */
.flow-group { max-width: 760px; margin-bottom: 56px; }
.law-num {
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(94, 234, 212, 0.4);
  margin-bottom: 10px;
}
.flow-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}
.law-note {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(94, 234, 212, 0.1);
  padding: 3px 12px;
  border-radius: var(--radius);
  vertical-align: middle;
  margin-left: 8px;
}
.flow-group p { color: var(--text-dim); font-size: 17px; margin-bottom: 10px; }
.flow-group p b { color: var(--text); font-weight: 600; }
.tip-line {
  margin-top: 16px;
  font-size: 15px;
  color: var(--text-faint);
  font-style: italic;
}
.tip-line::before { content: ""; }

/* ---------- 表格（无格线，呼吸式排版） ---------- */
.table-wrap { overflow-x: auto; max-width: 860px; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.mini-table th {
  text-align: left;
  padding: 14px 18px 14px 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mini-table td {
  padding: 16px 18px 16px 0;
  color: var(--text-dim);
  vertical-align: top;
}
.mini-table td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.mini-table tbody tr { transition: background 0.25s ease; }
.mini-table tbody tr:hover td { color: var(--text); }

/* ---------- 易错清单 ---------- */
.errors { max-width: 760px; }
.errors p {
  font-size: 17px;
  color: var(--text-dim);
  padding: 12px 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.err-x { color: var(--err); font-weight: 700; }
.err-arrow { color: var(--text-faint); }
.err-fix { color: var(--accent); }

/* ---------- 文末 ---------- */
.article-end { padding: 110px 0 130px; text-align: center; }
.end-kicker { font-size: 13px; letter-spacing: 0.42em; color: var(--text-faint); margin-bottom: 14px; }
.end-title { font-family: var(--font-serif); font-size: 32px; font-weight: 700; margin-bottom: 10px; }
.end-sub { color: var(--text-dim); margin-bottom: 36px; }

/* ---------- 页脚 ---------- */
.site-footer { padding: 46px 0 54px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-brand {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(100deg, var(--text) 30%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-note { font-size: 13px; color: var(--text-faint); letter-spacing: 0.06em; }

/* ---------- 滚动浮现 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 开场 CG 文字时序 ---------- */
.hero-content > .hero-kicker,
.hero-content > .hero-title,
.hero-content > .hero-sub,
.hero-content > .hero-actions,
.hero-content > .hero-star-hint { opacity: 0; }
.cg-play .hero-kicker { animation: fadeUp 0.9s ease 0.2s both; }
.cg-play .hero-title { animation: fadeUp 1s ease 0.55s both; }
.cg-play .hero-sub { animation: fadeUp 1s ease 1.25s both; }
.cg-play .hero-actions { animation: fadeUp 1s ease 1.8s both; }
.cg-play .hero-star-hint { animation: fadeUp 1s ease 2.4s both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  /* 导航窄屏适配：单行不折行（4 项：知识库/Obsidian/关于/联系） */
  .nav { gap: 6px; }
  .brand { font-size: 15px; letter-spacing: 0.01em; white-space: nowrap; }
  .brand-sub { display: none; }  /* 窄屏只显示 Kaiser，给 4 个导航项腾空间 */
  .nav-links { gap: 12px; font-size: 14px; }
  /* kicker 缩字距，避免右侧裁切 */
  .hero-kicker { font-size: 12px; letter-spacing: 0.2em; margin-bottom: 22px; }
  .hero { min-height: 88vh; padding: 100px 0 90px; }
  .about, .library, .contact { padding: 80px 0; }
  .entry { grid-template-columns: 1fr; gap: 8px; padding: 26px 12px; }
  .entry-num { font-size: 13px; }
  .entry-side { justify-content: flex-start; }
  /* Obsidian 仓库区块窄屏适配 */
  .vault-block { margin-top: 70px; padding: 34px 22px; }
  .vault-block::before { left: 22px; }
  .vault-title { font-size: 25px; }
  .vault-actions .btn { width: 100%; }
  /* Obsidian 板块页窄屏适配 */
  .obs-card { padding: 30px 20px; }
  .obs-card::before { left: 20px; }
  .obs-card-title { font-size: 22px; flex-wrap: wrap; }
  .obs-table th, .obs-table td { padding: 10px 8px; font-size: 13.5px; }
  .obs-table th { white-space: normal; }
  .obs-table td:first-child { white-space: normal; }
  .obs-actions .btn { width: 100%; justify-content: center; }
  .ov-branches { gap: 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .replay-cg { right: 16px; bottom: 16px; }
}
  .ov-branches { gap: 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .replay-cg { right: 16px; bottom: 16px; }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .hero-content > .hero-kicker,
  .hero-content > .hero-title,
  .hero-content > .hero-sub,
  .hero-content > .hero-actions,
  .hero-content > .hero-star-hint,
  .reveal { opacity: 1 !important; transform: none !important; }
}
