:root {
  --deep-purple: #2D1B4E;
  --paper: #F5EFE6;
  --gold: #D4AF37;
  --orange: #FF6B35;
  --ink: #1A1A1A;
  --deep-purple-light: #4A2A6A;
  --gold-light: #E8C96A;
  --border-gold: #A67C00;
  --white: #FFFFFF;
  --shadow: #0F0F0F;
  --header-width: 260px;
  --font-display: "Playfair Display", "Noto Serif SC", Georgia, serif;
  --font-body: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  --width-container: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-left: var(--header-width);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
}

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

ul,
ol {
  margin: 0;
}

address {
  font-style: normal;
}

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

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

.skip-link {
  position: fixed;
  left: -9999px;
  top: 8px;
  z-index: 2000;
  padding: 12px 18px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 600;
}

.skip-link:focus-visible {
  left: 8px;
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: var(--header-width);
  right: 0;
  height: 4px;
  width: 0;
  background: var(--orange);
  z-index: 1500;
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--header-width);
  bottom: 0;
  display: flex;
  flex-direction: column;
  padding: 36px 24px 32px;
  background: linear-gradient(160deg, var(--deep-purple) 0%, var(--deep-purple-light) 100%);
  border-right: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--white);
  z-index: 1000;
  overflow-y: auto;
}

.brand {
  display: block;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  margin-bottom: 24px;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--white);
  text-transform: uppercase;
}

.brand-slogan {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--gold-light);
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 1101;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: transparent;
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1;
  padding: 10px 12px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
}

.nav-toggle-burger {
  display: inline-block;
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--gold);
}

.nav-toggle-burger::before,
.nav-toggle-burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.2s;
}

.nav-toggle-burger::before {
  top: -6px;
}

.nav-toggle-burger::after {
  top: 6px;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-burger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-burger::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-link {
  display: block;
  padding: 11px 16px;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: var(--gold-light);
  border-left: 2px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--white);
  border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.12), transparent);
}

.nav-link[aria-current="page"] {
  color: var(--white);
  border-left-color: var(--orange);
  background: linear-gradient(90deg, rgba(255, 107, 53, 0.18), transparent);
}

.nav-cta {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 20px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(15, 15, 15, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.site-footer {
  background: var(--deep-purple);
  color: var(--paper);
  position: relative;
  /* body 左 padding 已为固定头让位，footer 无需再设 margin */
}

.site-footer a {
  color: var(--gold-light);
  transition: color 0.2s;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--white);
}

.footer-grid {
  max-width: var(--width-container);
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 48px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 12px;
  color: var(--white);
}

.footer-brand-summary {
  margin: 0;
  font-size: 15px;
  color: rgba(245, 239, 230, 0.8);
  max-width: 360px;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 18px;
  color: var(--gold);
  letter-spacing: 0.05em;
}

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

.footer-list a {
  font-size: 15px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  color: rgba(245, 239, 230, 0.8);
}

.footer-bottom {
  border-top: 1px solid rgba(212, 175, 55, 0.25);
}

.footer-bottom-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 13px;
  color: var(--gold-light);
}

.footer-statement {
  margin: 0;
}

.footer-copyright,
.footer-icp {
  margin: 0;
  white-space: nowrap;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  padding: 12px 16px;
  background: var(--orange);
  color: var(--ink);
  border: 0;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 15, 15, 0.3);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.back-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 0;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover,
.btn:focus-visible {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--orange);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #ff8855;
}

.btn-outline {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--border-gold);
  color: var(--deep-purple);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--gold-light);
  box-shadow: none;
}

.breadcrumb {
  margin-bottom: 28px;
  font-size: 14px;
}

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

.breadcrumb li {
  display: flex;
  align-items: center;
}

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

.breadcrumb a {
  color: var(--deep-purple);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--orange);
}

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

.page-hero {
  background: var(--deep-purple);
  color: var(--white);
  padding: 72px 0 56px;
  margin-bottom: 56px;
  border-bottom: 2px solid var(--gold);
}

.page-hero .hero-title {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.15;
  margin: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--ink);
}

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

.grid-col {
  min-width: 0;
}

.card {
  background: var(--white);
  border: 1px solid var(--border-gold);
  padding: 24px;
}

.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--gold-light);
  color: var(--ink);
  border-radius: 2px;
}

.media-frame {
  position: relative;
  background: linear-gradient(135deg, var(--deep-purple), var(--deep-purple-light));
  border: 1px solid var(--border-gold);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  color: var(--gold-light);
}

.media-frame::before {
  content: "▣";
  font-family: var(--font-display);
  font-size: 56px;
  opacity: 0.35;
}

@media (max-width: 1023px) {
  body {
    padding-left: 0;
    padding-top: 64px;
  }

  .scroll-progress {
    left: 0;
  }

  .site-header {
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    height: 64px;
    flex-direction: row;
    align-items: center;
    padding: 0 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    z-index: 1000;
  }

  .brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 0;
    border: 0;
    margin: 0;
  }

  .brand-name {
    font-size: 22px;
  }

  .brand-slogan {
    display: none;
  }

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

  .site-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--deep-purple);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 1000;
    transform: translateY(-105%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(15, 15, 15, 0.4);
  }

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

  .nav-list {
    margin-bottom: 24px;
  }

  .nav-link {
    font-size: 18px;
    padding: 13px 16px;
    border-left: 3px solid transparent;
  }

  .nav-cta {
    align-self: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 24px 32px;
  }

  .footer-bottom-inner {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }

  .footer-copyright,
  .footer-icp {
    white-space: normal;
  }

  .page-hero {
    padding: 56px 0 40px;
  }

  .page-hero .hero-title {
    font-size: 36px;
  }
}

@media (max-width: 639px) {
  .section-title {
    font-size: 26px;
  }

  .grid {
    grid-template-columns: 1fr !important;
  }

  .back-top {
    right: 16px;
    bottom: 16px;
    padding: 10px 14px;
  }
}

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