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

/* ===== 基础重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Open Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background-color: #261717;
  color: #f5e8e8;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===== 光晕装饰 ===== */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}
.glow-orb--red {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #ff0000 0%, transparent 70%);
  top: -120px;
  left: -100px;
}
.glow-orb--violet {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #8b00ff 0%, transparent 70%);
  bottom: 10%;
  right: -80px;
}

/* ===== 玻璃效果 ===== */
.glass-panel {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 0, 0, 0.12), inset 0 1px 0 rgba(255,255,255,0.18);
}

/* ===== 公告条 ===== */
.announce-bar {
  position: relative;
  z-index: 100;
  background: linear-gradient(90deg, #ff0000 0%, #8b00ff 100%);
  text-align: center;
  padding: 6px 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #fff;
}
.announce-text { opacity: 0.95; }

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 32px;
}

.brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-icon { display: block; width: auto; height: 40px; }
.brand-text-icon {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #ff0000;
  letter-spacing: 0.04em;
}

.primary-nav { flex: 1; overflow: hidden; }

.nav-dl {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
}
.nav-dt.sr-only,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.nav-dl dd { margin: 0; }
.nav-dl dd a,
.nav-dl dt a {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #f5e8e8;
  text-decoration: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  min-height: 44px;
  white-space: nowrap;
}
.nav-dl dd a:hover,
.nav-dl dd a:focus-visible {
  background: rgba(255, 0, 0, 0.22);
  border-color: rgba(255, 0, 0, 0.5);
  color: #fff;
  outline: none;
}
.nav-dl dd a:focus-visible { box-shadow: 0 0 0 2px #ff0000; }

/* ===== 移动汉堡 ===== */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  flex-shrink: 0;
}
.burger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #f5e8e8;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ===== 移动导航抽屉 ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 190;
  padding: 80px 24px 32px;
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.nav-dl--mobile {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.nav-dl--mobile dd { width: 100%; }
.nav-dl--mobile dd a {
  width: 100%;
  font-size: 1rem;
  padding: 12px 20px;
  min-height: 44px;
}

/* ===== 粘性锚点条 ===== */
.sticky-anchor-bar {
  position: sticky;
  top: 61px;
  z-index: 150;
  padding: 8px 24px;
  display: none;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sticky-anchor-bar::-webkit-scrollbar { display: none; }
.sticky-anchor-bar.is-visible { display: block; }

.anchor-pills {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: max-content;
}
.anchor-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(245,232,232,0.75);
  text-decoration: none;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.18s, color 0.18s;
  min-height: 32px;
  white-space: nowrap;
}
.anchor-pill:hover,
.anchor-pill.is-active {
  background: rgba(139, 0, 255, 0.25);
  border-color: rgba(139, 0, 255, 0.5);
  color: #fff;
}

/* ===== 主内容 ===== */
.site-main {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

/* ===== Hero 区 ===== */
.hero-section {
  display: flex;
  flex-direction: column-reverse;
  gap: 0;
  min-height: 45vh;
  padding: 32px 0 0;
  position: relative;
}

.hero-aside {
  text-align: right;
  padding: 32px 36px;
  margin-top: -40px;
  position: relative;
  z-index: 5;
  align-self: flex-end;
  max-width: 560px;
  width: 100%;
}

.hero-eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8b00ff;
  margin-bottom: 10px;
}

.hero-h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #ff0000, #8b00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(245,232,232,0.8);
  line-height: 1.6;
}

.hero-figure {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.hero-figure--empty {
  min-height: 200px;
  background: linear-gradient(135deg, rgba(255,0,0,0.12), rgba(139,0,255,0.12));
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

/* ===== 内容区（aside + 正文） ===== */
.content-section {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-top: 48px;
}

.content-aside {
  width: 240px;
  flex-shrink: 0;
  padding: 24px 20px;
  position: sticky;
  top: 120px;
}

.aside-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #ff0000;
  margin-bottom: 8px;
}

.content-aside hr,
h2 + hr,
h3 + hr {
  border: none;
  border-top: 1px solid rgba(255,0,0,0.35);
  margin: 10px 0 14px;
}

.aside-desc {
  font-size: 0.85rem;
  color: rgba(245,232,232,0.7);
  line-height: 1.6;
  margin-bottom: 16px;
}

.aside-keywords {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.kw-tag {
  padding: 4px 10px;
  background: rgba(139,0,255,0.18);
  border: 1px solid rgba(139,0,255,0.35);
  border-radius: 4px;
  font-size: 0.75rem;
  color: #c480ff;
  font-weight: 500;
}

.content-figure {
  flex: 1;
  min-width: 0;
  margin: 0;
}

/* ===== 正文内容样式 ===== */
.page-content-wrap {
  color: rgba(245,232,232,0.9);
}

.page-content-wrap section {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  scroll-margin-top: 120px;
}
.page-content-wrap section:last-child {
  border-bottom: none;
}

.page-content-wrap h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.page-content-wrap h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ff6060;
  margin: 24px 0 10px;
}

.page-content-wrap p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 14px;
  color: rgba(245,232,232,0.88);
}

.page-content-wrap ul,
.page-content-wrap ol {
  padding-left: 1.4em;
  margin-bottom: 14px;
}
.page-content-wrap li {
  margin-bottom: 6px;
  line-height: 1.7;
}

.page-content-wrap strong {
  color: #fff;
  font-weight: 600;
}

.page-content-wrap a {
  color: #c480ff;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.18s;
}
.page-content-wrap a:hover { color: #ff0000; }

.page-content-wrap blockquote {
  border-left: 3px solid #8b00ff;
  padding: 12px 20px;
  margin: 20px 0;
  background: rgba(139,0,255,0.08);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: rgba(245,232,232,0.75);
}

.page-content-wrap hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 28px 0;
}

.page-content-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.92rem;
}
.page-content-wrap th {
  background: rgba(255,0,0,0.15);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,0,0,0.25);
}
.page-content-wrap td {
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ===== Section 内 scroll margin ===== */
section[id] {
  scroll-margin-top: 120px;
}

/* ===== 页脚 ===== */
.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(245,232,232,0.55);
}

.footer-note {
  font-size: 0.78rem;
  color: rgba(245,232,232,0.38);
}

/* ===== 动效 ===== */
.glass-card,
.kw-tag {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.25s ease;
}
.glass-card.anim-in,
.kw-tag.anim-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glass-card,
  .kw-tag {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .glass-card:hover { transform: none; }
  .anchor-pill,
  .nav-dl dd a { transition: none; }
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .content-section {
    flex-direction: column;
  }
  .content-aside {
    width: 100%;
    position: static;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: 10px 16px;
  }
  .primary-nav { display: none; }
  .mobile-menu-btn { display: flex; }

  .site-main { padding: 0 16px 40px; }

  .hero-aside {
    text-align: left;
    align-self: stretch;
    padding: 24px 20px;
    margin-top: -24px;
    max-width: 100%;
  }

  .hero-section { min-height: auto; }

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

  .anchor-pills { gap: 4px; }
  .anchor-pill { font-size: 0.7rem; padding: 5px 10px; min-height: 36px; }
}

@media (max-width: 480px) {
  .page-content-wrap h2 { font-size: 1.25rem; }
  .page-content-wrap h3 { font-size: 1rem; }
  .hero-h1 { font-size: 1.8rem; }
}
