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

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

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

body {
  font-family: 'Public Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  background: #fff;
  color: #000;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ===== 顶部公告条 ===== */
.topbar {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.topbar-text {
  display: block;
}

/* ===== 站点 Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 2px solid #000;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Libre Bodoni', serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #000;
}

.logo-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-name {
  white-space: nowrap;
}

/* ===== 汉堡按钮 ===== */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-height: 40px;
  min-width: 40px;
}

.burger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #000;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== 全屏遮罩菜单 ===== */
.fullscreen-nav {
  position: fixed;
  inset: 0;
  background: #000;
  color: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 48px;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.77, 0, 0.175, 1);
}

.fullscreen-nav.is-open {
  transform: translateX(0);
}

.nav-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  min-height: 40px;
  min-width: 40px;
  line-height: 1;
}

.fullnav-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.nav-link {
  display: block;
  font-family: 'Libre Bodoni', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  letter-spacing: -0.02em;
  transition: padding-left 0.2s;
}

.nav-link:hover {
  padding-left: 16px;
  color: #fff;
}

/* ===== Hero (Home) ===== */
.hero {
  position: relative;
  min-height: 45vh;
  background: #000;
  color: #fff;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.hero--ranking,
.hero--review,
.hero--compare {
  min-height: 36vh;
  grid-template-columns: 1fr;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 56px 48px 72px;
  max-width: 700px;
}

.hero-eyebrow {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}

.hero-h1 {
  font-family: 'Libre Bodoni', serif;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: #fff;
}

.hero-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  margin-bottom: 28px;
}

.hero-meta {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-top: 12px;
}

.hero-figure {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 45%;
  overflow: hidden;
  margin: 0;
}

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

/* 斜切底边 */
.hero-slash {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 48px;
  background: #fff;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.btn-primary {
  display: inline-block;
  background: #fff;
  color: #000;
  font-family: 'Public Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 12px 28px;
  text-decoration: none;
  border: 2px solid #fff;
  transition: background 0.2s, color 0.2s;
  min-height: 44px;
}

.btn-primary:hover {
  background: #000;
  color: #fff;
}

/* ===== 页面 Banner（非Hero页面） ===== */
.page-banner {
  background: #000;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-banner::after {
  content: '';
  display: block;
  height: 32px;
  background: #fff;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.page-banner-inner {
  padding: 48px 48px 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.page-banner-h1 {
  font-family: 'Libre Bodoni', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: #fff;
  margin-top: 8px;
}

/* ===== 主内容区 ===== */
.main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.layout-with-aside,
.layout-article,
.layout-compare,
.layout-faq,
.layout-about,
.layout-privacy,
.layout-default {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* content-section 总是占第一列，aside 占第二列 */
.content-section {
  min-width: 0;
}

.sidebar-right {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-block {
  border: 2px solid #000;
  border-bottom: 4px solid #000;
  padding: 20px;
}

.sidebar-title {
  font-family: 'Libre Bodoni', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.sidebar-links li a {
  display: block;
  font-size: 0.88rem;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  font-weight: 500;
}

.sidebar-links li a:hover {
  padding-left: 6px;
}

.sidebar-links li {
  font-size: 0.88rem;
  padding: 4px 0;
  border-bottom: 1px solid #eee;
}

/* ===== 内容分区 ===== */
.content-section--lead,
.content-section--main,
.content-section--article,
.content-section--compare-intro,
.content-section--faq,
.content-section--about,
.content-section--privacy,
.content-section--default {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* ===== Pull Quote ===== */
.content-figure--pullquote {
  border-left: 4px solid #000;
  padding-left: 20px;
  margin: 0;
}

.pull-quote {
  font-family: 'Libre Bodoni', serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: #000;
}

.pull-quote p {
  margin: 0;
}

.fig-caption {
  font-size: 0.78rem;
  color: #555;
  margin-top: 8px;
  font-family: 'Public Sans', sans-serif;
  letter-spacing: 0.04em;
}

/* ===== Inline Aside ===== */
.inline-aside {
  background: #f5f5f5;
  border-left: 4px solid #000;
  padding: 20px 24px;
}

.aside-heading {
  font-family: 'Libre Bodoni', serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

/* ===== 副标题 ===== */
.subtitle,
p.subtitle,
p.subhead,
p.desc,
p.lead {
  font-size: 0.88rem;
  color: #555;
  font-family: 'Public Sans', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 4px;
  margin-bottom: 8px;
}

/* ===== 正文散文 ===== */
.prose {
  font-family: 'Public Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #111;
}

.prose h2 {
  font-family: 'Libre Bodoni', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2em 0 0.5em;
  letter-spacing: -0.02em;
  border-bottom: 2px solid #000;
  padding-bottom: 6px;
}

.prose h3 {
  font-family: 'Libre Bodoni', serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.6em 0 0.4em;
}

.prose p {
  margin: 0 0 1.2em;
}

.prose ul,
.prose ol {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose a {
  color: #000;
  font-weight: 600;
}

.prose blockquote {
  border-left: 4px solid #000;
  padding: 12px 20px;
  font-style: italic;
  font-family: 'Libre Bodoni', serif;
  margin: 1.5em 0;
  background: #f9f9f9;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.92rem;
}

.prose th,
.prose td {
  border: 1px solid #000;
  padding: 10px 14px;
  text-align: left;
}

.prose th {
  background: #000;
  color: #fff;
  font-weight: 600;
}

/* 首字下沉 */
.drop-cap-wrap > p:first-of-type::first-letter,
.prose.drop-cap-wrap > p:first-of-type::first-letter {
  font-family: 'Libre Bodoni', serif;
  font-size: 3.8em;
  font-weight: 700;
  float: left;
  line-height: 0.8;
  margin: 4px 8px 0 0;
  color: #000;
}

/* ===== 章节标题 ===== */
.section-heading {
  font-family: 'Libre Bodoni', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  border-bottom: 3px solid #000;
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.section-figure {
  display: none;
}

/* ===== 卡片网格 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.card-grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.card {
  border: 2px solid #000;
  border-bottom: 5px solid #000;
  background: #fff;
  transition: transform 0.18s;
}

.card:hover {
  transform: translateY(-3px);
}

.card-figure {
  overflow: hidden;
  margin: 0;
  aspect-ratio: 16/9;
}

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

.card-body {
  padding: 16px 20px 20px;
}

.card-date {
  display: block;
  font-size: 0.75rem;
  color: #888;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  font-family: 'Public Sans', sans-serif;
}

.card-title {
  font-family: 'Libre Bodoni', serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.card-title a {
  text-decoration: none;
  color: #000;
}

.card-title a:hover {
  text-decoration: underline;
}

.card-desc {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.6;
}

/* ===== FAQ 专用 ===== */
.faq-prose {
  font-size: 1rem;
}

.faq-aside .sidebar-links li {
  border-bottom: 1px solid #ddd;
}

/* ===== 对比页 ===== */
.compare-dims {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.compare-dims li {
  font-size: 0.9rem;
  padding: 6px 0;
  border-bottom: 1px solid #ddd;
  font-weight: 500;
}

.compare-dims li::before {
  content: '▸ ';
  font-size: 0.75rem;
}

/* ===== About 统计 ===== */
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.about-stats li {
  font-size: 0.9rem;
  padding: 6px 0;
  border-bottom: 1px solid #ddd;
}

.about-stats strong {
  font-weight: 700;
  font-size: 1.05rem;
  margin-right: 6px;
}

/* ===== 内容图片 ===== */
.content-figure--inline {
  margin: 0;
}

.content-figure--inline .inline-img {
  width: 100%;
  height: auto;
  border: 2px solid #000;
}

.content-figure--logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
}

.about-logo {
  max-width: 160px;
  height: auto;
}

/* ===== 日期 ===== */
.pub-date {
  font-size: 0.82rem;
  color: #666;
  font-family: 'Public Sans', sans-serif;
}

.mod-date {
  font-size: 0.82rem;
  color: #888;
  font-family: 'Public Sans', sans-serif;
}

/* ===== 页脚 ===== */
.site-footer {
  background: #000;
  color: #fff;
  margin-top: 64px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 56px 48px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  max-width: 1280px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand-name-footer {
  font-family: 'Libre Bodoni', serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  max-width: 340px;
}

.footer-form-title {
  font-family: 'Libre Bodoni', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.subscribe-form {
  display: flex;
  gap: 0;
  margin-top: 14px;
}

.subscribe-input {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-right: none;
  color: #fff;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.9rem;
  padding: 10px 14px;
  min-height: 44px;
  outline: none;
}

.subscribe-input::placeholder {
  color: rgba(255,255,255,0.4);
}

.subscribe-input:focus {
  border-color: #fff;
}

.subscribe-btn {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
  font-family: 'Public Sans', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 20px;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.2s, color 0.2s;
}

.subscribe-btn:hover {
  background: #ddd;
}

/* 页脚列 */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 40px 48px;
  max-width: 1280px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-cols dl {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dl-label {
  font-family: 'Libre Bodoni', serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-cols dd {
  margin: 0;
}

.footer-cols dd a,
.footer-nav-dl dd a {
  display: block;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 5px 0;
  min-height: 32px;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.15s;
}

.footer-cols dd a:hover,
.footer-nav-dl dd a:hover {
  color: #fff;
}

.footer-nav-dl {
  display: contents;
}

.footer-nav-dl dl {
  display: flex;
  flex-direction: column;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-links-inline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-links-inline a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.footer-links-inline a:hover {
  color: #fff;
}

/* ===== Scroll Reveal 动画 ===== */
@media (prefers-reduced-motion: no-preference) {
  .card,
  .content-section,
  .content-figure--pullquote,
  .inline-aside {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .card.revealed,
  .content-section.revealed,
  .content-figure--pullquote.revealed,
  .inline-aside.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .card:nth-child(2) { transition-delay: 0.08s; }
  .card:nth-child(3) { transition-delay: 0.16s; }
  .card:nth-child(4) { transition-delay: 0.24s; }
  .card:nth-child(5) { transition-delay: 0.32s; }
  .card:nth-child(6) { transition-delay: 0.40s; }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .content-section,
  .content-figure--pullquote,
  .inline-aside {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== 响应式断点 ===== */
@media (max-width: 1024px) {
  .layout-with-aside,
  .layout-article,
  .layout-compare,
  .layout-faq,
  .layout-about,
  .layout-privacy,
  .layout-default {
    grid-template-columns: 1fr;
  }

  .sidebar-right {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar-block {
    flex: 1 1 240px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-figure {
    display: none;
  }

  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
  }

  .hero-content {
    padding: 40px 20px 60px;
  }

  .page-banner-inner {
    padding: 36px 20px 24px;
  }

  .main-content {
    padding: 32px 16px 48px;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    padding: 32px 20px;
    gap: 24px;
  }

  .footer-top {
    padding: 40px 20px 28px;
  }

  .footer-bottom {
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .fullscreen-nav {
    padding: 40px 24px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .subscribe-input {
    border-right: 1px solid rgba(255,255,255,0.3);
    border-bottom: none;
  }

  .subscribe-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 0.95rem;
  }

  .hero-h1 {
    font-size: 1.6rem;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }

  .sidebar-right {
    flex-direction: column;
  }

  .sidebar-block {
    flex: 1 1 100%;
  }
}

/* ===== 工具类 ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
