@import url('https://fonts.googleapis.com/css2?family=Anton&family=Epilogue:wght@400;500;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  background: #0d0608;
  color: #f5e6e8;
}

body {
  font-family: 'Epilogue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  background: #0d0608;
  color: #f5e6e8;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: #ff1493; text-decoration: none; transition: color 0.2s; }
a:hover { color: #ff4db8; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* ===== 极光背景 ===== */
.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.35;
  mix-blend-mode: screen;
}

.aurora-layer.a1 {
  width: 80vw;
  height: 80vw;
  top: -30%;
  left: -20%;
  background: radial-gradient(ellipse at center, #ff0000 0%, #7a0020 40%, transparent 70%);
  animation: auroraFloat1 11s ease-in-out infinite alternate;
}

.aurora-layer.a2 {
  width: 70vw;
  height: 70vw;
  bottom: -20%;
  right: -15%;
  background: radial-gradient(ellipse at center, #ff1493 0%, #8b0057 45%, transparent 70%);
  animation: auroraFloat2 9s ease-in-out infinite alternate;
}

.aurora-layer.a3 {
  width: 60vw;
  height: 60vw;
  top: 30%;
  left: 30%;
  background: conic-gradient(from 180deg at 50% 50%, #ff000055, #ff149355, #26171700, #ff000055);
  animation: auroraFloat3 13s ease-in-out infinite alternate;
  opacity: 0.18;
}

@keyframes auroraFloat1 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(5vw, 8vh) scale(1.08); }
  100% { transform: translate(-3vw, 4vh) scale(0.95); }
}
@keyframes auroraFloat2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-6vw, -5vh) scale(1.1); }
  100% { transform: translate(4vw, 6vh) scale(0.97); }
}
@keyframes auroraFloat3 {
  0%   { transform: rotate(0deg) scale(1); opacity: 0.18; }
  100% { transform: rotate(30deg) scale(1.15); opacity: 0.26; }
}

/* ===== 侧边导航 ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  z-index: 100;
  background: rgba(38, 23, 23, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid rgba(255, 20, 147, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ff1493 transparent;
}

.sidebar.collapsed {
  transform: translateX(-220px);
}

.sidebar-brand {
  padding: 28px 20px 18px;
  border-bottom: 1px solid rgba(255,20,147,0.12);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-text {
  font-family: 'Anton', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: #ff1493;
  text-shadow: 0 0 18px rgba(255,20,147,0.6), 0 0 4px #ff0000;
  white-space: nowrap;
}

.logo-img {
  max-height: 40px;
  width: auto;
}

.sidebar-nav {
  flex: 1;
  padding: 18px 14px;
}

.sidebar-nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-nav li a.nav-pill {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-family: 'Epilogue', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #f5e6e8;
  background: rgba(255,0,0,0.08);
  border: 1px solid rgba(255,20,147,0.15);
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  min-height: 44px;
  line-height: 1.3;
}

.sidebar-nav li a.nav-pill:hover,
.sidebar-nav li a.nav-pill:focus-visible {
  background: linear-gradient(90deg, rgba(255,0,0,0.35), rgba(255,20,147,0.35));
  color: #fff;
  border-color: rgba(255,20,147,0.5);
  box-shadow: 0 0 14px rgba(255,20,147,0.35);
  text-decoration: none;
}

.sidebar-search {
  padding: 14px 14px 20px;
  border-top: 1px solid rgba(255,20,147,0.1);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,20,147,0.2);
  border-radius: 999px;
  padding: 6px 10px 6px 14px;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #f5e6e8;
  font-size: 0.88rem;
  font-family: 'Epilogue', sans-serif;
  min-width: 0;
  min-height: 32px;
}

.search-input::placeholder { color: rgba(245,230,232,0.4); }

.search-btn {
  color: #ff1493;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  transition: color 0.2s;
  flex-shrink: 0;
}
.search-btn:hover { color: #ff4db8; }

.sidebar-toggle {
  position: absolute;
  top: 16px;
  right: -22px;
  width: 44px;
  height: 44px;
  background: rgba(38,23,23,0.9);
  border: 1px solid rgba(255,20,147,0.3);
  border-radius: 50%;
  color: #ff1493;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.2s;
  z-index: 101;
}
.sidebar-toggle:hover { background: rgba(255,0,0,0.2); box-shadow: 0 0 10px rgba(255,20,147,0.4); }

/* 展开按钮（侧边栏收起时可见） */
.sidebar-open-btn {
  position: fixed;
  top: 16px;
  left: 14px;
  z-index: 99;
  width: 44px;
  height: 44px;
  background: rgba(38,23,23,0.88);
  border: 1px solid rgba(255,20,147,0.35);
  border-radius: 12px;
  color: #ff1493;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(255,20,147,0.25);
  transition: background 0.2s;
}
.sidebar-open-btn:hover { background: rgba(255,0,0,0.25); }
.sidebar-open-btn.visible { display: flex; }

/* ===== 页面主体偏移 ===== */
.page-wrap {
  margin-left: 220px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  transition: margin-left 0.35s cubic-bezier(.4,0,.2,1);
}

.page-wrap.expanded {
  margin-left: 0;
}

/* ===== 首屏 Hero ===== */
.site-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px 50px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,0,0,0.4), rgba(255,20,147,0.4));
  border: 1px solid rgba(255,20,147,0.5);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ffb3d4;
  text-transform: uppercase;
  margin-bottom: 18px;
  box-shadow: 0 0 12px rgba(255,20,147,0.3);
  min-height: 40px;
  line-height: 1.4;
}

.hero-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow:
    0 0 30px rgba(255,0,0,0.7),
    0 0 60px rgba(255,20,147,0.5),
    2px 2px 0 rgba(255,0,0,0.4);
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(245,230,232,0.82);
  max-width: 520px;
  margin: 0 auto 22px;
  line-height: 1.7;
}

.hero-tags {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-tags .tag {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255,20,147,0.15);
  border: 1px solid rgba(255,20,147,0.3);
  color: #ff1493;
  letter-spacing: 0.06em;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

/* 装饰元素 */
.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,20,147,0.15);
}

.deco-circle.c1 {
  width: 300px;
  height: 300px;
  top: -80px;
  right: 5%;
  animation: spinSlow 18s linear infinite;
}

.deco-circle.c2 {
  width: 180px;
  height: 180px;
  bottom: -40px;
  left: 8%;
  border-color: rgba(255,0,0,0.15);
  animation: spinSlow 12s linear infinite reverse;
}

.deco-orb {
  position: absolute;
  width: 120px;
  height: 120px;
  top: 20%;
  right: 12%;
  background: radial-gradient(circle, rgba(255,20,147,0.25) 0%, transparent 70%);
  border-radius: 50%;
  animation: orbPulse 5s ease-in-out infinite alternate;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes orbPulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 1; }
}

/* ===== 主内容区 ===== */
.site-main {
  position: relative;
  z-index: 2;
  padding: 0 40px 60px;
}

.content-article {
  max-width: 900px;
  margin: 0 auto;
}

.content-body {
  padding: 0;
}

/* 来自 page.content 的区块 */
.content-body article {
  scroll-margin-top: 80px;
  padding: 56px 0 40px;
  border-bottom: 1px solid rgba(255,20,147,0.1);
}

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

.content-body h2 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 0 20px rgba(255,0,0,0.5), 0 0 40px rgba(255,20,147,0.3);
  margin-bottom: 10px;
  line-height: 1.15;
}

.content-body h2 + hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, #ff0000, #ff1493, transparent);
  margin-bottom: 24px;
  border-radius: 2px;
}

.content-body h3 {
  font-family: 'Epilogue', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ff4db8;
  margin: 28px 0 12px;
}

.content-body h3 + hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,20,147,0.5), transparent);
  margin-bottom: 18px;
}

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

.content-body ul, .content-body ol {
  margin-bottom: 16px;
  padding-left: 1.5em;
}

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

.content-body li {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(245,230,232,0.85);
  margin-bottom: 6px;
}

.content-body strong {
  color: #ff4db8;
  font-weight: 700;
}

.content-body em {
  color: rgba(245,230,232,0.7);
  font-style: italic;
}

.content-body a {
  color: #ff1493;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-body a:hover { color: #ff4db8; }

.content-body blockquote {
  border-left: 3px solid #ff1493;
  padding: 12px 20px;
  margin: 20px 0;
  background: rgba(255,20,147,0.07);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: rgba(245,230,232,0.75);
}

/* 卡片 */
.content-body .card {
  background: rgba(38,23,23,0.7);
  border: 1px solid rgba(255,20,147,0.15);
  border-radius: 4px;
  border-bottom: 3px solid #ff1493;
  padding: 20px 22px;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.content-body .card:hover {
  border-bottom-color: #ff0000;
  box-shadow: 0 4px 24px rgba(255,20,147,0.2);
}

/* ===== 页脚 ===== */
.site-footer {
  position: relative;
  z-index: 2;
  background: rgba(15, 6, 8, 0.9);
  border-top: 1px solid rgba(255,20,147,0.18);
  backdrop-filter: blur(10px);
  padding: 50px 40px 0;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  font-family: 'Anton', sans-serif;
  font-size: 1.4rem;
  color: #ff1493;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 10px;
  text-shadow: 0 0 12px rgba(255,20,147,0.5);
}

.footer-col p {
  font-size: 0.88rem;
  color: rgba(245,230,232,0.55);
  line-height: 1.65;
  margin-bottom: 10px;
}

.footer-col address {
  font-style: normal;
  font-size: 0.85rem;
  color: rgba(245,230,232,0.5);
  margin-top: 8px;
}

.footer-col address a {
  color: rgba(255,20,147,0.7);
  transition: color 0.2s;
}
.footer-col address a:hover { color: #ff1493; }

.footer-col-title {
  display: block;
  font-family: 'Epilogue', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ff1493;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-nav-col ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-nav-col ul li a {
  font-size: 0.88rem;
  color: rgba(245,230,232,0.55);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  padding: 6px 0;
  min-height: 40px;
  line-height: 1.4;
}
.footer-nav-col ul li a:hover { color: #ff1493; }

.footer-warning {
  color: rgba(255,0,0,0.7) !important;
  font-weight: 600;
  font-size: 0.82rem !important;
}

.footer-bottom {
  max-width: 900px;
  margin: 0 auto;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(255,20,147,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(245,230,232,0.35);
}

/* ===== 滚入动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 分割线 ===== */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,20,147,0.4), transparent);
  margin: 10px 0 20px;
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0d0608; }
::-webkit-scrollbar-thumb { background: rgba(255,20,147,0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,20,147,0.7); }

/* ===== 区块滚动偏移 ===== */
article[id] { scroll-margin-top: 80px; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .page-wrap { margin-left: 0; }
  .sidebar { transform: translateX(-220px); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: flex; }
  .sidebar-open-btn { display: flex; }
  .site-hero { padding: 80px 20px 40px; min-height: 40vh; }
  .site-main { padding: 0 20px 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .site-footer { padding: 40px 20px 0; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 70px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
  .hero-title { font-size: 2.2rem; }
  .content-body h2 { font-size: 1.7rem; }
  .site-hero { padding: 76px 16px 36px; }
  .site-main { padding: 0 16px 32px; }
  .site-footer { padding: 36px 16px 0; }
  .sidebar-nav li a.nav-pill { min-height: 44px; padding: 12px 16px; }
}

/* ===== 减少动效 ===== */
@media (prefers-reduced-motion: reduce) {
  .aurora-layer,
  .deco-circle,
  .deco-orb,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
