/* 抖阴传媒官网 - dy-s.click */
:root {
  --bg-deep: #08080e;
  --bg-card: #111118;
  --bg-elevated: #1a1a24;
  --text-primary: #f4f4f8;
  --text-secondary: #9a9ab0;
  --text-muted: #6b6b82;
  --accent-pink: #ff2d6a;
  --accent-pink-dim: rgba(255, 45, 106, 0.15);
  --accent-cyan: #25f4ee;
  --accent-gold: #d4a853;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(255, 45, 106, 0.35);
  --nav-height: 56px;
  --sticky-bar-height: 88px;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  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(255, 45, 106, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(37, 244, 238, 0.05), 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 var(--transition); }
a:hover { color: var(--accent-pink); }

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 18px;
  position: relative;
  z-index: 1;
}

.container--wide { max-width: 960px; }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(8, 8, 14, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 18px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo img {
  height: 32px;
  width: auto;
}

.site-logo span {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.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: var(--transition);
}

.site-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(8, 8, 14, 0.98);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 18px 20px;
  z-index: 999;
}

.site-nav.is-open { display: block; }

.site-nav a {
  display: block;
  padding: 12px 0;
  color: var(--text-secondary);
  font-size: 15px;
  border-bottom: 1px solid var(--border-subtle);
}

.site-nav a:last-child { border-bottom: none; }
.site-nav a:hover, .site-nav a.is-active { color: var(--accent-pink); }

.header-cta {
  display: none;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--accent-pink), #c41e56);
  color: #fff !important;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ===== STICKY DOWNLOAD BAR ===== */
.sticky-download {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 998;
  background: rgba(12, 12, 20, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 12px;
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}

.sticky-download.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-download__inner {
  max-width: 960px;
  margin: 0 auto;
}

.sticky-download #sticky-ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 12px;
  background: transparent;
}

.sticky-download #sticky-ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(25% - 9px);
  min-width: 68px;
  max-width: 80px;
  box-sizing: border-box;
}

.sticky-download #sticky-ads img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  transition: transform 0.18s ease;
}

.sticky-download #sticky-ads a { border-radius: 14px; display: inline-block; }
.sticky-download #sticky-ads img:hover { transform: scale(1.06); }

.sticky-download #sticky-ads .caption {
  height: 14px;
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

/* ===== ADS BLOCK ===== */
.ads-section {
  padding-top: calc(var(--nav-height) + 16px);
  padding-bottom: 8px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px 16px;
  background: transparent;
  padding: 8px 0;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(25% - 12px);
  min-width: 70px;
  max-width: 90px;
  box-sizing: border-box;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(255, 45, 106, 0.2);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 6px;
}

/* ===== HERO ===== */
.hero {
  padding: 24px 0 40px;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--accent-pink-dim);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  font-size: 12px;
  color: var(--accent-pink);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.hero__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent-pink);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  width: 100%;
  max-width: 280px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-pink), #d41a5c);
  color: #fff !important;
  box-shadow: 0 6px 24px rgba(255, 45, 106, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255, 45, 106, 0.45);
  color: #fff !important;
}

.btn--outline {
  background: transparent;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-subtle);
}

.btn--outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan) !important;
}

/* ===== CONTENT SECTIONS ===== */
.section {
  padding: 36px 0;
  border-top: 1px solid var(--border-subtle);
}

.section__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 4.5vw, 26px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
}

.section h3,
.section--text h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--text-primary);
}

.section--text {
  padding: 36px 0;
}

.section p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  text-align: justify;
}

.section ul, .section ol {
  color: var(--text-secondary);
  padding-left: 20px;
  margin-bottom: 14px;
}

.section li { margin-bottom: 6px; }

/* 3:7 layout - text dominant */
.content-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.content-block__media {
  flex: 0 0 auto;
}

.content-block__media figure {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
}

.content-block__media figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}

.content-block__text { flex: 1; }

/* Feature grid */
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.feature-tag {
  padding: 5px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  font-size: 12px;
  color: var(--text-secondary);
}

.feature-tag--hot {
  border-color: var(--border-glow);
  color: var(--accent-pink);
  background: var(--accent-pink-dim);
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.stat-item {
  text-align: center;
  padding: 16px 8px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.stat-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--accent-pink);
  margin-bottom: 4px;
}

.stat-item span {
  font-size: 11px;
  color: var(--text-muted);
}

/* CTA band */
.cta-band {
  margin: 36px 0;
  padding: 28px 22px;
  background: linear-gradient(135deg, rgba(255,45,106,0.12), rgba(37,244,238,0.06));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  text-align: center;
}

.cta-band h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: 10px;
}

.cta-band p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

/* ===== FOOTER ===== */
.site-footer {
  margin-top: 48px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0,0,0,0.3);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 20px;
}

.footer-nav a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-nav a:hover { color: var(--accent-pink); }

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-copy a { color: var(--text-muted); }

/* ===== LEGAL PAGES ===== */
.page-hero {
  padding-top: calc(var(--nav-height) + 32px);
  padding-bottom: 24px;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 5vw, 30px);
  margin-bottom: 8px;
}

.page-hero 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(--text-primary);
}

.legal-content p, .legal-content li {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 12px;
}

.legal-content ul { padding-left: 20px; }

/* ===== ERROR PAGES ===== */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 18px 60px;
}

.error-page__code {
  font-family: var(--font-serif);
  font-size: clamp(72px, 18vw, 120px);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.error-page h1 {
  font-size: 20px;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 360px;
  margin-bottom: 24px;
}

/* ===== DESKTOP ENHANCEMENTS ===== */
@media (min-width: 768px) {
  .nav-toggle { display: none; }

  .site-nav {
    display: flex !important;
    position: static;
    background: none;
    border: none;
    padding: 0;
    gap: 24px;
    align-items: center;
  }

  .site-nav a {
    border: none;
    padding: 0;
    font-size: 14px;
  }

  .header-cta { display: inline-flex; }

  .hero { padding: 48px 0 56px; }

  .hero__actions {
    flex-direction: row;
    justify-content: center;
  }

  .btn { width: auto; }

  .content-block {
    flex-direction: row;
    align-items: flex-start;
    gap: 28px;
  }

  .content-block--reverse { flex-direction: row-reverse; }

  .content-block__media { flex: 0 0 30%; max-width: 30%; }
  .content-block__text { flex: 0 0 70%; max-width: 70%; }

  .content-block--stack .content-block__media,
  .content-block--stack .content-block__text {
    flex: 1 1 100%;
    max-width: 100%;
  }

  #ads > div,
  .sticky-download #sticky-ads > div {
    width: 70px;
    max-width: 70px;
  }
}

@media (min-width: 960px) {
  .container { max-width: 800px; }
}
