/* dypax.org — 抖阴视频合集 SEO 站点样式 */
:root {
  --bg: #0f0f12;
  --bg-card: #1a1a22;
  --bg-elevated: #22222e;
  --text: #e8e8ed;
  --text-muted: #9a9aad;
  --accent: #ff2d6a;
  --accent-soft: rgba(255, 45, 106, 0.12);
  --border: #2e2e3a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --max-width: 960px;
  --header-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover { opacity: 0.85; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(15, 15, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
  min-width: 0;
}

.logo-link span {
  white-space: nowrap;
}

.logo-link img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-main a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--text);
  background: var(--bg-elevated);
}

.nav-main a.active {
  color: var(--accent);
}

@media (max-width: 768px) {
  .site-header {
    height: auto;
  }

  .header-inner {
    position: relative;
    flex-wrap: nowrap;
    padding: 0 16px;
    min-height: var(--header-h);
  }

  .logo-link {
    flex: 1;
    font-size: 0.95rem;
    overflow: hidden;
  }

  .logo-link span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 12px 12px;
    background: rgba(26, 26, 34, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .nav-main {
    display: flex;
  }

  .nav-main a {
    padding: 12px 16px;
    font-size: 0.95rem;
  }
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero */
.hero {
  padding: 48px 0 40px;
  background: linear-gradient(180deg, var(--accent-soft) 0%, transparent 60%);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 24px;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* TOC */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 32px 0;
}

.toc-title {
  margin: 0 0 12px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.toc ol {
  margin: 0;
  padding-left: 20px;
}

.toc li { margin: 6px 0; }

.toc a { color: var(--text); }

/* Sections */
main { padding-bottom: 64px; }

.section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.section:last-child { border-bottom: none; }

.section h2 {
  margin: 0 0 20px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
}

.section h3 {
  margin: 28px 0 12px;
  font-size: 1.15rem;
  font-weight: 600;
}

.section p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

.section p strong { color: var(--text); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 28px;
}

@media (min-width: 768px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid.single { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top center;
  max-height: 520px;
}

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

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
}

/* Lists */
.check-list,
.info-list {
  margin: 16px 0;
  padding-left: 0;
  list-style: none;
}

.check-list li,
.info-list li {
  position: relative;
  padding-left: 24px;
  margin: 10px 0;
  color: var(--text-muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.info-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--accent);
}

/* Steps */
.steps {
  counter-reset: step;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 16px 16px 56px;
  margin: 12px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
}

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 12px 0;
  overflow: hidden;
}

.faq-q {
  margin: 0;
  padding: 16px 20px;
  background: var(--bg-card);
  font-size: 1rem;
  font-weight: 600;
  cursor: default;
}

.faq-a {
  margin: 0;
  padding: 0 20px 16px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA */
.cta-block {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 32px;
}

.cta-block p {
  margin: 0 0 8px;
  color: var(--text-muted);
}

/* Legal pages */
.page-hero {
  padding: 40px 0 24px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: 1.8rem;
}

.page-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-content h2 {
  margin: 32px 0 12px;
  font-size: 1.25rem;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.legal-content h2:first-of-type {
  border-top: none;
  margin-top: 16px;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
}

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

/* 404 */
.error-page {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-code {
  font-size: 5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin: 0 0 16px;
}

.error-page h1 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.error-page p {
  color: var(--text-muted);
  margin: 0 0 24px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
}

.btn:hover { opacity: 0.9; }

/* Footer */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand p {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 360px;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li { margin: 8px 0; }

.footer-col a {
  color: var(--text);
  font-size: 0.9rem;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 首页扩展组件 */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
  padding: 0;
  list-style: none;
}

.category-pills li {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.category-pills li.is-hot {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.data-table-wrap {
  overflow-x: auto;
  margin: 20px 0 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.data-table td {
  color: var(--text-muted);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
}

.info-box p {
  margin: 0;
}

.info-box p + p {
  margin-top: 10px;
}

.privilege-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 24px 0;
}

@media (min-width: 540px) {
  .privilege-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .privilege-grid { grid-template-columns: repeat(3, 1fr); }
}

.privilege-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.privilege-item h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--accent);
}

.privilege-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.content-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  margin: 24px 0;
}

@media (min-width: 900px) {
  .content-split {
    grid-template-columns: 1fr 320px;
  }

  .content-split.reverse {
    grid-template-columns: 320px 1fr;
  }
}

.content-split .feature-card img {
  max-height: 580px;
}

.text-block h3 {
  margin-top: 0;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0;
}

@media (min-width: 640px) {
  .compare-grid { grid-template-columns: 1fr 1fr; }
}

.compare-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.compare-card h4 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: var(--text);
}

.compare-card .price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  margin: 8px 0 12px;
}

.compare-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.compare-card li { margin: 6px 0; }

.section-lead {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin: -8px 0 20px;
  max-width: 780px;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.keyword-cloud span {
  font-size: 0.82rem;
  padding: 5px 12px;
  background: var(--bg-elevated);
  border-radius: 6px;
  color: var(--text-muted);
}
