/* 查分数 chafenshu.com · 品牌系统「朱红印章 · 金榜」
   - 墨色宋体立权威，朱红印章作品牌核心资产，暖宣纸底给温度，现代栅格+留白给清爽。
   - 全部使用系统中文字体，不加载 Web 字体，保证出分高峰的加载速度。
   - 颜色与对比度按 WCAG AA 校准，正文对比 ≥ 7:1。 */

:root {
  color-scheme: light;

  /* 纸与面 */
  --paper: #f5f1e8;
  --paper-2: #efe9dc;
  --surface: #ffffff;
  --surface-soft: #faf6ec;
  --surface-sink: #f1ece0;

  /* 墨 */
  --ink: #1b1814;
  --ink-2: #38332c;
  --body: #423d35;
  --muted: #6a6457;

  /* 朱红印章（品牌主色） */
  --seal: #b5362a;
  --seal-deep: #8f271d;
  --seal-soft: #f6e7e2;
  --seal-tint: rgba(181, 54, 42, 0.1);

  /* 辅助 */
  --ink-blue: #1f4e6b;
  --ink-blue-deep: #143247;
  --jade: #2c6b4d;
  --jade-soft: #e6f0e8;
  --gold: #9a7420;
  --gold-soft: #f4ebd6;

  /* 线与影 */
  --line: #e3dccb;
  --line-soft: #ece6d8;
  --line-strong: #d3cab4;
  --shadow-sm: 0 1px 2px rgba(40, 33, 22, 0.06);
  --shadow: 0 2px 4px rgba(40, 33, 22, 0.05), 0 12px 30px -16px rgba(40, 33, 22, 0.28);
  --shadow-lg: 0 6px 14px rgba(40, 33, 22, 0.07), 0 28px 60px -28px rgba(40, 33, 22, 0.4);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --serif: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans CJK SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;

  --wrap: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 520px at 88% -8%, rgba(181, 54, 42, 0.05), transparent 60%),
    radial-gradient(900px 480px at -6% 4%, rgba(31, 78, 107, 0.04), transparent 55%);
  background-attachment: fixed;
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--seal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(181, 54, 42, 0.4);
}

a:hover {
  color: var(--seal-deep);
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(181, 54, 42, 0.5);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.005em;
  overflow-wrap: break-word;
}

p {
  margin: 0;
  text-wrap: pretty;
}

main {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 跳到主内容 */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--seal);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 16px;
  color: #fff;
}

/* ============ 印章品牌资产 ============ */
.seal,
.brand-mark,
.province-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-soft);
  box-shadow: var(--shadow-sm);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.province-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1.5px solid var(--seal);
  background: var(--seal-soft);
  color: var(--seal-deep);
  font-size: 18px;
}

.province-mark.large {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  border-width: 2px;
  font-size: 34px;
  line-height: 1.06;
  text-align: center;
  padding: 4px;
  overflow: hidden;
}

/* 多字印章（考试简称 2~4 字 / 字母）按字数缩放，单字省份保持大字号 */
.province-mark.large.seal-2 {
  font-size: 28px;
}

.province-mark.large.seal-3 {
  font-size: 20px;
}

.province-mark.large.seal-4 {
  font-size: 17px;
}

/* ============ 顶栏 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding: 0 max(20px, calc((100% - var(--wrap)) / 2 + 4px));
  border-bottom: 1px solid var(--line);
  background: rgba(245, 241, 232, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  text-decoration: none;
}

.brand small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.top-nav a[aria-current="page"],
.top-nav a:hover {
  background: var(--seal-soft);
  color: var(--seal-deep);
}

/* ============ Hero 模块 ============ */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: stretch;
  margin: 28px 0 8px;
  padding: 48px 46px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(130% 150% at 100% -10%, var(--seal-soft) 0%, transparent 46%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
  box-shadow: var(--shadow);
}

.hero > .hero-copy,
.hero > .notice-board {
  position: relative;
  z-index: 1;
}

.hero-seal {
  position: absolute;
  top: -56px;
  right: -34px;
  z-index: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 360px;
  line-height: 1;
  color: var(--seal);
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
}

.hero-copy,
.detail-hero {
  min-width: 0;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.hero-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.hero-chips a:hover {
  border-color: var(--seal);
  color: var(--seal-deep);
}

.hero-chips a.is-primary {
  background: var(--seal);
  border-color: var(--seal);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(181, 54, 42, 0.7);
}

.hero-chips a.is-primary:hover {
  background: var(--seal-deep);
  border-color: var(--seal-deep);
  color: #fff;
}

.notice-points {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.notice-points li {
  position: relative;
  padding-left: 24px;
  color: var(--body);
  font-size: 0.95rem;
  line-height: 1.55;
}

.notice-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--seal);
}

.notice-points strong {
  color: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--seal-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--seal);
}

.hero h1,
.detail-hero h1,
.guide-page h1 {
  max-width: 16ch;
  font-size: clamp(2.5rem, 5.6vw, 4.3rem);
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: normal;
  color: var(--seal);
}

/* 仅窄屏在标题处换行（桌面隐藏，移动端启用，见媒体查询） */
.br-sm {
  display: none;
}

.lead {
  max-width: 60ch;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: clamp(1.04rem, 1.4vw, 1.18rem);
}

.hero-actions,
.action-line,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 26px;
}

/* 查找台 */
.quick-lookup {
  display: grid;
  gap: 10px;
  max-width: 640px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.quick-lookup label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.quick-lookup > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.quick-lookup input {
  min-height: 50px;
  width: 100%;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--ink);
  padding: 0 16px;
  font: inherit;
  font-size: 1.02rem;
  transition: border-color 160ms ease, background 160ms ease;
}

.quick-lookup input:focus {
  border-color: var(--seal);
  background: #fff;
  outline: none;
}

.quick-lookup p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ============ 按钮 ============ */
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 20px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.button.primary {
  background: var(--seal);
  border-color: var(--seal);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(181, 54, 42, 0.7);
}

.button.primary:hover {
  background: var(--seal-deep);
  border-color: var(--seal-deep);
  color: #fff;
  box-shadow: 0 10px 22px -8px rgba(143, 39, 29, 0.7);
}

.button.secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--seal);
  color: var(--seal-deep);
}

.button.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--seal-deep);
  padding: 11px 8px;
}

.button.ghost:hover {
  color: var(--seal-deep);
  text-decoration: underline;
}

/* ============ 卡片通用外观 ============ */
.notice-board,
.exam-card,
.province-card,
.primary-panel,
.status-panel,
.content-section,
.source-note,
.answer-strip article,
.trust-strip,
.faq-item,
.related-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* 公告板 */
.notice-board {
  padding: 26px;
  display: flex;
  flex-direction: column;
}

.notice-board::before {
  content: "官方提示";
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  background: var(--seal-soft);
  color: var(--seal-deep);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.notice-board h2,
.source-note h2,
.content-section h2,
.primary-panel h2,
.status-panel h2 {
  margin-bottom: 16px;
  font-size: 1.26rem;
}

.notice-board dl,
.fact-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.notice-board dl {
  margin: 6px 0 16px;
}

.notice-board dl div,
.fact-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}

.notice-board dl div:last-child,
.fact-list div:last-child {
  border-bottom: 0;
}

.notice-board dt,
.fact-list dt {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.notice-board dd,
.fact-list dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
  color: var(--ink);
}

.notice-board > p:last-child {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 0.9rem;
}

.fact-list.stacked div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: baseline;
}

.fact-list.stacked dd {
  overflow-wrap: anywhere;
  text-align: left;
  font-weight: 600;
}

.compact-facts {
  margin-bottom: 14px;
}

.compact-facts div {
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
}

/* ============ 信任条 ============ */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 4px 0 8px;
  padding: 0;
  overflow: hidden;
}

.trust-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 20px 22px;
  border-right: 1px solid var(--line-soft);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item .seal {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--seal-soft);
  color: var(--seal-deep);
  font-size: 17px;
}

.trust-item h3 {
  font-family: var(--sans);
  font-size: 0.98rem;
  margin-bottom: 3px;
}

.trust-item p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

/* ============ 区块标题 ============ */
.exam-section,
.province-section,
.home-section {
  padding: 26px 0 50px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

.section-heading .lead {
  margin-top: 10px;
}

.search-box {
  display: grid;
  gap: 8px;
  width: min(340px, 100%);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.search-box input {
  min-height: 46px;
  width: 100%;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
  font-weight: 500;
  transition: border-color 160ms ease;
}

.search-box input:focus {
  border-color: var(--seal);
  outline: none;
}

/* 筛选 */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px;
}

.filter-button {
  min-height: 40px;
  padding: 0 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.filter-button:hover {
  border-color: var(--seal);
  color: var(--seal-deep);
}

.filter-button.is-active {
  border-color: var(--seal);
  background: var(--seal);
  color: #fff;
}

/* ============ 卡片网格 ============ */
.exam-grid,
.province-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.exam-card,
.province-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  align-content: start;
  position: relative;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.exam-card:hover,
.province-card:hover {
  border-color: var(--seal);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.exam-card[hidden],
.province-card[hidden] {
  display: none;
}

.province-card-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.exam-card h3,
.province-card h3 {
  font-size: 1.24rem;
  line-height: 1.3;
}

.exam-card h3 a,
.province-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.exam-card h3 a::after,
.province-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.exam-card:hover h3 a,
.province-card:hover h3 a {
  color: var(--seal-deep);
}

.exam-card p,
.province-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.94rem;
}

.exam-card .fact-list,
.province-card .fact-list {
  border-top: 1px solid var(--line-soft);
  padding-top: 4px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  z-index: 1;
}

.empty-state {
  margin: 32px 0;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

/* ============ 详情页 ============ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 24px 0 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--seal-deep);
}

.breadcrumb span[aria-hidden] {
  color: var(--line-strong);
}

.detail-hero {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 28px 0 30px;
}

.detail-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  margin-bottom: 20px;
}

.primary-panel,
.status-panel,
.content-section {
  padding: 26px;
}

.primary-panel {
  border-top: 3px solid var(--seal);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  margin-bottom: 16px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.method-list,
.plain-steps,
.source-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.method-list li,
.source-list li {
  position: relative;
  padding-left: 26px;
  color: var(--body);
}

.method-list li::before,
.source-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--seal);
}

.plain-steps {
  counter-reset: step;
  gap: 14px;
}

.plain-steps li {
  position: relative;
  padding-left: 42px;
  color: var(--body);
  min-height: 30px;
}

.plain-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--seal-soft);
  color: var(--seal-deep);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.95rem;
}

.source-list li span {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-sink);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.content-section {
  margin-bottom: 20px;
}

.content-section > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-section > h2::before {
  content: "";
  width: 4px;
  height: 1.05em;
  border-radius: 2px;
  background: var(--seal);
}

.content-section p + p {
  margin-top: 12px;
}

.section-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* 历史表 */
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.history-table caption {
  margin-bottom: 12px;
  color: var(--muted);
  text-align: left;
  font-size: 0.9rem;
}

.history-table th,
.history-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.history-table tbody tr:last-child th,
.history-table tbody tr:last-child td {
  border-bottom: 0;
}

.history-table thead th {
  background: var(--surface-sink);
  color: var(--ink-2);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.history-table tbody th {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  white-space: nowrap;
}

/* 来源徽标 */
.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--jade-soft);
  color: var(--jade);
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
}

.source-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.source-badge.muted {
  background: var(--surface-sink);
  color: var(--muted);
}

/* ============ FAQ（原生 details，免 JS、可索引） ============ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--seal);
  border-bottom: 2px solid var(--seal);
  transform: rotate(45deg);
  transition: transform 200ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-item summary:hover {
  color: var(--seal-deep);
}

.faq-answer {
  padding: 0 24px 22px;
  color: var(--body);
}

.faq-answer p + p {
  margin-top: 10px;
}

/* ============ 相关链接 ============ */
.related-panel {
  padding: 26px;
  margin-bottom: 20px;
}

.related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 4px;
}

.related-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.related-grid a:hover {
  border-color: var(--seal);
  background: var(--seal-soft);
  color: var(--seal-deep);
}

/* ============ 文章 ============ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.article-card {
  display: grid;
  gap: 10px;
  min-height: 220px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px;
}

.article-card h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
}

.article-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.article-card h3 a:hover {
  color: var(--seal-deep);
}

.article-card p {
  margin: 0;
  color: var(--muted);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--line-strong);
}

.article-page {
  display: grid;
  gap: 18px;
}

/* ============ 指南 / 杂项 ============ */
.guide-page {
  max-width: 920px;
  margin: 0 auto;
}

.warning-section {
  border-color: rgba(181, 54, 42, 0.32);
  background: linear-gradient(180deg, var(--seal-soft) 0%, var(--surface) 32%);
}

.warning-section > h2::before {
  background: var(--seal);
}

.warning-section .method-list li::before {
  border-radius: 50%;
}

.answer-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 18px 0 50px;
}

.answer-strip article {
  padding: 24px;
}

.answer-strip h2 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.answer-strip p {
  color: var(--muted);
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.meta-line .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

.verified-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--jade);
  font-weight: 700;
}

.verified-flag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jade);
}

/* ============ 页脚 ============ */
.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.site-footer-inner {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding: 40px 0 28px;
}

.site-footer .brand {
  margin-bottom: 12px;
}

.site-footer p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 42ch;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.footer-col nav {
  display: grid;
  gap: 9px;
}

.footer-col a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
}

.footer-col a:hover {
  color: var(--seal-deep);
}

.footer-base {
  border-top: 1px solid var(--line);
}

.footer-base div {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  color: var(--muted);
  font-size: 0.84rem;
}

/* ============ 响应式 ============ */
/* 平板 */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 40px 34px;
  }

  .hero-seal {
    font-size: 280px;
    top: -44px;
    right: -26px;
  }

  .detail-layout,
  .answer-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }

  .trust-item {
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
  }

  .trust-item:nth-child(2n) {
    border-right: 0;
  }

  .trust-item:nth-child(n + 3) {
    border-bottom: 0;
  }

  .exam-grid,
  .province-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer-inner > div:first-child {
    grid-column: 1 / -1;
  }
}

/* 手机 */
@media (max-width: 680px) {
  main {
    width: min(100% - 28px, var(--wrap));
  }

  .site-header {
    position: sticky;
    top: 0;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
  }

  .brand {
    font-size: 1.08rem;
  }

  .brand small {
    display: none;
  }

  .top-nav {
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .top-nav a {
    flex: 0 0 auto;
    padding: 0 11px;
  }

  .hero {
    margin-top: 18px;
    padding: 28px 20px;
    border-radius: 20px;
  }

  .hero-seal {
    font-size: 190px;
    top: -28px;
    right: -18px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 9vw, 2.8rem);
  }

  .quick-lookup {
    padding: 16px;
  }

  .quick-lookup > div {
    grid-template-columns: 1fr;
  }

  .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: -4px;
    padding-inline: 4px;
  }

  .filter-row::-webkit-scrollbar {
    display: none;
  }

  .filter-button {
    flex: 0 0 auto;
  }

  .section-heading,
  .detail-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-hero {
    gap: 14px;
  }

  .br-sm {
    display: inline;
  }

  .detail-hero .province-mark.large {
    width: 56px;
    height: 56px;
    font-size: 26px;
  }

  .detail-hero .province-mark.large.seal-2 {
    font-size: 22px;
  }

  .detail-hero .province-mark.large.seal-3 {
    font-size: 16px;
  }

  .detail-hero .province-mark.large.seal-4 {
    font-size: 14px;
  }

  .exam-grid,
  .province-grid,
  .article-grid,
  .card-actions,
  .answer-strip,
  .site-footer-inner {
    grid-template-columns: 1fr;
  }

  .primary-panel,
  .status-panel,
  .content-section,
  .notice-board,
  .related-panel {
    padding: 20px;
  }

  .faq-item summary {
    padding: 16px 18px;
    font-size: 1.02rem;
  }

  .faq-answer {
    padding: 0 18px 18px;
  }

  .history-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .fact-list.stacked div {
    grid-template-columns: 84px minmax(0, 1fr);
  }
}

/* 窄屏手机 */
@media (max-width: 460px) {
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .trust-item:nth-child(n + 3) {
    border-bottom: 1px solid var(--line-soft);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 8.5vw, 2.4rem);
  }

  .card-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
