/* ===== 财鹿 DeerFortune · 设计系统 ===== */
:root {
  --forest: #0f3b2e;
  --forest-deep: #0a2a20;
  --forest-soft: #14543f;
  --gold: #c9a227;
  --gold-soft: #e3c25a;
  --cream: #faf7f0;
  --cream-2: #f3ede1;
  --ink: #1c2b25;
  --ink-soft: #4a5a52;
  --line: rgba(15, 59, 46, 0.12);
  --white: #ffffff;
  --shadow-sm: 0 4px 20px rgba(15, 59, 46, 0.06);
  --shadow-md: 0 18px 50px rgba(15, 59, 46, 0.12);
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --serif: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --sans: "Inter", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ===== 背景装饰 ===== */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 80% -5%, rgba(201, 162, 39, 0.18), transparent 70%),
    radial-gradient(55% 45% at 5% 10%, rgba(20, 84, 63, 0.16), transparent 70%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
}
.data-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
}

/* ===== 导航 ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(250, 247, 240, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--forest); }
.brand-mark { width: 56px; height: 56px; object-fit: contain; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--serif); font-size: 1.25rem; letter-spacing: 0.5px; color: var(--forest); }
.brand-text em { font-style: normal; font-size: 0.78rem; letter-spacing: 4px; color: var(--gold); margin-top: 2px; }

.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-size: 0.95rem; color: var(--ink-soft); position: relative; padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--gold); transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--forest); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--forest); transition: 0.3s var(--ease); border-radius: 2px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 500; font-size: 0.98rem;
  padding: 13px 26px; border-radius: 999px; cursor: pointer; border: 1.5px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--forest); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--forest-soft); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-line { background: transparent; color: var(--forest); border-color: var(--line); }
.btn-line:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--forest); padding: 10px 22px; }
.btn-ghost:hover { background: var(--forest); color: var(--cream); }

/* ===== 英雄区 ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 140px clamp(20px, 5vw, 56px) 80px;
  max-width: var(--maxw); margin: 0 auto;
}
.hero-inner {
  max-width: 760px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero-sub { margin-left: auto; margin-right: auto; }
.hero-actions, .hero-stats { justify-content: center; }
.eyebrow {
  font-size: 0.82rem; letter-spacing: 5px; color: var(--gold);
  text-transform: uppercase; margin-bottom: 22px; font-weight: 600;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 1.3;
  color: var(--forest);
  letter-spacing: 1px;
  margin-bottom: 28px;
}
.accent { color: var(--gold); position: relative; }
.accent-soft { color: var(--gold); font-weight: 600; }
.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }
.hero-stats { display: flex; gap: clamp(28px, 5vw, 64px); flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: "Jost", "Inter", var(--sans); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--forest);
  line-height: 1; font-weight: 600; letter-spacing: 1px;
}
.hero-stats span { font-size: 0.86rem; color: var(--ink-soft); margin-top: 8px; letter-spacing: 1px; }

/* ===== 通用区块 ===== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 140px) clamp(20px, 5vw, 56px);
}
.section-head { max-width: 720px; margin-bottom: 56px; }
.kicker {
  font-size: 0.8rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 16px;
}
.section-head h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.2rem); color: var(--forest); line-height: 1.15;
  letter-spacing: 0.5px;
}

/* ===== 理念 ===== */
.philo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.philo-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.philo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.philo-card h3 {
  font-family: var(--serif); font-size: 1.5rem; color: var(--forest); margin-bottom: 14px; font-weight: 600;
}
.philo-card p { color: var(--ink-soft); font-size: 1rem; }
.philo-quote {
  margin-top: 56px; padding: 40px 0; text-align: center;
  font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: var(--forest); line-height: 1.5; font-style: italic;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

/* ===== 如何运作 ===== */
.flow {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 0;
}
.flow-step {
  background: var(--forest); color: var(--cream); border-radius: var(--radius-lg);
  padding: 44px 36px; display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease);
}
.flow-step:hover { transform: translateY(-6px); }
.flow-num {
  font-family: "Jost", "Inter", var(--sans); font-size: 2.6rem; color: var(--gold-soft); font-weight: 600; letter-spacing: 1px; margin-bottom: 18px;
}
.flow-step h3 { font-family: var(--serif); font-size: 1.7rem; margin-bottom: 14px; font-weight: 600; }
.flow-step p { color: rgba(250, 247, 240, 0.82); font-size: 1rem; }
.flow-arrow {
  display: grid; place-items: center; color: var(--gold); font-size: 2rem; padding: 0 18px;
}

/* ===== 价值对比 ===== */
.compare {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center;
}
.compare-col {
  border-radius: var(--radius-lg); padding: 44px 38px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); background: var(--white);
}
.compare-label { font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 22px; font-weight: 600; }
.compare-before .compare-label { color: var(--ink-soft); }
.compare-after { background: var(--forest); border-color: var(--forest); }
.compare-after .compare-label { color: var(--gold-soft); }
.compare-col ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.compare-col li {
  position: relative; padding-left: 28px; font-size: 1.05rem;
}
.compare-before li { color: var(--ink-soft); }
.compare-after li { color: var(--cream); }
.compare-col li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 14px; height: 14px; border-radius: 50%;
}
.compare-before li::before { background: transparent; border: 1.5px solid var(--ink-soft); }
.compare-after li::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,39,0.18); }
.compare-mid { display: grid; place-items: center; }
.compare-eq {
  font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: var(--forest);
  background: var(--gold-soft); padding: 14px 20px; border-radius: 999px;
  box-shadow: var(--shadow-sm); letter-spacing: 1px;
}

/* ===== CTA ===== */
.cta { display: flex; justify-content: center; }
.cta-card {
  background: linear-gradient(150deg, var(--forest) 0%, var(--forest-deep) 100%);
  color: var(--cream); border-radius: var(--radius-lg);
  padding: clamp(48px, 8vw, 84px); text-align: center; max-width: 760px; width: 100%;
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.cta-card::before {
  content: ""; position: absolute; top: -40%; right: -10%; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(201,162,39,0.25), transparent 70%);
}
.cta-card h2 { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.15; margin-bottom: 18px; font-weight: 700; }
.cta-card p { color: rgba(250,247,240,0.82); max-width: 480px; margin: 0 auto 34px; }
.cta-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-form input {
  flex: 1 1 280px; min-width: 0; padding: 14px 20px; border-radius: 999px; border: 1.5px solid rgba(250,247,240,0.25);
  background: rgba(255,255,255,0.06); color: var(--cream); font-size: 1rem; font-family: var(--sans);
}
.cta-form input::placeholder { color: rgba(250,247,240,0.55); }
.cta-form input:focus { outline: none; border-color: var(--gold-soft); background: rgba(255,255,255,0.1); }
.cta-note { margin-top: 18px; font-size: 0.9rem; color: var(--gold-soft); min-height: 1.2em; }

/* ===== 社交账号（二维码） ===== */
.social-grid { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.social-card {
  position: relative;
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  padding: 8px;
  width: 200px;
  box-shadow: none;
  transition: transform 0.35s var(--ease);
}
.social-card:hover { transform: translateY(-6px); }
.social-card img {
  width: 156px; height: 156px; object-fit: contain; display: block;
  margin: 0 auto; border-radius: 16px;
  background: transparent; padding: 0;
  box-shadow: 0 10px 26px rgba(10, 42, 32, 0.3);
}
.social-card figcaption { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.social-name {
  font-family: var(--serif); font-size: 1.3rem; color: var(--cream); font-weight: 600;
  display: flex; align-items: center; gap: 9px;
}
.social-name::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.18);
}
.social-handle { font-size: 0.82rem; color: rgba(250, 247, 240, 0.65); letter-spacing: 0.5px; }

/* ===== 页脚 ===== */
.footer { background: var(--forest-deep); color: var(--cream); padding: 64px clamp(20px, 5vw, 56px) 36px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between;
  align-items: flex-start; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(250,247,240,0.12);
}
.footer-brand .brand-text strong { color: var(--cream); }
.footer-brand .brand-text em { color: var(--gold-soft); }
.footer-brand p { margin-top: 12px; color: rgba(250,247,240,0.6); font-family: var(--serif); font-size: 1.1rem; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { color: rgba(250,247,240,0.75); transition: color 0.3s var(--ease); }
.footer-links a:hover { color: var(--gold-soft); }
.footer-copy { text-align: center; margin-top: 28px; color: rgba(250,247,240,0.45); font-size: 0.85rem; }
.footer-icp { text-align: center; margin-top: 8px; color: rgba(250,247,240,0.4); font-size: 0.82rem; letter-spacing: 1px; }
.footer-icp a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(250,247,240,0.25); transition: border-color 0.3s var(--ease); }
.footer-icp a:hover { border-color: rgba(250,247,240,0.6); }

/* ===== 滚动揭示动画 ===== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 980px) {
  .hero { text-align: center; padding-top: 120px; }
  .hero-inner { max-width: 720px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
}
@media (max-width: 900px) {
  .philo-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 16px; }
  .flow-arrow { transform: rotate(90deg); padding: 6px 0; }
  .compare { grid-template-columns: 1fr; }
  .compare-mid { padding: 6px 0; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(250,247,240,0.97); backdrop-filter: blur(14px); padding: 24px 32px; gap: 18px;
    box-shadow: var(--shadow-md);
  }
}
@media (max-width: 600px) {
  .hide-mobile { display: none; }
  .hero { padding-top: 110px; }
  .hero-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ===== 开场粒子动画 ===== */
.intro-canvas {
  position: fixed; inset: 0; z-index: 9999;
  width: 100%; height: 100%;
  pointer-events: none;
  transition: opacity 0.7s var(--ease);
}
body.intro { overflow: hidden; }
body.intro .data-canvas { opacity: 0; }
body.intro #nav,
body.intro main,
body.intro .footer { opacity: 0; transition: none; } /* 入场即隐藏，避免淡出过程在透明 canvas 后露出内容 */
#nav, main, .footer { transition: opacity 1.1s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  body.intro #nav,
  body.intro main,
  body.intro .footer { opacity: 1; }
}
