/* ============================================================
   拉片宝官网 · 版式与组件
   ============================================================ */

/* ============ 导航：hero 上透明深色 → 贴附后白毛玻璃 ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  transition: background-color var(--t-nav) var(--ease-system);
}
.nav::after { /* 贴附态发丝线 */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: rgba(0, 0, 0, .1); opacity: 0;
  transition: opacity var(--t-nav) var(--ease-system);
}
.nav-inner {
  max-width: var(--w-max); height: 100%; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; gap: 28px;
}
.nav-logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 600; color: #f5f5f7;
  transition: color var(--t-nav) var(--ease-system);
}
.nav-logo img { width: 22px; height: 22px; border-radius: 5px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a {
  font-size: 12px; font-weight: 400; color: rgba(245, 245, 247, .82);
  line-height: var(--nav-h); letter-spacing: -.01em;
  transition: color var(--t-fast) linear;
}
.nav-links a:hover { color: #fff; }
.nav-cta { margin-left: 4px; align-self: center; }
.nav .btn-sm { font-size: 12px; padding: 6px 14px; line-height: 1; }
.nav-links { align-items: center; }

/* 贴附态：白毛玻璃 + 墨黑文字（apple 实测：rgba(250,250,252,.8) + saturate(180%) blur(20px)） */
.nav.is-stuck { background: var(--nav-bg-stuck); -webkit-backdrop-filter: var(--nav-blur); backdrop-filter: var(--nav-blur); }
.nav.is-stuck::after { opacity: 1; }
.nav.is-stuck .nav-logo { color: var(--c-ink); }
.nav.is-stuck .nav-links a { color: rgba(29, 29, 31, .8); }
.nav.is-stuck .nav-links a:hover { color: var(--c-ink); }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 84px) 0 0;
  text-align: center;
}
.hero-eyebrow { color: var(--c-muted-2); }
.hero-title {
  margin-top: 14px;
  background: var(--g-icon);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding-bottom: .08em; /* 防渐变裁字 */
}
.hero-sub {
  max-width: 640px; margin: 22px auto 0;
  font-size: 21px; font-weight: 400; line-height: 1.44;
  color: rgba(245, 245, 247, .82);
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; margin-top: 34px; }
.hero-media { margin-top: 58px; }
.hero-media img { width: min(1120px, 92vw); margin: 0 auto; }

/* ============ 区段头部通用 ============ */
.section-head { text-align: center; }
.section-head .t-headline { margin-top: 12px; }
.section-body {
  max-width: var(--w-text); margin: 22px auto 0; text-align: center;
}
.section-media { margin-top: 56px; }
.section-media img { width: min(1120px, 94vw); margin: 0 auto; }
.section-media--rounded img { border-radius: var(--r-lg); }
.section-foot-caption { margin-top: 28px; text-align: center; }

/* 媒体轻缩放（data-zoom 由 JS 驱动 scale 1.045→1） */
[data-zoom] { will-change: transform; }

/* ============ S1 导入：平台胶囊 ============ */
.platform-row {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: 40px;
}
.chip {
  font-size: 17px; font-weight: 600; line-height: 1;
  padding: 13px 22px; border-radius: var(--r-pill);
  background: var(--c-parchment); color: var(--c-ink-soft);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}
.import-flow {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-top: 46px; flex-wrap: wrap;
}
.import-flow .flow-node {
  font-size: 14px; color: var(--c-muted);
  border: 1px solid var(--c-hairline); border-radius: var(--r-md);
  padding: 12px 18px; background: var(--c-white);
}
.import-flow .flow-node strong { display: block; font-size: 17px; color: var(--c-ink); font-weight: 600; margin-bottom: 2px; }
.import-flow .flow-arrow { color: var(--c-muted-2); font-size: 20px; }

/* ============ S2 时间线：功能点行 ============ */
.point-row {
  display: flex; gap: 44px; justify-content: center; flex-wrap: wrap;
  margin-top: 44px; text-align: center;
}
.point { max-width: 240px; }
.point .point-k { font-size: 21px; font-weight: 600; line-height: 1.3; }
.point .point-v { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--c-muted-2); }
.section--dark .point .point-k { color: var(--c-parchment); }

/* ============ S3 画面：横滑卡片（scroll-snap，原生滚动不劫持） ============ */
.snap-wrap { margin-top: 56px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 4px 0 18px; }
.snap-wrap::-webkit-scrollbar { display: none; }
.snap-track {
  display: flex; gap: 20px;
  padding: 0 max(22px, calc((100vw - var(--w-wide)) / 2 + 22px));
  width: max-content;
}
.snap-card {
  scroll-snap-align: center;
  flex: 0 0 300px; border-radius: var(--r-lg);
  background: var(--c-white); border: 1px solid var(--c-hairline);
  padding: 28px 26px 30px;
}
.snap-card .sc-icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
}
.snap-card .sc-icon svg { width: 22px; height: 22px; }
.snap-card h4 { font-size: 21px; font-weight: 600; line-height: 1.25; }
.snap-card p { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--c-muted); }

/* ============ S5 本地优先：三卡 ============ */
.local-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 1080px; margin: 52px auto 0;
}
.local-card {
  background: var(--c-parchment); border-radius: var(--r-lg);
  padding: 36px 30px; text-align: left;
}
.local-card .lc-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--c-white);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}
.local-card .lc-icon svg { width: 24px; height: 24px; stroke: var(--c-ink); }
.local-card h4 { font-size: 21px; font-weight: 600; }
.local-card p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--c-muted); }

/* ============ S6 动态总结页 ============ */
.recap-toolbar { display: flex; justify-content: center; margin-top: 34px; }
.collage-viewport {
  position: relative; margin: 26px auto 0;
  width: min(1240px, 94vw); aspect-ratio: 1490 / 835;
  overflow: hidden; /* 对应 Swift clipShape：镜头拉远时裁掉溢出 */
}
.collage-scaler { position: absolute; top: 0; left: 0; transform-origin: top left; }
.collage-camera {
  position: relative; width: 1490px; height: 835px;
  background: var(--c-board); border-radius: 24px;
  transform-origin: 747.5px 438px;
}
.tile {
  position: absolute; border-radius: 18px; overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 9px rgba(0, 0, 0, .02);
  will-change: transform, opacity;
}
.tile::after { /* 白描边（Swift: white .58 / 1px） */
  content: ""; position: absolute; inset: 0; border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .58); pointer-events: none;
}
.tile--plain { background: none; box-shadow: none; }
.tile--plain::after { border: 0; }

.tile-title {
  position: absolute; left: 6%; right: 6%; text-align: center;
  font-size: 24px; font-weight: 600; color: var(--c-ink); line-height: 1.18;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tile-title--top { top: 16px; }
.tile-title--bottom { bottom: 16px; }
.tile-title--two { white-space: normal; }

/* 卡片内容小组件 */
.tile-rows { position: absolute; left: 20px; right: 20px; top: 62px; display: flex; flex-direction: column; gap: 10px; }
.tile-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--c-parchment); border-radius: 10px; padding: 9px 12px;
  font-size: 15px; font-weight: 600; color: var(--c-ink-soft);
}
.tile-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g-download); flex: none; }
.tile-row .sub { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--c-muted-2); }

.tile-shot { position: absolute; left: 14px; right: 14px; bottom: 14px; top: 56px;
  border-radius: 10px; overflow: hidden; background: #101012; }
.tile-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tile-shot--full { top: 14px; }

.mini-album { width: 54px; height: 54px; border-radius: 10px; background: var(--g-music); flex: none;
  display: flex; align-items: center; justify-content: center; }
.mini-album svg { width: 26px; height: 26px; fill: #fff; }
.track-rows { position: absolute; left: 16px; right: 16px; top: 20px; display: flex; flex-direction: column; gap: 12px; }
.track-row { display: flex; align-items: center; gap: 10px; }
.track-meta { min-width: 0; }
.track-meta .tm-t { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-meta .tm-d { font-size: 11px; color: var(--c-muted-2); }
.waveform { display: flex; align-items: flex-end; gap: 2px; height: 26px; margin-top: 14px; }
.waveform i { width: 3px; border-radius: 2px; background: linear-gradient(180deg, #4aa7e8, #6f6ae0); }

.big-gradient-icon {
  position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%);
  width: 108px; height: 108px; border-radius: 26px; background: var(--g-download);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(74, 108, 224, .35);
}
.big-gradient-icon svg { width: 52px; height: 52px; stroke: #fff; }
.tile-chip-row { position: absolute; left: 16px; right: 16px; bottom: 64px;
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tile-chip { font-size: 11px; font-weight: 600; color: var(--c-muted);
  background: var(--c-parchment); padding: 5px 10px; border-radius: var(--r-pill); }

.tag-stack { position: absolute; inset: 20px 16px 66px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.tag-pill { font-size: 13px; font-weight: 600; color: #fff; padding: 8px 12px; border-radius: var(--r-pill); text-align: center; }

.frame-strip { position: absolute; left: 16px; right: 16px; top: 24px; bottom: 70px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.frame-cell { border-radius: 8px; overflow: hidden; position: relative; background: #101012; }
.frame-cell img { width: 100%; height: 100%; object-fit: cover; }
.frame-cell.sel::after { content: ""; position: absolute; inset: 0; border: 2px solid #ff3b30; border-radius: 8px; }

.audio-panel { position: absolute; left: 16px; right: 16px; top: 62px; bottom: 16px;
  border-radius: 10px; background: var(--c-parchment); padding: 14px; }
.audio-panel .waveform { height: 62px; margin-top: 8px; }
.audio-panel .io { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--c-muted); }
.audio-panel .io b { color: #ff9500; }

.hero-tile-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #ffee5e, #ffba0a); }
.hero-tile-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-tile-title {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 106px; font-weight: 600; letter-spacing: .01em;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 2px 14px rgba(180, 40, 0, .25), 0 1px 0 rgba(255,255,255,.35);
}
.shortcut-bar {
  position: absolute; inset: 0; border-radius: 18px;
  background: linear-gradient(120deg, #ff9d2e, #ff6a00);
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.keycap {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: #fff;
}
.keycap b {
  font-size: 13px; background: rgba(255, 255, 255, .22); border-radius: 6px;
  padding: 5px 9px; box-shadow: inset 0 -1px 0 rgba(0,0,0,.12);
}
.center-two {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 24px; font-weight: 600; line-height: 1.3; padding: 0 24px;
}
.drag-motif { position: absolute; inset: 20px 16px 62px; }
.drag-motif svg { width: 100%; height: 100%; }

/* ============ S7 规格 ============ */
.specs-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  max-width: var(--w-wide); margin: 56px auto 0;
}
.spec-cell {
  border-top: 1px solid var(--c-hairline); padding-top: 22px; text-align: left;
}
.spec-cell .sk { font-size: 14px; color: var(--c-muted-2); }
.spec-cell .sv { margin-top: 8px; font-size: 21px; font-weight: 600; line-height: 1.35; }
.spec-cell .sn { margin-top: 6px; font-size: 13px; color: var(--c-muted-2); line-height: 1.5; }

/* ============ S8 下载 ============ */
.dl-card {
  max-width: 660px; margin: 48px auto 0;
  background: var(--c-white); border-radius: var(--r-lg);
  padding: 44px 40px 38px; text-align: center;
  border: 1px solid rgba(0, 0, 0, .06);
}
.dl-icon { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 18px; }
.dl-version { font-size: 21px; font-weight: 600; }
.dl-meta { margin-top: 6px; font-size: 14px; color: var(--c-muted-2); }
.dl-btn-row { margin-top: 26px; }
.dl-note { margin-top: 18px; font-size: 13px; color: var(--c-muted-2); line-height: 1.6; }
.dl-note code { font-size: 12px; background: var(--c-parchment); border-radius: 5px; padding: 2px 6px; }
.changelog { max-width: 660px; margin: 40px auto 0; text-align: left; }
.changelog h4 { font-size: 17px; font-weight: 600; margin-bottom: 14px; text-align: center; color: var(--c-muted); }
.changelog li {
  list-style: none; display: flex; gap: 16px; padding: 12px 0;
  border-top: 1px solid rgba(0, 0, 0, .07); font-size: 14px; line-height: 1.5;
}
.changelog li .cv { flex: none; width: 92px; font-weight: 600; }
.changelog li .cd { flex: none; width: 96px; color: var(--c-muted-2); }
.changelog li .cn { color: var(--c-ink-soft); }

/* ============ 页脚 ============ */
.footer { background: var(--c-parchment); padding: 34px 0 44px; }
.footer-inner { max-width: var(--w-wide); margin: 0 auto; padding: 0 22px; }
.footer .rule { border: 0; border-top: 1px solid rgba(0, 0, 0, .09); margin-bottom: 20px; }
.footer p { margin-top: 4px; }

/* ============ 响应式（apple 断点：1068 / 834 / 640 / 480） ============ */
@media (max-width: 1068px) {
  :root { --sp-section: 88px; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 834px) {
  .nav-links a:not(.nav-keep) { display: none; }
  .local-grid { grid-template-columns: 1fr; max-width: 560px; }
  .point-row { gap: 26px; }
}
@media (max-width: 640px) {
  :root { --sp-section: 68px; }
  .hero-sub { font-size: 19px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .specs-grid { grid-template-columns: 1fr; }
  .dl-card { padding: 34px 22px 30px; }
  .snap-card { flex-basis: 260px; }
}
