/* ═══════════════════════════════════════════════════════════════════════
   分区专属布局 + 特效（轮播 / 翻页演示 / 跑马灯 / 视差 / 计数 / lightbox）
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1. Hero ────────────────────────────────────────────────────────── */
.hero { position: relative; padding-block: clamp(52px, 9vw, 104px) clamp(40px, 7vw, 86px); overflow: clip; }
.hero__glow {
  position: absolute; inset: -20% -10% auto -10%; height: 78%;
  background: var(--glow); filter: blur(18px); pointer-events: none;
  transform: translate3d(var(--mx, 0), var(--my, 0), 0) scale(1.04);
  transition: transform .6s var(--ease-soft);
}
.hero__grid { position: relative; display: grid; gap: clamp(28px, 5vw, 60px); align-items: center; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
@media (max-width: 939px) { .hero__grid { grid-template-columns: 1fr; text-align: center; } .hero__cta { justify-content: center; } .hero__badges { justify-content: center; } }

.hero__kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.hero h1 { font-family: var(--font-display); font-size: var(--fs-display); letter-spacing: .012em; }
.hero h1 em { font-style: normal; color: var(--accent); position: relative; }
/* 标题下那道"手写划线"：SVG 内联，不吃素材 */
.hero h1 em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -.06em; height: .16em;
  background: var(--accent-2); opacity: .34; border-radius: 99px;
  transform: scaleX(var(--ul, 0)); transform-origin: left;
  transition: transform .9s .25s var(--ease-out);
}
.hero.is-lit h1 em::after { --ul: 1; }
.hero__sub { margin-top: 22px; max-width: 46ch; font-size: var(--fs-lead); color: var(--ink-2); }
@media (max-width: 939px) { .hero__sub { margin-inline: auto; } }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero__note { margin-top: 10px; font-size: var(--fs-small); color: var(--ink-3); }

.hero__stage { position: relative; display: grid; place-items: center; min-height: min(560px, 78vh); }
.hero__stage .device { transition: transform .5s var(--ease-soft); }
.hero__stage .stage__back { z-index: 1; }
.hero__stage .stage__front { position: absolute; right: max(0px, 6%); bottom: -4%; z-index: 2; }
.hero__float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; border-radius: 999px; font-size: var(--fs-small); font-weight: 600;
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  backdrop-filter: blur(10px); color: var(--ink);
}
.hero__float--a { left: 2%; top: 16%; }
.hero__float--b { right: 0%; bottom: 22%; }
.hero__float i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
@media (max-width: 939px) { .hero__stage { min-height: 430px; } .hero__float--a { left: 4%; } }

/* ── 2. 数据条 ──────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: clamp(22px, 3.4vw, 34px); }
@media (max-width: 719px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 26px; } }
.stat__n { font-family: var(--font-display); font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); line-height: 1; color: var(--accent); font-weight: 600; }
.stat__n small { font-size: .5em; margin-left: 2px; color: var(--ink-2); }
.stat__l { margin-top: 8px; font-size: var(--fs-small); color: var(--ink-2); }

/* ── 3. 特性：粘性双栏（左文案换、右设备跟着换）──────────────────────── */
.sticky-feat { display: grid; gap: clamp(24px, 4vw, 64px); grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: start; }
@media (max-width: 939px) { .sticky-feat { grid-template-columns: 1fr; } }
.sticky-feat__list { display: grid; gap: 10px; }
.feat-item { padding: 20px 22px; border-radius: var(--r-l); border: 1px solid transparent; transition: background var(--dur-2), border-color var(--dur-2), transform var(--dur-2); }
.feat-item.is-active { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-1); }
.feat-item h3 { font-size: var(--fs-h3); font-family: var(--font-display); display: flex; align-items: center; gap: 10px; }
.feat-item h3 .no { font-family: var(--font-mono); font-size: .72rem; color: var(--accent); border: 1px solid var(--accent); border-radius: 6px; padding: 1px 6px; }
.feat-item p { margin-top: 9px; color: var(--ink-2); font-size: .98rem; }
.feat-item ul { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.sticky-feat__stage { position: sticky; top: calc(var(--nav-h) + 26px); display: grid; place-items: center; min-height: 460px; }
@media (max-width: 939px) { .sticky-feat__stage { position: static; min-height: 0; margin-top: 20px; } }
.sticky-feat__shot { position: absolute; opacity: 0; transform: translateY(16px) scale(.985); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); pointer-events: none; }
.sticky-feat__shot.is-active { opacity: 1; transform: none; position: relative; pointer-events: auto; }
/* 深浅色各一张的截图：纯 CSS 挑，不靠 JS 猜系统，切换时不闪。
   （以前这套挂在 html[data-theme=...] 上，现在页面不放主题开关，只跟随系统。）*/
.shot-dark { display: none; }
/* .swap-dark 是"叠在亮色版上面"的那一层（首屏手机/平板各有一张暗色截图）。
   JS 一直在加这个类（render.js），但 CSS 里从来没定义过 —— 等于那一层永远显形，
   亮色版被自己的暗色版盖住。这里补上，跟 .shot-dark 同一套判据。 */
.swap-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .shot-light { display: none; }
  .shot-dark { display: block; }
  .swap-dark { display: block; }
}

/* ── 4. 翻页特效演示（本站的"钩子"）───────────────────────────────────── */
@media (max-width: 939px) { .turnfx { grid-template-columns: 1fr; } }
/* 卷起来的"纸背 + 阴影"：一条随进度移动的渐变，就是"看见卷边"的关键 */
@keyframes curl {
  0% { transform: rotateY(0deg) translateX(0); border-radius: 6px 12px 12px 6px; }
  55% { border-radius: 6px 26px 26px 6px; }
  100% { transform: rotateY(-158deg) translateX(-2px); border-radius: 6px 12px 12px 6px; }
}
@keyframes curl-shade { 0% { opacity: 0; } 45% { opacity: .85; } 100% { opacity: .2; } }
@keyframes push { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes slide-in { from { transform: translateX(-100%); opacity: 0; } to { transform: none; opacity: 1; } }

.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; }
.seg button { padding: 8px 16px; border-radius: 999px; font-size: .92rem; color: var(--ink-2); transition: background var(--dur-1), color var(--dur-1); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
/* ── 5. 轮播 ────────────────────────────────────────────────────────── */
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; border-radius: var(--r-l); box-shadow: var(--shadow-2); background: var(--bg-2); touch-action: pan-y; }
.carousel__track { display: flex; transition: transform var(--dur-3) var(--ease-out); }
.carousel.is-dragging .carousel__track { transition: none; }
.carousel__slide { flex: 0 0 100%; min-width: 0; position: relative; aspect-ratio: 16 / 9; }
@media (max-width: 719px) { .carousel__slide { aspect-ratio: 4 / 3; } }
.carousel__slide .shot { border-radius: 0; }
.carousel__cap { position: absolute; inset-inline: 0; bottom: 0; padding: 40px 22px 18px; color: var(--on-scrim); background: linear-gradient(transparent, var(--scrim)); font-size: .95rem; }
.carousel__cap b { font-weight: 600; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--line); color: var(--ink);
  backdrop-filter: blur(8px); box-shadow: var(--shadow-1);
  transition: background var(--dur-1), transform var(--dur-1);
}
.carousel__btn:hover { background: var(--surface); transform: translateY(-50%) scale(1.06); }
.carousel__btn--prev { left: 12px; }
.carousel__btn--next { right: 12px; }
.carousel__btn svg { width: 20px; height: 20px; }
.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.carousel__dots button { width: 26px; height: 5px; border-radius: 99px; background: var(--line-2); transition: background var(--dur-1), width var(--dur-1); }
.carousel__dots button[aria-current="true"] { background: var(--accent); width: 40px; }
.carousel__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: var(--fs-small); color: var(--ink-3); }

/* ── 6. 鸿蒙特性卡 ──────────────────────────────────────────────────── */
.cards { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 296px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden; transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--accent-ring); }
.card__media { aspect-ratio: 16 / 10; border-radius: var(--r-m); overflow: hidden; background: var(--bg-2); }

/* ⭐ [2026-11-06] 卡片媒体位里的录像（自动播放、轮流播）：一层层叠着，
   靠 .is-on 交叉淡入。和截图槽（.shot）互不影响 —— 同一个 .card__media 里只会有一个。 */
.media-rot { position: relative; margin: 0; width: 100%; height: 100%; display: block; }
.media-rot video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;               /* 录屏是 3:2，框是 16:10，上下各裁 6%：可接受 */
  opacity: 0;
  transition: opacity .6s var(--ease-soft);
  background: var(--bg-2);
}
.media-rot video.is-on { opacity: 1; }
.card h3 { font-size: 1.12rem; font-family: var(--font-display); }
.card p { color: var(--ink-2); font-size: .96rem; }
.card__icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.card__icon svg { width: 19px; height: 19px; }

/* ── 7. 格式跑马灯 ──────────────────────────────────────────────────── */
.marquee { position: relative; overflow: hidden; padding-block: 6px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.marquee__row { display: flex; gap: 12px; width: max-content; animation: slide-x var(--mq-dur, 34s) linear infinite; }
.marquee:hover .marquee__row { animation-play-state: paused; }
.marquee--rev .marquee__row { animation-direction: reverse; }
@keyframes slide-x { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__row { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }
.fmt { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-family: var(--font-mono); font-size: .9rem; color: var(--ink-2); white-space: nowrap; }
.fmt b { color: var(--accent); font-weight: 600; }

/* ── 8. 主题与排版 ──────────────────────────────────────────────────── */
.theme-lab { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; }
@media (max-width: 939px) { .theme-lab { grid-template-columns: 1fr; } }
.type-ramp { border-radius: var(--r-l); border: 1px solid var(--line); background: var(--surface); padding: clamp(18px, 3vw, 30px); }
.type-ramp .row { display: flex; align-items: baseline; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.type-ramp .row:last-child { border-bottom: 0; }
.type-ramp .lab { font-family: var(--font-mono); font-size: .68rem; color: var(--ink-3); min-width: 78px; }
.slider-demo { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.slider-demo input { flex: 1; accent-color: var(--accent); }
.type-ramp .sample { font-family: var(--font-display); }

/* ── 9. 时间线 ──────────────────────────────────────────────────────── */
.timeline { position: relative; margin-left: 8px; padding-left: 26px; border-left: 1px solid var(--line); display: grid; gap: 26px; }
.tl { position: relative; }
.tl::before { content: ''; position: absolute; left: -33px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tl--now::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.tl__v { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.tl__date { font-size: var(--fs-micro); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tl ul { margin-top: 8px; display: grid; gap: 5px; }
.tl li { position: relative; padding-left: 15px; color: var(--ink-2); font-size: .96rem; }
.tl li::before { content: ''; position: absolute; left: 0; top: .68em; width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }

/* ── 10. FAQ ────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq__i { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); overflow: hidden; }
.faq__q { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 20px; text-align: left; font-size: 1.02rem; font-weight: 600; }
.faq__q:hover { color: var(--accent); }
.faq__q i { width: 20px; height: 20px; flex: none; position: relative; }
.faq__q i::before, .faq__q i::after { content: ''; position: absolute; inset: 9px 2px; background: currentColor; border-radius: 2px; transition: transform var(--dur-2) var(--ease-out); }
.faq__q i::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] i::after { transform: rotate(0deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-2) var(--ease-out); }
.faq__a > div { overflow: hidden; }
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }
.faq__a p { padding: 0 20px 18px; color: var(--ink-2); }

/* ── 11. 下载大卡 ───────────────────────────────────────────────────── */
/* ⭐ [2026-11-07 鱼干] 二维码板块撤掉 ⇒ 下载区固定单列。
   两列布局（1.3fr/.7fr）、.cta-card--solo、.qr* 三条规则一并删除 ——
   留着它们只会让下一个人以为"码还没放"，再把空位加回来。 */
.cta-card { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(28px, 5vw, 58px); background: linear-gradient(150deg, var(--accent-soft), var(--bg-2)); border: 1px solid var(--line); display: grid; gap: clamp(22px, 4vw, 46px); grid-template-columns: minmax(0, 1fr); align-items: center; }
.cta-card::before { content: ''; position: absolute; inset: auto -10% -40% auto; width: 340px; height: 340px; background: var(--glow); filter: blur(24px); }
.cta-card h2 { font-family: var(--font-display); font-size: var(--fs-h1); position: relative; }
.cta-card p { margin-top: 14px; color: var(--ink-2); max-width: 44ch; position: relative; }
.cta-card .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; position: relative; }

/* ── 12. lightbox ───────────────────────────────────────────────────── */
.lb { position: fixed; inset: 0; z-index: 120; display: none; place-items: center; background: var(--scrim); backdrop-filter: blur(6px); padding: 4vw; }
.lb.is-open { display: grid; animation: fade var(--dur-2) var(--ease-out); }
@keyframes fade { from { opacity: 0; } }
.lb__fig { max-width: min(1100px, 94vw); max-height: 88vh; display: grid; gap: 12px; }
.lb__fig img { max-width: 100%; max-height: 76vh; border-radius: var(--r-m); box-shadow: var(--shadow-2); background: var(--surface); object-fit: contain; }
.lb__fig figcaption { color: var(--on-scrim); font-size: .95rem; text-align: center; opacity: .9; }
.lb__x { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--on-scrim-soft); color: var(--on-scrim); }
.lb__x:hover { background: var(--on-scrim-soft); filter: brightness(1.5); }

/* ── 13. 视频位 ─────────────────────────────────────────────────────── */
/* 比例由数据给（渲染器写 --ar）：换成 3:2 的素材就写 3/2，别硬裁。
   ⚠️ 3:2 的素材铺满 1200 宽的容器会有 800 高，整节被视频吃掉 —— 所以限宽居中，
      到 900 就停（900×600，一屏里还看得见下面的字）。
   老素材是 16:9 带录屏控制条，所以当年写死 16/8.6 + object-position 靠底；
   现在这条只作为**没给比例时**的兜底。 */
.video-slot { position: relative; width: 100%; max-width: 900px; margin-inline: auto; aspect-ratio: var(--ar, 16 / 8.6); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-2); background: var(--bg-2); }
.video-slot video { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* 视频位的占位框：**默认藏起来**，只有明确标了 .is-empty 才显示。
   反过来的写法（默认显示、靠 JS 摘类来隐藏）在这里不成立 —— 原来整个文件里
   根本没有隐藏它的规则，.ph 又是 absolute 铺满，于是永远盖住视频。
   现在不依赖 JS：钩子跑不跑，视频都露得出来；真没素材时 miss() 会打上 is-empty。 */
.video-slot .ph { opacity: 0; pointer-events: none; transition: opacity var(--dur-2) var(--ease-soft); }
.video-slot.is-empty .ph { opacity: 1; pointer-events: auto; }
.play {
  position: absolute; inset: 0; margin: auto; width: 78px; height: 78px; border-radius: 50%;
  display: grid; place-items: center; background: var(--glass); border: 1px solid var(--line);
  color: var(--accent); box-shadow: var(--shadow-2); backdrop-filter: blur(8px);
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2);
}
.play:hover { transform: scale(1.08); }
.play svg { width: 28px; height: 28px; margin-left: 4px; }
.play.is-hidden { opacity: 0; pointer-events: none; transform: scale(.7); }

/* 视差（js 写 --py）：只在有指针的设备上开，别在手机上跟手指打架 */
[data-par] { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
@media (prefers-reduced-motion: reduce) { [data-par] { transform: none !important; } }
