:root {
  --navy: #0A1F44;
  --gold: #C9A227;
  --red: #E23B3B;
  --cream: #F7F3E8;
  --warm-gray: #E5DFD5;
  --ink: #1A1A1A;
  --soft-gold: #F5D36E;
  --blue-gray: #2D5A93;
  --light-blue: #B8C7D9;
  --ticker-height: 32px;
  --header-height: 72px;
  --header-total: calc(var(--ticker-height) + var(--header-height));
  --container-max: 1280px;
  --font-title: "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  --font-body: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-total) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--cream);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(40px, 6vw, 56px);
  letter-spacing: 0.02em;
}

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

h3 {
  font-size: 20px;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--blue-gray);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

ul, ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

#main-content {
  display: block;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 2000;
  padding: 10px 20px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

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

.text-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-container p {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 1.2em;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  --header-text: #ffffff;
  --header-muted: rgba(255, 255, 255, 0.68);
  --header-border: rgba(255, 255, 255, 0.18);
  background: rgba(10, 31, 68, 0.32);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--header-text);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, -webkit-backdrop-filter 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header[data-scrolled] {
  --header-text: var(--navy);
  --header-muted: var(--blue-gray);
  --header-border: rgba(10, 31, 68, 0.12);
  background: rgba(247, 243, 232, 0.94);
  box-shadow: 0 4px 24px rgba(10, 31, 68, 0.12);
}

.header-ticker {
  height: var(--ticker-height);
  background: var(--navy);
  border-bottom: 1px solid rgba(201, 162, 39, 0.3);
  overflow: hidden;
  color: var(--soft-gold);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.ticker-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: ticker-scroll 32s linear infinite;
}

.ticker-group {
  display: flex;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding-left: 24px;
  white-space: nowrap;
}

.ticker-item::before {
  content: "◆";
  font-size: 8px;
  color: var(--gold);
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.header-main {
  position: relative;
  height: var(--header-height);
  border-bottom: 1px solid var(--header-border);
  transition: border-color 0.3s ease;
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--header-text);
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.site-brand:hover {
  color: var(--gold);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--navy);
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  transform: skewX(-10deg);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
  flex-shrink: 0;
}

.brand-mark > span {
  display: inline-block;
  transform: skewX(10deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--header-text);
  transition: color 0.2s ease;
}

.brand-tagline {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--header-muted);
  transition: color 0.2s ease;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 10px 16px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--header-text);
  transition: color 0.2s ease;
}

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

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

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--gold);
  transform: skewX(-30deg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--header-text);
  font-size: 0;
  transition: color 0.2s ease;
}

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

.toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

.header-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--red));
  transition: width 0.1s linear;
  z-index: 1001;
}

/* ===== Footer ===== */
.site-footer {
  position: relative;
  margin-top: 80px;
  background: var(--navy);
  color: var(--cream);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--red) 50%, var(--gold));
  z-index: 2;
}

.site-footer::after {
  content: "9U";
  position: absolute;
  right: 24px;
  bottom: -24px;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 200px;
  line-height: 1;
  color: rgba(201, 162, 39, 0.05);
  pointer-events: none;
  user-select: none;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
}

.site-footer .brand-mark {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  box-shadow: none;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
}

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

.footer-brand-name {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.footer-tagline {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 243, 232, 0.55);
}

.footer-statement {
  margin-top: 24px;
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(247, 243, 232, 0.6);
}

.footer-heading {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  position: relative;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: var(--red);
}

.footer-nav-list {
  display: grid;
  gap: 2px;
}

.footer-nav-link {
  display: inline-block;
  font-size: 14px;
  line-height: 2.2;
  color: rgba(247, 243, 232, 0.75);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-nav-link:hover {
  color: var(--soft-gold);
  padding-left: 6px;
}

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

.footer-contact-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-contact-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 14px;
}

.contact-label {
  flex: 0 0 44px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.contact-value {
  color: rgba(247, 243, 232, 0.85);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  padding-top: 16px;
  border-top: 1px solid rgba(247, 243, 232, 0.12);
}

.footer-legal-link {
  font-size: 13px;
  color: var(--soft-gold);
  padding: 4px 12px 4px 0;
}

.footer-legal-link + .footer-legal-link::before {
  content: "·";
  margin-right: 12px;
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(247, 243, 232, 0.1);
  background: rgba(0, 0, 0, 0.15);
  padding: 16px 0;
  position: relative;
  z-index: 1;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--light-blue);
}

.footer-copyright,
.footer-icp,
.footer-note {
  margin: 0;
}

/* ===== 通用组件 ===== */
.page-header {
  background: var(--navy);
  color: var(--cream);
  padding: calc(var(--header-total) + 56px) 0 48px;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
}

.page-title {
  font-size: clamp(34px, 5vw, 48px);
  color: var(--cream);
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 16px;
  color: rgba(247, 243, 232, 0.72);
  max-width: 60ch;
}

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

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  padding: 8px 0;
}

.breadcrumb-link {
  color: var(--blue-gray);
  transition: color 0.2s ease;
}

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

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

.page-header .breadcrumb {
  color: rgba(247, 243, 232, 0.6);
}

.page-header .breadcrumb-link {
  color: rgba(247, 243, 232, 0.6);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-gold:hover {
  background: var(--soft-gold);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 162, 39, 0.35);
}

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

.btn-outline-light:hover {
  background: var(--gold);
  color: var(--navy);
}

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

.card {
  display: block;
  position: relative;
  background: #ffffff;
  border: 1px solid var(--warm-gray);
  border-top: 3px solid var(--gold);
  padding: 28px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 16px 16px 0;
  border-color: transparent var(--gold) transparent transparent;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(10, 31, 68, 0.15);
}

.glass-panel {
  position: relative;
  background: rgba(247, 243, 232, 0.45);
  border: 1px solid rgba(201, 162, 39, 0.3);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 32px;
}

.section-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--warm-gray);
  border-left: 4px solid var(--gold);
  padding: 40px;
  margin: 32px 0;
  box-shadow: 0 4px 16px rgba(10, 31, 68, 0.06);
}

.diagonal-clip {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
}

.exhibit-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid var(--gold);
  padding: 4px 12px;
  position: relative;
}

.exhibit-label::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--red);
  transform: rotate(45deg);
}

.exhibit-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red);
  letter-spacing: 0.1em;
}

.data-number {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  color: var(--navy);
}

.data-number-large {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.1;
  color: var(--gold);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.status-dot-live {
  background: var(--red);
  animation: status-pulse 1.5s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.image-frame {
  position: relative;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(10, 31, 68, 0.06) 10px 12px), var(--warm-gray);
  border: 1px solid var(--light-blue);
  overflow: hidden;
}

.image-frame::after {
  content: "IMG";
  position: absolute;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--blue-gray);
  opacity: 0.6;
}

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

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

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

.section-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.vertical-note {
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--blue-gray);
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 768px) {
  :root {
    --ticker-height: 28px;
    --header-height: 58px;
  }

  .brand-tagline {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--cream);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 5;
  }

  .site-nav[data-open] {
    max-height: min(70vh, 400px);
    overflow-y: auto;
  }

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

  .nav-link {
    color: var(--navy);
    border-bottom: 1px solid var(--warm-gray);
    padding: 14px 0;
    display: flex;
  }

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

  .nav-link[aria-current="page"]::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: 0;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

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

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

@media (max-width: 480px) {
  .brand-name {
    font-size: 18px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .header-inner {
    padding: 0 16px;
  }

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

  .section-panel {
    padding: 24px 16px;
  }

  .card {
    padding: 20px 16px;
  }
}

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

  .ticker-track {
    animation: none;
  }

  .ticker-group:nth-child(2) {
    display: none;
  }

  .status-dot-live {
    animation: none;
  }
}
