/* 抖阴传媒 dy-vip.lol — 深绯流影 · 移动端优先 */
:root {
  --ink: #020204;
  --surface: #0c0c12;
  --surface-2: #14141e;
  --surface-3: #1c1c2a;
  --rose: #ff2952;
  --rose-dim: #cc1f42;
  --rose-glow: rgba(255, 41, 82, 0.35);
  --cyan: #00d8ff;
  --magenta: #ff00aa;
  --gold: #e8b84a;
  --text: #ececf2;
  --text-soft: #9a9ab0;
  --text-dim: #5e5e72;
  --line: rgba(255, 255, 255, 0.07);
  --nav-h: 56px;
  --sticky-h: 88px;
  --radius: 12px;
  --radius-lg: 20px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --max: 1040px;
}

*, *::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(--ink);
  color: var(--text);
  line-height: 1.8;
  font-size: 15px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 41, 82, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(0, 216, 255, 0.05), transparent);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--rose); }

/* ── 顶栏 ── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(2, 2, 4, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand:hover { color: var(--text); }

.main-nav {
  display: none;
  gap: 4px;
}
.main-nav a {
  color: var(--text-soft);
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--rose);
  background: rgba(255, 41, 82, 0.1);
}

.btn-rose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--rose), var(--rose-dim));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--rose-glow);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-rose:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px var(--rose-glow);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover {
  border-color: var(--rose);
  color: var(--rose);
}

.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(2, 2, 4, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 16px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  color: var(--text-soft);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 15px;
}
.mobile-drawer a:hover,
.mobile-drawer a.active { color: var(--rose); background: rgba(255, 41, 82, 0.08); }

/* ── 固定下载条 ── */
.dl-sticky {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 998;
  background: rgba(12, 12, 18, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.dl-sticky.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#ads-sticky {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 8px 12px;
  max-width: var(--max);
  margin: 0 auto;
}

#ads-sticky .ads-cell,
#ads .ads-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(25% - 9px);
  min-width: 68px;
  max-width: 80px;
}
#ads-sticky .ads-cell a,
#ads .ads-cell a {
  display: block;
  border-radius: 16px;
  overflow: hidden;
}
#ads-sticky .ads-cell img,
#ads .ads-cell img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s ease;
}
#ads-sticky .ads-cell img:hover,
#ads .ads-cell img:hover {
  transform: scale(1.06);
}
#ads-sticky .ads-cap,
#ads .ads-cap {
  margin-top: 4px;
  font-size: 10px;
  color: var(--text-dim);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── 主内容区 ── */
.page-wrap {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-h);
}

/* ── Hero ── */
.splash {
  position: relative;
  padding: 48px 16px 56px;
  text-align: center;
  overflow: hidden;
}
.splash::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose), var(--cyan), transparent);
}

.splash-tag {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid rgba(255, 41, 82, 0.3);
  border-radius: 999px;
  font-size: 12px;
  color: var(--rose);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.splash h1 {
  font-size: clamp(26px, 7vw, 42px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 30%, var(--rose) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.splash h1 em {
  font-style: normal;
  display: block;
  font-size: 0.55em;
  font-weight: 500;
  color: var(--text-soft);
  -webkit-text-fill-color: var(--text-soft);
  margin-top: 8px;
  letter-spacing: 0.04em;
}

.splash-lead {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.85;
}

.splash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 36px;
}

.splash-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 40px;
}
.metric strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--rose);
  line-height: 1.2;
}
.metric span {
  font-size: 12px;
  color: var(--text-dim);
}

/* ── 广告下载区 ── */
.dl-zone {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 16px 32px;
}
.dl-zone-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}
.dl-zone-label::before,
.dl-zone-label::after {
  content: "—";
  margin: 0 8px;
  opacity: 0.4;
}

#ads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 12px 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 60px rgba(255, 41, 82, 0.06);
}

/* ── 内容区块 ── */
.content-block {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 16px;
}

.section-head {
  margin-bottom: 28px;
}
.section-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--rose);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.section-head h2 {
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}
.section-head p {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 14px;
}

/* 3:7 图文比例 */
.ratio-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 36px;
}
.ratio-row:last-child { margin-bottom: 0; }

.ratio-img {
  flex: 0 0 auto;
  position: relative;
}
.ratio-img figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.ratio-img figure::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 41, 82, 0.15);
  pointer-events: none;
  z-index: 1;
}
.ratio-img img { width: 100%; }
.ratio-img figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-size: 11px;
  color: var(--text-soft);
}

.ratio-text {
  flex: 1;
}
.ratio-text h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
  padding-left: 12px;
  border-left: 3px solid var(--rose);
}
.ratio-text p {
  color: var(--text-soft);
  margin-bottom: 12px;
  font-size: 14.5px;
  text-align: justify;
}
.ratio-text ul {
  list-style: none;
  margin: 12px 0;
}
.ratio-text li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 14px;
}
.ratio-text li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rose);
}

/* 纯文案模块 */
.prose-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  margin-bottom: 32px;
}
.prose-panel h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}
.prose-panel p {
  color: var(--text-soft);
  font-size: 14.5px;
  margin-bottom: 12px;
  text-align: justify;
}
.prose-panel p:last-child { margin-bottom: 0; }

/* 特性标签 */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.tag-row span {
  padding: 4px 12px;
  background: rgba(255, 41, 82, 0.1);
  border: 1px solid rgba(255, 41, 82, 0.2);
  border-radius: 999px;
  font-size: 12px;
  color: var(--rose);
}

/* 功能网格 */
.feat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 24px 0;
}
.feat-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  transition: border-color 0.2s;
}
.feat-card:hover { border-color: rgba(255, 41, 82, 0.3); }
.feat-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.feat-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* FAQ */
.faq-list { margin-top: 8px; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
}
.faq-q::after {
  content: "+";
  font-size: 20px;
  color: var(--rose);
  flex-shrink: 0;
  transition: transform 0.25s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a-inner {
  padding: 0 0 16px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

/* 内链导航 */
.link-hub {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.link-hub a {
  padding: 8px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-soft);
  transition: border-color 0.2s, color 0.2s;
}
.link-hub a:hover {
  border-color: var(--rose);
  color: var(--rose);
}

/* ── 子页面 ── */
.sub-hero {
  padding: 36px 16px 28px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.sub-hero h1 {
  font-size: clamp(22px, 5.5vw, 32px);
  font-weight: 700;
}

.breadcrumb {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 16px 0;
  font-size: 13px;
  color: var(--text-dim);
}
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--rose); }
.breadcrumb span { margin: 0 6px; opacity: 0.4; }

.legal-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 16px 56px;
}
.legal-body h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p,
.legal-body li {
  color: var(--text-soft);
  font-size: 14.5px;
  margin-bottom: 10px;
  text-align: justify;
}
.legal-body ul,
.legal-body ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

/* ── 错误页 ── */
.err-page {
  min-height: calc(100vh - var(--nav-h) - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 16px;
}
.err-code {
  font-size: clamp(64px, 18vw, 120px);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--rose), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.err-page h1 {
  font-size: 20px;
  margin: 16px 0 8px;
}
.err-page p {
  color: var(--text-soft);
  font-size: 14px;
  max-width: 400px;
  margin-bottom: 24px;
}

/* ── 页脚 ── */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 32px 16px;
  margin-top: 20px;
  background: var(--surface);
}
.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 16px;
}
.foot-nav a {
  font-size: 13px;
  color: var(--text-soft);
}
.foot-nav a:hover { color: var(--rose); }
.foot-copy {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.7;
}
/* 顶栏下载按钮：仅桌面端显示 */
.topbar-dl { display: none; }

/* ── 响应式 ── */
@media (max-width: 639px) {
  #ads,
  #ads-sticky {
    justify-content: flex-start;
    gap: 10px 0;
    padding: 16px 12px;
  }
  #ads-sticky .ads-cell,
  #ads .ads-cell {
    width: 25%;
    min-width: 0;
    max-width: none;
    flex: 0 0 25%;
    padding: 0 4px;
    box-sizing: border-box;
  }
  #ads-sticky .ads-cell img,
  #ads .ads-cell img {
    width: 100%;
    max-width: 68px;
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto;
  }
  #ads-sticky .ads-cap,
  #ads .ads-cap {
    max-width: 100%;
    font-size: 9px;
  }
}

@media (min-width: 640px) {
  .topbar-dl { display: inline-flex; }
  .main-nav { display: flex; }
  .menu-btn { display: none; }
  .mobile-drawer { display: none !important; }

  .ratio-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }
  .ratio-row.reverse { flex-direction: row-reverse; }
  .ratio-img { flex: 0 0 30%; max-width: 30%; }
  .ratio-text { flex: 0 0 calc(70% - 32px); }

  .feat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .feat-grid { grid-template-columns: repeat(3, 1fr); }
  .splash { padding: 64px 16px 72px; }
}
