@charset "UTF-8";

/* ==========================================================================
   Eks 技术站 · 现代工程美学 & 战术遥测设计系统 (V2.0 PRO)
   ========================================================================== */

:root[data-theme="dark"], :root {
  --theme: dark;
  --bg-base: #070A0E;
  --bg-surface: #0C1117;
  --bg-card: #111822;
  --bg-card-hover: #16202C;
  --bg-elevated: #1A2433;
  --bg-inset: #080D13;

  --border-subtle: #1E293B;
  --border-medium: #334155;
  --border-bright: #475569;
  --border-accent: rgba(16, 185, 129, 0.4);

  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #8292A6;
  --text-dim: #4B5A6E;

  --emerald: #10B981;
  --emerald-dim: #065F46;
  --emerald-glow: rgba(16, 185, 129, 0.15);
  --orange: #F97316;
  --orange-dim: #9A3412;
  --orange-glow: rgba(249, 115, 22, 0.16);
  --amber: #F59E0B;
  --cyan: #38BDF8;

  --grid-line: rgba(30, 41, 59, 0.45);
  --grid-dot: rgba(51, 65, 85, 0.6);
  --hud-scanline: rgba(16, 185, 129, 0.03);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.15);
  --shadow-orange: 0 0 25px rgba(249, 115, 22, 0.15);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

:root[data-theme="light"] {
  --theme: light;
  --bg-base: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --bg-elevated: #E2E8F0;
  --bg-inset: #EEF2F6;

  --border-subtle: #E2E8F0;
  --border-medium: #CBD5E1;
  --border-bright: #94A3B8;
  --border-accent: rgba(5, 150, 105, 0.5);

  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-dim: #94A3B8;

  --emerald: #059669;
  --emerald-dim: #D1FAE5;
  --emerald-glow: rgba(5, 150, 105, 0.12);
  --orange: #EA580C;
  --orange-dim: #FFEDD5;
  --orange-glow: rgba(234, 88, 12, 0.12);
  --amber: #D97706;
  --cyan: #0284C7;

  --grid-line: rgba(226, 232, 240, 0.85);
  --grid-dot: rgba(203, 213, 225, 0.9);
  --hud-scanline: rgba(0, 0, 0, 0.015);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 20px rgba(5, 150, 105, 0.1);
  --shadow-orange: 0 0 20px rgba(234, 88, 12, 0.1);
}

/* ==========================================================================
   Base & Global Engineering Layout
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(var(--grid-dot) 1px, transparent 1px),
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px, 120px 120px, 120px 120px;
  background-position: 0 0, 0 0, 0 0;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}

::selection {
  background: var(--emerald);
  color: #FFFFFF;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
}

button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
  border-radius: 4px;
}

svg {
  display: block;
}

.mono {
  font-family: var(--font-mono);
}

.shell {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  background: var(--emerald);
  color: #FFFFFF;
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 6px;
  z-index: 1000;
  transition: top 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.skip-link:focus {
  top: 16px;
}

[hidden] {
  display: none !important;
}

/* ==========================================================================
   Discipline Matrix & Formula Callouts
   ========================================================================== */

.discipline-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}

.discipline-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
}

.discipline-pill.physics { border-color: rgba(56, 189, 248, 0.4); color: var(--cyan); background: rgba(56, 189, 248, 0.08); }
.discipline-pill.math { border-color: rgba(16, 185, 129, 0.4); color: var(--emerald); background: var(--emerald-glow); }
.discipline-pill.cosmology { border-color: rgba(245, 158, 11, 0.4); color: var(--amber); background: rgba(245, 158, 11, 0.08); }
.discipline-pill.philosophy { border-color: rgba(249, 115, 22, 0.4); color: var(--orange); background: var(--orange-glow); }

.formula-card {
  margin: 22px 0;
  padding: 16px 20px;
  background: var(--bg-inset);
  border: 1px solid var(--border-medium);
  border-left: 3px solid var(--cyan);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.8;
}

.formula-card .formula-title {
  font-size: 10.5px;
  color: var(--cyan);
  letter-spacing: 1px;
  margin-bottom: 6px;
  font-weight: 600;
}

.phil-callout {
  margin: 22px 0;
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--orange);
  border-radius: 6px;
  font-size: 13.5px;
  line-height: 1.85;
}

.phil-callout strong {
  display: block;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--orange);
  margin-bottom: 6px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(12, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.25s, border-color 0.25s;
}

:root[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.88);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.brand-mark span {
  color: var(--orange);
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--emerald), transparent);
}

.brand-text strong {
  display: block;
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: 0.3px;
  color: var(--text-primary);
}

.brand-text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  transition: all 0.15s ease;
}

.desktop-nav a .nav-idx {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
}

.desktop-nav a:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.desktop-nav a.active {
  color: var(--emerald);
  background: var(--emerald-glow);
  font-weight: 600;
}

.desktop-nav a.active .nav-idx {
  color: var(--emerald);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-open {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12.5px;
  transition: all 0.15s ease;
}

.search-open:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.search-open svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  color: var(--text-secondary);
  line-height: 1;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; color: var(--amber); }

:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; color: var(--cyan); }

.theme-label {
  font-size: 10px;
  letter-spacing: 1px;
}

.menu-toggle {
  display: none;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}
.menu-toggle svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-primary);
  stroke-width: 2;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 0 20px;
  border-top: 1px solid var(--border-subtle);
  gap: 4px;
}

.mobile-nav a {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mobile-nav a.active {
  background: var(--emerald-glow);
  color: var(--emerald);
  font-weight: 600;
}

/* ==========================================================================
   Hero Section / Intro
   ========================================================================== */

main {
  min-height: calc(100vh - 350px);
  padding-bottom: 70px;
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

main:focus,
main:focus-visible {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.hero-banner {
  padding: 44px 0 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  gap: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-family: var(--font-mono);
  letter-spacing: 1.5px;
  color: var(--emerald);
  margin-bottom: 12px;
  background: var(--emerald-glow);
  border: 1px solid var(--emerald-dim);
  padding: 3px 10px;
  border-radius: 4px;
}

.hero-title {
  font-size: 36px;
  font-weight: 750;
  line-height: 1.28;
  letter-spacing: -0.5px;
  margin: 0;
  color: var(--text-primary);
}

.hero-title .glow-word {
  color: var(--emerald);
  text-shadow: 0 0 24px rgba(16, 185, 129, 0.35);
}

.hero-desc {
  max-width: 440px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.8;
  text-align: right;
}

.hero-specs {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 10px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

/* ==========================================================================
   Featured Topic: Worms Online CAD Card
   ========================================================================== */

.feature-cad {
  margin-top: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-cad::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--emerald), var(--amber), var(--orange));
}

.feature-cad:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.cad-info {
  padding: 38px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.cad-badge-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.cad-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 1px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 4px;
}

.cad-badge.orange {
  border-color: var(--orange-dim);
  background: var(--orange-glow);
  color: var(--orange);
}

.cad-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 14px;
}

.cad-title em {
  font-style: normal;
  color: var(--emerald);
}

.cad-summary {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 26px;
}

.cad-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Precision Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--emerald);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  background: #0ea572;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
  background: var(--bg-surface);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--border-bright);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text-muted);
  padding: 8px 12px;
}

.btn-ghost:hover {
  color: var(--emerald);
  background: var(--emerald-glow);
}

.cad-media {
  background: var(--bg-inset);
  border-left: 1px solid var(--border-subtle);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cad-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cad-telemetry-overlay {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(8, 13, 19, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

/* ==========================================================================
   Interactive Ballistic Simulator (前沿交互实验室组件)
   ========================================================================== */

.simulator-box {
  margin: 36px 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px 28px;
  position: relative;
  box-shadow: var(--shadow-md);
}

.simulator-box::before {
  content: "LAB INSTRUMENT // 弹道动力学拟合器";
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--bg-base);
  border: 1px solid var(--border-medium);
  color: var(--emerald);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 1px;
  padding: 1px 8px;
  border-radius: 3px;
}

.simulator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.simulator-title {
  font-size: 16px;
  font-weight: 650;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.simulator-title span {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.simulator-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: center;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slider-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
}

.slider-val {
  font-family: var(--font-mono);
  color: var(--emerald);
  font-weight: 600;
}

.slider-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  outline: none;
}

.slider-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--emerald);
  cursor: pointer;
  border: 2px solid var(--bg-surface);
  box-shadow: 0 0 6px var(--emerald);
  transition: transform 0.1s;
}

.slider-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--emerald);
  cursor: pointer;
  border: 2px solid var(--bg-surface);
  box-shadow: 0 0 6px var(--emerald);
}

.sim-display {
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  aspect-ratio: 2.1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sim-display svg {
  width: 100%;
  height: 100%;
}

.sim-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 10px 12px;
}

.metric-label {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.metric-val {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  margin-top: 3px;
}

.metric-val.green { color: var(--emerald); }
.metric-val.amber { color: var(--amber); }
.metric-val.orange { color: var(--orange); }

/* ==========================================================================
   Content Layout: 2-Column Research Feed
   ========================================================================== */

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  margin-top: 40px;
}

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

.section-head h2 {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
}

.section-head h2 small {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: 1px;
}

.section-head a {
  font-size: 12.5px;
  color: var(--text-muted);
}
.section-head a:hover {
  color: var(--emerald);
}

/* Category Filter Pills */
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.filter:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background: var(--bg-elevated);
}

.filter[aria-pressed="true"] {
  background: var(--emerald-glow);
  border-color: var(--emerald);
  color: var(--emerald);
  font-weight: 600;
}

/* Post Cards */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 24px;
  gap: 24px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 20px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.post:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--bg-card-hover);
}

.post-visual {
  aspect-ratio: 1.25;
  border-radius: 6px;
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.post-visual svg {
  width: 100%;
  height: 100%;
  padding: 10px;
}

.post-visual::after {
  content: attr(data-code);
  position: absolute;
  bottom: 5px;
  left: 7px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.8px;
  color: var(--text-dim);
}

.post-category {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 6px;
}

.post-category .game-name {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-dim);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1px 6px;
  border-radius: 3px;
}

.post h3 {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.45;
  color: var(--text-primary);
  margin: 0;
  transition: color 0.15s;
}

.post:hover h3 {
  color: var(--emerald);
}

.post p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 6px 0 0;
  max-width: 580px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-top: 10px;
}

.post-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-bright);
}

.post-arrow {
  font-size: 18px;
  color: var(--text-dim);
  transition: transform 0.2s, color 0.2s;
}

.post:hover .post-arrow {
  color: var(--emerald);
  transform: translate(3px, -3px);
}

/* ==========================================================================
   Sidebar: Author Spec & Learning Tracks
   ========================================================================== */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.author-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 22px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.author-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: bold;
  color: var(--emerald);
  position: relative;
}

.avatar::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: var(--orange);
  border: 2px solid var(--bg-card);
  border-radius: 50%;
}

.author-title strong {
  display: block;
  font-size: 14.5px;
  color: var(--text-primary);
}

.author-title small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-top: 2px;
}

.author-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

.about-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11.5px;
  color: var(--emerald);
  font-weight: 500;
}
.about-link:hover {
  text-decoration: underline;
}

.side-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 20px;
}

.side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 650;
  margin: 0 0 14px;
  color: var(--text-primary);
}

.side-title span {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 1px;
  font-weight: 400;
}

.learning-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-subtle);
  font-size: 12px;
  color: var(--text-secondary);
  transition: all 0.15s;
}

.learning-step:last-child {
  border-bottom: none;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--emerald);
  font-weight: 600;
}

.learning-step:hover {
  color: var(--emerald);
  transform: translateX(3px);
}

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

.tag-list button, .tag-list a {
  font-size: 11px;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all 0.15s ease;
}

.tag-list button:hover, .tag-list a:hover {
  border-color: var(--border-medium);
  background: var(--bg-elevated);
  color: var(--emerald);
}

/* Notice box */
.subtle-notice {
  margin-top: 24px;
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--bg-surface);
  border-left: 3px solid var(--amber);
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Article Reading Page (沉浸式工程报告排版)
   ========================================================================== */

.page-heading {
  padding: 40px 0 24px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-bottom: 18px;
}

.breadcrumbs a:hover {
  color: var(--emerald);
}

.article-heading h1 {
  font-size: 34px;
  font-weight: 750;
  line-height: 1.35;
  margin: 12px 0 16px;
  color: var(--text-primary);
}

.article-deck {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 760px;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  font-size: 11.5px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 50px;
  padding: 32px 0 60px;
  border-top: 1px solid var(--border-subtle);
}

.article-body {
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-secondary);
}

.article-body .lead {
  font-size: 16.5px;
  color: var(--text-primary);
  line-height: 1.9;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  scroll-margin-top: 90px;
}

.article-body h2 span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--emerald);
}

.article-body p {
  margin: 18px 0;
}

.article-body ul, .article-body ol {
  padding-left: 24px;
  margin: 18px 0;
}

.article-body li {
  margin: 8px 0;
}

.article-body strong {
  color: var(--text-primary);
}

.article-body figure {
  margin: 32px 0;
}

.article-body figure img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.article-body figcaption {
  text-align: center;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-top: 10px;
}

.callout {
  margin: 26px 0;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--emerald);
  border-radius: 8px;
  font-size: 13.5px;
}

.callout strong {
  display: block;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--emerald);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 26px 0;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}

.article-body th {
  background: var(--bg-card);
  color: var(--text-primary);
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-medium);
}

.article-body td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.article-body blockquote {
  margin: 28px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--orange);
  background: var(--bg-surface);
  border-radius: 0 8px 8px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  font-style: italic;
}

/* Article Sidebar / TOC */
.article-side {
  position: sticky;
  top: 90px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.toc-label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  letter-spacing: 1px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.toc button {
  text-align: left;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.toc button span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
}

.toc button:hover, .toc button.active {
  color: var(--emerald);
  background: var(--emerald-glow);
}

.side-draft {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.7;
}

.article-end {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.related-label {
  font-size: 10.5px;
  font-family: var(--font-mono);
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin: 36px 0 10px;
}

.related-link {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: color 0.15s;
}

.related-link:hover {
  color: var(--emerald);
}

/* ==========================================================================
   About Page (工程准则与个人技术档案)
   ========================================================================== */

.about-page {
  padding: 36px 0 60px;
}

.about-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  margin-top: 20px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.about-monogram {
  font-family: Georgia, serif;
  font-size: 110px;
  font-weight: 700;
  line-height: 1;
  color: var(--emerald);
  opacity: 0.85;
}

.about-card h1 {
  font-size: 30px;
  font-weight: 750;
  margin: 8px 0 16px;
  color: var(--text-primary);
}

.about-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.9;
  margin: 14px 0;
}

.about-card h2 {
  font-size: 18px;
  font-weight: 650;
  margin: 28px 0 12px;
  color: var(--text-primary);
}

.about-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.about-bottom > div {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 24px;
}

.about-bottom small {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--emerald);
}

.about-bottom h3 {
  font-size: 16px;
  font-weight: 650;
  margin: 10px 0 8px;
  color: var(--text-primary);
}

.about-bottom p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

/* ==========================================================================
   Command Palette & Search Dialog
   ========================================================================== */

dialog {
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-primary);
  width: min(640px, calc(100% - 32px));
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 0, 0, 0.6);
  max-height: 85vh;
  overflow: auto;
}

dialog::backdrop {
  background: rgba(5, 8, 12, 0.75);
  backdrop-filter: blur(8px);
}

.search-dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.search-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-badge {
  font-size: 9px;
  color: var(--emerald);
  letter-spacing: 1.5px;
}

.search-dialog-top h2 {
  font-size: 17px;
  font-weight: 650;
  margin: 0;
}

.icon-button {
  font-size: 22px;
  line-height: 1;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
}
.icon-button:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-medium);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input-wrap:focus-within {
  border-color: var(--emerald);
  box-shadow: 0 0 12px var(--emerald-glow);
}

.search-input-wrap svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-dim);
  stroke-width: 2;
  fill: none;
}

.search-input-wrap input {
  width: 100%;
  border: none;
  background: none;
  color: var(--text-primary);
  font-size: 14.5px;
  outline: none;
}

.search-quick-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  flex-wrap: wrap;
  font-size: 11px;
}

.search-quick-tags span {
  color: var(--text-dim);
}

.search-quick-tags button {
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: 4px;
  transition: all 0.15s;
}

.search-quick-tags button:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.search-count {
  font-size: 11px;
  color: var(--text-dim);
  margin: 16px 0 8px;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 380px;
  overflow-y: auto;
}

.search-result {
  display: block;
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.15s ease;
}

.search-result:hover, .search-result.selected {
  background: var(--bg-elevated);
  border-color: var(--emerald);
  transform: translateX(2px);
}

.search-result strong {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
}

.search-result span {
  display: block;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: 4px;
}

.search-dialog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 10px;
  color: var(--text-dim);
}

/* ==========================================================================
   Footer & Bottom Architectural Specs
   ========================================================================== */

.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.brand-mark-sm {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  font-family: Georgia, serif;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}
.brand-mark-sm span { color: var(--orange); }

.tiny-square {
  width: 6px;
  height: 6px;
  background: var(--emerald);
  display: inline-block;
  border-radius: 1px;
}

.footer-tagline {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
  max-width: 380px;
  line-height: 1.8;
}

.footer-specs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 8px;
}

.footer-col-title {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--emerald);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--text-dim);
}

.beian-link {
  color: var(--text-secondary);
  font-family: var(--font-mono);
}
.beian-link:hover {
  color: var(--emerald);
}

/* Back to Top & Reading Progress Bar */
.back-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  color: var(--emerald);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 80;
  transition: all 0.15s ease;
}
.back-top:hover {
  background: var(--emerald);
  color: #FFFFFF;
  border-color: var(--emerald);
  transform: translateY(-2px);
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--emerald), var(--amber), var(--orange));
  z-index: 100;
  transition: width 0.08s linear;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-banner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero-desc {
    text-align: left;
    max-width: none;
  }
  .hero-specs {
    justify-content: flex-start;
  }
  .feature-cad {
    grid-template-columns: 1fr;
  }
  .cad-media {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
  }
  .content-layout {
    grid-template-columns: 1fr;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-side {
    position: static;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 20px;
  }
  .toc {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .simulator-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .shell {
    width: calc(100% - 32px);
  }
  .desktop-nav, .search-open kbd {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .hero-title {
    font-size: 28px;
  }
  .post {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .post-visual {
    aspect-ratio: 2.4;
  }
  .post-arrow {
    display: none;
  }
  .sim-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-bottom {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
