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

/* ─── 基础变量 ─── */
:root {
  --c-primary: #ff0080;
  --c-secondary: #ff00ff;
  --c-bg: #26171f;
  --c-bg2: #1e1118;
  --c-bg3: #321a27;
  --c-surface: #2e1b24;
  --c-surface2: #3a2030;
  --c-text: #f5e8f0;
  --c-text-muted: #b89cad;
  --c-accent: #ff66c4;
  --c-gold: #ffd6f0;
  --font-heading: 'Cinzel', 'Georgia', serif;
  --font-body: 'Josefin Sans', 'Helvetica Neue', Arial, sans-serif;
  --nav-h: 72px;
  --announce-h: 36px;
  --header-total: calc(var(--announce-h) + var(--nav-h));
  --max-w: 1280px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--c-bg); color: var(--c-text); line-height: 1.7; min-height: 100vh; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--c-primary); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }

/* ─── Aurora 背景 ─── */
.aurora-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.aurora-layer {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.45;
  animation: aurora-drift 18s ease-in-out infinite alternate;
}
.a1 {
  width: 70vw; height: 70vw; top: -20%; left: -15%;
  background: radial-gradient(ellipse at center, #ff008088 0%, #ff00ff55 50%, transparent 80%);
  animation-duration: 20s;
}
.a2 {
  width: 60vw; height: 60vw; bottom: -10%; right: -10%;
  background: radial-gradient(ellipse at center, #ff00ff66 0%, #ff008044 50%, transparent 75%);
  animation-duration: 25s; animation-delay: -8s;
}
.a3 {
  width: 50vw; height: 50vw; top: 30%; left: 35%;
  background: radial-gradient(ellipse at center, #c000ff44 0%, #ff008033 60%, transparent 80%);
  animation-duration: 30s; animation-delay: -14s;
}
.mesh-overlay {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(255,0,128,0.03) 80px, rgba(255,0,128,0.03) 81px),
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(255,0,255,0.03) 80px, rgba(255,0,255,0.03) 81px);
}
@keyframes aurora-drift {
  0% { transform: translate(0,0) scale(1); }
  33% { transform: translate(3vw,-4vh) scale(1.08); }
  66% { transform: translate(-2vw,3vh) scale(0.95); }
  100% { transform: translate(2vw,-2vh) scale(1.05); }
}

/* ─── 所有内容层级高于背景 ─── */
.site-header, .site-aside, .site-main, .site-footer, .mobile-drawer {
  position: relative; z-index: 1;
}

/* ─── 公告条 ─── */
.announce-bar {
  height: var(--announce-h);
  background: linear-gradient(90deg, #ff008022, #ff00ff33, #ff008022);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid rgba(255,0,128,0.2);
  overflow: hidden;
}
.announce-text {
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  letter-spacing: 0.15em; color: var(--c-gold);
  animation: marquee-pause 0s; white-space: nowrap;
}

/* ─── 顶部导航 ─── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(38,23,31,0.88);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255,0,128,0.18);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  height: var(--nav-h); padding: 0 24px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 16px;
}
.header-brand { display: flex; justify-content: center; align-items: center; }
.brand-logo { display: flex; align-items: center; gap: 10px; }
.brand-text {
  font-family: var(--font-heading); font-size: 20px; font-weight: 700;
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  letter-spacing: 0.05em; white-space: nowrap;
}
.logo-img { height: 40px; width: auto; }
.header-nav ul {
  display: flex; align-items: center; gap: 4px;
}
.left-nav ul { justify-content: flex-end; }
.right-nav ul { justify-content: flex-start; }
.header-nav a {
  display: flex; align-items: center; padding: 10px 12px; min-height: 44px;
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; color: var(--c-text-muted);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.header-nav a:hover {
  color: var(--c-primary);
  background: rgba(255,0,128,0.08);
}

/* ─── aside > nav 契约（可视但布局隐藏） ─── */
.site-aside {
  position: fixed; left: -9999px; top: 0; width: 0; height: 0;
  overflow: hidden; pointer-events: none;
  visibility: hidden;
}
/* 契约元素 aside > nav > ul > li > a 存在于 DOM */

/* ─── 汉堡按钮 ─── */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--c-accent);
  transition: transform 0.3s, opacity 0.3s;
}

/* ─── 移动端抽屉 ─── */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(38,23,31,0.97);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 40px 24px;
}
.mobile-drawer[hidden] { display: none; }
.mobile-drawer ul { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
.mobile-drawer a {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 24px; width: 100%;
  font-size: 18px; font-family: var(--font-heading); font-weight: 500;
  letter-spacing: 0.1em; color: var(--c-text);
  border-bottom: 1px solid rgba(255,0,128,0.1);
  transition: color 0.2s;
}
.mobile-drawer a:hover { color: var(--c-primary); }
.drawer-close {
  position: absolute; top: 20px; right: 24px;
  font-size: 24px; color: var(--c-text-muted); min-height: 44px; min-width: 44px;
  display: flex; align-items: center; justify-content: center;
}

/* ─── 主内容 ─── */
.site-main {
  padding-top: 0;
}

/* ─── Hero ─── */
.hero-section {
  min-height: 70vh; display: flex; align-items: center; justify-content: flex-end;
  padding: 100px 48px 80px;
  max-width: var(--max-w); margin: 0 auto;
  position: relative; gap: 40px;
}
.hero-deco {
  position: absolute; left: 0; top: 0; width: 50%; height: 100%;
  pointer-events: none; display: flex; align-items: center; justify-content: center;
}
.prism-orb {
  position: absolute; border-radius: 0;
  mix-blend-mode: screen;
}
.o1 {
  width: 240px; height: 240px; top: 15%; left: 5%;
  background: conic-gradient(from 0deg, #ff0080, #ff00ff, #c000ff, #ff0080);
  opacity: 0.35; animation: orb-spin 12s linear infinite;
  filter: blur(2px);
}
.o2 {
  width: 160px; height: 160px; top: 40%; left: 30%;
  background: conic-gradient(from 120deg, #ff00ff, #ff0080, #ff66c4, #ff00ff);
  opacity: 0.45; animation: orb-spin 8s linear infinite reverse;
  filter: blur(1px);
}
.o3 {
  width: 100px; height: 100px; top: 25%; left: 18%;
  background: radial-gradient(circle, #ffd6f0 0%, #ff0080 60%, transparent 80%);
  opacity: 0.55; animation: orb-pulse 4s ease-in-out infinite;
}
.holographic-ring {
  position: absolute; width: 300px; height: 300px;
  border: 2px solid;
  border-image: linear-gradient(135deg, #ff0080, #ff00ff, #c000ff, #ff0080) 1;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  opacity: 0.2; animation: ring-rotate 20s linear infinite;
}
@keyframes orb-spin { to { transform: rotate(360deg); } }
@keyframes orb-pulse { 0%,100% { transform: scale(1); opacity: 0.55; } 50% { transform: scale(1.3); opacity: 0.8; } }
@keyframes ring-rotate { to { transform: translate(-50%,-50%) rotate(360deg); } }

.hero-badges {
  position: absolute; top: 48px; right: 48px;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
}
.badge {
  display: inline-block; padding: 4px 12px;
  background: rgba(255,0,128,0.15);
  border: 1px solid rgba(255,0,128,0.4);
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  letter-spacing: 0.15em; color: var(--c-accent);
  text-transform: uppercase;
}
.badge-alt {
  background: rgba(255,0,255,0.15);
  border-color: rgba(255,0,255,0.4);
  color: var(--c-secondary);
}

.hero-content {
  text-align: right; max-width: 560px; position: relative; z-index: 2;
}
.hero-h1 {
  font-family: var(--font-heading); font-size: clamp(28px,5vw,58px);
  font-weight: 700; line-height: 1.2; letter-spacing: 0.04em;
  background: linear-gradient(135deg, #ffffff 0%, #ffd6f0 40%, var(--c-primary) 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 16px; line-height: 1.7; color: var(--c-text-muted);
  margin-bottom: 32px; max-width: 440px; margin-left: auto;
}
.hero-cta { display: flex; gap: 16px; justify-content: flex-end; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; min-height: 48px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  color: #fff; font-family: var(--font-body); font-size: 14px;
  font-weight: 600; letter-spacing: 0.12em;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); color: #fff; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; min-height: 48px;
  border: 1px solid rgba(255,0,128,0.5);
  color: var(--c-accent); font-family: var(--font-body); font-size: 14px;
  font-weight: 500; letter-spacing: 0.1em;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn-ghost:hover { background: rgba(255,0,128,0.1); transform: translateY(-2px); }

/* ─── 正文内容 page.content 区域 ─── */
.site-main article {
  scroll-margin-top: calc(var(--header-total) + 12px);
  padding: 80px 24px;
  max-width: var(--max-w); margin: 0 auto;
  position: relative;
}

/* figure / aside 契约：article 直接子 */
.site-main article > figure {
  display: block;
  margin: 40px 0;
}
.site-main article > aside {
  background: var(--c-surface2);
  border-left: 3px solid var(--c-primary);
  padding: 24px 28px; margin: 40px 0;
}
.site-main article > aside h3,
.site-main article > aside h4 {
  font-family: var(--font-heading); font-size: 15px; color: var(--c-primary);
  margin-bottom: 12px; letter-spacing: 0.08em;
}

/* 正文排版 */
.site-main h2 {
  font-family: var(--font-heading); font-size: clamp(22px,3vw,34px);
  font-weight: 600; letter-spacing: 0.06em; line-height: 1.3;
  margin-bottom: 24px; margin-top: 48px;
  color: transparent;
  background: linear-gradient(90deg, #fff 0%, var(--c-primary) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}
.site-main h2 > span {
  display: inline;
}
.site-main h2::before {
  content: '';
  position: absolute; bottom: -8px; left: 0;
  width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
}
.site-main h3 {
  font-family: var(--font-heading); font-size: clamp(18px,2.2vw,24px);
  font-weight: 500; letter-spacing: 0.05em;
  margin-bottom: 16px; margin-top: 36px;
  color: var(--c-accent);
}
.site-main h3 > span { display: inline; }
.site-main p { font-size: 16px; line-height: 1.8; color: var(--c-text); margin-bottom: 16px; }
.site-main ul, .site-main ol { padding-left: 20px; margin-bottom: 16px; }
.site-main li { font-size: 16px; line-height: 1.8; margin-bottom: 6px; }
.site-main strong { color: var(--c-accent); font-weight: 600; }
.site-main a { color: var(--c-primary); border-bottom: 1px solid rgba(255,0,128,0.3); }
.site-main a:hover { border-bottom-color: var(--c-primary); }
.site-main table {
  width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px;
}
.site-main th {
  background: var(--c-surface2); color: var(--c-accent);
  padding: 12px 16px; text-align: left; font-family: var(--font-heading);
  font-size: 13px; letter-spacing: 0.08em;
  border-bottom: 2px solid var(--c-primary);
}
.site-main td { padding: 12px 16px; border-bottom: 1px solid rgba(255,0,128,0.12); }
.site-main tr:hover td { background: rgba(255,0,128,0.04); }

/* 区块分隔线 */
.site-main article + article::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,0,128,0.3), rgba(255,0,255,0.3), transparent);
  margin-bottom: 80px;
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto; margin-right: auto;
}

/* ─── 页脚 ─── */
.site-footer {
  background: var(--c-bg2);
  border-top: 1px solid rgba(255,0,128,0.2);
  padding-top: 60px;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 24px 48px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px;
}
.footer-brand-col .brand-text { font-size: 18px; }
.footer-tagline { font-size: 14px; color: var(--c-text-muted); margin-top: 12px; line-height: 1.6; }
.footer-col-title {
  font-family: var(--font-heading); font-size: 13px; font-weight: 600;
  letter-spacing: 0.15em; color: var(--c-primary);
  margin-bottom: 16px; text-transform: uppercase;
}
.footer-col-title > span { display: inline; }
.footer-nav ul { display: flex; flex-direction: column; gap: 4px; }
.footer-nav a {
  display: flex; align-items: center; min-height: 40px; padding: 6px 0;
  font-size: 14px; color: var(--c-text-muted); letter-spacing: 0.05em;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--c-primary); }
.footer-contact-col { display: flex; flex-direction: column; gap: 4px; }
.footer-contact-item { margin: 0; }
.footer-contact-item a {
  display: inline-flex; align-items: center; min-height: 40px;
  font-size: 14px; color: var(--c-text-muted);
  transition: color 0.2s;
}
.footer-contact-item a:hover { color: var(--c-primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,0,128,0.12);
  padding: 16px 24px;
}
.footer-bottom-nav {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.copyright { font-size: 13px; color: var(--c-text-muted); letter-spacing: 0.05em; }

/* ─── Scroll Reveal 动效 ─── */
.js-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.js-reveal.revealed { opacity: 1; transform: none; }

/* ─── 移动端 ─── */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { grid-template-columns: 1fr auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-section { flex-direction: column; justify-content: center; align-items: flex-end; padding: 80px 24px 60px; min-height: 70vh; }
  .hero-content { text-align: right; max-width: 100%; }
  .hero-deco { left: -24px; width: 100%; opacity: 0.5; }
  .hero-badges { top: 16px; right: 16px; }
}

@media (max-width: 600px) {
  :root { --nav-h: 60px; --announce-h: 32px; }
  .hero-h1 { font-size: 26px; }
  .hero-sub { font-size: 15px; }
  .hero-cta { gap: 10px; }
  .btn-primary, .btn-ghost { padding: 12px 20px; font-size: 13px; }
  .site-main article { padding: 48px 16px; }
  .o1 { width: 180px; height: 180px; }
  .o2 { width: 110px; height: 110px; }
  .holographic-ring { width: 200px; height: 200px; }
  .site-main h2 { font-size: 20px; }
  .site-main h3 { font-size: 17px; }
  .announce-text { font-size: 12px; letter-spacing: 0.08em; }
}

/* ─── 减少动效 ─── */
@media (prefers-reduced-motion: reduce) {
  .aurora-layer, .o1, .o2, .o3, .holographic-ring { animation: none; }
  .js-reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
