/* 笙铃记 Sheng Lens — 官网样式 v2
   版式：大字、大留白、圆角卡片、浅/深两套主题（默认跟随系统，可手动切换） */

:root {
  color-scheme: light;
  --bg: #fbfbfd;
  --bg-alt: #f2f2f5;
  --card: #ffffff;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.1);
  --accent: #6a4bd8;
  --accent-2: #8b6cf0;
  --nav: rgba(251, 251, 253, 0.72);
  --shadow: 0 30px 80px -30px rgba(40, 30, 10, 0.35);
  --inv-bg: #1d1d1f;
  --inv-fg: #ffffff;
  --glow-a: rgba(139, 108, 240, 0.28);
  --glow-b: rgba(236, 130, 170, 0.20);
  --chip: rgba(0, 0, 0, 0.045);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", Inter, system-ui, sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --soft: cubic-bezier(0.25, 0.8, 0.25, 1);
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1180px;
  --r: 28px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000000;
    --bg-alt: #0c0c0e;
    --card: #1c1c1e;
    --fg: #f5f5f7;
    --muted: #8e8e93;
    --line: rgba(255, 255, 255, 0.14);
    --accent: #b7a2ff;
    --accent-2: #8b6cf0;
    --nav: rgba(0, 0, 0, 0.62);
    --shadow: 0 30px 90px -30px rgba(0, 0, 0, 0.9);
    --inv-bg: #f5f5f7;
    --inv-fg: #1d1d1f;
    --glow-a: rgba(139, 108, 240, 0.30);
    --glow-b: rgba(236, 120, 170, 0.18);
    --chip: rgba(255, 255, 255, 0.08);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --bg-alt: #0c0c0e;
  --card: #1c1c1e;
  --fg: #f5f5f7;
  --muted: #8e8e93;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #b7a2ff;
  --accent-2: #8b6cf0;
  --nav: rgba(0, 0, 0, 0.62);
  --shadow: 0 30px 90px -30px rgba(0, 0, 0, 0.9);
  --inv-bg: #f5f5f7;
  --inv-fg: #1d1d1f;
  --glow-a: rgba(139, 108, 240, 0.30);
  --glow-b: rgba(236, 120, 170, 0.18);
  --chip: rgba(255, 255, 255, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
html.js { scroll-behavior: auto; } /* 有脚本时由脚本做带缓动的平滑滚动 */

/* 页面切换：中英文页之间淡入淡出（支持的浏览器） */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.32s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; filter: blur(6px); transform: translateY(10px); } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
svg.i { width: 1em; height: 1em; fill: currentColor; flex: none; }
::selection { background: var(--accent-2); color: #fff; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- 顶栏 ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 52px;
  background: var(--nav);
  backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid transparent; transition: border-color 0.4s;
}
.nav.scrolled { border-color: var(--line); }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: 0.04em; font-size: 17px; }
.brand-img { width: 28px; height: 28px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.brand small { font-size: 11px; font-weight: 500; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; }
.menu { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); font-size: 13px; color: var(--muted); }
.menu a { transition: color 0.25s; }
.menu a:hover { color: var(--fg); }
.tools { display: flex; align-items: center; gap: 8px; }
.pill-btn {
  height: 30px; min-width: 30px; padding: 0 12px; border-radius: 999px; display: inline-grid; place-items: center;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; background: var(--chip); transition: background 0.3s;
}
.pill-btn:hover { background: var(--line); }
.theme-btn { padding: 0; width: 30px; }
.theme-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-sun { display: none; }
.theme-btn[data-mode="dark"] .i-sun { display: block; }
.theme-btn[data-mode="dark"] .i-moon { display: none; }

/* ---------- 首屏 ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; text-align: center; min-height: 100svh; display: grid; place-items: center; padding: 72px var(--gutter) 96px; }
.aurora { position: absolute; inset: -10% -10% auto -10%; height: 760px; z-index: -1; pointer-events: none; }
.aurora::before, .aurora::after { content: ""; position: absolute; border-radius: 50%; will-change: transform; }
.aurora::before { width: 560px; height: 560px; left: 18%; top: 0; background: radial-gradient(closest-side, var(--glow-a), transparent); animation: drift 18s ease-in-out infinite alternate; }
.aurora::after { width: 520px; height: 520px; right: 14%; top: 90px; background: radial-gradient(closest-side, var(--glow-b), transparent); animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate3d(60px, 40px, 0) scale(1.12); } }
.logo-hero { display: block; width: 168px; height: 168px; margin: 0 auto 30px; border-radius: 38px; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.eyebrow { margin: 0 0 14px; font-size: 14px; font-weight: 600; letter-spacing: 0.32em; color: var(--accent); text-transform: uppercase; padding-left: 0.32em; }
.hero h1 {
  margin: 0; font-weight: 700; font-size: clamp(60px, 12vw, 148px); line-height: 1.05; letter-spacing: 0.1em; padding-left: 0.1em;
  color: var(--fg);
  background: linear-gradient(180deg, var(--fg) 30%, color-mix(in srgb, var(--fg) 42%, transparent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
html[lang="en"] .hero h1 { letter-spacing: -0.035em; padding-left: 0; font-size: clamp(54px, 11.5vw, 140px); }
.tagline { margin: 22px auto 0; max-width: 28em; font-size: clamp(19px, 2.4vw, 26px); line-height: 1.5; font-weight: 500; color: var(--muted); }
.tagline b { font-weight: 600; color: var(--fg); }
.links { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin: 26px 0 0; }
.link { font-size: 19px; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; transition: gap 0.3s var(--ease), opacity 0.3s; }
.link::after { content: "›"; font-size: 1.15em; line-height: 1; }
.link:hover { gap: 11px; }

/* 放大的影片舞台 */
.stage { margin-top: clamp(40px, 6vw, 72px); padding-inline: var(--gutter); perspective: 1600px; }
.stage-card {
  --s: 0.88;
  position: relative; max-width: 1180px; margin: 0 auto; border-radius: 34px; overflow: hidden;
  background: #000; box-shadow: var(--shadow);
  transform: scale(var(--s)); transform-origin: 50% 0; will-change: transform;
}
.stage-card .thumb { border-radius: 0; }
.stage-cap {
  position: absolute; left: clamp(20px, 3vw, 44px); bottom: clamp(18px, 3vw, 40px); right: 96px; text-align: left; color: #fff; pointer-events: none; z-index: 3;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}
.stage-cap small { display: block; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); margin-bottom: 6px; }
.stage-cap b { display: block; font-size: clamp(20px, 3.2vw, 38px); line-height: 1.25; font-weight: 700; letter-spacing: 0.01em; }
.stage-card.loaded .stage-cap { display: none; }

/* 通用视频封面 */
.thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; isolation: isolate; border-radius: 0; }
.thumb img, .thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.thumb img { transition: transform 1.4s var(--ease), filter 0.6s; filter: brightness(0.86) saturate(0.95); }
.thumb:hover img { transform: scale(1.04); filter: brightness(0.98) saturate(1.05); }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 50%); pointer-events: none; }
.thumb.loaded::after, .thumb.loaded .play { display: none; }
.play {
  position: absolute; z-index: 2; right: clamp(16px, 2.6vw, 36px); bottom: clamp(16px, 2.6vw, 36px);
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.22); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4); transition: transform 0.5s var(--ease), background 0.3s;
}
.play::before { content: ""; margin-left: 3px; border-left: 14px solid #fff; border-top: 8.5px solid transparent; border-bottom: 8.5px solid transparent; }
.thumb:hover .play { transform: scale(1.1); background: rgba(255, 255, 255, 0.36); }

/* ---------- 分区 ---------- */
section { padding: clamp(72px, 9vw, 120px) 0; }
/* 分区底色渐变过渡，不出现硬切线 */
.alt { background: linear-gradient(to bottom, var(--bg) 0, var(--bg-alt) 140px, var(--bg-alt) calc(100% - 140px), var(--bg) 100%); }
.h2 { margin: 0; font-size: clamp(34px, 5.6vw, 64px); line-height: 1.12; font-weight: 700; letter-spacing: 0.005em; text-wrap: balance; }
.h2 span { color: var(--muted); }
.sec-top { max-width: 15em; margin: 0 0 clamp(40px, 6vw, 72px); }
html[lang="en"] .h2 { letter-spacing: -0.025em; }
html[lang="en"] .sec-top { max-width: 13em; }

/* 关于 */
.about { text-align: center; }
.about .h2 { max-width: 14em; margin-inline: auto; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(48px, 7vw, 88px); text-align: left; }
.tile { padding: 34px 30px 36px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tile .ico { width: 44px; height: 44px; margin-bottom: 36px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { margin: 0 0 4px; font-size: 24px; font-weight: 700; letter-spacing: 0.03em; }
.tile h3 small { font-size: 12px; letter-spacing: 0.24em; color: var(--muted); font-weight: 500; text-transform: uppercase; margin-left: 10px; }
.tile p { margin: 12px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }

/* 作品 */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.card:hover { box-shadow: var(--shadow); }
.card .body { padding: 28px 30px 32px; }
.meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); letter-spacing: 0.1em; }
.tag { color: var(--accent); font-weight: 600; letter-spacing: 0.14em; }
.card h3 { margin: 10px 0 0; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; font-weight: 700; }
.card p { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.src { display: flex; gap: 22px; margin-top: 18px; font-size: 15px; color: var(--accent); flex-wrap: wrap; }
.src a { display: inline-flex; align-items: center; gap: 6px; }
.src a::after { content: "›"; font-size: 1.15em; }
.src a:hover { text-decoration: underline; text-underline-offset: 4px; }
.chan { display: flex; flex-direction: column; justify-content: space-between; min-height: 230px; padding: 32px 32px 30px; position: relative; }
.chan .logo { width: 46px; height: 46px; color: var(--brand, var(--fg)); }
.chan b { display: block; font-size: 26px; font-weight: 700; margin-top: 18px; }
.chan span { color: var(--muted); font-size: 15px; }
.chan .go { margin-top: 20px; color: var(--accent); font-size: 16px; }
.chan .go::after { content: " ›"; }
.chan:hover { transform: translateY(-4px); }

/* 软件 */
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.app { padding: clamp(30px, 4vw, 52px); border-radius: 36px; background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.app:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.app-icon { width: 84px; height: 84px; border-radius: 22%; display: grid; place-items: center; font-size: 40px; font-weight: 700; color: #fff; margin-bottom: 30px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 18px 36px -14px rgba(0, 0, 0, 0.45); }
.app-icon.a1 { background: linear-gradient(145deg, #b79cff, #d46a9f); }
.app-icon.a2 { background: linear-gradient(145deg, #5b6f9e, #1c2540); }
.app h3 { margin: 0; font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; letter-spacing: 0.04em; line-height: 1.15; }
html[lang="en"] .app h3 { letter-spacing: -0.02em; }
.app h3 small { display: block; margin-top: 6px; font-size: 13px; letter-spacing: 0.3em; color: var(--muted); font-weight: 500; text-transform: uppercase; }
.app p { margin: 22px 0 0; color: var(--muted); font-size: 17px; max-width: 28em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.chips li { font-size: 13px; padding: 5px 14px; border-radius: 999px; background: var(--chip); color: var(--muted); }
.btn { display: inline-flex; align-items: center; margin-top: 30px; height: 44px; padding: 0 26px; border-radius: 999px; font-size: 16px; font-weight: 600; background: var(--inv-bg); color: var(--inv-fg); transition: transform 0.4s var(--ease), opacity 0.3s; }
.btn:hover { transform: scale(1.04); }
.btn.soon { background: var(--chip); color: var(--muted); pointer-events: none; }

/* 关注 */
.plats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plat { display: flex; align-items: center; gap: 18px; padding: 24px 26px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); transition: transform 0.5s var(--ease), border-color 0.3s; min-height: 104px; }
.plat:hover { transform: translateY(-4px); border-color: var(--brand, var(--accent)); }
.plat .logo { width: 38px; height: 38px; flex: none; color: var(--fg); transition: color 0.3s; }
.plat:hover .logo { color: var(--brand, var(--accent)); }
.plat b { display: block; font-size: 18px; font-weight: 600; line-height: 1.3; }
.plat span { display: block; font-size: 14px; color: var(--muted); }
.plat.pending { opacity: 0.6; pointer-events: none; }

/* ---------- 作品：分页签与卡片 ---------- */
.works-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 32px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px); }
.segs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--chip); gap: 2px; max-width: 100%; overflow-x: auto; }
.seg { position: relative; overflow: hidden; height: 38px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: background 0.3s var(--ease), color 0.3s, transform 0.12s; }
.seg:hover { color: var(--fg); }
.seg[aria-selected="true"] { background: var(--card); color: var(--fg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--line); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid3[hidden] { display: none; }
.vcard .body { padding: 22px 24px 26px; }
.vcard h3 { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.4; }
.vcard .meta { flex-wrap: wrap; row-gap: 4px; }
.views { margin-left: auto; color: var(--fg); font-weight: 600; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.why { margin: 8px 0 0; color: var(--accent); font-size: 15px; font-weight: 500; }
.note { margin: 28px 0 0; font-size: 13px; color: var(--muted); }
.links.more { justify-content: flex-start; margin-top: 18px; }
.vcard .thumb { aspect-ratio: 16 / 9; }
.vcard .play { width: 44px; height: 44px; right: 14px; bottom: 14px; }
.vcard .play::before { border-left-width: 11px; border-top-width: 7px; border-bottom-width: 7px; }

/* ---------- 首屏：只有名字 ---------- */
.aurora { height: 100%; inset: 0; -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 45%, transparent 96%); mask-image: linear-gradient(to bottom, #000 0, #000 45%, transparent 96%); }
.aurora::before { left: 12%; top: 8%; width: min(60vw, 640px); height: min(60vw, 640px); }
.aurora::after { right: 8%; top: 30%; width: min(56vw, 600px); height: min(56vw, 600px); }
.hero-inner { will-change: transform, opacity; }
.hero h1.name {
  font-size: clamp(76px, 19vw, 280px); letter-spacing: 0.06em; padding-left: 0.06em; line-height: 1.04;
  background: linear-gradient(115deg, var(--accent) 6%, #d9609b 58%, #f0977a 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: name-in 1.7s var(--ease) both, sheen 10s ease-in-out 1.7s infinite alternate;
}
html[lang="en"] .hero h1.name { font-size: clamp(58px, 15.5vw, 230px); letter-spacing: -0.045em; padding-left: 0; }
@keyframes name-in { from { opacity: 0; filter: blur(24px); transform: scale(1.1); letter-spacing: 0.24em; } }
@keyframes sheen { to { background-position: 100% 0; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cue { position: absolute; left: 50%; bottom: clamp(24px, 5vh, 48px); width: 48px; height: 48px; margin-left: -24px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); animation: bob 2.6s ease-in-out 2.2s infinite; }
.cue svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cue:hover { color: var(--fg); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* 首屏：Logo + 主张 */
.hero .logo-hero { width: clamp(120px, 15vw, 176px); height: auto; aspect-ratio: 1; margin: 0 auto; border-radius: 24%; animation: logo-in 1.2s var(--ease) both; }
.hero h1.h1 {
  margin: clamp(26px, 4vw, 40px) auto 0; max-width: 15em; padding: 0;
  font-size: clamp(32px, 6vw, 74px); line-height: 1.16; letter-spacing: 0.01em; font-weight: 700; text-wrap: balance;
  background: none; -webkit-text-fill-color: currentColor; color: var(--fg);
  animation: rise 1s var(--ease) 0.15s both;
}
html[lang="en"] .hero h1.h1 { font-size: clamp(32px, 6vw, 74px); letter-spacing: -0.03em; }
.hero h1.h1 span:not(.sr) { color: var(--muted); }
.hero .tagline { animation: rise 1s var(--ease) 0.3s both; }
.hero .links { animation: rise 1s var(--ease) 0.45s both; }
.hero .cue { animation: rise 1s var(--ease) 0.8s both, bob 2.6s ease-in-out 1.8s infinite; }
/* 中文标题只在标点处换行，避免一个字掉到下一行 */
html[lang="zh-CN"] .h1, html[lang="zh-CN"] .h2, html[lang="zh-CN"] .vtile h3 { word-break: keep-all; overflow-wrap: break-word; }
@keyframes logo-in { from { opacity: 0; transform: translateY(16px) scale(0.86); filter: blur(10px); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* ---------- 作品轮播（左右切换） ---------- */
.car { --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); position: relative; }
.track {
  display: flex; gap: 22px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  padding: 6px var(--edge) 30px; scroll-padding-inline: var(--edge); scrollbar-width: none; cursor: grab;
}
.track::-webkit-scrollbar { display: none; }
.track[hidden] { display: none; }
.track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.track.dragging .frame { pointer-events: none; }
.slide { flex: 0 0 clamp(290px, 62vw, 700px); scroll-snap-align: start; }
.frame { position: relative; aspect-ratio: 16 / 9; border-radius: 30px; overflow: hidden; background: #000; box-shadow: var(--shadow); isolation: isolate; }
.frame .thumb { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.cap { position: absolute; z-index: 3; left: clamp(18px, 2.4vw, 32px); right: 88px; bottom: clamp(16px, 2.2vw, 28px); display: flex; flex-direction: column; gap: 8px; text-align: left; color: #fff; pointer-events: none; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55); }
.cap .meta { color: rgba(255, 255, 255, 0.82); font-size: 12px; gap: 10px; }
.cap .tag { color: #fff; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 2px 11px; border-radius: 999px; }
.cap b { font-size: clamp(17px, 2vw, 24px); line-height: 1.32; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vchip { position: absolute; z-index: 3; top: 16px; right: 16px; padding: 5px 13px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-variant-numeric: tabular-nums; pointer-events: none; }
.frame.loaded .cap, .frame.loaded .vchip { display: none; }
.frame .play { right: 18px; bottom: 18px; width: 50px; height: 50px; }
.slide .src { margin-top: 14px; padding-left: 6px; }
.car-ctl { display: flex; align-items: center; gap: 20px; margin-top: 4px; }
.count { flex: none; min-width: 9.5em; text-align: right; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.count b { display: inline-block; min-width: 1.1em; text-align: center; color: var(--accent); font-size: 17px; font-weight: 700; }
@media (max-width: 700px) { .count { min-width: 0; font-size: 13px; } }
.prog { position: relative; flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.prog i { position: absolute; top: 0; bottom: 0; left: 0; width: 30%; border-radius: 3px; background: var(--accent); transition: left 0.12s linear, width 0.3s; }
.arrows { display: flex; gap: 10px; }
.arrow { width: 46px; height: 46px; border-radius: 50%; background: var(--chip); display: grid; place-items: center; transition: background 0.3s, opacity 0.3s, transform 0.12s; }
.arrow:hover { background: var(--line); }
.arrow:disabled { opacity: 0.32; pointer-events: none; }
/* 暂停按钮外圈：显示距离下一次自动切换还有多久 */
.auto-btn { position: relative; }
.auto-btn::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 2px; pointer-events: none;
  background: conic-gradient(var(--accent) calc(var(--ap, 0) * 360deg), transparent 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.track.entering .slide { animation: slide-in 0.7s var(--ease) both; }
.track.entering .slide:nth-child(2) { animation-delay: 0.06s; }
.track.entering .slide:nth-child(3) { animation-delay: 0.12s; }
@keyframes slide-in { from { opacity: 0; transform: translateX(40px); } }
@media (pointer: coarse) { .slide { scroll-snap-stop: always; } .track { cursor: auto; } }
.auto-btn .i-play { display: none; }
.auto-btn[aria-pressed="true"] .i-play { display: block; }
.auto-btn[aria-pressed="true"] .i-pause { display: none; }
.auto-btn .i-play { fill: currentColor; stroke: none; }
.prog i.timer { transition: none; }
.arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 关于（含 Logo） ---------- */
.about .logo-hero { width: 144px; height: 144px; margin-bottom: 30px; border-radius: 34px; }
.about .tagline { margin-top: 22px; }

/* ---------- 平台链接 ---------- */
.pgroup + .pgroup { margin-top: 48px; }
.gtitle { margin: 0 0 16px; font-size: 14px; font-weight: 600; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; }
.plats { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.plat.pending span { font-style: normal; }

/* ---------- 价值理念 ---------- */
.vgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.value { grid-column: span 2; position: relative; overflow: hidden; padding: clamp(28px, 3.2vw, 40px); border-radius: var(--r); background: var(--card); border: 1px solid var(--line); isolation: isolate; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.value:nth-child(n+4) { grid-column: span 3; }
.value::before { content: ""; position: absolute; z-index: -1; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow-a), transparent); opacity: 0.55; transition: transform 0.9s var(--ease), opacity 0.6s; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value:hover::before { transform: scale(1.35); opacity: 0.9; }
.vico { width: 44px; height: 44px; margin-bottom: 30px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.value h3 { margin: 0; font-size: clamp(28px, 3vw, 38px); line-height: 1.15; font-weight: 700; letter-spacing: 0.06em; }
html[lang="en"] .value h3 { letter-spacing: -0.02em; }
.value .ve { display: block; margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.26em; color: var(--accent); text-transform: uppercase; }
html[lang="en"] .value .ve { letter-spacing: 0.08em; text-transform: none; font-size: 14px; }
.value p { margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
@media (max-width: 1000px) { .vgrid { grid-template-columns: repeat(2, 1fr); } .value, .value:nth-child(n+4) { grid-column: span 1; } .value:last-child { grid-column: 1 / -1; } }
@media (hover: none) { .value:hover { transform: none; box-shadow: none; } }

/* ---------- 按压反馈：按下轻柔收缩，松手带一点回弹 ---------- */
[data-press] {
  transition: transform 0.55s var(--spring), opacity 0.35s var(--ease), background-color 0.35s var(--ease), box-shadow 0.55s var(--ease), border-color 0.35s, color 0.3s, gap 0.3s var(--ease);
  -webkit-user-select: none; user-select: none;
}
/* 卡片：按下时朝按压点轻微倾斜 + 高光跟随 */
.tile, .plat, .app { position: relative; overflow: hidden; }
.tile::after, .plat::after, .app::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; border-radius: inherit;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%);
  transition: opacity 0.6s var(--ease);
}
.tile.is-pressed::after, .plat.is-pressed::after, .app.is-pressed::after { opacity: 1; transition-duration: 0.12s; }
.frame, .app, .tile, .plat { transform-origin: 50% 50%; }
.frame.is-pressed[data-press], .app.is-pressed[data-press], .tile.is-pressed[data-press], .plat.is-pressed[data-press] {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--ps, 0.965));
}
.frame.is-pressed { filter: brightness(0.94); }
[data-press].is-pressed { transform: scale(var(--ps, 0.965)); transition-duration: 0.2s, 0.2s, 0.2s, 0.2s, 0.2s, 0.2s, 0.2s; transition-timing-function: var(--soft); }
.pill-btn, .seg, .arrow, .press, .cue { --ps: 0.92; }
.link, .src a, .menu a, .foot-nav a { --ps: 0.96; }
.link.is-pressed, .src a.is-pressed, .menu a.is-pressed, .foot-nav a.is-pressed { opacity: 0.6; }
.plat { --ps: 0.97; }
.plat.is-pressed { background: var(--bg-alt); }
.frame, .app, .tile { --ps: 0.982; }
.frame.is-pressed .play { transform: scale(0.88); background: rgba(255, 255, 255, 0.45); }
.ripple { position: relative; overflow: hidden; }
.rip { position: absolute; border-radius: 50%; pointer-events: none; width: 20px; height: 20px; margin: -10px 0 0 -10px; background: currentColor; opacity: 0.12; transform: scale(0); animation: rip 0.9s var(--ease) forwards; z-index: 4; }
.thumb .rip { background: #fff; opacity: 0.2; }
@keyframes rip { to { transform: scale(var(--rs, 14)); opacity: 0; } }

/* 语言建议条 */
.langbar { position: fixed; z-index: 60; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 140%); display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 20px; border-radius: 999px; font-size: 14px; color: var(--fg); background: var(--nav); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); transition: transform 0.7s var(--spring); max-width: calc(100vw - 32px); }
.langbar.show { transform: translate(-50%, 0); }
.langbar a, .langbar button { height: 34px; padding: 0 16px; border-radius: 999px; display: inline-grid; place-items: center; font-weight: 600; white-space: nowrap; }
.langbar a { background: var(--inv-bg); color: var(--inv-fg); }
.langbar button { color: var(--muted); }

/* 页脚 */
footer { background: linear-gradient(to bottom, var(--bg) 0, var(--bg-alt) 120px); padding: 72px 0 56px; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; flex-direction: column; gap: 22px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-nav a:hover { color: var(--fg); }
.fine { line-height: 1.7; border-top: 1px solid var(--line); padding-top: 20px; }

/* 出场动效（无 JS 时保持可见） */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-d="1"] { transition-delay: 0.08s; }
.js .reveal[data-d="2"] { transition-delay: 0.16s; }
.js .reveal[data-d="3"] { transition-delay: 0.24s; }

@media (max-width: 1000px) { .grid3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .menu { display: none; }
  .tiles, .apps, .plats { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .stage-card { border-radius: 22px; }
  .stage-cap { right: 80px; }
  .play { width: 48px; height: 48px; }
  .brand small { display: none; }
}
@media (max-width: 620px) { .grid3 { grid-template-columns: 1fr; } .vgrid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 700px) {
  .aurora::before, .aurora::after { filter: blur(46px); animation: none; }
  .hero { padding-top: 80px; padding-bottom: 88px; }
  .slide { flex-basis: 84vw; }
  .track { gap: 14px; }
  .frame { border-radius: 22px; }
  .cap { right: 70px; }
  .frame .play { width: 44px; height: 44px; right: 14px; bottom: 14px; }
  .car-ctl { gap: 16px; }
  .arrow { width: 42px; height: 42px; }
  .links { gap: 20px; }
  .link { font-size: 17px; }
}
@media (hover: none) { .tile:hover, .app:hover, .card:hover, .plat:hover { transform: none; box-shadow: none; } }
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { padding-top: 110px; }
  .logo-hero { width: 128px; height: 128px; border-radius: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .stage-card { transform: none; }
}
