:root {
  --brand-navy: #0f3560;
  --brand-blue: #145ca8;
  --brand-blue-dark: #0e4682;
  --brand-sky: #ebf4fd;
  --brand-amber: #d96800;
  --brand-amber-bg: #fff7ed;
  --brand-amber-border: #fed7aa;
  --ink: #0f172a;
  --ink-secondary: #334155;
  --ink-muted: #64748b;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 53, 96, 0.08);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: clip;
}

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

a {
  color: var(--brand-blue);
  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(--brand-navy);
}

.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;
}

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

.narrow-container {
  max-width: 860px;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

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

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

.nav-link {
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-secondary);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-blue);
  background: var(--brand-sky);
}

.nav-link-accent {
  color: var(--brand-amber);
  font-weight: 600;
}

.nav-link-accent:hover,
.nav-link-accent.is-active {
  color: #b45309;
  background: var(--brand-amber-bg);
}

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

.header-search {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 6px 3px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search:focus-within {
  border-color: var(--brand-blue);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(20, 92, 168, 0.12);
}

.header-search input {
  border: 0;
  background: transparent;
  outline: none;
  width: 155px;
  font-size: 0.875rem;
  color: var(--ink);
  font-family: inherit;
}

.header-search button {
  border: 0;
  background: var(--brand-blue);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header-search button:hover {
  background: var(--brand-navy);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  padding: 0 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-drawer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 16px 0 20px;
  box-shadow: var(--shadow-md);
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: inherit;
}

.mobile-search button {
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--brand-blue);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

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

.mobile-nav-grid a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink-secondary);
  font-weight: 500;
  text-align: center;
  font-size: 0.9375rem;
}

.mobile-nav-grid a.is-active {
  background: var(--brand-sky);
  color: var(--brand-blue);
  font-weight: 600;
}

/* Announcement Banner (Right below header nav on Home) */
.announce-bar {
  background: linear-gradient(90deg, #fff7ed 0%, #ffedd5 50%, #fff7ed 100%);
  border-bottom: 1px solid var(--brand-amber-border);
}

.announce-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.announce-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-amber);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.announce-text {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #7c2d12;
}

.announce-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-amber);
  white-space: nowrap;
}

.announce-more:hover {
  color: #9a3412;
}

/* Hero Section */
.hero-band {
  background: linear-gradient(135deg, #0d2f56 0%, #144d8a 58%, #1d64ad 100%);
  color: #fff;
  padding: 52px 0 56px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: start;
}

.eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-lead {
  margin: 0 0 26px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  text-decoration: none;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--brand-amber);
  color: #fff;
}

.btn-primary:hover {
  background: #bf5a00;
  color: #fff;
  transform: translateY(-1px);
}

.hero-band .btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-band .btn-outline:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

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

.btn-outline:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.btn-ghost {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: var(--surface);
}

.btn-ghost:hover {
  background: var(--brand-sky);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.metric-item strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fde68a;
}

.metric-item span {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spotlight-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-md);
}

.spotlight-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.spotlight-card h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.42;
}

.spotlight-card h2 a {
  color: var(--ink);
}

.spotlight-card h2 a:hover {
  color: var(--brand-blue);
}

.spotlight-card p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--ink-secondary);
  line-height: 1.65;
}

.read-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand-blue);
}

.quick-links-box {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.quick-links-head {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fde68a;
  margin-bottom: 10px;
}

.quick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.quick-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.875rem;
}

.mini-cat {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  flex-shrink: 0;
}

.quick-list a {
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.45;
}

.quick-list a:hover {
  color: #fde68a;
  text-decoration: underline;
}

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

.section-tools {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

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

.section-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-amber);
  margin-bottom: 6px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  color: var(--ink);
  line-height: 1.3;
}

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

.section-more {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-blue);
  white-space: nowrap;
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink);
}

.tool-card:hover {
  border-color: var(--brand-blue);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.tool-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--brand-sky);
  color: var(--brand-blue);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.tool-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.4;
  color: var(--ink);
}

.tool-card p {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.6;
  flex: 1;
}

.tool-enter {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-amber);
}

/* Heritage Banner */
.section-heritage {
  padding-top: 40px;
  padding-bottom: 12px;
}

.heritage-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--brand-blue);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.heritage-left h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  color: var(--brand-navy);
  line-height: 1.35;
}

.heritage-left p {
  margin: 0 0 18px;
  color: var(--ink-secondary);
  font-size: 0.9375rem;
}

.heritage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.heritage-timeline-mini {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tl-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.875rem;
}

.tl-step span {
  font-weight: 700;
  color: var(--brand-blue);
  min-width: 72px;
}

.tl-step.is-current {
  background: var(--brand-sky);
  border-color: #93c5fd;
}

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

.matrix-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

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

.matrix-head h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.matrix-head h3 a {
  color: var(--brand-navy);
}

.matrix-head p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.matrix-more {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.matrix-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.matrix-list li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
}

.matrix-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.matrix-list li.is-lead > a {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

.matrix-list li > a {
  color: var(--ink-secondary);
  font-size: 0.925rem;
  line-height: 1.5;
  display: block;
}

.matrix-list li > a:hover {
  color: var(--brand-blue);
}

.lead-excerpt {
  margin: 6px 0 2px;
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.article-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.tag-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--brand-sky);
  color: var(--brand-blue);
  font-size: 0.75rem;
  font-weight: 600;
}

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

.card-title {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.45;
}

.card-title a {
  color: var(--ink);
}

.card-title a:hover {
  color: var(--brand-blue);
}

.card-summary {
  margin: 0 0 14px;
  font-size: 0.86rem;
  color: var(--ink-muted);
  line-height: 1.6;
  flex: 1;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ink-muted);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* Page Banners & Breadcrumbs */
.page-banner {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 34px 0 36px;
}

.page-banner-deep {
  background: linear-gradient(135deg, #0d2f56 0%, #145ca8 100%);
  color: #fff;
  border-bottom: 0;
}

.page-banner h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.3;
}

.banner-desc {
  margin: 0;
  color: var(--ink-secondary);
  max-width: 780px;
  font-size: 0.98rem;
}

.page-banner-deep .banner-desc {
  color: rgba(255, 255, 255, 0.88);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.breadcrumb-light,
.breadcrumb-light a {
  color: rgba(255, 255, 255, 0.82);
}

/* Content with Sidebar */
.content-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.article-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feed-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.feed-item h2 {
  margin: 0 0 8px;
  font-size: 1.22rem;
  line-height: 1.4;
}

.feed-item h2 a {
  color: var(--ink);
}

.feed-item h2 a:hover {
  color: var(--brand-blue);
}

.feed-summary {
  margin: 0 0 12px;
  color: var(--ink-secondary);
  font-size: 0.9375rem;
}

.feed-tags,
.article-tags-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.kw-chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
  font-size: 0.8rem;
}

.kw-chip:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

/* Sidebar */
.sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.side-widget-accent {
  background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
  border-color: #bfdbfe;
}

.side-widget h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--brand-navy);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.side-note {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.side-cat-list,
.side-tool-list,
.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-cat-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  font-size: 0.92rem;
}

.side-cat-list li a:hover,
.side-cat-list li a.is-active {
  background: var(--brand-sky);
  color: var(--brand-blue);
  font-weight: 600;
}

.count-pill {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-muted);
}

.side-tool-list li {
  margin-bottom: 8px;
}

.side-tool-list li a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid #dbeafe;
  font-size: 0.88rem;
  font-weight: 600;
}

.toc-widget {
  position: sticky;
  top: 88px;
}

.toc-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.875rem;
}

.toc-list li {
  margin-bottom: 7px;
}

.toc-list a {
  color: var(--ink-secondary);
}

.toc-list a:hover {
  color: var(--brand-blue);
}

.related-list li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
}

.related-list li:last-child {
  border-bottom: 0;
}

.related-list a {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  margin-bottom: 3px;
}

.related-list span {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* Article Detail */
.article-header-band {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 32px 0 34px;
}

.article-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.article-title {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  line-height: 1.35;
  color: var(--ink);
}

.article-subtitle {
  margin: 0;
  font-size: 1.02rem;
  color: var(--ink-muted);
}

.article-surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 34px;
  box-shadow: var(--shadow-sm);
}

.summary-callout {
  background: var(--brand-sky);
  border-left: 4px solid var(--brand-blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin-bottom: 26px;
}

.summary-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-blue);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.summary-callout p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-secondary);
}

.prose {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-secondary);
  overflow-wrap: anywhere;
}

.prose h2 {
  margin: 30px 0 12px;
  font-size: 1.3rem;
  color: var(--brand-navy);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--brand-sky);
  scroll-margin-top: 90px;
}

.prose h3 {
  margin: 22px 0 10px;
  font-size: 1.08rem;
  color: var(--ink);
}

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

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

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

.prose blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  background: var(--brand-amber-bg);
  border-left: 4px solid var(--brand-amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #7c2d12;
}

.prose .table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 480px;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}

.prose th {
  background: var(--bg);
  color: var(--brand-navy);
  font-weight: 700;
}

.article-tags-row {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.tags-label {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.article-disclaimer {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.adjacent-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.adj-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.adj-right {
  text-align: right;
}

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

.adj-item a {
  font-size: 0.92rem;
  font-weight: 600;
}

.adj-empty {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* Tool Pages */
.tools-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.tool-catalog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.tool-catalog-card h2 {
  margin: 0 0 10px;
  font-size: 1.22rem;
}

.tool-catalog-card h2 a {
  color: var(--brand-navy);
}

.tool-cat-desc {
  margin: 0 0 18px;
  color: var(--ink-secondary);
  font-size: 0.9375rem;
  flex: 1;
}

.tool-cat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.tool-scene {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.tool-workspace {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand-blue);
  border-radius: var(--radius-md);
  padding: 26px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.tool-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(20, 92, 168, 0.12);
}

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

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.tool-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.res-card {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}

.res-card.is-highlight {
  background: var(--brand-sky);
  border-color: #93c5fd;
}

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

.res-card strong {
  display: block;
  font-size: 1.25rem;
  color: var(--brand-navy);
}

.tool-insight {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--brand-amber-bg);
  border: 1px solid var(--brand-amber-border);
  color: #7c2d12;
  font-size: 0.9rem;
}

.prompt-output-wrap label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.prompt-output-wrap textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink);
  resize: vertical;
}

.copy-feedback {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #047857;
  min-height: 20px;
}

.plan-summary {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--brand-sky);
  color: var(--brand-navy);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.plan-phase {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}

.plan-phase h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--brand-navy);
}

.plan-phase p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-secondary);
}

.quiz-box {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.quiz-box h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: var(--brand-navy);
}

.quiz-item {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.quiz-q {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 0.93rem;
}

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

.quiz-opts button {
  text-align: left;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--ink);
}

.quiz-opts button.is-correct {
  background: #dcfce7;
  border-color: #16a34a;
  color: #14532d;
  font-weight: 600;
}

.quiz-opts button.is-wrong {
  background: #fee2e2;
  border-color: #dc2626;
  color: #7f1d1d;
}

.quiz-exp {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border-left: 3px solid var(--brand-blue);
  font-size: 0.86rem;
  color: var(--ink-secondary);
}

.tool-theory h2 {
  margin-top: 0;
}

/* History Page */
.announce-inline-card {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--brand-amber-bg);
  border: 1px solid var(--brand-amber-border);
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  color: #7c2d12;
}

.timeline-full {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.tl-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.tl-row.is-featured {
  border-left: 5px solid var(--brand-amber);
  background: linear-gradient(90deg, #fffaf5 0%, #ffffff 35%);
}

.tl-year {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-blue);
}

.tl-body h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  color: var(--brand-navy);
}

.tl-body p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.94rem;
}

.dual-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.info-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}

.info-panel h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--brand-navy);
}

.info-panel p {
  margin: 0 0 14px;
  color: var(--ink-secondary);
  font-size: 0.94rem;
}

/* Search & Empty State */
.big-search-form {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  max-width: 680px;
}

.big-search-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-family: inherit;
}

.hot-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.hot-search-row a {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--brand-sky);
  color: var(--brand-blue);
}

.empty-state {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 48px 24px;
}

.code-404 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1;
  margin-bottom: 12px;
}

.pagination {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.page-num {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 600;
}

.page-num.is-current {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 44px 20px 36px;
}

.footer-logo-wrap {
  display: inline-block;
  background: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.footer-logo {
  height: 36px;
  width: auto;
}

.footer-desc {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.7;
}

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

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
}

.footer-col a:hover {
  color: #fde68a;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0;
}

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

.footer-bottom-inner p {
  margin: 0;
}

.beian-wrap a {
  color: rgba(255, 255, 255, 0.82);
}

.beian-wrap a:hover {
  color: #fde68a;
  text-decoration: underline;
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
  .main-nav {
    display: none;
  }
  .header-search {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .heritage-banner,
  .content-with-sidebar,
  .dual-cards,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc-widget {
    position: static;
  }
}

@media (max-width: 680px) {
  .container {
    padding: 0 15px;
  }
  .brand-logo {
    height: 36px;
  }
  .hero-band {
    padding: 34px 0 38px;
  }
  .hero-metrics {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .tools-grid,
  .matrix-grid,
  .articles-grid,
  .tools-catalog-grid,
  .tool-form-grid,
  .tool-results,
  .plan-grid,
  .quiz-opts,
  .adjacent-nav {
    grid-template-columns: minmax(0, 1fr);
  }
  .adj-right {
    text-align: left;
  }
  .tl-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 18px;
  }
  .article-surface,
  .tool-workspace,
  .heritage-banner,
  .feed-item {
    padding: 20px 16px;
  }
  .big-search-form {
    flex-direction: column;
  }
  .section {
    padding: 36px 0;
  }
}
