@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* =====================
   CSS 变量 & 重置
   ===================== */
:root {
  --c-primary: #6514ff;
  --c-accent: #bf00ff;
  --c-dark: #1c1726;
  --c-dark-2: #251e35;
  --c-dark-3: #2e2548;
  --c-glass: rgba(101, 20, 255, 0.12);
  --c-glass-border: rgba(191, 0, 255, 0.25);
  --c-text: #f0eaff;
  --c-text-muted: #b8a9d9;
  --c-neon: #d966ff;
  --c-white: #ffffff;
  --radius-card: 28px;
  --radius-btn: 50px;
  --font-main: 'Lexend', 'Source Sans 3', system-ui, sans-serif;
  --transition-std: 220ms cubic-bezier(.4,0,.2,1);
  --nav-h: 120px;
  --announce-h: 40px;
}

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

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

body {
  font-family: var(--font-main);
  background: var(--c-dark);
  color: var(--c-text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* scroll-margin for sections */
div[id] { scroll-margin-top: calc(var(--nav-h) + var(--announce-h) + 16px); }

/* =====================
   公告条
   ===================== */
.announce-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-accent) 100%);
  color: var(--c-white);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  height: var(--announce-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  overflow: hidden;
  width: 100%;
}

.announce-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  flex-shrink: 0;
}

/* =====================
   站头
   ===================== */
.site-header {
  position: sticky;
  top: var(--announce-h);
  z-index: 190;
  background: rgba(28, 23, 38, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-glass-border);
  box-shadow: 0 4px 32px rgba(101,20,255,0.15);
  width: 100%;
}

.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 48px;
  border-bottom: 1px solid rgba(191,0,255,0.1);
}

.brand-link { display: inline-flex; align-items: center; }

.brand-logo { height: 40px; width: auto; object-fit: contain; }

.brand-text-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-slogan {
  font-size: 0.78rem;
  color: var(--c-text-muted);
  letter-spacing: 0.04em;
}

.header-nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 48px;
  position: relative;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 8px 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-text-muted);
  border-radius: 50px;
  transition: background var(--transition-std), color var(--transition-std);
  min-height: 40px;
  white-space: nowrap;
}

.nav-link:hover, .nav-link:focus-visible {
  background: var(--c-glass);
  color: var(--c-neon);
  outline: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 16px;
}

.nav-toggle-bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform var(--transition-std), opacity var(--transition-std);
}

/* =====================
   Hero
   ===================== */
.hero-wrap {
  position: relative;
  min-height: 45vh;
  background: var(--c-dark-2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 56px 48px 72px;
  position: relative;
  z-index: 2;
  flex: 1;
}

.hero-copy {
  flex: 1 1 300px;
  max-width: 520px;
  min-width: 0;
}

.hero-h1 {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, var(--c-neon) 60%, var(--c-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 420px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-btn);
  min-height: 48px;
  transition: transform var(--transition-std), box-shadow var(--transition-std);
  box-shadow: 0 8px 32px rgba(101,20,255,0.45);
}

.btn-primary:hover, .btn-primary:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 40px rgba(191,0,255,0.5);
  outline: none;
}

.hero-media {
  flex: 1 1 280px;
  max-width: 460px;
  position: relative;
  min-height: 240px;
  min-width: 0;
}

.hero-img {
  border-radius: 20px;
  object-fit: cover;
  position: absolute;
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
}

.hero-img-1 {
  width: 62%;
  aspect-ratio: 4/3;
  top: 0; left: 0;
  z-index: 2;
  border: 2px solid rgba(191,0,255,0.35);
}

.hero-img-2 {
  width: 55%;
  aspect-ratio: 4/3;
  bottom: -20px; right: 0;
  z-index: 3;
  border: 2px solid rgba(101,20,255,0.45);
}

.hero-geo {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
  animation: geo-float 6s ease-in-out infinite alternate;
}

.hero-geo-1 {
  width: 180px; height: 180px;
  background: var(--c-primary);
  top: -30px; right: 20px;
  z-index: 1;
}

.hero-geo-2 {
  width: 120px; height: 120px;
  background: var(--c-accent);
  bottom: 10px; left: 30px;
  z-index: 1;
  animation-delay: 2s;
}

@keyframes geo-float {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-18px) scale(1.08); }
}

/* 斜切色带 */
.hero-slash {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 72px;
  background: var(--c-dark);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
  z-index: 5;
}

/* =====================
   正文主体
   ===================== */
.site-main {
  background: var(--c-dark);
  padding: 0 0 80px;
  width: 100%;
  overflow: hidden;
}

.main-article {
  width: 100%;
}

.content-section {
  padding: 64px 24px;
  width: 100%;
}

.content-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
  width: 100%;
}

.content-body {
  min-width: 0;
  overflow: hidden;
}

/* ---- 正文内容样式 ---- */
.content-body h2 {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--c-white);
  margin: 56px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-glass-border);
  letter-spacing: -0.01em;
}

.content-body h2:first-child { margin-top: 0; }

.content-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-neon);
  margin: 32px 0 12px;
}

.content-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-text-muted);
  margin-bottom: 16px;
}

.content-body ul, .content-body ol {
  margin: 16px 0 24px 20px;
  list-style: disc;
}

.content-body ol { list-style: decimal; }

.content-body li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-text-muted);
  margin-bottom: 8px;
}

.content-body a {
  color: var(--c-neon);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-std);
}

.content-body a:hover { color: var(--c-accent); }

.content-body strong { color: var(--c-white); font-weight: 600; }

/* div 内部 */
.content-body div {
  margin-bottom: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(191,0,255,0.1);
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.content-body div.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.content-body div:last-child { border-bottom: none; }

/* ---- Aside ---- */
.content-aside {
  position: sticky;
  top: calc(var(--nav-h) + var(--announce-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.aside-card {
  background: var(--c-glass);
  border: 1px solid var(--c-glass-border);
  border-radius: var(--radius-card);
  padding: 24px;
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s, background var(--transition-std), box-shadow var(--transition-std);
}

.aside-card.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.aside-card:hover {
  background: rgba(101,20,255,0.2);
  box-shadow: 0 8px 32px rgba(191,0,255,0.15);
}

.aside-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-neon);
  margin-bottom: 16px;
}

.aside-title span { display: inline-block; }

.aside-links { display: flex; flex-direction: column; gap: 4px; }

.aside-link {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 0.88rem;
  color: var(--c-text-muted);
  border-radius: 10px;
  min-height: 40px;
  transition: background var(--transition-std), color var(--transition-std);
}

.aside-link:hover {
  background: var(--c-glass);
  color: var(--c-neon);
}

.aside-card-tip p {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  line-height: 1.65;
}

/* =====================
   页脚
   ===================== */
.site-footer {
  background: var(--c-dark-2);
  border-top: 1px solid var(--c-glass-border);
  padding: 0;
  width: 100%;
  overflow: hidden;
}

.footer-brand-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 48px 24px 32px;
  border-bottom: 1px solid rgba(191,0,255,0.1);
  flex-wrap: wrap;
}

.footer-brand { display: flex; flex-direction: column; gap: 12px; }

.footer-desc {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  max-width: 280px;
  line-height: 1.65;
}

.footer-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-num {
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--c-text-muted);
  letter-spacing: 0.04em;
}

.footer-nav-section {
  padding: 32px 24px;
  border-bottom: 1px solid rgba(191,0,255,0.1);
}

.footer-nav-dl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
  align-items: center;
}

.footer-nav-dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-neon);
  margin-right: 12px;
}

.footer-nav-dd { display: inline-flex; }

.footer-nav-a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.84rem;
  color: var(--c-text-muted);
  border-radius: 50px;
  min-height: 40px;
  border: 1px solid transparent;
  transition: border-color var(--transition-std), color var(--transition-std), background var(--transition-std);
  white-space: nowrap;
}

.footer-nav-a:hover {
  border-color: var(--c-glass-border);
  color: var(--c-neon);
  background: var(--c-glass);
}

.footer-legal-section {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--c-text-muted);
}

.footer-notice {
  font-size: 0.75rem;
  color: rgba(184,169,217,0.6);
}

.footer-host {
  font-size: 0.72rem;
  color: rgba(184,169,217,0.45);
}

/* =====================
   背景几何动效
   ===================== */
.page-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.page-wrap::before {
  content: '';
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background:
    radial-gradient(ellipse 40% 40% at 20% 30%, rgba(101,20,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 35% 35% at 80% 70%, rgba(191,0,255,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: bg-shift 12s ease-in-out infinite alternate;
}

@keyframes bg-shift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(2%, 3%) scale(1.04); }
}

/* =====================
   Scroll Reveal
   ===================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   响应式
   ===================== */
@media (max-width: 960px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .content-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .hero-inner {
    flex-direction: column;
    padding: 40px 16px 60px;
    gap: 32px;
  }

  .hero-media {
    min-height: 200px;
    max-width: 100%;
    width: 100%;
  }

  .header-brand-row {
    padding: 14px 24px;
  }

  .header-nav-row {
    padding: 0 24px;
  }
}

@media (max-width: 640px) {
  :root { --nav-h: 140px; }

  .header-brand-row {
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .header-nav-row {
    padding: 0 16px;
    justify-content: flex-end;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(28,23,38,0.98);
    border-bottom: 1px solid var(--c-glass-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 24px;
    border-radius: 0;
    font-size: 0.95rem;
    min-height: 48px;
    border-bottom: 1px solid rgba(191,0,255,0.08);
    white-space: normal;
  }

  .content-section {
    padding: 40px 16px;
  }

  .footer-brand-section {
    padding: 32px 16px 24px;
    flex-direction: column;
  }

  .footer-stats {
    gap: 20px;
  }

  .footer-nav-section {
    padding: 24px 16px;
  }

  .footer-legal-section {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .announce-bar {
    font-size: 0.72rem;
    gap: 10px;
    padding: 0 8px;
  }

  .hero-h1 { font-size: 1.8rem; }

  .content-aside {
    grid-template-columns: 1fr;
  }

  .hero-sub {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .brand-slogan {
    font-size: 0.72rem;
    max-width: calc(100vw - 32px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* =====================
   prefers-reduced-motion
   ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  html { scroll-behavior: auto; }

  .content-body div,
  .aside-card,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
