:root {
  --bg-void: #0d0d0d;
  --bg-dark: #151515;
  --bg-card: #2a2a2a;
  --red-core: #d40000;
  --red-dim: #a50000;
  --gold: #c9a063;
  --gold-alpha: rgba(201, 160, 99, 0.25);
  --ivory: #f5f0e8;
  --text-body: #e8e1d8;
  --text-sub: #d8d8d8;
  --text-dim: #9e9e9e;
  --line-soft: #2a2a2a;
  --line-gold: rgba(201, 160, 99, 0.35);
  --rail-width: 280px;
  --header-height: 56px;
  --font-display: "SF Pro Display", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SF Mono", "Cascadia Mono", "Roboto Mono", "Consolas", "Liberation Mono", monospace;
  --content-max: 1200px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: auto;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-dark);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

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

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

::selection {
  background: var(--red-core);
  color: var(--ivory);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 999;
  background: var(--gold);
  color: var(--bg-void);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  padding: 10px 20px;
  border: 1px solid var(--gold);
  transition: top 0.2s ease;
}

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

.display-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 92px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ivory);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.display-title .title-accent {
  color: var(--red-core);
}

.lead-text {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-sub);
  max-width: 640px;
}

.prose {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--ivory);
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
}

.prose p {
  margin-bottom: 16px;
}

.prose li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 2px;
  background: var(--red-core);
}

#main-content {
  flex: 1 0 auto;
  min-width: 0;
}

.page-shell {
  padding: 40px 24px 96px;
}

.section-band {
  background: var(--bg-void);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 56px 24px;
}

.minute-mark {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.minute-mark::before,
.minute-mark::after {
  content: "";
  height: 2px;
}

.minute-mark::before {
  width: 40px;
  background: var(--gold);
  opacity: 0.7;
}

.minute-mark::after {
  flex: 1;
  background: var(--line-soft);
}

.tactics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  border-top: 2px solid var(--red-core);
  padding-top: 8px;
}

.panel-card {
  position: relative;
  background: var(--bg-dark);
  border: 1px solid var(--line-soft);
  border-radius: 0;
  padding: 24px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.panel-card::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  background: var(--red-core);
  margin-bottom: 16px;
}

.panel-card:hover {
  border-color: var(--line-gold);
  background: var(--bg-void);
}

.data-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.data-row .data-label {
  color: var(--text-dim);
  font-size: 13px;
}

.data-row .data-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: -0.01em;
}

.data-row .data-value--red {
  color: var(--red-core);
}

.tag-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line-gold);
  padding: 4px 12px;
  white-space: nowrap;
}

.tag-chip--red {
  color: var(--ivory);
  background: var(--red-core);
  border-color: var(--red-core);
}

.btn-primary,
.btn-ghost {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--red-core);
  border-color: var(--red-core);
  color: var(--ivory);
}

.btn-primary:hover {
  background: var(--red-dim);
  border-color: var(--red-dim);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-soft);
  color: var(--ivory);
}

.btn-ghost:hover {
  background: var(--red-core);
  border-color: var(--red-core);
  color: var(--ivory);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-sub);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--gold);
  border-color: var(--line-gold);
}

.crumb-sep {
  display: inline-block;
  color: var(--gold);
}

.crumb-sep::before {
  content: "/";
  margin-left: 8px;
}

.image-frame {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  aspect-ratio: 4 / 3;
}

.image-frame img,
.image-frame .frame-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold-alpha);
  pointer-events: none;
}

.image-frame--wide {
  aspect-ratio: 16 / 9;
}

.image-frame--tall {
  aspect-ratio: 3 / 4;
}

.image-frame--portrait {
  aspect-ratio: 4 / 5;
}

.frame-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, transparent 49%, var(--line-gold) 50%, transparent 51%),
    var(--bg-card);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-header {
  display: block;
  width: 100%;
  position: relative;
  z-index: 50;
}

.m-topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 16px;
  background: var(--bg-void);
  border-bottom: 1px solid var(--line-soft);
}

.m-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ivory);
}

.m-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--red-core);
  color: var(--ivory);
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-display);
}

.m-brand-text {
  white-space: nowrap;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--ivory);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-trigger:hover {
  border-color: var(--red-core);
  background: rgba(212, 0, 0, 0.08);
}

.trigger-text {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trigger-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 14px;
}

.trigger-line {
  display: block;
  height: 2px;
  background: var(--red-core);
  transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
}

.trigger-line:nth-child(1) {
  width: 100%;
}

.trigger-line:nth-child(2) {
  width: 80%;
}

.trigger-line:nth-child(3) {
  width: 60%;
}

.nav-trigger[aria-expanded="true"] .trigger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  width: 100%;
}

.nav-trigger[aria-expanded="true"] .trigger-line:nth-child(2) {
  opacity: 0;
}

.nav-trigger[aria-expanded="true"] .trigger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 100%;
}

.drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: 24px 20px 32px;
  background: var(--bg-void);
  border-bottom: 2px solid var(--red-core);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.drawer[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.drawer-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
}

.drawer-rule {
  flex: 1;
  height: 1px;
  background: var(--line-gold);
}

.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-soft);
  color: var(--text-dim);
  font-size: 22px;
  line-height: 1;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.drawer-close:hover {
  color: var(--ivory);
  border-color: var(--red-core);
  background: var(--red-core);
}

.drawer-nav {
  margin-top: 8px;
}

.drawer-list {
  display: grid;
  gap: 2px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.drawer-link:hover {
  background: rgba(212, 0, 0, 0.06);
  padding-left: 10px;
}

.drawer-link[aria-current="page"] {
  background: linear-gradient(90deg, rgba(212, 0, 0, 0.14), transparent);
  border-left: 3px solid var(--red-core);
  padding-left: 10px;
}

.drawer-num {
  width: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
}

.drawer-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ivory);
}

.drawer-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.drawer-foot a {
  font-size: 13px;
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.drawer-foot a:hover {
  color: var(--gold);
  border-color: var(--line-gold);
}

.rail {
  display: none;
}

.rail-brand {
  display: block;
  padding: 32px 28px 24px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}

.rail-brand::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 28px;
  width: 36px;
  height: 2px;
  background: var(--red-core);
}

.rail-cmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--red-core);
  color: var(--ivory);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 12px;
}

.rail-cname {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--ivory);
}

.rail-csub {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.rail-nav {
  flex: 1;
  padding: 28px 0;
}

.rail-list {
  display: flex;
  flex-direction: column;
}

.rail-item {
  position: relative;
}

.rail-link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 28px;
  color: var(--text-sub);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.rail-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--red-core);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.rail-link:hover {
  background: rgba(201, 160, 99, 0.05);
  color: var(--ivory);
}

.rail-link:hover .rail-index {
  color: var(--gold);
}

.rail-link[aria-current="page"] {
  background: linear-gradient(90deg, rgba(212, 0, 0, 0.18), transparent);
  color: var(--ivory);
}

.rail-link[aria-current="page"]::before {
  opacity: 1;
}

.rail-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.rail-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.rail-foot {
  padding: 24px 28px;
  border-top: 1px solid var(--line-soft);
}

.rail-line {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 16px;
}

.rail-year,
.rail-icp {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.rail-year {
  margin-bottom: 4px;
}

.rail-icp {
  font-size: 11px;
}

.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  pointer-events: none;
  background: transparent;
}

.progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--red-core) 0%, var(--gold) 100%);
}

.kit-footer {
  margin-top: auto;
  background: var(--bg-void);
  color: var(--text-sub);
}

.footer-topline {
  position: relative;
  height: 3px;
  background: var(--red-core);
}

.footer-topline::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 180px;
  height: 100%;
  background: var(--gold);
}

.footer-inner {
  display: grid;
  gap: 40px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 64px 24px 40px;
}

.footer-brand,
.footer-cluster,
.footer-meta {
  min-width: 0;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--red-core);
  color: var(--ivory);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--ivory);
  white-space: nowrap;
}

.footer-brand-desc {
  max-width: 460px;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dim);
}

.footer-title {
  position: relative;
  padding-left: 12px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  background: var(--red-core);
}

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

.footer-link {
  display: inline-block;
  padding: 2px 0;
  font-size: 14px;
  color: var(--text-sub);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-link:hover {
  color: var(--ivory);
  border-color: var(--line-gold);
}

.meta-icp,
.meta-address,
.meta-mail {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
  word-break: break-all;
}

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

.footer-legal-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 20px 24px;
  font-size: 13px;
  color: var(--text-dim);
}

.legal-copy,
.legal-trust {
  font-size: 13px;
  color: var(--text-dim);
}

@media (min-width: 768px) {
  .tactics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 56px;
    padding: 72px 40px 48px;
  }

  .footer-legal-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (min-width: 1024px) {
  .page-shell {
    margin-left: var(--rail-width);
    padding: 72px 64px 128px;
  }

  .section-band {
    margin-left: var(--rail-width);
    padding: 80px 64px;
  }

  .tactics-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .m-topbar {
    display: none;
  }

  .drawer {
    display: none;
  }

  .rail {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-width);
    z-index: 100;
    background: var(--bg-void);
    border-right: 1px solid var(--line-gold);
  }

  .progress-track {
    left: var(--rail-width);
  }

  .kit-footer {
    padding-left: var(--rail-width);
  }

  .footer-inner,
  .footer-legal-inner {
    padding-left: 64px;
    padding-right: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  html {
    scroll-behavior: auto;
  }

  .progress-fill {
    display: none;
  }
}
