/* 抖阴官网 dy-vip.cyou — 霓虹影院风格 */
:root {
  --bg-deep: #06060c;
  --bg-panel: #0e0e18;
  --bg-card: #141422;
  --text-primary: #f2f2f8;
  --text-muted: #9a9ab0;
  --accent-pink: #ff2d6a;
  --accent-cyan: #25f4ee;
  --accent-magenta: #fe2c8a;
  --border-glow: rgba(255, 45, 106, 0.35);
  --nav-h: 56px;
  --ads-sticky-h: 0px;
  --radius: 14px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.75;
  font-size: 15px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(37, 244, 238, 0.07), transparent),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(255, 45, 106, 0.08), transparent);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-pink); }

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ===== 顶栏 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(6, 6, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 32px;
  width: auto;
}

.brand span {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s;
}

.site-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(10, 10, 18, 0.97);
  padding: 16px 4vw 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 999;
}

.site-nav.open { display: block; }

.site-nav ul { list-style: none; }

.site-nav li { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

.site-nav a {
  display: block;
  padding: 14px 0;
  color: var(--text-primary);
  font-size: 15px;
}

.site-nav a:hover { color: var(--accent-pink); }

.btn-dl-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-magenta));
  color: #fff !important;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-dl-nav:hover { opacity: 0.9; color: #fff !important; }

/* ===== 广告位 ===== */
.ads-zone {
  padding: 12px 0 4px;
}

#ads,
#ads-sticky {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 12px;
  background: transparent;
}

.ads-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
}

#ads img,
#ads-sticky img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}

#ads a,
#ads-sticky a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#ads img:hover,
#ads-sticky img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(255, 45, 106, 0.25);
}

.ads-caption {
  height: 15px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

.ads-sticky-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 998;
  background: rgba(8, 8, 16, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 45, 106, 0.15);
  padding: 8px 4vw;
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.ads-sticky-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

body.has-sticky-ads {
  --ads-sticky-h: 88px;
}

/* ===== 主内容区 ===== */
.page-main {
  padding-top: calc(var(--nav-h) + 8px);
  position: relative;
  z-index: 1;
}

body.has-sticky-ads .page-main {
  padding-top: calc(var(--nav-h) + var(--ads-sticky-h) + 8px);
}

/* ===== 英雄区 ===== */
.hero {
  position: relative;
  padding: 36px 0 48px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-pink), transparent);
  opacity: 0.4;
}

.hero-badge {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  font-size: 12px;
  color: var(--accent-pink);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}

.hero h1 {
  font-size: clamp(26px, 6vw, 40px);
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 40%, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent-pink) 0%, #e91e63 100%);
  color: #fff;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(255, 45, 106, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(255, 45, 106, 0.45);
  color: #fff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  border: 1px solid rgba(37, 244, 238, 0.4);
  color: var(--accent-cyan);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-outline:hover {
  background: rgba(37, 244, 238, 0.08);
  color: var(--accent-cyan);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-item {
  text-align: center;
  padding: 16px 8px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-cyan);
  display: block;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== 3:7 图文模块 ===== */
.section {
  padding: 48px 0;
}

.section-head {
  margin-bottom: 32px;
}

.section-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-pink);
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 800;
  line-height: 1.35;
}

.split-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.split-img {
  flex: 0 0 100%;
  position: relative;
}

.split-img img {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.split-img::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
  opacity: 0.25;
  z-index: -1;
}

.split-text {
  flex: 1;
}

.split-text h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.split-text p {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 14px;
}

.split-text p:last-child { margin-bottom: 0; }

.split-reverse .split-img { order: 2; }
.split-reverse .split-text { order: 1; }

/* ===== 功能网格 ===== */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature-card {
  padding: 24px 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.25s, transform 0.25s;
}

.feature-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 244, 238, 0.15), rgba(255, 45, 106, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== 分类标签云 ===== */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.tag-chip {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.tag-chip:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* ===== 下载横幅 ===== */
.cta-banner {
  margin: 48px 0;
  padding: 36px 24px;
  text-align: center;
  background: linear-gradient(160deg, rgba(255, 45, 106, 0.12), rgba(37, 244, 238, 0.06));
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 45, 106, 0.05), transparent);
  animation: cta-spin 12s linear infinite;
}

@keyframes cta-spin {
  to { transform: rotate(360deg); }
}

.cta-banner > * { position: relative; z-index: 1; }

.cta-banner h2 {
  font-size: clamp(20px, 5vw, 28px);
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== 内链模块 ===== */
.link-hub {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.link-hub h3 {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.link-pill {
  padding: 10px 20px;
  background: var(--bg-card);
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  transition: all 0.2s;
}

.link-pill:hover {
  border-color: var(--accent-pink);
  color: var(--accent-pink);
}

/* ===== 页脚 ===== */
.site-footer {
  padding: 40px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-brand img { height: 28px; margin-bottom: 12px; }

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== 子页面 ===== */
.page-hero-sm {
  padding: 32px 0 24px;
}

.page-hero-sm h1 {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 800;
  margin-bottom: 8px;
}

.page-hero-sm p {
  color: var(--text-muted);
  font-size: 14px;
}

.legal-content {
  padding-bottom: 48px;
}

.legal-content h2 {
  font-size: 18px;
  margin: 28px 0 12px;
  color: var(--accent-cyan);
}

.legal-content h3 {
  font-size: 16px;
  margin: 20px 0 10px;
}

.legal-content p,
.legal-content li {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-content a { word-break: break-all; }

/* ===== SEO 纯文案模块 ===== */
.seo-prose .prose-block p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.seo-prose .prose-block h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 10px;
}

.seo-prose .prose-block h3:first-child {
  margin-top: 0;
}

.seo-prose .prose-block strong {
  color: var(--text-primary);
}

.prose-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.prose-list li {
  position: relative;
  padding: 12px 0 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

.prose-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-pink);
}

.prose-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* ===== 截图网格 ===== */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.screenshot-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: border-color 0.25s;
}

.screenshot-card:hover {
  border-color: var(--border-glow);
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.screenshot-card figcaption {
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}

/* ===== FAQ ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 18px;
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--accent-pink);
}

.faq-item p {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ===== 错误页 ===== */
.error-page {
  text-align: center;
  padding: 60px 0 80px;
}

.error-code {
  font-size: 80px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.error-page h1 {
  font-size: 22px;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

/* ===== 桌面端 ===== */
@media (min-width: 768px) {
  .nav-toggle { display: none; }

  .site-nav {
    display: block !important;
    position: static;
    background: none;
    padding: 0;
    border: none;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .site-nav li { border: none; }

  .site-nav a {
    padding: 0;
    font-size: 14px;
    color: var(--text-muted);
  }

  .split-block {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }

  .split-img { flex: 0 0 30%; }
  .split-text { flex: 0 0 calc(70% - 32px); }

  .split-reverse { flex-direction: row-reverse; }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .hero-stats {
    max-width: 480px;
  }

  .prose-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .screenshot-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
