/* ================================================================
   components.css — 可复用组件
   顺序：header/nav → 按钮 → 卡片 → 表格 → faq → 面包屑 → 页脚 → 杂项
   ================================================================ */

/* ---------- 顶部通知条 ---------- */
.notice {
  background: var(--navy);
  color: #d8e3ee;
  font-size: .84rem;
  text-align: center;
  padding: 7px 16px;
}
.notice a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 页头 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
}
.logo:hover { text-decoration: none; }
.logo__mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .92rem;
  font-weight: 800;
  flex-shrink: 0;
}
.logo__sub {
  display: block;
  font-size: .68rem;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: .04em;
  line-height: 1.2;
}

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__link {
  display: block;
  padding: 8px 13px;
  border-radius: 7px;
  color: var(--ink-2);
  font-size: .94rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav__link:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--brand-dark); background: var(--brand-soft); }

.header__cta { flex-shrink: 0; }

/* 移动端菜单按钮 */
.burger {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 17px; height: 2px;
  background: var(--ink-2); border-radius: 2px; position: relative;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

@media (max-width: 900px) {
  .burger { display: grid; }
  .nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 12px; }
  .header__cta { display: none; }
  .logo__sub { display: none; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(253, 120, 0, .25); }
.btn--primary:hover { background: var(--brand-dark); }

.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink-3); background: var(--bg-soft); }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: #142c47; }

.btn--sm { padding: 8px 16px; font-size: .88rem; }
.btn--lg { padding: 15px 32px; font-size: 1.04rem; }
.btn--block { display: flex; width: 100%; }

.btn__arrow { font-size: .85em; opacity: .8; }

/* ---------- 卡片 ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .15s, box-shadow .15s;
}
.card--hover:hover { border-color: #cfd6dd; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card__meta {
  font-size: .8rem;
  color: var(--ink-3);
  margin-bottom: .5em;
  letter-spacing: .02em;
}

/* 数字指标块 */
.stat { text-align: center; padding: 20px 12px; }
.stat__v {
  display: block;
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  font-weight: 800;
  color: var(--brand-dark);
  letter-spacing: -.02em;
  line-height: 1.15;
}
.stat__k { font-size: .88rem; color: var(--ink-3); }

/* 编号步骤 */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { position: relative; padding-left: 52px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700; font-size: .95rem;
  display: grid; place-items: center;
}
.step h3 { margin-bottom: .3em; font-size: 1.05rem; }
.step p { margin-bottom: 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.5em; }
table.tb {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  min-width: 480px;
}
table.tb th, table.tb td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.tb thead th {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 600;
  font-size: .86rem;
  letter-spacing: .02em;
  white-space: nowrap;
}
table.tb tbody tr:last-child td { border-bottom: 0; }
table.tb .yes { color: var(--band-green); font-weight: 600; }
table.tb .no { color: var(--ink-3); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  padding: 18px 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  line-height: 1.5;
}
.faq__q:hover { color: var(--brand-dark); }
.faq__q::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--ink-3);
  line-height: 1;
  transition: transform .2s;
}
.faq__item.is-open .faq__q::after { content: "−"; }
.faq__a { display: none; padding: 0 0 18px; color: var(--ink-2); font-size: .95rem; }
.faq__item.is-open .faq__a { display: block; }
.faq__a p:last-child { margin-bottom: 0; }

/* 无 JS 时全部展开 */
.no-js .faq__a { display: block; }
.no-js .faq__q { cursor: default; }
.no-js .faq__q::after { content: ""; }

/* ---------- 提示块 ---------- */
.note {
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 1.5em 0;
  font-size: .94rem;
}
.note p:last-child { margin-bottom: 0; }
.note--info { border-color: var(--band-blue); background: #eef4ff; }
.note--warn { border-color: var(--band-red); background: #fdeeee; }
.note__t { display: block; font-weight: 700; color: var(--ink); margin-bottom: .3em; }

/* ---------- 面包屑 ---------- */
.crumb {
  font-size: .84rem;
  color: var(--ink-3);
  padding: 14px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--brand-dark); }
.crumb__sep { color: #c3cad2; }

/* ---------- 文章页正文 ---------- */
.article__head { margin-bottom: 28px; }
.article__head h1 { margin-bottom: .3em; }
.article__meta {
  font-size: .84rem;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.article__body { font-size: 1.02rem; }
.article__body h2 {
  margin: 2em 0 .7em;
  padding-top: .2em;
  font-size: 1.35rem;
}
.article__body h2:first-child { margin-top: 0; }
.article__body h3 { margin: 1.6em 0 .5em; color: var(--navy); }
.article__body > p:first-of-type { font-size: 1.06rem; color: var(--ink-2); }
.article__body blockquote {
  margin: 1.4em 0;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--line);
  color: var(--ink-3);
}
.article__body table.tb { margin: 1.2em 0 1.6em; }
.article__body img { border-radius: 8px; margin: 1.4em 0; border: 1px solid var(--line); }

/* 正文内目录 */
.toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 2em;
  font-size: .93rem;
}
.toc__t { font-weight: 700; color: var(--ink); margin-bottom: .5em; font-size: .88rem; letter-spacing: .03em; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: .25em; }
.toc a { color: var(--ink-2); }

/* 页尾 CTA 区块 */
.cta-box {
  background: linear-gradient(135deg, #1b3a5c 0%, #24507c 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #fff;
  margin: 48px 0 0;
}
.cta-box h2 { color: #fff; margin-bottom: .4em; font-size: 1.4rem; }
.cta-box p { color: #c3d5e6; margin-bottom: 1.4em; font-size: .96rem; }
.cta-box .btn--primary { box-shadow: none; }
.cta-box__note { font-size: .82rem; color: #9fb6cc; margin: 12px 0 0; }

@media (max-width: 600px) {
  .cta-box { padding: 26px 22px; }
}

/* ---------- 侧栏 ---------- */
.side { display: grid; gap: 28px; position: sticky; top: 84px; }
.side__box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.side__t {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: .8em;
}
.side__list { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.side__list li { margin: 0; border-bottom: 1px solid var(--line-soft); }
.side__list li:last-child { border-bottom: 0; }
.side__list a { display: block; padding: 9px 0; color: var(--ink-2); line-height: 1.45; }
.side__list a:hover { color: var(--brand-dark); }

@media (max-width: 900px) {
  .side { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* ---------- 页脚 ---------- */
.footer {
  background: #121b25;
  color: #93a3b3;
  font-size: .88rem;
  padding: 52px 0 28px;
  margin-top: 72px;
}
.footer a { color: #c3d0dc; }
.footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid #26323e;
}
.footer__t { color: #fff; font-weight: 600; font-size: .9rem; margin-bottom: .8em; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .45em; }
.footer__desc { margin-top: .8em; font-size: .84rem; line-height: 1.7; color: #7c8b9a; }
.footer__bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: #6d7c8b;
}
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- 分页 ---------- */
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.pager a, .pager span {
  display: grid; place-items: center;
  min-width: 38px; height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: .9rem;
  color: var(--ink-2);
}
.pager a:hover { border-color: var(--ink-3); text-decoration: none; }
.pager .is-current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .02em;
  background: var(--bg-soft);
  color: var(--ink-3);
  border: 1px solid var(--line);
}
.tag--brand { background: var(--brand-soft); color: var(--brand-dark); border-color: #ffd9b3; }
.tag--navy { background: #eef3f8; color: var(--navy); border-color: #d6e1ec; }
