/* ============================================================
   墨生花 · 官网样式表
   设计系统：墨(深暖黑) + 金(#C9A876) + 青(#3DBDB0) + 樱粉点缀
   字体：ZCOOL XiaoWei / Ma Shan Zheng（标题书法）
         Noto Serif SC（正文文学）
         JetBrains Mono（科技点缀）
   ============================================================ */

/* ============ 本地字体（不依赖 Google Fonts CDN，避免代理/网络导致 fallback） ============ */
@font-face {
  font-family: 'Ma Shan Zheng';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/mshz.woff2') format('woff2');
}
@font-face {
  font-family: 'ZCOOL XiaoWei';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/zcool.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Serif SC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/noto-serif-sc-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Serif SC';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/noto-serif-sc-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Serif SC';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/noto-serif-sc-700.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-400.woff2') format('woff2');
}

:root {
  /* —— 品牌色 —— */
  --ink-deep: #0E0807;
  --ink-base: #1A100B;
  --ink-surface: rgba(35, 22, 16, 0.86);
  --ink-surface-solid: #231610;
  --ink-border: rgba(201, 168, 118, 0.18);
  --ink-border-strong: rgba(201, 168, 118, 0.35);

  /* —— 文字 —— */
  --text-primary: #FFF8F0;
  --text-secondary: rgba(255, 248, 240, 0.78);
  --text-muted: rgba(255, 248, 240, 0.52);
  --text-faint: rgba(255, 248, 240, 0.32);

  /* —— 强调色 —— */
  --gold: #C9A876;
  --gold-bright: #E5C99B;
  --gold-soft: rgba(201, 168, 118, 0.14);
  --teal: #3DBDB0;
  --teal-bright: #5FD9CC;
  --teal-soft: rgba(61, 189, 176, 0.14);
  --pink: #FFB8D0;
  --pink-soft: rgba(255, 184, 208, 0.14);
  --lavender: #D4B8FF;
  --sky: #A8E6FF;
  --mint: #B8F2D8;
  --peach: #FFD4B8;

  /* —— 字体 —— */
  --font-display: 'ZCOOL XiaoWei', 'Ma Shan Zheng', 'Noto Serif SC', serif;
  --font-calligraphy: 'Ma Shan Zheng', 'ZCOOL XiaoWei', 'KaiTi', '楷体', serif;
  --font-body: 'Noto Serif SC', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* —— 圆角/阴影 —— */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 60px rgba(201, 168, 118, 0.18);
  --shadow-teal: 0 8px 32px rgba(61, 189, 176, 0.22);

  /* —— 间距 —— */
  --gutter: clamp(20px, 4vw, 48px);
  --container: 1200px;

  /* —— 动效 —— */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============ 重置 ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
  background: var(--ink-deep);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, canvas, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; }

/* ============ 工具类 ============ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============ 滚动揭示 ============ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============ 导航栏 ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(14, 8, 7, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ink-border);
  transition: background 0.3s;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-calligraphy);
  font-size: 1.3rem;
  color: var(--text-primary);
}
.nav-logo img { width: 32px; height: 32px; border-radius: 50%; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover,
.nav-links a:focus-visible { background: var(--gold-soft); color: var(--gold-bright); }
.nav-links .nav-cta {
  background: var(--gold);
  color: var(--ink-deep);
  font-weight: 600;
  padding: 8px 20px;
  margin-left: 8px;
}
.nav-links .nav-cta:hover { background: var(--gold-bright); color: var(--ink-deep); }
.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--text-primary);
}
@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: var(--ink-surface-solid);
    border-bottom: 1px solid var(--ink-border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { width: 100%; text-align: center; padding: 12px; }
  .nav-links .nav-cta { margin-left: 0; margin-top: 8px; }
  .nav-toggle { display: flex; }
}

/* ============ Hero 区域 ============ */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(201, 168, 118, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 70%, rgba(61, 189, 176, 0.06) 0%, transparent 40%);
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}
@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero { padding: 100px 0 40px; min-height: auto; }
  .hero-stats { justify-content: center; }
}

/* 子页面 hero（功能/常见问题/更新日志）：单列居中，避免被 .hero .container 的 2 列 grid 拆散 */
.hero--page {
  min-height: auto;
  padding: clamp(96px, 13vw, 140px) 0 clamp(56px, 7vw, 84px);
}
.hero--page .container {
  display: block;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.hero--page .hero-eyebrow { justify-content: center; margin-bottom: 22px; }
.hero--page h1 { margin-bottom: 26px; }
.hero--page .title-sub { letter-spacing: 4px; opacity: 0.9; }
.hero--page .hero-desc {
  margin-left: auto;
  margin-right: auto;
  max-width: 660px;
  font-size: 1.08rem;
  line-height: 1.95;
  color: var(--text-secondary);
}
.hero--page .hero-cta { justify-content: center; }
/* 记忆点：hero 收尾的渐变短分隔线 */
.hero--page::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: clamp(32px, 4vw, 48px);
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  opacity: 0.75;
}

.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
  animation: pulse 4s var(--ease) infinite;
}

.hero h1 {
  font-family: var(--font-display);
  margin-bottom: 24px;
}
.hero h1 .title-ink {
  display: block;
  font-size: clamp(3.2rem, 9vw, 6rem);
  font-family: var(--font-calligraphy);
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: 6px;
  text-shadow: 0 2px 20px rgba(201, 168, 118, 0.15);
}
.hero h1 .title-sub {
  display: block;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 300;
  color: var(--text-muted);
  margin-top: 12px;
  letter-spacing: 4px;
}
.hero-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 520px;
}
@media (max-width: 880px) { .hero-lead { max-width: 100%; } }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}
@media (max-width: 880px) { .hero-actions { justify-content: center; } }

/* 按钮基类 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-lg);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--ink-deep);
  box-shadow: 0 4px 20px rgba(201, 168, 118, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 118, 0.4);
}
.btn-secondary {
  border: 1px solid var(--ink-border-strong);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
}
.btn-ghost {
  border: 1px solid var(--ink-border-strong);
  color: var(--text-primary);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* 导航栏独立下载按钮 */
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--r-md);
  background: var(--gold);
  color: var(--ink-deep);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.nav-cta svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.nav-cta:hover { background: var(--gold-bright); color: var(--ink-deep); }

.hero-stats {
  display: flex;
  gap: 32px;
}
.hero-stats .stat {
  text-align: center;
}
.hero-stats .stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
}
.hero-stats .stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* —— Hero 视觉 —— */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.logo-orbit {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
}

.logo-orbit .logo-core {
  position: absolute;
  inset: 18%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(35, 22, 16, 0.95), rgba(14, 8, 7, 0.4));
  border-radius: 50%;
  filter: drop-shadow(0 30px 60px rgba(201, 168, 118, 0.25));
  animation: float 12s ease-in-out infinite;
  will-change: transform;
  backface-visibility: hidden;
}
.logo-orbit .logo-core img {
  width: 78%;
  height: auto;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.logo-orbit .ring {
  position: absolute;
  inset: 0;
  border: 1.5px dashed rgba(201, 168, 118, 0.45);
  border-radius: 50%;
  animation: rotate 70s linear infinite;
  will-change: transform;
}
.logo-orbit .ring::before,
.logo-orbit .ring::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
}
.logo-orbit .ring::before { top: -7px; left: 50%; transform: translateX(-50%); }
.logo-orbit .ring::after { bottom: -7px; right: 20%; background: var(--teal); opacity: 0.7; }

.logo-orbit .ring-2 {
  position: absolute;
  inset: 8%;
  border: 1.5px solid rgba(61, 189, 176, 0.35);
  border-radius: 50%;
  animation: rotate-reverse 110s linear infinite;
  will-change: transform;
}

@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes rotate-reverse { to { transform: rotate(-360deg); } }

/* —— 花瓣绕中心轨道公转（符号保持正立，各自起始角+半径错落） —— */
.petal-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  animation: orbit-spin 70s linear infinite;
  will-change: transform;
}
.petal-orbit .petal {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 22px;
  opacity: 0.8;
  animation: orbit-spin-reverse 70s linear infinite;
  will-change: transform;
}
/* 5 片花瓣：不同起始角度(错开72°) + 不同半径，形成自然层次 */
.petal-orbit.po1 { --start: 0deg;   --r: 190px; }
.petal-orbit.po2 { --start: 72deg;  --r: 162px; }
.petal-orbit.po3 { --start: 144deg; --r: 205px; }
.petal-orbit.po4 { --start: 216deg; --r: 156px; }
.petal-orbit.po5 { --start: 288deg; --r: 196px; }
@keyframes orbit-spin {
  from { transform: rotate(var(--start, 0deg)); }
  to   { transform: rotate(calc(var(--start, 0deg) + 360deg)); }
}
@keyframes orbit-spin-reverse {
  from { transform: translate(-50%, -50%) translateX(var(--r, 190px)) rotate(calc(-1 * var(--start, 0deg))); }
  to   { transform: translate(-50%, -50%) translateX(var(--r, 190px)) rotate(calc(-1 * (var(--start, 0deg) + 360deg))); }
}

/* ============ 功能网格 ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  position: relative;
  padding: 36px 28px;
  border-radius: var(--r-lg);
  background: var(--ink-surface);
  border: 1px solid var(--ink-border);
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease);
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink-border-strong);
  box-shadow: var(--shadow-md);
}
.feature-card:hover::before { opacity: 1; }
.feature-card .icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
  line-height: 1;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ============ 场景痛点 ============ */
.section { padding: clamp(72px, 9vw, 112px) 0; }
.section-alt { background: var(--ink-base); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid rgba(201, 168, 118, 0.22);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--text-primary);
  margin-bottom: 18px;
  line-height: 1.25;
  letter-spacing: 0.5px;
}
.section-title em { color: var(--gold-bright); font-style: normal; }
.section-lead {
  font-size: 1.06rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 52px;
  line-height: 1.85;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.scene-card {
  padding: 32px 24px;
  border-radius: var(--r-lg);
  background: var(--ink-surface);
  border: 1px solid var(--ink-border);
  transition: all 0.3s var(--ease);
}
.scene-card:hover { border-color: var(--ink-border-strong); transform: translateY(-3px); }
.scene-card .emoji { font-size: 2.4rem; margin-bottom: 16px; }
.scene-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.scene-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ============ 使用流程 ============ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.step-card {
  text-align: center;
  padding: 36px 20px;
  border-radius: var(--r-lg);
  background: var(--ink-surface);
  border: 1px solid var(--ink-border);
  position: relative;
}
.step-card .step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  color: var(--ink-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700;
  margin: 0 auto 16px;
  font-family: var(--font-mono);
}
.step-card h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-bottom: 10px;
  font-size: 1.05rem;
}
.step-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============ 下载 CTA ============ */
.section-cta {
  text-align: center;
  padding: 80px 0;
}
.section-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--text-primary);
  margin-bottom: 14px;
}
.section-cta p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--r-lg);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  transition: all 0.2s var(--ease);
  min-width: 180px;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--ink-deep);
  box-shadow: 0 4px 24px rgba(201, 168, 118, 0.3);
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 168, 118, 0.4);
}
.btn-download.primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--ink-deep);
  box-shadow: 0 4px 24px rgba(201, 168, 118, 0.3);
}
.btn-download.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 168, 118, 0.4);
}
.btn-download.ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--ink-border-strong);
}
.btn-download.ghost:hover { background: var(--gold-soft); border-color: var(--gold); }
.btn-download svg { flex-shrink: 0; width: 18px; height: 18px; }

/* ============ 页脚 ============ */
.footer {
  border-top: 1px solid var(--ink-border);
  padding: 48px 0 32px;
}
.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-calligraphy);
  color: var(--text-muted);
  font-size: 0.95rem;
}
.footer-brand img { width: 28px; height: 28px; border-radius: 50%; opacity: 0.7; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-bright); }
.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 24px;
}

/* ============ 响应式调整 ============ */
@media (max-width: 640px) {
  .hero-stats { gap: 20px; }
  .hero-stats .stat strong { font-size: 1.4rem; }
  .btn-primary, .btn-secondary, .btn-download { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .footer .container { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ============ 页面内部锚点偏移 ============ */
.page-section { padding: 100px 0; }
.page-section .section-title { margin-bottom: 40px; }

/* ============ features.html 补充样式 ============ */
.feature-detail-grid {
  display: grid;
  gap: 32px;
}
.feature-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--ink-border);
}
.feature-detail:last-child { border-bottom: none; }
.feature-detail.reverse { direction: rtl; }
.feature-detail.reverse > * { direction: ltr; }
.feature-detail .visual-placeholder {
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  background: var(--ink-surface);
  border: 1px solid var(--ink-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-faint);
}
.feature-detail .detail-icon { font-size: 2.6rem; margin-bottom: 16px; }
.feature-detail h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.feature-detail p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.feature-detail ul { padding-left: 0; }
.feature-detail li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.feature-detail li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
}
@media (max-width: 720px) {
  .feature-detail { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
  .feature-detail.reverse { direction: ltr; }
}

/* ============ faq.html 补充样式 ============ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--ink-border);
  border-radius: var(--r-lg);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--ink-border-strong); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  font-size: 1.02rem;
  color: var(--text-primary);
  text-align: left;
  background: var(--ink-surface);
  transition: background 0.2s;
}
.faq-q:hover { background: rgba(201, 168, 118, 0.06); }
.faq-q .arrow {
  font-size: 0.8rem;
  color: var(--gold);
  transition: transform 0.3s;
}
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease), padding 0.35s;
  padding: 0 26px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 24px 20px;
}

/* ============ download.html 补充 ============ */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 920px;
  margin: 0 auto;
  align-items: stretch;
}
@media (max-width: 720px) {
  .download-grid { grid-template-columns: 1fr; max-width: 480px; }
}
.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background: var(--ink-surface);
  border: 1px solid var(--ink-border);
  border-radius: var(--r-xl);
  padding: 40px 36px;
  text-align: center;
}
.download-card .btn-download { margin-top: auto; }
.download-card .version-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  margin-bottom: 20px;
}
.download-card h2 { font-family: var(--font-display); color: var(--text-primary); font-size: 1.6rem; margin-bottom: 10px; }
.download-card .file-info { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 32px; }
.download-channels {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}
.download-channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--ink-border);
  transition: all 0.2s;
  text-align: left;
}
.download-channel:hover { border-color: var(--gold); background: var(--gold-soft); }
.download-channel .channel-icon { font-size: 2rem; flex-shrink: 0; }
.download-channel .channel-info { flex: 1; }
.download-channel .channel-info strong { display: block; color: var(--text-primary); font-size: 1rem; }
.download-channel .channel-info span { display: block; color: var(--text-muted); font-size: 0.82rem; }
.download-channel .channel-arrow { color: var(--gold); font-size: 1.2rem; }
.download-note {
  font-size: 0.82rem;
  color: var(--text-faint);
  line-height: 1.6;
}

/* ============ changelog.html 补充 ============ */
.timeline { position: relative; padding-left: 32px; max-width: 700px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 1px;
  background: var(--ink-border-strong);
}
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ink-base);
  border: 2px solid var(--gold);
}
.timeline-item .version { font-family: var(--font-mono); color: var(--gold-bright); font-size: 0.9rem; }
.timeline-item .date { font-size: 0.82rem; color: var(--text-faint); margin-bottom: 8px; }
.timeline-item h3 { font-family: var(--font-display); color: var(--text-primary); font-size: 1.2rem; margin-bottom: 12px; line-height: 1.4; }
.timeline-item ul { padding-left: 0; }
.timeline-item li {
  padding: 3px 0 3px 18px;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.timeline-item li::before { content: '·'; position: absolute; left: 4px; color: var(--gold); }

/* ============ 打印支持 ============ */
@media print {
  .nav, .hero-visual, .petal-orbit { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: auto; padding: 40px 0; }
  .section { padding: 40px 0; }
}

/* ============ 加载动画 ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* 招牌视觉：保留清晰纯旋转（纯旋转几乎不引发前庭刺激），避免装饰完全消失 */
  .logo-orbit .ring,
  .logo-orbit .ring-2,
  .petal-orbit,
  .petal-orbit .petal {
    animation-duration: 60s !important;
    animation-iteration-count: infinite !important;
  }
}

/* ============================================================
   页面专属样式补齐（导航 / 下载页 / 页脚）
   这些类名此前未在样式表中定义，导致对应区块裸奔、错位
   ============================================================ */

/* —— 导航品牌 —— */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-calligraphy); font-size: 1.2rem; color: var(--text-primary); }
.brand-text small { font-size: 0.58rem; letter-spacing: 0.22em; color: var(--text-muted); font-family: var(--font-mono); margin-top: 2px; }
.nav-links a.active { color: var(--gold-bright); background: var(--gold-soft); }

/* —— Hero 文字区 —— */
.hero-text { position: relative; z-index: 2; }
.hero-desc { font-size: 1.05rem; line-height: 1.8; color: var(--text-secondary); margin-bottom: 32px; max-width: 480px; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero-cta .btn,
.hero-cta .btn-primary,
.hero-cta .btn-secondary,
.hero-cta .btn-ghost {
  flex: 0 0 auto;
  white-space: nowrap;
}
@media (max-width: 880px) { .hero-desc { max-width: 100%; } .hero-cta { justify-content: center; } }

/* —— 下载页：云盘图标 / 版本 / 链接占位 —— */
.cloud-icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--ink-border);
}
.download-card .version {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.link-placeholder {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1px dashed var(--ink-border);
  background: rgba(0,0,0,0.18);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-faint);
  width: 100%;
}
.download-card .btn-download { width: 100%; max-width: 300px; }

/* —— 系统要求 —— */
.sys-req { margin-top: 72px; }
.sys-req h3 {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 26px;
}
.sys-req h3 svg { color: var(--gold); flex-shrink: 0; }
.sys-req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.sys-req-item {
  background: var(--ink-surface);
  border: 1px solid var(--ink-border);
  border-radius: var(--r-lg);
  padding: 20px 22px;
}
.sys-req-item .label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; letter-spacing: 0.04em; }
.sys-req-item .value { color: var(--text-primary); font-size: 0.95rem; }

/* —— 使用流程步骤 —— */
.workflow { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.step {
  text-align: center;
  padding: 34px 20px;
  border-radius: var(--r-lg);
  background: var(--ink-surface);
  border: 1px solid var(--ink-border);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.step:hover { transform: translateY(-4px); border-color: var(--ink-border-strong); }
.step-num {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  color: var(--ink-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-calligraphy);
  font-size: 1.35rem;
  margin: 0 auto 14px;
}
.step h4 { font-family: var(--font-display); color: var(--text-primary); margin-bottom: 8px; font-size: 1.05rem; }
.step p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* —— 安全提示横幅 —— */
.cta-banner {
  background: var(--ink-surface);
  border: 1px solid var(--ink-border);
  border-radius: var(--r-xl);
  padding: 36px 40px;
}
.cta-banner h2 { font-family: var(--font-display); color: var(--text-primary); margin-bottom: 12px; }
.cta-banner p { color: var(--text-secondary); line-height: 1.8; }

/* —— 页脚网格 —— */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  width: 100%;
  margin-bottom: 28px;
}
.footer-grid h4 { font-family: var(--font-display); color: var(--text-primary); font-size: 1rem; margin-bottom: 14px; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); margin-top: 12px; max-width: 280px; line-height: 1.7; }
.footer-meta {
  width: 100%;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-border);
  font-size: 0.8rem;
  color: var(--text-faint);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ============ 关系画布演示 ============ */
.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-md);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--ink-border-strong);
  color: var(--text-primary);
  background: transparent;
  transition: all 0.2s var(--ease);
}
.btn-sm:hover { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-bright); }

.canvas-demo-wrap {
  margin-top: 44px;
  border: 1px solid var(--ink-border);
  border-radius: var(--r-lg);
  background: var(--ink-surface-solid);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.canvas-demo-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ink-border);
  background: var(--ink-surface);
  flex-wrap: wrap;
}
.canvas-demo-hint {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-faint);
}
.canvas-demo-stage { position: relative; }
.rel-canvas {
  display: block;
  width: 100%;
  height: clamp(380px, 52vw, 560px);
  background:
    radial-gradient(1200px 600px at 18% 0%, rgba(255,184,208,0.07), transparent 60%),
    radial-gradient(1000px 600px at 92% 100%, rgba(61,189,176,0.07), transparent 60%),
    var(--ink-deep);
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.rel-canvas:active { cursor: grabbing; }

.rel-edge { transition: opacity 0.2s, stroke-opacity 0.2s; }
.rel-edge-relation { stroke: var(--pink); stroke-opacity: 0.75; }
.rel-edge-appears { stroke: var(--teal); stroke-opacity: 0.5; stroke-dasharray: 5 5; }
.rel-edge-anchor-char { stroke: var(--lavender); stroke-opacity: 0.8; }
.rel-edge-anchor-chapter { stroke: var(--sky); stroke-opacity: 0.5; stroke-dasharray: 5 5; }
.rel-edge.dim { stroke-opacity: 0.1; }

.rel-node { cursor: pointer; }
.rel-node circle {
  stroke: rgba(255,255,255,0.55);
  stroke-width: 1.5;
  transition: opacity 0.2s, stroke 0.2s, stroke-width 0.2s;
}
.rel-node-character circle { fill: var(--pink); }
.rel-node-chapter circle { fill: var(--teal); }
.rel-node-anchor circle { fill: var(--lavender); }
.rel-node.sel circle { stroke: var(--gold-bright); stroke-width: 3.5; }
.rel-node.dim { opacity: 0.22; }
.rel-node-label {
  fill: var(--text-primary);
  font-size: 12.5px;
  font-family: var(--font-body);
  text-anchor: middle;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(0,0,0,0.55);
  stroke-width: 3px;
}
.rel-edge-label {
  fill: var(--text-secondary);
  font-size: 10.5px;
  text-anchor: middle;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(0,0,0,0.55);
  stroke-width: 3px;
}

.rel-legend {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-muted);
  background: rgba(14,8,7,0.6);
  padding: 7px 12px;
  border-radius: var(--r-sm);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.rel-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.rel-legend .d-rel { background: var(--pink); }
.rel-legend .d-app { background: var(--teal); }
.rel-legend .d-ac { background: var(--lavender); }
.rel-legend .d-ac2 { background: var(--sky); }

.rel-inspector {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 248px;
  max-width: calc(100% - 28px);
  max-height: calc(100% - 28px);
  overflow: auto;
  background: rgba(35,22,16,0.94);
  border: 1px solid var(--ink-border-strong);
  border-radius: var(--r-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.rel-insp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.rel-insp-type { font-size: 11px; padding: 2px 9px; border-radius: 999px; border: 1px solid; }
.rel-insp-type.t-character { color: var(--pink); border-color: var(--pink); }
.rel-insp-type.t-chapter { color: var(--teal); border-color: var(--teal); }
.rel-insp-type.t-anchor { color: var(--lavender); border-color: var(--lavender); }
.rel-insp-name { font-family: var(--font-display); font-size: 15px; color: var(--text-primary); }
.rel-insp-row { display: flex; gap: 8px; font-size: 12px; margin-bottom: 6px; line-height: 1.5; }
.rel-insp-row .k { flex: 0 0 34px; color: var(--gold-soft); }
.rel-insp-row .v { flex: 1; color: var(--text-secondary); }
.rel-insp-sec { font-size: 12px; color: var(--text-muted); margin: 10px 0 5px; border-top: 1px solid var(--ink-border); padding-top: 8px; }
.rel-insp-list { display: flex; flex-direction: column; gap: 4px; }
.rel-insp-link { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; background: var(--ink-surface-solid); border: 1px solid var(--ink-border); border-radius: var(--r-sm); font-size: 12px; cursor: pointer; }
.rel-insp-link:hover { border-color: var(--gold); }
.rel-insp-link .lk-type { color: var(--text-faint); flex: 0 0 auto; }
.rel-insp-none { font-size: 12px; color: var(--text-faint); padding: 4px 2px; }

@media (max-width: 600px) {
  .rel-inspector { position: static; width: auto; max-height: none; margin: 0 14px 14px; }
  .canvas-demo-hint { display: none; }
}