:root {
  --gold: #C9A961;
  --gold-light: #F0D98C;
  --purple: #2B1B4D;
  --purple-dark: #1E1230;
  --orange: #FF8A00;
  --ink: #1A1A1A;
  --paper: #F5E9D6;
  --silver: #B8B8B8;
  --white: #FFFFFF;
  --amber: #E8A33D;
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "SF Mono", Consolas, monospace;
  --container-w: 1224px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  background: var(--purple-dark);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

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

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

.main-content,
#main-content {
  background: var(--paper);
  color: var(--ink);
  min-height: 60vh;
  outline: none;
}

.main-content:focus-visible,
#main-content:focus-visible {
  box-shadow: inset 0 0 0 3px var(--orange);
  outline: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100%;
  background: var(--orange);
  color: var(--ink);
  padding: 8px 16px;
  font-weight: 700;
  font-size: 14px;
  z-index: 9999;
  border: 1px solid var(--ink);
  transition: top 0.2s ease;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1px solid transparent;
  border-radius: 0;
  line-height: 1.5;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px) scale(1.01);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--orange);
  color: var(--ink);
  border-color: var(--orange);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.btn--primary:hover {
  background: #f07d00;
}

.btn--primary:focus-visible {
  clip-path: none;
}

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

.btn--ghost:hover {
  background: rgba(201, 169, 97, 0.1);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-block: 16px;
  font-size: 13px;
  color: var(--silver);
}

.breadcrumbs a {
  color: var(--gold);
  font-weight: 700;
}

.breadcrumbs span + span::before {
  content: "/";
  margin: 0 8px 0 2px;
  color: var(--silver);
}

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

.page-head {
  padding-block: 48px 24px;
}

.page-head__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-head__title {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 900;
  color: var(--purple);
  line-height: 1.05;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

.page-head__desc {
  margin-top: 12px;
  font-size: 16px;
  color: #555555;
  max-width: 640px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.section-head__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--purple);
}

.section-head__line {
  flex: 1;
  min-width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 169, 97, 0.2));
}

.content {
  width: min(100% - 48px, 880px);
  margin-inline: auto;
  padding-block: 40px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
}

.content h2,
.content h3,
.content h4 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--purple);
  line-height: 1.3;
}

.content h2 {
  font-size: 30px;
  margin: 48px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--gold);
}

.content h3 {
  font-size: 22px;
  margin: 32px 0 12px;
}

.content p {
  margin-bottom: 18px;
  text-align: justify;
  text-justify: inter-ideograph;
}

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

.card {
  background: var(--white);
  border: 1px solid #ede6d8;
  border-top: 3px solid var(--gold);
  padding: 24px;
  box-shadow: 0 4px 18px rgba(30, 18, 48, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(30, 18, 48, 0.1);
}

.card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--purple);
  margin-bottom: 8px;
}

.card__text {
  font-size: 14px;
  line-height: 1.8;
  color: #4a4a4a;
}

.tag {
  display: inline-block;
  padding: 3px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--purple);
  background: rgba(201, 169, 97, 0.14);
  border: 1px solid rgba(201, 169, 97, 0.5);
}

.status-panel {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  background: var(--purple);
  border-left: 4px solid var(--gold);
  color: var(--paper);
  font-size: 14px;
  line-height: 1.8;
}

.status-panel::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(232, 163, 61, 0.2);
}

.status-panel__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
}

.image-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 60%, #4a2f7a 100%);
  aspect-ratio: 16 / 9;
  box-shadow: 0 4px 20px rgba(30, 18, 48, 0.12);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.image-frame:hover img {
  transform: scale(1.02);
}

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

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

.image-frame--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(240, 217, 140, 0.6);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
}

.clip-slash {
  display: inline-block;
  width: 44px;
  height: 10px;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.data-point {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

[data-count] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

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

.to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  width: 48px;
  height: 48px;
  background: var(--orange);
  color: var(--ink);
  border: none;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 4px 18px rgba(30, 18, 48, 0.3);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.to-top:hover {
  transform: scale(1.04);
}

.to-top.is-visible {
  display: flex;
}

.site-header {
  position: relative;
  z-index: 100;
  background: var(--purple);
}

.masthead {
  background: linear-gradient(100deg, var(--purple-dark) 0%, var(--purple) 55%, #3a2466 100%);
  border-bottom: 2px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.masthead::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.16), transparent 55%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
}

.masthead::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 16px,
    rgba(201, 169, 97, 0.045) 16px,
    rgba(201, 169, 97, 0.045) 17px
  );
  pointer-events: none;
}

.masthead__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px;
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 14px;
  position: relative;
  transition: opacity 0.2s ease;
}

.brand::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: linear-gradient(180deg, var(--orange), var(--gold));
}

.brand:hover {
  opacity: 0.9;
}

.brand__en {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
}

.brand__cn {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: 0.06em;
}

.brand__cn::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 2px;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  vertical-align: top;
}

.brand__sub {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--silver);
  line-height: 1.2;
}

.masthead__aside {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-right: 8px;
  position: relative;
}

.masthead__aside-text {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--gold-light);
  height: 110px;
  padding-block: 4px;
  border-right: 1px solid rgba(201, 169, 97, 0.35);
  padding-right: 10px;
}

.masthead__aside-line {
  width: 56px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.masthead__aside-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  writing-mode: vertical-rl;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 1px solid rgba(201, 169, 97, 0.4);
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

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

.nav-toggle__line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

.site-nav {
  background: var(--purple-dark);
  border-top: 1px solid rgba(201, 169, 97, 0.12);
  border-bottom: 1px solid rgba(201, 169, 97, 0.35);
}

.site-nav__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.site-nav__item {
  flex-shrink: 0;
}

.site-nav__link {
  display: block;
  padding: 15px 30px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(245, 233, 214, 0.85);
  border-bottom: 3px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.site-nav__link:hover {
  color: var(--gold-light);
  background: rgba(201, 169, 97, 0.08);
}

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

.site-footer {
  background: linear-gradient(180deg, var(--purple-dark), #160d26 100%);
  border-top: 3px solid var(--gold);
  color: var(--paper);
  padding-top: 56px;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 180px;
  height: 3px;
  background: var(--orange);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand__en {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-brand__cn {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin-top: 2px;
}

.footer-slogan {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.06em;
}

.footer-trust {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--silver);
  max-width: 360px;
  text-align: justify;
}

.footer-col__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.14em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201, 169, 97, 0.25);
  position: relative;
}

.footer-col__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 32px;
  height: 1px;
  background: var(--orange);
}

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

.footer-col a {
  font-size: 14px;
  color: rgba(245, 233, 214, 0.8);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.footer-col--contact p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--silver);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 18px 22px;
  border-top: 1px solid rgba(201, 169, 97, 0.15);
  font-size: 13px;
  color: var(--silver);
}

.footer-copy {
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-icp {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-col--contact {
    grid-column: span 3;
    border-top: 1px solid rgba(201, 169, 97, 0.15);
    padding-top: 16px;
  }

  .masthead__grid {
    padding-block: 20px;
  }

  .brand__cn {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 32px, var(--container-w));
  }

  .nav-toggle {
    display: flex;
  }

  .masthead__grid {
    flex-wrap: wrap;
    padding-block: 16px;
    gap: 12px;
  }

  .brand__en {
    font-size: 10px;
  }

  .brand__cn {
    font-size: 28px;
  }

  .brand__sub {
    font-size: 11px;
  }

  .masthead__aside {
    display: none;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 90;
  }

  .site-nav[data-open] {
    display: block;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
    animation: navFade 0.25s ease-out;
  }

  @keyframes navFade {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .site-nav__list {
    flex-direction: column;
    padding: 4px 0;
  }

  .site-nav__link {
    padding: 14px 28px;
    border-bottom: 1px solid rgba(201, 169, 97, 0.08);
    border-left: 3px solid transparent;
  }

  .site-nav__link[aria-current="page"] {
    border-left-color: var(--orange);
    border-bottom-color: rgba(201, 169, 97, 0.08);
    background: rgba(201, 169, 97, 0.04);
  }

  .page-head__title {
    font-size: 34px;
  }

  .section-head__title {
    font-size: 24px;
  }
}

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

  .footer-col--contact {
    grid-column: auto;
  }

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

  .content {
    width: min(100% - 32px, 880px);
  }
}

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

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

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

  .btn,
  .btn--primary,
  .btn--ghost,
  .card,
  .nav-toggle__line {
    transition: none;
  }

  .btn:hover,
  .card:hover {
    transform: none;
  }

  .site-nav[data-open] {
    animation: none;
  }

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

  .to-top {
    display: none !important;
  }
}
