/* 格思联升学指南网 - 现代教育资讯门户样式表 (100% 本地静态资源) */
:root {
  --brand-dark: #0b2e59;
  --brand-primary: #145388;
  --brand-blue: #1e6fb8;
  --brand-soft: #eef5fc;
  --accent-orange: #e86a17;
  --accent-orange-dark: #cc560a;
  --accent-amber-bg: #fff7ed;
  --accent-amber-border: #fed7aa;
  --ink-main: #0f172a;
  --ink-body: #334155;
  --ink-muted: #64748b;
  --surface-page: #f5f8fc;
  --surface-card: #ffffff;
  --border-light: #e2e8f0;
  --border-subtle: #edf2f7;
  --success: #0f766e;
  --success-bg: #f0fdfa;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 46, 89, 0.09);
  --max-width: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink-main);
  background-color: var(--surface-page);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

a:hover {
  color: var(--accent-orange);
}

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

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

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

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

.main-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-body);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--brand-primary);
  background: var(--brand-soft);
}

.main-nav a.is-active {
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--brand-primary);
  color: #fff;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-pill:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-pill-orange {
  background: var(--accent-orange);
  color: #fff;
}

.btn-pill-orange:hover {
  background: var(--accent-orange-dark);
  color: #fff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-primary);
  background: #fff;
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--brand-primary);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #fff;
  color: var(--ink-main);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* Top Announcement Banner (Directly under Navigation) */
.site-notice-bar {
  background: linear-gradient(90deg, #fff8ee 0%, #fef3e2 50%, #fff8ee 100%);
  border-bottom: 1px solid var(--accent-amber-border);
  color: #9a3412;
  font-size: 0.875rem;
}

.site-notice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  flex-wrap: wrap;
}

.notice-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.notice-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.notice-sub {
  font-size: 0.8125rem;
  color: #b45309;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  padding: 12px 20px 18px;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-drawer-links a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-page);
  color: var(--ink-main);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.mobile-drawer-links a.is-active {
  background: var(--brand-primary);
  color: #fff;
}

/* Hero Section */
.hero-section {
  background: radial-gradient(circle at 12% 15%, rgba(30, 111, 184, 0.28), transparent 45%),
              radial-gradient(circle at 88% 80%, rgba(232, 106, 23, 0.18), transparent 42%),
              linear-gradient(135deg, #0b294d 0%, #124377 56%, #185794 100%);
  color: #fff;
  padding: 40px 0 46px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: stretch;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 14px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fb923c;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-desc {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
  max-width: 58ch;
}

.hero-search {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 12px 28px rgba(7, 25, 48, 0.22);
  max-width: 580px;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 11px 14px;
  font-size: 0.95rem;
  color: var(--ink-main);
  background: transparent;
}

.hero-search button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: 9px;
  background: var(--accent-orange);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.hero-search button:hover {
  background: var(--accent-orange-dark);
}

.hero-search button svg {
  width: 16px;
  height: 16px;
}

.hero-hot-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero-hot-tags a {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.8125rem;
}

.hero-hot-tags a:hover {
  background: var(--accent-orange);
  color: #fff;
}

/* Countdown Board */
.countdown-board {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.countdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
}

.countdown-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.countdown-head h2 svg {
  width: 18px;
  height: 18px;
  color: #fdba74;
}

.countdown-head a {
  color: #fed7aa;
  font-size: 0.8125rem;
  font-weight: 500;
}

.countdown-list {
  display: grid;
  gap: 10px;
}

.countdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink-main);
}

.cd-info {
  min-width: 0;
}

.cd-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 0 2px;
}

.cd-meta {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.cd-days {
  flex-shrink: 0;
  text-align: center;
  min-width: 68px;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-primary);
}

.cd-days.is-urgent {
  background: #fff1e6;
  color: var(--accent-orange-dark);
}

.cd-days strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.15;
}

.cd-days span {
  font-size: 0.72rem;
}

/* Main Sections */
.section {
  padding: 36px 0;
}

.section-tight {
  padding: 24px 0;
}

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

.section-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: var(--accent-orange);
}

.section-sub {
  margin: 4px 0 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* Six Channel Cards */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.channel-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-xs);
  color: inherit;
}

.channel-card:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  color: inherit;
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-icon svg {
  width: 22px;
  height: 22px;
}

.channel-card h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.channel-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* Quick Eligibility Checker Widget */
.checker-widget {
  background: linear-gradient(135deg, #ffffff 0%, #f1f7fd 100%);
  border: 1px solid #d5e5f5;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.checker-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
  align-items: end;
}

.form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 6px;
}

.form-field select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink-main);
  font-size: 0.9rem;
}

.checker-submit {
  height: 42px;
  width: 100%;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent-orange);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.checker-submit:hover {
  background: var(--accent-orange-dark);
}

.checker-output {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed #cbd5e1;
}

.checker-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.checker-result-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.checker-result-card.is-warn {
  border-left-color: var(--accent-orange);
}

.checker-result-card h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--brand-dark);
}

.checker-result-card p {
  margin: 0 0 8px;
  font-size: 0.83rem;
  color: var(--ink-body);
}

.checker-result-card .cr-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--success-bg);
  color: var(--success);
}

.checker-result-card.is-warn .cr-tag {
  background: var(--accent-amber-bg);
  color: #c2410c;
}

/* Main Content + Sidebar Layout */
.layout-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
}

.article-list {
  display: grid;
  gap: 16px;
}

.article-card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.article-card:hover {
  border-color: #b6d0ea;
  box-shadow: var(--shadow-sm);
}

.article-meta-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.78rem;
}

.cat-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-primary);
  font-weight: 600;
}

.badge-hot {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-amber-bg);
  color: #c2410c;
  font-weight: 600;
}

.meta-date {
  color: var(--ink-muted);
}

.article-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  line-height: 1.4;
  font-weight: 700;
}

.article-card h3 a {
  color: var(--ink-main);
}

.article-card h3 a:hover {
  color: var(--brand-primary);
}

.article-card p {
  margin: 0 0 12px;
  color: var(--ink-body);
  font-size: 0.91rem;
  line-height: 1.65;
}

.article-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface-page);
  color: var(--ink-muted);
  font-size: 0.76rem;
}

/* Sidebar Widgets */
.sidebar {
  display: grid;
  gap: 18px;
}

.side-card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
}

.side-card h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-dark);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.timeline-list li {
  position: relative;
  padding-left: 16px;
  border-left: 2px solid #dbe7f3;
}

.timeline-list li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-blue);
}

.timeline-list .tl-date {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-orange-dark);
}

.timeline-list .tl-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-main);
  margin: 2px 0;
}

.timeline-list .tl-note {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.safety-box {
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  border-color: #bae6fd;
}

.safety-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.85rem;
  color: var(--ink-body);
  display: grid;
  gap: 8px;
}

/* Category Matrix */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.matrix-card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-xs);
}

.matrix-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.matrix-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--brand-dark);
}

.matrix-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.matrix-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9rem;
}

.matrix-list a {
  color: var(--ink-main);
  font-weight: 500;
  min-width: 0;
}

.matrix-list a:hover {
  color: var(--brand-primary);
}

.matrix-list span {
  flex-shrink: 0;
  font-size: 0.76rem;
  color: var(--ink-muted);
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.faq-item summary {
  font-weight: 700;
  color: var(--brand-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--accent-orange);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  color: var(--ink-body);
  font-size: 0.91rem;
  line-height: 1.7;
}

/* Breadcrumb & Subpage Header */
.page-banner {
  background: linear-gradient(135deg, #0d3562 0%, #16558f 100%);
  color: #fff;
  padding: 28px 0 32px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 10px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb.is-light {
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.breadcrumb.is-light a {
  color: var(--brand-primary);
}

.page-banner h1 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 800;
}

.page-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  max-width: 68ch;
}

/* Article Detail */
.article-wrap {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 30px 32px;
  box-shadow: var(--shadow-xs);
  min-width: 0;
}

.article-header {
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-header h1 {
  margin: 10px 0 12px;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.35;
  color: var(--brand-dark);
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.83rem;
  color: var(--ink-muted);
}

.article-summary-box {
  background: var(--brand-soft);
  border-left: 4px solid var(--brand-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 15px 18px;
  margin-bottom: 24px;
  color: var(--ink-main);
  font-size: 0.93rem;
}

.prose {
  color: var(--ink-body);
  font-size: 1rem;
  line-height: 1.85;
  word-break: break-word;
}

.prose h2 {
  margin: 28px 0 12px;
  font-size: 1.25rem;
  color: var(--brand-dark);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-soft);
  scroll-margin-top: 90px;
}

.prose h3 {
  margin: 20px 0 10px;
  font-size: 1.06rem;
  color: var(--brand-primary);
}

.prose p {
  margin: 0 0 15px;
}

.prose ul, .prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.prose .callout {
  background: var(--accent-amber-bg);
  border: 1px solid var(--accent-amber-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 18px 0;
  color: #7c2d12;
  font-size: 0.93rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 18px 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 0.88rem;
  background: #fff;
}

table.data-table th {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-light);
}

table.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--ink-body);
  vertical-align: top;
}

table.data-table tr:last-child td {
  border-bottom: none;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
}

.toc-list a {
  display: block;
  padding: 5px 10px;
  border-left: 2px solid var(--border-light);
  color: var(--ink-body);
}

.toc-list a:hover {
  border-left-color: var(--accent-orange);
  color: var(--brand-dark);
  background: var(--surface-page);
}

.article-disclaimer {
  margin-top: 28px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  color: var(--ink-muted);
}

.prev-next-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.prev-next-card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.prev-next-card span {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.prev-next-card a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-dark);
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-tab {
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border-light);
  color: var(--ink-body);
  font-size: 0.85rem;
  font-weight: 500;
}

.filter-tab:hover,
.filter-tab.is-active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #fff;
  font-size: 0.875rem;
  color: var(--ink-body);
}

.pagination span.is-current {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: #0a2240;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 40px;
  padding: 42px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand img {
  height: 40px;
  background: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.footer-brand p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.94rem;
  color: #fff;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.84rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.74);
}

.footer-links a:hover {
  color: #fdba74;
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.68);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.88);
}

.footer-bottom a:hover {
  color: #fdba74;
}

/* Responsive Breakpoints (Ensuring zero horizontal scroll at 375px) */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .layout-two-col {
    grid-template-columns: 1fr;
  }
  .checker-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .checker-result-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 14px;
  }
  .brand-logo {
    height: 36px;
  }
  .header-actions .btn-pill {
    display: none;
  }
  .channel-grid {
    grid-template-columns: 1fr;
  }
  .matrix-grid {
    grid-template-columns: 1fr;
  }
  .checker-form-grid {
    grid-template-columns: 1fr;
  }
  .hero-section {
    padding: 26px 0 30px;
  }
  .hero-search {
    flex-direction: column;
    gap: 6px;
  }
  .hero-search button {
    justify-content: center;
    width: 100%;
  }
  .article-wrap {
    padding: 20px 16px;
  }
  .prev-next-nav {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .notice-sub {
    display: none;
  }
}
