:root {
  --brand: #0B4EA2;
  --brand-deep: #062F63;
  --brand-soft: #F2F7FE;
  --brand-line: #DCE6F2;
  --gold: #F5B400;
  --gold-soft: #FFF6DF;
  --ink: #1A2433;
  --ink-2: #5A6675;
  --white: #FFFFFF;
  --radius: 14px;
  --radius-lg: 20px;
  --wrap: 1200px;
  --shadow: 0 6px 24px rgba(11, 78, 162, .07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--brand-line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 76px;
}
.brand img { width: 168px; }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink); font-size: 15px; padding: 8px 10px; border-radius: 8px;
  white-space: nowrap;
}

.site-nav a.nav-shop {
  background: var(--brand); color: #fff; font-weight: 600; margin-left: 4px;
}

.site-nav a.nav-shop:hover,
.site-nav a.nav-shop[aria-current="page"] { background: #093E82; color: #fff; text-decoration: none; }
.site-nav a:hover { background: var(--brand-soft); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--brand); font-weight: 600; background: var(--brand-soft); }
.nav-toggle {
  display: none; background: var(--brand); color: #fff; border: 0;
  border-radius: 10px; padding: 10px 18px; cursor: pointer;
}

/* hero */
.hero { padding: 28px 0 0; }
.hero figure { margin: 0; }
.hero img { width: 100%; border-radius: var(--radius-lg); }
.hero-caption {
  padding: 34px 0 10px;
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end;
}
.hero h1 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.35; margin: 0 0 12px; letter-spacing: -.5px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 720px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag {
  font-size: 14px; color: var(--brand); background: var(--brand-soft);
  border: 1px solid var(--brand-line); border-radius: 999px; padding: 5px 14px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* generic sections */
section { padding: 72px 0; }
section.tinted { background: var(--brand-soft); }
.sec-head { margin-bottom: 36px; max-width: 780px; }
.sec-kicker {
  display: inline-block; font-size: 13px; letter-spacing: 2px; color: var(--brand);
  font-weight: 600; margin-bottom: 8px;
}
.sec-head h2 { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.4; margin: 0 0 12px; }
.sec-head p { margin: 0; color: var(--ink-2); }
.hl { color: var(--brand); }
.hl-gold { color: #A97400; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--brand-line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 10px; font-size: 19px; color: var(--brand-deep); }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft);
  color: var(--brand); font-weight: 700; font-size: 15px; margin-bottom: 14px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 26px; border-radius: 10px;
  font-weight: 600; font-size: 16px; border: 1px solid transparent;
  cursor: pointer; text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); text-decoration: none; }
.btn-gold { background: var(--gold); color: #3A2800; }
.btn-gold:hover { background: #FFC933; text-decoration: none; }

/* diagram */
.diagram { width: 100%; height: auto; display: block; }
.diagram-wrap {
  background: #fff; border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg); padding: 24px;
}

/* steps */
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.step {
  position: relative; background: #fff; border: 1px solid var(--brand-line);
  border-radius: var(--radius); padding: 22px 16px;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; color: var(--brand); font-weight: 700; font-size: 20px; margin-bottom: 10px;
}
.step h3 { font-size: 16px; margin: 0 0 6px; }
.step p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* compare table */
.table-scroll { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; min-width: 620px; background: #fff; }
table.compare th, table.compare td {
  border: 1px solid var(--brand-line); padding: 14px 18px; text-align: left; font-size: 15px;
}
table.compare thead th { background: var(--brand); color: #fff; font-weight: 600; }
table.compare tbody th { background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; width: 22%; }
table.compare td:last-child { color: var(--brand-deep); font-weight: 600; }

/* category list */
.cat-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cat-item {
  background: #fff; border: 1px solid var(--brand-line); border-left: 4px solid var(--brand);
  border-radius: 10px; padding: 16px 20px; font-weight: 600;
}
.cat-item small { display: block; font-weight: 400; color: var(--ink-2); font-size: 13px; margin-top: 2px; }

/* notice */
.notice {
  background: var(--gold-soft); border: 1px solid #F0D89A; border-left: 4px solid var(--gold);
  border-radius: 10px; padding: 16px 20px; font-size: 14px; color: #6B4E00; margin-top: 28px;
}
.notice strong { color: #4A3600; }

/* cta band */
.cta-band { background: var(--brand-deep); color: #fff; padding: 56px 0; }
.cta-band h2 { margin: 0 0 10px; font-size: clamp(24px, 2.6vw, 32px); }
.cta-band p { margin: 0 0 24px; color: #C9DDF5; }
.cta-band .btn-ghost { background: #fff; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }

/* article list + prose */
.article-list { display: grid; gap: 16px; }
.article-item {
  display: block; background: #fff; border: 1px solid var(--brand-line);
  border-radius: var(--radius); padding: 24px 26px;
}
.article-item:hover { border-color: var(--brand); text-decoration: none; }
.article-item .meta { color: var(--ink-2); font-size: 13px; }
.article-item h3 { margin: 6px 0 8px; font-size: 20px; color: var(--brand-deep); }
.article-item p { margin: 0; color: var(--ink-2); font-size: 15px; }
.prose { max-width: 760px; margin-inline: auto; }
.prose h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.4; margin: 0 0 12px; }
.prose .meta { color: var(--ink-2); font-size: 14px; border-bottom: 1px solid var(--brand-line); padding-bottom: 18px; margin-bottom: 32px; }
.prose h2 { font-size: 23px; margin: 36px 0 12px; color: var(--brand-deep); }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 20px; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  margin: 24px 0; padding: 16px 20px; background: var(--brand-soft);
  border-left: 4px solid var(--brand); border-radius: 0 10px 10px 0; color: var(--brand-deep);
}
.breadcrumb { font-size: 14px; color: var(--ink-2); margin: 24px 0 0; }
.breadcrumb a { color: var(--ink-2); }

/* form */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--brand-line);
  border-radius: 10px; background: #fff; color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.field.invalid input, .field.invalid select { border-color: #C0392B; background: #FFF6F5; }
.field .err { color: #C0392B; font-size: 13px; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.form-status { margin-top: 18px; font-size: 14px; border-radius: 10px; padding: 14px 18px; display: none; }
.form-status.show { display: block; }
.form-status.warn { background: var(--gold-soft); border: 1px solid #F0D89A; color: #6B4E00; }
.form-status.error { background: #FFF6F5; border: 1px solid #E9B7B1; color: #9B2C20; }
.form-status.ok { background: #EEF7F1; border: 1px solid #BFE0CB; color: #1B6B3A; }
.form-status.pending { background: #EEF3FB; border: 1px solid #C9DCF3; color: #0B4EA2; }
.form-note { font-size: 13px; color: var(--ink-2); margin-top: 14px; }

/* footer */
.site-footer { background: #F7FAFE; border-top: 1px solid var(--brand-line); padding: 48px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer h3 { font-size: 16px; margin: 0 0 14px; color: var(--brand-deep); }
.site-footer p, .site-footer li { font-size: 14px; color: var(--ink-2); margin: 0 0 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-logo { width: 150px; margin-bottom: 16px; }
.footer-qr { width: 108px; border-radius: 8px; border: 1px solid var(--brand-line); }
.footer-bottom {
  border-top: 1px solid var(--brand-line); margin-top: 32px; padding-top: 20px;
  font-size: 13px; color: var(--ink-2);
}
.footer-bottom .disclaimer { margin-top: 8px; line-height: 1.7; }

/* responsive */
@media (max-width: 1000px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-list, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  section { padding: 48px 0; }
  .header-inner { min-height: 64px; flex-wrap: wrap; }
  .brand img { width: 138px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 14px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; border-bottom: 1px solid var(--brand-line); }
  .hero-caption { grid-template-columns: 1fr; gap: 18px; padding-top: 24px; }
  .grid-2, .grid-3, .grid-4, .grid-5, .cat-list, .form-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .diagram-wrap { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Language switch (added for the English edition) */
.nav-lang {
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  color: var(--brand) !important;
  padding: 6px 12px !important;
  font-weight: 600;
}

/* Punctuation-aware Chinese line breaking (paired with js/site.js).
   Each .clause is an atomic inline box, so a line can only wrap after a
   full stop, comma, semicolon or colon - never inside a word. */
.clause { display: inline-block; max-width: 100%; vertical-align: baseline; }
main p, main li, main dd { text-wrap: pretty; }

/* --- English edition --- */
body { font-family: "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif; letter-spacing: .005em; }
.site-nav { gap: 2px; }
.site-nav a { font-size: 14px; padding: 8px 9px; }
.brand img { width: 152px; }
.nav-lang { border: 1px solid var(--brand-line); border-radius: 999px; color: var(--brand) !important; }
.prose h1 { font-size: clamp(28px, 3.4vw, 42px); margin: 0 0 12px; }
.prose h2 { margin-top: 36px; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border-bottom: 1px solid var(--brand-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--brand-soft); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hero figure { margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
