@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

/* =====================
   CSS 自定义属性
   ===================== */
:root {
  --paper: #fdfbf7;
  --paper-alt: #f5f5f5;
  --ink: #1a1a1a;
  --ink-muted: #4a4a4a;
  --ink-faint: #8a8a8a;
  --rule: #d8d4cc;
  --rule-dark: #b0aba0;
  --accent: #1a1a1a;
  --accent-hover: #3a3a3a;
  --radius-card: 18px;
  --font-serif: 'Cormorant Garamond', 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-sans: system-ui, -apple-system, sans-serif;
  --max-content: 72rem;
  --header-h: 64px;
}

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

html {
  font-size: 17px;
  line-height: 1.65;
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  font-family: var(--font-serif);
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  position: relative;
}

/* 纸质噪点纹理 overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: none;
}
a:hover {
  color: var(--ink-muted);
}

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

ol, ul {
  list-style: none;
}

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0.75rem 0 1.25rem;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* =====================
   布局包装
   ===================== */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =====================
   顶部导航
   ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand-mark {
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.site-logo-mark img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.site-logo-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.primary-nav {
  flex: 1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.primary-nav::-webkit-scrollbar { display: none; }

.primary-nav ol {
  display: flex;
  gap: 0;
  align-items: center;
  list-style: none;
}

.primary-nav ol li a {
  display: block;
  padding: 0.6rem 0.85rem;
  font-size: 0.88rem;
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--ink-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  min-height: 40px;
  line-height: 1.4;
  display: flex;
  align-items: center;
}
.primary-nav ol li a:hover,
.primary-nav ol li a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.header-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--rule-dark);
  background: var(--paper-alt);
  flex-shrink: 0;
}

.header-search input {
  border: none;
  background: transparent;
  padding: 0.4rem 0.75rem;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  color: var(--ink);
  outline: none;
  width: 140px;
  min-height: 40px;
}
.header-search input::placeholder {
  color: var(--ink-faint);
}

.header-search button {
  border: none;
  background: var(--ink);
  color: var(--paper);
  padding: 0 0.75rem;
  cursor: pointer;
  font-size: 1rem;
  min-height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-search button:hover {
  background: var(--ink-muted);
}

/* =====================
   wrap 容器
   ===================== */
.wrap {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 1.5rem;
  flex: 1;
}

main {
  flex: 1;
}

/* =====================
   Hero — 首页
   ===================== */
.hero-section {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 3rem;
}

.hero-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 45vh;
  position: relative;
  overflow: hidden;
}

/* 格纹底纹 */
.hero-article::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.45;
  pointer-events: none;
}

.hero-media {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--paper-alt);
  border-right: 1px solid var(--rule);
}

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

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  padding: 3rem 2.5rem;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-serif);
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.hero-h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  color: var(--ink);
}

.hero-lead {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 30ch;
  margin-bottom: 1.75rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.65rem 1.75rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 1px solid var(--ink);
  min-height: 44px;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
}
.btn-primary:hover {
  background: var(--ink-muted);
  color: var(--paper);
  border-color: var(--ink-muted);
}

/* =====================
   内页 Hero
   ===================== */
.inner-hero,
.review-hero-section,
.compare-header-section,
.about-header-section,
.inner-page-header {
  border-bottom: 1px solid var(--rule);
  padding: 2.5rem 0 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.inner-hero::before,
.review-hero-section::before,
.compare-header-section::before,
.about-header-section::before,
.inner-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.3;
  pointer-events: none;
}

.inner-hero-article,
.review-hero-article,
.compare-header-article,
.about-header-article,
.inner-page-header-article {
  position: relative;
  z-index: 1;
}

.review-hero-article {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: center;
}

.review-hero-img-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
}

.review-hero-meta {
  display: flex;
  flex-direction: column;
}

.inner-h1,
.review-h1,
.compare-h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.inner-lead,
.review-lead,
.compare-lead {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 56ch;
  margin-bottom: 0.75rem;
}

.review-eyebrow,
.compare-eyebrow,
.page-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--font-serif);
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
  display: block;
}

/* =====================
   Breadcrumb
   ===================== */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}
.breadcrumb a {
  color: var(--ink-faint);
  text-decoration: underline;
}
.breadcrumb a:hover {
  color: var(--ink);
}

/* =====================
   日期标签
   ===================== */
.page-date {
  font-size: 0.8rem;
  color: var(--ink-faint);
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
  margin-right: 1rem;
  display: inline-block;
}
.page-dates {
  margin-top: 0.5rem;
}

/* =====================
   内容区：左侧侧边栏 + 正文
   ===================== */
.content-section {
  margin-bottom: 4rem;
}

.content-article {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}

/* aside 在左侧 */
.content-aside {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  border-right: 1px solid var(--rule);
  padding-right: 2rem;
}

.aside-heading {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}

.aside-heading--mt {
  margin-top: 2rem;
}

.aside-links {
  list-style: none;
}
.aside-links li {
  border-bottom: 1px solid var(--rule);
}
.aside-links li a {
  display: block;
  padding: 0.55rem 0;
  font-size: 0.88rem;
  font-family: var(--font-serif);
  color: var(--ink-muted);
  text-decoration: none;
  line-height: 1.5;
}
.aside-links li a:hover {
  color: var(--ink);
}

.content-main {
  min-width: 0;
}

/* =====================
   正文内容
   ===================== */
.page-content {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
}

.page-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.5rem 0 0.5rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.page-content h2 + hr {
  margin-bottom: 1.25rem;
}

.page-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
}

.page-content h3 + hr {
  margin-bottom: 1rem;
}

.page-content p {
  margin-bottom: 1.2rem;
}

.page-content ul,
.page-content ol {
  margin: 0 0 1.2rem 1.5rem;
  list-style: disc;
}
.page-content ol {
  list-style: decimal;
}
.page-content li {
  margin-bottom: 0.4rem;
}

.page-content blockquote {
  border-left: 3px solid var(--rule-dark);
  padding: 0.5rem 1rem 0.5rem 1.25rem;
  color: var(--ink-muted);
  font-style: italic;
  margin: 1.5rem 0;
  background: var(--paper-alt);
}

.page-content table {
  font-size: 0.92rem;
  margin: 1.5rem 0;
  border: 1px solid var(--rule);
}
.page-content th,
.page-content td {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--rule);
  text-align: left;
}
.page-content th {
  background: var(--paper-alt);
  font-weight: 700;
}

.page-content a {
  color: var(--ink);
  text-decoration: underline;
}

/* =====================
   章节标题
   ===================== */
.section-heading {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.3rem;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

/* =====================
   卡片网格
   ===================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  display: flex;
  flex-direction: column;
}

.card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--rule);
}

.card-body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.card-title a {
  text-decoration: none;
  color: var(--ink);
}
.card-title a:hover {
  text-decoration: underline;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 0.75rem;
}

.card-date {
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
  margin-top: auto;
}

/* =====================
   榜单表格
   ===================== */
.ranking-table-wrap {
  margin-top: 2rem;
}

.ranking-table {
  width: 100%;
  border: 1px solid var(--rule);
  font-size: 0.92rem;
}

.ranking-table thead th {
  background: var(--paper-alt);
  padding: 0.65rem 1rem;
  font-weight: 700;
  font-family: var(--font-serif);
  border-bottom: 2px solid var(--rule-dark);
  text-align: left;
}

.ranking-table tbody tr {
  border-bottom: 1px solid var(--rule);
}
.ranking-table tbody tr:hover {
  background: var(--paper-alt);
}

.ranking-table td {
  padding: 0.65rem 1rem;
  vertical-align: top;
}

.rank-num {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink-muted);
  width: 3rem;
  text-align: center;
}

.rank-title a {
  color: var(--ink);
  font-weight: 600;
}

.rank-desc {
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.rank-date {
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* =====================
   FAQ 样式
   ===================== */
.faq-content details {
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-content details summary {
  padding: 0.85rem 1.1rem;
  font-weight: 600;
  font-family: var(--font-serif);
  cursor: pointer;
  background: var(--paper-alt);
  list-style: none;
  user-select: none;
}
.faq-content details summary::-webkit-details-marker { display: none; }
.faq-content details summary::before {
  content: '＋ ';
  font-weight: 700;
}
.faq-content details[open] summary::before {
  content: '－ ';
}

.faq-content details > *:not(summary) {
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--rule);
}

/* =====================
   对比页
   ===================== */
.compare-content table {
  font-size: 0.92rem;
}
.compare-content td,
.compare-content th {
  padding: 0.65rem 1rem;
  border: 1px solid var(--rule);
}
.compare-content th {
  background: var(--paper-alt);
  font-weight: 700;
}

/* =====================
   页脚
   ===================== */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--ink);
  color: var(--paper);
  margin-top: auto;
}

.footer-brand-block {
  padding: 2.5rem 1.5rem 0;
  max-width: var(--max-content);
  margin: 0 auto;
  border-bottom: 1px solid rgba(253,251,247,0.15);
  padding-bottom: 1.5rem;
  overflow: hidden;
}

.footer-brand-super {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--paper);
  opacity: 0.12;
  display: block;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.footer-cols {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 2rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.footer-col-heading {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253,251,247,0.55);
  margin-bottom: 0.5rem;
}

.footer-col hr {
  border-color: rgba(253,251,247,0.15);
  margin-bottom: 1rem;
}

.footer-about {
  font-size: 0.88rem;
  color: rgba(253,251,247,0.65);
  line-height: 1.65;
}

.footer-col ul {
  list-style: none;
}
.footer-col ul li a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.88rem;
  color: rgba(253,251,247,0.65);
  text-decoration: none;
  font-family: var(--font-serif);
  border-bottom: 1px solid rgba(253,251,247,0.08);
}
.footer-col ul li a:hover {
  color: var(--paper);
}

.footer-col address {
  font-style: normal;
}
.footer-col address ul li a {
  min-height: 40px;
  display: flex;
  align-items: center;
}

.footer-bar {
  border-top: 1px solid rgba(253,251,247,0.15);
  padding: 1rem 1.5rem;
  max-width: var(--max-content);
  margin: 0 auto;
}
.footer-bar p {
  font-size: 0.8rem;
  color: rgba(253,251,247,0.4);
  font-family: var(--font-serif);
}

/* =====================
   Scroll Reveal 动效
   ===================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal-item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .reveal-item.is-visible {
    opacity: 1;
    transform: none;
  }
  .reveal-list .reveal-item:nth-child(1) { transition-delay: 0.05s; }
  .reveal-list .reveal-item:nth-child(2) { transition-delay: 0.10s; }
  .reveal-list .reveal-item:nth-child(3) { transition-delay: 0.15s; }
  .reveal-list .reveal-item:nth-child(4) { transition-delay: 0.20s; }
  .reveal-list .reveal-item:nth-child(5) { transition-delay: 0.25s; }
  .reveal-list .reveal-item:nth-child(6) { transition-delay: 0.30s; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =====================
   响应式
   ===================== */
@media (max-width: 900px) {
  .content-article {
    grid-template-columns: 1fr;
  }
  .content-aside {
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding-right: 0;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
  }
  .hero-article {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-media {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    min-height: 200px;
  }
  .hero-copy {
    align-items: flex-start;
    text-align: left;
    padding: 2rem 1.5rem;
  }
  .hero-lead {
    max-width: 100%;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 56px;
  }
  .header-inner {
    gap: 0.75rem;
    padding: 0 1rem;
  }
  .primary-nav ol li a {
    padding: 0.5rem 0.6rem;
    font-size: 0.82rem;
  }
  .header-search input {
    width: 90px;
    font-size: 0.82rem;
  }
  .wrap {
    padding: 0 1rem;
  }
  .review-hero-article {
    grid-template-columns: 1fr;
  }
  .review-hero-img-wrap img {
    height: 180px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .footer-cols {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }
  .footer-brand-block {
    padding: 1.5rem 1rem 1rem;
  }
  .footer-bar {
    padding: 0.75rem 1rem;
  }
  .ranking-table {
    font-size: 0.82rem;
  }
  .ranking-table thead th,
  .ranking-table td {
    padding: 0.5rem 0.6rem;
  }
  .rank-desc {
    display: none;
  }
  .inner-h1,
  .review-h1,
  .compare-h1 {
    font-size: 1.4rem;
  }
  .hero-copy {
    padding: 1.5rem 1rem;
  }
}
