/* dy-s.lat 抖阴官方网站 — 全新视觉与排版 */
:root {
  --bg: #08080c;
  --surface: #13131c;
  --surface-2: #1c1c2a;
  --line: #2e2e42;
  --text: #ececf2;
  --muted: #9494ad;
  --cyan: #00d4ff;
  --pink: #ff1a6b;
  --gold: #ffc14d;
  --radius: 14px;
  --wrap: 1120px;
  --nav-h: 58px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--pink); }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }

/* 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 1000;
  min-height: var(--nav-h);
  background: rgba(8, 8, 12, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  min-height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: relative;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 34px; width: auto; max-width: none; object-fit: contain; }
.topbar .brand img { height: 36px; }

.menu {
  display: flex; flex-wrap: nowrap; gap: 4px; align-items: center;
  flex-shrink: 1; justify-content: flex-end;
}
.menu a {
  color: var(--muted); font-size: .88rem; font-weight: 500;
  padding: 6px 12px; border-radius: 999px; transition: .2s;
}
.menu a:hover, .menu a.on { color: var(--text); background: var(--surface-2); }
.menu a.cta-nav {
  background: linear-gradient(135deg, var(--pink), #c4004f);
  color: #fff !important; font-weight: 600;
}
.menu a.cta-nav:hover { opacity: .9; color: #fff !important; }

.menu-btn {
  display: none; background: none; border: none;
  color: var(--text); font-size: 1.35rem; cursor: pointer;
}

/* 下载广告区 */
.download-ad {
  scroll-margin-top: calc(var(--nav-h) + 10px);
  padding: 14px 0;
  background: linear-gradient(180deg, rgba(0, 212, 255, .06) 0%, transparent 100%);
}

.download-ad-inner {
  background: var(--surface);
  border: 1px solid rgba(0, 212, 255, .28);
  border-radius: var(--radius);
  padding: 18px 16px 14px;
  text-align: center;
}

.download-ad-badge {
  display: inline-block; font-size: .72rem; font-weight: 700;
  color: var(--gold); letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 8px;
}

.download-ad-title {
  font-size: 1.15rem; font-weight: 700; margin-bottom: 4px;
}

.download-ad-desc { font-size: .86rem; color: var(--muted); margin-bottom: 14px; }

.download-ad-list, .download-ad #ads, .download-ad-fixed #ads {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 10px; background: transparent;
}

.download-ad #ads > div, .download-ad-fixed #ads > div {
  width: 70px; display: flex; flex-direction: column; align-items: center;
}

.download-ad #ads img, .download-ad-fixed #ads img {
  width: 65px; height: 65px; border-radius: 16px; object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .45);
  transition: transform .18s, box-shadow .18s;
}

.download-ad #ads a:hover img, .download-ad-fixed #ads a:hover img {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0, 212, 255, .25);
}

.download-ad #ads .caption, .download-ad-fixed #ads .caption {
  margin-top: 5px; font-size: 11px; color: var(--muted);
  max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.download-ad.download-ad-highlight .download-ad-inner {
  animation: adPulse 1.1s ease;
}

@keyframes adPulse {
  50% { box-shadow: 0 0 0 3px rgba(255, 26, 107, .35); border-color: var(--pink); }
}

.download-ad-fixed {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 999;
  padding: 5px 0; background: rgba(8, 8, 12, .97);
  border-bottom: 1px solid var(--line);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px); transition: .22s;
}

.download-ad-fixed.is-visible {
  opacity: 1; visibility: visible; pointer-events: auto; transform: none;
}

.download-ad-fixed .download-ad-inner {
  padding: 6px 10px; border: none; background: transparent; box-shadow: none;
}

.download-ad-fixed #ads img { width: 48px; height: 48px; border-radius: 12px; }

/* 首屏 Hero — 文案 70% + 配图 30% */
.splash {
  padding: 40px 0 36px;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(255, 26, 107, .09), transparent),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(0, 212, 255, .08), transparent);
}

.splash-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.splash-copy {
  min-width: 0;
}

.phone-frame {
  position: relative;
  width: 100%;
  max-width: 260px;
  margin-left: auto;
  margin-right: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  background: #000;
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.phone-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, rgba(0, 0, 0, .75));
  pointer-events: none;
  z-index: 1;
}

.play-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 26, 107, .92);
  box-shadow: 0 0 0 10px rgba(255, 26, 107, .2);
  z-index: 2;
  pointer-events: none;
}

.play-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border: 10px solid transparent;
  border-left: 16px solid #fff;
}

.splash-copy h1 {
  font-size: clamp(1.5rem, 3.8vw, 2.1rem);
  line-height: 1.35;
  margin-bottom: 16px;
  font-weight: 800;
}

.splash-copy h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.splash-lead {
  color: var(--muted);
  font-size: clamp(.92rem, 2vw, 1rem);
  margin-bottom: 22px;
  max-width: 100%;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.tag-row span {
  font-size: .78rem; padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: var(--surface);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
.btn-main {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: .92rem;
  background: linear-gradient(135deg, var(--pink), #a80045); color: #fff !important;
}
.btn-main:hover { opacity: .92; color: #fff !important; }
.btn-ghost {
  display: inline-flex; padding: 12px 20px; border-radius: 10px;
  border: 1px solid var(--line); color: var(--text) !important; font-size: .92rem;
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan) !important; }

/* 数据条 */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.metric {
  text-align: center; padding: 16px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}

.metric strong { display: block; font-size: 1.35rem; color: var(--cyan); margin-bottom: 2px; }
.metric span { font-size: .8rem; color: var(--muted); }

/* 区块通用 */
.block { padding: 52px 0; }
.block.alt { background: var(--surface); border-block: 1px solid var(--line); }

.block-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.block-head .label {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; color: var(--pink); margin-bottom: 8px;
}
.block-head h2 { font-size: 1.55rem; margin-bottom: 10px; }
.block-head p { color: var(--muted); font-size: .94rem; }

/* Bento 亮点 */
.bento {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}

.bento-item {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 18px;
  transition: border-color .2s, transform .2s;
}

.bento-item:hover { border-color: rgba(0, 212, 255, .35); transform: translateY(-2px); }
.bento-item.wide { grid-column: span 2; }

.bento-num {
  font-size: .75rem; font-weight: 800; color: var(--pink);
  margin-bottom: 8px; opacity: .8;
}

.bento-item h3 { font-size: 1rem; margin-bottom: 8px; }
.bento-item p { font-size: .88rem; color: var(--muted); line-height: 1.7; }

/* 频道磁贴 */
.tile-wall {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}

.tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 9 / 14;
  min-height: 200px;
  max-height: 340px;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.tile-cap {
  position: absolute; inset: auto 0 0 0; padding: 28px 14px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .88));
}

.tile-cap h3 { font-size: .95rem; margin-bottom: 2px; }
.tile-cap p { font-size: .78rem; color: #bbb; }

.chip-bar {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-top: 22px;
}

.chip {
  font-size: .8rem; padding: 6px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}
.chip:hover { color: var(--cyan); border-color: rgba(0, 212, 255, .4); }

/* 故事卡片 */
.story-list { display: flex; flex-direction: column; gap: 20px; }

.story {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.story:last-child { border-bottom: none; }
.story.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); }
.story.flip .story-shot { order: 2; }
.story.flip .story-body { order: 1; }

.story-shot {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
  max-width: 240px;
  width: 100%;
  justify-self: center;
}

.story.flip .story-shot { justify-self: end; }
.story:not(.flip) .story-shot { justify-self: start; }

.story-shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.story-body { min-width: 0; }

.story-body h3 { font-size: 1.1rem; color: var(--cyan); margin-bottom: 10px; }
.story-body p { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }

/* 片库三栏 */
.trio {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}

.trio-card {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}

.trio-card img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  object-position: top;
  max-height: 300px;
}

.trio-card .body { padding: 16px; }
.trio-card h3 { font-size: .95rem; margin-bottom: 6px; }
.trio-card p { font-size: .85rem; color: var(--muted); }

/* 账户横滑 */
.scroll-cards {
  display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}

.scroll-cards::-webkit-scrollbar { height: 4px; }
.scroll-cards::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.mini-card {
  flex: 0 0 200px; scroll-snap-align: start;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}

.pair-shot img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: top;
}

.mini-card img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  object-position: top;
  max-height: 200px;
}
.mini-card .body { padding: 12px; }
.mini-card h3 { font-size: .88rem; margin-bottom: 4px; }
.mini-card p { font-size: .78rem; color: var(--muted); }

/* 安装步骤 */
.steps { counter-reset: step; max-width: 720px; margin: 0 auto; }

.step {
  position: relative; padding-left: 48px; margin-bottom: 28px;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  color: #000;
  font-weight: 800;
  font-size: .85rem;
}

.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: .9rem; color: var(--muted); }

/* 长文 SEO */
.prose-zone {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}

.prose-box {
  background: var(--surface-2); border-left: 3px solid var(--pink);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 20px;
}

.prose-box h3 { font-size: 1rem; margin-bottom: 10px; }
.prose-box p { font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.prose-box p:last-child { margin-bottom: 0; }

.guide-long { max-width: 800px; margin: 0 auto; }
.guide-long h2 { font-size: 1.4rem; margin-bottom: 14px; }
.guide-long h3 { font-size: 1.08rem; margin: 28px 0 10px; color: var(--cyan); }
.guide-long p, .guide-long li { font-size: .92rem; color: var(--muted); }
.guide-long ul, .guide-long ol { margin: 10px 0 16px 22px; }
.guide-long li { margin-bottom: 5px; }

.pair-shot {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0;
}

.pair-shot figure {
  border-radius: 10px; overflow: hidden; border: 1px solid var(--line);
  background: var(--surface-2);
}

.pair-shot figcaption {
  padding: 8px 12px; font-size: .8rem; color: var(--muted); text-align: center;
  border-top: 1px solid var(--line);
}

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.faq {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}

.faq summary {
  padding: 14px 16px; cursor: pointer; font-weight: 600; font-size: .9rem;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }
.faq[open] summary { color: var(--cyan); border-bottom: 1px solid var(--line); }

.faq .ans { padding: 14px 16px; font-size: .86rem; color: var(--muted); line-height: 1.7; }

/* 子页 */
.crumb { padding: 14px 0; font-size: .85rem; color: var(--muted); }
.crumb a { color: var(--cyan); }
.crumb span { margin: 0 6px; }

.page-hero {
  padding: 40px 0 28px; text-align: center;
  background: var(--surface); border-bottom: 1px solid var(--line);
}

.page-hero h1 { font-size: 1.75rem; margin-bottom: 6px; }
.page-hero p { color: var(--muted); font-size: .9rem; }

.legal { padding: 36px 0 56px; max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 1.1rem; margin: 26px 0 10px; color: var(--cyan); }
.legal p, .legal li { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.legal ul, .legal ol { margin: 8px 0 14px 22px; }

/* 错误页 */
.err-page {
  min-height: 50vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 40px 18px;
}

.err-code {
  font-size: 4.5rem; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.err-page h1 { font-size: 1.4rem; margin: 12px 0 8px; }
.err-page p { color: var(--muted); margin-bottom: 20px; font-size: .92rem; }

/* 页脚 */
.footer {
  padding: 44px 0 24px; border-top: 1px solid var(--line);
  background: var(--surface);
}

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

.footer-grid h4 { font-size: .88rem; margin-bottom: 12px; }
.footer-grid p { font-size: .85rem; color: var(--muted); line-height: 1.7; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { font-size: .85rem; color: var(--muted); }
.footer-grid a:hover { color: var(--cyan); }

.footer-end {
  text-align: center; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--muted);
}

.footer-grid .brand img { height: 32px; width: auto; max-width: none; }

/* 响应式 */
@media (max-width: 1024px) {
  .menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 999;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
  }

  .menu.open { display: flex; }
  .menu a { padding: 10px 14px; border-radius: 8px; }
  .menu-btn { display: block; flex-shrink: 0; }

  .bento { grid-template-columns: 1fr 1fr; }
  .bento-item.wide { grid-column: span 2; }
}

@media (max-width: 900px) {
  .splash-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .phone-frame {
    max-width: 220px;
    margin: 0 auto;
  }

  .tag-row, .btn-row { justify-content: center; }
  .splash-lead { margin-left: auto; margin-right: auto; }

  .story,
  .story.flip {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .story.flip .story-shot,
  .story.flip .story-body { order: unset; }

  .story-shot {
    max-width: 200px;
    margin: 0 auto;
    justify-self: center !important;
  }

  .tile-wall, .trio { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .prose-zone, .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .splash { padding: 28px 0 32px; }
  .block { padding: 40px 0; }
  .bento, .bento-item.wide { grid-template-columns: 1fr; }
  .bento-item.wide { grid-column: span 1; }
  .tile-wall, .trio { grid-template-columns: 1fr; }
  .pair-shot { grid-template-columns: 1fr; }
  .phone-frame { max-width: 200px; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric { padding: 12px 8px; }
  .metric strong { font-size: 1.15rem; }
}
