/* =========================================
   1. Tokens & Reset
   ========================================= */
:root {
  --navy: #0A1F3D;
  --navy-deep: #06182E;
  --navy-soft: #1A3A6E;
  --gold: #D4AF37;
  --gold-light: #F2D57E;
  --red: #C8102E;
  --ice: #E3F2FD;
  --white: #FFFFFF;
  --ink: #1E2A38;
  --muted: #5A6B7A;
  --line: #E1E8F0;
  --grad-gold: linear-gradient(135deg, #F2D57E, #D4AF37);
  --grad-navy: linear-gradient(135deg, #0A1F3D 0%, #1A3A6E 100%);
  --font-display: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: Georgia, "Songti SC", "SimSun", serif;
  --header-h: 72px;
  --container-w: 1280px;
  --radius: 2px;
  --measure: 72ch;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  color: var(--navy);
  margin: 0 0 0.4em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
}

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

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

input,
button,
textarea,
select {
  font: inherit;
}

/* =========================================
   2. Layout
   ========================================= */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 40px);
}

.container--tight {
  max-width: 960px;
}

.container--wide {
  max-width: 1440px;
}

.section {
  padding-block: clamp(48px, 7vw, 104px);
}

.section--navy {
  background: var(--navy);
}

.section--ice {
  background: var(--ice);
}

.section--gold {
  background: var(--grad-gold);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  margin-top: 12px;
}

.section--navy .lead {
  color: rgba(255, 255, 255, 0.7);
}

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

/* =========================================
   3. Typography Components
   ========================================= */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
  flex: 0 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0;
}

.section--navy .section-title {
  color: var(--white);
}

.prose {
  max-width: var(--measure);
  font-size: 17px;
  line-height: 1.85;
}

.prose p + p {
  margin-top: 1em;
}

.prose a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}

.prose h2 {
  margin-top: 1.4em;
  font-size: 26px;
}

/* =========================================
   4. Buttons & Chips
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-gold {
  background: var(--grad-gold);
  color: var(--navy);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.12);
}

.btn--small {
  padding: 10px 16px;
  font-size: 13px;
}

.chip {
  display: inline-block;
  padding: 5px 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--ice);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  line-height: 1.4;
}

.chip--gold {
  background: rgba(212, 175, 55, 0.14);
  border-color: var(--gold);
  color: var(--navy);
}

.chip--red {
  background: #FFF1F2;
  border-color: var(--red);
  color: var(--red);
}

/* =========================================
   5. Skip Link & Header
   ========================================= */
.skip-link {
  position: fixed;
  top: -56px;
  left: 16px;
  z-index: 3000;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.2s ease;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(10, 31, 61, 0.55), rgba(10, 31, 61, 0));
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 31, 61, 0.94);
  box-shadow: 0 1px 0 rgba(212, 175, 55, 0.25);
}

.site-header.nav-open {
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(212, 175, 55, 0.3);
}

.header-inner {
  display: flex;
  height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--grad-gold);
  z-index: 30;
  transition: width 120ms linear;
}

/* =========================================
   6. Brand & Navigation
   ========================================= */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--white);
  text-decoration: none;
}

.brand-zh {
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
}

.brand::after {
  content: "";
  align-self: center;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

.main-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin: 0;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

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

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before {
  position: absolute;
  top: -7px;
  left: 0;
}

.nav-toggle-lines::after {
  position: absolute;
  top: 7px;
  left: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines {
  background: transparent;
}

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

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

.nav-toggle-label {
  font-family: var(--font-display);
}

/* =========================================
   7. Bento Grid & Stat Cards
   ========================================= */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 1.6vw, 24px);
}

.bento-cell {
  grid-column: span 12;
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.bento-cell:hover {
  border-color: var(--gold);
}

.bento-cell--plain {
  border-color: transparent;
  background: transparent;
  padding: 0;
}

.bento-cell--gold {
  background: var(--grad-gold);
  border-color: transparent;
  color: var(--navy);
}

.bento-cell--navy {
  background: var(--navy);
  border-color: transparent;
  color: rgba(255, 255, 255, 0.85);
}

.bento-cell--navy .stat-value,
.bento-cell--navy .section-title {
  color: var(--white);
}

.bento-cell--navy .stat-label {
  color: rgba(255, 255, 255, 0.65);
}

@media (min-width: 768px) {
  .bento-cell--4 {
    grid-column: span 4;
  }
  .bento-cell--5 {
    grid-column: span 5;
  }
  .bento-cell--6 {
    grid-column: span 6;
  }
  .bento-cell--7 {
    grid-column: span 7;
  }
  .bento-cell--8 {
    grid-column: span 8;
  }
}

.stat-card {
  position: relative;
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s ease;
}

.stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s ease;
}

.stat-card:hover {
  border-color: var(--gold);
}

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

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.stat-value--gold {
  color: var(--gold);
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =========================================
   8. Table & Breadcrumb
   ========================================= */
.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
}

.table-wrap th {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
}

.table-wrap tr:hover td {
  background: var(--ice);
}

.breadcrumb {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding-block: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.breadcrumb-list li::before {
  content: "/";
  color: var(--muted);
}

.breadcrumb-list li:first-child::before {
  content: none;
}

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

.breadcrumb-link:hover {
  color: var(--navy);
}

.breadcrumb-current {
  color: var(--navy);
  font-weight: 700;
}

/* =========================================
   9. Notice & Timeline
   ========================================= */
.notice {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  border-left: 4px solid var(--gold);
  background: var(--ice);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.notice--warn {
  border-left-color: var(--red);
  background: #FFF1F2;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline-item {
  position: relative;
  padding: 0 0 28px 32px;
  border-left: 2px solid var(--line);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border: 2px solid var(--white);
  transform: rotate(45deg);
}

.timeline-item--active::before {
  background: var(--red);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

/* =========================================
   10. Media & Image Containers
   ========================================= */
.media {
  position: relative;
  overflow: hidden;
  background: var(--ice);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
}

.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, transparent 50%, rgba(212, 175, 55, 0.35) 50%);
}

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

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

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

/* =========================================
   11. Footer
   ========================================= */
.site-footer {
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  background-size: 28px 28px, 28px 28px, auto;
  color: rgba(255, 255, 255, 0.78);
  border-top: 2px solid var(--gold);
}

.site-footer .brand {
  font-size: 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(48px, 6vw, 72px) 0 40px;
}

.footer-brand {
  display: grid;
  align-content: start;
  gap: 16px;
}

.footer-about {
  max-width: 38ch;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 0 0 6px;
}

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

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

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

.footer-contact-line {
  font-family: var(--font-display);
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-trust {
  font-family: var(--font-display);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
}

.footer-icp,
.footer-legal {
  font-family: var(--font-display);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

/* =========================================
   12. Accessibility & Utilities
   ========================================= */
.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;
}

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

/* =========================================
   13. Responsive
   ========================================= */
@media (max-width: 1024px) {
  .nav-list {
    gap: 18px;
  }

  .nav-link {
    font-size: 14px;
  }
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

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

@media (max-width: 767px) {
  :root {
    --header-h: 64px;
  }

  .site-header {
    background: linear-gradient(180deg, rgba(10, 31, 61, 0.7), rgba(10, 31, 61, 0));
  }

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

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--navy-deep);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
  }

  .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-link {
    display: block;
    padding: 14px 4px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
  }

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

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

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

@media (max-width: 600px) {
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* =========================================
   14. Reduced Motion
   ========================================= */
@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;
  }

  .scroll-progress {
    transition: none;
  }

  .main-nav {
    transition: none;
  }

  .nav-toggle-lines,
  .nav-toggle-lines::before,
  .nav-toggle-lines::after {
    transition: none;
  }
}
