*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --ink: #0f172a;
  --accent: #FE2C55;
  --accent-dark: #D4244A;
  --text: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #ffffff;
  --wash: #f8fafc;
  --green: #16a34a;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.05);
}
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.g-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.num, .g-en { font-family: "Inter", "PingFang SC", sans-serif; }

.g-header {
  background: var(--ink);
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.g-head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 60px;
}
.g-brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 800; letter-spacing: .01em; }
.g-brand:hover { text-decoration: none; }
.g-brand img { width: 26px; height: 26px; border-radius: 6px; }
.g-nav { display: flex; align-items: center; gap: 18px; }
.g-nav a { color: rgba(255,255,255,.72); font-size: .9rem; }
.g-nav a:hover { color: #fff; text-decoration: none; }
.g-head-actions { display: flex; align-items: center; gap: 12px; }
.g-lang {
  display: inline-flex; gap: 2px; padding: 2px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 8px;
}
.g-lang a, .g-lang span {
  display: inline-block; padding: 3px 9px; border-radius: 6px;
  font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.64);
}
.g-lang .active { background: var(--accent); color: #fff; }
.g-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: .9rem;
  padding: 9px 16px; border-radius: 8px; white-space: nowrap;
}
.g-cta:hover { background: var(--accent-dark); text-decoration: none; }

.g-crumbs { background: var(--wash); border-bottom: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.g-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 9px 0; }
.g-crumbs li + li::before { content: "/"; margin-right: 6px; color: #cbd5e1; }
.g-crumbs a { color: var(--muted); }
.g-crumbs a:hover { color: var(--accent); }

.g-hero { padding: 48px 0 28px; border-bottom: 1px solid var(--line); }
.g-kicker {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  color: var(--accent); background: rgba(254,44,85,.08); border-radius: 999px;
  padding: 4px 12px; margin-bottom: 14px;
}
.g-h1 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); line-height: 1.3; font-weight: 800; color: var(--ink); text-wrap: balance; }
.g-nowrap { white-space: nowrap; }
.g-lede { margin-top: 14px; font-size: 1.05rem; color: var(--muted); max-width: 800px; }
.g-answer {
  margin-top: 22px; padding: 18px 20px;
  background: var(--wash); border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0;
  font-size: 1rem; color: var(--text);
}
.g-answer strong { color: var(--ink); }
.g-meta { margin-top: 18px; font-size: .8rem; color: #94a3b8; }

.g-layout { display: grid; grid-template-columns: minmax(0, 1fr) 248px; gap: 44px; padding: 40px 0 24px; align-items: start; }
.g-doc { min-width: 0; }
.g-doc section { margin-bottom: 40px; scroll-margin-top: 84px; }
.g-doc h2 {
  font-size: clamp(1.22rem, 2.2vw, 1.5rem); color: var(--ink); font-weight: 800;
  line-height: 1.4; margin-bottom: 14px; padding-bottom: 9px; border-bottom: 1px solid var(--line);
}
.g-doc h3 { font-size: 1.05rem; color: var(--ink); font-weight: 700; margin: 24px 0 8px; }
.g-doc p { margin-bottom: 12px; }
.g-doc ul, .g-doc ol { margin: 0 0 14px 22px; }
.g-doc li { margin-bottom: 6px; }
.g-doc strong { color: var(--ink); }
.g-doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em; background: var(--wash); border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 5px;
}

.g-toc {
  position: sticky; top: 80px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; background: var(--wash);
}
.g-toc-title { font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.g-toc ol { list-style: none; margin: 0; }
.g-toc li { margin: 0 0 7px; font-size: .86rem; line-height: 1.5; }
.g-toc a { color: var(--text); }
.g-toc a:hover { color: var(--accent); }

.g-table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: .9rem; }
.g-table th, .g-table td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
.g-table th { background: var(--wash); color: var(--ink); font-weight: 700; }
.g-table td strong { color: var(--ink); }
.g-table-note { font-size: .8rem; color: var(--muted); margin-top: -8px; }

.g-callout {
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  background: var(--wash); border-radius: 0 10px 10px 0;
  padding: 14px 18px; margin: 16px 0; font-size: .94rem;
}
.g-callout strong { color: var(--ink); }
.g-callout.green { border-left-color: var(--green); }

.g-steps { list-style: none; margin: 8px 0 18px; counter-reset: step; }
.g-steps > li {
  position: relative; padding: 0 0 18px 46px; counter-increment: step;
}
.g-steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 2px; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; font-weight: 700; font-size: .85rem;
  border-radius: 8px;
}
.g-steps > li:not(:last-child)::after {
  content: ""; position: absolute; left: 13px; top: 34px; bottom: 4px; width: 2px; background: var(--line);
}
.g-steps strong { display: block; color: var(--ink); }

.g-faq details {
  border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: #fff;
}
.g-faq summary {
  cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
}
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: "+"; color: var(--accent); font-weight: 700; flex: 0 0 auto; }
.g-faq details[open] summary::after { content: "−"; }
.g-faq .g-faq-body { padding: 0 18px 15px; color: var(--text); font-size: .94rem; }
.g-faq .g-faq-body p { margin-bottom: 8px; }
.g-faq .g-faq-body p:last-child { margin-bottom: 0; }

.g-cta-box {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink);
  color: #fff; padding: 30px 26px; margin: 8px 0 36px;
}
.g-cta-box h2 { color: #fff; font-size: 1.3rem; margin-bottom: 8px; }
.g-cta-box p { color: rgba(255,255,255,.74); font-size: .94rem; margin-bottom: 16px; }
.g-cta-box .g-cta { padding: 11px 22px; }
.g-cta-box .g-cta-note { display: inline-block; margin-left: 12px; font-size: .8rem; color: rgba(255,255,255,.6); }

.g-related { border-top: 1px solid var(--line); padding-top: 26px; }
.g-related h2 { border: 0; padding: 0; }
.g-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.g-related-card {
  display: block; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
  color: var(--text); background: #fff;
}
.g-related-card:hover { border-color: var(--accent); text-decoration: none; }
.g-related-card b { display: block; color: var(--ink); font-size: .95rem; margin-bottom: 4px; }
.g-related-card span { font-size: .82rem; color: var(--muted); }

.g-footer { background: var(--ink); color: rgba(255,255,255,.62); margin-top: 40px; padding: 38px 0 26px; font-size: .86rem; }
.g-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.g-footer h3 { color: #fff; font-size: .9rem; margin-bottom: 10px; font-weight: 700; }
.g-footer p { margin-bottom: 6px; }
.g-footer a { color: rgba(255,255,255,.62); }
.g-footer a:hover { color: #fff; }
.g-footer ul { list-style: none; }
.g-footer li { margin-bottom: 6px; }
.g-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding-top: 16px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  font-size: .78rem; color: rgba(255,255,255,.42);
}

@media (max-width: 960px) {
  .g-layout { grid-template-columns: 1fr; gap: 0; }
  .g-toc { position: static; margin-bottom: 28px; order: -1; }
  .g-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .g-head-inner { flex-wrap: wrap; }
  .g-nav { display: flex; order: 3; width: 100%; gap: 14px; padding: 2px 0 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .g-nav a { font-size: .85rem; }
  .g-head-actions .g-lang { display: inline-flex; }
  .g-hero { padding-top: 34px; }
  .g-related-grid { grid-template-columns: 1fr; }
  .g-table { font-size: .82rem; }
  .g-table th, .g-table td { padding: 7px 8px; }
  .g-footer-grid { grid-template-columns: 1fr; }
}
