@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Noto+Sans+SC:wght@400;500;700&display=swap");

:root {
  --bg0: #eef6f2;
  --bg1: #f7fbf9;
  --ink: #12261f;
  --muted: #5b7268;
  --line: #d3e4db;
  --card: rgba(255, 255, 255, 0.92);
  --card-solid: #ffffff;
  --accent: #0d7a6f;
  --accent-2: #128f82;
  --accent-soft: #d7f3ee;
  --danger: #c23b3b;
  --danger-soft: #fdeceb;
  --warn: #c56a12;
  --warn-soft: #fff4e8;
  --ok: #1b8a4a;
  --ok-soft: #e6f7ed;
  --info: #2f6fed;
  --info-soft: #e8f0ff;
  --shadow: 0 10px 28px rgba(18, 38, 31, 0.06);
  --shadow-lg: 0 18px 48px rgba(18, 38, 31, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --sans: "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 880px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1000px 520px at 8% -12%, #c8efe4 0%, transparent 58%),
    radial-gradient(820px 420px at 96% 0%, #dce9ff 0%, transparent 52%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  background-attachment: fixed;
  min-height: 100vh;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 16px 64px;
}

/* Top nav */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(247, 251, 249, 0.88);
  border-bottom: 1px solid var(--line);
}
.topnav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.brand {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { text-decoration: none; color: var(--accent); }
.topnav a.navlink {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
}
.topnav a.navlink:hover,
.topnav a.navlink.active {
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

/* 顶栏「购买套餐」：描边+浅底，避免实心深绿像「当前页」 */
.topnav a.navlink.nav-cta {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  padding: 6px 13px;
  font-weight: 700;
  box-shadow: none;
}
.topnav a.navlink.nav-cta:hover {
  color: #0a665c;
  background: #d4efe8;
  text-decoration: none;
}
/* 仅在购买套餐页（带 .active）时用实心主色 */
.topnav a.navlink.nav-cta.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(13, 122, 111, 0.28);
}

/* Hero / page title */
.hero {
  margin: 28px 0 22px;
}
.hero .badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.hero .lead {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin: 0 0 16px;
}
.card h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card h3 {
  margin: 18px 0 8px;
  font-size: 15px;
  font-weight: 700;
}
.card p { margin: 0 0 10px; }
.card ul, .card ol { margin: 0 0 10px; padding-left: 1.35em; }
.card li { margin-bottom: 6px; }
.card li:last-child { margin-bottom: 0; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

/* Callouts */
.callout {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 12px 0;
  font-size: 14px;
  border: 1px solid transparent;
}
.callout strong { font-weight: 700; }
.callout.info { background: var(--info-soft); border-color: #c5d6ff; color: #1a3d8f; }
.callout.warn { background: var(--warn-soft); border-color: #f0d2a8; color: #7a3f0a; }
.callout.ok { background: var(--ok-soft); border-color: #b7e4c7; color: #0f5c30; }
.callout.danger { background: var(--danger-soft); border-color: #f0c0c0; color: #8a2222; }
.callout.soft { background: var(--accent-soft); border-color: #b8e5dc; color: #0a524a; }

/* Platform tabs / pills */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #e8f0ec;
  color: var(--muted);
}
.pill.win { background: #e8f0ff; color: #2f6fed; }
.pill.mac { background: #f0e8ff; color: #6b3fa0; }

/* Figures / placeholders */
.figure {
  margin: 14px 0;
  text-align: center;
}
.figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}
.figure .cap {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 24px 16px;
  border: 2px dashed #b7cdc4;
  border-radius: var(--radius-sm);
  background: #f2f7f4;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  gap: 6px;
}
.placeholder .ph-title {
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
}
.placeholder .ph-hint { font-size: 12px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 10px 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}
tr:last-child td { border-bottom: none; }
code, .mono {
  font-family: var(--mono);
  font-size: 0.9em;
  background: #e8f0ec;
  padding: 1px 6px;
  border-radius: 4px;
}

/* Download cards */
.dl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .dl-grid { grid-template-columns: 1fr 1fr; }
}
.dl-card {
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  align-items: stretch;
}
.dl-card h3 { margin: 0; font-size: 17px; }
.dl-card .meta { font-size: 13px; color: var(--muted); margin: 0; }
.dl-card .btn-block { margin-top: auto; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: #fff !important;
}
.btn-primary:hover { background: #0a665c; }
.btn-ghost {
  background: var(--accent-soft);
  color: var(--accent) !important;
}
.btn-ghost:hover { background: #c5ebe3; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* TOC / index cards */
.index-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 560px) {
  .index-grid { grid-template-columns: 1fr 1fr; }
}
.index-card {
  display: block;
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.index-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: #a8d4c8;
}
.index-card .ic-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}
.index-card h2 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--ink);
}
.index-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}


/* Usage overview flowchart */
.flow-overview {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px 16px;
  margin: 0 0 16px;
}
.flow-overview > h2 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
}
.flow-overview > .flow-hint {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
}
.flow-track {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}
.flow-track > li {
  display: flex;
  align-items: center;
  margin: 0;
  flex: 1 1 118px;
  min-width: 100px;
  gap: 0;
}
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  flex: 1;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid #b8e5dc;
  min-height: 88px;
  justify-content: center;
}
.flow-step .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.flow-step .t {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.flow-arrow {
  flex: 0 0 20px;
  text-align: center;
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
  user-select: none;
  line-height: 1;
}
.flow-last .flow-arrow { display: none; }
@media (max-width: 720px) {
  .flow-track {
    flex-direction: column;
  }
  .flow-track > li {
    flex: none;
    width: 100%;
    flex-direction: column;
  }
  .flow-step { min-height: 0; width: 100%; }
  .flow-arrow {
    flex-basis: auto;
    padding: 4px 0;
    transform: rotate(90deg);
  }
  .flow-last .flow-arrow { display: none; }
}

/* Anchor nav inside page */
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.toc a {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
}
.toc a:hover { color: var(--accent); border-color: var(--accent); }

.footer {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

@media (max-width: 480px) {
  .hero h1 { font-size: 22px; }
  .card { padding: 16px; }
  .wrap { padding: 16px 12px 48px; }
}
