/* 抖阴官网 dy-vip.forum — 琥珀胶片·影院编辑部风格 */
:root {
  --ink: #08080f;
  --ink-soft: #12121c;
  --ink-card: #181824;
  --ink-elevated: #1f1f2e;
  --amber: #e8b84a;
  --amber-dim: #c49a32;
  --amber-glow: rgba(232, 184, 74, 0.18);
  --sky: #5eb8ff;
  --rose: #ff4d7a;
  --paper: #f0ece4;
  --paper-muted: #a8a4b8;
  --paper-dim: #6e6a7c;
  --line: rgba(240, 236, 228, 0.08);
  --nav-h: 54px;
  --sticky-ads-h: 92px;
  --radius: 12px;
  --radius-lg: 20px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --max: 1060px;
}

*, *::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(--paper);
  font-size: 15px;
  line-height: 1.8;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--sky);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--amber); }

/* ── 顶栏 ── */
.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  height: var(--nav-h);
  background: rgba(8, 8, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.hdr-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--paper);
  flex-shrink: 0;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand em {
  font-style: normal;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav {
  display: none;
  gap: 4px;
}

.nav a {
  color: var(--paper-muted);
  font-size: 13px;
  padding: 6px 11px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover,
.nav a.on {
  color: var(--amber);
  background: var(--amber-glow);
}

.hdr-cta {
  display: none;
  padding: 7px 16px;
  background: linear-gradient(135deg, var(--amber), var(--amber-dim));
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  white-space: nowrap;
}

.hdr-cta:hover { color: var(--ink); opacity: 0.9; }

.burger {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--paper);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 1050;
  background: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px 18px;
  display: none;
  flex-direction: column;
  gap: 4px;
}

.drawer.open { display: flex; }

.drawer a {
  color: var(--paper-muted);
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 15px;
}

.drawer a.on,
.drawer a:hover {
  color: var(--amber);
  background: var(--amber-glow);
}

/* ── 粘性下载条 ── */
.ads-pin {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 1090;
  background: rgba(12, 12, 20, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s, opacity 0.3s;
}

.ads-pin.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#ads-sticky {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 6px 10px;
  max-width: var(--max);
  margin: 0 auto;
}

/* ── 广告位通用 ── */
#ads,
#ads-sticky {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 8px 12px;
}

.ads-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(25% - 9px);
  min-width: 68px;
  max-width: 80px;
}

.ads-cell a {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
}

.ads-cell img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ads-cell img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(232, 184, 74, 0.15);
}

.ads-cap {
  margin-top: 4px;
  font-size: 10px;
  color: var(--paper-dim);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── 主容器 ── */
.shell {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-h);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 14px;
}

/* ── 下载区 ── */
.dl-band {
  padding: 18px 0 8px;
  text-align: center;
}

.dl-band-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.dl-band-label::before,
.dl-band-label::after {
  content: "—";
  margin: 0 8px;
  color: var(--paper-dim);
}

/* ── 首屏 ── */
.mast {
  padding: 28px 0 36px;
  position: relative;
}

.mast-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--paper-dim);
  letter-spacing: 0.1em;
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.mast h1 {
  font-size: clamp(26px, 6.5vw, 38px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  color: var(--paper);
}

.mast h1 strong {
  display: block;
  font-size: 0.55em;
  font-weight: 500;
  color: var(--amber);
  margin-top: 8px;
  letter-spacing: 0.04em;
}

.mast-lead {
  font-size: 14px;
  color: var(--paper-muted);
  max-width: 640px;
  margin-bottom: 22px;
}

.mast-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.stat {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}

.stat b {
  display: block;
  font-size: 20px;
  color: var(--amber);
  font-weight: 800;
  line-height: 1.2;
}

.stat span {
  font-size: 11px;
  color: var(--paper-dim);
  margin-top: 4px;
  display: block;
}

/* ── 章节标题 ── */
.sec-hd {
  margin: 40px 0 20px;
  padding-left: 14px;
  border-left: 3px solid var(--amber);
}

.sec-hd .idx {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--paper-dim);
  margin-bottom: 4px;
}

.sec-hd h2 {
  font-size: clamp(20px, 4.5vw, 26px);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}

.sec-hd p {
  font-size: 13px;
  color: var(--paper-dim);
}

/* ── 3:7 图文模块 ── */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
  align-items: start;
}

.split-txt {
  order: 2;
}

.split-img {
  order: 1;
}

.split-txt h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--paper);
}

.split-txt p {
  font-size: 14px;
  color: var(--paper-muted);
  margin-bottom: 10px;
}

.split-txt p:last-child { margin-bottom: 0; }

.split-txt ul {
  margin: 8px 0 0 18px;
  font-size: 13px;
  color: var(--paper-muted);
}

.split-txt li { margin-bottom: 4px; }

.phone-frame {
  position: relative;
  max-width: 280px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--ink-elevated);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--line);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--rose), var(--sky));
  z-index: 2;
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}

/* ── 文案面板 ── */
.prose {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin-bottom: 28px;
}

.prose h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--amber);
}

.prose p {
  font-size: 14px;
  color: var(--paper-muted);
  margin-bottom: 10px;
}

.prose p:last-child { margin-bottom: 0; }

/* ── 优势网格 ── */
.pill-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 32px;
}

.pill {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.pill h4 {
  font-size: 14px;
  color: var(--amber);
  margin-bottom: 6px;
}

.pill p {
  font-size: 13px;
  color: var(--paper-dim);
  line-height: 1.65;
}

/* ── FAQ ── */
.faq-list { margin-bottom: 36px; }

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  padding: 16px 28px 16px 0;
  cursor: pointer;
  position: relative;
  font-family: inherit;
  line-height: 1.5;
}

.faq-q::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--amber);
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.25s;
}

.faq-item.open .faq-q::after {
  content: "−";
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-a-in {
  padding: 0 0 16px;
  font-size: 13px;
  color: var(--paper-dim);
  line-height: 1.75;
}

/* ── CTA 条 ── */
.cta-bar {
  text-align: center;
  padding: 32px 18px;
  margin: 20px 0 36px;
  background: linear-gradient(160deg, var(--ink-card), var(--ink-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.cta-bar h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.cta-bar p {
  font-size: 13px;
  color: var(--paper-dim);
  margin-bottom: 16px;
}

.btn-gold {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--amber), var(--amber-dim));
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.btn-gold:hover { color: var(--ink); opacity: 0.92; }

.btn-line {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid var(--line);
  color: var(--paper-muted);
  font-size: 13px;
  border-radius: 999px;
  margin-left: 8px;
}

.btn-line:hover { border-color: var(--amber); color: var(--amber); }

/* ── 面包屑 ── */
.crumb {
  padding: 16px 0 8px;
  font-size: 12px;
  color: var(--paper-dim);
}

.crumb a { color: var(--paper-muted); }
.crumb span { margin: 0 6px; }

/* ── 子页 ── */
.page-hd {
  padding: 20px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.page-hd h1 {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 700;
  margin-bottom: 8px;
}

.page-hd p {
  font-size: 13px;
  color: var(--paper-dim);
}

.legal {
  padding-bottom: 48px;
}

.legal h2 {
  font-size: 16px;
  color: var(--amber);
  margin: 24px 0 10px;
}

.legal h2:first-child { margin-top: 0; }

.legal p,
.legal li {
  font-size: 14px;
  color: var(--paper-muted);
  margin-bottom: 10px;
}

.legal ul {
  margin: 0 0 12px 20px;
}

/* ── 错误页 ── */
.err-box {
  text-align: center;
  padding: 48px 16px 60px;
}

.err-code {
  font-size: 72px;
  font-weight: 900;
  color: var(--amber);
  line-height: 1;
  opacity: 0.35;
}

.err-box h1 {
  font-size: 22px;
  margin: 12px 0 10px;
}

.err-box p {
  font-size: 14px;
  color: var(--paper-dim);
  margin-bottom: 24px;
}

/* ── 页脚 ── */
.ft {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  margin-top: 20px;
}

.ft-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.ft-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ft-brand img { width: 28px; height: 28px; border-radius: 6px; }
.ft-brand span { font-weight: 700; font-size: 15px; }

.ft-desc {
  font-size: 12px;
  color: var(--paper-dim);
  line-height: 1.7;
}

.ft-col h4 {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 10px;
}

.ft-col a {
  display: block;
  font-size: 13px;
  color: var(--paper-dim);
  padding: 4px 0;
}

.ft-col a:hover { color: var(--amber); }

.ft-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--paper-dim);
  text-align: center;
  line-height: 1.8;
}

/* ── 纯文案 SEO 模块 ── */
.prose-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.seo-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.seo-col {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
}

.seo-col h3 {
  font-size: 15px;
  color: var(--amber);
  margin-bottom: 10px;
}

.seo-col p {
  font-size: 13px;
  color: var(--paper-muted);
  margin-bottom: 8px;
  line-height: 1.75;
}

.seo-col p:last-child { margin-bottom: 0; }

.steps {
  counter-reset: step;
  margin-bottom: 32px;
}

.step-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.step-item:last-child { border-bottom: none; }

.step-item::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  background: var(--amber-glow);
  color: var(--amber);
  font-weight: 800;
  font-size: 14px;
  border-radius: 50%;
  border: 1px solid rgba(232, 184, 74, 0.3);
}

.step-body h4 {
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--paper);
}

.step-body p {
  font-size: 13px;
  color: var(--paper-dim);
  line-height: 1.7;
}

.img-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto 32px;
}

.img-duo .phone-frame { max-width: 100%; }

.channel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 32px;
}

.channel-tags span {
  font-size: 12px;
  color: var(--paper-muted);
  background: var(--ink-card);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ── 桌面增强 ── */
@media (min-width: 640px) {
  .seo-cols { grid-template-columns: 1fr 1fr; }
  .mast-stats { grid-template-columns: repeat(4, 1fr); }
  .pill-grid { grid-template-columns: repeat(2, 1fr); }
  .ft-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 768px) {
  .nav { display: flex; }
  .hdr-cta { display: inline-block; }
  .burger { display: none; }

  .split {
    grid-template-columns: 3fr 7fr;
    gap: 28px;
    align-items: center;
  }

  .split-txt { order: 1; }
  .split-img { order: 2; }

  .split.reverse .split-txt { order: 2; }
  .split.reverse .split-img { order: 1; }

  .phone-frame { max-width: 100%; }

  .split-img .img-duo {
    max-width: 100%;
    margin-bottom: 0;
  }
}

@media (min-width: 900px) {
  .pill-grid { grid-template-columns: repeat(3, 1fr); }
}
