/* =====================================================
   抖存 · dy-download.ynyg.site
   简约但不寡淡：留白 + 克制的动效 + 暖黑主色
   ===================================================== */

:root {
  --ink: #17181c;
  --ink-2: #4c4f58;
  --ink-3: #8a8d96;
  --paper: #fbfaf7;
  --card: #ffffff;
  --line: #e9e6df;
  --accent: #fe2c55;
  --accent-deep: #d91f44;
  --ok: #0a9c66;
  --err: #d92d20;
  --radius: 16px;
  --shadow-lg: 0 24px 60px -18px rgba(23, 24, 28, .22);
  --shadow-sm: 0 10px 30px -12px rgba(23, 24, 28, .14);
  --ease-out: cubic-bezier(.22, .61, .21, 1);
}

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

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 85% -120px, rgba(254, 44, 85, .07), transparent 60%),
    radial-gradient(700px 420px at -140px 340px, rgba(255, 190, 60, .08), transparent 60%),
    var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.wrap-narrow { max-width: 780px; }

::selection { background: rgba(254, 44, 85, .18); }

/* ---------- 入场动效（JS 加 .in 触发） ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  * , *::before, *::after { animation-duration: .001s !important; }
}

/* ============ 导航 ============ */
.site-head {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(251, 250, 247, .78);
  border-bottom: 1px solid rgba(233, 230, 223, .8);
}
.nav-row { display: flex; align-items: center; gap: 28px; height: 62px; }
.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 17px; letter-spacing: .5px;
  color: var(--ink); text-decoration: none;
}
.logo-mark {
  display: grid; place-items: center;
  width: 27px; height: 27px; border-radius: 8px;
  background: var(--ink); color: #fff;
}
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  color: var(--ink-2); text-decoration: none; font-size: 15px;
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--accent); border-radius: 2px;
  transition: right .3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }
.nav-cta {
  font-size: 14px; text-decoration: none; color: #fff;
  background: var(--ink); padding: 8px 18px; border-radius: 999px;
  transition: transform .25s var(--ease-out), background .25s;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }

/* ============ 首屏 ============ */
.hero { text-align: center; padding-top: clamp(56px, 9vw, 104px); }

.hero-kicker {
  display: inline-block;
  font-size: 13px; letter-spacing: .35em; text-indent: .35em;
  color: var(--accent); font-weight: 600;
}

.hero-title {
  margin-top: 20px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.16; letter-spacing: -.01em; font-weight: 800;
}
.hero-title em {
  font-style: normal; white-space: nowrap;
  background: linear-gradient(100deg, #fe2c55 10%, #ff7a45 55%, #ffb02e 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-sub {
  margin: 22px auto 0; max-width: 540px;
  color: var(--ink-2); font-size: clamp(15px, 2.2vw, 17.5px);
}

/* ---------- 解析框 ---------- */
.dl-box {
  margin: 36px auto 0; max-width: 720px;
  background: var(--card); border-radius: 22px;
  padding: 14px 14px 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  text-align: left;
}
.dl-input-row { display: flex; align-items: center; gap: 10px; }
.link-ico { flex: none; color: var(--ink-3); margin-left: 10px; }

#urlInput {
  flex: 1; min-width: 0;
  border: none; outline: none;
  font-size: 15.5px; color: var(--ink);
  background: transparent; height: 52px;
}
#urlInput::placeholder { color: #b4b6bd; }

.btn-clear {
  flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; border: none; border-radius: 50%;
  background: transparent; color: var(--ink-3); cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-clear:hover { background: #f1efe9; color: var(--ink); }

.btn-go {
  flex: none; cursor: pointer;
  border: none; border-radius: 999px;
  background: linear-gradient(135deg, #fe2c55, #ff5c39);
  color: #fff; font-size: 15.5px; font-weight: 600;
  height: 50px; padding: 0 30px; letter-spacing: 1px;
  box-shadow: 0 10px 26px -8px rgba(254, 44, 85, .55);
  transition: transform .25s var(--ease-out), box-shadow .25s, filter .2s;
}
.btn-go:hover { transform: translateY(-1.5px); filter: brightness(1.05);
  box-shadow: 0 14px 30px -8px rgba(254, 44, 85, .6); }
.btn-go:active { transform: translateY(0) scale(.985); }

/* 提取中状态 */
.btn-go.busy {
  pointer-events: none;
  color: transparent; position: relative;
}
.btn-go.busy::after {
  content: ""; position: absolute; inset: 0;
  margin: auto; width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.dl-hint { min-height: 24px; padding: 2px 12px 0; font-size: 13.5px;
  opacity: 0; transform: translateY(-3px); transition: all .3s var(--ease-out); }
.dl-hint.show { opacity: 1; transform: none; }
.dl-hint.ok   { color: var(--ok); }
.dl-hint.err  { color: var(--err); }

.dl-note {
  padding: 6px 12px 4px; font-size: 12.5px; color: var(--ink-3);
}

/* ---------- 卖点行 ---------- */
.hero-points {
  list-style: none; display: flex; align-items: center; justify-content: center;
  gap: 18px; margin-top: 26px;
  font-size: 14px; color: var(--ink-2); letter-spacing: .06em;
}
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }

/* ---------- 手机模型 ---------- */
.phone-wrap { position: relative; margin: clamp(48px, 7vw, 76px) auto 0; width: fit-content; }
.phone-glow {
  position: absolute; inset: -40px -80px; z-index: -1;
  background:
    radial-gradient(closest-side at 50% 42%, rgba(254,44,85,.16), transparent 70%),
    radial-gradient(closest-side at 62% 62%, rgba(255,176,46,.14), transparent 70%);
  filter: blur(8px);
  animation: breathe 5.5s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .9; }
  50%      { transform: scale(1.06); opacity: 1; }
}

.phone {
  width: clamp(240px, 34vw, 296px);
  aspect-ratio: 380 / 500;
  border-radius: 42px;
  background: #101014;
  padding: 11px;
  box-shadow:
    inset 0 0 0 2px #2a2a31,
    var(--shadow-lg);
  animation: phoneFloat 6s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-10px) rotate(-.4deg); }
}

.phone-notch {
  position: absolute; z-index: 3; top: 21px; left: 50%;
  translate: -50% 0;
  width: 84px; height: 22px; border-radius: 12px; background: #101014;
}
.phone-screen {
  position: relative; overflow: hidden;
  width: 100%; height: 100%;
  border-radius: 32px;
  background: #000;
}
.phone-screen > img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 62%;
  display: block;
}
.screen-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,.06) 46%);
}
.save-card {
  position: absolute; left: 14px; bottom: 44px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(22, 22, 26, .68);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px; padding: 9px 14px 9px 10px;
  color: #fff; max-width: 82%;
  animation: cardIn .9s var(--ease-out) both, cardNudge 3.2s ease-in-out 1.2s infinite;
}
@keyframes cardIn   { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cardNudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.save-ring {
  position: relative; flex: none; width: 34px; height: 34px;
}
.save-ring::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p, 0) * 1%), rgba(255,255,255,.18) 0);
  mask: radial-gradient(farthest-side, transparent 62%, #000 64%);
  -webkit-mask: radial-gradient(farthest-side, transparent 62%, #000 64%);
}
.save-ring.done::before { background: conic-gradient(#31c48d calc(var(--p,100)*1%), rgba(255,255,255,.18) 0); }
.save-ring i {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-style: normal; font-size: 10.5px; font-weight: 600; color: #fff;
}
.save-txt { line-height: 1.35; min-width: 0; }
.save-txt b { display: block; font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.save-txt small { font-size: 11px; color: rgba(255,255,255,.72); }

.screen-cap {
  position: absolute; left: 0; right: 0; bottom: 14px;
  text-align: center; color: rgba(255,255,255,.92);
  font-size: 11.5px; letter-spacing: .12em;
  opacity: 0; transition: opacity .5s ease .2s;
}
.screen-cap.show { opacity: 1; }

/* 浮动小标签 */
.float-chip {
  position: absolute; z-index: 2;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 15px;
  font-size: 13px; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow-sm);
  animation: chipFloat 4.5s ease-in-out infinite;
}
.chip-a { top: 16%; left: calc(50% - 232px); animation-delay: .6s; }
.chip-b { bottom: 20%; right: calc(50% - 238px); color: var(--ok); animation-delay: 1.8s; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ============ 分区通用 ============ */
.sec { padding-top: clamp(72px, 11vw, 128px); }
.sec-head { text-align: center; margin-bottom: clamp(36px, 6vw, 56px); }
.sec-head h2 {
  font-size: clamp(26px, 4.2vw, 38px); font-weight: 800; letter-spacing: -.01em;
}
.sec-head p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- 三步 ---------- */
.steps {
  list-style: none; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.step {
  position: relative;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px 26px;
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.step-num {
  display: block;
  font-size: 13px; font-weight: 700; letter-spacing: .18em;
  color: var(--accent); margin-bottom: 14px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-2); }

/* 步骤之间的连接线（桌面） */
.steps li:not(:first-child)::before {
  content: ""; position: absolute;
  top: 44px; left: -23px; width: 24px;
  border-top: 2px dashed #ddd9cf;
}

/* ---------- 特点网格 ---------- */
.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
.feat:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: #ded9cc; }
.feat-ico {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  color: var(--accent);
  background:
    radial-gradient(circle at 30% 25%, rgba(254,44,85,.12), rgba(254,44,85,.05));
  margin-bottom: 16px;
}
.feat h3 { font-size: 17px; margin-bottom: 7px; }
.feat p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.qa {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  transition: box-shadow .3s;
}
.qa[open] { box-shadow: var(--shadow-sm); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 22px;
  font-size: 15.5px; font-weight: 600;
  user-select: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa-arrow {
  flex: none; position: relative; width: 22px; height: 22px;
  border: 1.5px solid var(--line); border-radius: 50%;
  transition: transform .3s var(--ease-out), border-color .3s, background .3s;
}
.qa-arrow::before, .qa-arrow::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 9px; height: 1.8px; background: var(--ink-3); border-radius: 2px;
  translate: -50% -50%;
  transition: rotate .3s var(--ease-out), background .3s;
}
.qa-arrow::after { rotate: 90deg; }
.qa[open] .qa-arrow { border-color: var(--accent); background: rgba(254,44,85,.06); }
.qa[open] .qa-arrow::before,
.qa[open] .qa-arrow::after { background: var(--accent); }
.qa[open] .qa-arrow::after { rotate: 0deg; }
.qa > p { padding: 0 22px 19px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- 底部 CTA ---------- */
.cta-final { margin-top: clamp(80px, 12vw, 140px); }
.cta-inner {
  position: relative; overflow: hidden;
  text-align: center;
  background: linear-gradient(120deg, #1a1b20, #26272e 58%, #30313a);
  border-radius: 26px;
  padding: clamp(48px, 8vw, 76px) 28px;
  color: #fff;
}
.cta-inner::before, .cta-inner::after {
  content: ""; position: absolute; border-radius: 50%;
}
.cta-inner::before {
  width: 420px; height: 420px; left: -160px; top: -220px;
  background: radial-gradient(circle, rgba(254,44,85,.35), transparent 65%);
}
.cta-inner::after {
  width: 380px; height: 380px; right: -150px; bottom: -200px;
  background: radial-gradient(circle, rgba(255,176,46,.28), transparent 65%);
}
.cta-inner h2 { font-size: clamp(26px, 4.4vw, 40px); font-weight: 800; position: relative; }
.cta-inner p { margin: 12px 0 30px; color: rgba(255,255,255,.75); font-size: 15.5px; position: relative; }
.btn-light {
  position: relative; display: inline-block;
  background: #fff; color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 15.5px;
  padding: 14px 38px; border-radius: 999px;
  box-shadow: 0 14px 34px -10px rgba(0,0,0,.5);
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(0,0,0,.55); }

/* ---------- 页脚 ---------- */
.site-foot {
  margin-top: clamp(56px, 9vw, 88px);
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
}
.foot-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.site-foot p { font-size: 13px; color: var(--ink-3); }
.foot-note { text-align: right; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 34px; z-index: 99;
  translate: -50% 16px;
  background: var(--ink); color: #fff;
  font-size: 14px; padding: 11px 22px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out), translate .35s var(--ease-out);
}
.toast.show { opacity: 1; translate: -50% 0; }

/* =====================================================
   响应式
   ===================================================== */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .steps li:not(:first-child)::before { display: none; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 平板~手机宽度：标签收进内侧，避免撑出横向滚动 */
@media (max-width: 560px) {
  body { overflow-x: hidden; }
  .chip-a { left: -6px; top: 10%; }
  .chip-b { right: -6px; bottom: 14%; font-size: 12.5px; padding: 6px 13px; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 36px); }
  .nav-links { display: none; }
  .nav-row { justify-content: space-between; }

  /* 解析框改为上下堆叠 */
  .dl-box { padding: 12px; border-radius: 18px; }
  .dl-input-row { flex-wrap: wrap; gap: 8px; }
  .link-ico { display: none; }
  #urlInput {
    flex: 1 1 100%; height: 46px;
    border: 1.5px dashed #e3dfd5; border-radius: 12px;
    padding: 0 40px 0 14px; font-size: 15px;   /* 右侧留出清空钮位置 */
    transition: border-color .25s;
  }
  #urlInput:focus { border-color: var(--accent); }
  .dl-input-row { position: relative; }
  .btn-clear {
    position: absolute;
    top: 23px; right: 10px;                    /* 悬浮在输入框行内右侧 */
    transform: translateY(-50%);
    background: var(--card); box-shadow: 0 2px 8px rgba(0,0,0,.08);
    width: 28px; height: 28px;
    z-index: 2;
  }
  .btn-go { flex: 1 1 100%; height: 48px; }

  .hero-points { flex-wrap: wrap; gap: 10px; row-gap: 6px; }
  .dot-sep { display: none; }
  .hero-points li:not(.dot-sep) { padding: 0 12px; }

  .phone-wrap { margin-top: 52px; }
  .float-chip { padding: 5px 12px; font-size: 12px; }

  .feat-grid { grid-template-columns: 1fr; gap: 14px; }
  .qa summary { padding: 15px 18px; font-size: 15px; }
  .qa > p { padding: 0 18px 16px; }

  .foot-row { flex-direction: column; align-items: flex-start; }
  .foot-note { text-align: left; }
}

/* 超窄屏兜底 */
@media (max-width: 360px) {
  .btn-go { padding: 0 18px; letter-spacing: 0; }
  .hero-points li:not(.dot-sep) { padding: 0 6px; }
}
