:root {
  --bg-page: #f4f7fb;
  --bg-surface: #ffffff;
  --bg-alt: #edf3f9;
  --bg-ink: #0f2740;
  --brand: #1466a8;
  --brand-bright: #1b85c9;
  --brand-soft: #e6f2fb;
  --accent-gold: #b8892c;
  --accent-gold-bg: #fdf6e7;
  --accent-teal: #178072;
  --accent-teal-bg: #e7f6f3;
  --text-main: #182636;
  --text-body: #34475b;
  --text-muted: #66798e;
  --border: #dce5f0;
  --border-strong: #c5d4e5;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(15, 39, 64, 0.05);
  --shadow-md: 0 10px 28px rgba(15, 39, 64, 0.08);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", Georgia, serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--bg-page);
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--brand-bright);
}

h1, h2, h3, h4 {
  color: var(--text-main);
  margin: 0 0 0.6em;
  line-height: 1.32;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0;
  padding: 0;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(15, 39, 64, 0.04);
}

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

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

.brand-logo img {
  height: 48px;
  width: auto;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

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

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

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

.header-search:focus-within {
  border-color: var(--brand-bright);
  box-shadow: 0 0 0 3px rgba(27, 133, 201, 0.12);
  background: #fff;
}

.header-search input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 13.5px;
  color: var(--text-main);
}

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

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

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
}

.mobile-drawer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 16px 0 20px;
}

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

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 14px;
}

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

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

.mobile-nav-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-page);
  color: var(--text-main);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}

.mobile-nav-list a.is-active {
  background: var(--brand);
  color: #fff;
}

/* Announcement Bar (directly below header nav on homepage) */
.announce-bar {
  background: linear-gradient(90deg, #0f2f50 0%, #1466a8 60%, #1b85c9 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

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

.announce-badge {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.announce-text {
  margin: 0;
  font-size: 14px;
  color: #f4f9ff;
  flex: 1;
  min-width: 200px;
}

.announce-link {
  color: #ffe8a3;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.announce-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-bright) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(20, 102, 168, 0.24);
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.06);
}

.btn-outline {
  background: #fff;
  border-color: var(--border-strong);
  color: var(--text-main);
}

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

.btn-sm {
  padding: 8px 14px;
  font-size: 13.5px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 8px;
}

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

.btn-block {
  width: 100%;
}

/* Hero */
.hero-section {
  background: linear-gradient(180deg, #ffffff 0%, #eef5fc 100%);
  border-bottom: 1px solid var(--border);
  padding: 46px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-bright);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--bg-ink);
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 15.5px;
  color: var(--text-body);
  margin-bottom: 24px;
  max-width: 580px;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.stat-item strong {
  display: block;
  font-size: 20px;
  color: var(--brand);
  line-height: 1.2;
}

.stat-item span {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-art-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-art-card > img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-pulse-list {
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pulse-header {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pulse-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.45;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg-page);
}

.pulse-item:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.tag {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 1px;
}

.tag-gold { background: var(--accent-gold-bg); color: var(--accent-gold); }
.tag-blue { background: var(--brand-soft); color: var(--brand); }
.tag-teal { background: var(--accent-teal-bg); color: var(--accent-teal); }

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

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-bright);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.5vw, 28px);
  margin: 0;
}

.link-more {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* Quick Workbench Strip */
.quick-workbench {
  padding: 32px 0 12px;
}

.workbench-banner {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}

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

.wb-head h2 {
  font-size: 21px;
  margin: 0;
}

.wuxing-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.wx-pill {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-page);
  color: var(--text-main);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.wx-pill:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.wx-pill.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(20, 102, 168, 0.25);
}

.wx-panel {
  background: linear-gradient(135deg, #f4f9ff 0%, #f9fbfd 100%);
  border: 1px solid #d2e4f5;
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.wx-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.wx-badge {
  background: var(--brand);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
}

.wx-panel p {
  margin: 0;
  font-size: 14.5px;
}

/* Featured Cards */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e9f2fa;
}

.feature-thumb img {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
}

.card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 39, 64, 0.84);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
}

.feature-body {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.feature-title {
  font-size: 17px;
  line-height: 1.42;
  margin-bottom: 10px;
}

.feature-title a {
  color: var(--text-main);
}

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

.feature-summary {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.feature-foot {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  padding-top: 10px;
  border-top: 1px solid var(--bg-alt);
}

/* Category Hubs */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hub-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

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

.hub-head h3 {
  font-size: 18px;
  margin-bottom: 3px;
}

.hub-head h3 a {
  color: var(--bg-ink);
}

.hub-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.hub-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.hub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.hub-list a {
  color: var(--text-body);
  line-height: 1.45;
}

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

.hub-date {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Timeline Mini Strip */
.timeline-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tl-mini-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.tl-era {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold);
  background: var(--accent-gold-bg);
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.tl-mini-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.tl-protag {
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 8px;
}

.tl-brief {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

/* Latest List */
.latest-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.latest-row {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.latest-main {
  flex: 1;
  min-width: 0;
}

.latest-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pill-cat {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.latest-row h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.latest-row h3 a {
  color: var(--text-main);
}

.latest-row h3 a:hover {
  color: var(--brand);
}

.latest-row p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.latest-action {
  flex-shrink: 0;
}

/* Page Banner & Breadcrumb */
.page-banner {
  background: linear-gradient(180deg, #ffffff 0%, #ebf3fc 100%);
  border-bottom: 1px solid var(--border);
  padding: 34px 0 28px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.page-banner h1 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 10px;
}

.banner-desc {
  max-width: 780px;
  color: var(--text-body);
  font-size: 15px;
  margin-bottom: 18px;
}

.cat-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.switch-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border-strong);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-body);
}

.switch-pill.is-active,
.switch-pill:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Two-Column Archive & Sidebar */
.layout-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.archive-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.archive-thumb {
  border-radius: 10px;
  overflow: hidden;
  display: block;
}

.archive-body h2 {
  font-size: 19px;
  margin-bottom: 8px;
}

.archive-body h2 a {
  color: var(--text-main);
}

.archive-body h2 a:hover {
  color: var(--brand);
}

.archive-body p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

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

.tag-chip {
  display: inline-block;
  font-size: 12.5px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  color: var(--text-body);
}

.tag-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

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

.side-widget h3 {
  font-size: 16.5px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.widget-tool {
  background: linear-gradient(155deg, #0f2f50 0%, #1466a8 100%);
  color: #fff;
  border-color: transparent;
}

.widget-tool h3 {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.widget-tool p {
  font-size: 14px;
  color: #e4f0fb;
}

.side-rank {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.side-rank li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.rank-num {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.side-note {
  font-size: 14px;
  color: var(--text-muted);
}

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

.page-btn {
  min-width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.page-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Article Detail */
.article-hero {
  background: linear-gradient(180deg, #ffffff 0%, #eef5fc 100%);
  border-bottom: 1px solid var(--border);
  padding: 32px 0 26px;
}

.article-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.32;
  margin-bottom: 14px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.layout-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 30px;
  align-items: start;
}

.article-main {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.article-lead-box {
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  font-size: 15px;
  color: var(--bg-ink);
  margin-bottom: 22px;
}

.article-cover {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.article-cover img {
  width: 100%;
  max-height: 290px;
  object-fit: cover;
}

.article-content {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-body);
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  margin: 1.8em 0 0.7em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-soft);
  scroll-margin-top: 86px;
}

.article-content h3 {
  font-size: 18px;
  margin: 1.4em 0 0.55em;
  color: var(--brand);
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.2em 1.35em;
}

.article-content li {
  margin-bottom: 0.45em;
}

.article-content blockquote {
  margin: 1.2em 0;
  padding: 14px 18px;
  background: var(--accent-gold-bg);
  border-left: 4px solid var(--accent-gold);
  border-radius: 0 10px 10px 0;
  color: #543e12;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.tags-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.article-cta-box {
  margin-top: 26px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f1f7fd 0%, #e7f2fb 100%);
  border: 1px solid #c9dff4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.article-cta-box h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.article-cta-box p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.article-pager {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.pager-item {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-page);
}

.pager-item:hover {
  border-color: var(--brand);
  background: #fff;
}

.pager-item.is-empty {
  opacity: 0.65;
}

.pager-dir {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pager-item strong {
  font-size: 14.5px;
  color: var(--text-main);
  display: block;
}

.pager-next {
  text-align: right;
}

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

.toc-list,
.related-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-list a {
  display: block;
  font-size: 14px;
  color: var(--text-body);
  padding: 4px 8px;
  border-left: 2px solid transparent;
}

.toc-list a:hover {
  color: var(--brand);
  border-left-color: var(--brand);
  background: var(--brand-soft);
}

.related-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}

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

.rel-cat {
  font-size: 11.5px;
  color: var(--brand);
  font-weight: 700;
}

.related-list a {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.45;
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 18px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.data-table,
.article-content table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 14.5px;
}

.data-table th,
.data-table td,
.article-content th,
.article-content td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table thead th,
.article-content thead th {
  background: #f0f6fc;
  color: var(--bg-ink);
  font-weight: 700;
  white-space: nowrap;
}

.data-table tbody tr:last-child td,
.article-content tbody tr:last-child td {
  border-bottom: 0;
}

/* Tools Page */
.tool-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
}

.tool-card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tool-card-head h2 {
  font-family: var(--font-serif);
  font-size: 23px;
  margin: 0;
}

.tool-hint {
  font-size: 13px;
  color: var(--text-muted);
}

.tool-intro {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.sim-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
  align-items: end;
}

.sim-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.sim-field select,
.sim-field input,
.dungeon-filter input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-main);
  background: #fff;
}

.dungeon-filter {
  width: 280px;
  max-width: 100%;
}

.sim-result {
  background: linear-gradient(135deg, #f5faff 0%, #f9fbfd 100%);
  border: 1px solid #cce0f4;
  border-radius: var(--radius-md);
  padding: 20px;
}

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

.sim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.sim-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.sim-box h4 {
  font-size: 14px;
  color: var(--brand);
  margin-bottom: 6px;
}

.sim-box p {
  font-size: 13.8px;
  margin: 0;
}

.prompt-output-wrap textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-main);
  background: #fafcff;
  resize: vertical;
}

.prompt-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.copy-status {
  font-size: 13.5px;
  color: var(--accent-teal);
  font-weight: 600;
}

.related-strip {
  margin-top: 32px;
}

.related-strip h3 {
  font-size: 19px;
  margin-bottom: 14px;
}

.mini-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mini-guide-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: block;
  box-shadow: var(--shadow-sm);
}

.mini-guide-card:hover {
  border-color: var(--brand);
}

.mini-guide-card strong {
  display: block;
  font-size: 16px;
  color: var(--text-main);
  margin: 8px 0 6px;
}

.mini-guide-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

/* Timeline & Character Page */
.chronicle-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chronicle-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.chronicle-marker {
  display: flex;
  justify-content: center;
  padding-top: 14px;
}

.marker-index {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(20, 102, 168, 0.25);
}

.chronicle-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

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

.chronicle-year {
  font-size: 13px;
  color: var(--text-muted);
}

.chronicle-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: 8px;
}

.chronicle-protag,
.chronicle-brief,
.chronicle-link-note {
  font-size: 14.5px;
  margin-bottom: 8px;
}

.chronicle-link-note {
  margin-bottom: 0;
  padding: 10px 14px;
  background: var(--bg-page);
  border-radius: 8px;
  color: var(--text-body);
}

.char-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.char-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

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

.char-head h3 {
  font-size: 19px;
  margin-bottom: 2px;
}

.char-title {
  font-size: 13px;
  color: var(--accent-gold);
  font-weight: 600;
}

.char-work,
.char-weapon,
.char-bio {
  font-size: 14px;
  margin-bottom: 8px;
}

.char-bio {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Search & 404 */
.big-search-form {
  display: flex;
  gap: 10px;
  max-width: 680px;
  margin: 14px 0 14px;
}

.big-search-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 15px;
}

.hot-kw-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.search-summary {
  margin-bottom: 18px;
  font-size: 15px;
}

.empty-box {
  background: #fff;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  color: var(--text-muted);
}

.notfound-box {
  text-align: center;
  max-width: 780px;
}

.notfound-code {
  display: inline-block;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
  margin-bottom: 12px;
}

/* Footer */
.site-footer {
  background: var(--bg-ink);
  color: #cbd8e6;
  margin-top: 32px;
}

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

.footer-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 14px;
  color: #a9bfd6;
  margin-bottom: 14px;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-tags a {
  font-size: 12.5px;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #dbe9f7;
}

.footer-tags a:hover {
  background: var(--brand-bright);
  color: #fff;
}

.footer-col h4 {
  color: #fff;
  font-size: 15.5px;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: #b4c8de;
  font-size: 14px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  font-size: 13px;
  color: #93abc4;
}

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

.footer-bottom p {
  margin: 0;
}

.footer-legal a {
  color: #c9ddf2;
}

.footer-legal .sep {
  margin: 0 8px;
  opacity: 0.5;
}

/* Responsive Breakpoints */
@media (max-width: 1040px) {
  .main-nav,
  .header-search {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .hero-grid,
  .layout-two-col,
  .layout-article {
    grid-template-columns: 1fr;
  }
  .featured-grid,
  .hub-grid,
  .timeline-strip,
  .char-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sim-controls,
  .sim-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 14px;
  }
  .brand-logo img {
    height: 40px;
  }
  .hero-section {
    padding: 28px 0 30px;
  }
  .section {
    padding: 34px 0;
  }
  .featured-grid,
  .hub-grid,
  .timeline-strip,
  .char-grid,
  .mini-card-grid,
  .article-pager,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .archive-card {
    grid-template-columns: 1fr;
  }
  .latest-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
  .article-main {
    padding: 20px 16px;
    border-radius: 14px;
  }
  .tool-card,
  .workbench-banner {
    padding: 18px 16px;
  }
  .chronicle-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .chronicle-marker {
    justify-content: flex-start;
    padding-top: 0;
  }
  .big-search-form {
    flex-direction: column;
  }
  .hero-stats {
    gap: 8px;
  }
  .stat-item strong {
    font-size: 17px;
  }
}
