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

/* ===========================
   CSS 变量 & 基础
=========================== */
:root {
  --red: #ff0000;
  --purple: #8b00ff;
  --dark: #261717;
  --dark2: #1a0e0e;
  --dark3: #300e0e;
  --glass-bg: rgba(255,255,255,0.10);
  --glass-border: 1px solid rgba(255,255,255,0.18);
  --glass-blur: blur(16px);
  --radius: 10px;
  --font-head: 'Libre Bodoni', Georgia, 'Times New Roman', serif;
  --font-body: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
  --nav-h: 64px;
  --search-h: 44px;
  --bottom-bar: calc(var(--nav-h) + var(--search-h));
  --text: #f5eaea;
  --text-muted: rgba(245,234,234,0.65);
  --max-w: 1100px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--dark);
  color: var(--text);
}

body, .dark-glass-body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  padding-bottom: var(--bottom-bar);
}

a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: #ff4444; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===========================
   배경 그라데이션
=========================== */
.site-wrapper {
  background:
    radial-gradient(ellipse 70% 50% at 20% 30%, rgba(139,0,255,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 70%, rgba(255,0,0,0.18) 0%, transparent 65%),
    var(--dark);
  min-height: 100vh;
}

/* ===========================
   底部固定导航 (aside > nav)
=========================== */
.bottom-nav-aside {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(38,23,23,0.82);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid rgba(255,255,255,0.13);
  box-shadow: 0 -4px 32px rgba(139,0,255,0.18);
}

.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 8px;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 4px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-list--right { justify-content: flex-end; }

.nav-list li a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 10px;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-list li a:hover,
.nav-list li a:focus {
  color: var(--text);
  background: rgba(255,0,0,0.15);
}

.nav-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 6px 14px;
  min-height: 44px;
  position: relative;
}
.nav-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(255,0,0,0.25), rgba(139,0,255,0.25));
  border: 1px solid rgba(255,255,255,0.18);
}
.brand-logo { height: 36px; width: auto; position: relative; }
.brand-text {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .04em;
  position: relative;
}

/* 搜索条 */
.nav-search-bar {
  border-top: 1px solid rgba(255,255,255,0.08);
  height: var(--search-h);
  display: flex;
  align-items: center;
  padding: 0 12px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.search-form {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: var(--glass-border);
  border-radius: 24px;
  padding: 2px 6px 2px 14px;
  height: 34px;
}
.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .875rem;
  min-width: 0;
}
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
  background: linear-gradient(135deg, var(--red), var(--purple));
  border: none;
  border-radius: 20px;
  color: #fff;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  padding: 4px 14px;
  cursor: pointer;
  min-height: 28px;
  transition: opacity .2s;
}
.search-btn:hover { opacity: .85; }

/* scroll margin for fixed nav */
article[id] { scroll-margin-top: 20px; }

/* ===========================
   Hero
=========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* 斜切色带 */
.hero-slash {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    118deg,
    var(--dark2) 0%,
    var(--dark2) 48%,
    rgba(139,0,255,0.55) 48%,
    rgba(255,0,0,0.40) 62%,
    var(--dark3) 62%,
    var(--dark3) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 32px calc(var(--bottom-bar) + 32px);
  width: 100%;
}

.hero-media {
  flex: 0 0 42%;
  max-width: 42%;
}
.hero-img {
  width: 100%;
  border-radius: 16px;
  box-shadow:
    0 8px 48px rgba(139,0,255,0.35),
    0 2px 12px rgba(0,0,0,0.5);
  border: var(--glass-border);
}
.hero-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(139,0,255,0.3), rgba(255,0,0,0.2));
  border: var(--glass-border);
}

.hero-copy {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(255,0,0,0.12);
  border: 1px solid rgba(255,0,0,0.3);
  border-radius: 4px;
  padding: 4px 14px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -.01em;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--red) 0%, var(--purple) 100%);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  border-radius: 50px;
  border: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 24px rgba(255,0,0,0.35);
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139,0,255,0.5);
  color: #fff;
}

/* ===========================
   主体内容 (main > div.wrap > article > section)
=========================== */
.main-content {
  padding: 60px 0 40px;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.content-section {
  /* direct child of .wrap */
}

.content-article {
  /* direct child of content-section */
}

/* ===========================
   正文 HTML 内容样式
=========================== */
.content-article article,
.content-article > article {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius);
  padding: 36px 32px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.content-article article::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--purple));
  opacity: .7;
}
.content-article article:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(139,0,255,0.2);
}

.content-article h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.25;
}
.content-article h2 + hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  margin-bottom: 20px;
  border-radius: 2px;
}
.content-article h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: #f0d8d8;
  margin: 24px 0 10px;
}
.content-article h3 + hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, rgba(139,0,255,0.6), transparent);
  margin-bottom: 16px;
}
.content-article p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.content-article p:last-child { margin-bottom: 0; }

.content-article a {
  color: #ff5555;
  border-bottom: 1px solid rgba(255,85,85,0.3);
  transition: color .2s, border-color .2s;
}
.content-article a:hover {
  color: var(--purple);
  border-color: rgba(139,0,255,0.5);
}

.content-article ul,
.content-article ol {
  padding-left: 20px;
  margin-bottom: 14px;
  color: var(--text-muted);
}
.content-article li { margin-bottom: 8px; line-height: 1.65; }

.content-article strong { color: var(--text); font-weight: 600; }

.content-article blockquote {
  border-left: 3px solid var(--red);
  margin: 20px 0;
  padding: 12px 20px;
  background: rgba(255,0,0,0.07);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-muted);
}

/* 问答样式 */
.content-article dl dt {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
  margin-top: 18px;
  font-size: 1.05rem;
}
.content-article dl dd {
  margin-left: 0;
  color: var(--text-muted);
  margin-top: 6px;
  margin-bottom: 12px;
  line-height: 1.7;
}

/* ===========================
   HR 装饰（h2/h3 后）
=========================== */
hr {
  border: none;
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 24px 0;
}

/* ===========================
   页脚 (footer > address + ul)
=========================== */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(38,23,23,0.6);
  font-size: .8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.footer-addr {
  font-style: normal;
  font-family: var(--font-body);
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links li a {
  color: var(--text-muted);
  font-size: .8rem;
  transition: color .2s;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
}
.footer-links li a:hover { color: var(--red); }

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-cta, .content-article article, .nav-list li a { transition: none; }
}

/* ===========================
   响应式
=========================== */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    padding: 60px 20px calc(var(--bottom-bar) + 40px);
    gap: 32px;
  }
  .hero-media {
    flex: none;
    max-width: 80%;
    width: 80%;
  }
  .hero-copy { gap: 16px; }
  .hero-title { font-size: 2rem; }

  .nav-list li a {
    font-size: .72rem;
    padding: 4px 6px;
  }

  .content-article article {
    padding: 24px 18px;
  }

  .wrap { padding: 0 16px; }
  .main-content { padding: 40px 0 24px; }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-links { gap: 10px; }
}

@media (max-width: 480px) {
  .bottom-nav { padding: 0 4px; gap: 2px; }
  .nav-list li a { font-size: .68rem; padding: 4px 4px; }
  .brand-text { font-size: .95rem; }
  .hero-media { max-width: 95%; width: 95%; }
}

/* ===========================
   Hover micro-interaction
=========================== */
.hero-cta:active { transform: scale(.97); }

.nav-list li a:active {
  background: rgba(139,0,255,0.2);
}

/* 光晕效果 on glass cards */
.content-article article::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(139,0,255,0.15), transparent 70%);
  pointer-events: none;
}
