:root {
  --ink: #14261c;
  --muted: #3f5c4e;
  --soft: #6a8578;
  --paper: #eef6f2;
  --panel: #ffffff;
  --line: rgba(20, 38, 28, 0.12);
  --accent: #1b5e45;
  --accent-deep: #0e3d2e;
  --accent-soft: #d7efe4;
  --steel: #244034;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Source Sans 3", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(920px 440px at 6% -10%, rgba(27, 94, 69, 0.12), transparent 56%),
    radial-gradient(720px 380px at 100% 8%, rgba(14, 61, 46, 0.08), transparent 52%),
    linear-gradient(180deg, #e4f0ea 0%, var(--paper) 40%, #e8f2ec 100%);
  line-height: 1.65;
}

a { color: var(--accent); }
code, .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--accent-soft);
  padding: 0.08em 0.35em;
  border-radius: 4px;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 18px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(238, 246, 242, 0.9);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}
.brand-link {
  text-decoration: none;
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 0.95rem;
}
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.toc a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.toc a:hover { color: var(--accent-deep); }

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(14, 61, 46, 0.97), rgba(27, 94, 69, 0.88)),
    radial-gradient(700px 340px at 88% 8%, rgba(180, 220, 200, 0.22), transparent 55%);
  color: #f3faf6;
  padding: clamp(44px, 8vw, 88px) 0 52px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 70%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  margin: 0 0 10px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(243, 250, 246, 0.72);
  font-weight: 600;
}
.brand {
  margin: 0 0 14px;
  font-family: "Fraunces", "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(2.4rem, 6.4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.headline {
  margin: 0 0 14px;
  max-width: 36ch;
  font-size: clamp(1.25rem, 3.2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.35;
}
.lead {
  margin: 0 0 22px;
  max-width: 54ch;
  color: rgba(243, 250, 246, 0.88);
  font-size: 1.02rem;
}
.hero-creds {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 32, 22, 0.28);
  border-radius: 10px;
  max-width: 720px;
}
.hero-creds p { margin: 0 0 8px; }
.hero-creds p:last-child { margin-bottom: 0; }
.hero-creds code {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: #f4faf7;
  color: var(--accent-deep);
}
.btn-primary:hover { background: #fff; }
.btn-ghost {
  background: transparent;
  color: #f4faf7;
  border-color: rgba(244, 250, 247, 0.35);
}
.btn-ghost:hover {
  border-color: rgba(244, 250, 247, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

.section {
  padding: clamp(36px, 6vw, 64px) 0;
  max-width: 960px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.section h2 {
  margin: 0 0 10px;
  font-family: "Fraunces", "Noto Serif SC", serif;
  font-size: clamp(1.55rem, 3.5vw, 2rem);
  letter-spacing: -0.01em;
  color: var(--accent-deep);
}
.section-lead {
  margin: 0 0 24px;
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.feature-grid,
.module-grid,
.link-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.feature-grid article,
.module-grid article,
.link-grid > div,
.account-block,
.tip-box,
.flow-board {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 16px 14px;
  box-shadow: 0 8px 24px rgba(20, 38, 28, 0.04);
}
.feature-grid h3,
.module-grid h4,
.link-grid h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: var(--accent-deep);
}
.feature-grid p,
.module-grid p,
.link-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.flow-board { margin-top: 18px; }
.flow-title {
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--accent-deep);
}
.flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.flow-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--steel);
}
.flow-steps span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.85rem;
}
.flow-note {
  margin: 12px 0 0;
  color: var(--soft);
  font-size: 0.9rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.chip {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 650;
}

.tour-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.tour-steps > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.tour-num {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-deep);
  color: #f4faf7;
  font-weight: 700;
  font-family: "Fraunces", serif;
}
.tour-steps strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-deep);
}
.tour-steps p { margin: 0 0 6px; color: var(--muted); }
.tour-account { font-size: 0.92rem !important; }

.tip-box {
  margin-top: 14px;
  border-left: 3px solid var(--accent);
}
.tip-box strong { color: var(--accent-deep); }

.table-scroll { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.92rem;
}
thead th {
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 700;
}
tr:last-child td, tr:last-child th { border-bottom: none; }

.account-block { margin-top: 16px; }
.account-block h4 {
  margin: 0 0 10px;
  color: var(--accent-deep);
}
.account-block table { border: none; box-shadow: none; }

.cta-section .link-grid { margin-bottom: 16px; }

.footer {
  padding: 28px 0 40px;
  color: var(--soft);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

@media (max-width: 640px) {
  .headline { max-width: none; }
  .tour-steps > li { grid-template-columns: 1fr; }
}
