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

/* ===== 变量 ===== */
:root {
  --c-bg: #1A1A2E;
  --c-accent: #E94560;
  --c-ink: #F5F5F0;
  --c-ink-dim: rgba(245,245,240,0.6);
  --c-ink-muted: rgba(245,245,240,0.35);
  --c-border: rgba(245,245,240,0.15);
  --c-card-bg: rgba(245,245,240,0.03);
  --c-accent-dim: rgba(233,69,96,0.15);
  --c-accent-glow: rgba(233,69,96,0.4);
  --font-head: 'Newsreader', Georgia, serif;
  --font-body: 'Roboto', system-ui, sans-serif;
  --max-w: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 18px;
  --transition: 0.25s ease;
}

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

/* ===== 字体动画关键帧 ===== */
@keyframes typeIn {
  from { width: 0; opacity: 0; }
  to { width: 100%; opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 20px var(--c-accent-glow); }
  50% { text-shadow: 0 0 60px var(--c-accent-glow), 0 0 100px rgba(233,69,96,0.2); }
}
@keyframes bgTextFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-12px) rotate(-4deg); }
}
@keyframes staggerIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes underlineGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes borderPulse {
  0%, 100% { border-color: var(--c-border); }
  50% { border-color: var(--c-accent); }
}

/* ===== 顶部公告条 ===== */
.header-announce {
  background: var(--c-accent);
  color: var(--c-ink);
  text-align: center;
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 8px var(--gutter);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ===== 品牌行 ===== */
.header-brand {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  padding: 1.2rem var(--gutter);
  display: flex;
  align-items: center;
}
.brand-name {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: -0.02em;
  position: relative;
}
.brand-name::after {
  content: '';
  display: block;
  height: 3px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.brand-name:hover::after { transform: scaleX(1); }
.brand-name:hover { color: var(--c-ink); }

/* ===== 导航行 ===== */
.site-nav {
  background: var(--c-bg);
  border-bottom: 2px solid var(--c-accent);
  padding: 0 var(--gutter);
  position: sticky;
  top: 33px;
  z-index: 99;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.site-nav p {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  white-space: nowrap;
  margin: 0;
}
.site-nav p a {
  display: inline-block;
  color: var(--c-ink-dim);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  min-height: 44px;
  line-height: 1;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
}
.site-nav p a:hover {
  color: var(--c-ink);
  border-bottom-color: var(--c-accent);
}

/* ===== 主内容容器 ===== */
main { min-height: 60vh; }
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ===== Hero 通用 ===== */
.hero--home,
.page-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 4rem 0;
  border-bottom: 1px solid var(--c-border);
}
.page-hero { min-height: 45vh; }
.hero--home > div,
.page-hero > div {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}
.hero__bg-text {
  position: absolute;
  right: -2vw;
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  font-family: var(--font-head);
  font-size: clamp(6rem, 18vw, 18rem);
  font-weight: 700;
  color: rgba(233,69,96,0.06);
  letter-spacing: -0.04em;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  animation: bgTextFloat 8s ease-in-out infinite;
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
}
.hero__content--right {
  text-align: right;
  margin-left: auto;
  max-width: 900px;
}
.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1rem;
  animation: fadeUp 0.6s ease both;
}
.hero__title,
h1.kinetic-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--c-ink);
  animation: fadeUp 0.7s 0.1s ease both;
  position: relative;
}
.page-hero h1.kinetic-title {
  font-size: clamp(1.6rem, 4vw, 3.5rem);
}
.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  color: var(--c-ink-dim);
  margin-top: 1.2rem;
  max-width: 600px;
  margin-left: auto;
  animation: fadeUp 0.7s 0.2s ease both;
}
.page-date {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--c-ink-muted);
  margin-top: 1rem;
  letter-spacing: 0.05em;
}
.btn-primary {
  display: inline-block;
  margin-top: 2rem;
  padding: 14px 32px;
  background: var(--c-accent);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  border: 2px solid var(--c-accent);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  animation: fadeUp 0.7s 0.3s ease both;
}
.btn-primary:hover {
  background: transparent;
  color: var(--c-accent);
  transform: translateY(-2px);
}

/* ===== 段落眉题 small ===== */
.section-eyebrow,
.aside-label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.5rem;
}
.aside-label { margin-top: 1.5rem; }
.aside-label:first-child { margin-top: 0; }

/* ===== 内容区通用布局 ===== */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  padding: 4rem 0;
  align-items: start;
}
.content-layout--narrow .content-main { max-width: 700px; }

/* ===== 正文 ===== */
.content-main h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.8rem;
}
.content-main h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 3px;
  background: var(--c-accent);
  border-radius: 2px;
}
.page-content {
  color: var(--c-ink-dim);
  font-size: 17px;
  line-height: 1.8;
}
.page-content h2,
.page-content h3 {
  font-family: var(--font-head);
  color: var(--c-ink);
  margin: 2rem 0 0.8rem;
}
.page-content h2 { font-size: 1.5rem; }
.page-content h3 { font-size: 1.2rem; }
.page-content p { margin-bottom: 1.2rem; }
.page-content ul,
.page-content ol {
  margin: 1rem 0 1.2rem 1.5rem;
  list-style: disc;
}
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: 0.4rem; }
.page-content a { text-decoration: underline; text-underline-offset: 3px; }
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 15px;
}
.page-content th {
  background: var(--c-accent);
  color: var(--c-ink);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
}
.page-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-ink-dim);
}
.page-content--legal { font-size: 16px; }

/* ===== Aside 侧边栏 ===== */
.content-aside {
  position: sticky;
  top: 100px;
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.content-aside h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 0.8rem;
}
.aside-links { display: flex; flex-direction: column; gap: 0; margin-bottom: 0.5rem; }
.aside-links li a {
  display: block;
  color: var(--c-ink-dim);
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--c-border);
  transition: color var(--transition), padding-left var(--transition);
}
.aside-links li:last-child a { border-bottom: none; }
.aside-links li a:hover {
  color: var(--c-accent);
  padding-left: 6px;
}
.aside-note {
  margin-top: 1rem;
  padding: 0.8rem;
  background: var(--c-accent-dim);
  border-radius: 8px;
  border-left: 3px solid var(--c-accent);
}
.aside-note p {
  font-size: 13px;
  color: var(--c-ink-dim);
  line-height: 1.5;
}

/* ===== 首页：正文区 ===== */
.home-content {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--c-border);
}
.content-article {
  max-width: 800px;
}

/* ===== 首页：排名区 ===== */
.home-rankings {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--c-border);
}
.rankings-main { flex: 1; }

/* ===== 排名表格 ===== */
.rank-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}
.rank-table tbody tr {
  border-bottom: 1px solid var(--c-border);
  transition: background var(--transition);
}
.rank-table tbody tr:hover { background: var(--c-accent-dim); }
.rank-table td {
  padding: 14px 12px;
  vertical-align: middle;
}
.rank-num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--c-accent);
  width: 60px;
  letter-spacing: -0.04em;
}
.rank-title a {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-ink);
}
.rank-title a:hover { color: var(--c-accent); }
.rank-desc { font-size: 14px; color: var(--c-ink-muted); }
.rank-date { font-size: 13px; color: var(--c-ink-muted); white-space: nowrap; }
.rank-table--full .rank-num { font-size: 2.2rem; }

/* ===== 首页：卡片区 ===== */
.home-cards {
  padding: 3rem 0;
  border-bottom: 1px solid var(--c-border);
}
.home-cards > small,
.home-cards > h2 { margin-bottom: 0.5rem; }
.home-cards > h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--c-ink);
  margin-bottom: 2rem;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.8rem;
  background: var(--c-card-bg);
  transition: border-color var(--transition), transform var(--transition);
  animation: staggerIn 0.5s calc(var(--i, 0) * 0.08s) ease both;
}
.card:hover {
  border-color: var(--c-accent);
  transform: translateY(-4px);
}
.card__eyebrow { margin-bottom: 0.5rem; }
.card__eyebrow small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.card__title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}
.card__title a { color: var(--c-ink); }
.card__title a:hover { color: var(--c-accent); }
.card__desc {
  font-size: 14px;
  color: var(--c-ink-dim);
  margin-bottom: 0.8rem;
  line-height: 1.6;
}
.card__date { font-size: 12px; color: var(--c-ink-muted); margin-bottom: 1rem; }
.card__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0.05em;
}
.card__link:hover { color: var(--c-ink); }

/* ===== 首页：评测列表 ===== */
.home-reviews {
  padding: 3rem 0;
}
.home-reviews > small,
.home-reviews > h2 { margin-bottom: 0.5rem; }
.home-reviews > h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--c-ink);
  margin-bottom: 2rem;
}
.review-list { display: flex; flex-direction: column; gap: 0; }
.review-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--c-border);
  animation: staggerIn 0.5s calc(var(--i, 0) * 0.08s) ease both;
}
.review-item:last-child { border-bottom: none; }
.review-item a {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-ink);
  flex-shrink: 0;
}
.review-item a:hover { color: var(--c-accent); }
.review-item span {
  font-size: 14px;
  color: var(--c-ink-muted);
}

/* ===== compare 指示器 ===== */
.compare-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-accent);
}
.indicator-dot {
  width: 8px; height: 8px;
  background: var(--c-accent);
  border-radius: 50%;
  animation: glowPulse 2s ease-in-out infinite;
}

/* ===== compare 子页列表 ===== */
.compare-children { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--c-border); }
.compare-children > small { margin-bottom: 0.5rem; }
.compare-children > h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--c-ink);
  margin-bottom: 1.5rem;
}
.compare-child-list { display: flex; flex-direction: column; gap: 0; }
.compare-child-list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--c-border);
}
.compare-child-list li:last-child { border-bottom: none; }
.compare-child-list li a {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-ink);
}
.compare-child-list li a:hover { color: var(--c-accent); }
.compare-child-list li span { font-size: 14px; color: var(--c-ink-muted); }

/* ===== review meta ===== */
.review-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.review-badge {
  display: inline-block;
  background: var(--c-accent);
  color: var(--c-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 4px 12px;
  border-radius: 4px;
}
.review-date { font-size: 13px; color: var(--c-ink-muted); }

/* ===== about stats ===== */
.about-stats { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--c-border); }
.about-stats > small { margin-bottom: 0.5rem; }
.about-stats > h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--c-ink);
  margin-bottom: 1.5rem;
}
.stats-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.stat-item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  text-align: center;
  min-width: 120px;
  transition: border-color var(--transition);
}
.stat-item:hover { border-color: var(--c-accent); }
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  display: block;
  font-size: 13px;
  color: var(--c-ink-muted);
  letter-spacing: 0.1em;
}

/* ===== ranking 表格包装 ===== */
.ranking-table-wrap { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--c-border); }
.ranking-table-wrap > small { margin-bottom: 0.5rem; }
.ranking-table-wrap > h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--c-ink);
  margin-bottom: 1.2rem;
}

/* ===== 页脚 ===== */
.site-footer {
  background: rgba(255,255,255,0.02);
  border-top: 2px solid var(--c-accent);
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem var(--gutter) 0;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--c-border);
}
.footer-cols dl { }
.footer-cols dt {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1rem;
}
.footer-cols dd { margin-bottom: 0.5rem; }
.footer-cols dd a {
  font-size: 14px;
  color: var(--c-ink-dim);
  transition: color var(--transition);
}
.footer-cols dd a:hover { color: var(--c-ink); }
.footer-bar {
  padding: 1.2rem 0;
  text-align: center;
}
.footer-bar p {
  font-size: 13px;
  color: var(--c-ink-muted);
}
.footer-bar a { color: var(--c-ink-dim); }
.footer-bar a:hover { color: var(--c-accent); }

/* ===== 页英雄特定颜色标记 ===== */
.page-hero--ranking .hero__bg-text { color: rgba(233,69,96,0.05); }
.page-hero--compare .hero__bg-text { color: rgba(233,69,96,0.07); font-size: clamp(8rem, 22vw, 22rem); }
.page-hero--review .hero__bg-text { font-size: clamp(5rem, 14vw, 14rem); }

/* ===== 滚动触发动画（Intersection Observer 配合）===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ===== 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;
  }
  .hero__bg-text { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .content-layout {
    grid-template-columns: 1fr;
  }
  .content-aside {
    position: static;
    order: -1;
  }
  .home-rankings {
    grid-template-columns: 1fr;
  }
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-nav p a {
    padding: 14px 12px;
    font-size: 12px;
  }
  .hero--home,
  .page-hero {
    min-height: 60vh;
    padding: 3rem 0;
  }
  .hero__content--right { text-align: left; margin-left: 0; }
  .hero__sub { margin-left: 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .stats-row { gap: 1rem; }
  .stat-item { min-width: 90px; padding: 1rem 1.2rem; }
  .rank-desc { display: none; }
  .content-layout { gap: 2rem; padding: 2.5rem 0; }
  .home-content { padding: 2.5rem 0 1.5rem; }
  .home-cards,
  .home-reviews,
  .home-rankings { padding: 2rem 0; }
}

@media (max-width: 400px) {
  .footer-cols { grid-template-columns: 1fr; }
  :root { --gutter: 1rem; }
}
