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

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --c-white: #ffffff;
  --c-light: #f5f5f5;
  --c-ink: #1f1f1f;
  --c-ink-60: rgba(31, 31, 31, 0.6);
  --c-ink-10: rgba(31, 31, 31, 0.08);
  --c-ink-05: rgba(31, 31, 31, 0.04);
  --c-border: rgba(31, 31, 31, 0.1);
  --c-shadow: rgba(31, 31, 31, 0.08);
  --c-shadow-md: rgba(31, 31, 31, 0.12);
  --radius-card: 28px;
  --radius-sm: 16px;
  --radius-btn: 50px;
  --nav-h: 64px;
  --font: 'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;
  --max-w: 1200px;
  --gap: 16px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--c-light);
  color: var(--c-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--c-ink);
  text-decoration: none;
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ===== 导航 ===== */

.site-header {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--c-white);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -2px 12px var(--c-shadow);
}

.main-nav {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  gap: 12px;
}

.main-nav > p {
  display: flex;
  align-items: center;
}

.nav-brand {
  flex-shrink: 0;
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
}

.nav-logo-link {
  display: flex;
  align-items: center;
}

.nav-brand-text {
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-ink);
  white-space: nowrap;
}

.nav-links {
  flex: 1;
  gap: 4px;
  overflow: hidden;
}

.nav-links a {
  display: none;
  font-size: 0.875rem;
  color: var(--c-ink-60);
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
  min-height: 40px;
  align-items: center;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: var(--c-light);
  color: var(--c-ink);
  opacity: 1;
}

.nav-cta {
  flex-shrink: 0;
  margin-left: auto;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  background: var(--c-ink);
  color: var(--c-white);
  border-radius: var(--radius-btn);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s, opacity 0.2s;
  cursor: pointer;
  border: none;
}

.btn-cta:hover {
  opacity: 0.85;
  transform: scale(1.02);
  color: var(--c-white);
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: var(--c-light);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 8px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform 0.2s;
}

/* ===== 遮罩导航 ===== */

.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--c-white);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.overlay-inner {
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  height: 100%;
  overflow-y: auto;
}

.overlay-close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  background: var(--c-light);
  border: none;
  border-radius: 12px;
  font-size: 1.25rem;
  cursor: pointer;
  margin-bottom: 32px;
  color: var(--c-ink);
}

.overlay-inner nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.overlay-link {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 16px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-ink);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.overlay-link:hover {
  background: var(--c-light);
  opacity: 1;
}

/* ===== 主内容布局 ===== */

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 20px calc(var(--nav-h) + 24px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* ===== Hero 区（首页） ===== */

.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  gap: 0;
  margin: 0 -20px;
  padding: 0;
  background: var(--c-white);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.hero-media {
  position: relative;
  overflow: hidden;
  background: var(--c-light);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  min-height: 60vh;
  background: linear-gradient(135deg, var(--c-light) 0%, var(--c-border) 100%);
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  padding: 48px 40px;
  background: var(--c-white);
}

.hero-text h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--c-ink);
}

.hero-desc {
  font-size: 1.0625rem;
  color: var(--c-ink-60);
  margin-bottom: 32px;
  max-width: 360px;
}

.btn-hero {
  font-size: 1rem;
  padding: 14px 28px;
}

/* ===== Bento 网格 ===== */

.bento-section {
  padding: 40px 0;
}

.bento-section h2,
.ranking-more-section h2,
.review-nav-section h2,
.compare-related-section h2,
.faq-links-section h2,
.about-stats-section h2,
.privacy-links-section h2,
.page-nav-section h2,
.quick-nav-section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--c-ink);
}

.subtitle {
  font-size: 0.9375rem;
  color: var(--c-ink-60);
  margin-bottom: 24px;
  line-height: 1.5;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: var(--gap);
}

.bento-card {
  background: var(--c-white);
  border-radius: var(--radius-card);
  box-shadow: 0 4px 6px var(--c-shadow);
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px var(--c-shadow-md);
}

.bento-wide {
  grid-column: span 2;
}

.bento-tall {
  grid-row: span 2;
}

.bento-normal {
  grid-column: span 1;
}

.card-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  flex-shrink: 0;
}

.card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}

.card-body h3 a {
  color: var(--c-ink);
}

.card-body p {
  font-size: 0.8125rem;
  color: var(--c-ink-60);
  line-height: 1.5;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== 快速链接 ===== */

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-btn);
  font-size: 0.875rem;
  color: var(--c-ink);
  transition: background 0.2s, transform 0.2s;
}

.quick-link:hover {
  background: var(--c-ink);
  color: var(--c-white);
  opacity: 1;
  transform: translateY(-1px);
}

/* ===== 正文内容 ===== */

.prose-content {
  background: var(--c-white);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: 0 2px 8px var(--c-shadow);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-ink);
}

.prose-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--c-ink);
}

.prose-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--c-ink);
}

.prose-content p {
  margin-bottom: 14px;
}

.prose-content ul,
.prose-content ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

.prose-content ul {
  list-style: disc;
}

.prose-content ol {
  list-style: decimal;
}

.prose-content li {
  margin-bottom: 6px;
  line-height: 1.65;
}

.prose-content a {
  color: var(--c-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-content strong {
  font-weight: 700;
}

.prose-content blockquote {
  border-left: 3px solid var(--c-ink);
  padding-left: 16px;
  color: var(--c-ink-60);
  margin: 16px 0;
}

.prose-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9375rem;
}

.prose-content th,
.prose-content td {
  border: 1px solid var(--c-border);
  padding: 10px 14px;
  text-align: left;
}

.prose-content th {
  background: var(--c-light);
  font-weight: 700;
}

/* ===== 相关列表 ===== */

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap);
}

.related-card {
  background: var(--c-white);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  box-shadow: 0 2px 8px var(--c-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--c-shadow-md);
}

.related-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.related-card h3 a {
  color: var(--c-ink);
}

.related-card p {
  font-size: 0.875rem;
  color: var(--c-ink-60);
  line-height: 1.55;
}

/* ===== 侧边栏 ===== */

.site-aside {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.aside-card {
  background: var(--c-white);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  box-shadow: 0 2px 6px var(--c-shadow);
}

.aside-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--c-ink);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
}

.aside-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  font-size: 0.875rem;
  color: var(--c-ink-60);
  border-bottom: 1px solid var(--c-ink-05);
  transition: color 0.2s, padding-left 0.2s;
}

.aside-link:last-child {
  border-bottom: none;
}

.aside-link:hover {
  color: var(--c-ink);
  padding-left: 6px;
  opacity: 1;
}

.aside-cta-card {
  background: var(--c-ink);
  color: var(--c-white);
  text-align: center;
}

.aside-cta-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
}

.aside-cta-card .btn-cta {
  background: var(--c-white);
  color: var(--c-ink);
  width: 100%;
  justify-content: center;
}

.aside-cta-card .btn-cta:hover {
  opacity: 0.9;
}

/* ===== 徽标 ===== */

.review-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  background: var(--c-light);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-btn);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-ink-60);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

/* ===== 日期 ===== */

.pub-date,
.mod-date {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--c-ink-60);
  margin-right: 12px;
  margin-bottom: 10px;
}

/* ===== 页面标题区（通用） ===== */

.review-header-section,
.ranking-header-section,
.compare-header-section,
.faq-header-section,
.about-header-section,
.privacy-header-section,
.page-header-section {
  background: var(--c-white);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: 0 2px 8px var(--c-shadow);
  margin-bottom: 0;
}

.review-header-section h1,
.ranking-header-section h1,
.compare-header-section h1,
.faq-header-section h1,
.about-header-section h1,
.privacy-header-section h1,
.page-header-section h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--c-ink);
}

.review-lead,
.ranking-lead,
.compare-lead,
.faq-lead,
.about-lead,
.privacy-lead,
.page-lead {
  font-size: 1rem;
  color: var(--c-ink-60);
  margin-bottom: 0;
}

/* ===== 评测页 ===== */

.review-hero-wrap {
  margin-top: 20px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.review-hero-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}

/* ===== 对比页 ===== */

.compare-columns {
  width: 100%;
}

/* ===== 关于页统计 ===== */

.stats-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.stat-card {
  text-align: center;
  padding: 28px 16px;
}

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 6px;
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--c-ink-60);
}

/* ===== section 间距 ===== */

article > section + section {
  margin-top: 24px;
}

.content-section,
.quick-nav-section,
.bento-section,
.review-body-section,
.review-nav-section,
.ranking-body-section,
.ranking-more-section,
.compare-body-section,
.compare-related-section,
.faq-body-section,
.faq-links-section,
.about-body-section,
.about-stats-section,
.privacy-body-section,
.privacy-links-section,
.page-body-section,
.page-nav-section {
  margin-top: 0;
}

/* ===== 页脚 ===== */

.site-footer {
  background: var(--c-white);
  border-top: 1px solid var(--c-border);
  padding-bottom: calc(var(--nav-h) + 8px);
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 12px;
  font-size: 0.875rem;
  color: var(--c-ink-60);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.site-footer nav a:hover {
  background: var(--c-light);
  color: var(--c-ink);
  opacity: 1;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--c-ink-60);
  white-space: nowrap;
}

/* ===== 动效 ===== */

@media (prefers-reduced-motion: no-preference) {
  .bento-card {
    animation: fadeUp 0.4s ease both;
  }

  .bento-grid li:nth-child(1) .bento-card { animation-delay: 0.05s; }
  .bento-grid li:nth-child(2) .bento-card { animation-delay: 0.1s; }
  .bento-grid li:nth-child(3) .bento-card { animation-delay: 0.15s; }
  .bento-grid li:nth-child(4) .bento-card { animation-delay: 0.2s; }
  .bento-grid li:nth-child(5) .bento-card { animation-delay: 0.25s; }
  .bento-grid li:nth-child(6) .bento-card { animation-delay: 0.3s; }

  .related-card {
    animation: fadeUp 0.4s ease both;
  }

  .related-list li:nth-child(1) .related-card { animation-delay: 0.05s; }
  .related-list li:nth-child(2) .related-card { animation-delay: 0.1s; }
  .related-list li:nth-child(3) .related-card { animation-delay: 0.15s; }
  .related-list li:nth-child(4) .related-card { animation-delay: 0.2s; }

  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .prose-content {
    animation: fadeUp 0.35s ease both;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== 响应式 ===== */

@media (min-width: 900px) {
  main {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }

  main > article {
    min-width: 0;
  }

  .site-aside {
    position: sticky;
    top: 24px;
  }

  .nav-links a {
    display: inline-flex;
  }
}

@media (max-width: 1100px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-wide {
    grid-column: span 2;
  }

  .bento-tall {
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    margin: 0 -20px;
  }

  .hero-media {
    min-height: 240px;
  }

  .hero-text {
    padding: 32px 24px;
    align-items: flex-start;
    text-align: left;
  }

  .hero-desc {
    max-width: 100%;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .bento-wide {
    grid-column: span 2;
  }

  .bento-tall {
    grid-row: span 1;
  }

  .stats-bento {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-brand {
    font-size: 1.5rem;
  }

  .footer-copy {
    white-space: normal;
  }

  .related-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .bento-wide,
  .bento-tall,
  .bento-normal {
    grid-column: span 1;
    grid-row: span 1;
  }

  .stats-bento {
    grid-template-columns: 1fr;
  }

  .prose-content {
    padding: 20px;
  }

  .review-header-section,
  .ranking-header-section,
  .compare-header-section,
  .faq-header-section,
  .about-header-section,
  .privacy-header-section,
  .page-header-section {
    padding: 20px;
  }

  main {
    padding: 16px 16px calc(var(--nav-h) + 16px);
  }
}
