:root {
  --color-primary: #7B2FBE;
  --color-accent: #FF4E50;
  --color-green: #1B4D3E;
  --color-gold: #D4AF37;
  --color-dark: #1A0B2E;
  --color-light: #F5F3F7;
  --color-cyan: #00E5CC;
  --text-color: #111827;
  --font-heading: "站酷快乐体", "ZCOOL KuaiLe", "PingFang SC", sans-serif;
  --font-body: "思源黑体", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-data: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --radius-lg: 2rem;
  --radius-md: 1.25rem;
  --radius-pill: 999px;
  --content-width: 1280px;
  --header-height: 6rem;
  --space-section: 4rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--color-light);
  color: var(--text-color);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

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

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

#main-content {
  scroll-margin-top: 7rem;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.6rem 1.1rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-pill);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-1rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.skip-link:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  padding: 1rem clamp(1rem, 2vw, 2rem);
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.header-shell {
  position: relative;
  width: min(1720px, 100%);
  display: flex;
  align-items: center;
  gap: 0.6rem 1rem;
  padding: 0.65rem 0.9rem 0.65rem 1.4rem;
  border-radius: var(--radius-pill);
  background-color: rgba(26, 11, 46, 0.92);
  background-image:
    radial-gradient(circle at 82% -30%, rgba(0, 229, 204, 0.28), transparent 42%),
    repeating-radial-gradient(circle at 92% 50%, rgba(212, 175, 55, 0.08) 0 1px, transparent 1px 24px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 12px 40px rgba(26, 11, 46, 0.3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  flex-shrink: 0;
}

.brand:hover {
  color: #fff;
}

.brand-mark {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem;
  background: rgba(245, 243, 247, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-pill);
}

.nav-link {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:hover {
  background: rgba(0, 229, 204, 0.16);
  color: #fff;
}

.nav-link[aria-current="page"] {
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 78, 80, 0.26);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #9b4de6);
  color: #fff;
}

.btn-primary:hover {
  box-shadow: 0 8px 20px rgba(123, 47, 190, 0.35);
  color: #fff;
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  color: #fff;
}

.btn-accent:hover {
  box-shadow: 0 8px 20px rgba(255, 78, 80, 0.35);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

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

.nav-toggle {
  display: none;
  justify-content: center;
  align-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(245, 243, 247, 0.08);
  color: #fff;
}

.nav-toggle:hover {
  background: rgba(0, 229, 204, 0.15);
}

.nav-toggle-icon {
  display: block;
  position: relative;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.25rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, top 0.25s ease;
}

.nav-toggle-icon::before {
  top: -0.4rem;
}

.nav-toggle-icon::after {
  top: 0.4rem;
}

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

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

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

.site-footer {
  position: relative;
  overflow: hidden;
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.82);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 130%, rgba(123, 47, 190, 0.35), transparent 38%),
    repeating-radial-gradient(circle at 90% 10%, rgba(212, 175, 55, 0.12) 0 1px, transparent 1px 26px);
  pointer-events: none;
}

.footer-shell {
  position: relative;
  width: min(var(--content-width), calc(100% - 3rem));
  margin-inline: auto;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.8fr 1.2fr;
  gap: 2rem 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand .brand-name {
  font-size: 1.25rem;
}

.footer-tagline,
.footer-trust {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  max-width: 46ch;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-gold);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.footer-links ul,
.footer-help ul,
.footer-contact ul {
  display: grid;
  gap: 0.65rem;
}

.footer-links a,
.footer-help a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover,
.footer-help a:hover,
.footer-contact a:hover {
  color: var(--color-cyan);
  padding-left: 0.2rem;
}

.footer-contact li {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-item {
  display: block;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
}

.container {
  width: min(var(--content-width), calc(100% - 3rem));
  margin-inline: auto;
}

.container-narrow {
  width: min(840px, calc(100% - 3rem));
  margin-inline: auto;
}

.section {
  padding: var(--space-section) 0;
}

.section + .section {
  padding-top: 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  max-width: 64ch;
  color: #6b7280;
  font-size: 1.05rem;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.card {
  position: relative;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(123, 47, 190, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 12px 30px rgba(123, 47, 190, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(123, 47, 190, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-text {
  color: #4b5563;
  font-size: 0.95rem;
}

.glass {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.panel {
  background: #ffffff;
  border: 1px solid rgba(123, 47, 190, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(123, 47, 190, 0.08);
  border: 1px solid rgba(123, 47, 190, 0.16);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.badge-gold {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.4);
  color: #856e1c;
}

.data-text {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.media {
  display: block;
  background:
    linear-gradient(135deg, rgba(123, 47, 190, 0.15), rgba(27, 77, 62, 0.2)),
    repeating-radial-gradient(circle, rgba(212, 175, 55, 0.25) 0 1px, transparent 1px 22px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-16-9 {
  aspect-ratio: 16 / 9;
}

.media-4-3 {
  aspect-ratio: 4 / 3;
}

.media-1-1 {
  aspect-ratio: 1 / 1;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.breadcrumbs a {
  color: var(--color-primary);
}

.breadcrumbs a:hover {
  color: var(--color-cyan);
}

.breadcrumbs .sep {
  opacity: 0.45;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid rgba(123, 47, 190, 0.2);
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-btn:hover {
  background: rgba(123, 47, 190, 0.06);
  border-color: var(--color-gold);
}

.filter-btn.is-active,
.filter-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--color-primary), #5b2180);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(123, 47, 190, 0.25);
}

.filter-item.is-hidden {
  display: none !important;
}

@media (max-width: 1099px) {
  .header-shell {
    flex-wrap: wrap;
    border-radius: 2rem;
    padding: 0.6rem 0.75rem 0.6rem 1.1rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex-basis: 100%;
    display: none;
    order: 5;
    padding: 0.25rem 0;
  }

  .site-nav[data-open] {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    background: rgba(245, 243, 247, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    padding: 0.4rem;
  }

  .nav-link {
    padding: 0.8rem 1rem;
  }

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

  .brand-mark {
    width: 2.1rem;
    height: 2.1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}

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

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

  .header-actions .btn-accent {
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
  }

  .header-shell {
    padding-left: 0.9rem;
  }
}

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

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

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