@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Syncopate:wght@400;700&display=swap');

/* ===== 变量 ===== */
:root {
  --c-red: #ff0000;
  --c-pink: #ff1493;
  --c-dark: #261717;
  --c-dark2: #1a0f0f;
  --c-dark3: #0e0808;
  --c-mid: #3d2020;
  --c-light: #f5e8e8;
  --c-muted: #c4a0a0;
  --c-white: #ffffff;
  --nav-w: 220px;
  --font-head: 'Syncopate', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --radius-card: 28px;
  --radius-pill: 999px;
  --shadow-card: 0 8px 32px rgba(255,0,0,0.18), 0 2px 8px rgba(0,0,0,0.32);
  --shadow-card-hover: 0 16px 48px rgba(255,20,147,0.28), 0 4px 16px rgba(0,0,0,0.4);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--c-dark3);
  color: var(--c-light);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-pink); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-red); }
ul { list-style: none; }

/* ===== Aurora 极光背景动画 ===== */
@keyframes aurora-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes mesh-float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
  50%       { transform: translateY(-20px) scale(1.04); opacity: 1; }
}
@keyframes stagger-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pill-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(255,20,147,0.4); }
  50%       { box-shadow: 0 0 20px rgba(255,0,0,0.7); }
}

/* ===== 布局 ===== */
.site-layout {
  display: flex;
  min-height: 100vh;
}

/* ===== 左竖导航 ===== */
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-w);
  height: 100vh;
  background: linear-gradient(180deg, var(--c-dark2) 0%, var(--c-dark3) 60%, #1a0505 100%);
  border-right: 1px solid rgba(255,20,147,0.18);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 0 24px;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px 20px;
  border-bottom: 1px solid rgba(255,0,0,0.15);
}
.brand-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.brand-icon-text {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--c-red);
  letter-spacing: 0.1em;
  text-shadow: 0 0 16px var(--c-red), 0 0 32px var(--c-pink);
  animation: pill-glow 3s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--c-red);
}
.side-nav nav {
  flex: 1;
  padding: 16px 12px;
}
.side-nav nav ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.side-nav nav ul li {
  width: 100%;
}
.nav-pill {
  display: block;
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--c-muted);
  letter-spacing: 0.04em;
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--transition);
  line-height: 1.4;
  min-height: 40px;
  text-align: left;
}
.nav-pill:hover {
  background: rgba(255,20,147,0.12);
  border-color: rgba(255,20,147,0.4);
  color: var(--c-white);
  box-shadow: 0 0 12px rgba(255,20,147,0.25);
}
.nav-pill--active {
  background: linear-gradient(90deg, rgba(255,0,0,0.25), rgba(255,20,147,0.25));
  border-color: rgba(255,20,147,0.6);
  color: var(--c-white);
  box-shadow: 0 0 16px rgba(255,20,147,0.35);
}
.nav-slogan {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,20,147,0.5);
  letter-spacing: 0.08em;
  text-align: center;
  border-top: 1px solid rgba(255,0,0,0.1);
  margin-top: 8px;
}

/* ===== 页面主体 ===== */
.page-body {
  margin-left: var(--nav-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 45vh;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--c-dark2);
}
.hero-mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(255,0,0,0.45) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(255,20,147,0.4) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 80%, rgba(38,23,23,0.8) 0%, transparent 60%),
    conic-gradient(from 180deg at 50% 50%, #261717 0deg, #3d1010 90deg, #1a0505 180deg, #261717 360deg);
  background-size: 200% 200%;
  animation: aurora-shift 10s ease-in-out infinite;
  filter: saturate(1.3);
  mix-blend-mode: screen;
  z-index: 0;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero-bg-img .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}
.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: 32px 24px 56px;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--c-pink);
  text-transform: uppercase;
  margin-bottom: 12px;
  border: 1px solid rgba(255,20,147,0.4);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255,20,147,0.08);
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(20px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.2;
  letter-spacing: 0.05em;
  max-width: 800px;
  text-shadow: 0 0 32px rgba(255,0,0,0.6), 0 2px 8px rgba(0,0,0,0.8);
  margin-bottom: 14px;
}
.hero-sub {
  font-size: 15px;
  color: var(--c-muted);
  max-width: 600px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.meta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.meta-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,20,147,0.7);
  letter-spacing: 0.06em;
}
/* 斜切分割带 */
.hero-skew {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--c-dark3);
  clip-path: polygon(0 60px, 100% 0, 100% 60px);
  z-index: 4;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 44px;
  text-decoration: none;
  border: none;
}
.btn--primary {
  background: linear-gradient(135deg, var(--c-red), var(--c-pink));
  color: var(--c-white);
  box-shadow: 0 4px 20px rgba(255,0,0,0.4);
}
.btn--primary:hover {
  box-shadow: 0 8px 32px rgba(255,20,147,0.55);
  transform: translateY(-2px);
  color: var(--c-white);
}
.btn--ghost {
  background: transparent;
  color: var(--c-pink);
  border: 1px solid rgba(255,20,147,0.5);
}
.btn--ghost:hover {
  background: rgba(255,20,147,0.12);
  border-color: var(--c-pink);
  color: var(--c-white);
}

/* ===== 主内容区 ===== */
main {
  flex: 1;
  padding: 48px 0;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* ===== 内容段 ===== */
.content-section {
  min-width: 0;
}
.prose-article {
  background: rgba(38,23,23,0.6);
  border: 1px solid rgba(255,20,147,0.12);
  border-radius: var(--radius-card);
  padding: 40px;
  backdrop-filter: blur(8px);
}
.prose-article h2 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: 0.08em;
  margin: 32px 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,0,0,0.2);
}
.prose-article h2:first-child { margin-top: 0; }
.prose-article h3 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-pink);
  letter-spacing: 0.06em;
  margin: 24px 0 8px;
}
.prose-article p {
  color: var(--c-light);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.prose-article p.subtitle,
.prose-article p.subhead,
.prose-article p.desc,
.prose-article p.lead {
  color: var(--c-muted);
  font-size: 15px;
}
.prose-article ul, .prose-article ol {
  padding-left: 20px;
  margin-bottom: 16px;
  list-style: disc;
}
.prose-article ol { list-style: decimal; }
.prose-article li {
  color: var(--c-light);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 6px;
}
.prose-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.prose-article th {
  background: rgba(255,0,0,0.15);
  color: var(--c-white);
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid rgba(255,0,0,0.3);
}
.prose-article td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,20,147,0.1);
  color: var(--c-light);
  vertical-align: top;
}
.prose-article tr:hover td {
  background: rgba(255,20,147,0.06);
}
.prose-article strong { color: var(--c-white); font-weight: 700; }
.prose-article a { color: var(--c-pink); border-bottom: 1px solid rgba(255,20,147,0.3); }
.prose-article a:hover { color: var(--c-red); border-color: var(--c-red); }
.prose-article blockquote {
  border-left: 3px solid var(--c-pink);
  padding: 12px 20px;
  margin: 20px 0;
  background: rgba(255,20,147,0.06);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--c-muted);
}
.prose-article code {
  background: rgba(255,0,0,0.12);
  color: var(--c-pink);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.prose-article pre {
  background: var(--c-dark2);
  border: 1px solid rgba(255,0,0,0.2);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  margin: 20px 0;
}
.prose-article pre code {
  background: none;
  padding: 0;
}

/* FAQ 特殊样式 */
.faq-article h3 {
  color: var(--c-white);
  font-size: 15px;
  margin-top: 28px;
  padding: 10px 16px;
  background: rgba(255,0,0,0.1);
  border-left: 3px solid var(--c-red);
  border-radius: 0 8px 8px 0;
}

/* ===== 侧边栏 Aside ===== */
.related-aside {
  position: sticky;
  top: 24px;
  background: rgba(38,23,23,0.7);
  border: 1px solid rgba(255,20,147,0.15);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  backdrop-filter: blur(8px);
}
.aside-heading {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.aside-sub {
  font-size: 12px;
  color: var(--c-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.aside-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.aside-links li a {
  display: block;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--c-muted);
  border: 1px solid transparent;
  transition: all var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}
.aside-links li a:hover {
  background: rgba(255,20,147,0.1);
  border-color: rgba(255,20,147,0.3);
  color: var(--c-white);
}
.rel-card {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,20,147,0.08);
}
.rel-card:last-child { border-bottom: none; }
.rel-card h4 { font-size: 12px; margin-bottom: 4px; }
.rel-card h4 a { color: var(--c-light); font-family: var(--font-mono); }
.rel-card h4 a:hover { color: var(--c-pink); }
.rel-card p { font-size: 11px; color: var(--c-muted); line-height: 1.5; }
.card-date {
  display: block;
  font-size: 10px;
  color: rgba(255,20,147,0.6);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  font-family: var(--font-mono);
}

/* ===== 通用区块标题 ===== */
.section-heading {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.section-sub {
  color: var(--c-muted);
  font-size: 13px;
  margin-bottom: 28px;
  line-height: 1.6;
}
.subtitle { color: var(--c-muted); font-size: 13px; line-height: 1.6; }

/* ===== 特色评测卡片 ===== */
.feat-section,
.child-section,
.ranking-section {
  grid-column: 1 / -1;
  padding-top: 20px;
}
.feat-card, .child-card {
  background: rgba(38,23,23,0.65);
  border: 1px solid rgba(255,20,147,0.12);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  animation: stagger-in 0.5s ease both;
  animation-delay: calc(var(--i, 0) * 0.08s);
}
.feat-card:hover, .child-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.card-body {
  padding: 24px 28px;
}
.card-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-white);
  margin-bottom: 8px;
  line-height: 1.4;
}
.card-title a { color: var(--c-white); }
.card-title a:hover { color: var(--c-pink); }
.card-desc {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.card-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(255,0,0,0.3), rgba(255,20,147,0.3));
  border: 1px solid rgba(255,20,147,0.4);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: 0.08em;
  transition: all var(--transition);
  min-height: 36px;
}
.card-cta:hover {
  background: linear-gradient(135deg, rgba(255,0,0,0.5), rgba(255,20,147,0.5));
  box-shadow: 0 4px 16px rgba(255,20,147,0.3);
  color: var(--c-white);
}

/* ===== 榜单卡片 ===== */
.rank-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: rgba(38,23,23,0.65);
  border: 1px solid rgba(255,20,147,0.12);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-card);
  animation: stagger-in 0.5s ease both;
  animation-delay: calc(var(--i, 0) * 0.1s);
}
.rank-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-card-hover);
}
.rank-num {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: rgba(255,0,0,0.35);
  line-height: 1;
  min-width: 48px;
  padding-top: 4px;
  letter-spacing: 0.05em;
}
.rank-body { flex: 1; }
.rank-body h3 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.rank-body h3 a { color: var(--c-white); }
.rank-body h3 a:hover { color: var(--c-pink); }
.rank-body p {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--c-dark2);
  border-top: 1px solid rgba(255,20,147,0.15);
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-brand {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: transparent;
  background: linear-gradient(135deg, var(--c-red), var(--c-pink));
  -webkit-background-clip: text;
  background-clip: text;
  line-height: 1.1;
}
.footer-addr {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-muted);
  font-style: normal;
  letter-spacing: 0.06em;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}
.footer-links li a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-muted);
  letter-spacing: 0.06em;
  padding: 8px 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition);
}
.footer-links li a:hover { color: var(--c-pink); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,20,147,0.4);
  letter-spacing: 0.08em;
}

/* ===== 首页特定样式 ===== */
.page-home .hero--home .hero-mesh {
  animation-duration: 8s;
}
.page-home .hero--home {
  height: 45vh;
  min-height: 320px;
}

/* ===== 内容网格覆盖：需要全宽时 ===== */
.wrap > .content-section,
.wrap > .related-aside {
  /* 在默认双列中，content 占第一列，aside 占第二列 */
}
.wrap > .feat-section,
.wrap > .child-section,
.wrap > .ranking-section {
  grid-column: 1 / -1;
}

/* ===== prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  :root { --nav-w: 200px; }
  .wrap { padding: 0 24px; gap: 28px; }
  .prose-article { padding: 28px; }
}

@media (max-width: 768px) {
  :root { --nav-w: 0px; }

  .side-nav {
    width: 100%;
    height: auto;
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: row;
    align-items: center;
    padding: 0 8px;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: none;
    border-top: 1px solid rgba(255,20,147,0.2);
    z-index: 200;
    height: 60px;
  }
  .brand-mark {
    padding: 0 12px;
    border-bottom: none;
    border-right: 1px solid rgba(255,0,0,0.15);
    flex-shrink: 0;
    height: 60px;
  }
  .brand-icon-text {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  .side-nav nav {
    padding: 0 8px;
    flex: 1;
    overflow-x: auto;
    height: 60px;
    display: flex;
    align-items: center;
  }
  .side-nav nav ul {
    flex-direction: row;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
    height: 100%;
  }
  .side-nav nav ul li {
    width: auto;
    flex-shrink: 0;
  }
  .nav-pill {
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 10px;
    min-height: 40px;
  }
  .nav-slogan { display: none; }

  .page-body {
    margin-left: 0;
    padding-bottom: 70px;
  }

  .wrap {
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 24px;
  }
  .wrap > .content-section { order: 1; }
  .wrap > .related-aside { order: 2; position: static; }
  .wrap > .feat-section,
  .wrap > .child-section,
  .wrap > .ranking-section { order: 3; grid-column: 1; }

  .hero { height: 45vh; min-height: 240px; }
  .hero-title { font-size: clamp(18px, 5vw, 28px); }
  .hero-inner { padding: 24px 16px 48px; }
  .prose-article { padding: 20px; }
  .card-body { padding: 18px 20px; }
  .rank-card { padding: 16px 20px; gap: 16px; }
  .rank-num { font-size: 22px; min-width: 36px; }
  .site-footer { padding: 28px 16px; }
  .footer-links { gap: 16px; }
  main { padding: 32px 0; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; justify-content: center; }
  .hero-title { font-size: 18px; }
  .feat-card, .child-card { border-radius: 16px; }
  .rank-card { border-radius: 16px; }
  .prose-article { border-radius: 16px; }
  .related-aside { border-radius: 16px; }
}
