/* ==========================================================
   MotionGit 首页专用样式（依赖 base.css）
   ========================================================== */

/* ---------- 首屏 ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 96px 0 140px; }
#hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(40% 36% at 50% 36%, rgba(31,111,235,.2), transparent 70%), radial-gradient(28% 28% at 64% 40%, rgba(163,113,247,.14), transparent 70%), linear-gradient(180deg, transparent 72%, var(--bg) 100%); }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.chip { display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-muted); background: rgba(13,17,23,.6); backdrop-filter: blur(8px); font-size: 13.5px; color: var(--fg-2); transition: border-color .2s; }
.chip:hover { border-color: var(--border); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2.4s ease-in-out infinite; }
.chip-arr { color: var(--subtle); transition: transform .2s; }
.chip:hover .chip-arr { transform: translateX(3px); }
@keyframes pulse { 50% { opacity: .4; } }

.hero-mark { position: relative; width: min(90vw, max(1000px, 60vw)); aspect-ratio: 4.5 / 1; margin: 40px 0 0; }
#markCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-mark .playhead { position: absolute; top: -6%; bottom: -6%; left: var(--p, 0%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px #79c0ff, 0 0 32px rgba(163,113,247,.8); opacity: var(--ph-o, 1); pointer-events: none; }
.hero-mark .playhead::before { content: ""; position: absolute; top: -9px; left: -6px; border: 7px solid transparent; border-top: 9px solid #fff; }
.hero-mark .playhead i { position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%); font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .04em; color: #fff; background: rgba(13,17,23,.9); border: 1px solid var(--border); padding: 3px 7px; border-radius: 5px; white-space: nowrap; }
.mark-ticks { position: absolute; left: 0; right: 0; bottom: -18px; height: 8px; background-image: repeating-linear-gradient(90deg, rgba(139,148,158,.35) 0 1px, transparent 1px 12px); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.hero-title { margin: 72px 0 0; font-size: clamp(30px, 1.6vw + 26px, 72px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.hero-sub { margin: 18px auto 0; color: var(--muted); font-size: clamp(16px, 1.45vw, 19px); }
.hero-cta { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 32px; }
.works { display: flex; align-items: center; justify-content: center; gap: 8px 26px; flex-wrap: wrap; }
.works-l { font-family: var(--mono); font-size: 12px; color: var(--subtle); letter-spacing: .06em; }
.wk { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--fg-2); }
.wk.dim { color: var(--subtle); }

/* ---------- 01 视频模板 ---------- */
.spot { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 25vw, 560px); border-radius: 20px; overflow: hidden; background: var(--bg-1); box-shadow: 0 0 0 1px var(--hair), 0 60px 140px -60px rgba(31,111,235,.5); margin-bottom: 96px; }
.spot-stage { position: relative; display: flex; flex-direction: column; background: #000; min-width: 0; }
.spot-frame { position: relative; flex: 1; display: flex; }
.spot-frame .motion-art { flex: 1; aspect-ratio: 16 / 9; min-height: 100%; }
.spot-frame .art-bottom { display: none; }
.spot-frame .art-prism .art-display { font-size: 13.5cqw; top: 20%; }
.spot-frame .swap { position: absolute; inset: 0; z-index: 7; pointer-events: none; background: var(--grad); clip-path: inset(0 100% 0 0); }
.spot-frame .swap.go { animation: swap .7s cubic-bezier(.7,0,.3,1); }
@keyframes swap { 0% { clip-path: inset(0 100% 0 0); } 45%, 55% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 100%); } }
.spot-hud { position: absolute; top: 16px; right: 16px; z-index: 6; display: flex; gap: 6px; font-family: var(--mono); font-size: 11px; }
.spot-hud span { background: rgba(1,4,9,.6); backdrop-filter: blur(8px); color: #fff; padding: 4px 9px; border-radius: 999px; }
.spot-hud .rec { display: inline-flex; align-items: center; gap: 6px; }
.spot-hud .rec i { width: 6px; height: 6px; border-radius: 50%; background: #ff5f56; animation: pulse 1.4s ease-in-out infinite; }
.spot-player { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--bg-1); }
.sp-play { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--fg); background: var(--bg-3); flex: 0 0 auto; }
.sp-play svg { width: 12px; height: 12px; }
.sp-track { position: relative; flex: 1; height: 4px; background: var(--bg-3); border-radius: 4px; cursor: pointer; }
.sp-track > i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--grad); border-radius: 4px; }
.sp-marks b { position: absolute; top: -2px; width: 2px; height: 8px; background: var(--bg-1); }
.sp-tc { font-family: var(--mono); font-size: 12px; color: var(--muted); min-width: 92px; text-align: right; }
.spot-side { display: flex; flex-direction: column; gap: 28px; padding: 32px; min-width: 0; border-left: 1px solid var(--hair); }
.spot-k { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.spot-meta h3 { margin: 10px 0 8px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.spot-meta p { margin: 0; color: var(--muted); font-size: 15px; }
.si-h { font-size: 13px; color: var(--subtle); margin-bottom: 12px; }
.si-list { display: flex; flex-direction: column; gap: 4px; }
.si-list button { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; overflow: hidden; padding: 12px 14px; border-radius: 10px; font-size: 15px; color: var(--muted); transition: background .2s, color .2s; }
.si-list button:hover { color: var(--fg); background: rgba(240,246,252,.04); }
.si-list button .sw { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.si-list button.on { color: var(--fg); background: rgba(240,246,252,.06); }
.si-list button .pg { position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; transform-origin: left; transform: scaleX(0); background: var(--grad); border-radius: 2px; }
.spot-cta { margin-top: auto; height: 46px; }
.spot-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hair); }
.spot-strip button { display: flex; align-items: center; gap: 12px; padding: 14px 18px; text-align: left; min-width: 0; opacity: .55; transition: opacity .2s, background .2s; }
.spot-strip button + button { border-left: 1px solid var(--hair); }
.spot-strip button:hover { opacity: .85; }
.spot-strip button.on { opacity: 1; background: rgba(240,246,252,.03); }
.spot-strip .mini { width: 64px; flex: 0 0 auto; border-radius: 6px; overflow: hidden; pointer-events: none; }
.spot-strip .mini .motion-art { aspect-ratio: 16 / 9; }
.spot-strip .mini .art-micro, .spot-strip .mini .art-bottom { display: none; }
.spot-strip b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 02 自动适配 ---------- */
.adapt { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: 72px; align-items: center; }
.adapt-copy .lead { margin-top: 22px; }
.adapt-field { position: relative; margin-top: 40px; padding-bottom: 10px; border-bottom: 1px solid var(--border); transition: border-color .3s; }
.adapt-field:focus-within { border-color: var(--blue); }
.adapt-field label { display: block; font-family: var(--mono); font-size: 12px; color: var(--subtle); margin-bottom: 8px; letter-spacing: .04em; }
.adapt-field input { width: 100%; border: 0; outline: 0; background: none; font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.02em; color: var(--fg); caret-color: var(--blue); }
.adapt-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.adapt-presets button { height: 32px; padding: 0 13px; border-radius: 999px; font-size: 13.5px; color: var(--muted); border: 1px solid var(--border-muted); transition: all .2s; }
.adapt-presets button:hover { color: var(--fg); border-color: var(--border); }
.adapt-presets button.on { color: var(--fg); border-color: var(--blue); background: rgba(56,139,253,.08); }
.adapt-stage { position: relative; width: 100%; aspect-ratio: 1.2; }
.af { position: absolute; margin: 0; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(240,246,252,.1), 0 40px 80px -30px rgba(0,0,0,.95); transition: transform .6s var(--ease); }
.af canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.af figcaption { position: absolute; z-index: 2; bottom: 12px; right: 12px; font-family: var(--mono); font-size: 11px; color: var(--fg-2); padding: 3px 8px; border-radius: 999px; background: rgba(1,4,9,.55); backdrop-filter: blur(6px); }
.af-wide { left: 0; top: 0; width: 72%; aspect-ratio: 16 / 9; z-index: 1; }
.af-tall { right: 0; top: 9%; width: 25%; aspect-ratio: 9 / 16; z-index: 2; }
.af-sq { left: 30%; top: 47%; width: 36%; aspect-ratio: 1; z-index: 3; }
.adapt-stage:hover .af-wide { transform: translate(-6px, -6px); }
.adapt-stage:hover .af-tall { transform: translate(8px, 0); }
.adapt-stage:hover .af-sq { transform: translate(-4px, 8px); }

/* ---------- 03 使用 ---------- */
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 80px; align-items: center; }
.steps { list-style: none; margin: 48px 0 0; padding: 0; counter-reset: s; }
.steps li { position: relative; padding: 22px 0 22px 56px; border-top: 1px solid var(--hair); }
.steps li:last-child { border-bottom: 1px solid var(--hair); }
.steps li::before { counter-increment: s; content: "0" counter(s); position: absolute; left: 0; top: 24px; font-family: var(--mono); font-size: 13px; color: var(--subtle); transition: color .3s; }
.steps li.active::before { color: var(--fg); }
.steps li h4 { margin: 0 0 2px; font-size: 19px; font-weight: 600; color: var(--muted); transition: color .3s; }
.steps li.active h4 { color: var(--fg); }
.steps li p { margin: 0; color: var(--subtle); font-size: 15px; }
.steps li .prog { position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--grad); }
.steps li.active .prog { animation: prog 5s linear forwards; }
@keyframes prog { to { width: 100%; } }
.atabs { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--hair); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.atabs::-webkit-scrollbar { display: none; }
.atabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 999px; font-size: 14px; color: var(--muted); white-space: nowrap; transition: all .2s; }
.atabs button .lg { width: 22px; height: 22px; border-radius: 6px; } .atabs button .lg svg { width: 14px; height: 14px; }
.atabs button:hover { color: var(--fg); }
.atabs button.on { background: var(--bg-3); color: var(--fg); }
.chat { position: relative; border-radius: 20px; background: linear-gradient(180deg, var(--bg-1), rgba(13,17,23,.4)); box-shadow: 0 0 0 1px var(--hair); }
.chat-body { padding: 26px 22px; display: flex; flex-direction: column; gap: 16px; min-height: 420px; }
.msg { max-width: 86%; font-size: 15px; line-height: 1.6; opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .45s; }
.msg.show { opacity: 1; transform: none; }
.msg.user { align-self: flex-end; background: var(--bg-3); border-radius: 18px 18px 6px 18px; padding: 12px 16px; }
.msg.bot { align-self: flex-start; color: var(--fg-2); }
.bot-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; color: var(--fg); }
.bot-h { gap: 10px; margin-bottom: 10px; }
.bot-h b { font-weight: 600; letter-spacing: -0.01em; }
.av { --c: var(--fg-2); position: relative; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: var(--c);
  background: radial-gradient(120% 110% at 28% 0%, color-mix(in srgb, var(--c) 24%, #161b22) 0%, #0d1117 72%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 36%, transparent), inset 0 1px 0 rgba(255,255,255,.09), 0 8px 22px -8px color-mix(in srgb, var(--c) 60%, transparent);
  transition: color .4s, box-shadow .4s, background .4s; }
.av::before { content: ""; position: absolute; inset: -4px; border-radius: 13px; padding: 1px; background: conic-gradient(from 210deg, transparent 0 55%, color-mix(in srgb, var(--c) 70%, transparent) 75%, transparent 92%); -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 exclude, linear-gradient(#000 0 0); opacity: .7; }
.av svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 45%, transparent)); }
.av-dot { position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2.5px #0d1117, 0 0 8px rgba(63,185,80,.7); }
.av.pop { animation: avPop .5s var(--ease); }
@keyframes avPop { 0% { transform: scale(.82); opacity: .4; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: none; } }
.attach { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(1,4,9,.5); margin-bottom: 8px; }
.attach .fi { width: 32px; height: 38px; border-radius: 6px; background: var(--grad); display: grid; place-items: center; font-family: var(--mono); font-size: 8px; color: #fff; }
.attach .fn { font-family: var(--mono); font-size: 13px; }
.attach .fs { font-size: 12px; color: var(--subtle); }
.checks { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.checks li .s { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: var(--fg); background: var(--bg-3); }
.out-card { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding: 8px; border-radius: 12px; background: rgba(46,160,67,.08); box-shadow: inset 0 0 0 1px rgba(46,160,67,.3); }
.out-card .th { width: 86px; border-radius: 8px; overflow: hidden; }
.out-card .th .motion-art { aspect-ratio: 16 / 9; }
.out-card .th .art-micro, .out-card .th .art-bottom { display: none; }
.out-card .meta { font-size: 14px; font-weight: 500; }
.out-card .meta span { display: block; font-family: var(--mono); font-size: 11.5px; font-weight: 400; color: var(--subtle); }
.chat-note { margin: 14px 4px 0; font-size: 12.5px; color: var(--subtle); }

/* ---------- 04 开放标准 ---------- */
.spec { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.stk-stage { position: relative; height: clamp(480px, 34vw, 780px); display: grid; place-items: center; perspective: 1600px; }
.stk-stage::after { content: ""; position: absolute; left: 50%; bottom: 40px; width: 70%; height: 120px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(88,166,255,.28), transparent); filter: blur(12px); z-index: -1; }
.stk { position: relative; width: clamp(260px, 17vw, 420px); height: clamp(260px, 17vw, 420px); transform-style: preserve-3d; transform: translateY(40px) rotateX(58deg) rotateZ(-42deg); animation: stkFloat 6s ease-in-out infinite; --gap: 30px; transition: --gap .5s; }
@keyframes stkFloat { 50% { transform: translateY(28px) rotateX(58deg) rotateZ(-42deg); } }
.stk:hover { --gap: 42px; }
.slab { position: absolute; inset: 0; border-radius: 24px; transform: translateZ(calc(var(--i) * var(--gap))); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 20%, rgba(13,17,23,.88)), rgba(13,17,23,.8)); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); box-shadow: 0 0 40px color-mix(in srgb, var(--c) 12%, transparent); transition: transform .6s var(--ease), box-shadow .3s, border-color .3s; }
.slab.top { display: grid; place-items: center; background: linear-gradient(135deg, rgba(121,192,255,.24), rgba(163,113,247,.22) 55%, rgba(247,120,186,.2)); border-color: rgba(255,255,255,.45); }
.slab.top b { font-family: var(--mono); font-size: 40px; font-weight: 600; color: #fff; letter-spacing: -0.03em; text-shadow: 0 0 30px rgba(121,192,255,.6); }
.slab.hl { border-color: var(--c); box-shadow: 0 0 60px color-mix(in srgb, var(--c) 45%, transparent), inset 0 0 30px color-mix(in srgb, var(--c) 20%, transparent); transform: translateZ(calc(var(--i) * var(--gap) + 18px)); }
.legend { list-style: none; margin: 0; padding: 0; }
.legend li { display: grid; grid-template-columns: 12px 96px 1fr; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--hair); transition: opacity .3s; }
.legend li i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 60%, transparent); }
.legend li b { font-size: 17px; font-weight: 600; white-space: nowrap; }
.legend li span { font-size: 15px; color: var(--muted); }
.legend:hover li:not(.hl), .legend.auto li:not(.hl) { opacity: .5; }
.ext3 { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.ext3 b { display: block; font-size: 16px; font-weight: 600; }
.ext3 small { display: block; font-size: 14px; color: var(--muted); }

/* ---------- 05 社区 ---------- */
.gg-wrap { overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.gg-wrap::-webkit-scrollbar { display: none; }
.gg { position: relative; min-width: 980px; aspect-ratio: 1200 / 360; }
.gg-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gg-l { fill: none; stroke: var(--border); stroke-width: 2; }
.gg-l.main { stroke: rgba(88,166,255,.3); }
.gg-p { fill: none; stroke-width: 2.5; stroke-dasharray: 60 1400; stroke-linecap: round; animation: ggp 4s linear infinite; }
.gg-p.main { stroke: url(#ggMain); }
.gg-p.br1 { stroke: #a371f7; animation-delay: 1.2s; stroke-dasharray: 40 900; }
.gg-p.br2 { stroke: #3fb950; animation-delay: 2s; stroke-dasharray: 40 1400; }
@keyframes ggp { from { stroke-dashoffset: 60; } to { stroke-dashoffset: -1400; } }
.gg-dots circle { fill: var(--bg); stroke: #58a6ff; stroke-width: 2.5; }
.gg-dots circle.new { fill: #a371f7; stroke: #fff; filter: drop-shadow(0 0 10px #a371f7); }
.gg-dots circle.pr { stroke: #a371f7; }
.gg-dots circle.fk { stroke: #3fb950; }
.gg-node { position: absolute; top: 39.5%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; padding-bottom: 18px; text-align: center; }
.gg-th { width: clamp(136px, 8.4vw, 220px); border-radius: 8px; overflow: hidden; margin-bottom: 10px; box-shadow: 0 0 0 1px var(--hair), 0 16px 30px -12px rgba(0,0,0,.7); transition: transform .3s; }
.gg-th .motion-art { aspect-ratio: 16 / 9; }
.gg-th .art-micro, .gg-th .art-bottom { display: none; }
.gg-node:hover .gg-th { transform: translateY(-4px) scale(1.05); }
.gg-node b { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.gg-node small { font-size: 12px; color: var(--subtle); }
.gg-node.now .gg-th { box-shadow: 0 0 0 1.5px #a371f7, 0 16px 40px -10px rgba(163,113,247,.6); }
.gg-node.now b { color: #d2a8ff; }
.gg-pill { position: absolute; transform: translate(-50%, 14px); font-size: 12px; white-space: nowrap; padding: 3px 10px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--border); color: var(--fg-2); }
.gg-pill.pr { color: #d2a8ff; box-shadow: inset 0 0 0 1px rgba(163,113,247,.5); }
.gg-pill.fk { color: #7ee787; box-shadow: inset 0 0 0 1px rgba(46,160,67,.45); }
.pts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; }
.pt { padding: 0 32px; }
.pt:first-child { padding-left: 0; }
.pt + .pt { border-left: 1px solid var(--hair); }
.pt b { display: block; font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.pt span { font-size: 15px; color: var(--muted); }

/* ---------- 06 发布 ---------- */
.pub { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.flow { list-style: none; margin: 0; padding: 0; position: relative; }
.flow::before { content: ""; position: absolute; left: 15px; top: 20px; bottom: 20px; width: 1px; background: linear-gradient(180deg, var(--border), var(--border-strong), var(--border)); }
.fl { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 20px; padding: 18px 0; }
.fl-n { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 11.5px; color: var(--muted); background: var(--bg); box-shadow: inset 0 0 0 1px var(--border); transition: all .4s; }
.fl.on .fl-n { color: #fff; background: var(--grad); box-shadow: 0 0 20px rgba(163,113,247,.5); }
.fl-b b { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; margin-top: 4px; }
.fl-b p { margin: 8px 0 0; font-size: 15px; color: var(--muted); max-width: 420px; }
.fl-logos { display: flex; gap: 8px; margin-top: 14px; }
.fl-only { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 4px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--fg); background: rgba(217,119,87,.07); box-shadow: inset 0 0 0 1px rgba(217,119,87,.32); }
.fl-only .lg { width: 32px !important; height: 32px !important; border-radius: 50% !important; }
.tip { position: relative; cursor: help; outline: none; }
.tip-i { width: 15px; height: 15px; fill: none; stroke: var(--subtle); stroke-width: 1.4; stroke-linecap: round; transition: stroke .2s; }
.tip:hover .tip-i, .tip:focus-visible .tip-i { stroke: var(--fg); }
.tip-b { position: absolute; z-index: 20; left: -6px; bottom: calc(100% + 12px); width: max-content; max-width: min(340px, 78vw); padding: 9px 13px; border-radius: 10px; font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--fg); background: rgba(22,27,34,.97); box-shadow: inset 0 0 0 1px var(--border), 0 16px 36px -12px rgba(0,0,0,.85); opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
.tip-b::after { content: ""; position: absolute; left: 22px; top: 100%; border: 6px solid transparent; border-top-color: rgba(22,27,34,.97); }
.tip:hover .tip-b, .tip:focus-visible .tip-b { opacity: 1; transform: none; }
.fl-logos .lg { width: 34px; height: 34px; border-radius: 10px; }
.fl-logos .lg svg { width: 18px; height: 18px; }
.fl-conv { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.fl-conv .bar { position: relative; width: 120px; height: 3px; border-radius: 3px; background: var(--bg-3); overflow: hidden; }
.fl-conv .bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--grad); transition: width 1.2s var(--ease); }
.fl.on .fl-conv .bar i { width: 100%; }
.fl-conv code { font-size: 13px; color: var(--fg-2); }
.fl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.fl-chips span { font-size: 13px; padding: 4px 11px; border-radius: 999px; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--border); transition: all .4s; }
.fl-chips span.off { color: var(--subtle); text-decoration: line-through; text-decoration-color: rgba(248,81,73,.85); box-shadow: inset 0 0 0 1px rgba(46,160,67,.35); background: rgba(46,160,67,.08); }
.globe-wrap { position: relative; width: 100%; max-width: clamp(420px, 32vw, 760px); aspect-ratio: 1; justify-self: center; }
#globe { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe-toasts { position: absolute; inset: 0; pointer-events: none; }
.gt { position: absolute; display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(13,17,23,.9); box-shadow: inset 0 0 0 1px var(--border); backdrop-filter: blur(6px); transform: translate(-50%, -100%); animation: gt 3s ease forwards; }
.gt b { font-family: var(--mono); font-weight: 600; color: var(--green); }
.gt b.use { color: var(--blue); }
.gt i { font-style: normal; color: var(--muted); }
@keyframes gt { 0% { opacity: 0; margin-top: 8px; } 12% { opacity: 1; margin-top: 0; } 75% { opacity: 1; } 100% { opacity: 0; margin-top: -10px; } }
.pub-note { margin: 32px 0 0; font-size: 12.5px; color: var(--subtle); }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .art-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-search { width: 180px; }
}
@media (max-width: 1080px) {
  .section-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .section-head > :last-child { justify-self: start; }
  .spot { grid-template-columns: minmax(0, 1fr); }
  .spot-frame .motion-art { aspect-ratio: 16 / 9; min-height: 0; }
  .spot-side { border-left: 0; border-top: 1px solid var(--hair); }
  .spot-strip { grid-template-columns: repeat(2, 1fr); }
  .spot-strip button:nth-child(3) { border-left: 0; }
  .spot-strip button:nth-child(-n+2) { border-bottom: 1px solid var(--hair); }
  .adapt, .how, .spec, .pub { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .globe-wrap { max-width: 480px; }
  .foot-grid { grid-template-columns: repeat(4, 1fr); }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mcats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
  .mcats::-webkit-scrollbar { display: none; }
  .mcats button { flex: 0 0 auto; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero { padding: 90px 0 170px; }
  .hero-title { margin-top: 60px; }
  .hero-mark .playhead i { font-size: 10px; }
  .works { gap: 10px 16px; }
  .works-l { width: 100%; text-align: center; }
  .wk { font-size: 13px; }
  .spot { margin-bottom: 64px; }
  .spot-side { padding: 22px; }
  .spot-strip .mini { width: 48px; }
  .spot-strip button { padding: 12px; gap: 8px; }
  .art-grid { grid-template-columns: minmax(0, 1fr); }
  .stk-stage { height: 380px; }
  .stk { width: 200px; height: 200px; --gap: 20px; }
  .stk:hover { --gap: 26px; }
  .slab.top b { font-size: 26px; }
  .legend li { grid-template-columns: 10px 76px 1fr; gap: 12px; }
  .pts { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pt, .pt:first-child { padding: 0; }
  .pt + .pt { border-left: 0; border-top: 1px solid var(--hair); padding-top: 20px; }
  .chat-body { min-height: 400px; padding: 20px 16px; }
  .atabs button { flex: 0 0 auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* v6 细节 */
.adapt-stage { margin-bottom: 4%; }
@media (max-width: 640px) {
  .adapt-stage { aspect-ratio: auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 10px; align-items: end; margin-bottom: 0; }
  .af { position: relative; inset: auto; width: 100%; transform: none !important; border-radius: 10px; }
  .af-wide { grid-column: 1 / -1; }
  .af figcaption { bottom: 8px; right: 8px; font-size: 10px; }
}

/* ---------- 宽屏：画幅与字号随窗口放大（参考 frame.io 的流式比例） ---------- */
@media (min-width: 1680px) {
  .hero-sub { font-size: 21px; }
  .wk { font-size: 15px; } .works-l { font-size: 13px; }
  .spot-side { padding: 40px; gap: 32px; }
  .spot-meta h3 { font-size: 32px; } .spot-meta p, .si-list button { font-size: 16.5px; }
  .si-h, .spot-k { font-size: 14px; }
  .spot-strip button { padding: 18px 22px; } .spot-strip .mini { width: 84px; } .spot-strip b { font-size: 15.5px; }
  .spot-hud { font-size: 12.5px; } .sp-tc { font-size: 13px; }
  .mcats button { height: 38px; padding: 0 16px; font-size: 15px; }
  .mtabs button { height: 32px; font-size: 14.5px; }
  .art-grid { gap: 48px 28px; }
  .vmeta h3 { font-size: 17px; } .vprice { font-size: 13px; } .vsub { font-size: 14.5px; }
  .vbadge span, .vtc { font-size: 12px; }
  .market-bottom { font-size: 14px; }
  .adapt { gap: 112px; }
  .adapt-field input { font-size: 32px; }
  .adapt-presets button { height: 36px; font-size: 14.5px; }
  .af figcaption { font-size: 12.5px; }
  .how { gap: 120px; }
  .steps li { padding: 28px 0 28px 64px; } .steps li h4 { font-size: 22px; } .steps li p { font-size: 17px; }
  .atabs button { height: 44px; font-size: 15.5px; }
  .chat-body { padding: 34px 30px; gap: 20px; min-height: 500px; }
  .msg { font-size: 17px; } .bot-h { font-size: 16px; }
  .av { width: 34px; height: 34px; border-radius: 11px; } .av svg { width: 19px; height: 19px; }
  .checks li { font-size: 16px; } .attach .fn { font-size: 14.5px; } .attach .fs { font-size: 13px; }
  .out-card .th { width: 110px; } .out-card .meta { font-size: 15.5px; }
  .chat-note, .pub-note { font-size: 13.5px; }
  .spec { gap: 96px; }
  .legend li { grid-template-columns: 12px 120px 1fr; padding: 20px 0; } .legend li b { font-size: 19px; } .legend li span { font-size: 17px; }
  .ext3 b { font-size: 18px; } .ext3 small { font-size: 15.5px; }
  .slab.top b { font-size: 52px; }
  .stk { --gap: 38px; } .stk:hover { --gap: 52px; }
  .gg-node b { font-size: 15px; } .gg-node small, .gg-pill { font-size: 13.5px; }
  .pt b { font-size: 21px; } .pt span { font-size: 17px; } .pt { padding: 0 44px; }
  .pub { gap: 96px; }
  .fl { padding: 22px 0; } .fl-b b { font-size: 21px; } .fl-b p { font-size: 17px; max-width: 480px; }
  .fl-chips span { font-size: 14.5px; } .fl-conv code { font-size: 14.5px; } .fl-conv .bar { width: 160px; }
  .fl-only { height: 46px; font-size: 15.5px; } .fl-only .lg { width: 38px !important; height: 38px !important; }
  .tip-b { font-size: 14px; }
  .gt { font-size: 13.5px; padding: 6px 12px; }
}
@media (min-width: 2200px) {
  .hero-sub { font-size: 24px; }
  .spot-meta h3 { font-size: 38px; } .spot-meta p, .si-list button { font-size: 18px; }
  .vmeta h3 { font-size: 19px; } .vsub { font-size: 15.5px; }
  .steps li h4 { font-size: 25px; } .steps li p { font-size: 18.5px; }
  .msg { font-size: 18.5px; } .checks li { font-size: 17.5px; }
  .legend li { grid-template-columns: 12px 140px 1fr; } .legend li b { font-size: 21px; } .legend li span { font-size: 18.5px; }
  .fl-b b { font-size: 23px; } .fl-b p { font-size: 18.5px; }
  .pt b { font-size: 23px; } .pt span { font-size: 18.5px; }
}
/* 宽屏下媒体高度不超过一屏，保证完整可见 */
@media (min-width: 1081px) {
  .spot-frame .motion-art { aspect-ratio: auto; height: clamp(380px, 38vw, 62vh); min-height: 0; }
  .adapt-stage { max-width: calc(76vh * 1.2); justify-self: center; }
}

/* 06：流程与地球收拢到中间，不再左右分离 */
@media (min-width: 1081px) {
  .pub { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 4vw, 96px); }
  .pub .flow { justify-self: end; width: min(100%, 560px); }
  .pub .globe-wrap { justify-self: start; }
  .section-head { grid-template-columns: auto minmax(0, 30em); justify-content: space-between; column-gap: 64px; }
  .section-head > :last-child { justify-self: start; }
}
