/* 绯洛 Agent 官网
   取色来自角色本身：深灰西装、象牙白衬衫、绯红发夹。 */
:root {
  --ink: #0b0a0c;
  --ink-2: #131116;
  --ink-3: #1c1a20;
  --line: rgba(240, 233, 224, 0.09);
  --ivory: #f0e9e0;
  --ivory-2: rgba(240, 233, 224, 0.62);
  --ivory-3: rgba(240, 233, 224, 0.38);
  --red: #d2223f;
  --red-deep: #8e1028;
  --red-glow: rgba(210, 34, 63, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
html { overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 8px 14px; background: var(--red); border-radius: 8px; }
.skip:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

/* ---------- 全局氛围层 ---------- */
#thread { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.grain {
  position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; mix-blend-mode: difference; }
.cursor span {
  display: block; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--ivory); transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease);
}
.cursor.is-hover span { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
@media (hover: none) { .cursor { display: none; } }

main, .nav, .footer { position: relative; z-index: 3; }

/* ---------- 通用 ---------- */
section { padding: 140px clamp(20px, 6vw, 96px); position: relative; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .01em; line-height: 1.15; }
h2 { font-size: clamp(36px, 5vw, 68px); margin-top: 20px; }
h3 { font-size: 22px; }
.lead { color: var(--ivory-2); font-size: 18px; max-width: 34em; margin-top: 24px; }
.muted { color: var(--ivory-3); font-size: .85em; }
.tiny { font-size: 13px; color: var(--ivory-3); margin-top: 22px; font-family: var(--mono); }
.section-head { max-width: 1280px; margin: 0 auto 80px; }
.section-head.center { text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head.center .lead { margin-inline: auto; }

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-size: 15px; font-weight: 500;
  border: 1px solid var(--line); cursor: pointer; background: transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 10px 40px -10px var(--red-glow); }
.btn-primary:hover { background: #e3304d; box-shadow: 0 14px 60px -8px rgba(210, 34, 63, .6); }
.btn-ghost:hover { border-color: var(--ivory-3); background: rgba(240, 233, 224, .04); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 20px 36px; font-size: 17px; }

/* 进场动画 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 6vw, 96px);
  transition: padding .5s var(--ease), background .5s var(--ease), backdrop-filter .5s;
}
.nav.scrolled { padding-block: 14px; background: rgba(11, 10, 12, .72); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); }
.nav nav { display: flex; gap: 36px; font-size: 14px; color: var(--ivory-2); }
.nav nav a { position: relative; transition: color .3s; }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav nav a:hover { color: var(--ivory); }
.nav nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.brand em { font-style: normal; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .2em; color: var(--ivory-3); margin-left: 8px; text-transform: uppercase; }
/* 胸针上的红色小方框 */
.brand-mark { width: 16px; height: 16px; border: 2px solid var(--red); border-radius: 4px; transform: rotate(45deg); box-shadow: 0 0 14px var(--red-glow); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 4vw;
  padding-top: 120px; padding-bottom: 80px; max-width: 1440px; margin: 0 auto;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 72% 45%, rgba(142, 16, 40, .28), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(142, 16, 40, .12), transparent 70%);
}
.hero-title { font-size: clamp(56px, 8.4vw, 132px); margin: 28px 0 32px; letter-spacing: .02em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .split { display: inline-block; }
.hero-title .char { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.hero-title.in .char { transform: none; }
.hero-title i {
  font-style: normal; color: var(--red); position: relative;
  text-shadow: 0 0 40px var(--red-glow);
}
.hero-sub { font-size: clamp(17px, 1.4vw, 20px); color: var(--ivory-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.hero-stats { display: flex; gap: 48px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-stats dt { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.hero-stats dd { font-size: 13px; color: var(--ivory-3); margin-top: 2px; }

.hero-visual { position: relative; perspective: 1200px; justify-self: center; width: min(100%, 520px); }
.portrait {
  position: relative; aspect-ratio: 3 / 4; border-radius: 28px; overflow: hidden;
  transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .9s var(--ease);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px var(--line);
  animation: rise 1.6s var(--ease) both .2s;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06) translate(var(--px, 0), var(--py, 0)); transition: transform .9s var(--ease); }
.portrait-glow {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(40% 35% at var(--gx, 70%) var(--gy, 30%), rgba(210, 34, 63, .35), transparent 70%);
  transition: background .2s;
}
.portrait-rim { position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; background: linear-gradient(to top, var(--ink) 0%, transparent 28%); }
@keyframes rise { from { opacity: 0; transform: translateY(60px) scale(.96); } }

.ring {
  position: absolute; inset: -9%; z-index: -1; border-radius: 50%;
  border: 1px solid rgba(210, 34, 63, .25);
  animation: spin 40s linear infinite;
}
.ring::before { content: ""; position: absolute; top: 50%; left: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 20px var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }

.float-card {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 14px; font-size: 13px; white-space: nowrap;
  background: rgba(19, 17, 22, .7); backdrop-filter: blur(14px); border: 1px solid var(--line);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8);
  transform: translate3d(var(--fx, 0), var(--fy, 0), 0); transition: transform 1s var(--ease);
}
.fc-1 { left: -14%; top: 18%; animation: float 6s ease-in-out infinite, pop 1s var(--ease) both 1.2s; }
.fc-2 { right: -10%; bottom: 20%; animation: float 7s ease-in-out infinite -2s, pop 1s var(--ease) both 1.5s; }
@keyframes float { 50% { translate: 0 -10px; } }
@keyframes pop { from { opacity: 0; scale: .8; } }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 var(--red-glow); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } }
.wave { display: inline-flex; gap: 2px; align-items: center; height: 14px; }
.wave i { width: 2px; height: 100%; background: var(--red); border-radius: 1px; animation: eq 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: -.2s; } .wave i:nth-child(3) { animation-delay: -.4s; }
.wave i:nth-child(4) { animation-delay: -.6s; } .wave i:nth-child(5) { animation-delay: -.8s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

.scroll-hint { position: absolute; left: 50%; bottom: 32px; width: 22px; height: 36px; border: 1px solid var(--ivory-3); border-radius: 12px; translate: -50% 0; }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; border-radius: 1px; background: var(--ivory); animation: wheel 2s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- 跑马灯 ---------- */
.marquee { position: relative; z-index: 3; overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; background: var(--ink-2); }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 40s linear infinite; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 34px); color: var(--ivory-2); white-space: nowrap; }
.marquee-track b { color: var(--red); font-size: .5em; align-self: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- FLOW ---------- */
.flow-body { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: 6vw; }
.stage-wrap { position: relative; }
.stage {
  position: sticky; top: calc(50vh - 240px); height: 480px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line);
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.stage::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: calc((var(--p, 0) + 1) / 6 * 100%);
  background: linear-gradient(90deg, var(--red-deep), var(--red)); box-shadow: 0 0 20px var(--red);
  transition: width .8s var(--ease);
}
.stage-chrome { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ivory-3); font-family: var(--mono); }
.stage-chrome i { width: 10px; height: 10px; border-radius: 50%; background: rgba(240, 233, 224, .12); }
.stage-chrome i:first-child { background: var(--red); }
.stage-chrome span { margin-left: 12px; }

.scene { position: absolute; inset: 44px 0 0; display: grid; place-items: center; padding: 32px; opacity: 0; transform: translateY(24px) scale(.98); filter: blur(6px); transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease); pointer-events: none; }
.stage[data-step="0"] .scene-0, .stage[data-step="1"] .scene-1, .stage[data-step="2"] .scene-2,
.stage[data-step="3"] .scene-3, .stage[data-step="4"] .scene-4, .stage[data-step="5"] .scene-5 { opacity: 1; transform: none; filter: none; }

.prompt-box { width: 100%; max-width: 480px; padding: 22px 24px; border-radius: 16px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); font-size: 19px; font-family: var(--serif); min-height: 76px; }
.prompt-caret { color: var(--red); margin-right: 10px; }
.blink { color: var(--red); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chips { display: flex; gap: 8px; margin-top: 18px; }
.chips span { font-size: 12px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ivory-2); }
.scene-0 { align-content: center; justify-items: center; }

.script { width: 100%; max-width: 440px; font-family: var(--serif); font-size: 15px; line-height: 2; }
.script b { color: var(--red); margin-right: 8px; font-weight: 600; }
.script p { opacity: 0; transform: translateX(-10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.script .sl { padding-left: 2em; color: var(--ivory-2); }
.stage[data-step="1"] .script p { opacity: 1; transform: none; }
.script p:nth-child(1) { transition-delay: .1s; } .script p:nth-child(2) { transition-delay: .2s; } .script p:nth-child(3) { transition-delay: .3s; }
.script p:nth-child(4) { transition-delay: .4s; } .script p:nth-child(5) { transition-delay: .5s; } .script p:nth-child(6) { transition-delay: .6s; } .script p:nth-child(7) { transition-delay: .7s; }

.board { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; max-width: 480px; }
.board figure { opacity: 0; transform: scale(.9); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.stage[data-step="2"] .board figure { opacity: 1; transform: none; }
.board figure:nth-child(2) { transition-delay: .1s; } .board figure:nth-child(3) { transition-delay: .2s; } .board figure:nth-child(4) { transition-delay: .3s; }
.shot { aspect-ratio: 16 / 9; border-radius: 10px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.shot::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, .15) 3px 4px); }
.s1 { background: linear-gradient(180deg, #1b1622 0%, #2a1520 60%, #5a0f22 100%); }
.s2 { background: radial-gradient(60% 80% at 50% 120%, #8e1028, #160f14 70%); }
.s3 { background: radial-gradient(25% 40% at 55% 45%, #e8d8cc33, transparent), linear-gradient(120deg, #141018, #2b1a22); }
.s4 { background: radial-gradient(circle at 50% 50%, transparent 30%, #d2223f55 31%, transparent 33%), #120f14; }
.board figcaption { font-size: 11px; color: var(--ivory-3); margin-top: 6px; font-family: var(--mono); }

.render { position: relative; width: 70%; max-width: 360px; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.render-img { position: absolute; inset: 0; background: var(--hero-img, url("assets/feiluo-character.webp")) center 20% / cover; filter: saturate(.3) contrast(1.1); clip-path: inset(0 0 100% 0); transition: clip-path 2s var(--ease), filter 2s var(--ease); }
.stage[data-step="3"] .render-img { clip-path: inset(0 0 0 0); filter: none; }
.render-scan { position: absolute; left: 0; right: 0; height: 2px; top: 0; background: var(--red); box-shadow: 0 0 24px 4px var(--red-glow); opacity: 0; }
.stage[data-step="3"] .render-scan { animation: scan 2s var(--ease) forwards; }
@keyframes scan { 0% { top: 0; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.render-meta { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; font-size: 11px; font-family: var(--mono); color: var(--ivory-2); }

.voice { width: 100%; max-width: 480px; display: grid; gap: 22px; }
.voice-row { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 14px; font-size: 13px; color: var(--ivory-2); }
.bars { display: flex; align-items: center; gap: 3px; height: 46px; }
.bars i { flex: 1; height: calc(var(--h) * 1%); background: var(--red); border-radius: 2px; transform: scaleY(.08); transition: transform .6s var(--ease); transition-delay: calc(var(--i) * 12ms); }
.bars.soft i { background: rgba(240, 233, 224, .35); }
.stage[data-step="4"] .bars i { transform: scaleY(1); animation: eq2 1.4s ease-in-out infinite; animation-delay: calc(var(--i) * -60ms); }
@keyframes eq2 { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.45); } }

.scene-5 { align-content: center; gap: 26px; }
.timeline { position: relative; width: 100%; max-width: 480px; display: grid; gap: 10px; padding: 18px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.tl-row { display: flex; gap: 4px; height: 26px; }
.tl-row i { width: calc(var(--w) * 1%); border-radius: 5px; transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.tl-row.video i { background: linear-gradient(90deg, #5a0f22, var(--red)); }
.tl-row.audio i { background: rgba(240, 233, 224, .28); }
.tl-row.music i { background: rgba(240, 233, 224, .12); }
.stage[data-step="5"] .tl-row i { transform: none; }
.tl-row i:nth-child(2) { transition-delay: .1s; } .tl-row i:nth-child(3) { transition-delay: .2s; } .tl-row i:nth-child(4) { transition-delay: .3s; } .tl-row i:nth-child(5) { transition-delay: .4s; }
.playhead { position: absolute; top: 10px; bottom: 10px; left: 18px; width: 2px; background: var(--ivory); box-shadow: 0 0 10px var(--ivory); opacity: 0; }
.stage[data-step="5"] .playhead { animation: play 4s linear .8s infinite; }
@keyframes play { 0% { left: 18px; opacity: 1; } 100% { left: calc(100% - 20px); opacity: 1; } }
.export { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(210, 34, 63, .4); background: rgba(210, 34, 63, .08); opacity: 0; transform: translateY(10px); transition: all .6s var(--ease) 1s; justify-self: center; }
.stage[data-step="5"] .export { opacity: 1; transform: none; }
.check { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; }

.steps { list-style: none; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding-left: 28px; border-left: 1px solid var(--line); position: relative; opacity: .28; transition: opacity .6s var(--ease); }
.step::before { content: ""; position: absolute; left: -1px; top: 50%; width: 2px; height: 0; background: var(--red); translate: 0 -50%; transition: height .8s var(--ease); box-shadow: 0 0 14px var(--red); }
.step.active { opacity: 1; }
.step.active::before { height: 120px; }
.step-no { font-family: var(--mono); font-size: 13px; color: var(--red); letter-spacing: .2em; }
.step h3 { font-size: clamp(30px, 3vw, 44px); margin: 10px 0 16px; }
.step p { color: var(--ivory-2); max-width: 24em; }

/* ---------- TRY ---------- */
.try { background: linear-gradient(180deg, transparent, var(--ink-2) 30%, var(--ink-2) 70%, transparent); }
.try-form { max-width: 720px; margin: 0 auto; display: flex; gap: 10px; padding: 8px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); transition: border-color .4s, box-shadow .4s; }
.try-form:focus-within { border-color: rgba(210, 34, 63, .6); box-shadow: 0 0 0 6px rgba(210, 34, 63, .08), 0 20px 60px -20px var(--red-glow); }
.try-form input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 0 20px; font-size: 17px; font-family: var(--serif); }
.try-form input::placeholder { color: var(--ivory-3); }
.try-samples { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px auto 0; max-width: 720px; }
.try-samples button { font-size: 13px; padding: 7px 14px; border-radius: 999px; border: 1px dashed var(--line); background: none; color: var(--ivory-2); cursor: pointer; transition: all .3s; }
.try-samples button:hover { border-color: var(--red); color: var(--ivory); border-style: solid; }
.try-result { max-width: 1080px; margin: 64px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.try-card {
  position: relative; padding: 18px; border-radius: 16px; background: var(--ink-3); border: 1px solid var(--line);
  opacity: 0; transform: translateY(30px) rotateX(20deg); transform-origin: top; animation: deal .9s var(--ease) forwards;
}
@keyframes deal { to { opacity: 1; transform: none; } }
.try-card .frame { aspect-ratio: 9 / 12; border-radius: 10px; margin-bottom: 14px; position: relative; overflow: hidden; }
.try-card .frame::after { content: attr(data-shot); position: absolute; left: 10px; top: 8px; font-family: var(--mono); font-size: 11px; color: rgba(255, 255, 255, .7); }
.try-card .frame::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .08) 50%, transparent 70%); transform: translateX(-100%); animation: shimmer 1.6s var(--ease) .4s; }
@keyframes shimmer { to { transform: translateX(100%); } }
.try-card h4 { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.try-card p { font-size: 13px; color: var(--ivory-2); margin-top: 6px; line-height: 1.6; }
.try-card .tag { font-size: 11px; font-family: var(--mono); color: var(--red); letter-spacing: .1em; }

/* ---------- MODELS ---------- */
.models h2 { font-size: clamp(32px, 3.6vw, 52px); }
.models { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; }
.model-list { list-style: none; margin-top: 36px; display: grid; gap: 2px; }
.model-list li { display: grid; grid-template-columns: 64px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ivory-2); font-size: 15px; }
.model-list b { color: var(--ivory); font-weight: 500; }
.orbit { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.orbit-core { position: absolute; inset: 37%; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px rgba(210, 34, 63, .5), 0 0 80px var(--red-glow); }
.orbit-core img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.orbit-ring { position: absolute; border-radius: 50%; border: 1px solid var(--line); }
.orbit-ring.r1 { inset: 25%; } .orbit-ring.r2 { inset: 12%; border-style: dashed; } .orbit-ring.r3 { inset: 0; }
.node {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; white-space: nowrap;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; background: rgba(19, 17, 22, .85); border: 1px solid var(--line);
  backdrop-filter: blur(8px); transition: border-color .3s, color .3s, box-shadow .3s; cursor: default;
}
.node:hover, .node.lit { border-color: var(--red); box-shadow: 0 0 24px var(--red-glow); }
.orbit svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }

/* ---------- FEATURES ---------- */
.grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; padding: 36px; border-radius: 22px; background: var(--ink-2); border: 1px solid var(--line);
  overflow: hidden; min-height: 240px; isolation: isolate;
}
.card.wide { grid-column: span 2; grid-row: span 2; min-height: 500px; }
.card h3 { margin-bottom: 14px; }
.card p { color: var(--ivory-2); font-size: 15px; max-width: 28em; }
/* 跟随鼠标的聚光 */
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(210, 34, 63, .16), transparent 60%);
}
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(210, 34, 63, .8), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }
.art-desk { position: absolute; left: 36px; right: 36px; bottom: 36px; height: 52%; display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.art-desk i { border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--ink-3), transparent); transition: transform .8s var(--ease); }
.art-desk i:nth-child(1) { grid-row: span 2; background: radial-gradient(70% 60% at 50% 100%, rgba(142, 16, 40, .5), transparent), var(--ink-3); }
.art-desk i:nth-child(4) { grid-column: span 2; }
.card.wide:hover .art-desk i:nth-child(1) { transform: translateY(-6px); }
.card.wide:hover .art-desk i:nth-child(2) { transform: translateY(-10px); transition-delay: .05s; }
.card.wide:hover .art-desk i:nth-child(3) { transform: translateY(-4px); transition-delay: .1s; }
.card.wide:hover .art-desk i:nth-child(4) { transform: translateY(-8px); transition-delay: .15s; }

/* ---------- 资源中心 ---------- */
.hub-body { max-width: 1280px; margin: 0 auto; }
.hub-tabs { position: relative; display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 40px; overflow-x: auto; scrollbar-width: none; }
.hub-tabs button {
  flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; background: none; border: 0;
  font-family: var(--serif); font-size: 19px; letter-spacing: .06em; color: var(--ivory-3); cursor: pointer; transition: color .3s;
}
.hub-tabs button:hover { color: var(--ivory-2); }
.hub-tabs button[aria-selected="true"] { color: var(--ivory); }
.hub-tabs .count { font-family: var(--mono); font-size: 11px; color: var(--red); min-width: 1ch; }
.hub-ink { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--red); box-shadow: 0 0 14px var(--red-glow); transition: transform .55s var(--ease), width .55s var(--ease); }
.hub-panel.show { animation: hubIn .6s var(--ease); }
@keyframes hubIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hub-empty { color: var(--ivory-3); padding: 40px 0; }
.hub-install { color: var(--ivory-2); border-left: 2px solid var(--red); padding-left: 18px; margin-bottom: 28px; max-width: 58em; line-height: 1.8; }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(210, 34, 63, .4); color: var(--red); white-space: nowrap; }
.btn.is-soon { color: var(--ivory-3); cursor: default; pointer-events: none; border-style: dashed; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.tool { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 32px; min-height: 280px; border-radius: 22px; background: var(--ink-2); border: 1px solid var(--line); }
.tool-head { display: flex; justify-content: space-between; align-items: center; }
.tool-no { font-family: var(--mono); font-size: 13px; color: var(--ivory-3); }
.tool h3 { font-family: var(--serif); font-size: 30px; margin-top: 18px; }
.tool p { color: var(--ivory-2); font-size: 15px; flex: 1; }
.tool .btn { align-self: flex-start; }

.skill-list { list-style: none; display: grid; gap: 2px; }
.skill { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 22px 8px; border-bottom: 1px solid var(--line); transition: background .3s; }
.skill:hover { background: rgba(240, 233, 224, .025); }
.skill-icon { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: radial-gradient(circle at 30% 30%, rgba(210, 34, 63, .5), transparent 60%), var(--ink-3); }
.skill-text { display: grid; gap: 4px; min-width: 0; }
.skill-text b { font-weight: 500; font-size: 17px; }
.skill-text span { color: var(--ivory-2); font-size: 14px; }

.prompt-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.prompt-filter button { font-size: 13px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--ivory-2); cursor: pointer; transition: all .3s; }
.prompt-filter button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.prompt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 18px; }
.prompt { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 16px; padding: 26px; border-radius: 20px; background: var(--ink-2); border: 1px solid var(--line); }
.prompt[hidden] { display: none; }
.prompt-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.prompt h3 { font-size: 18px; }
.prompt pre {
  flex: 1; margin: 0; padding: 16px; border-radius: 12px; background: var(--ink); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 13px; line-height: 1.75; color: var(--ivory-2); white-space: pre-wrap; word-break: break-word;
  max-height: 220px; overflow: auto;
}
.prompt .copy.done { border-color: var(--red); color: var(--red); }
.prompt-head h3 { flex: 1; min-width: 0; }
.prompt-actions { display: flex; justify-content: flex-end; gap: 10px; }
.kind { flex: none; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; padding: 3px 9px; border-radius: 6px; background: var(--ink-3); color: var(--ivory-2); }
.kind-video { background: rgba(210, 34, 63, .18); color: #f0a3b0; }
.kind-image { background: rgba(240, 233, 224, .1); color: var(--ivory); }
/* 缩略图：贴满卡片顶部 */
.prompt-thumb {
  position: relative; display: block; margin: -26px -26px 0; aspect-ratio: 16 / 9; overflow: hidden; padding: 0; border: 0;
  border-bottom: 1px solid var(--line); background: var(--ink); cursor: pointer;
}
.prompt-thumb video, .prompt-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; filter: saturate(.85) brightness(.88); }
.prompt-thumb:hover video, .prompt-thumb:hover img { transform: scale(1.04); filter: none; }
.prompt-thumb .play {
  position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; translate: -50% -50%; border-radius: 50%;
  background: rgba(11, 10, 12, .55); backdrop-filter: blur(6px); border: 1px solid rgba(240, 233, 224, .3); transition: opacity .4s, scale .4s var(--ease);
}
.prompt-thumb .play::after { content: ""; position: absolute; left: 21px; top: 17px; border-left: 16px solid var(--ivory); border-block: 10px solid transparent; }
.prompt-thumb:hover .play { opacity: 0; scale: .8; }

/* ---------- 预览弹窗 ---------- */
html.pv-open { overflow: hidden; }
.pv {
  margin: auto; width: min(960px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; border-radius: 22px; overflow: hidden;
  background: var(--ink-2); color: var(--ivory); border: 1px solid var(--line); box-shadow: 0 40px 120px -30px #000, 0 0 60px -20px var(--red-glow);
}
.pv[open] { display: flex; flex-direction: column; animation: pvIn .45s var(--ease); }
.pv::backdrop { background: rgba(5, 4, 6, .78); backdrop-filter: blur(10px); }
@keyframes pvIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.pv-head { display: flex; align-items: center; gap: 16px; padding: 16px 18px 16px 26px; border-bottom: 1px solid var(--line); }
.pv-head h3 { flex: 1; font-size: 18px; }
.pv-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; font-size: 20px; line-height: 1; color: var(--ivory-2); }
.pv-close:hover { color: var(--ivory); border-color: var(--ivory-3); }
.pv-body { min-height: 0; overflow: auto; background: #000; display: grid; place-items: center; }
.pv-body video, .pv-body img { display: block; width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.pv-body:has(.pv-text) { background: var(--ink); place-items: stretch; padding: 26px; }
.pv-label { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--red); margin-bottom: 14px; }
.pv-text { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.9; color: var(--ivory-2); white-space: pre-wrap; word-break: break-word; }
.pv-text.typing::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.2em; background: var(--red); animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- CTA ---------- */
.cta { text-align: center; padding-block: 200px; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(142, 16, 40, .35), transparent 60%); z-index: -1; }
.cta h2 { font-size: clamp(48px, 7vw, 108px); }
.cta .lead { margin-inline: auto; }
.cta .hero-cta { justify-content: center; }

.footer { display: flex; justify-content: space-between; align-items: center; padding: 36px clamp(20px, 6vw, 96px); border-top: 1px solid var(--line); font-size: 13px; color: var(--ivory-3); }

/* ---------- 公告条 ---------- */
.notice {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 14px;
  max-width: min(720px, calc(100% - 32px)); padding: 12px 12px 12px 20px; border-radius: 999px;
  background: rgba(19, 17, 22, .82); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgba(210, 34, 63, .35);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9), 0 0 40px -10px var(--red-glow);
  font-size: 14px; translate: -50% 140%; opacity: 0; transition: translate .7s var(--ease), opacity .7s var(--ease);
}
.notice.in { translate: -50% 0; opacity: 1; }
.notice-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 var(--red-glow); animation: pulse 2s infinite; }
.notice p { flex: 1; min-width: 0; }
.notice a { flex: none; color: var(--red); white-space: nowrap; }
.notice a:hover { text-decoration: underline; }
.notice button { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; font-size: 16px; line-height: 1; color: var(--ivory-2); }
.notice button:hover { color: var(--ivory); border-color: var(--ivory-3); }
@media (max-width: 600px) { .notice { border-radius: 18px; bottom: 12px; font-size: 13px; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .try-result { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: 1fr 1fr; }
  .card.wide { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 900px) {
  section { padding-block: 100px; }
  .nav nav { display: none; }
  .hero { grid-template-columns: 1fr; text-align: left; padding-top: 110px; }
  .hero-visual { width: min(86%, 420px); order: -1; }
  /* 手机上浮卡移到下半身，别挡脸 */
  .fc-1 { left: -4%; top: auto; bottom: 26%; } .fc-2 { right: -4%; bottom: 8%; }
  .nav { padding-inline: 20px; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .scroll-hint { display: none; }
  .flow-body { grid-template-columns: 1fr; }
  .stage-wrap { position: sticky; top: 70px; z-index: 2; }
  .stage { position: relative; top: 0; height: 340px; }
  .scene { padding: 18px; }
  .step { min-height: 60vh; }
  .models { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .try-form { flex-direction: column; border-radius: 22px; }
  .try-form input { padding: 14px; }
  .try-result { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; min-height: 420px; }
  .node { font-size: 11px; padding: 5px 10px; }
  .footer { flex-direction: column; gap: 12px; }
  .hub-tabs button { padding: 12px 14px; font-size: 16px; }
  .tool-grid, .prompt-grid { grid-template-columns: 1fr; }
  .skill { grid-template-columns: 1fr; gap: 12px; }
  .skill-icon { display: none; }
  .skill .btn { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .hero-title .char { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
