@charset "utf-8";

/* ------------------------------------------------------------------ tokens */
:root {
  --bg: #F5F7F9;
  --surface: #FFFFFF;
  --surface-alt: #FAFBFC;
  --head: #E8EFF6;
  --head-ink: #1F4E79;
  --border: #D8E1E8;
  --border-strong: #BAD0E0;
  --text: #2A3238;
  --text-muted: #5F6A74;
  --link: #1F5C8B;
  --link-hover: #B8402B;
  --accent: #B8402B;
  --accent-ink: #FFFFFF;
  --gold: #B98A2E;
  --warn-bg: #FDF3E7;
  --warn-ink: #8A4B12;
  --font: -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC",
    "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --wrap: 1000px;
  --gap: 20px;
  --radius: 2px;
  --shadow: 0 1px 2px rgba(31, 78, 121, 0.08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  padding-bottom: 96px;
  overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

h1 {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
}

h2 {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}

h3 {
  font-size: 18px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--text);
  margin: 18px 0 8px;
}

p { margin: 0 0 13px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin: 0 0 7px; }
b, strong { font-weight: 600; color: var(--text); }
small { font-size: 14px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
details:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 14px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 95;
  background: var(--surface);
  color: var(--link);
  padding: 8px 14px;
}
.skip:focus { left: 8px; top: 8px; }

/* ------------------------------------------------------------- top strip */
.toptb {
  background: var(--head);
  border-bottom: 1px solid var(--border-strong);
  font-size: 14px;
  color: var(--head-ink);
}
.toptb__in {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 36px;
}
.toptb a { color: var(--head-ink); }
.toptb a:hover { color: var(--link-hover); }
.toptb__where { color: var(--head-ink); }

.qm { position: relative; margin-left: auto; }
.qm > summary {
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--head-ink);
  padding: 3px 12px;
  font-size: 14px;
}
.qm > summary::-webkit-details-marker { display: none; }
.qm > summary:hover { background: var(--surface-alt); }
.qm__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 80;
  min-width: 220px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}
.qm__menu li { margin: 0; }
.qm__menu a {
  display: block;
  padding: 7px 16px;
  font-size: 14px;
  color: var(--text);
}
.qm__menu a:hover {
  background: var(--head);
  color: var(--head-ink);
  text-decoration: none;
}

/* ------------------------------------------------------------ brand head */
.hd { background: var(--surface); border-bottom: 1px solid var(--border); }
.hd__in {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 34px; width: auto; }
.brand__note { font-size: 14px; color: var(--text-muted); }

.srch { margin-left: auto; display: flex; gap: 6px; }
.srch__lbl {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.srch input {
  font: inherit;
  font-size: 15px;
  padding: 7px 10px;
  width: 240px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}
.srch input::placeholder { color: var(--text-muted); }
.srch button {
  font: inherit;
  font-size: 15px;
  padding: 7px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--head);
  color: var(--head-ink);
  cursor: pointer;
}
.srch button:hover { background: var(--surface-alt); }

/* --------------------------------------------------------------- main nav */
.nv {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--head);
  border-bottom: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}
.nv__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nv__list li { margin: 0; }
.nv a {
  display: block;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--head-ink);
  border-bottom: 2px solid transparent;
}
.nv a:hover {
  background: var(--surface);
  color: var(--link-hover);
  text-decoration: none;
}
.nv a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* ---------------------------------------------------------------- layout */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--gap);
  align-items: start;
  padding: 0 0 10px;
}
.layout > .crumbs {
  grid-column: 1 / -1;
  margin: 0;
}
.content { min-width: 0; }
.lede {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
  margin: 0 0 18px;
}

.crumbs {
  font-size: 14px;
  color: var(--text-muted);
  padding: 12px 0 0;
}
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--link-hover); }
.crumbs__sep { margin: 0 6px; color: var(--border-strong); }
.crumbs [aria-current="page"] { color: var(--text); }

/* -------------------------------------------------------------- content */
.blk {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 16px;
}
.blk > :last-child { margin-bottom: 0; }
.blk h2 {
  font-size: 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.pts { padding-left: 0; list-style: none; }
.pts li { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.pts li:last-child { border-bottom: 0; }
.pts b { display: block; color: var(--head-ink); }

.defs { margin: 0 0 14px; padding: 0; }
.defs dt {
  font-weight: 600;
  color: var(--head-ink);
  margin: 12px 0 2px;
}
.defs dd { margin: 0; padding-left: 14px; color: var(--text); }

.jump { list-style: none; margin: 0; padding: 0; }
.jump li { margin: 0 0 8px; }
.jump li:last-child { margin-bottom: 0; }
.jump a {
  display: block;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-alt);
}
.jump a:hover {
  border-color: var(--border-strong);
  background: var(--head);
  text-decoration: none;
}
.jump b { display: block; color: var(--link); }
.jump span { display: block; font-size: 14px; color: var(--text-muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(222px, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.cards li { margin: 0; }
.cards a {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-alt);
}
.cards a:hover {
  border-color: var(--border-strong);
  background: var(--head);
  text-decoration: none;
}
.cards b { display: block; color: var(--link); }
.cards span { display: block; font-size: 14px; color: var(--text-muted); }

.grp { margin: 0 0 18px; }
.grp__lead { color: var(--text-muted); font-size: 15px; }

.gl { margin: 0 0 14px; }
.gl h3 { margin: 0 0 4px; color: var(--head-ink); }
.gl__row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.gl__row a {
  display: inline-block;
  padding: 3px 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--head);
  color: var(--head-ink);
  font-size: 14px;
}
.gl__row a:hover {
  background: var(--surface);
  color: var(--link-hover);
  text-decoration: none;
}
.gl__row--tight { gap: 6px; }

/* ---------------------------------------------------------------- tables */
.tblwrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 14px;
  border: 1px solid var(--border);
}
.tbl {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}
.tbl caption {
  text-align: left;
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 12px;
}
.tbl th,
.tbl td {
  border-bottom: 1px solid var(--border);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 15px;
}
.tbl thead th {
  background: var(--head);
  color: var(--head-ink);
  font-weight: 600;
}
.tbl tbody tr:nth-child(even) { background: var(--surface-alt); }
.tbl tbody tr:last-child th,
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td.k { color: var(--head-ink); font-weight: 600; }

/* ------------------------------------------------------------------- faq */
.faq {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 16px;
}
.faq h2 {
  font-size: 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.faq details:last-child { margin-bottom: 0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 11px 14px;
  font-weight: 600;
  color: var(--head-ink);
  background: var(--surface-alt);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; color: var(--link); }
.faq details[open] summary::before { content: "\2212 "; }
.faq summary::marker { content: ""; }
.faq details > p { padding: 12px 14px 2px; margin: 0; color: var(--text); }

/* --------------------------------------------------------------- sidebar */
.side {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}
.side__card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.side__card h2 {
  font-size: 17px;
  margin: 0 0 10px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--border);
  color: var(--head-ink);
}

/* ---------------------------------------------------------------- footer */
.ft {
  background: var(--surface);
  border-top: 1px solid var(--border-strong);
  margin-top: 26px;
  padding: 22px 0 26px;
  font-size: 15px;
  color: var(--text-muted);
}
.ft__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 20px;
  margin-bottom: 18px;
}
.ft__grid h2 {
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--text);
}
.ft__grid ul { list-style: none; margin: 0; padding: 0; }
.ft__grid li { margin: 0 0 6px; }
.ft__bar {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.ft__brand { font-weight: 700; color: var(--text); }

/* --------------------------------------- single fixed xunfang CTA (A26) */
.site-cta {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 34px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 17px;
  font-weight: 600;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(31, 78, 121, 0.28);
  overflow: hidden;
  isolation: isolate;
}
.site-cta:hover { color: var(--accent-ink); text-decoration: none; }
.site-cta::before,
.site-cta::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.site-cta::before {
  left: 15px;
  top: 50%;
  width: 2px;
  height: 18px;
  margin-top: -9px;
  background: var(--gold);
  border-radius: 1px;
  opacity: 0.6;
  animation: vine-step 2.8s ease-in-out infinite;
}
.site-cta::after {
  inset: 0;
  background: radial-gradient(150px 90px at 24% 50%, rgba(122, 31, 18, 0.55), rgba(122, 31, 18, 0));
  opacity: 0.1;
  animation: bloom-tint 2.8s ease-in-out infinite;
}
@keyframes vine-step {
  0%, 100% { transform: translateY(2px); opacity: 0.55; }
  50% { transform: translateY(-2px); opacity: 1; }
}
@keyframes bloom-tint {
  0%, 100% { transform: scale(1); opacity: 0.1; }
  50% { transform: scale(1.07); opacity: 0.34; }
}

.to-top {
  position: fixed;
  right: 16px;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  z-index: 65;
  font: inherit;
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--head-ink);
  cursor: pointer;
}
.to-top:hover { background: var(--head); }
.to-top[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .site-cta::before,
  .site-cta::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------- tablet */
@media (max-width: 999px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

/* --------------------------------------------------------------- mobile */
@media (max-width: 767px) {
  body { padding-bottom: 116px; }
  h1 { font-size: 23px; }
  h2 { font-size: 19px; }
  h3 { font-size: 17px; }
  .blk, .faq { padding: 13px 14px; }
  .brand img { height: 30px; width: auto; }
  .brand__note { display: block; }
  .hd__in { gap: 10px; }
  .srch { margin-left: 0; width: 100%; }
  .srch input { width: auto; flex: 1 1 auto; min-width: 0; }
  .nv__list { gap: 0; }
  .nv a { padding: 8px 9px; font-size: 14px; }
  .tblwrap {
    border: 0;
    padding-bottom: 4px;
  }
  .tbl { min-width: 460px; }
  .tbl th, .tbl td { padding: 8px 10px; }
  .site-cta {
    left: 12px;
    right: 12px;
    transform: none;
    padding: 13px 16px;
    font-size: 16px;
    min-height: 50px;
  }
  .site-cta::before { left: 11px; }
  .to-top { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
