/* PocketLedger 静态站共享样式 — index / privacy / terms 三页统一 */

:root {
  --accent: #1AAD6E;
  --accent-dark: #0C7A4D;
  --accent-light: #22BD7B;
  --ink: #1D2027;
  --ink-muted: #6B707A;
  --bg: #FAFBFC;
  --surface: #FFFFFF;
  --rule: #E5E8EE;
  --hero-from: #14331E;
  --hero-mid: #0F1C18;
  --hero-to: #050709;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
               "Microsoft YaHei", "Helvetica Neue", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

/* ─── Top nav ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 251, 252, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.005em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 30% 25%, #294f3a 0%, var(--hero-mid) 60%, var(--hero-to) 100%);
  position: relative;
  display: inline-block;
}
.brand-mark::after {
  content: '¥';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-weight: 700;
  font-size: 17px;
  font-family: "Helvetica Neue", sans-serif;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a.active,
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent-dark); }

/* ─── Generic container ──────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 32px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.16s, box-shadow 0.16s, background 0.16s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: var(--hero-from);
  box-shadow: 0 12px 28px rgba(26, 173, 110, 0.32);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(26, 173, 110, 0.42);
}
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ─── Footer (shared) ────────────────────────────────── */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 24px 40px;
  margin-top: 96px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand .brand { color: #fff; }
.footer-brand .brand-mark::after { color: var(--accent-light); }
.footer-brand p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.6;
  max-width: 280px;
}
.footer h4 {
  color: #fff;
  font-size: 12px;
  letter-spacing: 1.8px;
  margin-bottom: 14px;
  text-transform: uppercase;
  font-weight: 600;
}
.footer a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  display: block;
  margin: 6px 0;
  font-size: 14px;
  transition: color 0.15s;
}
.footer a:hover { color: #fff; }
.footer-bottom {
  max-width: 1120px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 8px;
}

/* ─── Article (privacy / terms 共用) ─────────────────── */
.article {
  max-width: 800px;
  margin: 0 auto;
  padding: 72px 24px 24px;
}
.article-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2.4px;
  color: var(--accent-dark);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.article > h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  line-height: 1.2;
}
.article .meta {
  color: var(--ink-muted);
  font-size: 14px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 28px;
  margin-bottom: 44px;
}
.article h2 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 56px;
  margin-bottom: 14px;
  padding-top: 20px;
  position: relative;
  scroll-margin-top: 80px;
}
.article h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.article h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 10px;
  color: var(--ink);
}
.article p { margin: 14px 0; color: var(--ink); }
.article ul, .article ol { margin: 14px 0 14px 24px; }
.article li { margin: 8px 0; }
.article a {
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(12, 122, 77, 0.3);
  transition: border-bottom-color 0.15s;
}
.article a:hover { border-bottom-color: var(--accent-dark); }
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.article th {
  background: rgba(26, 173, 110, 0.08);
  color: var(--accent-dark);
  font-weight: 600;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}
.article td {
  padding: 12px 14px;
  border-top: 1px solid var(--rule);
  vertical-align: top;
  font-size: 14px;
}
.article tbody tr:nth-child(even) td {
  background: rgba(245, 247, 250, 0.5);
}
.article blockquote {
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  background: rgba(26, 173, 110, 0.05);
  color: var(--ink-muted);
  margin: 18px 0;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
}
.article blockquote p { margin: 6px 0; }
.article code {
  font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(26, 173, 110, 0.08);
  color: var(--accent-dark);
  padding: 2px 7px;
  border-radius: 4px;
}
.article hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 40px 0;
}
.article strong { color: var(--ink); font-weight: 600; }

/* ─── Mobile ─────────────────────────────────────────── */
@media (max-width: 720px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
  .nav-cta { padding: 6px 14px; font-size: 12px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .article { padding: 48px 20px 20px; }
  .article > h1 { font-size: 30px; }
  .article h2 { font-size: 20px; margin-top: 40px; }
  .article table { font-size: 13px; }
  .article th, .article td { padding: 9px 10px; }
}
