/*
   其核 · Apple-inspired system
   MiSans 全站统一；清晰分组、轻量材质。内容优先，动效只解释操作。
   本文件是全站最后一层样式；各页面专有的结构与数据仍由原文件负责。
*/
:root {
  color-scheme: light;
  --bg: #f2f2f5;
  --bg-2: #f8f8fa;
  --surface: #fcfcfd;
  --surface-2: #e9e9ed;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, .11);
  --line-2: rgba(29, 29, 31, .065);
  --accent: #0071e3;
  --accent-fg: #ffffff;
  --accent-ink: #0066cc;
  --accent-soft: rgba(0, 113, 227, .09);
  --accent-line: rgba(0, 113, 227, .28);
  --teal: #008b83;
  --teal-soft: rgba(0, 139, 131, .09);
  --teal-line: rgba(0, 139, 131, .25);
  --amber: #a05a00;
  --brand-huazai: #0071e3;
  --brand-huazai-soft: rgba(0, 113, 227, .09);
  --brand-huazai-line: rgba(0, 113, 227, .25);
  --brand-kanami: #b75d16;
  --brand-kanami-soft: rgba(183, 93, 22, .1);
  --brand-kanami-line: rgba(183, 93, 22, .25);
  --font: "MiSans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --font-display: var(--font);
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --shell: 1200px;
  --r-s: 12px;
  --r-m: 20px;
  --r-l: 28px;
  --ease: var(--ios-spring);
  --spring: var(--ios-spring);
  --t-display: clamp(3rem, 5.2vw, 4.75rem);
  --t-display-ls: -.052em;
  --t-display-s: clamp(2.6rem, 4.5vw, 4rem);
  --t-display-s-ls: -.045em;
  --t-h1: clamp(2.75rem, 5vw, 4.25rem);
  --t-h1-ls: -.05em;
  --t-h2: clamp(2rem, 3.3vw, 3rem);
  --t-h2-ls: -.04em;
  --t-h3: 1.25rem;
  --t-h3-ls: -.022em;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .025), 0 8px 24px rgba(0, 0, 0, .035);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .035), 0 24px 56px rgba(0, 0, 0, .075);
  --elev-1: var(--shadow-1);
  --elev-2: var(--shadow-2);
  --elev-3: var(--shadow-2);
  --hi: rgba(255, 255, 255, .8);
  --hi-soft: rgba(255, 255, 255, .5);
  --spot: transparent;
  --grid: transparent;
  --wash: none;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111315;
  --bg-2: #17191c;
  --surface: #1e2023;
  --surface-2: #292c30;
  --ink: #f5f5f7;
  --ink-2: #d2d2d7;
  --muted: #a1a1a6;
  --line: rgba(255, 255, 255, .14);
  --line-2: rgba(255, 255, 255, .08);
  --accent: #2997ff;
  --accent-fg: #ffffff;
  --accent-ink: #64aaff;
  --accent-soft: rgba(41, 151, 255, .14);
  --accent-line: rgba(41, 151, 255, .35);
  --teal: #63d5c9;
  --teal-soft: rgba(99, 213, 201, .12);
  --teal-line: rgba(99, 213, 201, .28);
  --brand-huazai: #64aaff;
  --brand-kanami: #efa765;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .18);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, .3), 0 24px 60px rgba(0, 0, 0, .3);
  --hi: rgba(255, 255, 255, .1);
  --hi-soft: rgba(255, 255, 255, .06);
}
html[data-page="clipflow"] { --accent: #0071e3; --accent-ink: #0066cc; }
html[data-page="huazai"] { --accent: #0071e3; --accent-ink: #0066cc; }
html[data-page="kanami"] { --accent: #b75d16; --accent-ink: #98500f; }
[data-theme="dark"][data-page] { --accent-ink: #8abfff; }
[data-theme="dark"][data-page="kanami"] { --accent-ink: #efb27b; }
html { scroll-padding-top: 88px; background: var(--bg); }
body {
  background: transparent;
  animation: none;
  font-family: var(--font);
  font-optical-sizing: auto;
  line-height: 1.65;
  letter-spacing: 0;
  transition: color .24s var(--ios-ease), background-color .24s var(--ios-ease);
}
body * { letter-spacing: normal; }
body.custom-cursor * { cursor: auto !important; }
h1, h2, h3, h4, .brand, .btn { font-family: var(--font-display); }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { color: var(--ink); background: var(--accent-soft); }
/* 底色氛围层（整屏渐变 + 噪点 + 装饰伪元素）保持关闭：它们改 background-position
   与大面积 filter，是实测出来的掉帧来源，与「动效」无关。指针聚光、浮尘与自定义
   光标则交给文末的 Motion system 统一接管 —— 这里不能再按死，按死那一层就永远没效果。 */
.backdrop, .sec-head::before,
.pf-hero::before, .pf-hero::after, .pf-hero-in::before, .pf-hero-in::after,
.hero-visual::before, .detail-hero-visual::before { display: none !important; }
.progress { height: 2px; }
.progress i { background: var(--accent); box-shadow: none; }
.shell, .hero-inner, .hero-switcher, .detail-hero-inner, .detail-section {
  width: min(var(--shell), calc(100% - 64px));
}

/* Native navigation: material is reserved for floating chrome. */
.site-header, .site-header.is-stuck {
  height: 68px;
  background: rgba(245, 245, 247, .82);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: var(--fx-glass-20);
  -webkit-backdrop-filter: var(--fx-glass-20);
}
.site-header.is-stuck { border-bottom-color: var(--line-2); }
.header-inner { width: min(var(--shell), calc(100% - 48px)); height: 67px; gap: 20px; }
.brand { gap: 11px; font-weight: 650; }
.brand-icon, .pf-mark { width: 34px; height: 34px; border-radius: 9px; }
.brand-text { font-size: 1.0625rem; font-weight: 650; letter-spacing: -.022em; }
.brand small, .pf-brand small { margin-top: 0; font-size: .625rem; font-weight: 500; letter-spacing: .02em; color: var(--muted); }
.nav { gap: 3px; padding: 3px; border-radius: 999px; background: var(--accent-soft); background: color-mix(in srgb, var(--ink) 4%, transparent); }
.nav a { padding: 7px 13px; border-radius: 999px; color: var(--muted); font-size: .8125rem; font-weight: 500; }
.nav a:hover { color: var(--ink); background: transparent; }
.nav a.is-active { color: var(--ink); background: var(--surface); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.nav-ind { display: none; }
.header-actions { gap: 8px; }
.icon-btn, .theme-toggle, .lang-toggle, .back-home, .pill-btn {
  height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2);
}
.icon-btn { width: 36px; }
.theme-toggle { width: 36px; }
.lang-toggle { min-width: 42px; }
.back-home, .pill-btn { padding-inline: 14px; font-size: .75rem; font-weight: 550; }
.icon-btn:hover, .theme-toggle:hover, .lang-toggle:hover, .back-home:hover, .pill-btn:hover {
  color: var(--ink); border-color: transparent; background: var(--accent-soft); background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.tabbar {
  background: rgba(245, 245, 247, .88);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-top: 1px solid var(--line-2);
  backdrop-filter: var(--fx-glass-20);
  -webkit-backdrop-filter: var(--fx-glass-20);
}
.tabbar a { border-radius: 12px; }
.tabbar a.is-active { color: var(--accent-ink); background: transparent; }
.to-top { border: 0; border-radius: 50%; background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-1); }

/* Controls share one familiar, immediate language. */
.btn {
  min-height: 44px; padding: 0 21px; border: 0; border-radius: 999px;
  font-size: .875rem; font-weight: 550; letter-spacing: -.006em;
  transition: color .18s var(--ios-ease), background-color .18s var(--ios-ease), box-shadow .18s var(--ios-ease), transform .12s ease-out;
  touch-action: manipulation;
}
.btn:hover { transform: none; box-shadow: none; }
.btn:active, .icon-btn:active, .theme-toggle:active, .pill-btn:active,
.pf-row:active, .filter-tags button:active, .hz-bar-dots button:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-ink); color: var(--accent-fg); }
[data-theme="dark"][data-page="kanami"] .btn-primary { color: #201308; }
.btn-ghost, .btn-outline, .btn-quiet { border: 0; background: var(--surface); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover, .btn-outline:hover, .btn-quiet:hover { background: var(--surface-2); color: var(--accent-ink); }
.btn .ripple { display: none; }
.pill {
  padding: 6px 12px; border: 0; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent-ink); font-size: .75rem; font-weight: 550; letter-spacing: .005em;
}
.pulse { width: 6px; height: 6px; border-radius: 50%; background: #30a46c; box-shadow: none; animation: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Type, sections and surfaces. */
.section, .section + .section { padding: 96px 0; border: 0; background: transparent; }
.sec-head { max-width: 760px; margin-bottom: 44px; }
.kicker { color: var(--accent-ink); font-size: .8125rem; font-weight: 600; letter-spacing: .01em; text-transform: none; }
.kicker::before, .kicker::after { content: none; }
.sec-title { margin-top: 12px; font-size: var(--t-h2); line-height: 1.12; font-weight: 650; letter-spacing: var(--t-h2-ls); }
.sec-title small { margin-top: 16px; font-size: .875rem !important; font-weight: 400; line-height: 1.75; }
.sec-lede { max-width: 580px; margin-top: 18px; font-size: 1rem; line-height: 1.8; color: var(--muted); }
.hl, .sec-title em, .detail-heading h2 em, .purchase-section h2 em, .pf-hero h1 em {
  color: var(--accent-ink) !important; background: none !important; -webkit-text-fill-color: currentColor !important; animation: none !important;
}
.pcard, .bcard, .step, .friend-card, .faq-item, .disclaimer, .rel-item,
.download-panel, .risk-note, .hz-cell, .hz-info, .hz-dl, .kn-cell, .kn-info, .kn-dl,
.purchase-section, .community-section, .plugin-screen {
  border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow-1);
}
.pcard:hover, .bcard:hover, .step:hover, .friend-card:hover, .faq-item:hover,
.disclaimer:hover, .rel-item:hover, .download-panel:hover, .risk-note:hover,
.hz-cell:hover, .hz-info:hover, .hz-dl:hover, .kn-cell:hover, .kn-info:hover, .kn-dl:hover,
.purchase-section:hover, .community-section:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.pcard:not([data-tilt]):hover, .bcard:not([data-tilt]):hover, .step:not([data-tilt]):hover,
.friend-card:not([data-tilt]):hover, .kn-player:hover { transform: none; }
.pcard::before, .product-card::before { display: none; }
.bcard-icon, .pcard-icon, .cell-ico, .step-icon, .dg-icon, .friend-logo, .rel-badge {
  border: 0; border-radius: 12px; box-shadow: none !important;
}
.bcard:hover .bcard-icon, .pcard:hover .pcard-icon, .step:hover .step-icon,
.rel-item:hover .rel-badge, .friend-card:hover .friend-logo, .device-group:hover .dg-icon { transform: none; }
.chips li, .card-tags i, .dg-list li, .device-grid span, .kn-states li, .kn-flow b,
.pf-pj-chips li { border: 0; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.faq-list { max-width: 920px; gap: 10px; border: 0; }
.faq-item { border-radius: 16px; overflow: hidden; }
.faq-q { padding: 22px 24px; font-size: 1rem; font-weight: 550; line-height: 1.5; }
.faq-q i::before, .faq-q i::after { background: var(--muted); }
.faq-a p { max-width: 75ch; padding: 0 52px 24px 24px; font-size: .9375rem; line-height: 1.85; }
.faq-a { transition: grid-template-rows .3s var(--ease); }
.friend-card { padding: 26px; }
.friend-head strong { font-size: 1.125rem; }
.friend-url { font-size: .75rem; font-weight: 500; }
.rel-item { padding: 13px 15px; border-radius: 14px; }
.rel-item:hover { transform: none; }

/* Shared footer: one structure and rhythm on every page. */
.site-footer {
  margin-top: 0; padding: 72px 0 28px; border-top: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--ink-2);
}
.footer-inner {
  grid-template-columns: minmax(240px, 1.05fr) minmax(360px, 1.25fr) minmax(260px, .9fr);
  gap: 32px 44px; padding-bottom: 44px;
}
.footer-brand { grid-column: 1; grid-row: 1; min-width: 0; }
.footer-brand .brand { min-height: 40px; }
.footer-brand > p { max-width: 34ch; margin-top: 16px; font-size: .875rem; line-height: 1.8; }
.footer-author { margin-top: 16px; font-size: .8125rem; }
.footer-title, .footer-contact h4, .related-title, .footer-nav h4 {
  display: block; margin: 0 0 14px; color: var(--muted);
  font-size: .6875rem; font-weight: 650; letter-spacing: .045em; text-transform: uppercase;
}
.footer-tags { gap: 6px; margin-top: 16px; }
.footer-tags span, .footer-tags a, .contact-chip {
  min-height: 30px; padding: 6px 10px; border: 1px solid var(--line-2);
  border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: .6875rem;
}
.footer-tags a:hover, .contact-chip:hover { border-color: var(--line); color: var(--ink); }
.footer-contact { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.footer-contact-list { gap: 6px; }
.contact-chip { gap: 7px; }
.footer-nav {
  grid-column: 2; grid-row: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px;
  padding: 0 0 0 2px;
}
.footer-nav > div:first-child {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line-2);
}
.footer-nav > div:first-child h4 { grid-column: 1 / -1; }
.footer-nav > div:last-child { grid-column: 1 / -1; padding-top: 22px; }
.footer-nav a {
  display: flex; align-items: center; min-height: 32px; margin: 0; padding: 3px 0;
  color: var(--ink-2); font-size: .8125rem; transition: color .16s var(--ios-ease);
}
.footer-nav a:hover { color: var(--accent-ink); }
.related {
  grid-column: 3; grid-row: 1; min-width: 0; padding-left: 28px;
  border-left: 1px solid var(--line-2);
}
.related-list { gap: 7px; }
.rel-item {
  min-height: 54px; padding: 10px 12px; border: 1px solid transparent; border-radius: 12px;
  background: var(--surface); transition: border-color .16s var(--ios-ease), background-color .16s var(--ios-ease);
}
.rel-item:hover { border-color: var(--line); background: var(--surface); box-shadow: none; transform: none; }
.rel-badge { width: 34px; height: 34px; }
.rel-text strong { font-size: .8125rem; font-weight: 600; }
.rel-text small { font-size: .6875rem; line-height: 1.5; }
.disclaimer {
  margin-top: 0; padding: 24px 26px; border: 1px solid var(--line-2);
  border-radius: var(--r-m); background: var(--surface); box-shadow: none;
}
.disclaimer h4 { margin-bottom: 10px; }
.disclaimer p { font-size: .75rem; line-height: 1.85; }
.footer-base {
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-2);
  font-size: .6875rem; line-height: 1.7;
}
.footer-base a { border: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* 跑马灯：纯 transform 位移，合成层内完成，不进绘制管线，弱机上也能跑。
   两个 span 内容相同，位移正好 -50% 时首尾无缝；悬停暂停，读得清。 */
.marquee { padding: 15px 0; border: 0; border-block: 1px solid var(--line-2); background: var(--bg-2); }
.marquee-track {
  width: max-content;
  animation: marquee var(--marquee-dur, 42s) linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track span {
  padding: 0 28px 0 0; color: var(--muted); font-size: .75rem;
  white-space: nowrap; animation: none;
}
.marquee-track span + span { display: block; }

/* Product heroes. */
.hero, .kn-hero, .hz-hero, .detail-hero { min-height: auto; padding: 136px 0 88px; }
.hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
.hero h1, .kn-hero h1, .hz-hero h1 { margin-top: 24px; font-size: var(--t-display); line-height: 1.06; font-weight: 650; letter-spacing: var(--t-display-ls); }
.hero .lede, .kn-hero .lede, .hz-hero .lede { max-width: 46ch; margin-top: 24px; font-size: 1.0625rem; line-height: 1.85; }
.hero-actions, .kn-hero-cta, .hz-hero-cta { gap: 10px; margin-top: 30px; }
.hero-stats { gap: 40px; margin-top: 38px; padding-top: 24px; border-color: var(--line-2); }
.hero-stats strong { font-size: 1.75rem; font-weight: 600; letter-spacing: -.035em; }
.hero-stats span { font-size: .75rem; }
.phone-wrap { width: min(280px, 70vw, 34vh); }
/* 手机本体不做常驻浮动：一片大面积阴影物 24h 上下漂移，在滚动时会被读成「页面在抖」。
   它的「活」改为入场时的一次落定 + 指针悬停时的极轻响应（见 Motion system）。 */
.phone, .phone-wrap, .phone-body, .phone-glare { animation: none; }
.phone { transform: none; }
.phone-body { border: 7px solid #202022; border-radius: 40px; background: #111; box-shadow: 0 30px 60px rgba(0, 0, 0, .2); }
.phone-body::before { width: 60px; height: 18px; top: 7px; border-radius: 999px; background: #202022; box-shadow: none; }
.phone-glare { display: none; }
/* 平台浮签只在有真实指针的设备上出现（触屏上没有「悬停」可言，出现即遮挡画面）；
   它们的常驻漂移已取消，改为入场时逐枚落位，见 Motion system 的 .float-chip。 */
.float-chip { display: none; }
.shot-frame { border: 6px solid #202022; border-radius: 30px; background: #111; box-shadow: 0 20px 40px rgba(0, 0, 0, .12); }
.shot:nth-child(n) { margin-top: 0; }
.shot:hover .shot-frame { transform: none; }
.shot figcaption { font-size: .75rem; }
.download-panel, .hz-dl, .kn-dl { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.kn-hero-in, .hz-hero-in { gap: 60px; }
.kn-player { border: 0; border-radius: var(--r-l); box-shadow: var(--shadow-2); }
.kn-player:hover { box-shadow: var(--shadow-2); }
.hz-bar-wrap { border: 0; border-radius: var(--r-l); box-shadow: var(--shadow-2); }
.hz-bar-dots button, .hz-pat { border-radius: 12px; }
.hz-app-shell { border-radius: var(--r-l); }

/* Portfolio: focused introduction and four equally legible products. */
.pf-hero { min-height: auto; padding: 142px 0 88px; overflow: hidden; }
.pf-hero-in { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.pf-hero h1 { margin: 24px 0 0; font-size: clamp(4.5rem, 7vw, 6.5rem); line-height: .98; font-weight: 650; letter-spacing: -.065em; }
.pf-hero h1 > span { display: block; margin-top: 22px; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.35; font-weight: 500; letter-spacing: -.035em; }
.pf-hero .lede { max-width: 32ch; margin-top: 24px; font-size: 1.0625rem; line-height: 1.85; }
.pf-hero .lede span { opacity: 1 !important; color: var(--muted); }
.pf-hero-actions { gap: 10px; margin-top: 30px; }
.pf-panel { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.pf-panel-head { padding: 0 4px 12px; color: var(--muted); font-size: .75rem; letter-spacing: 0; }
.pf-rows { gap: 8px; border: 0; }
.pf-row, .pf-row:nth-child(n) {
  min-width: 0; gap: 13px; padding: 13px 15px; border: 0; border-radius: 16px; background: var(--surface);
  /* 描边由 --mx-ring 渐入（见文末 Motion system）：基线没有阴影、悬停是
     inset 描边，两端形状不同，Chrome 不会插值。 */
  transition: background-color var(--motion-base) var(--ios-ease),
              transform var(--motion-fast) var(--ios-spring);
}
.pf-row:hover { background: var(--surface-2); }
/* .pf-row::before（左侧主色指示条）已随 portal.css 的门户增强层一起移除，
   这里不再需要 display:none 去压制它。 */
.pf-row-ico, .pf-row[data-brand] .pf-row-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
.pf-row[data-brand="huazai"] .pf-row-ico { background: var(--brand-huazai-soft); color: var(--brand-huazai); }
.pf-row[data-brand="miband"] .pf-row-ico { background: var(--teal-soft); color: var(--teal); }
.pf-row[data-brand="kanami"] .pf-row-ico { background: var(--brand-kanami-soft); color: var(--brand-kanami); }
.pf-row-body strong { font-size: .875rem; font-weight: 600; }
.pf-row-body small { display: block; margin-top: 1px; font-size: .6875rem; }
.pf-row-go .ic { width: 15px; height: 15px; }
.pf-panel:is([data-preview]) .pf-row:is(:hover, :focus-visible) { background: var(--surface-2); }
.pf-preview, .pf-panel[data-preview] .pf-preview {
  display: block; height: 228px; margin-top: 12px; border: 1px solid var(--line-2); border-radius: 24px;
  background: var(--surface); overflow: hidden; transition: none;
}
.pf-preview::before, .pf-preview::after { display: none; }
.pf-preview-scene {
  grid-template-columns: 132px minmax(0, 1fr); gap: 24px; padding: 30px;
  filter: none !important; transform: none !important; will-change: auto;
  transition: opacity .16s var(--ios-ease), visibility 0s linear .16s;
}
.pf-preview-scene.is-active { filter: none !important; transform: none !important; transition: opacity .16s var(--ios-ease), visibility 0s; }
.pf-preview-scene:not(.is-active) .pf-preview-copy { visibility: hidden; }
.pf-preview-icon { width: 112px; height: 112px; border-radius: 26px; transform: none; box-shadow: 0 10px 24px rgba(0, 0, 0, .1); }
.pf-preview-bar { width: 132px; height: auto; border-radius: 6px; }
.pf-preview-watch { width: 82px; height: 170px; }
.pf-preview-copy, .pf-panel[data-preview] .pf-preview-copy { gap: 8px; }
.pf-preview-copy b, .pf-panel[data-preview] .pf-preview-copy b { color: var(--ink) !important; -webkit-text-fill-color: currentColor; font-size: .875rem; font-weight: 650; letter-spacing: .015em; }
.pf-preview-copy span, .pf-panel[data-preview] .pf-preview-copy span { color: var(--muted) !important; -webkit-text-fill-color: currentColor; font-size: .875rem; line-height: 1.7; }
#projects { padding-top: 80px; }
#projects .sec-head { display: block; max-width: 760px; padding: 0; border: 0; }
#projects .sec-head::after { content: none; }
.pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pf-project, .pf-project:nth-child(n) {
  grid-column: auto; display: flex; flex-direction: column; padding: 0; border: 0; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden;
}
/* 悬停的描边与阴影统一由文末 Motion system 的 --mx-ring 机制驱动。
   这里**不能**再写一条 .pf-project:hover{box-shadow: inset ...}：
   基线是外阴影、悬停是内阴影，两者之间浏览器无法插值，必然瞬间跳变。 */
.pf-pj-visual { flex: none; height: 300px; padding: 32px; border: 0; background: #eaf2fb; }
.pf-project:nth-child(2) .pf-pj-visual { background: #e8eff9; }
.pf-project:nth-child(3) .pf-pj-visual { background: #e6f0ec; }
.pf-project:nth-child(4) .pf-pj-visual { background: #f7ecdf; }
.pf-project:nth-child(1) .pf-pj-visual { background: #e3ebf5; }
.pf-project:nth-child(2) .pf-pj-visual { background: #e6e9f1; }
.pf-project:nth-child(3) .pf-pj-visual { background: #e3ece8; }
.pf-project:nth-child(4) .pf-pj-visual { background: #f1e8df; }
[data-theme="dark"] .pf-project:nth-child(1) .pf-pj-visual { background: #202a36; }
[data-theme="dark"] .pf-project:nth-child(2) .pf-pj-visual { background: #232735; }
[data-theme="dark"] .pf-project:nth-child(3) .pf-pj-visual { background: #202b27; }
[data-theme="dark"] .pf-project:nth-child(4) .pf-pj-visual { background: #302821; }
/* 悬停不在卡片盒子外面画画：不加 filter、不加外阴影（filter 会改变卡片的
   绘制边界，浏览器会把它报成真实的 5px 位移）。描边由 --mx-ring 渐入。 */
.pf-project:hover .pf-pj-visual { filter: none; }
.pf-pj-visual::after { content: none; }
.pf-pj-visual .phone-wrap { width: 112px; }
.pf-pj-visual .phone-body { border: 4px solid #202022; border-radius: 20px; box-shadow: 0 14px 30px rgba(0, 0, 0, .16); }
.pf-pj-visual .phone-body::before { width: 28px; height: 8px; top: 4px; }
.pf-screens { max-width: 100%; gap: 13px; }
.pf-screens .scr { border: 0; border-radius: 8px; box-shadow: 0 8px 20px rgba(0, 0, 0, .1); }
.pf-screens figure:nth-child(n+4) { display: block; }
.pf-watch-art img { width: 108px; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .18)); }
.pf-watch-art span { color: var(--ink-2); font-size: .75rem; }
.pf-pj-body { display: flex; gap: 13px; padding: 26px 28px 28px; }
.pf-pj-head { gap: 11px; }
.pf-pj-head img, .pf-pj-head .pf-row-ico { width: 38px; height: 38px; border-radius: 11px; }
.pf-pj-head h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -.03em; }
.pf-pj-tag, .pf-pj-tag[data-tone] { margin-left: auto; padding: 5px 9px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .625rem; font-weight: 500; box-shadow: none; }
.pf-project p { font-size: .875rem; line-height: 1.75; color: var(--muted); }
.pf-pj-chips { gap: 6px; padding-top: 2px; }
.pf-pj-chips li { padding: 4px 9px; font-size: .6875rem; }
.pf-pj-chips li::before { content: none; }
.pf-pj-actions { gap: 8px; padding-top: 8px; }
.pf-pj-actions .btn { min-height: 40px; padding-inline: 16px; font-size: .75rem; }
.kn-shot { border: 0; border-radius: 18px; box-shadow: 0 16px 36px rgba(0, 0, 0, .08); }
.pf-faq-wrap { max-width: 920px; }

/* 换页转场交给 motion.js 的自绘幕布（见文件末尾 Motion system 第 6 节）。
   这里显式关掉浏览器原生的跨文档 View Transition：Kanami 页里嵌着哔哩哔哩
   播放器，跨文档快照会把它拍成一块空白，而且原生转场和自绘幕布同时生效
   会叠出两层动画。关掉之后浏览器只做默认跳转，幕布负责中间那段。 */
@view-transition { navigation: none; }

.pf-panel, .pf-row, .phone-body, .kn-player, .stage-cover, .stage-watch { transition-property: background-color, opacity, transform; }

@media (min-width: 1081px) and (min-height: 740px) {
  .hero, .pf-hero, .kn-hero, .hz-hero { min-height: min(820px, 100svh); }
}
@media (max-width: 1080px) {
  .hero-inner, .pf-hero-in { gap: 42px; }
  .pf-hero h1 { font-size: 5rem; }
  .pf-preview-scene { grid-template-columns: 100px minmax(0, 1fr); gap: 16px; padding: 24px; }
  .pf-preview-icon { width: 90px; height: 90px; }
  .pf-pj-head { flex-wrap: wrap; }
  .pf-pj-tag, .pf-pj-tag[data-tone] { margin-left: 49px; }
  .kn-hero-in, .hz-hero-in { gap: 38px; }
  .footer-inner { grid-template-columns: minmax(220px, .9fr) minmax(320px, 1.1fr); }
  .footer-brand { grid-column: 1; grid-row: 1; }
  .footer-nav { grid-column: 2; grid-row: 1; }
  .related { grid-column: 1 / -1; grid-row: 2; padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  html { scroll-padding-top: 78px; }
  .site-header, .site-header.is-stuck { height: 60px; }
  .header-inner { width: calc(100% - 32px); height: 59px; }
  .shell, .hero-inner, .hero-switcher, .detail-hero-inner, .detail-section { width: calc(100% - 40px); }
  .section, .section + .section { padding: 72px 0; }
  .hero, .kn-hero, .hz-hero, .detail-hero { min-height: auto; padding: 106px 0 64px; }
  .hero-inner, .pf-hero-in { grid-template-columns: 1fr; gap: 52px; }
  .hero-copy { max-width: 650px; }
  .pf-hero { min-height: auto; padding: 108px 0 64px; }
  .pf-hero h1 { font-size: 4.75rem; }
  .pf-hero h1 > span { font-size: 1.5rem; }
  .pf-hero .lede { max-width: 42ch; }
  .pf-preview { height: 238px; }
  .pf-preview-scene { grid-template-columns: 124px minmax(0, 1fr); padding: 28px; }
  .pf-preview-icon { width: 108px; height: 108px; }
  .pf-grid { gap: 18px; }
  .pf-pj-visual { height: 240px; padding: 24px; }
  .pf-pj-body { padding: 22px; }
  .pf-pj-head h3 { font-size: 1.125rem; }
  .pf-pj-tag, .pf-pj-tag[data-tone] { margin-left: 0; }
  .pf-pj-actions .btn { padding-inline: 13px; }
  .hero-stats { gap: 28px; }
  .theme-toggle, .icon-btn, .lang-toggle { width: 44px; height: 44px; }
  .back-home, .pill-btn { height: 44px; }
  .site-footer { padding: 56px 0 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 0; padding-bottom: 32px; }
  .footer-brand, .footer-nav, .related { grid-column: 1; grid-row: auto; }
  .footer-nav { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-2); }
  .footer-nav > div:first-child { padding-bottom: 20px; }
  .footer-nav > div:last-child { padding-top: 20px; }
  .related { margin-top: 24px; padding-top: 24px; }
  .related-list { grid-template-columns: 1fr; }
  .contact-chip { width: 100%; justify-content: flex-start; min-height: 40px; }
  .disclaimer { padding: 20px; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 6px; font-size: .6875rem; }
  .faq-q { padding-inline: 20px; }
  .faq-a p { padding-left: 20px; }
}
@media (max-width: 600px) {
  :root { --t-display: clamp(2.65rem, 12vw, 3.5rem); --t-h1: 2.65rem; --t-h2: 2rem; --r-l: 24px; }
  .brand small { display: none; }
  .back-home span { display: none; }
  .back-home { width: 44px; padding: 0; justify-content: center; }
  .hero h1, .kn-hero h1, .hz-hero h1 { font-size: var(--t-display); line-height: 1.08; }
  .hero .lede, .kn-hero .lede, .hz-hero .lede { font-size: .9375rem; }
  .hero-stats { justify-content: space-between; gap: 16px; }
  .hero-stats strong { font-size: 1.5rem; }
  .hero-stats span { font-size: .6875rem; }
  .hero-actions .btn, .kn-hero-cta .btn, .hz-hero-cta .btn { width: auto; flex: 1 1 auto; }
  .pf-hero { padding-top: 100px; }
  .pf-hero h1 { font-size: 4.25rem; }
  .pf-hero h1 > span { margin-top: 16px; font-size: 1.375rem; }
  .pf-hero .lede { font-size: .9375rem; }
  .pf-hero-actions .btn { width: auto; flex: 1; }
  .pf-row { min-height: 66px; }
  .pf-preview { height: 218px; }
  .pf-preview-scene { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 22px; }
  .pf-preview-icon { width: 80px; height: 80px; border-radius: 19px; }
  .pf-preview-bar { width: 88px; }
  .pf-preview-watch { width: 65px; height: 134px; }
  .pf-preview-copy b { font-size: .75rem; }
  .pf-preview-copy span { font-size: .75rem; }
  .pf-grid { grid-template-columns: 1fr; gap: 22px; }
  .pf-pj-visual { height: 270px; }
  .pf-pj-head { flex-wrap: nowrap; }
  .pf-pj-head h3 { font-size: 1.25rem; }
  .pf-pj-tag, .pf-pj-tag[data-tone] { margin-left: auto; font-size: .5625rem; }
  .pf-pj-body { padding: 24px; }
  .pf-pj-actions .btn { flex: 1; }
  .sec-head { margin-bottom: 34px; }
  .sec-title { line-height: 1.2; }
  .sec-lede { font-size: .9375rem; }
  .faq-q { font-size: .9375rem; }
  .faq-a p { padding: 0 46px 20px 20px; font-size: .875rem; }
  .friend-card { padding: 20px; }
  .footer-nav { gap: 24px; }
  .footer-base { line-height: 1.8; }
}
@media (max-width: 380px) {
  .pf-hero h1 { font-size: 3.75rem; }
  .pf-pj-head h3 { font-size: 1.125rem; }
  .pf-preview-scene { grid-template-columns: 72px minmax(0, 1fr); padding: 20px; }
  .pf-preview-icon { width: 68px; height: 68px; }
}
@media (hover: none) {
  .pf-row:hover { background: var(--surface); }
}
@media (prefers-reduced-motion: reduce) {
  .stage-product, .pf-preview-scene, .pf-preview-scene.is-active { transition: opacity .01s; transform: none; }
  .js [data-anim] { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header, .site-header.is-stuck, .tabbar { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .pcard, .bcard, .step, .friend-card, .faq-item, .rel-item, .pf-project, .pf-row { border-color: var(--ink-2); }
  .nav a { color: var(--ink); }
}
@media print { .art-directed { display: none; } }
/* ==========================================================================
   Motion system
   --------------------------------------------------------------------------
   四层，各管一件事：

     1  结构   入场 / 滚动揭示        animation（一次性）→ 不占用 transition
     2  反馈   悬停 / 按压            材质、描边、颜色、3px 图标位移
     3  指示   指针、聚光、呼吸        一条 rAF 循环，只读不写布局
     4  过渡   开屏 / 换页 / 换主题    自绘幕布

   两条底线：

   · 悬停不改变几何。卡片本身不位移、不缩放，反馈全部落在「面上」——底色、
     描边、光斑、内部图像的缓推、图标与箭头的微移。这样指针擦过边缘时不会
     有东西跳一下。这条是之前几轮实测出来的，别改回去。
   · 花销必须可降级。html.fx-lite（弱机）与 prefers-reduced-motion 拿到的
     是一份「更安静但完整」的页面，不是空白页或半残页。

   入场用 animation 而不是 transition：两者互不干扰，所以入场结束后
   transition 还是干干净净留给悬停用 —— 之前用 transition 做入场时，
   一次入场就把卡片的悬停过渡整个顶掉了。
   ========================================================================== */

:root {
  /* 时长与曲线：全部取自 iOS 系统的那几条。
     Apple 的过渡不是「匀速到终点」，而是起手快、尾巴长、末端轻轻收住 ——
     这就是 --ios-ease 这条曲线的形状（官方 HIG 的默认过渡时长是 0.35s，
     这里按用途拆成快 / 中 / 慢三档，比例关系照抄）。

       --ios-ease      绝大多数过渡：悬停、按压、颜色、描边
       --ios-spring    带一点回弹感但不真的回弹：位移、缩放、画面推进
       --ios-exit      退出 / 收起：起手更快，避免「拖泥带水」 */
  --motion-fast: 160ms;
  --motion-base: 260ms;
  --motion-slow: 450ms;
  --ios-ease: cubic-bezier(.25, .1, .25, 1);
  --ios-spring: cubic-bezier(.32, .72, 0, 1);
  --ios-exit: cubic-bezier(.4, 0, .2, 1);
  --motion-ease: var(--ios-ease);
  --motion-enter: var(--ios-spring);
  --motion-curtain: var(--ios-spring);
  --ease-out: var(--ios-spring);
  --ease-in-out: var(--ios-ease);

  /* 指针光斑与光晕：跟着 --accent 走，换页、换品牌色时自动跟随 */
  --spot: color-mix(in srgb, var(--accent) 11%, transparent);
  --mx-halo: color-mix(in srgb, var(--accent) 20%, transparent);
  --mx-line: color-mix(in srgb, var(--accent) 46%, transparent);
  --mx-ok: #30a46c;

  /* 开屏图案：本站开屏显示作品集的四格标记 */
  --mx-mark: url("assets/brand/site-mark.svg");
}

/* ==========================================================================
   1. 结构 · 入场
   --------------------------------------------------------------------------
   初始隐藏挂在 html.mx 上：这个标记由各页 <head> 的内联脚本在首帧之前写好，
   所以不存在「先显示、再隐藏」的闪动。播放时机由 html.mx-ready 决定
   （motion.js 在开屏幕布开始收起时挂上），在此之前元素安静地等着。

   看门狗：mx-ready 一直没来（motion.js 没跑起来）时，2.6s 后由一条
   一次性动画把内容原样露出来 —— 宁可没有动画，也不能白屏。
   ========================================================================== */

.js.mx :is(.reveal, [data-anim], .pf-row, .float-chip) {
  opacity: 0;
  filter: none;
}
/* 入场动画的 fill 是 backwards（结束后放手，让 transform 回归 CSS 声明，
   否则 [data-tilt] 的 3D 倾角会被动画的终值永久压住）。
   所以「已揭示」的可见状态必须由这里给出，不能指望动画填住。 */
.js.mx.mx-ready .reveal.in,
.js.mx.mx-ready .hero-ready [data-anim] {
  opacity: 1;
}
.js.mx .reveal-title { clip-path: inset(-14% 0 112% 0); }

@keyframes mx-failsafe {
  to { opacity: 1; transform: none; clip-path: none; }
}
html.mx:not(.mx-ready) :is(.reveal, [data-anim], .pf-row, .float-chip) {
  animation: mx-failsafe 1ms linear 2.6s forwards;
}

@keyframes mx-rise {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to   { opacity: 1; transform: none; }
}
/* 标题的遮罩擦除：文字从下沿「长」出来，比整块上移更像排版而不是模板。
   clip-path 只进合成层，不触发重排；下沿多留 18% 免得切到字形下伸部分。 */
@keyframes mx-title-in {
  from { clip-path: inset(-14% 0 112% 0); }
  to   { clip-path: inset(-14% 0 -18% 0); }
}

/* ---- 滚动揭示 ---- */
.js.mx.mx-ready .reveal.in {
  animation: mx-rise .66s var(--motion-enter) var(--d, calc(var(--mx-i, 0) * 55ms)) backwards;
}
.js.mx.mx-ready .reveal.in .reveal-title,
.js.mx.mx-ready .reveal-title.in {
  animation: mx-title-in .82s var(--motion-enter) calc(var(--d, 0ms) + 90ms) backwards;
  /* 同理：动画结束后 clip-path 要回到「完全露出」的静态值 */
  clip-path: inset(-14% 0 -18% 0);
}

/* ---- 首屏 ---- */
.js.mx.mx-ready .hero-ready [data-anim] {
  animation: mx-rise .78s var(--motion-enter) var(--mx-d, 0ms) backwards;
}
/* 阶梯节奏：越靠后的元素等得越久，但间隔只有 70–80ms —— 再大就成了幻灯片 */
.js.mx-ready [data-anim="1"] { --mx-d: 20ms; }
.js.mx-ready [data-anim="2"] { --mx-d: 90ms; }
.js.mx-ready [data-anim="3"] { --mx-d: 170ms; }
.js.mx-ready [data-anim="4"] { --mx-d: 240ms; }
.js.mx-ready [data-anim="5"] { --mx-d: 310ms; }
.js.mx-ready [data-anim="6"] { --mx-d: 190ms; }
.js.mx-ready [data-anim="7"] { --mx-d: 380ms; }

/* 主视觉比文案晚一点、幅度大一点：先让人读到字，再让物件落定。
   它的子元素本身就带 [data-anim]（由上面那条统一放行），这条只是把
   时长和幅度调大一点，backwards 结束时 opacity 由 [data-anim] 那条兜住。 */
.js.mx.mx-ready .hero-ready :is(.hero-visual, .kn-stage, .hz-stage) > * {
  animation: mx-rise .92s var(--motion-enter) var(--mx-d, 0ms) backwards;
}

/* 主视觉里那台手机：入场时从 96.5% 落到位，之后不再自己动。
   常驻浮动已取消 —— 一片大面积阴影物 24h 上下漂移，滚动时会被读成「页面在抖」。 */
.js.mx.mx-ready .hero-ready .phone {
  animation: mx-phone-in .92s var(--motion-enter) .18s both;
}
@keyframes mx-phone-in {
  from { opacity: 0; transform: translate3d(0, 26px, 0) scale(.965); }
  to   { opacity: 1; transform: none; }
}

/* 平台浮签：逐枚落位，顺序从左上到右下，读起来像「贴上去」的。
   动画是 backwards，结束后不填住 opacity，所以可见值必须静态给出。 */
.js.mx.mx-ready .hero-ready .hero-visual .float-chip { opacity: 1; transform: none; }
.js.mx.mx-ready .hero-ready .hero-visual .fc1 { animation: mx-rise .62s var(--motion-enter) .30s backwards; }
.js.mx.mx-ready .hero-ready .hero-visual .fc2 { animation: mx-rise .62s var(--motion-enter) .38s backwards; }
.js.mx.mx-ready .hero-ready .hero-visual .fc3 { animation: mx-rise .62s var(--motion-enter) .46s backwards; }
.js.mx.mx-ready .hero-ready .hero-visual .fc4 { animation: mx-rise .62s var(--motion-enter) .54s backwards; }

/* 浮签的位置在 styles.css 里是按「压住手机边框」调的，实测每枚会往屏幕里
   探进 10–22px，正好盖住应用界面的第一行。这里统一往外让 6–8%，
   让它们贴着深色边框的外沿，既不挡内容，也还是「贴在机器上」的关系。 */
.hero-visual .fc1 { left: -29%; }
.hero-visual .fc2 { right: -31%; }
.hero-visual .fc3 { left: -27%; }
.hero-visual .fc4 { right: -29%; }

/* 作品集速览四行：按序点亮。入口状态同样要静态给出可见值 ——
   动画是 backwards，结束后不再填住 opacity。 */
.js.mx.mx-ready :is(.hero-ready .pf-panel, .pf-panel.in) .pf-row { opacity: 1; transform: none; }
.js.mx.mx-ready .hero-ready .pf-panel .pf-row:nth-child(1) { animation: mx-rise .58s var(--motion-enter) .22s backwards; }
.js.mx.mx-ready .hero-ready .pf-panel .pf-row:nth-child(2) { animation: mx-rise .58s var(--motion-enter) .29s backwards; }
.js.mx.mx-ready .hero-ready .pf-panel .pf-row:nth-child(3) { animation: mx-rise .58s var(--motion-enter) .36s backwards; }
.js.mx.mx-ready .hero-ready .pf-panel .pf-row:nth-child(4) { animation: mx-rise .58s var(--motion-enter) .43s backwards; }
.js.mx.mx-ready .pf-panel.in .pf-row { animation: mx-rise .58s var(--motion-enter) var(--d, 0ms) backwards; }

/* 数字滚动由 motion.js 逐帧写入；这里只固定等宽数字，防宽度呼吸。 */
.hero-stats strong { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   2. 反馈 · 悬停
   --------------------------------------------------------------------------
   中性化历史遗留的「位移型」悬停：那些 translateY(-4px) 是跳动感的来源。
   [data-tilt] 的元素例外 —— 倾角只在 .mx-tilting 期间存在（见第 5 节）。
   ========================================================================== */

/* 中性化历史遗留的「位移型」悬停：那些 translateY(-4px) 是跳动感的来源。
   带 [data-tilt] 的元素必须排除 —— 它们的 transform 由 --mx-rx/--mx-ry 驱动，
   这里一条 !important 的 transform:none 会把倾角和它的过渡一起按死。 */
.btn:hover,
.pcard:hover, .bcard:hover, .step:hover, .friend-card:hover,
.shot:hover .shot-frame, .rel-item:hover, .update-row:hover,
.pf-project:not([data-tilt]):hover,
.hz-cell:hover, .hz-pat:hover, .hz-cmd:hover, .hz-spec li:hover,
.kn-player:hover, .device-group:hover, .feature-item:hover {
  transform: none !important;
}

/* 图标在自己的盒子里动，不动布局。 */
.bcard-icon, .pcard-icon, .step-icon, .friend-logo, .rel-badge,
.dg-icon, .cell-ico, .pf-row-ico, .pf-pj-head img, .product-icon {
  transition: background-color var(--motion-fast) var(--ios-ease),
              color var(--motion-fast) var(--ios-ease),
              transform var(--motion-base) var(--motion-enter);
}
.bcard:hover .bcard-icon, .pcard:hover .pcard-icon, .step:hover .step-icon,
.friend-card:hover .friend-logo, .rel-item:hover .rel-badge,
.device-group:hover .dg-icon, .pf-project:hover .pf-pj-head img,
.pf-project:hover .pf-pj-head .pf-row-ico {
  box-shadow: none;
  transform: scale(1.06);
}
.rel-arrow, .pf-row-go .ic, .friend-go, .update-arrow, .card-link b {
  transition: transform var(--motion-base) var(--motion-enter),
              color var(--motion-fast) var(--ios-ease);
}
.rel-item:hover .rel-arrow, .pf-row:hover .pf-row-go .ic, .friend-card:hover .friend-go,
a.update-row:hover .update-arrow, .product-card:hover .card-link b {
  transform: translate3d(3px, -3px, 0);
}

/* 面：以材质回应，不以位移回应。

   坑一（这次真正踩到的）：基线阴影是「0 1px 2px + 0 8px 24px」两层外阴影，
   悬停时换成 inset 描边。Chrome 不在「外阴影」和「内阴影」之间插值，
   于是不做过渡、直接跳到终值 —— 表现就是「鼠标一放上去，描边啪一下出现」。

   坑二：想用 --ring 变量喂 alpha 也不行。未用 @property 注册的自定义属性
   按离散值处理，链式推算出来仍然是跳变（实测 9 帧全是终值）。

   所以这里直接过渡 box-shadow 本体，并让两端都是同一个影子列表结构：
   描边那层的颜色从「透明」到「可见」，外阴影那层从「有阴影」到「透明」。
   形状、层数、位置全部一致，浏览器才插得动。

   选择器要带上 .pf-project:nth-child(n)：门户首页给卡片定基线阴影的是
   那条规则，特异性 0,2,0，比单独的 .pf-project 高。

   过渡列表里要带 rotate / scale：卡片同时是 [data-tilt]，鼠标进入会挂
   .mx-tilting 并改变这两个属性。它们和 box-shadow 互不争用，所以能同时过渡。 */
.bcard, .pcard, .step, .friend-card, .rel-item, .faq-item,
.pf-project, .pf-project:nth-child(n),
.pf-row, .product-card, .device-group, .feature-item, .hz-cell, .hz-pat,
.kn-cell, .kn-dl, .kn-info, .purchase-section, .community-section {
  transition:
    background-color var(--motion-base) var(--ios-ease),
    border-color var(--motion-base) var(--ios-ease),
    box-shadow var(--motion-base) var(--ios-ease),
    rotate var(--motion-base) var(--ios-spring),
    scale var(--motion-base) var(--ios-spring);
  box-shadow:
    inset 0 0 0 1px rgba(29, 29, 31, 0),
    0 1px 2px rgba(0, 0, 0, .025),
    0 8px 24px rgba(0, 0, 0, .035);
}
.bcard:hover, .pcard:hover, .step:hover, .friend-card:hover,
.device-group:hover, .feature-item:hover, .hz-cell:hover,
.product-card:hover, .pf-project:hover,
.pf-project:nth-child(n):hover {
  border-color: var(--line);
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 1px 2px rgba(0, 0, 0, 0),
    0 8px 24px rgba(0, 0, 0, 0);
}
/* 深色模式：描边与阴影都换成白色系，否则一圈黑边在深底上看不见 */
[data-theme="dark"] :is(.bcard, .pcard, .step, .friend-card, .rel-item, .faq-item,
.pf-project, .pf-project:nth-child(n), .product-card, .device-group,
.feature-item, .hz-cell, .hz-pat, .kn-cell, .kn-dl, .kn-info,
.purchase-section, .community-section) {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0),
    0 1px 2px rgba(0, 0, 0, .3),
    0 10px 28px rgba(0, 0, 0, .18);
}
[data-theme="dark"] :is(.bcard, .pcard, .step, .friend-card, .device-group,
.feature-item, .hz-cell, .product-card, .pf-project, .pf-project:nth-child(n)):hover {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .14),
    0 1px 2px rgba(0, 0, 0, 0),
    0 10px 28px rgba(0, 0, 0, 0);
}
.pf-row:hover, .rel-item:hover, .contact-chip:hover, .footer-nav a:hover {
  background: var(--surface-2);
}

/* 指针光斑：CSS 只声明形状与透明度，坐标由 motion.js 每帧写入 --px / --py。
   半径比原来大一点（300 → 340px）、浓度压到 11%：
   它是「一层薄光」，不是一张跟着鼠标跑的色块。 */
.glow::after {
  background: radial-gradient(340px circle at var(--px, 50%) var(--py, 50%),
              var(--spot), transparent 64%);
  transition: opacity var(--motion-base) var(--ios-ease);
}

/* 卡片里的画面：外框不动，画面缓推；溢出由外框裁掉，永远露不出边。 */
.pf-pj-visual, .product-card-media, .stage-cover, .shot-frame, .hz-bar-wrap,
.pf-screens .scr, .pf-preview { overflow: hidden; }
.pf-screens .scr, .product-card-image, .stage-cover img, .pf-watch-art img,
.kn-shot, .hz-bar img, .pf-pj-visual .phone-body {
  transition: transform .72s var(--motion-enter);
}
.product-card:hover .product-card-image { transform: scale(1.015); }
.pf-project:hover .pf-screens .scr { transform: scale(1.02); }
.pf-project:hover .pf-watch-art img { transform: scale(1.03); }
.pf-project:hover .pf-pj-visual .phone-body { transform: scale(1.015); }

/* 导航：底色轻抬，不做下划线滑动（那条留给阅读进度）。 */
.nav a {
  transition: color var(--motion-fast) var(--ios-ease),
              background-color var(--motion-fast) var(--ios-ease);
}
.nav a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.nav a.is-active {
  transition: color var(--motion-fast) var(--ios-ease),
              background-color var(--motion-base) var(--ios-ease),
              box-shadow var(--motion-base) var(--ios-ease);
}

/* 页脚链接：颜色到位 + 2px 内缩，不产生重排。 */
.footer-nav a {
  transition: color var(--motion-fast) var(--ios-ease),
              transform var(--motion-base) var(--motion-enter);
}
.footer-nav a:hover { transform: translateX(2px); }

/* ==========================================================================
   3. 反馈 · 按压
   --------------------------------------------------------------------------
   按下必须立刻发生，松开必须立刻回位，不能留下任何 transform ——
   否则下一次布局量测会带着它。
   ========================================================================== */

.btn, .icon-btn, .theme-toggle, .lang-toggle, .back-home, .pill-btn,
.pf-row, .filter-tags button, .hz-bar-dots button, .hz-pat,
.product-card-flag, .hero-switcher button, .tabbar a {
  transition: transform var(--motion-fast) var(--motion-ease),
              background-color var(--motion-fast) var(--ios-ease),
              border-color var(--motion-fast) var(--ios-ease),
              color var(--motion-fast) var(--ios-ease);
}
.btn:active, .icon-btn:active, .theme-toggle:active, .lang-toggle:active,
.back-home:active, .pill-btn:active, .pf-row:active, .filter-tags button:active,
.hz-bar-dots button:active, .hz-pat:active, .hero-switcher button:active,
.tabbar a:active {
  transform: scale(.97);
}
.btn { position: relative; overflow: hidden; }

/* 涟漪：motion.js 在 pointerdown 时插入，动画结束自行移除。
   落点用 --mx-x / --mx-y 写进元素坐标，直径按按钮对角的一半算，
   scale 到 1 时正好盖满按钮而不会溢出成方块。 */
.mx-ripple {
  position: absolute;
  left: var(--mx-x, 50%);
  top: var(--mx-y, 50%);
  width: var(--mx-r, 120px);
  height: var(--mx-r, 120px);
  margin: calc(var(--mx-r, 120px) / -2) 0 0 calc(var(--mx-r, 120px) / -2);
  border-radius: 50%;
  background: currentColor;
  opacity: .16;
  pointer-events: none;
  transform: scale(0);
  animation: mx-ripple .46s var(--ease-out) forwards;
}
@keyframes mx-ripple {
  to { transform: scale(1); opacity: 0; }
}

/* ==========================================================================
   4. 指示 · 常驻动效
   ========================================================================== */

/* 状态点：外圈是一条会扩散的环。用 transform + opacity 画，不用 box-shadow ——
   后者会让整个点每帧重绘。 */
.pill .pulse {
  position: relative;
  background: var(--mx-ok);
  box-shadow: none;
  animation: none;
}
.pill .pulse::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1.5px solid var(--mx-ok);
  opacity: .55;
  animation: mx-ping 2.8s var(--ease-out) infinite;
}
@keyframes mx-ping {
  0%        { transform: scale(.7); opacity: .6; }
  65%, 100% { transform: scale(2.3); opacity: 0; }
}

/* 首屏视觉底下的一层光晕：跟着主色呼吸，幅度只有 6%。 */
.hero-visual { isolation: isolate; }
.hero-visual::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(520px, 92%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--mx-halo) 0%, transparent 66%);
  filter: var(--fx-blur-10);
  opacity: .5;
  pointer-events: none;
  animation: mx-breathe 9s var(--ease-in-out) infinite alternate;
}
.hero-visual > * { position: relative; z-index: 1; }
@keyframes mx-breathe {
  from { transform: scale(.94); opacity: .36; }
  to   { transform: scale(1.06); opacity: .6; }
}

/* 跑马灯：位移全在合成层，悬停/聚焦暂停方便读清楚。 */
.marquee-track { will-change: transform; }

/* 自定义指针：小点即时跟随，外环带一点阻尼。 */
.mx-dot, .mx-ring {
  position: fixed;
  z-index: 9998;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
}
.mx-dot {
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--accent-ink);
  transition: opacity var(--motion-base) var(--ios-ease);
}
.mx-ring {
  width: 28px; height: 28px;
  margin: -14px 0 0 -14px;
  border: 1.5px solid var(--mx-line);
  transition: opacity var(--motion-base) var(--ios-ease),
              width var(--motion-base) var(--motion-enter),
              height var(--motion-base) var(--motion-enter),
              margin var(--motion-base) var(--motion-enter),
              background-color var(--motion-base) var(--ios-ease),
              border-color var(--motion-base) var(--ios-ease);
}
html.mx-cursor .mx-dot,
html.mx-cursor .mx-ring { opacity: 1; }
html.mx-cursor.mx-pointer-link .mx-ring {
  width: 46px; height: 46px;
  margin: -23px 0 0 -23px;
  background: var(--accent-soft);
  border-color: transparent;
}
html.mx-cursor.mx-pointer-down .mx-ring {
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
}
html.mx-cursor.mx-cursor-out .mx-dot,
html.mx-cursor.mx-cursor-out .mx-ring { opacity: 0; }

/* 替代指针生效时隐藏系统指针；输入类控件仍用系统光标定位。 */
html.mx-cursor,
html.mx-cursor * { cursor: none !important; }
html.mx-cursor :is(input, textarea, select, [contenteditable]),
html.mx-cursor :is(input, textarea, select, [contenteditable]) * {
  cursor: auto !important;
}

/* 指针聚光：一层很薄的径向光，跟着指针在页面底层移动。 */
.mx-spot {
  position: fixed;
  z-index: -1;
  top: 0; left: 0;
  width: 620px; height: 620px;
  margin: -310px 0 0 -310px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, var(--spot) 0%, transparent 62%);
  transition: opacity .5s var(--ios-ease);
  will-change: transform;
}
html.mx-cursor .mx-spot { opacity: 1; }

/* ==========================================================================
   5. 指示 · 指针倾斜与磁吸
   --------------------------------------------------------------------------
   倾角只在 .mx-tilting 期间存在：JS 在 pointerenter 时挂上、离开后摘掉。
   这样一百多个 [data-tilt] 平时都不会被提升成合成层。
   角度上限 2.4°，再大就是玩具。

   ⚠ 倾角用独立的 rotate / scale 属性，不写 transform。
   原因：卡片自己的 transition 列表里带着 transform（悬停时被 .mx-tilting
   触发），而 transform 是**单个**属性 —— 一旦倾斜也走 transform，
   两者会争同一个属性，Chrome 会在同一帧里把刚起的 box-shadow 过渡 cancel
   掉（实测线上：box-shadow 的 transitionrun 紧接着 transitioncancel，
   描边瞬间到终值）。rotate / scale 是独立的可动画属性，与 transform 并行，
   互不干扰。

   静止态也要有同构的初始值（0deg），否则 none → matrix3d 需要矩阵分解，
   实测直接跳变。 */
.js.mx [data-tilt] {
  perspective: var(--mx-p, 1400px);
  rotate: x 0deg y 0deg;
  scale: 1;
}
.js.mx [data-tilt].mx-tilting {
  rotate: x var(--mx-rx, 0deg) y var(--mx-ry, 0deg);
  scale: var(--mx-scale, 1);
  will-change: rotate, scale;
}
.js.mx [data-tilt].mx-tilting:active { --mx-scale: .988; }

/* 磁吸：主按钮朝指针方向轻挪几像素，松开回位（--mx-tx / --mx-ty 由 JS 写入）。 */
.js.mx .btn-primary.mx-magnetic {
  transform: translate3d(var(--mx-tx, 0), var(--mx-ty, 0), 0) scale(var(--mx-scale, 1));
  transition: transform 300ms var(--ease-out),
              background-color var(--motion-fast) var(--ios-ease),
              color var(--motion-fast) var(--ios-ease);
}
.js.mx .btn-primary.mx-magnetic:active { --mx-scale: .97; }

/* ==========================================================================
   6. 过渡 · 开屏 / 换页 / 换主题
   --------------------------------------------------------------------------
   全部用自绘幕布，不用原生 View Transition：Kanami 页里嵌着哔哩哔哩播放器，
   跨文档快照会把它拍成一块空白；幕布盖住整个视口没有这个问题，而且两站
   之间（跨源）也能用同一套手势。
   ========================================================================== */

.mx-curtain {
  position: fixed;
  z-index: 9990;
  inset: 0;
  pointer-events: none;
  background: var(--bg);
  transform: translate3d(0, 101%, 0);
  transition: transform .44s var(--motion-curtain);
  will-change: transform;
}
.mx-curtain::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mx-line), transparent);
}
html.mx-nav-out .mx-curtain { transform: translate3d(0, 0, 0); }
html.mx-nav-out { overflow: hidden; }

/* 开屏（每个会话首次进入、以及站内跳转落地时出现）：
   <head> 的内联脚本按会话状态给 <html> 挂 mx-boot（首次进入，完整档）或
   mx-boot-quick（站内跳转落地，快速档）。幕布在首帧之前就存在，所以不会
   有内容先闪一下再被盖住。

   升起动作由 motion.js 用真实时间驱动 —— CSS 的 animation-delay 在后台
   标签页里照走，动画会在用户看到之前就放完。这里的 animation 只是
   「JS 没跑起来」时的兜底，时间取得比 JS 的晚一档。 */
html.mx-boot[data-mx-boot]::before,
html.mx-boot[data-mx-boot]::after {
  content: "";
  position: fixed;
  z-index: 9995;
  pointer-events: none;
  will-change: transform;
}
html.mx-boot[data-mx-boot]::before {
  inset: 0;
  background-color: var(--bg);
  background-image: var(--mx-mark);
  background-repeat: no-repeat;
  background-position: 50% calc(50% - 26px);
  background-size: 54px 54px;
  animation: mx-lift .6s var(--motion-curtain) 1.15s forwards;
}
/* 进度条：用 clip-path 从 0 拉到满，把 transform 留给「升起」那一步，
   两者才不会互相覆盖。 */
html.mx-boot[data-mx-boot]::after {
  left: 50%;
  top: calc(50% + 22px);
  width: 64px;
  height: 1.5px;
  margin-left: -32px;
  border-radius: 2px;
  background: var(--accent);
  clip-path: inset(0 100% 0 0);
  animation: mx-load .9s cubic-bezier(.3, .9, .4, 1) .1s forwards,
             mx-lift .6s var(--motion-curtain) 1.15s forwards;
}
/* 快速档：站内跳转落地，不重播完整开屏，几乎立刻就掀开。
   ::before 上只有一条 mx-lift，所以这里也只给一个时长/延迟 ——
   之前写了两个值，第二个挂在并不存在的第二条动画上，纯属误导。 */
html.mx-boot[data-mx-boot="quick"]::before {
  background-size: 40px 40px;
  animation-duration: .3s;
  animation-delay: .2s;
}
html.mx-boot[data-mx-boot="quick"]::after { display: none; }

@keyframes mx-lift {
  to { transform: translate3d(0, -101%, 0); }
}
@keyframes mx-load {
  to { clip-path: inset(0 0 0 0); }
}

/* motion.js 开始掀幕的瞬间挂 mx-reveal：把兜底动画换成可被 JS 计时的过渡 */
html.mx-boot.mx-reveal::before {
  animation: none;
  transform: translate3d(0, -101%, 0);
  transition: transform var(--mx-lift, .6s) var(--motion-curtain);
}
html.mx-boot.mx-reveal::after {
  animation: none;
  clip-path: inset(0 0 0 0);
  transform: translate3d(0, -101%, 0);
  transition: transform var(--mx-lift, .6s) var(--motion-curtain);
}
html.mx-boot[data-mx-boot="quick"].mx-reveal { --mx-lift: .3s; }

/* 换主题：从按钮位置散开的一层淡色墨晕，与底色过渡同时发生。
   只动 opacity / transform，不参与重排。 */
html.mx-theme::after {
  content: "";
  position: fixed;
  z-index: 9994;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx-tx, 50%) var(--mx-ty, 0%),
              var(--mx-halo), transparent 44%);
  animation: mx-ink .56s var(--ease-out) forwards;
}
@keyframes mx-ink {
  from { opacity: 0; transform: scale(.92); }
  40%  { opacity: .8; }
  to   { opacity: 0; transform: scale(1.06); }
}

/* ==========================================================================
   7. 降级
   ========================================================================== */

/* 弱机：去掉所有「持续消耗」的东西，保留入场与反馈。
   持续动画（呼吸光、呼吸点）在弱机上纯属开销；
   入场是一次性 transform/opacity，留着不心疼。 */
html.fx-lite .hero-visual::after,
html.fx-lite .pill .pulse::after,
html.fx-lite .mx-spot { display: none; }
html.fx-lite .marquee-track { animation-duration: 0s; }
html.fx-lite [data-tilt].mx-tilting { rotate: none !important; scale: none !important; }
html.fx-lite .mx-curtain { transition-duration: .2s; }
html.fx-lite.mx-boot[data-mx-boot]::before { animation-duration: .22s; animation-delay: .3s; }
html.fx-lite.mx-boot[data-mx-boot]::after { animation-duration: .2s, .22s; animation-delay: .06s, .3s; }

/* 触屏：没有悬停这件事，指针类效果一律不出现。 */
@media (hover: none) {
  .mx-dot, .mx-ring, .mx-spot { display: none !important; }
  html.mx-cursor, html.mx-cursor * { cursor: auto !important; }
  .js.mx [data-tilt].mx-tilting { rotate: none !important; scale: none !important; }
  .glow::after { display: none; }
  .js.mx .hero-visual .float-chip { display: none; }
}

/* 浮签只在宽屏 + 真指针上出现：窄屏上它们会压到屏幕上。 */
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .hero-visual .float-chip { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  .js.mx :is(.reveal, .reveal.in, [data-anim], .pf-row, .float-chip, .reveal-title) {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
    animation: none !important;
  }
  .btn:active, .icon-btn:active, .theme-toggle:active, .lang-toggle:active,
  .back-home:active, .pill-btn:active, .pf-row:active,
  .filter-tags button:active, .hz-bar-dots button:active,
  .hz-pat:active, .hero-switcher button:active,
  .product-card:hover .product-card-image,
  .pf-project:hover .pf-screens .scr,
  .pf-project:hover .pf-watch-art img,
  .pf-project:hover .pf-pj-visual .phone-body,
  .rel-item:hover .rel-arrow,
  .pf-row:hover .pf-row-go .ic,
  .footer-nav a:hover {
    transform: none !important;
    transition: none !important;
  }
  .js.mx.mx-ready .hero-ready .phone { animation: none !important; }
  .hero-visual::after,
  .pill .pulse::after { animation: none !important; }
  .mx-dot, .mx-ring, .mx-spot, .mx-curtain { display: none !important; }
  html.mx-cursor, html.mx-cursor * { cursor: auto !important; }
  html.mx-boot::before,
  html.mx-boot::after { display: none !important; }
  html.mx-theme::after { display: none !important; }
  .mx-ripple { display: none !important; }
  .marquee-track { animation: none !important; }
  .marquee { overflow-x: auto; }
  /* 减弱动效下没有开屏，入场立刻放行 —— 不能让 mx-ready 等一个不存在的幕布 */
  .js.mx :is(.reveal, [data-anim], .pf-row, .float-chip) { opacity: 1 !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header, .site-header.is-stuck, .tabbar, .actionbar {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media print {
  .mx-dot, .mx-ring, .mx-spot, .mx-curtain { display: none !important; }
}

/* Low-contrast brand light, composited on a single moving layer. */
:root {
  --mx-wash-a: color-mix(in srgb, var(--accent) 22%, transparent);
  --mx-wash-b: color-mix(in srgb, var(--teal) 16%, transparent);
}
html[data-portal] {
  --mx-wash-a: color-mix(in srgb, #d32f5d 22%, transparent);
  --mx-wash-b: color-mix(in srgb, #0d8f8f 16%, transparent);
}
html[data-page="kanami"] {
  --mx-wash-a: color-mix(in srgb, #b75d16 20%, transparent);
  --mx-wash-b: color-mix(in srgb, #0d8f8f 15%, transparent);
}
body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: -24%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 22% 24%, var(--mx-wash-a) 0, transparent 44%),
    radial-gradient(ellipse at 78% 64%, var(--mx-wash-b) 0, transparent 46%);
  opacity: .78;
  transform: translate3d(-1.5%, -1%, 0) scale(1.02);
  animation: mx-color-drift 34s ease-in-out infinite alternate;
}
@keyframes mx-color-drift {
  to { transform: translate3d(1.5%, 1%, 0) scale(1.05); }
}
html.fx-lite body::before { animation: none; }
@media (max-width: 820px) {
  body::before { opacity: .66; }
}
body > main,
body > footer {
  position: relative;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}
@media print {
  body::before { display: none; }
}

/* The portfolio gets a compact, thumb-friendly mobile composition. */
@media (max-width: 820px) {
  html[data-portal] { scroll-padding-top: 104px; }
  html[data-portal] .site-header,
  html[data-portal] .site-header.is-stuck {
    height: auto;
    min-height: 96px;
    padding-top: env(safe-area-inset-top);
  }
  html[data-portal] .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 52px 36px;
    width: calc(100% - 32px);
    height: auto;
    gap: 0 12px;
  }
  html[data-portal] .brand { grid-area: 1 / 1; }
  html[data-portal] .header-actions { grid-area: 1 / 2; margin: 0; }
  html[data-portal] .nav {
    display: flex;
    grid-area: 2 / 1 / 3 / 3;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0 0 5px;
    gap: 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    background: transparent;
  }
  html[data-portal] .nav::-webkit-scrollbar { display: none; }
  html[data-portal] .nav a {
    flex: none;
    padding: 6px 11px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--ink) 5%, transparent);
    font-size: 13px;
  }
  html[data-portal] .nav a.is-active { background: var(--accent-soft); color: var(--accent-ink); }
  html[data-portal] .pf-hero { padding: 126px 0 40px; }
  html[data-portal] .pf-hero-in { gap: 26px; }
  html[data-portal] .pf-hero h1 {
    margin-top: 14px;
    font-size: 48px;
    line-height: 1.04;
  }
  html[data-portal] .pf-hero h1 > span {
    margin-top: 8px;
    font-size: 22px;
    line-height: 1.35;
  }
  html[data-portal] .pf-hero .lede { margin-top: 12px; font-size: 15px; line-height: 1.65; }
  html[data-portal] .pf-hero-actions { margin-top: 18px; }
  html[data-portal] .pf-hero-actions .btn { flex: 0 1 auto; width: auto; min-height: 44px; }
  html[data-portal] .pf-panel-head { padding: 0 0 8px; }
  html[data-portal] .pf-rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  html[data-portal] .pf-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
    min-height: 72px;
    padding: 10px;
    border-radius: 12px;
  }
  html[data-portal] .pf-row-ico { width: 32px; height: 32px; border-radius: 9px; }
  html[data-portal] .pf-row-ico .ic { width: 18px; height: 18px; }
  html[data-portal] .pf-row-body strong { font-size: 13px; line-height: 1.25; }
  html[data-portal] .pf-row-body small,
  html[data-portal] .pf-row-go { display: none; }
  html[data-portal] .pf-panel.in .pf-row-body { animation: none; }
  html[data-portal] .pf-preview { display: none !important; }
  html[data-portal] #projects { padding-top: 34px; }
  html[data-portal] .pf-project,
  html[data-portal] .pf-project:nth-child(n) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border-radius: 16px;
  }
  html[data-portal] .pf-pj-visual {
    display: grid;
    min-height: 176px;
    height: 176px;
    padding: 16px;
  }
  html[data-portal] .pf-project:first-child .pf-pj-visual { min-height: 196px; height: 196px; }
  html[data-portal] .pf-pj-visual .phone-wrap { width: 86px; }
  html[data-portal] .pf-pj-visual .float-chip { display: none; }
  html[data-portal] .pf-screens {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 7px;
  }
  html[data-portal] .pf-screens figure:nth-child(n+4) { display: none; }
  html[data-portal] .pf-screens figcaption { display: none; }
  html[data-portal] .pf-watch-art img { width: 82px; }
  html[data-portal] .kn-shot { width: min(320px, 100%); }
  html[data-portal] .pf-pj-body { gap: 10px; padding: 18px; }
  html[data-portal] .pf-pj-head { flex-wrap: wrap; gap: 8px; }
  html[data-portal] .pf-pj-head h3 { font-size: 19px; }
  html[data-portal] .pf-pj-tag,
  html[data-portal] .pf-pj-tag[data-tone] { margin-left: 0; }
  html[data-portal] .pf-project p { font-size: 14px; }
  html[data-portal] .pf-pj-chips { gap: 6px; }
  html[data-portal] .pf-pj-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-portal] .pf-pj-actions .btn { width: 100%; padding-inline: 8px; }
}
@media (max-width: 380px) {
  html[data-portal] .pf-hero h1 { font-size: 44px; }
  html[data-portal] .pf-hero-actions { display: grid; grid-template-columns: 1fr; }
  html[data-portal] .pf-pj-actions { grid-template-columns: 1fr; }
}
