/* ============================================================
   财务工具箱 · 基础样式
   设计语言沿用 fechuck：info 蓝 / stable 绿 / 细边框 / 大留白
   不加载任何外部字体（大陆访问更稳），中文用系统字体
   ============================================================ */

:root {
  --bg: #f6f8f9;
  --surface: #ffffff;
  --surface-2: #f1f5f6;
  --border: #dce4e8;
  --border-soft: #e8eef1;
  --text: #101820;
  --text-2: #55666e;
  --text-3: #8a9aa2;
  --info: #1f6fb2;
  --info-strong: #185c95;
  --info-soft: rgba(31, 111, 178, 0.08);
  --stable: #147a5a;
  --stable-soft: rgba(20, 122, 90, 0.10);
  --leak: #c85a1d;
  --leak-soft: rgba(200, 90, 29, 0.10);
  --shadow: 0 1px 2px rgba(16, 24, 32, 0.04), 0 4px 16px rgba(16, 24, 32, 0.04);

  --radius: 14px;
  --radius-sm: 10px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Hiragino Sans GB", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f14;
    --surface: #121920;
    --surface-2: #182029;
    --border: #26323c;
    --border-soft: #1c2530;
    --text: #e7edf1;
    --text-2: #93a5b1;
    --text-3: #5d6e79;
    --info: #6cb6f5;
    --info-strong: #8cc6f7;
    --info-soft: rgba(108, 182, 245, 0.12);
    --stable: #3ddc9a;
    --stable-soft: rgba(61, 220, 154, 0.14);
    --leak: #ff8f4d;
    --leak-soft: rgba(255, 143, 77, 0.14);
    --shadow: none;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.num { font-variant-numeric: tabular-nums; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 248, 249, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
@media (prefers-color-scheme: dark) {
  .topbar { background: rgba(11, 15, 20, 0.8); }
}
.topbar-inner {
  max-width: 920px;
  margin: 0 auto;
  height: 56px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--info) 15%, var(--stable));
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 2px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-top-width: 4px;
}
.crumb-sep { color: var(--text-3); }
.crumb { color: var(--text-2); }

/* ---------- 布局 ---------- */
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero { padding: 48px 0 28px; }
.hero h1 {
  margin: 0 0 8px;
  font-size: 1.9rem;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.hero p {
  margin: 0;
  color: var(--text-2);
  font-size: 1rem;
  max-width: 640px;
}

.badge-privacy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 4px 12px 4px 10px;
  border-radius: 999px;
  background: var(--stable-soft);
  color: var(--stable);
  font-size: 0.85rem;
  font-weight: 500;
}
.badge-privacy svg { width: 14px; height: 14px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section { margin-top: 24px; }
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 600;
}
.section-title small {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-3);
}
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.btn:hover { border-color: var(--text-3); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  height: 46px;
  padding: 0 22px;
  border-color: transparent;
  background: var(--info);
  color: #fff;
  font-size: 1rem;
}
.btn-primary:hover { background: var(--info-strong); border-color: transparent; }
@media (prefers-color-scheme: dark) {
  .btn-primary { color: #0b0f14; }
}
.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--text-2);
  padding: 0 10px;
}
.btn-ghost:hover { color: var(--text); background: var(--surface-2); border-color: transparent; }

/* ---------- 页脚 ---------- */
.footer {
  margin: 56px 0 0;
  padding: 24px 0 40px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-3);
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .hero { padding: 32px 0 20px; }
  .hero h1 { font-size: 1.55rem; }
}
