:root {
  --blue: #0a2a5e;
  --cream: #f7f3e8;
  --ink: #1a1a1a;
  --green: #24ff8f;
  --purple: #8a4fff;
  --red: #ff4d3d;
  --mist: #d8e1f0;
  --navy: #1a2f4a;
  --white: #ffffff;
  --header-space: 84px;
  --container: 1240px;
  --header-bg: rgba(10, 42, 94, 0.88);
  --header-bg-scrolled: rgba(10, 42, 94, 0.96);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 12px 32px rgba(10, 20, 40, 0.12);
  --shadow-header: 0 8px 24px rgba(10, 42, 94, 0.28);
  --font-head: "PingFang SC Heavy", "Arial Black", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-number: "DIN Alternate", "Teko", "Arial Narrow", sans-serif;
  --accent-gradient: linear-gradient(135deg, var(--green), #9bff6b);
  --purple-gradient: linear-gradient(135deg, var(--purple), #c29bff);
}

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

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

body {
  margin: 0;
  padding-top: var(--header-space);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

h1, h2, h3, h4 {
  margin-top: 0;
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--blue);
}

h1 {
  font-size: clamp(42px, 6vw, 72px);
}

h2 {
  font-size: clamp(32px, 4vw, 48px);
}

h3 {
  font-size: clamp(22px, 2.6vw, 28px);
}

h4 {
  font-size: 20px;
}

p {
  margin-top: 0;
}

ul, ol {
  margin-top: 0;
  padding-left: 0;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

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

::selection {
  background: var(--green);
  color: var(--blue);
}

#main-content {
  scroll-margin-top: calc(var(--header-space) + 16px);
}

.container {
  width: min(var(--container), 100%);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}

.section--tight {
  padding: 40px 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: 32px;
}

.section-head .lead {
  font-size: 18px;
  color: rgba(26, 26, 26, 0.72);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-260%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header[data-hidden="true"] {
  transform: translateY(calc(-100% + 24px));
}

.header-inner {
  position: relative;
  width: min(1200px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
  padding: 8px 10px 8px 10px;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(247, 243, 232, 0.14);
  border-radius: 999px;
  box-shadow: var(--shadow-header), inset 0 0 0 1px rgba(36, 255, 143, 0.12);
  pointer-events: auto;
}

.scroll-progress {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -2px;
  height: 3px;
  width: 0;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(36, 255, 143, 0.8);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--accent-gradient);
  color: var(--blue);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 22px;
  border-radius: 12px;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 84% 100%, 0 100%);
  transform: rotate(-6deg);
}

.brand-text {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.brand-sub {
  color: var(--green);
  font-size: 14px;
  letter-spacing: 0.1em;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 10px 18px;
  border-radius: 999px;
  color: rgba(247, 243, 232, 0.86);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  background: rgba(36, 255, 143, 0.16);
  color: var(--green);
}

.main-nav a[aria-current="page"] {
  background: var(--green);
  color: var(--blue);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  position: relative;
  flex-shrink: 0;
}

.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 3px;
  border-radius: 2px;
  background: var(--cream);
  transition: top 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle span:nth-child(1) {
  top: 13px;
}

.nav-toggle span:nth-child(2) {
  top: 20px;
}

.nav-toggle span:nth-child(3) {
  top: 27px;
}

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

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

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

.site-footer {
  position: relative;
  margin-top: 96px;
  background: var(--blue);
  color: rgba(247, 243, 232, 0.82);
  clip-path: polygon(0 48px, 100% 0, 100% 100%, 0 100%);
  padding-top: 120px;
}

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

.footer-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(247, 243, 232, 0.16);
}

.footer-brand {
  max-width: 420px;
}

.footer-logo {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 28px;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo span {
  color: var(--green);
  font-size: 18px;
  letter-spacing: 0.08em;
}

.footer-icp {
  margin-top: 10px;
  color: rgba(247, 243, 232, 0.6);
  font-size: 14px;
}

.footer-trust {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.7;
  border-left: 3px solid var(--green);
  padding-left: 14px;
}

.footer-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 16px;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(247, 243, 232, 0.82);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--green);
  transform: translateX(2px);
}

.footer-contact li {
  line-height: 1.6;
}

.footer-contact li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  background: var(--purple);
  border-radius: 2px;
  transform: rotate(45deg);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  color: rgba(247, 243, 232, 0.58);
  font-size: 14px;
}

.footer-bottom ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

.footer-bottom a {
  color: rgba(247, 243, 232, 0.58);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--green);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--green);
  color: var(--blue);
  box-shadow: 0 8px 24px rgba(36, 255, 143, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(36, 255, 143, 0.35);
}

.btn-secondary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 8px 24px rgba(138, 79, 255, 0.3);
}

.btn-ghost {
  border-color: rgba(247, 243, 232, 0.6);
  color: var(--cream);
}

.btn-ghost:hover {
  background: rgba(247, 243, 232, 0.1);
}

.btn-alert {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 77, 61, 0.28);
}

.badge,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  background: var(--purple);
  color: #fff;
}

.tag {
  background: rgba(10, 42, 94, 0.08);
  color: var(--blue);
  border: 1px solid var(--mist);
}

.tag-live {
  background: var(--green);
  color: var(--blue);
}

.tag-hot {
  background: var(--red);
  color: #fff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 24px 0;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}

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

.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.data-card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--mist);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.data-card:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 255, 143, 0.5);
  box-shadow: 0 18px 40px rgba(10, 42, 94, 0.16);
}

.data-card::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 24px;
  bottom: 24px;
  width: 4px;
  border-radius: 4px;
  background: var(--purple-gradient);
}

.data-card .fact-number {
  font-family: var(--font-number);
  font-size: clamp(52px, 5vw, 96px);
  font-weight: 700;
  line-height: 0.9;
  color: var(--blue);
  margin-bottom: 8px;
}

.fact-number {
  font-family: var(--font-number);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.9;
  color: var(--blue);
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.index-item {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--navy);
  border: 1px solid rgba(216, 225, 240, 0.18);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  color: var(--cream);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.index-item:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  background: var(--blue);
}

.index-item::after {
  content: attr(data-index);
  position: absolute;
  right: 10px;
  bottom: -8px;
  font-family: var(--font-number);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: rgba(36, 255, 143, 0.16);
  pointer-events: none;
}

.index-item strong {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}

.index-item span {
  font-size: 13px;
  color: rgba(247, 243, 232, 0.65);
}

.img-frame,
.img-frame-wide,
.img-frame-tall {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--navy);
  aspect-ratio: 16 / 9;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.img-frame-wide {
  aspect-ratio: 21 / 9;
}

.img-frame-tall {
  aspect-ratio: 4 / 5;
}

.img-frame img,
.img-frame-wide img,
.img-frame-tall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.15);
}

.img-frame::after,
.img-frame-wide::after,
.img-frame-tall::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 42, 94, 0.32), rgba(10, 42, 94, 0) 45%, rgba(138, 79, 255, 0.2));
  pointer-events: none;
}

.page-hero {
  position: relative;
  background: var(--blue);
  color: var(--cream);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), calc(100% - 32px) 100%, 0 100%);
  padding: 120px 0 88px;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: 8%;
  top: 55%;
  transform: translateY(-30%) rotate(18deg);
  background: linear-gradient(135deg, var(--purple), transparent);
  clip-path: polygon(50% 0, 100% 38%, 84% 100%, 16% 100%, 0 38%);
  opacity: 0.32;
  pointer-events: none;
}

.page-hero h1 {
  color: var(--cream);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.page-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.skew-block {
  position: relative;
  padding: 48px 0;
  background: linear-gradient(120deg, var(--blue), var(--navy));
  clip-path: polygon(0 0, 100% 0, calc(100% - 5vw) 100%, 0 100%);
}

.speed-bar {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(36, 255, 143, 0.16);
  overflow: hidden;
  border-radius: 4px;
}

.speed-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--purple));
  animation: speed-sweep 2.4s ease-in-out infinite;
}

@keyframes speed-sweep {
  0% {
    left: -30%;
  }
  60%,
  100% {
    left: 110%;
  }
}

[data-filter] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid var(--mist);
  border-radius: 999px;
  background: var(--cream);
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

[data-filter]:hover {
  border-color: var(--blue);
}

[data-filter][aria-pressed="true"] {
  background: var(--blue);
  color: var(--green);
  border-color: var(--blue);
}

[data-scrollspy] {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

[data-scrollspy] a {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  color: rgba(247, 243, 232, 0.72);
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

[data-scrollspy] a:hover {
  color: var(--green);
  border-color: rgba(36, 255, 143, 0.3);
}

[data-scrollspy] a[aria-current="true"] {
  background: var(--green);
  color: var(--blue);
  font-weight: 700;
  border-color: var(--green);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 12px;
    background: var(--header-bg-scrolled);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(247, 243, 232, 0.16);
    border-radius: 20px;
    box-shadow: var(--shadow-header);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

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

  .main-nav ul {
    flex-direction: column;
    gap: 6px;
  }

  .main-nav a {
    text-align: center;
    padding: 12px 16px;
  }

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

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .header-inner {
    gap: 8px;
    padding-left: 8px;
    padding-right: 8px;
  }

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

  .brand-sub {
    display: block;
    font-size: 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

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

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

  .section {
    padding: 48px 0;
  }

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

  .footer-brand {
    grid-column: auto;
  }

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

  .footer-bottom ul {
    flex-wrap: wrap;
    gap: 12px;
  }

  .page-hero {
    padding: 96px 0 72px;
  }
}

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

  .speed-bar::after {
    animation: none;
  }

  .site-header {
    transition: none;
  }
}
