/* 拾日官网 · 与 App 同源的视觉体系：白/灰/近黑，圆角卡片，胶囊按钮 */
:root {
  --bg: #F7F7F8;
  --card: #FFFFFF;
  --ink: #17181A;
  --muted: #8A8A8E;
  --muted-2: #6B6B70;
  --line: rgba(24, 26, 30, .08);
  --radius-card: 20px;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; }

/* 锚点落点预留吸顶导航的高度，标题不被盖住 */
section[id], main[id] { scroll-margin-top: 76px; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 64px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 14.5px; color: var(--muted-2); }
.nav-links a:hover { color: var(--ink); }
.nav .btn { margin-left: 4px; }
@media (max-width: 720px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: #fff;
  font-size: 15px; font-weight: 600;
  padding: 12px 26px; border-radius: 999px;
  border: 1px solid var(--ink);
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.98); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(24, 26, 30, .22); }
.btn-ghost:hover { opacity: 1; border-color: var(--ink); }
.btn-lg { padding: 15px 32px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center;
}
.hero h1 {
  font-size: 46px; font-weight: 700; letter-spacing: .01em;
  line-height: 1.25;
}
.hero p.lead {
  margin-top: 18px; max-width: 34em;
  font-size: 17px; color: var(--muted-2);
}
.hero-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* 手机壳（内放真实界面截图） */
.phone {
  width: 272px; margin: 0 auto;
  background: #17181A;
  border-radius: 42px; padding: 10px;
  box-shadow: 0 24px 60px rgba(18, 22, 28, .18), 0 4px 14px rgba(18, 22, 28, .08);
}
.phone .screen {
  border-radius: 33px; overflow: hidden; background: #F7F7F8;
  aspect-ratio: 9 / 20; /* 真机全屏 9:20（含状态栏与底栏） */
}
.phone .screen img, .phone .screen video { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone .screen iframe { width: 100%; height: 100%; border: 0; display: block; }
.phone-sm { width: 216px; }
.phone-sm .screen { border-radius: 27px; }

@media (max-width: 860px) {
  .hero { padding: 44px 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 34px; }
  .phone { width: 232px; }
}

/* ---------- 通用 section ---------- */
section { padding: 72px 0; }
.sec-head { max-width: 34em; }
.sec-head h2 { font-size: 30px; font-weight: 700; line-height: 1.35; }
.sec-head p { margin-top: 10px; color: var(--muted-2); font-size: 16px; }
@media (max-width: 720px) {
  section { padding: 52px 0; }
  .sec-head h2 { font-size: 24px; }
}

/* ---------- 功能：引导动画 + 联动解说 ---------- */
.cell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 2px rgba(18, 22, 28, .03);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cell-shot { margin-top: 36px; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.cell-shot:hover { transform: none; box-shadow: 0 1px 2px rgba(18, 22, 28, .03); }
.cell-shot .shot { flex: 1; min-height: 0; overflow: hidden; }

/* 左动画右解说，整组居中；翻页时右侧交叉淡入对应说明 */
.cell-shot .shot-guide {
  display: flex; align-items: center; justify-content: center; gap: 56px;
  padding: 40px 48px 36px;
  background: linear-gradient(180deg, #FCFBF7 0%, #F1EBE0 100%); /* 引导页舞台同款底 */
}
.shot-guide .phone { width: min(300px, 82vw); }
.guide-side { flex: 0 1 440px; min-width: 0; }
.guide-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.gprog { margin-top: 12px; display: flex; gap: 6px; }
.gseg { flex: 0 0 34px; height: 3px; border-radius: 2px; background: rgba(24, 26, 30, .12); overflow: hidden; }
.gseg i { display: block; width: 100%; height: 100%; border-radius: 2px; background: #B56E5C; transform: scaleX(0); transform-origin: left; }
.gseg i.done { transform: scaleX(1); opacity: .45; }
.gseg i.run { animation: gfill linear forwards; }
@keyframes gfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.guide-steps { margin-top: 22px; display: grid; }
.gstep {
  grid-area: 1 / 1; min-width: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .45s ease, transform .45s ease, visibility 0s .45s;
}
.gstep.on {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .45s ease, transform .45s ease;
}
.gstep em { font-style: normal; font-size: 12.5px; font-weight: 700; color: #B56E5C; letter-spacing: .08em; }
.gstep h3 { margin-top: 6px; font-size: 19px; font-weight: 650; }
.gstep p { margin-top: 8px; font-size: 14.5px; line-height: 1.75; color: var(--muted-2); max-width: 30em; }
@media (max-width: 620px) {
  .cell-shot .shot-guide { flex-direction: column; gap: 24px; padding: 28px 20px 26px; }
  .guide-side { flex: none; }
  .guide-steps { margin-top: 16px; }
}
/* ---------- 界面预览 ---------- */
.shots {
  margin-top: 40px;
  display: flex; justify-content: center; align-items: flex-start;
  gap: 28px; flex-wrap: wrap;
}
.shots figure { text-align: center; }
.shots figcaption { margin-top: 16px; font-size: 14px; font-weight: 600; }
.shots figcaption small { display: block; margin-top: 3px; font-weight: 400; font-size: 12.5px; color: var(--muted); }

/* ---------- 隐私 ---------- */
.privacy-band { background: #F1F1F3; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.privacy-grid {
  margin-top: 32px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.privacy-item h3 { font-size: 15.5px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.privacy-item h3 svg { width: 17px; height: 17px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.privacy-item p { margin-top: 8px; font-size: 13.5px; color: var(--muted-2); }
.privacy-more { margin-top: 26px; font-size: 14.5px; }
.privacy-more a { border-bottom: 1px solid rgba(24, 26, 30, .3); padding-bottom: 1px; }
.privacy-more a:hover { border-color: var(--ink); }
@media (max-width: 860px) { .privacy-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .privacy-grid { grid-template-columns: 1fr; } }

/* ---------- 下载 ---------- */
.dl-grid {
  margin-top: 36px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.dl-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 26px 24px;
  box-shadow: 0 1px 2px rgba(18, 22, 28, .03);
  display: flex; flex-direction: column; gap: 6px;
}
.dl-card .os { font-size: 16px; font-weight: 650; }
.dl-card .desc { font-size: 13.5px; color: var(--muted-2); flex: 1; }
.dl-card .btn { align-self: flex-start; margin-top: 16px; }
.dl-card .soon {
  align-self: flex-start; margin-top: 16px;
  font-size: 14px; color: var(--muted);
  border: 1px dashed rgba(24, 26, 30, .25); border-radius: 999px; padding: 10px 22px;
}
@media (max-width: 720px) { .dl-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; }
.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px 22px; margin-top: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 650; font-size: 15.5px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; font-size: 14.5px; color: var(--muted-2); }

/* ---------- 页脚 ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 24px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; font-size: 13.5px; color: var(--muted); }
.foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--ink); }
.foot-brand img { width: 22px; height: 22px; border-radius: 6px; }
.foot-links { margin-left: auto; display: flex; gap: 20px; }
.foot-links a:hover { color: var(--ink); }

/* ---------- 入场动效（尊重系统减弱动态设置） ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .7s cubic-bezier(.16, 1, .3, 1) both; }
  .rise-1 { animation-delay: .05s; }
  .rise-2 { animation-delay: .15s; }
  .rise-3 { animation-delay: .25s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
