*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: #e8e0ff;
  background-color: #0a0614;
  background-image:
    radial-gradient(ellipse 48% 28% at 70% -5%, rgba(255,45,149,0.10), transparent 70%),
    radial-gradient(ellipse 35% 28% at 10% 3%, rgba(0,229,255,0.06), transparent 70%),
    linear-gradient(rgba(184,168,224,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,168,224,0.035) 1px, transparent 1px);
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-size: auto, auto, 36px 36px, 36px 36px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(255,45,149,0.35); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0a0614; }
::-webkit-scrollbar-thumb { background: rgba(255,45,149,0.35); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,45,149,0.6); }

:root {
  --font-heading: "Georgia", "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --color-bg: #0a0614;
  --color-panel: #150b2e;
  --color-glass: rgba(20,10,40,0.7);
  --color-text: #e8e0ff;
  --color-text-muted: #b8a8e0;
  --color-text-dim: #7a6a9e;
  --color-accent: #ff2d95;
  --color-accent-2: #00e5ff;
  --color-border: rgba(255,45,149,0.4);
  --color-border-blue: rgba(0,229,255,0.35);
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3.5rem;
  --space-xl: 5rem;
  --radius: 0.5rem;
  --container: 1280px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 0.5em;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.2rem; }
p { margin-bottom: 1rem; }
a { color: var(--color-accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
img, svg { max-width: 100%; display: block; }
button { background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--color-accent-2);
  outline-offset: 2px;
  border-radius: 2px;
}

#main-content {
  min-height: 60vh;
  padding-top: 4.5rem;
  scroll-margin-top: 4.5rem;
  outline: none;
}

::-webkit-scrollbar-track-piece:start { background: transparent; }

.pg-container {
  width: min(100% - 2rem, 1280px);
  margin-inline: auto;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  z-index: 2000;
  padding: 0.5rem 1.4rem;
  background: var(--color-accent);
  color: #0a0614;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 0 0 6px 6px;
  transition: transform 0.2s ease;
}
.skip-link:focus-visible {
  transform: translateX(-50%) translateY(0);
  outline: none;
  box-shadow: 0 0 24px rgba(255,45,149,0.45);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(20, 10, 40, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 45, 149, 0.25);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.site-header__inner {
  display: flex;
  flex-direction: column;
}

.site-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0 0.4rem;
  position: relative;
}

.site-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  gap: 0.1rem;
}
.site-brand:hover { text-decoration: none; }
.site-brand__name {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1.2;
  color: var(--color-text);
  text-shadow: 0 0 18px rgba(255, 45, 149, 0.3), 0 0 40px rgba(0, 229, 255, 0.12);
}
.site-brand__tagline {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--color-accent-2);
  opacity: 0.9;
  line-height: 1.4;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid rgba(255, 45, 149, 0.4);
  border-radius: 6px;
  background: rgba(255, 45, 149, 0.06);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-toggle:hover {
  border-color: var(--color-accent);
  background: rgba(255, 45, 149, 0.12);
}
.nav-toggle__line {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.2s 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;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: relative;
  border-top: 1px solid rgba(255, 45, 149, 0.18);
}
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem;
}
.site-nav__link {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 0 8px rgba(255, 45, 149, 0.5);
}
.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--color-text);
  text-decoration: none;
}
.site-nav__link:hover::after,
.site-nav__link:focus-visible::after {
  transform: scaleX(1);
}
.site-nav__link[aria-current="page"] {
  color: var(--color-accent);
  text-shadow: 0 0 14px rgba(255, 45, 149, 0.4);
}
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav__search {
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--color-accent-2);
  opacity: 0.75;
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 50%;
  transition: opacity 0.2s ease, border-color 0.2s ease;
  pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--space-xl);
  background: linear-gradient(180deg, rgba(21, 11, 46, 0.92), #0a0614 100%);
  border-top: 1px solid rgba(255, 45, 149, 0.28);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2), var(--color-accent));
  opacity: 0.45;
  pointer-events: none;
}
.site-footer__brand {
  padding: 3rem 0 2rem;
}
.site-footer__logo {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--color-text);
  text-decoration: none;
  text-shadow: 0 0 18px rgba(255, 45, 149, 0.25);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.site-footer__logo:hover {
  color: var(--color-text);
  text-decoration: none;
  text-shadow: 0 0 26px rgba(255, 45, 149, 0.5);
}
.site-footer__tagline {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-2);
}
.site-footer__trust {
  margin-top: 1rem;
  max-width: 36rem;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--color-text-dim);
  border-left: 2px solid rgba(255, 45, 149, 0.4);
  padding-left: 1rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(184, 168, 224, 0.12);
}
.site-footer__heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-2);
  margin-bottom: 0.9rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(0, 229, 255, 0.18);
}
.site-footer__list li {
  margin-bottom: 0.4rem;
}
.site-footer__list a {
  color: var(--color-text-muted);
  font-size: 0.87rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer__list a:hover {
  color: var(--color-text);
  text-decoration: none;
}
.site-footer__contact .site-footer__list li {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding: 1.4rem 0;
  font-size: 0.76rem;
  color: var(--color-text-dim);
}
.site-footer__legal p { margin-bottom: 0; }
.site-footer__legal a {
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}
.site-footer__legal a:hover {
  color: var(--color-text);
  text-decoration: none;
}
.site-footer__legal-links {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.site-footer__legal-sep {
  opacity: 0.5;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  background: transparent;
  color: var(--color-text);
  border-color: rgba(255, 45, 149, 0.45);
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 45, 149, 0.18);
}
.btn--primary {
  background: linear-gradient(135deg, #ff2d95, #d61f7c);
  border-color: transparent;
  color: #0a0614;
  font-weight: 700;
}
.btn--primary:hover {
  box-shadow: 0 0 24px rgba(255, 45, 149, 0.35);
}
.btn--ghost {
  border-color: rgba(0, 229, 255, 0.5);
  color: var(--color-accent-2);
}
.btn--ghost:hover {
  background: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.2);
}

/* ---------- Badges / tags ---------- */
.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--color-accent-2);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.35);
}
.badge--pink {
  color: var(--color-accent);
  background: rgba(255, 45, 149, 0.12);
  border-color: rgba(255, 45, 149, 0.4);
}
.badge--muted {
  color: var(--color-text-muted);
  background: rgba(184, 168, 224, 0.08);
  border-color: rgba(184, 168, 224, 0.25);
}
.tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  background: rgba(184, 168, 224, 0.08);
  border-left: 2px solid var(--color-accent-2);
  margin: 0 0.25rem 0.25rem 0;
}

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(160deg, rgba(21, 11, 46, 0.9), rgba(10, 6, 20, 0.98));
  border: 1px solid rgba(255, 45, 149, 0.2);
  border-radius: 0.35rem;
  padding: 1.5rem;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}
.card--cut {
  position: relative;
  border: 0;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.card--cut::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 45, 149, 0.35);
  pointer-events: none;
}

/* ---------- Divider ---------- */
.divider {
  height: 1px;
  border: 0;
  margin: 2.5rem 0;
  background: linear-gradient(90deg, transparent, rgba(255, 45, 149, 0.5), rgba(0, 229, 255, 0.3), transparent);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0 1.5rem;
  font-size: 0.8rem;
  color: var(--color-text-dim);
}
.breadcrumbs a {
  color: var(--color-accent-2);
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs__sep {
  color: rgba(255, 45, 149, 0.6);
}

/* ---------- Section heading ---------- */
.section-heading {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.section-heading__index {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 0.85;
  color: var(--color-accent);
  opacity: 0.7;
  letter-spacing: -0.04em;
}
.section-heading__title {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--space-lg) 0 var(--space-md);
  border-bottom: 1px solid rgba(255, 45, 149, 0.18);
}
.hero__kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.9rem;
}
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin-bottom: 1.1rem;
  text-shadow: 0 0 30px rgba(255, 45, 149, 0.12);
}
.hero__lead {
  max-width: 46rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 1.4rem;
}
.hero__meta {
  font-size: 0.78rem;
  color: var(--color-text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* ---------- Image frames ---------- */
.img-frame {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--color-panel);
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 45, 149, 0.18);
}
.img-frame--wide { aspect-ratio: 16 / 9; }
.img-frame--square { aspect-ratio: 1 / 1; }
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.img-frame:hover img { transform: scale(1.03); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1500;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: rgba(21, 11, 46, 0.85);
  color: var(--color-accent);
  box-shadow: 0 0 16px rgba(255, 45, 149, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background 0.2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: rgba(255, 45, 149, 0.15);
  color: var(--color-text);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Accordion ---------- */
.accordion {
  border: 1px solid rgba(255, 45, 149, 0.2);
  border-radius: 0.25rem;
  background: rgba(21, 11, 46, 0.4);
  margin-bottom: 0.75rem;
}
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  color: var(--color-text);
  background: transparent;
  cursor: pointer;
}
.accordion__trigger::after {
  content: "+";
  font-size: 1.2rem;
  line-height: 1;
  color: var(--color-accent);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.accordion[data-open] .accordion__trigger::after {
  transform: rotate(45deg);
}
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.accordion[data-open] .accordion__panel {
  max-height: 600px;
}
.accordion__panel-inner {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ---------- Responsive ---------- */
@media (min-width: 600px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 10, 40, 0.96);
    border-top: 1px solid rgba(255, 45, 149, 0.35);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.5);
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    padding-bottom: 0.5rem;
  }
  .site-nav[data-open] {
    display: block;
  }
  .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding: 0.4rem 0 0.6rem;
  }
  .site-nav__item {
    border-bottom: 1px solid rgba(184, 168, 224, 0.07);
  }
  .site-nav__item:last-child {
    border-bottom: 0;
  }
  .site-nav__link {
    padding: 0.8rem 1.25rem;
    font-size: 0.95rem;
  }
  .site-nav__link::after {
    display: none;
  }
  .site-nav__search {
    display: none;
  }
  .site-masthead {
    padding-top: 0.65rem;
  }
}

@media (min-width: 768px) {
  .site-masthead {
    flex-direction: column;
    justify-content: center;
    padding: 1.1rem 0 0.55rem;
  }
  .site-brand {
    align-items: center;
  }
  .site-brand__name {
    font-size: 1.85rem;
  }
  .site-brand__tagline {
    font-size: 0.7rem;
  }
  .nav-toggle {
    display: none;
  }
  .site-nav__list {
    gap: 0.5rem;
  }
  .site-nav__link {
    padding: 0.6rem 1rem;
  }
  .site-nav__link::after {
    left: 1rem;
    right: 1rem;
  }
  #main-content {
    padding-top: 8rem;
    scroll-margin-top: 8rem;
  }
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1.4fr;
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: 300px minmax(0, 1fr);
  }
  .content-grid__aside {
    position: sticky;
    top: 8.5rem;
    padding-right: 0.5rem;
  }
}

/* ---------- Reduced motion ---------- */
@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;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .back-to-top {
    transition: none;
  }
}
