/* 续签宝官网 · 移动优先 · 系统字体 · 无境外 CDN */
:root {
  --red: #E3101E;
  --red-dark: #B40E18;
  --ink: #0A0A0A;
  --ink-2: #2C2929;
  --muted: #5F5958;
  --faint: #8A8483;
  --line: #E8E4E3;
  --line-strong: #D4CECD;
  --paper: #F6F4F3;
  --blush: #FBF0F1;
  --white: #fff;
  --header-h: 68px;
  --max: 1120px;
  --radius: 6px;
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei",
          "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  --shadow: 0 1px 2px rgba(10,10,10,.04), 0 8px 24px rgba(10,10,10,.05);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
html, body { margin: 0; padding: 0; width: 100%; max-width: 100%; overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  word-break: normal;
  overflow-wrap: break-word;
  line-break: auto;
}
h1, h2, h3, h4,
.lead, .deck, .kicker, .btn,
.id-card h3, .id-card p, .tool-card h3, .tool-card p,
.feature h3, .feature p, .q-chip, .product h2, .product .who,
.notice, .time-card, .ladder, .hero-qr-note, .tile .value,
.footer-legal, .page-hero .lead {
  word-break: keep-all;
  line-break: auto;
  overflow-wrap: break-word;
}
.nowrap { white-space: nowrap; }
body.menu-open { overflow: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1,h2,h3,h4 { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 200; }
.skip:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(227,16,30,.35);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 16px;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; text-decoration: none; color: inherit; flex: 0 0 auto; }
.brand img { height: 32px; width: auto; }
.nav-wrap { display: flex; align-items: center; gap: 8px; }
.nav { display: none; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: 13px; font-weight: 500;
  padding: 6px 7px; border-radius: 4px; white-space: nowrap;
}
.nav a:hover { color: var(--red); background: var(--blush); }
.nav a.is-current { color: var(--red); font-weight: 700; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper); color: var(--ink); }
.btn-block { width: 100%; }
.header-cta { display: none; min-height: 38px; padding: 6px 14px; font-size: 13px; }
.menu-toggle {
  width: 44px; height: 44px; border: 0; background: transparent;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; padding: 0;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.menu-backdrop { display: none; position: fixed; inset: var(--header-h) 0 0 0; background: rgba(10,10,10,.4); z-index: 70; }
body.menu-open .menu-backdrop { display: block; }
#site-menu {
  display: none; position: fixed; z-index: 75; top: var(--header-h); left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
  max-height: calc(100vh - var(--header-h)); overflow: auto; box-shadow: var(--shadow);
}
#site-menu.is-open { display: block; }
#site-menu .menu-group { font-size: 11px; letter-spacing: .12em; color: var(--faint); margin: 12px 0 4px; font-weight: 700; }
#site-menu a {
  display: block; padding: 10px 4px; color: var(--ink); text-decoration: none; font-size: 16px;
  border-bottom: 1px solid var(--line);
}
#site-menu a.is-current { color: var(--red); font-weight: 700; }
#site-menu .menu-cta { margin-top: 14px; border-bottom: 0; }
@media (min-width: 1180px) {
  .menu-toggle, .menu-backdrop, #site-menu { display: none !important; }
  .nav { display: flex; align-items: center; gap: 0; }
  .header-cta { display: inline-flex; }
  .brand img { height: 36px; }
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 52px 0; }
.section-paper { background: var(--paper); }
.section-blush { background: var(--blush); }
.kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--red); margin-bottom: 10px; }
.section h2 { font-size: 1.5rem; margin-bottom: 10px; }
.lead { color: var(--muted); font-size: 15px; max-width: 44em; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 36px 0 32px; background: linear-gradient(180deg,#fff 0%,#fff 60%,var(--paper) 100%); }
.hero::before {
  content: ""; position: absolute; right: -70px; top: -30px; width: 260px; height: 260px;
  background: url("../img/logo-mark.png") center / contain no-repeat; opacity: .08; pointer-events: none;
}
.hero h1 { font-size: 1.8rem; margin: 0 0 12px; }
.hero .deck { color: var(--ink-2); font-size: 16px; max-width: 38em; margin-bottom: 22px; }
.hero .deck p + p { margin-top: 10px; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 800px) {
  .hero { padding: 64px 0 52px; }
  .hero::before { width: 400px; height: 400px; right: 4%; top: 8%; opacity: .1; }
  .hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; }
  .hero h1 { font-size: 2.4rem; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
}
.hero-aside {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px; padding: 20px 16px 18px; margin-top: 20px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  position: relative;
}
.hero-aside strong { color: var(--red); font-size: 1.05rem; line-height: 1.45; }
.hero-qr-note { font-size: 13px; color: var(--ink-2); max-width: 16em; }
.hero-aside .qr-box { margin: 0; }
.hero-aside .qr-box img {
  width: 160px; height: auto; aspect-ratio: 1 / 1; object-fit: contain;
  background: #fff; border: 1px solid var(--line); padding: 6px; border-radius: 8px;
  flex-shrink: 0;
}
.hero-aside .qr-box figcaption { color: var(--muted); font-size: 13px; }
@media (min-width: 800px) {
  .hero-aside { margin-top: 0; padding: 28px 24px; }
  .hero-aside .qr-box img { width: 180px; }
}

/* Cards / grids */
.id-grid, .tool-grid, .feature-grid, .q-grid, .choose { display: grid; gap: 12px; }
.id-card, .tool-card, .feature, .q-chip, .choose a, .path-card, .promise {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px 16px;
}
.id-card:hover, .tool-card:hover, .q-chip:hover, .choose a:hover, .path-card:hover { border-color: var(--red); color: inherit; }
.id-card h3, .tool-card h3, .feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.id-card p, .tool-card p, .feature p, .choose p { font-size: 13px; color: var(--muted); }
.id-card .go, .path-card .go { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--red); }
.q-chip { font-size: 14px; padding: 12px 14px; }
@media (min-width: 700px) {
  .id-grid { grid-template-columns: 1fr 1fr 1fr; }
  .tool-grid { grid-template-columns: 1fr 1fr 1fr; }
  .feature-grid, .path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .q-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .q-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.path-grid { display: grid; gap: 12px; }
.path-card.dark { background: var(--ink); border-color: var(--ink); color: #f3f1f0; }
.path-card.dark h3 { color: #fff; }
.path-card.dark p { color: #c8c2c1; }
.path-card.dark .go { color: #f7b4b8; }
.path-card.dark:hover { border-color: var(--red); color: #fff; }

.ladder { list-style: none; display: grid; gap: 10px; }
.ladder a {
  display: grid; grid-template-columns: 36px 1fr; gap: 12px;
  padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  text-decoration: none; color: inherit;
}
.ladder a:hover { border-color: var(--red); color: inherit; }
.ladder .num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--blush); color: var(--red);
  font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.ladder h3 { font-size: 1.02rem; margin-bottom: 4px; }
.ladder p { font-size: 13px; color: var(--muted); }
@media (min-width: 800px) { .ladder { grid-template-columns: 1fr 1fr; } }

/* Timeline */
.timeline { display: grid; gap: 12px; }
.time-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px 16px; }
.time-card .tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--red); margin-bottom: 6px; }
.time-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.time-card p { font-size: 14px; color: var(--muted); }
@media (min-width: 800px) { .timeline { grid-template-columns: 1fr 1fr 1fr 1fr; } }

/* Table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14px; }
table.compare th, table.compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare th { background: var(--ink); color: #fff; font-weight: 600; }
table.compare tr:last-child td { border-bottom: 0; }
table.compare caption { text-align: left; padding: 10px 14px; font-size: 13px; color: var(--muted); caption-side: bottom; }

/* Accordion */
.acc { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.acc + .acc { margin-top: 8px; }
.acc-btn {
  width: 100%; text-align: left; background: #fff; border: 0; padding: 14px 16px;
  font: inherit; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; gap: 12px;
}
.acc-btn:hover { background: var(--paper); }
.acc-btn .plus { color: var(--red); font-weight: 700; }
.acc-panel { display: none; padding: 0 16px 14px; color: var(--muted); font-size: 14px; }
.acc.is-open .acc-panel { display: block; }

/* Sidebar layout */
.layout { display: grid; gap: 28px; }
@media (min-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
  .side { position: sticky; top: calc(var(--header-h) + 16px); }
}
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px 16px; margin-bottom: 12px; }
.side-card.cta { background: var(--ink); color: #f3f1f0; border-color: var(--ink); }
.side-card.cta h2, .side-card.cta p { color: #fff; }
.side-card.cta p { color: #c8c2c1; font-size: 13px; margin: 8px 0 14px; }
.side-card h2 { font-size: 15px; margin-bottom: 10px; }
.side-nav { list-style: none; }
.side-nav a { display: block; padding: 6px 0; text-decoration: none; color: var(--ink-2); font-size: 14px; border-bottom: 1px solid var(--line); }
.side-nav a:hover, .side-nav a.is-current { color: var(--red); }
.article { max-width: 46em; }
.article p + p, .article ul + p, .article p + ul { margin-top: 12px; }
.article h2 { font-size: 1.28rem; margin: 28px 0 10px; }
.article h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.article ul, .article ol { padding-left: 1.2em; }
.article li { margin: 6px 0; }
.page-hero { padding: 32px 0 8px; }
.page-hero h1 { font-size: 1.75rem; margin-bottom: 10px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--red); }
@media (min-width: 800px) { .page-hero h1 { font-size: 2rem; } }

/* Product */
.product { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px 20px; margin: 16px 0 24px; }
.product h2 { font-size: 1.35rem; margin-bottom: 6px; }
.product .who { color: var(--muted); margin-bottom: 14px; font-size: 15px; }
.cols { display: grid; gap: 16px; }
.cols h3 { font-size: 13px; letter-spacing: .08em; color: var(--red); margin-bottom: 8px; }
.cols ul { list-style: none; }
.cols li { padding: 6px 0 6px 16px; position: relative; font-size: 14px; color: var(--ink-2); }
.cols li::before { content: ""; position: absolute; left: 0; top: 13px; width: 7px; height: 2px; background: var(--ink); }
.cols .omit li::before { background: var(--faint); }
@media (min-width: 700px) { .cols { grid-template-columns: 1fr 1fr; } .product { padding: 28px; } }
.notice { background: var(--paper); border-radius: 8px; padding: 14px 16px; font-size: 14px; color: var(--ink-2); margin: 14px 0; }
.placeholder-box {
  border: 1px dashed var(--line-strong); background: var(--blush); border-radius: 8px;
  padding: 18px 16px; font-size: 14px; color: var(--ink-2);
}

/* Official links */
.link-list { list-style: none; display: grid; gap: 8px; }
.link-list a {
  display: block; padding: 12px 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 6px; text-decoration: none; color: var(--ink); font-size: 14px; word-break: keep-all; overflow-wrap: break-word;
}
.link-list a:hover { border-color: var(--red); color: var(--red-dark); }
.link-list span { display: block; color: var(--faint); font-size: 12px; margin-top: 2px; word-break: break-all; overflow-wrap: anywhere; }
@media (min-width: 760px) { .link-list.two { grid-template-columns: 1fr 1fr; } }

/* Consult / footer */
.consult-band { display: grid; gap: 20px; }
.contact-tiles { display: grid; gap: 10px; }
.tile { border: 1px dashed var(--line-strong); background: #fff; border-radius: 8px; padding: 14px 16px; }
.tile .label { font-size: 12px; color: var(--faint); margin-bottom: 4px; }
.tile .value { font-size: 16px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.tile .value.is-placeholder, .is-placeholder {
  color: var(--red-dark); background: var(--blush); padding: 2px 6px; border-radius: 4px; font-weight: 600;
}
.qr-box { text-align: center; }
.qr-box img { width: 200px; height: auto; aspect-ratio: 1 / 1; object-fit: contain; margin: 0 auto 8px; background: #fff; border: 1px solid var(--line); padding: 6px; border-radius: 8px; flex-shrink: 0; }
.qr-box figcaption { font-size: 12px; color: var(--muted); }
@media (min-width: 760px) { .consult-band { grid-template-columns: 1.2fr .8fr; align-items: start; } }

.form { display: grid; gap: 12px; }
.form label { font-size: 13px; font-weight: 600; display: grid; gap: 6px; }
.form input, .form select, .form textarea {
  width: 100%; max-width: 100%; font: inherit; font-size: 16px; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: var(--ink);
}
.form textarea { min-height: 120px; resize: vertical; }
#consult-result { margin-top: 16px; padding: 16px; background: var(--blush); border: 1px solid #f3c8cb; border-radius: 8px; font-size: 14px; }

.site-footer { background: var(--ink); color: #c8c2c1; padding: 40px 0 24px; font-size: 13px; }
.site-footer a { color: #f3f1f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer a.is-placeholder, .site-footer .is-placeholder {
  color: var(--red-dark); background: #fff; text-decoration: none;
}
.footer-brand img { height: 32px; width: auto; margin-bottom: 12px; }
.footer-grid { display: grid; gap: 24px; margin-bottom: 24px; }
.footer-grid h2 { color: #fff; font-size: 13px; letter-spacing: .1em; margin-bottom: 10px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin: 0 0 8px; }
.footer-legal { color: #9b9594; font-size: 12px; line-height: 1.7; }
.footer-bottom { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); color: #8a8483; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }

/* Quiz */
.quiz { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px 18px; }
.quiz-progress { height: 4px; background: var(--line); border-radius: 99px; margin-bottom: 16px; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; background: var(--red); width: 0%; transition: width .2s; }
.quiz-step h2 { font-size: 1.15rem; margin-bottom: 14px; }
.opts { display: grid; gap: 8px; }
.opts label {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 12px;
  border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 15px;
}
.opts label:hover, .opts label.is-on { border-color: var(--red); background: var(--blush); }
.opts input { margin-top: 3px; accent-color: var(--red); }
.quiz-nav { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.quiz-result h2 { font-size: 1.3rem; margin-bottom: 10px; }
.dim { border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin: 10px 0; }
.dim .lv { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; margin-bottom: 6px; }
.lv-ok { background: #eef6ee; color: #215c2a; }
.lv-mid { background: #f8f1df; color: #7a5b10; }
.lv-focus { background: var(--blush); color: var(--red-dark); }
.muted { color: var(--muted); font-size: 14px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.checklist label { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.icp-row { margin-top: 8px; }
.icp-row a { color: #c8c2c1; }
.icp-row a:hover { color: #fff; }
.tile a { color: inherit; text-decoration: none; }
.tile a:hover { color: var(--red); }
