:root {
  --bg-deep: #10141F;
  --bg-panel: #1D2735;
  --red: #D62B2B;
  --gold: #E8A33D;
  --gold-line: #C48B2F;
  --cream: #F5EFE3;
  --gray: #A8A29E;
  --moss: #5C6B52;
  --terra: #B5633B;
  --header-w: 280px;
  --container-w: 1280px;
  --font-head: "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: "DIN Alternate", "Roboto Mono", monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-deep);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, p {
  margin: 0;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

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

.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: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  background: var(--red);
  color: var(--cream);
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-250%);
  transition: transform 0.2s var(--ease);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--header-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #141A28 0%, #0F121C 100%);
  border-right: 1px solid var(--gold-line);
  z-index: 1000;
}

.header-brand {
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(200, 139, 47, 0.3);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: var(--cream);
}

.brand-cn {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: 0.08em;
}

.brand-en {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
}

.header-tagline {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gray);
  border-left: 2px solid var(--red);
  padding-left: 8px;
  height: 64px;
}

.site-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.nav-list {
  padding: 16px 0;
}

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

.nav-link {
  display: block;
  padding: 14px 24px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--cream);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.nav-link:hover {
  background: rgba(214, 43, 43, 0.14);
  border-left-color: var(--red);
  color: #fff;
}

.nav-link[aria-current="page"] {
  border-left-color: var(--gold);
  color: var(--gold);
  background: linear-gradient(90deg, rgba(232, 163, 61, 0.14), transparent 72%);
}

.nav-footer {
  margin-top: auto;
  padding: 24px;
  border-top: 1px solid rgba(200, 139, 47, 0.22);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nav-cta {
  display: block;
  padding: 12px 18px;
  background: var(--red);
  color: var(--cream);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: #E94040;
  transform: translateY(-2px);
}

.nav-tagline {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.35rem;
  text-align: center;
  letter-spacing: 0.1em;
  color: transparent;
  background: linear-gradient(135deg, var(--red) 0%, var(--gold) 80%);
  -webkit-background-clip: text;
  background-clip: text;
}

.nav-toggle {
  display: none;
}

.site-main,
.site-footer {
  width: calc(100% - var(--header-w));
  margin-left: var(--header-w);
}

.site-footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--gold-line);
  color: var(--cream);
  padding: 48px clamp(20px, 4vw, 48px) 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: var(--container-w);
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brand-mark--footer .brand-cn {
  font-size: 1.4rem;
}

.footer-tagline {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--gold);
  letter-spacing: 0.12em;
}

.footer-trust {
  font-size: 0.85rem;
  color: var(--gray);
  max-width: 34ch;
}

.footer-heading {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(200, 139, 47, 0.3);
}

.footer-heading-link {
  color: var(--gold);
  text-decoration: none;
}

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

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

.footer-links a {
  color: var(--cream);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--gray);
}

.footer-contact-list a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-list a:hover {
  color: var(--gold);
}

.footer-contact-note {
  font-size: 0.75rem;
  color: var(--gray);
  opacity: 0.8;
  margin-top: 8px;
}

.footer-legal {
  max-width: var(--container-w);
  margin: 36px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(200, 139, 47, 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 0.8rem;
  color: var(--gray);
}

.footer-legal a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
}

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

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

.section {
  padding: clamp(48px, 8vw, 96px) 0;
}

.section-band {
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  background: linear-gradient(90deg, rgba(214, 43, 43, 0.18), rgba(232, 163, 61, 0.08));
  padding: clamp(32px, 6vw, 72px) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

.section-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-right: 12px;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  margin-top: 8px;
}

.section-note {
  font-size: 0.75rem;
  color: var(--gray);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
}

.btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--cream);
  background: var(--red);
  border: 1px solid transparent;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background 0.2s, transform 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover,
.btn-primary:hover {
  background: #E94040;
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: rgba(232, 163, 61, 0.1);
  border-color: var(--gold);
  color: var(--cream);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px clamp(16px, 4vw, 48px);
  font-size: 0.85rem;
  color: var(--gray);
  max-width: var(--container-w);
  margin: 0 auto;
}

.breadcrumb-link {
  color: var(--gold);
  text-decoration: none;
}

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

.breadcrumb--sep {
  opacity: 0.55;
}

.panel {
  background: var(--bg-panel);
  border: 1px solid rgba(200, 139, 47, 0.24);
  border-left: 3px solid var(--red);
  padding: 24px;
}

.data-panel {
  background: var(--bg-panel);
  border: 1px solid rgba(200, 139, 47, 0.24);
  border-top: 3px solid var(--gold);
  padding: 24px;
}

.data-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  line-height: 1;
  color: var(--gold);
}

.data-label {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 6px;
}

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-panel);
  border: 1px solid rgba(160, 160, 160, 0.15);
  border-bottom: 3px solid var(--gold-line);
  padding: 24px;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.card-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 8px;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--gray);
}

.theme-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--gold-line);
  color: var(--cream);
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.filter-btn:hover {
  background: rgba(214, 43, 43, 0.16);
}

.filter-btn.is-active,
.filter-btn[aria-pressed="true"] {
  background: var(--red);
  border-color: var(--red);
  color: var(--cream);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

.img-frame {
  position: relative;
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid rgba(200, 139, 47, 0.3);
  aspect-ratio: 16 / 10;
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(214, 43, 43, 0.14), transparent 50%, rgba(232, 163, 61, 0.14));
  pointer-events: none;
}

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

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

@media (max-width: 1023px) {
  .site-header {
    position: sticky;
    width: 100%;
    height: 64px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-right: none;
    border-bottom: 1px solid var(--gold-line);
  }

  .header-brand {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 0;
    border-bottom: none;
  }

  .brand-cn {
    font-size: 1.1rem;
  }

  .brand-en {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
  }

  .header-tagline {
    display: none;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--gold-line);
    position: relative;
    z-index: 110;
  }

  .nav-toggle--box {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .nav-toggle--line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gold);
    transition: transform 0.22s var(--ease);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle--line:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle--line:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: 64px;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--bg-deep);
    border-left: 1px solid var(--gold-line);
    transform: translateX(102%);
    transition: transform 0.3s var(--ease);
    padding: 24px;
    flex-direction: column;
    overflow-y: auto;
    z-index: 120;
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.45);
  }

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

  .nav-list {
    padding: 0;
  }

  .nav-footer {
    padding: 16px 0 0;
  }

  .site-main,
  .site-footer {
    width: 100%;
    margin-left: 0;
  }

  .section-note {
    writing-mode: horizontal-tb;
    white-space: normal;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .site-nav {
    transition: none;
  }

  .nav-toggle--line {
    transition: none;
  }
}
