@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=Crimson+Pro:wght@400;500;600;700&display=swap');

/* ── 变量 ── */
:root {
  --c-red: #ff0000;
  --c-purple: #8b00ff;
  --c-dark: #261717;
  --c-dark2: #1a0e0e;
  --c-dark3: #321e1e;
  --c-glass: rgba(255,255,255,0.12);
  --c-glass-border: rgba(255,255,255,0.18);
  --c-glass-hover: rgba(255,255,255,0.20);
  --c-text: #f0e0e0;
  --c-text-muted: #c4a0a0;
  --c-text-dim: #9a7070;
  --font-head: 'Crimson Pro', Georgia, serif;
  --font-body: 'Atkinson Hyperlegible', system-ui, sans-serif;
  --radius-glass: 16px;
  --blur: blur(15px);
  --nav-h: 64px;
  --max-w: 1140px;
  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 18px;
  background: var(--c-dark2);
  color: var(--c-text);
}
body {
  font-family: var(--font-body);
  line-height: 1.7;
  background: var(--c-dark2);
  min-height: 100vh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-red); text-decoration: none; }
a:hover { color: #ff4444; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); line-height: 1.25; }
ul { list-style: none; }

/* ── 全屏覆盖遮罩菜单 (aside) ── */
.site-aside {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26,14,14,0.92);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
  border-right: 1px solid var(--c-glass-border);
}
.site-aside.is-open {
  transform: translateX(0);
}
.aside-nav { width: 100%; max-width: 360px; }
.aside-nav-list { display: flex; flex-direction: column; gap: 8px; padding: 0 24px; }
.aside-nav-list li { opacity: 0; transform: translateX(-24px); transition: opacity 0.3s, transform 0.3s; }
.site-aside.is-open .aside-nav-list li:nth-child(1){ opacity:1; transform:none; transition-delay:.08s; }
.site-aside.is-open .aside-nav-list li:nth-child(2){ opacity:1; transform:none; transition-delay:.13s; }
.site-aside.is-open .aside-nav-list li:nth-child(3){ opacity:1; transform:none; transition-delay:.18s; }
.site-aside.is-open .aside-nav-list li:nth-child(4){ opacity:1; transform:none; transition-delay:.23s; }
.site-aside.is-open .aside-nav-list li:nth-child(5){ opacity:1; transform:none; transition-delay:.28s; }
.site-aside.is-open .aside-nav-list li:nth-child(6){ opacity:1; transform:none; transition-delay:.33s; }
.site-aside.is-open .aside-nav-list li:nth-child(7){ opacity:1; transform:none; transition-delay:.38s; }
.nav-link {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--c-text);
  background: var(--c-glass);
  border: 1px solid var(--c-glass-border);
  border-radius: var(--radius-glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  min-height: 52px;
}
.nav-link:hover {
  background: rgba(255,0,0,0.18);
  border-color: rgba(255,0,0,0.4);
  color: #fff;
}
.aside-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: var(--c-glass);
  border: 1px solid var(--c-glass-border);
  color: var(--c-text);
  font-size: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.aside-close:hover { background: rgba(255,0,0,0.25); }
.aside-overlay {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(10,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.aside-overlay.is-visible { opacity: 1; pointer-events: auto; }

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(26,14,14,0.75);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--c-glass-border);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo-mark { width: 40px; height: 40px; object-fit: contain; }
.logo-text-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--c-red), var(--c-purple));
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 10px;
}
.hamburger {
  background: var(--c-glass);
  border: 1px solid var(--c-glass-border);
  border-radius: 10px;
  width: 44px; height: 44px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  transition: background var(--transition);
}
.hamburger:hover { background: rgba(255,0,0,0.2); }
.bar {
  display: block;
  width: 20px; height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Hero ── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
  background: radial-gradient(ellipse at 20% 50%, rgba(139,0,255,0.25) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 40%, rgba(255,0,0,0.2) 0%, transparent 55%),
              var(--c-dark2);
}
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139,0,255,0.12) 0%, rgba(255,0,0,0.08) 100%);
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  will-change: transform;
}
.hero-orb-1 {
  width: 420px; height: 420px;
  background: rgba(139,0,255,0.35);
  top: 10%; left: -5%;
  transform: translate(-30%,-30%);
}
.hero-orb-2 {
  width: 340px; height: 340px;
  background: rgba(255,0,0,0.3);
  bottom: 10%; right: -5%;
  transform: translate(20%,20%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}
.hero-text { text-align: left; }
.hero-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(255,0,0,0.22);
  border: 1px solid rgba(255,0,0,0.45);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ff6666;
  margin-bottom: 20px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(255,0,0,0.3);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--c-red), var(--c-purple));
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(255,0,0,0.35);
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 52px;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,0,0,0.5);
  color: #fff;
}
.hero-images {
  position: relative;
  height: 400px;
}
.hero-img-wrap {
  position: absolute;
  border-radius: var(--radius-glass);
  overflow: hidden;
  border: 1px solid var(--c-glass-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.hero-img-wrap-a {
  width: 65%; height: 72%;
  top: 0; right: 0;
  z-index: 2;
  transform: rotate(1.5deg);
}
.hero-img-wrap-b {
  width: 58%; height: 65%;
  bottom: 0; left: 0;
  z-index: 1;
  transform: rotate(-2deg);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  background: var(--c-glass);
}
.hero-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(139,0,255,0.3), rgba(255,0,0,0.2));
}
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.float-badge {
  position: absolute;
  z-index: 10;
  padding: 5px 12px;
  background: var(--c-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--c-glass-border);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.float-badge-1 { top: 14px; left: 14px; background: rgba(255,0,0,0.25); border-color: rgba(255,0,0,0.4); }
.float-badge-2 { bottom: 14px; right: 14px; background: rgba(139,0,255,0.28); border-color: rgba(139,0,255,0.5); }
.hero-scroll-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.scroll-dot {
  display: block;
  width: 8px; height: 8px;
  background: var(--c-red);
  border-radius: 50%;
  animation: bounce 1.6s ease-in-out infinite;
}
@keyframes bounce {
  0%,100%{ transform: translateY(0); opacity:1; }
  50%{ transform: translateY(8px); opacity:0.5; }
}

/* ── 主内容区 ── */
main { position: relative; z-index: 1; }
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 80px;
}
.content-section { position: relative; }
.page-article { width: 100%; }

/* ── 正文 HTML 内容样式 ── */
.page-article section {
  margin-bottom: 72px;
  scroll-margin-top: var(--nav-h);
  padding: 40px;
  background: var(--c-glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--c-glass-border);
  border-radius: var(--radius-glass);
  position: relative;
  overflow: hidden;
}
.page-article section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-red), var(--c-purple), transparent);
}
.page-article h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}
.page-article h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--c-text);
  margin: 28px 0 12px;
}
.page-article p {
  font-size: 1rem;
  color: var(--c-text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}
.page-article ul, .page-article ol {
  padding-left: 1.5em;
  margin-bottom: 16px;
}
.page-article ul { list-style: disc; }
.page-article ol { list-style: decimal; }
.page-article li {
  color: var(--c-text-muted);
  line-height: 1.8;
  margin-bottom: 6px;
}
.page-article a { color: var(--c-red); }
.page-article a:hover { color: #ff4444; text-decoration: underline; }
.page-article strong { color: #fff; font-weight: 700; }
.page-article small {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-red);
  text-transform: uppercase;
  margin-bottom: 8px;
  padding: 2px 8px;
  background: rgba(255,0,0,0.12);
  border-radius: 4px;
}
.page-article time {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--c-text-dim);
  margin-bottom: 12px;
}
.page-article blockquote {
  border-left: 3px solid var(--c-purple);
  padding: 12px 20px;
  background: rgba(139,0,255,0.1);
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  color: var(--c-text-muted);
  font-style: italic;
}
.page-article table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.page-article th {
  background: rgba(255,0,0,0.15);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--c-glass-border);
}
.page-article td {
  padding: 10px 14px;
  color: var(--c-text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* stagger 动画 */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s, transform 0.45s;
}
.stagger-item.in-view {
  opacity: 1;
  transform: none;
}

/* ── 页脚 ── */
.site-footer {
  background: rgba(26,14,14,0.9);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-top: 1px solid var(--c-glass-border);
  padding: 32px 24px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 16px;
  align-items: center;
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  font-family: var(--font-body);
  grid-column: 1;
}
.footer-note {
  font-size: 0.78rem;
  color: var(--c-text-dim);
  line-height: 1.5;
  grid-column: 2 / 4;
  text-align: right;
}

/* ── 响应式 ── */
@media (max-width: 768px) {
  html { font-size: 16px; }
  .hero-content {
    grid-template-columns: 1fr;
    padding: 64px 20px 48px;
    gap: 40px;
  }
  .hero-images {
    height: 280px;
    order: -1;
  }
  .hero-h1 { font-size: 1.9rem; }
  .hero-text { text-align: left; }
  .page-article section { padding: 24px 20px; margin-bottom: 40px; }
  .wrap { padding: 0 16px 60px; }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-note { grid-column: 1; text-align: left; }
}
@media (max-width: 480px) {
  .hero-images { height: 220px; }
  .hero-img-wrap-a { width: 70%; height: 65%; }
  .hero-img-wrap-b { width: 60%; height: 60%; }
}

/* ── prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .hero-orb { filter: none; }
}
