:root {
  --color-primary: #0A1A3F;
  --color-accent: #FF6B35;
  --color-bg: #F4F7FA;
  --color-text: #1F2937;
  --color-white: #FFFFFF;
  --color-warning: #FFB000;
  --color-success: #2ECC71;
  --color-shadow: rgba(0,0,0,0.2);
  --font-display: Impact, 'Arial Black', 'Helvetica Neue', 'Noto Sans SC', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --header-width: 280px;
  --space-unit: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  padding-left: var(--header-width);
  min-height: 100vh;
}

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

a {
  color: var(--color-primary);
}

ul,
ol {
  list-style: none;
}

.container {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  background-color: var(--color-accent);
  color: white;
  padding: 8px 16px;
  z-index: 10000;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--header-width);
  height: 100vh;
  background-color: var(--color-primary);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  padding: 24px;
  z-index: 1000;
  border-right: 4px solid var(--color-accent);
  overflow-y: auto;
}

.header-meta {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 16px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: monospace;
  letter-spacing: 0.05em;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--color-success);
}

.dot-success {
  width: 6px;
  height: 6px;
  background-color: var(--color-success);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.logo {
  margin-bottom: 32px;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  color: white;
  text-transform: uppercase;
}

.logo-sub {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--color-accent);
  text-transform: uppercase;
  font-weight: 700;
}

.logo-mark {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background-color: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  margin-bottom: 12px;
}

.header-nav {
  flex: 1;
  width: 100%;
}

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

.nav-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-left: 3px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: white;
  background-color: rgba(255, 255, 255, 0.08);
  border-left-color: var(--color-accent);
}

.nav-list a[aria-current="page"] {
  color: white;
  background-color: rgba(255, 107, 53, 0.15);
  border-left-color: var(--color-accent);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
}

.nav-index {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--color-accent);
}

.header-tools {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-box {
  display: flex;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-box input {
  background: transparent;
  border: none;
  padding: 10px 12px;
  color: white;
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-box button {
  background-color: var(--color-accent);
  border: none;
  color: white;
  width: 40px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.search-box button:hover {
  background-color: #e55a28;
}

.nav-toggle {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.btn-accent {
  background-color: var(--color-accent);
  color: white;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background-color: #e55a28;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--color-shadow);
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #12234b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--color-shadow);
}

.site-footer {
  background-color: var(--color-primary);
  color: white;
  position: relative;
  overflow: hidden;
  margin-top: 64px;
}

.footer-watermark {
  position: absolute;
  right: -40px;
  bottom: -60px;
  font-family: var(--font-display);
  font-size: 12rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
}

.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-block: 64px 48px;
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.footer-brand .logo-title {
  font-size: 2.5rem;
}

.footer-brand p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(46, 204, 113, 0.1);
  padding: 6px 12px;
  border-left: 3px solid var(--color-success);
  font-weight: 700;
  color: var(--color-success) !important;
}

.footer-links h3,
.footer-contact h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--color-accent);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-top: 8px;
  word-break: break-all;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 1200px;
  margin-inline: auto;
  padding: 24px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 24px 48px;
  font-size: 0.85rem;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li::before {
  content: "/";
  color: var(--color-accent);
}

.breadcrumbs li:first-child::before {
  content: "//";
}

.breadcrumbs a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs [aria-current="location"] {
  color: var(--color-text);
  font-weight: 700;
}

.section {
  padding-block: 64px 32px;
}

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

.section-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.section-title::before {
  content: "// ";
  color: var(--color-accent);
}

.section-subtitle {
  color: var(--color-text);
  opacity: 0.7;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background-color: white;
  border: 1px solid #E2E8F0;
  border-top: 4px solid var(--color-primary);
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-text {
  font-size: 0.9rem;
  color: #4B5563;
  margin-top: 8px;
}

.media {
  position: relative;
  overflow: hidden;
  background-color: var(--color-primary);
  aspect-ratio: 16 / 9;
  width: 100%;
}

.media-lg {
  aspect-ratio: 21 / 9;
}

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

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

.media[data-placeholder]::after {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-color: var(--color-primary);
  background-image: radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.3) 0%, transparent 50%),
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: 0 0;
  z-index: 9999;
}

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background-color: var(--color-accent);
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 9999;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.back-to-top:hover {
  transform: translateY(-4px);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.text-accent {
  color: var(--color-accent);
}

.bg-primary {
  background-color: var(--color-primary);
}

.bg-light {
  background-color: var(--color-bg);
}

.text-center {
  text-align: center;
}

.chamfer {
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.speed-lines {
  background-color: var(--color-primary);
  background-image: repeating-linear-gradient(90deg, transparent 0px, transparent 40px, rgba(255, 255, 255, 0.1) 41px, transparent 42px);
}

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

@media (max-width: 1024px) {
  body {
    padding-left: 0;
  }

  .site-header {
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 16px;
    border-right: none;
    border-bottom: 4px solid var(--color-accent);
  }

  .header-meta {
    display: none;
  }

  .logo {
    margin-bottom: 0;
    margin-right: auto;
  }

  .logo-mark {
    display: none;
  }

  .logo-title {
    font-size: 1.5rem;
  }

  .logo-sub {
    font-size: 0.6rem;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    margin-left: 12px;
  }

  .nav-toggle .bar {
    display: block;
    width: 24px;
    height: 3px;
    background-color: white;
    transition: transform 0.3s, opacity 0.3s;
  }

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

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

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

  .header-nav {
    display: none;
    width: 100%;
    order: 3;
  }

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

  .nav-list {
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .header-tools {
    width: 100%;
    order: 4;
    margin-top: 12px;
  }

  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }

  .footer-cols {
    grid-template-columns: 1fr;
    padding-block: 40px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .back-to-top {
    bottom: 16px;
    right: 16px;
  }
}

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