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

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

:root {
  --green: #00ff80;
  --blue: #0000ff;
  --black: #000000;
  --white: #ffffff;
  --gray-light: #f0f0f0;
  --gray-mid: #cccccc;
  --border: 3px solid var(--black);
  --nav-h: 56px;
  --font: 'Roboto', system-ui, sans-serif;
}

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

body {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  background: var(--white);
  color: var(--black);
  padding-bottom: var(--nav-h);
  min-height: 100vh;
}

a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  transition: none;
}

a:hover {
  background: var(--green);
  color: var(--black);
  text-decoration: none;
  outline: 2px solid var(--black);
}

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

/* ===== 导航：底部固定条 ===== */
.site-header {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--black);
  border-top: 4px solid var(--green);
}

.site-header nav {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  overflow: hidden;
}

.site-header nav > p {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-brand {
  flex-shrink: 0;
  padding: 0 12px;
  border-right: 3px solid var(--green);
}

.nav-brand a {
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 8px 4px;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.nav-brand a:hover {
  background: var(--green);
  color: var(--black);
  outline: none;
}

.nav-links {
  display: flex;
  align-items: center;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 0;
  scrollbar-width: none;
  height: 100%;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0 10px;
  white-space: nowrap;
  border-right: 2px solid #333;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.nav-links a:hover {
  background: var(--blue);
  color: var(--white);
  outline: none;
}

/* ===== 正文容器骨架 ===== */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== content-section layout ===== */
.content-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  border: var(--border);
  margin: 0 0 32px 0;
}

.content-main {
  border-right: var(--border);
  padding: 0;
}

/* main > div.wrap > section > article 契约 */
.content-section > article.content-main {
  /* 直接子 article，满足四层嵌套 */
}

/* ===== 页面内容区 ===== */
.page-content {
  padding: 28px 28px 36px;
  font-size: 1rem;
  line-height: 1.75;
}

.page-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 32px 0 12px;
  border-bottom: 3px solid var(--green);
  padding-bottom: 4px;
}

.page-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 24px 0 8px;
  border-left: 5px solid var(--blue);
  padding-left: 10px;
}

.page-content p {
  margin: 0 0 16px;
}

.page-content ul, .page-content ol {
  padding-left: 24px;
  margin: 0 0 16px;
}

.page-content li {
  margin-bottom: 8px;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}

.page-content th, .page-content td {
  border: 2px solid var(--black);
  padding: 8px 12px;
  text-align: left;
}

.page-content th {
  background: var(--black);
  color: var(--green);
  font-weight: 700;
}

.page-content tr:nth-child(even) td {
  background: var(--gray-light);
}

.page-content blockquote {
  border-left: 6px solid var(--green);
  background: var(--gray-light);
  padding: 16px 20px;
  margin: 24px 0;
  font-style: italic;
}

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

/* ===== 侧边栏 ===== */
.sidebar {
  padding: 24px 16px;
  background: var(--gray-light);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-block {
  border: 2px solid var(--black);
  padding: 16px;
  background: var(--white);
}

.sidebar-block h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  background: var(--black);
  color: var(--green);
  padding: 6px 10px;
  margin: -16px -16px 12px;
}

.sidebar-link {
  margin-bottom: 8px;
}

.sidebar-link a {
  font-size: 0.85rem;
  font-weight: 700;
  display: block;
  padding: 4px 0;
}

.sidebar-text {
  font-size: 0.82rem;
  margin-bottom: 8px;
  color: #444;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  font-size: 0.82rem;
  margin-bottom: 12px;
  color: #555;
  font-weight: 400;
}

.breadcrumb a {
  font-weight: 400;
  color: var(--blue);
}

/* ===== 日期 ===== */
.page-date, .page-date-mod {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  background: var(--black);
  padding: 2px 8px;
  margin-right: 8px;
  display: inline-block;
}

/* ===== 首页 Hero ===== */
.hero-section {
  border: var(--border);
  border-bottom: none;
  background: var(--black);
  margin-top: 28px;
  position: relative;
  overflow: hidden;
  min-height: 45vh;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 0;
  position: relative;
  z-index: 2;
  padding: 40px 32px;
  align-items: start;
  min-height: 45vh;
}

.hero-bg-text {
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 280px;
  font-weight: 700;
  color: var(--blue);
  opacity: 0.18;
  line-height: 1;
  user-select: none;
  z-index: 1;
}

.hero-content {
  z-index: 2;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 16px;
  border: 2px solid var(--green);
  display: inline-block;
  padding: 3px 10px;
}

.hero-content h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-lead {
  font-size: 1rem;
  color: var(--gray-mid);
  margin-bottom: 28px;
  line-height: 1.65;
}

.btn-primary {
  display: inline-block;
  background: var(--green);
  color: var(--black);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border: 3px solid var(--green);
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.03em;
  min-height: 44px;
}

.btn-primary:hover {
  background: var(--black);
  color: var(--green);
  outline: none;
}

.hero-aside {
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 0 0 16px;
  border-left: 3px solid var(--green);
}

.stat-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gray-mid);
  text-transform: uppercase;
}

/* ===== 首页特色板块 ===== */
.feat-section {
  border: var(--border);
  border-top: none;
  padding: 32px 28px;
  margin-bottom: 32px;
}

.feat-section > h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  border-left: 6px solid var(--green);
  padding-left: 12px;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  border: 2px solid var(--black);
}

.feat-card {
  display: flex;
  align-items: flex-start;
  gap: 0;
  border-right: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
  background: var(--white);
}

.feat-card:nth-child(even) {
  background: var(--gray-light);
}

.feat-num {
  font-size: 3rem;
  font-weight: 700;
  color: var(--green);
  background: var(--black);
  padding: 12px 14px;
  line-height: 1;
  flex-shrink: 0;
  min-width: 72px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}

.feat-body {
  padding: 16px;
  flex: 1;
}

.feat-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feat-body h3 a {
  color: var(--black);
  text-decoration: none;
}

.feat-body h3 a:hover {
  color: var(--black);
  background: var(--green);
}

.feat-desc {
  font-size: 0.8rem;
  color: #555;
  line-height: 1.5;
}

/* ===== 榜单页 ===== */
.rank-hero {
  border: var(--border);
  border-bottom: none;
  background: var(--blue);
  margin-top: 28px;
  position: relative;
  overflow: hidden;
  padding: 36px 32px;
}

.rank-hero-inner {
  position: relative;
  z-index: 2;
}

.rank-bg-num {
  position: absolute;
  top: -30px;
  right: -10px;
  font-size: 240px;
  font-weight: 700;
  color: rgba(0,0,0,0.15);
  line-height: 1;
  user-select: none;
  z-index: 1;
}

.rank-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.rank-hero h1 {
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}

.rank-hero .breadcrumb {
  color: rgba(255,255,255,0.75);
}

.rank-hero .breadcrumb a {
  color: var(--green);
}

.rank-lead {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
}

/* 榜单条目样式（正文内） */
.ranking-content .rank-item {
  display: flex;
  align-items: flex-start;
  gap: 0;
  border: 2px solid var(--black);
  margin-bottom: -2px;
}

.ranking-content .rank-no {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green);
  background: var(--black);
  padding: 16px 20px;
  min-width: 80px;
  text-align: center;
  line-height: 1;
  flex-shrink: 0;
}

/* ===== 评测页 ===== */
.review-header-section {
  border: var(--border);
  border-bottom: none;
  background: var(--white);
  margin-top: 28px;
  padding: 36px 32px;
}

.review-header-inner {
  /* article 直接子 */
}

.review-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.review-dates {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.review-header-section h1 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.25;
}

.review-lead {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
}

.review-hero-img-wrap {
  margin-top: 20px;
  border: var(--border);
}

/* ===== 对比页 ===== */
.compare-header-section {
  border: var(--border);
  border-bottom: none;
  background: var(--black);
  margin-top: 28px;
  padding: 36px 32px;
}

.compare-label-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.compare-tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--black);
  background: var(--green);
  padding: 3px 10px;
  border: 2px solid var(--green);
}

.compare-header-section h1 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.compare-lead {
  font-size: 1rem;
  color: var(--gray-mid);
  line-height: 1.65;
  margin-bottom: 24px;
}

.compare-vs-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.vs-a, .vs-b {
  font-size: 1.6rem;
  font-weight: 700;
  padding: 8px 20px;
  border: 3px solid var(--green);
  color: var(--green);
}

.vs-sep {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}

/* ===== FAQ 页 ===== */
.faq-header-section {
  border: var(--border);
  border-bottom: none;
  background: var(--gray-light);
  margin-top: 28px;
  padding: 36px 32px;
}

.faq-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
  background: var(--blue);
  display: inline-block;
  padding: 3px 10px;
  margin-bottom: 12px;
}

.faq-header-section h1 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.faq-lead {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
}

.faq-child-list {
  margin-top: 32px;
  border-top: 3px solid var(--black);
  padding-top: 20px;
}

.faq-child-list dt {
  font-weight: 700;
  margin-bottom: 4px;
  margin-top: 16px;
}

.faq-child-list dt a {
  font-size: 1rem;
}

.faq-child-list dd {
  font-size: 0.88rem;
  color: #555;
  padding-left: 16px;
  border-left: 3px solid var(--green);
  margin-bottom: 8px;
}

/* ===== About 页 ===== */
.about-header-section {
  border: var(--border);
  border-bottom: none;
  background: var(--white);
  margin-top: 28px;
  padding: 36px 32px;
  border-left: 8px solid var(--green);
}

.about-badge {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green);
  background: var(--black);
  display: inline-block;
  padding: 3px 10px;
  margin-bottom: 12px;
}

.about-header-section h1 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.about-lead {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
}

/* ===== Privacy 页 ===== */
.privacy-header-section {
  border: var(--border);
  border-bottom: none;
  background: var(--gray-light);
  margin-top: 28px;
  padding: 36px 32px;
}

.privacy-badge {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
  background: var(--black);
  display: inline-block;
  padding: 3px 10px;
  margin-bottom: 12px;
}

.privacy-header-section h1 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.privacy-lead {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
}

/* ===== Default 页 ===== */
.default-header-section {
  border: var(--border);
  border-bottom: none;
  background: var(--white);
  margin-top: 28px;
  padding: 36px 32px;
}

.default-header-inner h1 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.default-lead {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
}

/* ===== 页脚 ===== */
footer {
  background: var(--black);
  color: var(--white);
  padding: 24px 16px;
  margin-bottom: var(--nav-h);
  border-top: 4px solid var(--green);
}

footer p.footer-copy {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--green);
}

footer small {
  font-size: 0.75rem;
  color: var(--gray-mid);
  line-height: 1.6;
}

footer small a {
  color: var(--green);
  font-weight: 400;
}

/* ===== 滚动揭示动效 ===== */
@media (prefers-reduced-motion: no-preference) {
  .feat-card, .sidebar-block, .faq-child-list dt {
    opacity: 0;
    transform: translateY(20px);
  }

  .feat-card.revealed, .sidebar-block.revealed, .faq-child-list dt.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .wrap {
    padding: 0 8px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    min-height: auto;
  }

  .hero-aside {
    flex-direction: row;
    border-left: none;
    border-top: 3px solid var(--green);
    padding: 16px 0 0;
    margin-top: 16px;
    justify-content: space-around;
  }

  .stat-block {
    align-items: center;
  }

  .hero-bg-text {
    font-size: 160px;
    opacity: 0.1;
  }

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

  .rank-hero {
    padding: 24px 16px;
  }

  .rank-bg-num {
    font-size: 140px;
  }

  .rank-hero h1, .review-header-section h1,
  .compare-header-section h1, .faq-header-section h1,
  .about-header-section h1, .privacy-header-section h1,
  .default-header-inner h1 {
    font-size: 1.4rem;
  }

  .content-section {
    grid-template-columns: 1fr;
  }

  .content-main {
    border-right: none;
    border-bottom: var(--border);
  }

  .page-content {
    padding: 20px 16px 28px;
  }

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

  .compare-vs-banner {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .review-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links a {
    font-size: 0.72rem;
    padding: 0 8px;
  }

  .nav-brand a {
    font-size: 0.82rem;
  }

  .rank-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .review-header-section, .about-header-section,
  .privacy-header-section, .faq-header-section,
  .default-header-section, .compare-header-section {
    padding: 24px 16px;
  }

  .feat-section {
    padding: 24px 16px;
  }
}

@media (max-width: 480px) {
  .feat-num {
    font-size: 2rem;
    min-width: 56px;
    padding: 12px 10px;
  }

  .hero-content h1 {
    font-size: 1.4rem;
  }
}
