:root {
  --bg: #0A0E1A;
  --bg-card: #131B2E;
  --border: #1B2944;
  --accent: #FF5D2C;
  --accent-soft: rgba(255, 93, 44, 0.2);
  --success: #39FF88;
  --muted: #8FA3BF;
  --text: #F2F6FC;
  --font-heading: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Varela Round", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-accent: "Rajdhani", "Arial", sans-serif;
  --radius: 0;
  --container: 1200px;
  --grid-line: rgba(27, 41, 68, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
}

main {
  flex: 1;
}

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

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

a:hover {
  color: #FF7D54;
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--success);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-heading);
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 14, 26, 0.92);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.site-brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-brand__text strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
}

.site-brand__text small {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.site-brand--footer .site-brand__mark {
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}

.site-brand--footer .site-brand__text strong {
  font-size: 0.9rem;
}

.site-brand--footer .site-brand__text small {
  font-size: 0.6rem;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.site-nav__link {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text);
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.site-nav__link:hover {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(255, 93, 44, 0.25);
  text-decoration: none;
}

.site-nav__link[aria-current="page"] {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.site-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.site-nav__toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

.site-footer {
  position: relative;
  margin-top: auto;
  background: linear-gradient(180deg, #0A0E1A 0%, #0A0E1A 55%, #070B14 100%);
  border-top: 1px solid var(--border);
  padding: 4rem 0 0;
  overflow: hidden;
  color: var(--muted);
}

.site-footer__landscape {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 180px;
  pointer-events: none;
  opacity: 0.6;
  background:
    radial-gradient(ellipse at 15% 100%, rgba(27, 41, 68, 0.7) 0%, rgba(27, 41, 68, 0) 55%),
    radial-gradient(ellipse at 40% 100%, rgba(19, 27, 46, 0.9) 0%, rgba(19, 27, 46, 0) 60%),
    radial-gradient(ellipse at 70% 100%, rgba(27, 41, 68, 0.75) 0%, rgba(27, 41, 68, 0) 50%),
    radial-gradient(ellipse at 95% 100%, rgba(19, 27, 46, 0.9) 0%, rgba(19, 27, 46, 0) 55%);
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.site-footer__nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-footer__nav a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--muted);
  padding-bottom: 0.25em;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.site-footer__nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.site-footer__middle {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.site-footer__middle a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.3s ease;
}

.site-footer__middle a:hover {
  color: var(--accent);
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 2rem 0 3rem;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.8;
}

.site-footer__address {
  color: var(--border);
}

.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.section--tight {
  padding: 2rem 0;
}

.section-number {
  display: block;
  font-family: var(--font-accent);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
  user-select: none;
}

.section-overline {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
}

.section-lead {
  max-width: 60ch;
  margin-top: 1rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.75em 1.6em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

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

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

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}

.btn-ghost {
  color: var(--accent);
  border-color: rgba(255, 93, 44, 0.5);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.skew-card {
  position: relative;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.skew-card::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  border-width: 14px;
  border-style: solid;
  border-color: var(--accent);
  border-left-color: transparent;
  border-bottom-color: transparent;
}

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

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

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

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

.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__label {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.4em 0.8em;
  background: rgba(10, 14, 26, 0.82);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-family: var(--font-accent);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text);
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.data-grid__item {
  grid-column: span 12;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-accent);
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.data-table th {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.data-table td {
  color: var(--text);
}

.data-table tbody tr:hover {
  background: var(--accent-soft);
}

.tag {
  display: inline-block;
  padding: 0.25em 0.7em;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 0;
}

.tag--accent {
  color: var(--accent);
  border-color: var(--accent);
}

.tag--success {
  color: var(--success);
  border-color: var(--success);
}

.breadcrumbs {
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--border);
}

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

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

.breadcrumbs [aria-current="page"] {
  color: var(--text);
}

[data-reveal] {
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.65, 0.4, 1);
  will-change: opacity, transform;
}

.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 99;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 14, 26, 0.85);
  color: var(--accent);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.to-top::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

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

.to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

@media (min-width: 768px) {
  .data-grid__item--half {
    grid-column: span 6;
  }

  .data-grid__item--third {
    grid-column: span 4;
  }

  .data-grid__item--two-third {
    grid-column: span 8;
  }
}

@media (max-width: 767.98px) {
  body.nav-open {
    overflow: hidden;
  }

  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 340px);
    padding: 5rem 2rem 2rem;
    background: linear-gradient(180deg, #131B2E 0%, #0A0E1A 100%);
    border-left: 1px solid var(--border);
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.2, 0.65, 0.4, 1), visibility 0.4s ease;
  }

  .site-nav[data-open="true"] {
    transform: translateX(0);
    visibility: visible;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .site-nav__link {
    display: block;
    padding: 0.9rem 1.2rem;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }

  .site-nav__link[aria-current="page"] {
    background: var(--accent);
    border-bottom-color: var(--accent);
  }

  .site-nav__toggle {
    display: flex;
  }

  .site-footer__top {
    flex-direction: column;
  }

  .site-footer__middle {
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
