:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-soft: #f0f3f3;
  --ink: #152b45;
  --ink-2: #3f5065;
  --muted: #6c7a8b;
  --line: #dfe4e7;
  --line-strong: #cbd4d9;
  --primary: #137f79;
  --primary-dark: #0d6561;
  --primary-soft: #e6f3f1;
  --navy-soft: #eaf0f5;
  --warning: #8b5e19;
  --warning-soft: #fff6e6;
  --radius: 14px;
  --shadow: 0 12px 36px rgba(21, 43, 69, .07);
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.35; letter-spacing: -.02em; }
p { color: var(--ink-2); }
a:focus-visible {
  outline: 3px solid rgba(19, 127, 121, .28);
  outline-offset: 4px;
  border-radius: 3px;
}
::selection { background: #cce8e4; }

.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  z-index: 100;
  padding: 9px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--primary-dark);
}
.skip-link:focus { top: 12px; }
.guide-container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }
.guide-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(203, 212, 217, .8);
  background: rgba(246, 245, 241, .96);
  backdrop-filter: blur(14px);
}
.guide-header-inner { display: flex; align-items: center; min-height: 74px; gap: 28px; }
.guide-brand { flex: 0 0 auto; }
.guide-brand img { width: 153px; height: 42px; }
.guide-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.guide-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 14px;
  white-space: nowrap;
}
.guide-nav a:hover, .guide-nav a[aria-current="page"] { color: var(--primary-dark); background: var(--primary-soft); }
.guide-nav .nav-cta { margin-left: 6px; color: #fff; background: var(--primary); }
.guide-nav .nav-cta:hover { color: #fff; background: var(--primary-dark); }

.guide-main { min-height: calc(100vh - 210px); }
.guide-hero { max-width: 880px; padding: 52px 0 36px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; color: var(--muted); font-size: 13px; }
.breadcrumbs a:hover { color: var(--primary-dark); }
.breadcrumbs .separator { color: #a0aab4; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--primary); }
.guide-hero h1 { max-width: 850px; margin-bottom: 18px; font-size: clamp(32px, 4.6vw, 48px); font-weight: 750; letter-spacing: -.04em; }
.guide-deck { max-width: 760px; margin-bottom: 18px; color: var(--ink-2); font-size: 18px; line-height: 1.85; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 13px; }

.article-shell {
  max-width: 880px;
  margin-bottom: 34px;
  padding: 48px 58px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 3px 14px rgba(21, 43, 69, .025);
}
.article-content { font-size: 16px; line-height: 1.95; }
.article-content h2 { margin: 44px 0 16px; padding-top: 4px; font-size: 25px; }
.article-content h2:first-child { margin-top: 0; }
.article-content h3 { margin: 28px 0 12px; font-size: 19px; }
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol { margin: 0 0 22px; padding-left: 1.5em; color: var(--ink-2); }
.article-content li { margin-bottom: 9px; padding-left: 4px; }
.article-content li::marker { color: var(--primary); font-weight: 700; }
.article-content strong { color: var(--ink); font-weight: 700; }
.article-content a:not(.button) { color: var(--primary-dark); text-decoration: underline; text-decoration-color: #a7cec9; text-underline-offset: 4px; }
.article-content a:not(.button):hover { text-decoration-color: var(--primary-dark); }
.article-content section:last-child > :last-child { margin-bottom: 0; }
.lead { color: var(--ink); font-size: 18px; line-height: 1.9; }
.callout { margin: 26px 0; padding: 20px 22px; border-left: 3px solid var(--primary); border-radius: 0 10px 10px 0; background: var(--primary-soft); }
.callout > :last-child { margin-bottom: 0; }
.callout p { color: #355e5b; }
.callout strong { color: var(--primary-dark); }
.callout-neutral { border-left-color: #8195a8; background: var(--navy-soft); }
.callout-neutral p { color: var(--ink-2); }
.callout-neutral strong { color: var(--ink); }
.check-list { padding-left: 0 !important; list-style: none; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: "";
  position: absolute;
  top: .68em;
  left: 3px;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--primary);
  border-radius: 3px;
  background: var(--primary-soft);
}
.number-list { padding-left: 0 !important; list-style: none; counter-reset: item; }
.number-list li { position: relative; min-height: 30px; padding-left: 42px; counter-increment: item; }
.number-list li::before {
  content: counter(item);
  position: absolute;
  top: .12em;
  left: 0;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 13px;
  font-weight: 700;
}
.table-scroll { margin: 24px 0 28px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
th { color: var(--ink); background: #f3f6f5; font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td { color: var(--ink-2); }
.demo-banner { margin-bottom: 28px; padding: 14px 18px; border: 1px solid #ead5ad; border-radius: 10px; color: #76521d; background: var(--warning-soft); font-size: 14px; }
.demo-banner p { margin: 0; color: inherit; }
.report-card { margin: 24px 0 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fcfdfc; }
.report-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.report-card-head strong { font-size: 16px; }
.report-level { padding: 3px 10px; border-radius: 20px; color: var(--warning); background: var(--warning-soft); font-size: 12px; font-weight: 700; }
.report-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.report-metric { padding: 22px; background: var(--surface); }
.report-metric span { display: block; color: var(--muted); font-size: 12px; }
.report-metric strong { display: block; margin: 5px 0; color: var(--primary-dark); font-size: 30px; }
.report-metric small { color: var(--muted); }
.segment { padding: 18px 20px; border-top: 1px solid var(--line); }
.segment-label { display: inline-block; margin-bottom: 8px; padding: 2px 8px; border-radius: 5px; color: var(--primary-dark); background: var(--primary-soft); font-size: 12px; font-weight: 700; }
.segment-label.review { color: var(--warning); background: var(--warning-soft); }
.segment p { margin: 0; font-size: 14px; }
.segment small { display: block; margin-top: 8px; color: var(--muted); }

.related-guides { max-width: 880px; margin-bottom: 34px; padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .5); }
.related-guides h2 { margin-bottom: 14px; font-size: 19px; }
.related-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; }
.related-links a { color: var(--primary-dark); font-size: 14px; }
.related-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.guide-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 880px;
  margin-bottom: 64px;
  padding: 30px 34px;
  border-radius: 16px;
  color: #fff;
  background: var(--ink);
}
.guide-cta h2 { margin-bottom: 7px; font-size: 23px; }
.guide-cta p { margin: 0; color: #c6d1dc; font-size: 14px; }
.guide-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 10px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.button-primary { color: #fff; background: var(--primary); }
.button-primary:hover { background: #1a918a; }
.button-secondary { color: #fff; border-color: #5b6c7e; background: transparent; }
.button-secondary:hover { border-color: #91a2b3; background: rgba(255, 255, 255, .06); }

.index-hero { max-width: 860px; padding: 66px 0 44px; }
.index-hero h1 { margin-bottom: 20px; font-size: clamp(36px, 5vw, 52px); letter-spacing: -.04em; }
.index-hero .guide-deck { max-width: 720px; }
.guide-index-section { padding-bottom: 64px; }
.guide-index-section h2 { margin-bottom: 22px; font-size: 25px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.guide-card { display: flex; flex-direction: column; min-height: 250px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.guide-card:hover { border-color: #b5cfcb; box-shadow: var(--shadow); transform: translateY(-2px); }
.guide-card-number { margin-bottom: 20px; color: var(--primary); font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.guide-card h3 { margin-bottom: 12px; font-size: 21px; }
.guide-card p { margin-bottom: 22px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.guide-card-link { margin-top: auto; color: var(--primary-dark); font-size: 14px; font-weight: 700; }
.guide-card-link::after { content: " →"; }
.reading-path { margin-top: 34px; padding: 24px 28px; border-left: 3px solid var(--primary); border-radius: 0 12px 12px 0; background: var(--primary-soft); }
.reading-path h2 { margin-bottom: 10px; font-size: 20px; }
.reading-path p { margin: 0; color: #355e5b; }
.index-cta { max-width: none; margin-bottom: 64px; }

.guide-footer { border-top: 1px solid var(--line); background: #eef0ed; }
.guide-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 26px; padding-bottom: 26px; }
.guide-footer-brand { display: flex; align-items: center; gap: 14px; }
.guide-footer-brand img { width: 124px; }
.guide-footer p { margin: 0; color: var(--muted); font-size: 12px; }
.guide-footer nav { display: flex; flex-wrap: wrap; gap: 18px; color: var(--ink-2); font-size: 13px; }
.guide-footer nav a:hover { color: var(--primary-dark); }

@media (max-width: 760px) {
  .guide-container { width: min(100% - 32px, var(--container)); }
  .guide-header-inner { min-height: 66px; gap: 12px; }
  .guide-brand img { width: 132px; height: auto; }
  .guide-nav { gap: 2px; }
  .guide-nav a { padding: 7px 9px; font-size: 13px; }
  .guide-nav .nav-cta { margin-left: 2px; }
  .guide-hero { padding: 36px 0 26px; }
  .breadcrumbs { margin-bottom: 22px; }
  .guide-hero h1 { font-size: 32px; }
  .guide-deck { font-size: 16px; }
  .article-shell { padding: 30px 24px; border-radius: 14px; }
  .article-content h2 { margin-top: 36px; font-size: 23px; }
  .lead { font-size: 17px; }
  .related-guides { padding: 24px; }
  .related-links { display: grid; gap: 10px; }
  .guide-cta { align-items: flex-start; flex-direction: column; padding: 26px 24px; }
  .guide-actions { width: 100%; }
  .guide-actions .button { flex: 1; white-space: nowrap; }
  .index-hero { padding: 44px 0 32px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 0; padding: 24px; }
  .guide-footer-inner { align-items: flex-start; flex-direction: column; gap: 18px; }
}

@media (max-width: 420px) {
  .guide-nav a:first-child { display: none; }
  .report-metrics { grid-template-columns: 1fr; }
  th, td { padding: 12px; }
  .guide-actions { flex-direction: column; }
  .guide-actions .button { width: 100%; }
}

@media print {
  .guide-header, .breadcrumbs, .related-guides, .guide-cta, .guide-footer { display: none; }
  body { background: #fff; }
  .guide-container { width: 100%; }
  .guide-hero { padding: 0 0 20px; }
  .article-shell { max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; }
}
