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

/* ===== 变量 ===== */
:root {
  --c-bg: #1A1A2E;
  --c-bg2: #16213E;
  --c-bg3: #0F3460;
  --c-red: #E94560;
  --c-gold: #F5A623;
  --c-text: #E8E8F0;
  --c-muted: #9090AA;
  --c-border: rgba(233,69,96,0.25);
  --c-card-bg: #1E1E38;
  --radius-card: 28px;
  --radius-sm: 10px;
  --radius-btn: 50px;
  --shadow-card: 0 8px 32px rgba(233,69,96,0.13), 0 2px 8px rgba(0,0,0,0.4);
  --shadow-hover: 0 16px 48px rgba(233,69,96,0.22), 0 4px 16px rgba(0,0,0,0.5);
  --font-main: 'Baloo 2', 'Comic Neue', system-ui, sans-serif;
  --max-w: 860px;
  --max-w-wide: 1100px;
}

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

/* ===== 版式容器 ===== */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem 3rem;
}
main > article { width: 100%; }

/* ===== Header ===== */
.site-header {
  background: rgba(26,26,46,0.97);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.brand-row {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0.7rem 1.2rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--c-text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand-link:hover { color: var(--c-red); }
.brand-logo { border-radius: 6px; }
.brand-name {
  background: linear-gradient(90deg, var(--c-red), var(--c-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-slogan {
  font-size: 0.78rem;
  color: var(--c-muted);
  margin-left: 0.3rem;
}
.header-search { flex-shrink: 0; }
.search-form { display: flex; gap: 0.3rem; }
.search-input {
  background: var(--c-bg2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-btn);
  color: var(--c-text);
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  font-family: var(--font-main);
  width: 180px;
  outline: none;
  transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--c-red); }
.search-btn {
  background: var(--c-red);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  font-family: var(--font-main);
  cursor: pointer;
  font-weight: 600;
  min-height: 40px;
  transition: background 0.2s, transform 0.15s;
}
.search-btn:hover { background: var(--c-gold); transform: scale(1.04); }

/* 导航行（无 ul/li，直接 a×n） */
.main-nav {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  border-top: 1px solid var(--c-border);
}
.nav-link {
  color: var(--c-muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: color 0.2s, background 0.2s;
  min-height: 40px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.nav-link:hover { color: var(--c-gold); background: rgba(245,166,35,0.07); }
.nav-link[aria-current="page"] {
  color: var(--c-red);
  border-bottom: 2px solid var(--c-red);
  background: rgba(233,69,96,0.07);
}

/* ===== 公共按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--radius-btn);
  padding: 0.65rem 1.6rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  min-height: 44px;
  text-decoration: none;
}
.btn--primary {
  background: var(--c-red);
  color: #fff;
  box-shadow: 0 4px 18px rgba(233,69,96,0.35);
}
.btn--primary:hover { background: #c73450; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(233,69,96,0.45); color: #fff; }
.btn--outline {
  background: transparent;
  color: var(--c-gold);
  border-color: var(--c-gold);
}
.btn--outline:hover { background: rgba(245,166,35,0.12); transform: translateY(-2px); color: var(--c-gold); }

/* ===== Eyebrow 标签 ===== */
.eyebrow-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(233,69,96,0.15);
  color: var(--c-red);
  border: 1px solid var(--c-red);
  border-radius: 50px;
  padding: 0.18rem 0.7rem;
  margin-bottom: 0.6rem;
}
.eyebrow-tag--rank {
  background: rgba(245,166,35,0.12);
  color: var(--c-gold);
  border-color: var(--c-gold);
}

/* ===== 动效：Kinetic H1 ===== */
@keyframes kineticIn {
  from { opacity: 0; transform: translateY(22px) skewY(2deg); }
  to   { opacity: 1; transform: translateY(0) skewY(0deg); }
}
@keyframes gradShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.kinetic-h1 {
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(120deg, #fff 0%, var(--c-red) 45%, var(--c-gold) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: kineticIn 0.6s cubic-bezier(0.22,1,0.36,1) both, gradShift 6s ease infinite;
  margin-bottom: 0.75rem;
}
.kinetic-h1--rank {
  background: linear-gradient(120deg, #fff 0%, var(--c-gold) 50%, var(--c-red) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: kineticIn 0.6s cubic-bezier(0.22,1,0.36,1) both, gradShift 5s ease infinite;
}

/* ===== 浮动徽章 ===== */
.float-badge {
  display: inline-block;
  background: rgba(233,69,96,0.18);
  color: var(--c-red);
  border: 1px solid rgba(233,69,96,0.45);
  border-radius: 50px;
  padding: 0.22rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.2rem 0.15rem;
}
.float-badge--alt {
  background: rgba(245,166,35,0.12);
  color: var(--c-gold);
  border-color: rgba(245,166,35,0.4);
}

/* ===== Hero：首页 ===== */
.hero-section {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem 2.5rem;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(233,69,96,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero-badges { margin-bottom: 1rem; }
.hero-h1 {
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  background: linear-gradient(120deg, #fff 0%, var(--c-red) 50%, var(--c-gold) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: kineticIn 0.7s cubic-bezier(0.22,1,0.36,1) both, gradShift 7s ease infinite;
  margin-bottom: 0.8rem;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--c-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.hero-cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.hero-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
@keyframes floatIcon {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%       { transform: translateY(-14px) rotate(5deg); }
}
.hero-icon {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0.13;
  animation: floatIcon 4s ease-in-out infinite;
}
.hi-1 { top: 20%; left: 8%; animation-delay: 0s; }
.hi-2 { top: 60%; right: 10%; animation-delay: 1.3s; }
.hi-3 { top: 35%; right: 5%; animation-delay: 2.1s; font-size: 2rem; }

/* ===== Hero：compare ===== */
.compare-hero {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 2rem;
}
.compare-hero-media { margin: 1rem 0; border-radius: var(--radius-card); overflow: hidden; }
.compare-hero-img { width: 100%; max-height: 280px; object-fit: cover; border-radius: var(--radius-card); }
.compare-hero-text { }
.compare-sub {
  font-size: 1rem;
  color: var(--c-muted);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* ===== Hero：ranking ===== */
.ranking-hero {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.ranking-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(245,166,35,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.ranking-hero-inner { position: relative; z-index: 1; }
.ranking-sub {
  font-size: 1rem;
  color: var(--c-muted);
  margin-bottom: 0.5rem;
}

/* Ticker 跑马灯 */
.ranking-ticker {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 0.8rem;
  overflow: hidden;
}
@keyframes tickerSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  font-size: 0.8rem;
  color: var(--c-gold);
  white-space: nowrap;
  font-weight: 600;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--c-muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-gold); }
.breadcrumb span { color: var(--c-text); }

/* ===== 日期元信息 ===== */
.meta-dates {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--c-muted);
  margin-top: 0.5rem;
}
.pub-date, .mod-date { }

/* ===== 正文 prose ===== */
.content-body { padding: 1.5rem 0; }
.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-text);
}
.prose h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-gold);
  margin: 2rem 0 0;
  padding-bottom: 0.3rem;
}
/* 结构抽签：h2 后紧跟 hr —— prose 内由此自动规则生成 */
.prose h2 + hr,
.prose h2::after {
  display: none;
}
.prose h2 + hr { display: block; }
/* 为 prose 外的 h2 后 hr 也统一样式 */
h2 + hr,
.child-list-section h2 + hr,
.cards-section h2 + hr,
.compare-related h2 + hr,
.ranking-related h2 + hr,
.about-links h2 + hr,
.privacy-nav h2 + hr {
  border: none;
  border-top: 2px solid var(--c-border);
  margin: 0.5rem 0 1.2rem;
}
.prose h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-red);
  margin: 1.4rem 0 0.4rem;
}
.prose p { margin: 0.8rem 0; }
.prose ul, .prose ol {
  padding-left: 1.4rem;
  margin: 0.6rem 0;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 0.35rem 0; }
.prose a { color: var(--c-red); border-bottom: 1px solid rgba(233,69,96,0.3); }
.prose a:hover { color: var(--c-gold); border-color: var(--c-gold); }
.prose strong { color: var(--c-gold); font-weight: 700; }
.prose em { color: var(--c-red); font-style: italic; }
.prose blockquote {
  border-left: 3px solid var(--c-red);
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  background: rgba(233,69,96,0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--c-muted);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.prose th {
  background: rgba(233,69,96,0.12);
  color: var(--c-red);
  padding: 0.5rem 0.8rem;
  text-align: left;
  border-bottom: 2px solid var(--c-border);
}
.prose td {
  padding: 0.45rem 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.prose tr:hover td { background: rgba(255,255,255,0.02); }
.prose code {
  background: rgba(245,166,35,0.1);
  color: var(--c-gold);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.9em;
}
.prose pre {
  background: var(--c-bg2);
  border-radius: var(--radius-sm);
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
}
.prose pre code { background: none; padding: 0; }
.prose time { color: var(--c-gold); font-size: 0.88rem; }
.prose hr {
  border: none;
  border-top: 2px solid var(--c-border);
  margin: 1.5rem 0;
}
.prose img {
  border-radius: var(--radius-sm);
  margin: 1rem 0;
}

/* ===== 卡片（首页） ===== */
.cards-section { padding: 2rem 0; }
.cards-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-gold);
  margin-bottom: 0;
}
.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 1.2rem;
}
.card-list--rank { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card-item { }
.card-link {
  display: flex;
  flex-direction: column;
  background: var(--c-card-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s;
  height: 100%;
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.card-link:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  color: var(--c-text);
}
.card-img-wrap { overflow: hidden; max-height: 160px; }
.card-img { width: 100%; height: 160px; object-fit: cover; transition: transform 0.3s; }
.card-link:hover .card-img { transform: scale(1.04); }
.card-body { padding: 1rem 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; gap: 0.35rem; }
.card-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: rgba(233,69,96,0.15);
  color: var(--c-red);
  border: 1px solid rgba(233,69,96,0.3);
  border-radius: 50px;
  padding: 0.12rem 0.6rem;
  align-self: flex-start;
}
.card-badge--rank {
  background: rgba(245,166,35,0.12);
  color: var(--c-gold);
  border-color: rgba(245,166,35,0.3);
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.3;
}
.card-desc {
  font-size: 0.87rem;
  color: var(--c-muted);
  line-height: 1.5;
  flex: 1;
}
.card-rank .card-body { border-left: 3px solid var(--c-gold); }

/* ===== 子页列表（ol > li > a + small） ===== */
.child-list-section { padding: 2rem 0 1rem; }
.child-list-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-gold);
  margin-bottom: 0;
}
.child-list { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.child-item { }
.child-link {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: 0.85rem 1.2rem;
  color: var(--c-text);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  min-height: 44px;
}
.child-link:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--c-red);
  color: var(--c-text);
}
.child-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--c-text);
  flex: 1;
  min-width: 140px;
}
.child-desc {
  font-size: 0.82rem;
  color: var(--c-muted);
  line-height: 1.4;
}
.child-date {
  font-size: 0.78rem;
  color: var(--c-gold);
  white-space: nowrap;
}
.child-list--rank .child-link { align-items: center; }
.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--c-red);
  color: #fff;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}
.child-list--rank .child-item:nth-child(1) .rank-num { background: var(--c-gold); color: #1A1A2E; }
.child-list--rank .child-item:nth-child(2) .rank-num { background: #aaa; color: #1A1A2E; }
.child-list--rank .child-item:nth-child(3) .rank-num { background: #cd7f32; color: #fff; }

/* ===== About 页 ===== */
.about-hero {
  padding: 2.5rem 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 2rem;
}
.about-logo-wrap img { border-radius: 16px; max-width: 80px; }
.about-hero-text { flex: 1; min-width: 220px; }
.about-intro { color: var(--c-muted); font-size: 1rem; margin-top: 0.4rem; }
.about-links { padding: 2rem 0 1rem; }
.about-links h2 { color: var(--c-gold); font-size: 1.2rem; margin-bottom: 0; }
.about-body { }

/* ===== Privacy 页 ===== */
.privacy-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 2rem;
}
.privacy-intro { color: var(--c-muted); font-size: 1rem; margin-top: 0.4rem; }
.privacy-nav { padding: 2rem 0 1rem; }
.privacy-nav h2 { color: var(--c-gold); font-size: 1.2rem; margin-bottom: 0; }

/* ===== Compare / Ranking 附加区块 ===== */
.compare-related,
.ranking-related { padding: 2rem 0 1rem; }
.compare-related h2,
.ranking-related h2 { color: var(--c-gold); font-size: 1.2rem; margin-bottom: 0; }

/* ===== Footer (三列 dl 并排) ===== */
.site-footer {
  background: var(--c-bg2);
  border-top: 1px solid var(--c-border);
  padding: 2.5rem 1.2rem 1.5rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
}
.footer-heading {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-red);
  margin-bottom: 0.7rem;
  letter-spacing: 0.04em;
}
.footer-desc {
  font-size: 0.85rem;
  color: var(--c-muted);
  margin-bottom: 0.5rem;
  line-height: 1.5;
  display: block;
}
.footer-copy {
  display: block;
  font-size: 0.78rem;
  color: var(--c-muted);
  margin-top: 0.5rem;
}
.footer-col dd { margin: 0.3rem 0; }
.footer-link {
  font-size: 0.85rem;
  color: var(--c-muted);
  transition: color 0.18s;
}
.footer-link:hover { color: var(--c-gold); }
.footer-notice {
  display: block;
  font-size: 0.75rem;
  color: rgba(144,144,170,0.6);
  margin-top: 0.8rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(144,144,170,0.2);
  border-radius: var(--radius-sm);
}

/* ===== 滚动触发动画 ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.is-visible {
  animation: fadeUp 0.5s cubic-bezier(0.22,1,0.36,1) both;
}
.child-item.is-visible { animation-fill-mode: both; }

/* ===== 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: 700px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .footer-brand-col { grid-column: 1 / -1; }
  .brand-row { gap: 0.6rem; }
  .brand-slogan { display: none; }
  .search-input { width: 120px; }
  .card-list { grid-template-columns: 1fr; }
  .hero-section { min-height: 38vh; padding: 2.5rem 1rem 2rem; }
}
@media (max-width: 480px) {
  html { font-size: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
  .main-nav { gap: 0; }
  .nav-link { font-size: 0.82rem; padding: 0.5rem 0.6rem; }
  .kinetic-h1 { font-size: clamp(1.35rem, 7vw, 2rem); }
  .hero-h1 { font-size: clamp(1.45rem, 7vw, 2.2rem); }
  .about-hero { flex-direction: column; gap: 1rem; }
  .search-form { width: 100%; }
  .search-input { flex: 1; width: auto; }
  .header-search { width: 100%; }
}
