:root {
  --night: #0B1B2B;
  --deep-teal: #0F3D3E;
  --wine: #6B2D3A;
  --indigo: #2B2D6B;
  --flame: #FF6B35;
  --grass: #3A7D44;
  --warm-white: #F2EDE8;
  --sand: #A8B2B8;
  --cream: #FCF7F0;
  --font-sans: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --header-h: 72px;
  --space: 28px;
  --header-bg: rgba(11, 27, 43, 0.68);
  --header-bg-scrolled: rgba(11, 27, 43, 0.92);
  --ease: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  background: var(--night);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background-color: var(--night);
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.07) 1px, transparent 1.6px),
    radial-gradient(circle at 78% 14%, rgba(255, 255, 255, 0.05) 1px, transparent 1.6px),
    radial-gradient(circle at 36% 88%, rgba(255, 255, 255, 0.04) 1px, transparent 1.4px),
    radial-gradient(circle at 91% 68%, rgba(255, 255, 255, 0.08) 1px, transparent 1.5px);
  background-size: 260px 260px, 190px 190px, 310px 310px, 220px 220px;
  color: var(--warm-white);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a {
  color: var(--flame);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

.container {
  width: min(1280px, 100% - 48px);
  margin-inline: auto;
}

#main-content {
  min-height: 70vh;
  scroll-margin-top: calc(var(--header-h) + 16px);
  outline: none;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 24px;
  background: var(--cream);
  color: var(--night);
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transform: translateY(-160%);
  transition: transform 0.25s ease;
}

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

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  z-index: 310;
  background: linear-gradient(90deg, var(--flame) 0%, var(--grass) 55%, var(--indigo) 100%);
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 210;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(242, 237, 232, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.site-header[data-scrolled] {
  background: var(--header-bg-scrolled);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 220px;
  height: 3px;
  background: linear-gradient(90deg, var(--flame), var(--wine) 70%, transparent);
}

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

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--warm-white);
}

.site-brand__mark {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.site-brand__orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 107, 53, 0.55);
  border-top-color: transparent;
  border-radius: 50%;
  animation: brand-spin 14s linear infinite;
}

.site-brand__orbit::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--flame);
  border-radius: 50%;
  transform: translateX(-50%);
}

.site-brand__core {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ffffff, var(--flame) 45%, var(--wine));
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.site-brand__name {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
}

.site-brand__sub {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--sand);
  line-height: 1;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  counter-reset: nav;
}

.site-nav__item {
  counter-increment: nav;
}

.site-nav__link {
  display: inline-block;
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--warm-white);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform var(--ease), border-color var(--ease), background var(--ease);
}

.site-nav__link::before {
  content: counter(nav, decimal-leading-zero) " ";
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--flame);
  margin-right: 0.35em;
}

.site-nav__link:hover {
  border-color: var(--flame);
  transform: translateY(-2px);
}

.site-nav__link[aria-current="page"] {
  background: rgba(43, 45, 107, 0.85);
  border-color: rgba(255, 107, 53, 0.45);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 230;
  width: 46px;
  height: 46px;
  padding: 12px;
  background: rgba(11, 27, 43, 0.7);
  border: 1px solid rgba(242, 237, 232, 0.18);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle__icon {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--warm-white);
  border-radius: 2px;
  transition: background 0.2s ease;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--warm-white);
  border-radius: 2px;
  transition: transform 0.3s ease, top 0.3s ease;
}

.nav-toggle__icon::before {
  top: -6px;
}

.nav-toggle__icon::after {
  top: 6px;
}

.nav-toggle.is-active .nav-toggle__icon {
  background: transparent;
}

.nav-toggle.is-active .nav-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.is-active .nav-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-footer {
  position: relative;
  margin-top: 80px;
  padding: 68px 0 28px;
  background: var(--deep-teal);
  color: var(--warm-white);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--flame) 0%, var(--grass) 35%, var(--indigo) 70%, transparent 100%);
}

.site-footer::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 107, 53, 0.16);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 52px;
  margin-bottom: 44px;
}

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

.footer-tagline {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  color: var(--cream);
}

.footer-contact {
  display: grid;
  gap: 8px;
  font-style: normal;
  color: var(--sand);
  font-size: 0.95rem;
}

.footer-links {
  display: grid;
  gap: 14px;
  align-content: start;
}

.footer-links a {
  display: inline-block;
  color: var(--warm-white);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}

.footer-links a:hover {
  color: var(--flame);
  border-bottom-color: var(--flame);
}

.footer-legal {
  text-align: right;
  color: var(--sand);
  font-size: 0.95rem;
}

.footer-legal p {
  margin-bottom: 10px;
}

.footer-legal a {
  color: var(--sand);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}

.footer-legal a:hover {
  color: var(--flame);
  border-bottom-color: var(--flame);
}

.footer-icp {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(242, 237, 232, 0.1);
  color: var(--sand);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.footer-icp p {
  margin: 0;
}

.site-main a {
  color: var(--flame);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 14px 28px;
  background: var(--flame);
  border: none;
  color: var(--night);
  font-weight: 900;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: filter var(--ease), transform var(--ease);
}

.btn:hover {
  filter: brightness(1.12);
  transform: translateY(-3px);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--warm-white);
  color: var(--warm-white);
  clip-path: none;
}

.btn--ghost:hover {
  border-color: var(--flame);
  color: var(--flame);
}

.btn--small {
  padding: 9px 18px;
  font-size: 0.85rem;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.page-head {
  padding: 112px 0 44px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--sand);
}

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

.breadcrumb a:hover {
  color: var(--flame);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--sand);
}

.page-title {
  margin: 12px 0 10px;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.page-subtitle {
  max-width: 46em;
  font-size: 1.08rem;
  color: var(--sand);
}

.section-index {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 28px;
}

.section-index__num {
  font-family: var(--font-mono);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 200;
  line-height: 1;
  color: var(--flame);
}

.section-index__label {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-white);
}

.panel {
  position: relative;
  padding: 32px;
  background: var(--night);
  border: 1px solid rgba(242, 237, 232, 0.07);
  color: var(--warm-white);
}

.panel--cut {
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.panel--cut-right {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.panel--teal {
  background: var(--deep-teal);
}

.panel--wine {
  background: var(--wine);
}

.panel--indigo {
  background: var(--indigo);
}

.panel--cream {
  background: var(--cream);
  color: var(--night);
}

.panel--cream .panel__text {
  opacity: 0.8;
}

.panel__title {
  margin-bottom: 14px;
  font-size: 1.45rem;
  font-weight: 900;
}

.panel__text {
  line-height: 1.75;
  opacity: 0.85;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat__value {
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--flame);
}

.stat__label {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(242, 237, 232, 0.08);
  text-align: left;
}

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

.data-table td {
  color: var(--warm-white);
  font-variant-numeric: tabular-nums;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(242, 237, 232, 0.07);
  color: var(--warm-white);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}

.badge--green {
  background: rgba(58, 125, 68, 0.22);
  border: 1px solid rgba(58, 125, 68, 0.8);
  color: #7AD78C;
}

.badge--orange {
  background: rgba(255, 107, 53, 0.2);
  border: 1px solid rgba(255, 107, 53, 0.8);
  color: var(--flame);
}

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

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

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

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

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.bento__item {
  grid-column: span 4;
  grid-row: span 2;
  min-height: 120px;
}

.bento__item--wide {
  grid-column: span 8;
}

.bento__item--tall {
  grid-row: span 3;
}

.img-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--indigo), var(--night) 65%, var(--wine));
}

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

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

.img-frame--portrait {
  aspect-ratio: 3 / 4;
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 27, 43, 0.45), transparent 42%);
  pointer-events: none;
}

.accordion {
  border-bottom: 1px solid rgba(242, 237, 232, 0.12);
}

.accordion__item {
  border-top: 1px solid rgba(242, 237, 232, 0.12);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  background: transparent;
  border: none;
  color: var(--warm-white);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.accordion__trigger::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--flame);
  transition: transform 0.3s ease;
}

.accordion__item[data-open] .accordion__trigger::after {
  content: "−";
}

.accordion__panel {
  display: none;
  padding: 0 0 20px;
  color: var(--sand);
  line-height: 1.75;
}

.accordion__item[data-open] .accordion__panel {
  display: block;
}

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--flame), var(--indigo));
}

.timeline__item {
  position: relative;
  padding-bottom: 28px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--flame);
  transform: rotate(45deg);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .bento__item {
    grid-column: span 6;
  }

  .bento__item--wide {
    grid-column: span 12;
  }

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

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

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 40px 40px;
    background: rgba(11, 27, 43, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    overflow-y: auto;
  }

  .site-nav[data-open] {
    transform: translateX(0);
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
  }

  .site-nav__item {
    width: 100%;
    border-bottom: 1px solid rgba(242, 237, 232, 0.08);
  }

  .site-nav__link {
    display: flex;
    align-items: baseline;
    gap: 10px;
    width: 100%;
    padding: 20px 8px;
    border-radius: 0;
    border: none;
    font-size: 1.35rem;
    font-weight: 700;
  }

  .site-nav__link::before {
    content: counter(nav, decimal-leading-zero);
    font-size: 0.7rem;
    color: var(--flame);
  }

  .site-nav__link:hover {
    transform: none;
    border-color: transparent;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 28px, 1280px);
  }

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

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

  .footer-legal {
    text-align: left;
  }

  .button,
  .btn {
    width: 100%;
  }
}

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

  .bento__item {
    grid-column: span 12;
  }

  .site-brand__sub {
    font-size: 0.5rem;
  }

  .page-head {
    padding-top: 88px;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  .progress-bar {
    display: none;
  }

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

@keyframes brand-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
