:root {
  --bg-primary: #0a0b14;
  --bg-secondary: #1c1030;
  --accent-purple: #9b59b6;
  --accent-blue: #3498db;
  --neon-pink: #ff6ec7;
  --text-primary: #f5f0e8;
  --text-secondary: #7f8fa6;
  --danger: #c0392b;
  --header-height: 72px;
  --content-max: 1440px;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow-neon: 0 0 18px rgba(155, 89, 182, 0.3), 0 0 40px rgba(255, 110, 199, 0.12);
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-image: radial-gradient(ellipse 80% 50% at 80% -10%, rgba(52, 152, 219, 0.1), transparent),
    radial-gradient(ellipse 50% 40% at 10% 20%, rgba(155, 89, 182, 0.08), transparent);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.nav-locked {
  overflow: hidden;
}

main {
  flex: 1 1 auto;
  width: 100%;
}

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

ul,
ol {
  list-style: none;
}

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

a:hover {
  color: var(--neon-pink);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

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

h2 {
  font-size: clamp(22px, 3vw, 34px);
}

h3 {
  font-size: 20px;
}

p {
  margin-bottom: 1em;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-purple), var(--neon-pink));
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(155, 89, 182, 0.5);
  transform: translateY(-160%);
  transition: transform 0.3s ease;
}

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

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 8px;
}

.section-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-pink), var(--accent-blue));
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-purple), var(--neon-pink));
  color: #fff;
  box-shadow: 0 4px 20px rgba(155, 89, 182, 0.35);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(155, 89, 182, 0.5);
  color: #fff;
}

.btn--ghost {
  border-color: rgba(52, 152, 219, 0.6);
  color: var(--accent-blue);
  background: transparent;
}

.btn--ghost:hover {
  background: rgba(52, 152, 219, 0.1);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--accent-blue);
}

.breadcrumb a:hover {
  color: var(--neon-pink);
}

.breadcrumb [aria-current="page"] {
  color: var(--text-primary);
}

.breadcrumb__sep {
  opacity: 0.4;
}

.panel {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid rgba(155, 89, 182, 0.22);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 3vw, 32px);
}

.panel--cut {
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  border-radius: 0;
}

.panel--cut::after {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-pink), transparent);
  opacity: 0.75;
}

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

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

.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  border: 1px solid rgba(52, 152, 219, 0.4);
  border-radius: 999px;
  background: rgba(10, 11, 20, 0.5);
  transition: all 0.25s ease;
}

.tag:hover {
  color: var(--neon-pink);
  border-color: var(--neon-pink);
  box-shadow: 0 0 12px rgba(255, 110, 199, 0.2);
}

.image-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid rgba(155, 89, 182, 0.22);
  border-radius: var(--radius-lg);
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.18), transparent 45%, rgba(52, 152, 219, 0.12));
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(115deg, transparent 0, transparent 26px, rgba(255, 110, 199, 0.05) 26px, rgba(255, 110, 199, 0.05) 28px);
}

.image-frame img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid rgba(155, 89, 182, 0.25);
  margin-bottom: 20px;
}

.tabs__trigger {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  transition: color 0.25s, background 0.25s, border-color 0.25s;
}

.tabs__trigger:hover {
  color: var(--text-primary);
}

.tabs__trigger[aria-selected="true"] {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: rgba(155, 89, 182, 0.4);
  box-shadow: inset 0 2px 0 var(--neon-pink);
}

.tab-panel {
  animation: tab-reveal 0.35s ease both;
}

.tab-panel[hidden] {
  display: none;
}

@keyframes tab-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(10, 11, 20, 0.96) 0%, rgba(20, 12, 34, 0.92) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(155, 89, 182, 0.3);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 30px rgba(5, 5, 15, 0.7), 0 0 24px rgba(155, 89, 182, 0.16);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue), var(--neon-pink));
  opacity: 0.7;
}

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

.site-header__top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand__icon {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 110, 199, 0.8), 0 0 30px rgba(155, 89, 182, 0.6);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-primary);
}

.brand__slogan {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent-blue);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav__link {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(245, 240, 232, 0.72);
  border-radius: 6px 6px 0 0;
  position: relative;
  transition: color 0.25s ease, background 0.25s ease;
}

.site-nav__link::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-pink), var(--accent-purple));
  transform: scaleX(0);
  transform-origin: 0 100%;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav__link:hover {
  color: var(--text-primary);
  background: rgba(155, 89, 182, 0.1);
}

.site-nav__link:hover::before,
.site-nav__link[aria-current="page"]::before {
  transform: scaleX(1);
}

.site-nav__link[aria-current="page"] {
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(255, 110, 199, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(155, 89, 182, 0.35);
  border-radius: 10px;
  background: rgba(28, 16, 48, 0.6);
  transition: border-color 0.3s ease, background 0.3s ease;
  flex-shrink: 0;
}

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

.nav-toggle__line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.35s ease, opacity 0.2s 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;
  transform: scaleX(0);
}

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

.category-strip {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.4s ease, opacity 0.4s ease;
}

.category-strip[hidden] {
  display: none;
}

.category-strip.is-hidden {
  grid-template-rows: 0fr;
  opacity: 0;
}

.category-strip__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  padding: 10px 0 12px;
  border-top: 1px solid rgba(52, 152, 219, 0.15);
}

.category-strip__label {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.category-strip__list {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-strip__list::-webkit-scrollbar {
  display: none;
}

.category-strip__chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 4px 16px;
  border: 1px solid rgba(52, 152, 219, 0.4);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-secondary);
  background: transparent;
  transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-strip__chip:hover {
  color: var(--neon-pink);
  border-color: var(--neon-pink);
  box-shadow: 0 0 14px rgba(255, 110, 199, 0.22);
}

.category-strip__chip.is-active {
  color: #fff;
  border-color: var(--neon-pink);
  background: rgba(255, 110, 199, 0.14);
  box-shadow: 0 0 14px rgba(255, 110, 199, 0.4);
}

.site-footer {
  margin-top: auto;
  position: relative;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #080910 100%);
  border-top: 1px solid rgba(155, 89, 182, 0.35);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-purple), var(--neon-pink), var(--accent-blue));
  opacity: 0.55;
}

.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 48px 24px 20px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr;
  gap: 40px;
}

.brand--footer .brand__icon {
  font-size: 28px;
}

.brand--footer .brand__name {
  font-size: 21px;
}

.brand--footer .brand__slogan {
  font-size: 11px;
  color: var(--accent-blue);
}

.site-footer__copyright,
.site-footer__icp,
.site-footer__address {
  font-size: 12px;
  color: rgba(127, 143, 166, 0.8);
  line-height: 1.7;
  margin-bottom: 2px;
}

.site-footer__copyright {
  margin-top: 16px;
}

.site-footer__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent-purple);
  margin-bottom: 12px;
}

.site-footer__title::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--neon-pink);
}

.site-footer__list,
.site-footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer__list a {
  display: inline-block;
  padding: 4px 0;
  font-size: 14px;
  color: rgba(245, 240, 232, 0.7);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.site-footer__list a:hover,
.site-footer__list a[aria-current="page"] {
  color: var(--text-primary);
  padding-left: 4px;
  text-shadow: 0 0 12px rgba(255, 110, 199, 0.3);
}

.site-footer__contact-list li {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(127, 143, 166, 0.9);
}

.site-footer__bottom {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 16px 24px 24px;
}

.site-footer__disclaimer {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(127, 143, 166, 0.6);
  border-top: 1px solid rgba(127, 143, 166, 0.12);
  padding-top: 14px;
  margin-bottom: 0;
}

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

@media (max-width: 900px) {
  .site-header__top {
    min-height: 64px;
  }

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

  .site-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(10, 11, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(155, 89, 182, 0.3);
    transition: max-height 0.4s ease, border-color 0.3s ease;
    z-index: 99;
  }

  .site-nav.is-open {
    max-height: 440px;
    border-bottom-color: rgba(155, 89, 182, 0.55);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
  }

  .site-nav__link {
    display: block;
    padding: 12px 8px;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid rgba(127, 143, 166, 0.12);
    border-radius: 0;
  }

  .site-nav__link::before {
    content: none;
  }

  .category-strip__inner {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 767px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 36px;
  }
}

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

  .brand__icon {
    font-size: 30px;
  }

  .brand__name {
    font-size: 18px;
  }

  .brand__slogan {
    font-size: 10px;
  }

  .site-footer__inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-footer__bottom {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@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;
    transition-delay: 0s !important;
  }

  .category-strip.is-hidden {
    display: none;
    grid-template-rows: none;
  }

  .tab-panel {
    animation: none;
  }
}
