/* ============================================================
   project.css — shared Apple-inspired design system for the
   three project sub-pages (hardware / research / ui).
   Light, airy, large clean type, generous whitespace,
   scroll-revealed sections. The knee project's "product site".
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;     /* Apple light gray */
  --bg-dark: #0b0c0e;
  --ink: #1d1d1f;          /* Apple near-black text */
  --ink-2: #6e6e73;        /* secondary */
  --ink-3: #86868b;        /* tertiary */
  --hair: #d2d2d7;
  --blue: #0071e3;         /* Apple accent blue */
  --teal: #0a7281;
  --r-card: 22px;
  --r-pill: 980px;
  --maxw: 1120px;
  --ui: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 22px; }

/* ---------- Type (Apple ramp) ---------- */
.t-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .4px; color: var(--blue); }
.t-eyebrow--teal { color: var(--teal); }
.t-hero {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 700; line-height: 1.04; letter-spacing: -.02em;
}
.t-h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 700; line-height: 1.07; letter-spacing: -.02em; }
.t-h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.t-h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; line-height: 1.2; }
.t-lead { font-size: clamp(19px, 2.2vw, 28px); font-weight: 500; line-height: 1.35; letter-spacing: -.01em; color: var(--ink); }
.t-body { font-size: clamp(16px, 1.3vw, 18px); font-weight: 400; line-height: 1.6; color: var(--ink-2); }
.t-body strong { color: var(--ink); font-weight: 600; }
.t-cap { font-size: 14px; color: var(--ink-3); }
.center { text-align: center; }
.gradient-text {
  background: linear-gradient(120deg, #0a7281, #0071e3 60%, #6e3bd1);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: var(--r-pill);
  font-size: 16px; font-weight: 500; cursor: pointer;
  transition: opacity .2s, background .2s, color .2s, transform .12s;
}
.btn:active { transform: scale(.97); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { opacity: .9; }
.btn--ghost { color: var(--blue); }
.btn--ghost:hover { text-decoration: underline; }
.btn--light { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(6px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn .chev { transition: transform .2s; }
.btn:hover .chev { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: 52px;
  display: flex; align-items: center;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav__row { display: flex; align-items: center; justify-content: flex-start; width: 100%; }
.nav__brand { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font-size: 13px; font-weight: 400; color: var(--ink-3); transition: color .2s; }
.nav__links a:hover { color: var(--ink-2); }
.nav__links a.active { color: var(--ink); font-weight: 500; }
.nav__back { font-size: 13px; color: var(--ink-3); margin-left: 26px; }
.nav__brand-sub { color: var(--ink-3); font-weight: 400; }
/* On phones: keep the 硬件/研究/UI switcher visible (it's essential),
   drop the long brand subtitle and the back link to make room. */
@media (max-width: 720px){
  .nav { height: 50px; }
  .nav__brand-sub, .nav__back { display: none; }
  .nav__row { gap: 12px; }
  .nav__links { gap: 18px; }
}
@media (max-width: 380px){
  .nav__brand { font-size: 14px; }
  .nav__links { gap: 14px; }
  .nav__links a { font-size: 12px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section--tight { padding: clamp(48px, 7vw, 88px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #f5f5f7; }
.section--dark .t-body { color: #a1a1a6; }
.section--dark .t-eyebrow { color: #2997ff; }
.section__head { max-width: 800px; margin: 0 auto clamp(40px,6vw,72px); text-align: center; }
.section__head .t-eyebrow { display:block; margin-bottom: 14px; }
.section__head .t-body { margin-top: 18px; }

/* ---------- Hero (intro) ---------- */
.phero { text-align: center; padding: clamp(80px,12vw,150px) 0 clamp(40px,6vw,70px); }
.phero .t-eyebrow { display:block; margin-bottom: 16px; }
.phero .t-lead { max-width: 720px; margin: 22px auto 0; color: var(--ink-2); }
.phero__cta { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Scrub (pinned product rotation) ---------- */
.scrub { position: relative; height: 360vh; background: var(--bg-dark); }
.scrub__sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; }
.scrub__stage { position: relative; width: 100%; height: 100%; }
.scrub canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scrub__vignette { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 45%, transparent 40%, rgba(0,0,0,.55) 100%); }
.scrub__caption {
  position: absolute; left: 0; right: 0; bottom: 8%;
  text-align: center; color: #f5f5f7; pointer-events: none;
}
.scrub__caption .t-eyebrow { color: #2997ff; }
.scrub__bar { position: absolute; left: 50%; transform: translateX(-50%); bottom: 5%;
  width: min(280px, 60vw); height: 3px; background: rgba(255,255,255,.18); border-radius: 3px; overflow: hidden; }
.scrub__bar i { position:absolute; inset:0; transform-origin:left; transform:scaleX(0);
  background:#2997ff; }
/* annotation captions that cross-fade as you scroll the pin */
.scrub__notes { position: absolute; inset: 0; pointer-events: none; }
.scrub__note {
  position: absolute; left: 50%; top: 16%; transform: translateX(-50%);
  width: min(640px, 86vw); text-align: center; color: #f5f5f7;
  opacity: 0; transition: opacity .4s ease;
}
.scrub__note.on { opacity: 1; }
.scrub__note .n-t { font-size: clamp(22px,3.2vw,38px); font-weight: 700; letter-spacing: -.01em; }
.scrub__note .n-b { margin-top: 10px; font-size: 16px; color: #c7c7cc; }

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
@media (min-width: 900px){ .feature { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature--reverse .feature__media { order: 2; } }
.feature__body > * + * { margin-top: 16px; }
.feature__media { border-radius: var(--r-card); overflow: hidden; background: var(--bg-soft); }
.feature__media--dark { background: #0e1217; }
.feature__media img { width: 100%; }

/* ---------- Stat band ---------- */
.statband { display: grid; grid-template-columns: repeat(2,1fr); gap: 40px 24px; }
@media (min-width: 760px){ .statband { grid-template-columns: repeat(4,1fr); } }
.stat { text-align: center; }
.stat__n { font-size: clamp(40px,5vw,64px); font-weight: 700; letter-spacing: -.02em; }
.stat__l { margin-top: 8px; font-size: 14px; color: var(--ink-3); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 700px){ .cards--2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 920px){ .cards--3 { grid-template-columns: repeat(3,1fr); } }
.card { background: var(--bg-soft); border-radius: var(--r-card); padding: 32px; }
/* 灰底板块里卡片转白，保持「卡片感」 */
.section--soft .card:not(.card--dark) { background: #fff; }
.card--dark { background: #16181d; color: #f5f5f7; }
.card__k { font-size: 13px; font-weight: 600; color: var(--teal); letter-spacing:.3px; }
.card__t { margin-top: 12px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.card__b { margin-top: 10px; font-size: 16px; color: var(--ink-2); line-height: 1.55; }
.card--dark .card__b { color: #a1a1a6; }
.card__big { font-size: clamp(34px,4vw,52px); font-weight: 700; letter-spacing: -.02em; }

/* scene photo */
.scene { margin: 0; border-radius: 28px; overflow: hidden; background: var(--bg-soft); }
.scene img { width: 100%; display: block; }

/* media figure full-width */
.figure { border-radius: var(--r-card); overflow: hidden; background: var(--bg-soft); }
.figure img { width: 100%; }
.figure__cap { padding: 16px 20px 22px; font-size: 14px; color: var(--ink-3); }

/* phone frame */
.phones { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
@media (min-width: 760px){ .phones { grid-template-columns: repeat(4,1fr); } }
.phone { background: var(--bg-soft); border-radius: 20px; padding: 22px; text-align:center; }
.phone img { width: 100%; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.10); }
.phone .cap { margin-top: 14px; font-size: 14px; color: var(--ink-2); font-weight: 500; }

/* stage timeline pills */
.stages { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 820px){ .stages { grid-template-columns: repeat(3,1fr); } }
.stage { border-radius: var(--r-card); padding: 30px; color: #fff; }
.stage--1 { background: linear-gradient(160deg,#0a7281,#0e5a73); }
.stage--2 { background: linear-gradient(160deg,#2563a8,#1d4e86); }
.stage--3 { background: linear-gradient(160deg,#5b3fb3,#43308c); }
.stage__no { font-size: 13px; font-weight: 600; opacity: .8; letter-spacing: .4px; }
.stage__t { margin-top: 10px; font-size: 24px; font-weight: 700; }
.stage__b { margin-top: 12px; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.86); }

/* end cta + footer */
.endcta { text-align: center; }
.endcta .t-h1 { margin-bottom: 26px; }
.endcta__row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.pfooter { border-top: 1px solid var(--hair); padding: 40px 0; color: var(--ink-3); font-size: 13px; }
.pfooter__row { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items:center; }
.pfooter__nav { display: flex; gap: 22px; }
.pfooter__nav a:hover { color: var(--ink); }

/* page-to-page nav (prev/next) */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager a { display: block; padding: 28px; border-radius: var(--r-card); background: var(--bg-soft); transition: background .2s; }
.pager a:hover { background: #ececf0; }
.pager .dir { font-size: 13px; color: var(--ink-3); }
.pager .ttl { margin-top: 8px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.pager .next { text-align: right; }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobile polish ---------- */
@media (max-width: 600px) {
  .scrub { height: 260vh; }                 /* shorter scroll-rotation on phones */
  .scrub__note { top: 12%; }
  .scrub__note .n-t { font-size: clamp(20px, 6vw, 28px); }
  .scrub__caption, .scrub__note { padding: 0 16px; }
  .pager { grid-template-columns: 1fr; }     /* stack prev/next */
  .pager .next { text-align: left; }
  .phones { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .phone { padding: 16px; }
  .feature { gap: 28px; }
  .pfooter__row { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ============================================================
   Motion tokens & highlights carousel
   (animation decisions follow Emil Kowalski's design-eng skill:
   strong custom ease-out, <300ms UI durations, scale-on-press,
   no scale(0) entrances, hover gated to fine pointers)
   ============================================================ */
:root {
  --ease-strong: cubic-bezier(0.23, 1, 0.32, 1);   /* strong ease-out */
  --ease-inout: cubic-bezier(0.77, 0, 0.175, 1);   /* strong in-out  */
}

/* Apple "Get the highlights" 横滑卡片 */
.hl { margin-top: clamp(28px, 4vw, 44px); }
.hl__track {
  display: flex; gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  /* 左右内边距与 wrap 的视觉边缘对齐，但加上限避免大屏上 padding 占满视窗 */
  padding: 8px clamp(22px, calc((100vw - 1076px) / 2), 80px);
  scroll-padding-inline: clamp(22px, calc((100vw - 1076px) / 2), 80px);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  /* 关键：只声明水平 pan，垂直手势直接穿透到页面，避免锁住纵向滚动 */
  touch-action: pan-x;
}
.hl__track::-webkit-scrollbar { display: none; }

.hl-card {
  flex: 0 0 auto;
  width: min(460px, 82vw);
  max-width: 460px;
  min-height: 380px;
  background: var(--bg-soft);
  border-radius: 28px;
  padding: 34px;
  display: flex; flex-direction: column;
  scroll-snap-align: start;
}
.hl-card--wide { width: min(740px, 88vw); }
/* 设备卡片：横向布局，插画在左、文字在右 */
.hl-card--device {
  width: min(640px, 90vw); min-height: 300px;
  flex-direction: row; align-items: center; gap: 28px;
  padding: 30px 36px;
}
.hl-card--device .hl-card__device {
  flex: 0 0 40%; margin: 0; padding: 0;
  display: flex; justify-content: center; align-items: center;
}
.hl-card__device svg { max-width: 100%; }
.hl-card__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hl-card__name { margin-top: 10px; font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.hl-card__role { margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--teal); }
.hl-card--device .hl-card__body { margin-top: 12px; }
@media (max-width: 540px) {
  .hl-card--device { flex-direction: column; align-items: stretch; gap: 12px; min-height: 0; }
  .hl-card--device .hl-card__device { flex: 0 0 auto; }
  .hl-card--device .hl-card__device svg { height: 150px; }
}
.hl-card__eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .3px; color: var(--teal); }
.hl-card__big { margin: auto 0; font-size: clamp(38px, 4.6vw, 54px); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.hl-card__body { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.hl-card__body strong { color: var(--ink); font-weight: 600; }
.hl-card__media { margin: auto 0; padding: 8px 0; }
.hl-card__media img { width: 100%; }
.hl-card--wide .hl-card__body { margin-top: 10px; }

.hl__controls { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; }
.hl__dots { display: flex; gap: 8px; align-items: center; }
.hl__dot {
  width: 8px; height: 8px; border-radius: 4px; border: 0; padding: 0;
  background: #d2d2d7; cursor: pointer;
  transition: width .25s var(--ease-strong), background .25s var(--ease-strong);
}
.hl__dot.on { width: 26px; background: var(--ink); }
.hl__nav { display: flex; gap: 10px; }
.hl__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: #e8e8ed; color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  transition: transform 160ms var(--ease-strong), background .2s ease, opacity .2s ease;
}
.hl__btn:active { transform: scale(0.92); }
.hl__btn[disabled] { opacity: .35; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .hl__btn:not([disabled]):hover { background: #dcdce1; }
}
@media (prefers-reduced-motion: reduce) {
  .hl__dot { transition: none; }
}

/* ---------- Dark variant of highlights carousel (设计原则板块) ---------- */
.section--dark .hl-card { background: #16181d; color: #f5f5f7; }
.section--dark .hl-card__body { color: #a1a1a6; }
.section--dark .hl-card__body strong { color: #f5f5f7; }
.section--dark .hl-card__eyebrow { color: #2997ff; }
.section--dark .hl__dot { background: #3a3d42; }
.section--dark .hl__dot.on { background: #f5f5f7; }
.section--dark .hl__btn { background: #26282e; color: #f5f5f7; }
@media (hover: hover) and (pointer: fine) {
  .section--dark .hl__btn:not([disabled]):hover { background: #33363d; }
}

/* 原则卡片：插画顶置全出血，文字下方 */
.hl-card--principle { width: min(400px, 82vw); min-height: 0; padding: 0; overflow: hidden; }
.pcard__media { background: #0e1217; }
.pcard__media svg { width: 100%; display: block; }
.pcard__text { padding: 24px 30px 32px; }
.pcard__text .hl-card__name { margin-top: 10px; font-size: 22px; }
.pcard__text .hl-card__body { margin-top: 10px; }

/* 文献发现卡片的引用行 */
.card__cite { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); letter-spacing: .1px; }

/* ---------- 机制板块：大图 feature + 悬浮卡片图 ---------- */
.wrap--wide { max-width: 1320px; }
@media (min-width: 900px) {
  .feature--lg { grid-template-columns: 1.55fr 1fr; gap: 44px; }
  .feature--lg.feature--reverse { grid-template-columns: 1fr 1.55fr; }
}
.feature__media--card {
  background: #fff;
  border-radius: var(--r-card);
  padding: 12px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .12), 0 6px 18px rgba(0, 0, 0, .06);
  transition: transform .3s var(--ease-strong), box-shadow .3s var(--ease-strong);
}
.feature__media--card img { border-radius: calc(var(--r-card) - 8px); }
@media (hover: hover) and (pointer: fine) {
  .feature__media--card:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 80px rgba(0, 0, 0, .16), 0 8px 22px rgba(0, 0, 0, .07);
  }
}

/* ============================================================
   UI 页组件：手机外框 / 截图边界卡 / 局部特写 / Demo 嵌入
   ============================================================ */
/* feature 里放浮动截图卡：去掉容器的裁切与底色，阴影不再被切 */
.feature__media--bare { background: none; border-radius: 0; overflow: visible; }

/* 整屏 UI 截图：圆角矩形浮动卡
   iPhone 14/15 Pro 实测圆角比例约为元素宽度的 14-15% */
.shot--phone {
  width: min(320px, 86vw);
  margin: 0 auto;
  border-radius: 48px;
  border: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .16), 0 5px 16px rgba(0, 0, 0, .08);
}
@media (max-width: 540px) {
  .shot--phone { border-radius: clamp(40px, 13vw, 52px); }
}

/* IA 五屏并排（桌面 5 列网格；移动端切横滑卡片） */
.ia-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; }
.ia-item { margin: 0; }
/* IA 桌面 5 列：单卡较窄（~210-240px），按 iPhone ~12% 给固定圆角 */
.ia-item .shot--phone { width: 100%; border-radius: 28px; }
.ia-item figcaption { margin-top: 20px; padding: 0 4px; }
.ia-item__k { font-size: 12.5px; font-weight: 600; letter-spacing: .3px; color: var(--teal); }
.ia-item__t { margin-top: 6px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.ia-item__b { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }

/* 移动端：IA 五张图改为左右横滑卡片，复用 hl 轮播的滑动行为 */
@media (max-width: 919px) {
  .ia-grid {
    display: flex;
    grid-template-columns: none;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* 让卡片可贴近 wrap 视觉边缘滑动：抵消 wrap 的 22px 内边距 */
    margin-inline: -22px;
    padding: 8px 22px 12px;
    scroll-padding-inline: 22px;
  }
  .ia-grid::-webkit-scrollbar { display: none; }
  .ia-item {
    flex: 0 0 70vw;
    max-width: 300px;
    scroll-snap-align: start;
  }
  .ia-item .shot--phone { border-radius: clamp(28px, 10vw, 36px); }
  .ia-item figcaption { margin-top: 16px; }
}

/* Demo 屏：固定竖屏比例，承载截图封面或 iframe
   比普通 .shot--phone 更宽，给 Expo Web 内的元素更多空间不挤 */
.shot--phone.demo__screen {
  position: relative; aspect-ratio: 390 / 820; background: #f2f2f7;
  width: min(460px, 92vw);
}
.demo__screen iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Demo 封面：真实截图 + 点按启动 iframe */
.demo__poster {
  position: relative; display: block; width: 100%; height: 100%;
  padding: 0; border: 0; background: none; cursor: pointer;
}
.demo__poster img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.demo__play {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--r-pill); white-space: nowrap;
  background: rgba(11, 12, 14, .80); color: #fff; font-size: 14px; font-weight: 500;
  backdrop-filter: blur(8px);
  transition: transform .2s var(--ease-strong), background .2s;
}
@media (hover: hover) and (pointer: fine) {
  .demo__poster:hover .demo__play { background: rgba(11, 12, 14, .95); transform: translateX(-50%) scale(1.04); }
}

/* 截图悬浮卡：UI 的「边界」 */
.shot {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--hair);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .10), 0 4px 12px rgba(0, 0, 0, .05);
}
.shot img, .shot svg { width: 100%; display: block; }
/* 局部特写：只露相关区域，--crop 控制焦点位置 */
.shot--crop { aspect-ratio: 4 / 3; }
.shot--crop img { height: 100%; object-fit: cover; object-position: var(--crop, top center); }

/* IA 横滑：截图卡（浅色 hl 轮播内使用） */
.hl-card--screen { width: min(290px, 76vw); min-height: 0; padding: 24px 24px 28px; }
.hl-card--screen .hl-card__name { margin-top: 8px; font-size: 19px; }
.hl-card--screen .hl-card__body { margin-top: 6px; font-size: 14.5px; }
.hl-card--screen .shot { margin-top: 18px; aspect-ratio: 390 / 520; }
.hl-card--screen .shot img { height: 100%; object-fit: cover; object-position: top center; }

/* 设计系统卡片头图 */
.card__fig { background: #fff; border-radius: 14px; overflow: hidden; margin-bottom: 18px; }
.card__fig svg { width: 100%; display: block; }

/* Demo 嵌入板块 */
.demo { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .demo { grid-template-columns: 1fr auto; gap: 72px; } }
.demo__body > * + * { margin-top: 16px; }
.demo__hint { margin-top: 14px; text-align: center; font-size: 13px; color: #86868b; }
