:root {
  --bg-primary: #0A0E17;
  --bg-elevated: #1A202B;
  --bg-card: #111722;
  --bg-overlay: rgba(10, 14, 23, 0.86);
  --accent-green: #39FF14;
  --accent-orange: #FF4500;
  --accent-gold: #FFD700;
  --text-primary: #FFFFFF;
  --text-secondary: #B0B5BD;
  --border-muted: #3A3F4A;
  --font-heading: "Archivo Black", "DIN Condensed", "Noto Sans SC Black", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-number: "Roboto Mono", "JetBrains Mono", "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  --container-max: 1280px;
  --header-h: 72px;
  --radius-pill: 999px;
  --radius-card: 14px;
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow-green: 0 4px 20px rgba(57, 255, 20, 0.18);
  --ease: 0.25s ease;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1;
}

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

a {
  color: var(--accent-green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  list-style-position: inside;
}

address {
  font-style: normal;
}

button {
  font-family: inherit;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 2000;
  background: var(--accent-green);
  color: var(--bg-primary);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.3s var(--ease);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-overlay);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-block {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.2;
  flex-shrink: 0;
}

.brand-block:hover {
  text-decoration: none;
}

.brand-mark {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--accent-green);
  padding: 4px 10px 4px 8px;
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid rgba(57, 255, 20, 0.35);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.nav-capsule {
  display: flex;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.nav-capsule-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-pill);
  padding: 6px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.nav-link {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1.4;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transform: translateY(-1px);
}

.nav-link[aria-current="page"] {
  color: var(--bg-primary);
  background: var(--accent-green);
  font-weight: 700;
}

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

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-green);
  color: var(--bg-primary);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: var(--shadow-glow-green);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}

.btn-cta::before {
  content: "▸";
  font-family: var(--font-number);
  font-size: 16px;
  line-height: 1;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(57, 255, 20, 0.35);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  padding: 0;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--accent-green);
  background: rgba(57, 255, 20, 0.06);
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent-green);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-gold));
  z-index: 2000;
  pointer-events: none;
}

.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-muted);
  position: relative;
  overflow: hidden;
}

.foot-skew {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-green) 0%, var(--accent-orange) 55%, var(--accent-gold) 100%);
  transform: skewX(-30deg);
  transform-origin: left top;
}

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

.footer-brand .brand-block {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 18px;
}

.footer-brand .brand-name {
  font-size: 26px;
}

.footer-trust {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 340px;
  margin-bottom: 18px;
}

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

.tag-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  line-height: 1.5;
  border: 1px solid transparent;
}

.tag-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.tag-green {
  background: rgba(57, 255, 20, 0.12);
  color: var(--accent-green);
  border-color: rgba(57, 255, 20, 0.3);
}

.tag-red {
  background: rgba(255, 69, 0, 0.15);
  color: var(--accent-orange);
  border-color: rgba(255, 69, 0, 0.3);
}

.tag-amber {
  background: rgba(255, 215, 0, 0.12);
  color: var(--accent-gold);
  border-color: rgba(255, 215, 0, 0.3);
}

.footer-col {
  min-width: 0;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-heading::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 10px;
  background: var(--accent-green);
  transform: skewX(-18deg);
  flex-shrink: 0;
}

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

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  display: inline-block;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.footer-link:hover {
  color: var(--accent-green);
  padding-left: 4px;
  text-decoration: none;
}

.footer-address {
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-email {
  display: block;
  font-family: var(--font-number);
  font-size: 14px;
  color: var(--accent-green);
  line-height: 1.4;
}

.footer-phone {
  display: block;
  font-family: var(--font-number);
  font-size: 18px;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.footer-address-line {
  display: block;
  line-height: 1.7;
  color: var(--text-secondary);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-muted);
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-meta span {
  display: inline-block;
}

.footer-icp {
  color: var(--accent-gold);
  letter-spacing: 0.05em;
}

.footer-note {
  width: 100%;
  font-size: 12px;
  opacity: 0.8;
}

.container-page {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 48px 24px;
}

.section-heading {
  margin: 0 0 32px;
}

.section-heading .section-kicker {
  margin-bottom: 12px;
}

.section-kicker {
  display: inline-block;
  background: var(--accent-orange);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 4px 18px 4px 20px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-muted);
}

.crumb-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.crumb-link:hover {
  color: var(--accent-green);
  text-decoration: none;
}

.crumb-current,
.crumb-link[aria-current="page"] {
  color: var(--accent-gold);
  font-weight: 600;
  cursor: default;
}

.crumb-sep {
  color: var(--accent-orange);
  font-family: var(--font-number);
  font-size: 13px;
}

.grid-archive {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.grid-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 24px;
}

.card-archive {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  overflow: hidden;
}

.card-archive::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-green);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s var(--ease);
}

.card-archive:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  border-color: rgba(57, 255, 20, 0.45);
  box-shadow: var(--shadow-card);
  text-decoration: none;
}

.card-archive:hover::before {
  transform: scaleY(1);
}

.card-head {
  margin-bottom: 16px;
}

.card-body {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}

.card-foot {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-display {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent-green);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

.stat-number {
  font-family: var(--font-number);
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 700;
  color: var(--accent-green);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-muted);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.25s var(--ease);
}

.filter-btn:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background: rgba(57, 255, 20, 0.05);
}

.filter-btn.is-active {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: var(--bg-primary);
  font-weight: 700;
  box-shadow: var(--shadow-glow-green);
}

.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-card);
}

.media-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.media-ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.media-ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.media-ratio-1-1 {
  aspect-ratio: 1 / 1;
}

.skew-line {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-green) 0%, var(--accent-orange) 60%, var(--accent-gold) 100%);
  transform: skewX(-30deg);
}

.skew-block {
  position: relative;
  overflow: hidden;
}

.skew-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: -25%;
  width: 60%;
  height: 100%;
  background: rgba(57, 255, 20, 0.04);
  transform: skewX(-18deg);
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-green);
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow-green);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(57, 255, 20, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.btn-secondary:hover {
  background: rgba(57, 255, 20, 0.08);
}

.table-stat {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-number);
  font-size: 14px;
}

.table-stat th,
.table-stat td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-muted);
}

.table-stat thead th {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  text-transform: uppercase;
  border-bottom-width: 2px;
  border-bottom-color: var(--accent-green);
}

.table-stat tbody tr {
  transition: background 0.2s var(--ease);
}

.table-stat tbody tr:hover {
  background: rgba(57, 255, 20, 0.04);
}

.table-stat .num {
  color: var(--accent-green);
  font-weight: 700;
}

.table-stat .num-loss {
  color: var(--accent-orange);
}

.bg-band {
  padding: 48px 0;
  position: relative;
  border-top: 1px solid var(--border-muted);
  border-bottom: 1px solid var(--border-muted);
}

.bg-band-green {
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.07), transparent 60%);
}

.bg-band-orange {
  background: linear-gradient(135deg, rgba(255, 69, 0, 0.08), transparent 60%);
}

.bg-band-gold {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.07), transparent 60%);
}

.border-side-green {
  border-left: 4px solid var(--accent-green);
  padding-left: 20px;
}

.reveal-on-scroll,
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal-on-scroll.is-revealed,
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (max-width: 1023px) {
  .brand-subtitle {
    display: none;
  }

  .nav-link {
    padding: 8px 12px;
    font-size: 13px;
  }

  .btn-cta {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .grid-archive {
    grid-template-columns: 1fr;
  }

  .grid-sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 8px;
    min-height: 0;
  }

  .nav-capsule {
    order: 3;
    flex-basis: 100%;
    display: none;
  }

  .nav-capsule[data-open] {
    display: block;
  }

  .nav-capsule-inner {
    flex-direction: column;
    align-items: stretch;
    background: rgba(26, 32, 43, 0.98);
    border-radius: 16px;
    padding: 8px;
    margin-top: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  }

  .nav-link {
    text-align: center;
    padding: 13px 16px;
    border-radius: 12px;
    white-space: normal;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-mark {
    font-size: 15px;
    padding: 3px 8px 3px 6px;
  }

  .btn-cta {
    padding: 8px 14px;
    font-size: 13px;
  }

  .btn-cta::before {
    content: "";
  }

  .container-page {
    padding: 32px 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  [data-reveal],
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}
