/* ============================================================
   永忆 Yongyi · 全局样式
   设计语言：温暖纪念感 · 浅米底 + 沙金 + 灰绿
   ============================================================ */

:root {
  --bg:         #fbf7f0;
  --bg-2:       #f3ede0;
  --bg-3:       #ffffff;
  --ink:        #2a2722;
  --text:       #3d3a35;
  --muted:      #7d756a;
  --subtle:     #b3aa9c;
  --border:     #e5dcc8;
  --border-hover: #d4c9b0;

  --gold:       #b8924a;     /* 沙金 */
  --gold-light: #d4b06b;
  --sage:       #788d6f;     /* 灰绿 */
  --sage-light: #9aae90;
  --rose:       #b86060;     /* 偶尔点缀（强调） */

  --shadow-sm:  0 2px 8px rgba(40, 30, 15, 0.04);
  --shadow:     0 8px 24px rgba(40, 30, 15, 0.06);
  --shadow-lg:  0 20px 56px rgba(40, 30, 15, 0.08);

  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --max-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'STKaiti', 'PingFang SC', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
body > footer { margin-top: auto; }

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── 导航 ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; color: var(--ink); }
.nav-logo .logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--sage), var(--gold));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px; font-weight: 700;
  font-family: 'Noto Serif SC', serif;
}
.nav-logo em { color: var(--gold); font-style: normal; }
.nav-links { display: flex; list-style: none; gap: 4px; margin: 0; padding: 0; }
.nav-link {
  padding: 8px 14px; border-radius: 8px;
  color: var(--text); font-size: 15px;
  transition: var(--transition);
}
.nav-link:hover { background: var(--bg-2); color: var(--ink); }
.nav-link.active { color: var(--gold); font-weight: 600; }

/* ── 按钮 ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 100px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  text-decoration: none; border: none;
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: white; box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--ink); color: white; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--bg-2); border-color: var(--gold); color: var(--ink); }
.btn-sage { background: var(--sage); color: white; }
.btn-sage:hover { background: var(--ink); color: white; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  padding: 100px 0 80px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(120,141,111,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; padding: 0 24px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  background: rgba(120,141,111,0.1);
  border: 1px solid rgba(120,141,111,0.2);
  border-radius: 100px; font-size: 13px; color: var(--sage);
  margin-bottom: 28px;
}
.hero-badge .dot { width: 6px; height: 6px; background: var(--sage); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 {
  font-size: clamp(36px, 5vw, 56px); font-weight: 700;
  letter-spacing: -0.5px; line-height: 1.25;
  margin: 0 0 24px;
  color: var(--ink);
}
.hero h1 .accent { color: var(--gold); }
.hero p {
  font-size: 18px; color: var(--muted);
  margin: 0 auto 36px; max-width: 580px; line-height: 1.85;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Section ── */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-2); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(184,146,74,0.1);
  border-radius: 100px;
  color: var(--gold);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700; color: var(--ink);
  margin: 0 0 14px;
}
.section-lead {
  font-size: 16px; color: var(--muted);
  max-width: 600px; margin: 0 auto;
}

/* ── 功能卡片 ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.feature-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sage), var(--gold));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 26px;
  margin-bottom: 18px;
}
.feature-card h3 {
  font-size: 19px; font-weight: 700; color: var(--ink);
  margin: 0 0 10px;
}
.feature-card p {
  font-size: 14px; color: var(--muted);
  line-height: 1.8; margin: 0;
}

/* ── 3 步流程 ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px; position: relative;
}
.step-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: center;
  position: relative;
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-size: 18px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-family: 'Outfit', sans-serif;
}
.step-card h3 { font-size: 18px; color: var(--ink); margin: 0 0 10px; }
.step-card p { font-size: 14px; color: var(--muted); line-height: 1.8; margin: 0; }

/* ── 数据 / 信任栏 ── */
.trust-bar {
  background: var(--ink);
  color: white;
  padding: 60px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}
.trust-stat-num {
  font-size: 42px; font-weight: 700;
  color: var(--gold);
  font-family: 'Outfit', 'Inter', sans-serif;
  line-height: 1;
  margin-bottom: 8px;
}
.trust-stat-label { font-size: 14px; color: rgba(255,255,255,0.65); }

/* ── CTA ── */
.cta-band {
  background: linear-gradient(135deg, var(--sage) 0%, var(--gold) 100%);
  color: white;
  padding: 64px 32px;
  border-radius: var(--radius-xl);
  text-align: center;
  margin: 80px 24px;
  max-width: var(--max-w);
  margin-left: auto; margin-right: auto;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 14px; }
.cta-band p { font-size: 16px; opacity: 0.92; margin: 0 0 32px; }
.cta-band .btn-gold { background: white; color: var(--ink); }
.cta-band .btn-gold:hover { background: var(--ink); color: white; transform: translateY(-2px); }

/* ── 页脚 ── */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 24px;
}
.footer-grid {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand-desc {
  font-size: 14px; color: rgba(255,255,255,0.55);
  margin-top: 14px; line-height: 1.85;
}
.footer-col-title {
  color: white; font-weight: 600; font-size: 14px;
  margin-bottom: 16px; letter-spacing: 0.5px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; font-size: 14px; }
.footer-links a { color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  padding: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold); }

/* ── 响应式 ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .steps-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero { padding: 60px 0 48px; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { margin: 56px 16px; padding: 44px 24px; }
}

/* ── 入场动画 ──
   注：opacity 起点 0.3 而非 0，确保即便 IO 失灵卡片也可读 */
.reveal { opacity: 0.3; transform: translateY(16px); transition: opacity 0.45s ease-out, transform 0.45s ease-out; }
.reveal.up { opacity: 1; transform: none; }
.d1 { transition-delay: 0.05s; } .d2 { transition-delay: 0.10s; }
.d3 { transition-delay: 0.15s; } .d4 { transition-delay: 0.20s; }

/* ── 长表格在窄屏下的横向滚动包装 ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 16px; }
.table-wrap table { margin-bottom: 0; min-width: 540px; }

/* ── 法律页面顶部返回链接 ── */
.legal-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.legal-back:hover { color: var(--gold); }
