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

/* ── 重置 & 基础 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Epilogue', system-ui, -apple-system, sans-serif;
  background: #f5f5f5;
  color: #1f1f1f;
  min-height: 100vh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── 色彩变量 ── */
:root {
  --c-white: #ffffff;
  --c-surface: #f5f5f5;
  --c-ink: #1f1f1f;
  --c-ink-60: rgba(31,31,31,0.6);
  --c-ink-12: rgba(31,31,31,0.12);
  --c-ink-06: rgba(31,31,31,0.06);
  --c-accent: #1f1f1f;
  --r: 18px;
  --r-lg: 24px;
  --gap: 16px;
  --header-h: 64px;
}

/* ── 排版 ── */
h1, h2, h3 { font-family: 'Anton', sans-serif; line-height: 1.15; letter-spacing: 0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

small.section-eyebrow,
small.card-eyebrow,
small.hero-eyebrow {
  display: inline-block;
  font-family: 'Epilogue', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink-60);
  margin-bottom: 0.5rem;
}

/* ── 药丸导航按钮 ── */
.pill-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid var(--c-ink);
  font-family: 'Epilogue', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-ink);
  background: transparent;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
  min-height: 40px;
}
.pill-btn:hover, .pill-btn.active {
  background: var(--c-ink);
  color: var(--c-white);
}
.pill-btn--cta {
  background: var(--c-ink);
  color: var(--c-white);
}
.pill-btn--cta:hover {
  background: #3a3a3a;
}

/* ── 顶部导航 ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
  border-bottom: 2px solid var(--c-ink);
  height: var(--header-h);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 40px;
}
.logo-mark { width: 32px; height: 32px; object-fit: contain; }
.brand-name {
  font-family: 'Anton', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.main-nav {
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav p {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  white-space: nowrap;
}
.main-nav p a {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: 'Epilogue', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-ink-60);
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  min-height: 40px;
}
.main-nav p a:hover {
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.header-cta { flex-shrink: 0; }

/* ── Hero：双图错位 ── */
.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  position: relative;
  background: var(--c-ink);
  overflow: hidden;
}
.hero-collage {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: stretch;
}
.hero-img-placeholder {
  background: var(--c-ink-60);
  flex: 1;
}
.hero-img-a {
  position: absolute;
  inset: 0 30% 10% 0;
  object-fit: cover;
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  z-index: 1;
  width: auto;
  height: 100%;
}
.hero-img-b {
  position: absolute;
  inset: 15% 0 0 20%;
  object-fit: cover;
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  z-index: 2;
  width: auto;
  height: 85%;
}
img.hero-img { width: 100%; height: 100%; object-fit: cover; }

.hero-badge {
  position: absolute;
  z-index: 10;
  font-family: 'Epilogue', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid var(--c-white);
  color: var(--c-white);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
}
.badge-a { top: 18%; left: 5%; }
.badge-b { bottom: 22%; right: 5%; }

.hero-content {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 48px 80px 40px;
  color: var(--c-white);
  position: relative;
  z-index: 5;
}
.hero-eyebrow { color: rgba(255,255,255,0.65); }
.hero-h1 { color: var(--c-white); margin-bottom: 1rem; }
.hero-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 420px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .pill-btn {
  border-color: var(--c-white);
  color: var(--c-white);
}
.hero-actions .pill-btn:hover {
  background: var(--c-white);
  color: var(--c-ink);
}
.hero-actions .pill-btn--cta {
  background: var(--c-white);
  color: var(--c-ink);
}
.hero-actions .pill-btn--cta:hover {
  background: #e0e0e0;
}

/* ── Bento 区域 ── */
.bento-section {
  max-width: 1280px;
  margin: 64px auto;
  padding: 0 24px;
}
.section-header {
  margin-bottom: 32px;
}
.section-header h2 { margin-top: 4px; }

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

.bento-card {
  background: var(--c-white);
  border: 2px solid var(--c-ink);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
}
.bento-card:hover { transform: scale(1.02); }
.bento-card.card-wide { grid-column: span 2; }
.bento-card.card-tall { grid-row: span 2; }
.bento-card--alt { background: var(--c-surface); }
.bento-card--dark {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-white);
}
.bento-card--dark a { color: var(--c-white); }
.bento-card--dark .card-eyebrow { color: rgba(255,255,255,0.6); }
.bento-card--dark .card-cta {
  border-color: var(--c-white);
  color: var(--c-white);
}
.bento-card--dark .card-cta:hover {
  background: var(--c-white);
  color: var(--c-ink);
}

.card-inner {
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-inner h3 { font-size: 1rem; flex: 1; }
.card-inner h3 a { color: inherit; }
.card-desc {
  font-size: 0.82rem;
  color: var(--c-ink-60);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bento-card--dark .card-desc { color: rgba(255,255,255,0.65); }
.card-date {
  font-size: 0.75rem;
  color: var(--c-ink-60);
  display: block;
}
.card-cta {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid var(--c-ink);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-ink);
  align-self: flex-start;
  transition: background 0.15s, color 0.15s;
  min-height: 32px;
}
.card-cta:hover {
  background: var(--c-ink);
  color: var(--c-white);
}
.empty-tip { color: var(--c-ink-60); font-style: italic; }

/* ── 主体布局（内页正文容器） ── */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

main {
  padding: 48px 0;
}

/* 正文 + 侧边栏布局 */
.review-body,
.compare-body,
.ranking-body,
.faq-body,
.about-body,
.privacy-body,
.default-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* 结构抽签：main > section.wrap > article > div */
.review-body > div,
.compare-body > div,
.ranking-body > div,
.faq-body > div,
.about-body > div,
.privacy-body > div,
.default-body > div {
  min-width: 0;
}

/* 内页文章内容排版 */
.review-article,
.compare-article,
.ranking-article,
.faq-article,
.about-article,
.privacy-article,
.default-article,
.page-content {
  font-size: 1rem;
  line-height: 1.75;
}
.review-article h2,
.compare-article h2,
.ranking-article h2,
.faq-article h2,
.about-article h2,
.privacy-article h2,
.default-article h2,
.page-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.5rem;
}
.review-article h3,
.compare-article h3,
.ranking-article h3,
.faq-article h3,
.about-article h3,
.privacy-article h3,
.default-article h3,
.page-content h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.15rem;
}
.review-article p,
.compare-article p,
.ranking-article p,
.faq-article p,
.about-article p,
.privacy-article p,
.default-article p,
.page-content p {
  margin-bottom: 1rem;
  color: var(--c-ink);
}
.review-article ul,
.compare-article ul,
.ranking-article ul,
.faq-article ul,
.about-article ul,
.privacy-article ul,
.default-article ul,
.page-content ul {
  list-style: disc;
  padding-left: 1.4em;
  margin-bottom: 1rem;
}
.review-article ol,
.compare-article ol,
.ranking-article ol,
.faq-article ol,
.about-article ol,
.privacy-article ol,
.default-article ol,
.page-content ol {
  list-style: decimal;
  padding-left: 1.4em;
  margin-bottom: 1rem;
}

/* 主页内容区 */
.content-section > div { max-width: 800px; }

/* ── 内页 Hero ── */
.inner-hero {
  background: var(--c-ink);
  color: var(--c-white);
  padding: 80px 24px 60px;
}
.inner-hero-content {
  max-width: 900px;
  margin: 0 auto;
}
.inner-hero-content h1 { color: var(--c-white); margin: 4px 0 12px; }
.review-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 620px;
  margin-bottom: 12px;
}
.article-date {
  display: inline-block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-right: 16px;
}

.review-hero {
  background: var(--c-ink);
  color: var(--c-white);
  display: grid;
  grid-template-columns: 1fr;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.review-hero.has-img {
  grid-template-columns: 400px 1fr;
}
.review-hero-media {
  position: relative;
  overflow: hidden;
}
.review-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-hero-content {
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.review-hero-content h1 { color: var(--c-white); margin: 4px 0 12px; }

/* ── 侧边栏 ── */
.review-aside {
  background: var(--c-white);
  border: 2px solid var(--c-ink);
  border-radius: var(--r);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.aside-title {
  font-size: 1.1rem;
  margin: 4px 0 16px;
}
.aside-links { display: flex; flex-direction: column; gap: 8px; }
.aside-links li a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-ink);
  border: 1.5px solid var(--c-ink-12);
  transition: background 0.15s, border-color 0.15s;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.aside-links li a:hover {
  background: var(--c-surface);
  border-color: var(--c-ink);
}
.aside-nav-block { margin-top: 24px; }
.aside-nav-block h3 { font-size: 0.95rem; margin: 4px 0 12px; }
.aside-cta-block { margin-top: 24px; }
.aside-cta-block h3 { font-size: 0.95rem; margin: 4px 0; }
.aside-cta-block h3 a {
  color: var(--c-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── 首页侧边栏 ── */
.home-aside {
  max-width: 1280px;
  margin: 0 auto 64px;
  padding: 0 24px;
}
.home-aside .aside-inner {
  background: var(--c-white);
  border: 2px solid var(--c-ink);
  border-radius: var(--r);
  padding: 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px 48px;
  align-items: start;
}
.home-aside .aside-title { margin: 4px 0 16px; }
.home-aside .aside-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

/* ── 表格区（compare/ranking） ── */
.compare-table-section,
.ranking-list-section {
  background: var(--c-white);
  border-top: 2px solid var(--c-ink);
  padding: 48px 0;
  margin-top: 48px;
}
.compare-table-section .section-eyebrow,
.ranking-list-section .section-eyebrow { display: block; margin-bottom: 4px; }
.compare-table-section h2,
.ranking-list-section h2 { margin-bottom: 24px; }

.compare-table,
.ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.compare-table tbody tr,
.ranking-table tbody tr {
  border-bottom: 1.5px solid var(--c-ink-12);
  transition: background 0.15s;
}
.compare-table tbody tr:hover,
.ranking-table tbody tr:hover { background: var(--c-surface); }
.compare-table td,
.ranking-table td {
  padding: 14px 16px;
  vertical-align: middle;
}
.compare-table td:first-child a,
.ranking-table td:nth-child(2) a {
  font-weight: 600;
  color: var(--c-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.td-desc {
  color: var(--c-ink-60);
  font-size: 0.82rem;
  max-width: 400px;
}
.td-date { color: var(--c-ink-60); font-size: 0.8rem; white-space: nowrap; }
.td-rank {
  font-family: 'Anton', sans-serif;
  font-size: 1rem;
  white-space: nowrap;
  width: 80px;
}

/* ── 页脚 ── */
.site-footer {
  background: var(--c-ink);
  color: var(--c-white);
  border-top: 2px solid var(--c-ink);
  margin-top: 64px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.footer-address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}
.footer-address strong {
  font-family: 'Anton', sans-serif;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 6px;
  color: var(--c-white);
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.15s;
  display: inline-block;
  min-height: 28px;
  padding: 2px 0;
}
.footer-links ul li a:hover { color: var(--c-white); }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 20px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.footer-bar p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

/* ── 动效：stagger list ── */
@media (prefers-reduced-motion: no-preference) {
  .bento-card {
    animation: fadeUp 0.4s both;
  }
  .bento-card:nth-child(1) { animation-delay: 0s; }
  .bento-card:nth-child(2) { animation-delay: 0.05s; }
  .bento-card:nth-child(3) { animation-delay: 0.10s; }
  .bento-card:nth-child(4) { animation-delay: 0.15s; }
  .bento-card:nth-child(5) { animation-delay: 0.20s; }
  .bento-card:nth-child(6) { animation-delay: 0.25s; }
  .bento-card:nth-child(7) { animation-delay: 0.30s; }
  .bento-card:nth-child(8) { animation-delay: 0.35s; }

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

  .aside-links li {
    animation: fadeUp 0.3s both;
  }
  .aside-links li:nth-child(1) { animation-delay: 0.05s; }
  .aside-links li:nth-child(2) { animation-delay: 0.10s; }
  .aside-links li:nth-child(3) { animation-delay: 0.15s; }
  .aside-links li:nth-child(4) { animation-delay: 0.20s; }
  .aside-links li:nth-child(5) { animation-delay: 0.25s; }
}

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

/* ── 响应式 ── */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card.card-wide { grid-column: span 2; }
  .bento-card.card-tall { grid-row: span 1; }

  .hero-section {
    grid-template-columns: 1fr;
    grid-template-rows: 50vh auto;
    min-height: auto;
  }
  .hero-collage {
    grid-column: 1;
    grid-row: 1;
    min-height: 50vh;
  }
  .hero-content {
    grid-column: 1;
    grid-row: 2;
    padding: 48px 24px;
    background: var(--c-ink);
    align-items: flex-start;
  }

  .review-body,
  .compare-body,
  .ranking-body,
  .faq-body,
  .about-body,
  .privacy-body,
  .default-body {
    grid-template-columns: 1fr;
  }
  .review-aside {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .home-aside .aside-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }

  .header-inner { padding: 0 16px; gap: 10px; }
  .brand-name { font-size: 0.85rem; }
  .main-nav p { gap: 6px; }
  .main-nav p a { padding: 8px 12px; font-size: 0.75rem; }
  .header-cta { display: none; }

  .hero-section {
    min-height: 100vh;
    grid-template-rows: 45vh auto;
  }
  .hero-content { padding: 40px 20px; }
  .hero-h1 { font-size: 2rem; }
  .hero-lead { font-size: 0.95rem; }

  .inner-hero { padding: 60px 20px 40px; }
  .review-hero-content { padding: 40px 24px; }
  .review-hero.has-img { grid-template-columns: 1fr; }
  .review-hero-media { height: 220px; }

  .bento-section { margin: 40px auto; padding: 0 16px; }
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .bento-card.card-wide,
  .bento-card.card-tall { grid-column: span 1; grid-row: span 1; }
  .card-inner { padding: 20px; }

  .wrap { padding: 0 16px; }
  main { padding: 32px 0; }

  .compare-table-section,
  .ranking-list-section { padding: 32px 0; }
  .compare-table, .ranking-table { font-size: 0.82rem; }
  .compare-table td, .ranking-table td { padding: 10px 10px; }
  .td-desc { display: none; }

  .home-aside { padding: 0 16px; margin-bottom: 40px; }
  .home-aside .aside-links { grid-template-columns: 1fr; }

  .site-footer { margin-top: 40px; }
  .footer-inner { padding: 32px 16px 24px; }
  .footer-bar { padding: 16px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.3rem; }
  .hero-h1 { font-size: 1.75rem; }
  .pill-btn { padding: 10px 14px; font-size: 0.78rem; }
}
