:root {
  --primary: #F472B6;
  --secondary: #8B5CF6;
  --accent: #FBBF24;
  --bg-dark: #1a0b2e;
  --bg-light: rgba(255, 255, 255, 0.08);
  --text-main: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.7);
  --card-glass: rgba(255, 255, 255, 0.1);
  --neon-pink: 0 0 20px rgba(244, 114, 182, 0.55), 0 0 40px rgba(244, 114, 182, 0.25);
  --neon-purple: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(139, 92, 246, 0.2);
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
  background: var(--bg-dark); color: var(--text-main); line-height: 1.7; overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-weight: 800; line-height: 1.25; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

#main-header { transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease; }
.header-scrolled { background: rgba(26, 11, 46, 0.92) !important; backdrop-filter: blur(16px); box-shadow: 0 4px 30px rgba(0,0,0,0.25); }
.nav-link { position: relative; padding: 0.25rem 0; font-weight: 600; color: rgba(255,255,255,0.85); transition: color 0.25s ease; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 0.3s ease; }
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--accent); }

.btn-neon {
  display: inline-flex; align-items: center; justify-content: center; padding: 0.85rem 2rem; border-radius: 9999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; font-weight: 800;
  font-size: clamp(0.95rem, 1.1vw, 1.15rem); box-shadow: var(--neon-pink), 0 6px 0 #9d174d;
  transition: transform 0.2s ease, box-shadow 0.2s ease; border: 2px solid rgba(255,255,255,0.25);
}
.btn-neon:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 0 30px rgba(244,114,182,0.75), 0 0 60px rgba(139,92,246,0.4), 0 8px 0 #9d174d; }
.btn-liquid {
  display: inline-flex; align-items: center; justify-content: center; padding: 0.85rem 2rem; border-radius: 9999px;
  background: linear-gradient(90deg, var(--accent), #f59e0b, var(--primary), var(--accent)); background-size: 300% 100%;
  color: #1a0b2e; font-weight: 900; font-size: clamp(0.95rem, 1.1vw, 1.15rem);
  box-shadow: 0 6px 0 #b45309, 0 12px 24px rgba(251,191,36,0.25); animation: liquidMove 3.5s linear infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease; border: 2px solid rgba(255,255,255,0.35);
}
.btn-liquid:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 0 #b45309, 0 18px 36px rgba(251,191,36,0.45); }
@keyframes liquidMove { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }

.page-banner {
  position: relative; padding: 10rem 0 5rem;
  background: radial-gradient(ellipse at 30% 20%, rgba(244,114,182,0.2) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(139,92,246,0.18) 0%, transparent 50%),
              linear-gradient(135deg, #2e1065 0%, #1a0b2e 100%);
  overflow: hidden;
}
.page-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.banner-content { position: relative; z-index: 2; text-align: center; }
.page-title { font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 0.75rem; background: linear-gradient(135deg, #fff 0%, #fbcfe8 55%, var(--accent) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-meta { color: var(--text-muted); font-size: 0.9rem; display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; }
.page-meta i { margin-right: 0.3rem; }

.article-tag {
  display: inline-block; padding: 0.3rem 0.9rem; border-radius: 9999px;
  background: rgba(244,114,182,0.2); border: 1px solid rgba(244,114,182,0.35);
  color: #fbcfe8; font-size: 0.8rem; font-weight: 800; margin-bottom: 1rem;
}

.article-wrapper {
  display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 4rem 0;
}
@media (min-width: 1024px) { .article-wrapper { grid-template-columns: 1fr 300px; gap: 3rem; } }

.article-main {
  padding: 2rem; border-radius: 2rem;
  background: var(--card-glass); border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px); box-shadow: var(--shadow-soft);
}
@media (min-width: 768px) { .article-main { padding: 3rem; } }

.article-main h2 { font-size: 1.5rem; color: #fff; margin: 2rem 0 1rem; padding-left: 1rem; border-left: 4px solid var(--primary); }
.article-main h3 { font-size: 1.2rem; color: #fbcfe8; margin: 1.5rem 0 0.75rem; }
.article-main p { color: var(--text-muted); margin-bottom: 1rem; }
.article-main ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-main li { color: var(--text-muted); margin-bottom: 0.5rem; }
.article-main li strong { color: #fff; }
.article-main img {
  border-radius: 1.25rem; margin: 1.5rem 0;
  box-shadow: var(--shadow-soft);
}

.highlight-box {
  padding: 1.25rem; border-radius: 1.25rem;
  background: rgba(139,92,246,0.12); border: 1px dashed rgba(139,92,246,0.4);
  margin: 1.5rem 0;
}
.highlight-box p { margin: 0; color: rgba(255,255,255,0.85); }

.sidebar {
  display: flex; flex-direction: column; gap: 1.5rem;
}
.sidebar-card {
  padding: 1.5rem; border-radius: 1.75rem;
  background: var(--card-glass); border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px); box-shadow: var(--shadow-soft);
}
.sidebar-title { font-size: 1.1rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.sidebar-title i { color: var(--accent); }
.related-list { display: flex; flex-direction: column; gap: 0.9rem; }
.related-item {
  display: flex; gap: 0.9rem; padding: 0.75rem; border-radius: 1rem;
  background: rgba(255,255,255,0.05); transition: background 0.2s ease;
}
.related-item:hover { background: rgba(255,255,255,0.1); }
.related-thumb { width: 70px; height: 52px; border-radius: 0.75rem; object-fit: cover; flex-shrink: 0; }
.related-info h4 { font-size: 0.9rem; margin-bottom: 0.25rem; color: #fff; }
.related-info span { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

.article-nav {
  display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem;
}
@media (min-width: 640px) { .article-nav { grid-template-columns: 1fr 1fr; } }
.article-nav a {
  padding: 1.25rem; border-radius: 1.25rem;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s ease, transform 0.2s ease;
}
.article-nav a:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); }
.article-nav span { display: block; font-size: 0.8rem; color: var(--accent); margin-bottom: 0.3rem; }
.article-nav h4 { font-size: 1rem; color: #fff; }

.page-footer { position: relative; background: #140821; padding-top: 6rem; padding-bottom: 2.5rem; }
.wave-divider { position: absolute; top: -1px; left: 0; width: 100%; overflow: hidden; line-height: 0; }
.wave-divider svg { position: relative; display: block; width: calc(100% + 1.3px); height: 80px; }
.wave-divider path { fill: var(--bg-dark); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand img { height: 40px; width: auto; }
.footer-brand span { font-size: 1.35rem; font-weight: 900; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.footer-links a { color: rgba(255,255,255,0.65); font-weight: 600; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: rgba(255,255,255,0.45); font-size: 0.85rem; max-width: 720px; line-height: 1.7; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); }
.revealed { opacity: 1; transform: translateY(0); }

.mobile-nav { background: rgba(26, 11, 46, 0.98); backdrop-filter: blur(18px); border-left: 1px solid rgba(255,255,255,0.1); }
.mobile-nav a { display: flex; align-items: center; padding: 0.9rem 1rem; border-radius: 1rem; color: rgba(255,255,255,0.9); font-weight: 700; transition: background 0.2s ease, color 0.2s ease; }
.mobile-nav a:hover, .mobile-nav a.active { background: rgba(244,114,182,0.15); color: var(--accent); }
.mobile-nav i { width: 28px; text-align: center; margin-right: 0.75rem; color: var(--primary); }
