/* ============================================================
   咖果鲜月光有数--收支记账 - 官网样式
   暗色主题 + 荧光绿(#00E676)，与产品端 UI 一致
   ============================================================ */
:root {
  --bg: #0b0f14;
  --bg-card: #131a22;
  --bg-card-2: #1a232e;
  --border: #232e3b;
  --text: #e8eef5;
  --text-dim: #8b9aab;
  --accent: #00e676;
  --accent-dim: rgba(0, 230, 118, 0.12);
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav-links a { color: var(--text-dim); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: #0b0f14;
}
.btn-primary:hover { filter: brightness(1.1); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ---------- 导航下拉（进入应用：PC 端 / 微信小程序） ---------- */
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown-toggle { user-select: none; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  display: none;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}
.dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}
.dropdown-item:hover { background: var(--bg-card-2); text-decoration: none; }
.dropdown-title { font-weight: 600; }
.dropdown-hint { font-size: 12px; color: var(--text-dim); }
.qr-item { align-items: center; text-align: center; }
.qr-item img {
  display: block;
  width: 140px;
  height: 140px;
  border-radius: 8px;
  margin: 8px 0;
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 70px;
  text-align: center;
  background:
    radial-gradient(800px 300px at 50% -80px, rgba(0, 230, 118, 0.14), transparent 70%);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 1px;
}
.hero h1 .accent { color: var(--accent); }
.hero p {
  margin: 18px auto 34px;
  max-width: 560px;
  color: var(--text-dim);
  font-size: 17px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: #5b6b7c; }

/* ---------- 区块通用 ---------- */
.section { padding: 64px 0; }
.section-title {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 44px;
  font-size: 15px;
}

/* ---------- 功能卡片 ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, border-color 0.2s;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(0, 230, 118, 0.4); }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 230, 118, 0.35);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--text-dim); }

/* ---------- 数据亮点 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 10px;
}
.stat {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.stat-num { font-size: 30px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 13px; color: var(--text-dim); margin-top: 6px; }

/* ---------- 步骤 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -14px;
  left: 20px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #0b0f14;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-dim); }

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(600px 240px at 50% 120%, rgba(0, 230, 118, 0.16), transparent 70%);
  text-align: center;
  padding: 70px 0;
}
.cta h2 { font-size: 28px; margin-bottom: 12px; }
.cta p { color: var(--text-dim); margin-bottom: 28px; }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  font-size: 13px;
  color: var(--text-dim);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-contact { color: var(--text-dim); }
.footer-contact a { color: var(--accent); }
.footer-contact a:hover { text-decoration: none; }
.footer-icp { color: #5b6b7c; }

/* ---------- 法律文档页 ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.doc h1 { font-size: 28px; margin-bottom: 8px; }
.doc .doc-date { color: var(--text-dim); font-size: 13px; margin-bottom: 32px; }
.doc h2 { font-size: 18px; margin: 28px 0 12px; }
.doc p, .doc li { font-size: 14px; color: var(--text-dim); margin-bottom: 8px; }
.doc ul { padding-left: 22px; }
.doc strong { color: var(--text); }

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .hero { padding: 56px 0 44px; }
  .section { padding: 44px 0; }
  .nav-links > a:not(.btn) { display: none; }
}
