/* === 网黄导航 · Neubrutalism Theme === */

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

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #3bb1ff;
  --red: #ff5252;
  --black: #000;
  --white: #fff;
  --yellow: #ffe600;
  --bg: #f5f5f0;
  --border: 3px solid #000;
  --shadow: 5px 5px 0 #000;
  --shadow-sm: 3px 3px 0 #000;
  --radius: 0px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1100px;
  --content-w: 720px;
  --gap: 1.5rem;
}

html {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--black);
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol { list-style: none; }

/* ── Announce Bar ── */
.announce-bar {
  background: var(--yellow);
  border-bottom: var(--border);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 8px 1rem;
  letter-spacing: 0.02em;
}

.announce-bar a {
  color: var(--black);
  text-decoration: underline;
  font-weight: 800;
}

/* ── Header ── */
.site-header {
  background: var(--white);
  border-bottom: var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: stretch;
  min-height: 60px;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 2rem;
  flex-shrink: 0;
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--black);
  border-bottom: 4px solid var(--red);
}

.logo-img {
  height: 36px;
  width: auto;
}

/* ── Nav ── */
.main-nav {
  flex: 1;
}

.nav-list {
  display: flex;
  height: 100%;
  flex-wrap: wrap;
  gap: 0;
}

.nav-item {
  display: flex;
  align-items: stretch;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  border-left: 2px solid transparent;
  min-height: 44px;
  transition: background 0.15s, border-color 0.15s;
}

.nav-link:hover, .nav-link:focus {
  background: var(--blue);
  color: var(--white);
  border-left-color: var(--black);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
  min-height: 44px;
  min-width: 44px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--black);
  transition: transform 0.2s;
}

/* ── Hero (Home) ── */
.hero {
  background: var(--black);
  color: var(--white);
  min-height: 45vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: var(--border);
}

.hero-bg-text {
  position: absolute;
  right: -0.1em;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(8rem, 25vw, 20rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 3px rgba(255,255,255,0.08);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1rem;
  text-align: right;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 2px solid var(--white);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 520px;
  margin-left: auto;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: var(--blue);
  border-bottom: var(--border);
  min-height: 30vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.page-hero--ranking { background: var(--black); color: var(--white); }
.page-hero--compare { background: var(--red); color: var(--white); }
.page-hero--faq { background: var(--blue); color: var(--black); }
.page-hero--about { background: var(--yellow); color: var(--black); }
.page-hero--privacy { background: var(--bg); color: var(--black); border-top: var(--border); }

.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1rem;
  position: relative;
  z-index: 1;
  width: 100%;
}

.page-hero-deco {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(5rem, 18vw, 14rem);
  font-weight: 800;
  opacity: 0.07;
  letter-spacing: -0.05em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.page-type-tag {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  margin-bottom: 0.75rem;
}

.page-hero--ranking .page-type-tag {
  background: var(--red);
}
.page-hero--compare .page-type-tag {
  background: var(--black);
}
.page-hero--faq .page-type-tag,
.page-hero--about .page-type-tag,
.page-hero--privacy .page-type-tag {
  background: var(--black);
  color: var(--white);
}

.page-hero-title {
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.page-hero-desc {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 600px;
  margin-top: 0.5rem;
}

.page-date {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.75rem;
  opacity: 0.75;
}

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.breadcrumb a:hover { text-decoration: underline; }

/* ── Review Hero ── */
.review-hero {
  background: var(--black);
  color: var(--white);
  border-bottom: var(--border);
  display: grid;
  grid-template-columns: 1fr;
}

.review-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1rem 2rem;
  width: 100%;
}

.review-title {
  font-size: clamp(1.75rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0.5rem 0;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  margin-top: 0.75rem;
  opacity: 0.8;
}

.meta-sep { opacity: 0.5; }

.review-hero-media {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  border-top: var(--border);
}

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.65rem 1.5rem;
  border: var(--border);
  cursor: pointer;
  transition: box-shadow 0.1s, transform 0.1s;
  min-height: 44px;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.btn:hover, .btn:focus {
  box-shadow: 2px 2px 0 var(--black);
  transform: translate(3px, 3px);
  text-decoration: none;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  color: var(--black);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
}

/* ── Article / Page Body ── */
.page-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
}

.content-section {
  padding: 3rem 0;
  border-bottom: var(--border);
}

.section-inner {
  width: 100%;
}

.prose {
  max-width: var(--content-w);
}

.prose--narrow {
  max-width: 640px;
}

/* ── Section Header ── */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: var(--border);
}

.section-num {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  background: var(--black);
  color: var(--white);
  padding: 2px 8px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.block-section,
.related-section,
.about-links,
.faq-nav-block,
.privacy-nav {
  padding: 2.5rem 0;
  border-bottom: var(--border);
}

/* ── Card List (dl based) ── */
.card-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.card-entry {
  background: var(--white);
  border: var(--border);
  border-bottom: none;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  margin-bottom: 0;
  transition: box-shadow 0.1s, transform 0.1s;
}

.card-entry:hover {
  box-shadow: 2px 2px 0 var(--black);
  transform: translate(3px, 3px);
}

.card-entry a {
  color: var(--black);
  text-decoration: none;
}

.card-entry a:hover {
  color: var(--red);
  text-decoration: none;
}

.card-list dd {
  background: var(--bg);
  border: var(--border);
  border-top: none;
  border-bottom: none;
  padding: 0.5rem 1.25rem 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1rem;
  border-bottom: var(--border);
}

.card-list dd time {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.6;
}

/* ── Rank List ── */
.rank-list {
  display: grid;
  gap: 0;
}

.rank-entry {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: var(--border);
  border-bottom: none;
  padding: 1rem 1.25rem;
  font-weight: 700;
}

.rank-entry:hover {
  background: var(--blue);
}

.rank-num {
  font-size: 1.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  min-width: 2.5rem;
  color: var(--red);
}

.rank-link {
  font-size: 1rem;
  font-weight: 700;
  flex: 1;
}

.rank-list dd {
  background: var(--bg);
  border: var(--border);
  border-top: none;
  border-bottom: none;
  padding: 0.4rem 1.25rem 0.75rem calc(1.25rem + 2.5rem + 1rem);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  border-bottom: var(--border);
}

.rank-list dd time {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.6;
}

.rank-entry:last-of-type { border-bottom: var(--border); }

.empty-tip {
  padding: 1rem;
  font-weight: 600;
  opacity: 0.6;
}

/* ── Prose Styles ── */
.prose h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 3px solid var(--blue);
}

.prose h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}

.prose p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.prose ul, .prose ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

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

.prose th {
  background: var(--black);
  color: var(--white);
  font-weight: 800;
  padding: 0.6rem 0.75rem;
  text-align: left;
  border: 2px solid var(--black);
}

.prose td {
  padding: 0.6rem 0.75rem;
  border: 2px solid var(--black);
  background: var(--white);
}

.prose tr:nth-child(even) td {
  background: var(--bg);
}

.prose blockquote {
  border-left: 5px solid var(--red);
  margin: 1.5rem 0;
  padding: 0.75rem 1rem;
  background: var(--white);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  border: var(--border);
  border-left: 5px solid var(--red);
}

.prose a {
  color: var(--black);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--blue);
}

.prose a:hover {
  color: var(--red);
  text-decoration-color: var(--red);
}

.prose strong { font-weight: 800; }

.prose time {
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--yellow);
  border: 2px solid var(--black);
  padding: 1px 8px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

/* ── FAQ content ── */
.faq-content .prose h2 {
  background: var(--blue);
  color: var(--black);
  border-bottom: var(--border);
  padding: 0.4rem 0.75rem;
  margin-top: 2rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--black);
  color: var(--white);
  border-top: var(--border);
  margin-top: 4rem;
}

.footer-top {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  border-bottom: 2px solid #333;
}

.footer-brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  color: var(--blue);
}

.footer-brand-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  opacity: 0.75;
}

.footer-sub-title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  color: var(--yellow);
}

.subscribe-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 180px;
  padding: 0.6rem 0.75rem;
  border: var(--border);
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 44px;
}

.subscribe-form input[type="email"]:focus {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* ── Footer Nav (dl based per spec) ── */
.footer-mid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1rem;
  border-bottom: 2px solid #333;
}

.footer-nav-dl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.25rem 2rem;
}

.footer-nav-head {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--yellow);
  grid-column: 1 / -1;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #333;
  margin-bottom: 0.25rem;
}

.footer-nav-dl dd {
  font-size: 0.875rem;
}

.footer-nav-dl dd a {
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 4px 0;
}

.footer-nav-dl dd a:hover {
  color: var(--blue);
  text-decoration: none;
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem 1rem;
  font-size: 0.8rem;
  opacity: 0.55;
  text-align: center;
}

/* ── Stagger animation ── */
@media (prefers-reduced-motion: no-preference) {
  .stagger-item,
  .stagger-list .card-entry,
  .stagger-list .rank-entry {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.4s ease forwards;
    animation-delay: calc(var(--stagger, 0) * 80ms);
  }

  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .stagger-item,
  .stagger-list .card-entry,
  .stagger-list .rank-entry {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ── Parallax Hero ── */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg-text {
    will-change: transform;
  }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: var(--border);
    border-top: var(--border);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    z-index: 99;
  }

  .main-nav.is-open {
    max-height: 600px;
  }

  .nav-list {
    flex-direction: column;
    padding: 0.5rem 0;
  }

  .nav-item {
    border-bottom: 1px solid #eee;
  }

  .nav-link {
    padding: 0.75rem 1rem;
    min-height: 48px;
    font-size: 1rem;
    border-left: none;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
    min-height: 56px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 3rem 1rem 2.5rem;
    text-align: left;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-bg-text {
    font-size: 35vw;
    right: -0.05em;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .page-hero-deco {
    display: none;
  }

  .review-hero-inner {
    padding: 2rem 1rem;
  }

  .prose table {
    font-size: 0.8rem;
  }

  .prose th, .prose td {
    padding: 0.4rem 0.5rem;
  }

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

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .page-hero-title {
    font-size: 1.6rem;
  }

  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .rank-num {
    font-size: 1.1rem;
    min-width: 2rem;
  }
}

/* ── Focus Styles ── */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* ── Utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
