:root {
  --bg-deep: #0D0B14;
  --bg-panel: #1A1423;
  --bg-rail: #120D1C;
  --neon-purple: #9B5CF6;
  --neon-blue: #00E5FF;
  --neon-pink: #FF3D81;
  --text-main: #F5F5F5;
  --text-dim: #B0B0C4;
  --grad-main: linear-gradient(135deg, #9B5CF6 0%, #FF3D81 100%);
  --rail-width: 260px;
  --header-h: 64px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Shippori Mincho', 'Noto Serif SC', 'STSong', 'SimSun', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

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

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse at 85% 10%, rgba(155, 92, 246, 0.09), transparent 50%),
    radial-gradient(ellipse at 10% 85%, rgba(255, 61, 129, 0.05), transparent 42%);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  padding-left: var(--rail-width);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

ul, ol {
  list-style: none;
}

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

::selection {
  background: rgba(255, 61, 129, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--neon-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

main:focus {
  outline: none;
}

#main-content {
  display: block;
  flex: 1 0 auto;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; font-weight: 600; }

.container {
  width: min(1200px, 100% - 64px);
  margin-inline: auto;
}

.section {
  padding: 80px 0;
}

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

.kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--neon-blue);
  margin-bottom: 10px;
}

.display-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 10px;
  padding-left: 16px;
  position: relative;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 4px;
  height: 0.8em;
  background: var(--grad-main);
  border-radius: 4px;
}

.page-hero {
  padding: 72px 0 48px;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 14px;
}

.page-hero-lead {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 620px;
}

.content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--text-dim);
  font-size: 0.78rem;
  margin-bottom: 16px;
}

.content-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn-primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 4px 24px rgba(155, 92, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(255, 61, 129, 0.4);
}

.btn-outline {
  background: rgba(155, 92, 246, 0.06);
  border-color: rgba(155, 92, 246, 0.55);
  color: #cbb4f8;
}

.btn-outline:hover {
  background: rgba(155, 92, 246, 0.14);
  border-color: var(--neon-purple);
  color: #fff;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: rgba(155, 92, 246, 0.14);
  color: #cbb4f8;
  border: 1px solid rgba(155, 92, 246, 0.35);
}

.badge-blue {
  background: rgba(0, 229, 255, 0.1);
  color: var(--neon-blue);
  border-color: rgba(0, 229, 255, 0.3);
}

.badge-pink {
  background: rgba(255, 61, 129, 0.12);
  color: #FF62A0;
  border-color: rgba(255, 61, 129, 0.3);
}

.card {
  background: var(--bg-panel);
  border: 1px solid rgba(155, 92, 246, 0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  border-color: rgba(155, 92, 246, 0.3);
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 30px rgba(155, 92, 246, 0.05);
  pointer-events: none;
}

.card-media {
  margin: -24px -24px 20px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.card-body {
  position: relative;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.card-desc {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.65;
}

.visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 75%, rgba(255, 61, 129, 0.18), transparent 42%),
    radial-gradient(circle at 78% 15%, rgba(0, 229, 255, 0.15), transparent 36%),
    linear-gradient(145deg, rgba(155, 92, 246, 0.18), rgba(26, 20, 35, 0.9));
}

.visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.04), transparent 25%),
    linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.03) 50%, transparent 80%);
  pointer-events: none;
}

.visual-16x9 { aspect-ratio: 16 / 9; }
.visual-4x3 { aspect-ratio: 4 / 3; }
.visual-1x1 { aspect-ratio: 1 / 1; }
.visual-portrait { aspect-ratio: 3 / 4; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 28px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

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

.breadcrumb li + li::before {
  content: '/';
  color: rgba(155, 92, 246, 0.5);
}

.breadcrumb a {
  color: var(--neon-purple);
  text-decoration: none;
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: calc(var(--rail-width) + 20px);
  z-index: 3000;
  background: var(--grad-main);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(155, 92, 246, 0.45);
  transition: top 0.3s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-width);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 50% 108%, rgba(155, 92, 246, 0.14), transparent 55%),
    radial-gradient(ellipse at 50% -10%, rgba(0, 229, 255, 0.06), transparent 40%),
    linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-rail) 100%);
  border-right: 1px solid rgba(155, 92, 246, 0.28);
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--neon-purple), var(--neon-pink), var(--neon-blue));
  opacity: 0.5;
  pointer-events: none;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px 18px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-glyph {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--grad-main);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.3rem;
  border-radius: var(--radius-md);
  box-shadow: 0 0 18px rgba(155, 92, 246, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  flex: none;
}

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

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.brand-tagline {
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
}

.site-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  overflow-y: auto;
}

.nav-item {
  margin: 2px 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  font-size: 0.95rem;
  color: var(--text-dim);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(155, 92, 246, 0.08);
  border-left-color: var(--neon-purple);
}

.nav-link[aria-current="page"] {
  color: #fff;
  background: linear-gradient(90deg, rgba(155, 92, 246, 0.22), rgba(155, 92, 246, 0));
  border-left-color: var(--neon-pink);
}

[data-spy].is-active {
  color: var(--neon-blue);
  font-weight: 600;
}

.nav-index {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--neon-blue);
  opacity: 0.75;
  width: 22px;
  flex: none;
}

.nav-link:hover .nav-index {
  opacity: 1;
}

.nav-status {
  margin-top: auto;
  padding: 16px 24px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  opacity: 0.55;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-pink);
  margin-right: 8px;
  box-shadow: 0 0 8px rgba(255, 61, 129, 0.7);
  animation: statusPulse 2.4s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(155, 92, 246, 0.16);
  border: 1px solid rgba(155, 92, 246, 0.35);
  flex: none;
}

.nav-toggle-line {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-main);
  transition: top 0.3s var(--ease), transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle-line:nth-child(1) { top: 14px; }
.nav-toggle-line:nth-child(2) { top: 21px; }
.nav-toggle-line:nth-child(3) { top: 28px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  top: 21px;
  transform: 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) {
  top: 21px;
  transform: rotate(-45deg);
}

.reading-progress {
  position: fixed;
  top: 0;
  left: var(--rail-width);
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.03);
  z-index: 2000;
  pointer-events: none;
}

.reading-progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink));
  box-shadow: 0 0 12px rgba(255, 61, 129, 0.55);
  transition: width 0.08s linear;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

[data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

.site-footer {
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #141022 100%);
  border-top: 1px solid rgba(155, 92, 246, 0.22);
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 320px;
  height: 180px;
  background: radial-gradient(ellipse, rgba(155, 92, 246, 0.1), transparent 70%);
  pointer-events: none;
}

.footer-wave {
  height: 46px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(155, 92, 246, 0.22), transparent 55%),
    repeating-linear-gradient(118deg,
      transparent 0 18px,
      rgba(0, 229, 255, 0.05) 18px 20px,
      transparent 20px 38px,
      rgba(255, 61, 129, 0.04) 38px 40px);
  border-bottom: 1px solid rgba(155, 92, 246, 0.12);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 32px 44px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.footer-logo {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid rgba(255, 61, 129, 0.45);
  margin-bottom: 14px;
}

.footer-desc {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 14px;
}

.footer-trust {
  color: rgba(176, 176, 196, 0.6);
  font-size: 0.78rem;
  line-height: 1.7;
  max-width: 420px;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-main);
  margin-bottom: 16px;
  position: relative;
  padding-left: 12px;
}

.footer-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 3px;
  height: 0.7em;
  background: linear-gradient(180deg, var(--neon-blue), var(--neon-purple));
  border-radius: 3px;
}

.footer-list li {
  margin-bottom: 10px;
}

.footer-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.footer-link:hover {
  color: var(--neon-blue);
  padding-left: 4px;
}

.footer-contact li {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 8px;
  word-break: break-all;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px;
  border-top: 1px solid rgba(155, 92, 246, 0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
}

.footer-icp {
  letter-spacing: 0.06em;
  color: rgba(176, 176, 196, 0.7);
}

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

  .skip-link {
    left: 16px;
  }

  .site-header {
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: var(--header-h);
    flex-direction: row;
    align-items: center;
    background: rgba(18, 13, 28, 0.96);
    border-right: 0;
    border-bottom: 1px solid rgba(155, 92, 246, 0.3);
  }

  .site-header::before {
    display: none;
  }

  .header-bar {
    width: 100%;
    padding: 0 14px;
    border-bottom: 0;
  }

  .brand-glyph {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
  }

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

  .brand-tagline {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    width: min(310px, 86vw);
    background: linear-gradient(180deg, #181226, var(--bg-rail));
    border-right: 1px solid rgba(0, 229, 255, 0.18);
    box-shadow: 30px 0 80px rgba(0, 0, 0, 0.5);
    padding: 18px 0;
    transform: translateX(-105%);
    transition: transform 0.35s var(--ease);
    z-index: 1300;
  }

  .site-nav[data-open] {
    transform: translateX(0);
  }

  .nav-link {
    padding: 16px 28px;
    font-size: 1rem;
  }

  .nav-status {
    margin-top: auto;
  }

  body[data-nav-open]::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(13, 11, 20, 0.6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1100;
    cursor: pointer;
  }

  body[data-nav-open] {
    overflow: hidden;
  }

  .reading-progress {
    left: 0;
  }

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

  .footer-bottom {
    padding: 18px 24px;
  }

  .section {
    padding: 56px 0;
  }

  .page-hero {
    padding: 48px 0 36px;
  }

  .container {
    width: min(1200px, 100% - 40px);
  }
}

@media (max-width: 480px) {
  .footer-grid {
    gap: 28px;
    padding: 36px 20px 28px;
  }

  .footer-bottom {
    padding: 16px 20px;
    justify-content: center;
    text-align: center;
  }

  .footer-wave {
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .status-dot,
  .nav-toggle-line,
  .nav-link,
  .btn,
  .card,
  .footer-link,
  .brand-glyph,
  [data-reveal] {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }

  [data-reveal] {
    opacity: 1;
  }

  .reading-progress-fill {
    transition: none;
  }
}
