/* home-demo.css — 主区照搬 design/lingscan-home-demo.html 逐值；禁止手调间距 */
/* 左栏不复制：#home-side → rail-nav.css */

body.landing {
  --bg:#151618; --bg2:#1c1e21; --bg3:#23262a;
  --glass:rgba(255,255,255,.055); --glass-2:rgba(255,255,255,.09);
  --line:rgba(255,255,255,.12); --line-2:rgba(255,255,255,.2);
  --brass:#e8862a; --brass-2:#f3a55d; --brass-deep:#cf6d15; --brass-dim:#a8641b;
  --txt:#f6f5f2; --txt-2:#c3c5c1; --txt-3:#979a93; --txt-4:#6a6d66;
  --glow:0 0 18px rgba(255,255,255,.16), 0 0 40px rgba(255,255,255,.07);
  --r-card:12px; --r-ctl:6px;
  --font:"PingFang SC","Microsoft YaHei","HarmonyOS Sans SC",system-ui,sans-serif;
  font-family:var(--font);
  font-size:16px;
  line-height:1.6;
  color:var(--txt);
  -webkit-font-smoothing:antialiased;
}
body.landing img,body.landing svg{display:block}
body.landing button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit;border-radius:0;line-height:normal}
@keyframes lift{50%{box-shadow:0 0 20px rgba(255,255,255,.18)}}
body.landing .wrap{max-width:none;margin:0 auto;padding-inline:32px}
body.landing #landing .main{flex:1;min-width:0}
/* ===== Hero（紧凑 + 音乐反应式 Goo 背景） ===== */
/* 压过 styles.css .hero{display:grid;margin-bottom:3rem}，恢复参考页块模型 */
body.landing #landing .hero,body.landing .hero{position:relative;overflow:hidden;padding:36px 0 44px;background:radial-gradient(ellipse 80% 60% at 50% -8%,rgba(232,138,42,.07),transparent 72%);display:block;grid-template-columns:none;gap:0;margin:0;align-items:unset}
body.landing .hero h1{text-align:center}
body.landing .hero-in{position:relative;z-index:3;text-align:center;width:100%;padding-inline:32px}
body.landing .hero-kicker{display:inline-flex;align-items:center;gap:10px;font-size:12px;letter-spacing:3px;color:#fff;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.06);padding:6px 16px;margin-bottom:22px}
body.landing .hero-kicker::before{content:"";width:6px;height:6px;background:#fff;box-shadow:0 0 10px rgba(255,255,255,.5);animation:blink 1.6s ease-in-out infinite}
@keyframes blink{50%{opacity:.3}}
body.landing .hero h1{font-size:clamp(26px,3.2vw,40px);font-weight:800;line-height:1.18;letter-spacing:1px;background:linear-gradient(90deg,#fff 0%,#e9e5df 55%,#cfc9bf 100%);background-size:160% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:flow 7s linear infinite}
@keyframes flow{0%{background-position:0% 0}100%{background-position:220% 0}}
body.landing .hero h1 .cursor{display:inline-block;width:3px;height:.9em;background:#fff;-webkit-text-fill-color:initial;vertical-align:-0.1em;box-shadow:0 0 14px rgba(255,255,255,.6);animation:blinkc .9s steps(1) infinite}
@keyframes blinkc{50%{opacity:0}}
/* W-11：减少动态效果下关闭光标闪烁 */
@media (prefers-reduced-motion: reduce) { #type-title .cursor, body.landing .hero h1 .cursor { animation: none; } }
body.landing .hero-sub{margin:14px auto 0;font-size:clamp(14px,1.4vw,17px);color:var(--txt-2);max-width:640px;font-weight:400}
body.landing .hero-sub b{color:#fff;font-weight:600}
body.landing .hero-box{margin:32px auto 0;max-width:720px;background:rgba(21,22,24,.55);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid var(--line-2);border-radius:var(--r-card);padding:22px;text-align:left;box-shadow:0 16px 60px rgba(0,0,0,.4);transition:border-color .3s,box-shadow .3s;position:relative;overflow:hidden}
body.landing .hero-box:focus-within{border-color:rgba(255,255,255,.45);box-shadow:0 0 0 1px rgba(255,255,255,.2),0 16px 60px rgba(0,0,0,.4)}
body.landing .hero-box textarea{width:100%;height:84px;border:none;outline:none;resize:none;font-size:16px;line-height:1.7;color:var(--txt);background:transparent;position:relative;z-index:1}
body.landing .hero-box textarea::placeholder{color:var(--txt-4)}
body.landing .hero-meta{display:flex;justify-content:space-between;align-items:center;margin-top:6px;position:relative;z-index:1}
/* 生成框内黄色动态粒子色块 */
body.landing .hb-fx{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:0}
body.landing .hb-fx i{position:absolute;width:5px;height:5px;background:rgba(232,138,42,.32);opacity:0;animation:hbfloat linear infinite;animation-duration:5.4s}
body.landing .hb-fx i:nth-child(odd){width:8px;height:8px;background:rgba(243,165,93,.24)}
body.landing .hb-fx i:nth-child(3n){width:4px;height:4px;background:rgba(232,138,42,.45);animation-duration:4.6s}
body.landing .hb-fx i:nth-child(2n){animation-duration:6.4s}
body.landing .hb-fx i:nth-child(5n){animation-duration:7.8s}
body.landing .hero-box.beat .hb-fx i{animation-duration:.72s!important}
@keyframes hbfloat{0%{transform:translateY(18px) scale(.55);opacity:0}18%{opacity:.9}80%{opacity:.5}100%{transform:translateY(-52px) scale(1.2);opacity:0}}
body.landing .hero-count{font-size:13px;color:var(--txt-3)}
body.landing .dice{width:36px;height:36px;display:grid;place-items:center;color:#fff;background:var(--glass-2);border:1px solid var(--line);transition:transform .5s cubic-bezier(.6,2,.4,1),background .25s}
body.landing .dice:hover{transform:rotate(180deg);background:rgba(255,255,255,.14);box-shadow:var(--glow)}
body.landing .chip-row{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:16px auto 0;max-width:720px}
body.landing .chip{flex:0 0 auto;height:34px;padding:0 15px;font-size:14px;font-weight:500;color:var(--txt-2);background:var(--glass);border:1px solid var(--line);display:grid;place-items:center;transition:all .25s;white-space:nowrap;border-radius:0}
body.landing .chip:hover{border-color:rgba(255,255,255,.45);color:#fff;background:rgba(255,255,255,.08)}
body.landing .chip.on{background:rgba(255,255,255,.16);color:#fff;border-color:rgba(255,255,255,.35);animation:lift 2s ease-in-out infinite}
body.landing .hero-cta{display:flex;gap:14px;margin-top:16px;flex-wrap:wrap;justify-content:center}
body.landing .btn-gen{height:50px;padding:0 36px;font-size:16px;font-weight:700;color:#fff;background:var(--brass,#e8862a);border:1px solid var(--brass,#e8862a);position:relative;overflow:hidden;box-shadow:0 6px 24px rgba(232,134,42,.35);transition:transform .2s,box-shadow .3s,background .2s;border-radius:var(--r-ctl,8px)}
body.landing .btn-gen:hover{transform:translateY(-3px) scale(1.02);background:var(--brass-light,#f3a55d);border-color:var(--brass-light,#f3a55d);animation:lift 1.6s ease-in-out infinite}
body.landing .btn-gen::before{content:"";position:absolute;top:0;left:-120%;width:60%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.35),transparent);transform:skewX(-20deg);animation:sheen 3.2s ease-in-out infinite}
@keyframes sheen{0%,60%{left:-120%}100%{left:160%}}
body.landing .btn-gen .spark{position:absolute;width:4px;height:4px;background:#fff;opacity:0;animation:spark 2.2s ease-out infinite}
body.landing .btn-gen .spark:nth-child(2){top:10px;left:18%;animation-delay:0s}
body.landing .btn-gen .spark:nth-child(3){top:14px;left:64%;animation-delay:.7s}
body.landing .btn-gen .spark:nth-child(4){top:32px;left:86%;animation-delay:1.4s}
@keyframes spark{0%{opacity:0;transform:translateY(0) scale(.4)}18%{opacity:1}70%{opacity:0;transform:translateY(28px) scale(1.3)}100%{opacity:0}}
body.landing .btn-out{height:46px;padding:0 30px;font-size:15px;font-weight:600;color:#fff;background:var(--glass);border:1px solid rgba(255,255,255,.32);backdrop-filter:blur(10px);transition:all .25s;border-radius:0}
body.landing .btn-out:hover{background:rgba(255,255,255,.12);box-shadow:var(--glow);transform:translateY(-2px)}
body.landing .hero-note{margin-top:22px;font-size:13.5px;color:var(--txt-3)}
body.landing .hero-note b{color:#fff;font-weight:600}


/* ===== 背书 ===== */
body.landing .stats{text-align:center;padding:8px 0 64px;position:relative;z-index:2}
body.landing .stats .num{font-size:clamp(34px,4vw,48px);font-weight:800;letter-spacing:1px;background:linear-gradient(135deg,var(--brass),var(--brass-2),#fff);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
body.landing .stats .lab{font-size:14px;color:var(--txt-3);margin-top:6px;letter-spacing:2px}


/* ===== 区块通用 ===== */
body.landing .sec{padding:84px 0;position:relative}
body.landing .sec-head{text-align:center;margin-bottom:48px}
body.landing .sec-head .eyebrow{font-size:12px;letter-spacing:5px;color:var(--txt-2);text-transform:uppercase;margin-bottom:12px}
body.landing .sec-head h2{font-size:clamp(26px,3.2vw,40px);font-weight:800;letter-spacing:.5px;background:linear-gradient(90deg,#fff,#e9e5df);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
body.landing .sec-head p{font-size:15px;color:var(--txt-3);margin-top:10px}


/* ===== 功能墙 ===== */
body.landing .tools{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r-card);overflow:hidden}
body.landing .tool{background:var(--bg2);padding:26px 24px;min-height:158px;position:relative;transition:background .25s;overflow:hidden}
body.landing .tool::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:linear-gradient(90deg,var(--brass),var(--brass-2));transform:scaleX(0);transform-origin:left;transition:transform .4s cubic-bezier(.6,0,.2,1)}
body.landing .tool:hover::before{transform:scaleX(1)}
body.landing .tool:hover{background:var(--bg3)}
body.landing .tool .ti{display:flex;align-items:center;gap:12px;margin-bottom:14px}
body.landing .tool .ti svg{width:20px;height:20px;color:var(--brass-2);flex:0 0 auto}
body.landing .tool h3{font-size:16px;font-weight:700;color:#fff}
body.landing .tool p{font-size:13.5px;color:var(--txt-3);line-height:1.65}
body.landing .tool .t-more{display:inline-flex;align-items:center;gap:6px;margin-top:14px;font-size:13px;font-weight:600;color:var(--brass-2);opacity:0;transform:translateY(6px);transition:all .3s}
body.landing .tool .t-more svg{width:14px;height:14px;transition:transform .25s}
body.landing .tool:hover .t-more{opacity:1;transform:none}
body.landing .tool:hover .t-more svg{transform:translateX(4px)}
body.landing .tool.wide{grid-column:span 2}
body.landing .tool.mega{grid-column:span 4}


/* ===== 精选作品 横滚 ===== */
/* 精选作品区：标题压缩让位（作品卡上移露出） */
body.landing #works .sec-head{margin-bottom:22px}
body.landing #works .sec-head .eyebrow{display:none}
body.landing #works .sec-head h2{font-size:clamp(19px,2vw,24px)}
body.landing #works .sec-head p{font-size:13px;margin-top:6px}

body.landing .marquee-wrap{overflow:hidden;position:relative;mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
body.landing .marquee{display:flex;gap:16px;width:max-content;animation:marq 36s linear infinite}
body.landing .marquee:hover{animation-play-state:paused}
@keyframes marq{from{transform:translateX(0)}to{transform:translateX(-50%)}}
body.landing .w-card{width:264px;background:var(--bg2);border:1px solid var(--line);border-radius:var(--r-card);overflow:hidden;cursor:pointer;transition:border-color .3s,box-shadow .3s,transform .3s}
body.landing .w-card:hover{border-color:rgba(255,255,255,.45);box-shadow:0 20px 60px rgba(0,0,0,.45);transform:translateY(-6px)}
body.landing .w-card.playing{border-color:rgba(255,255,255,.65);box-shadow:0 0 0 1px rgba(255,255,255,.5),0 20px 60px rgba(0,0,0,.45);animation:lift 1.4s ease-in-out infinite}
body.landing .w-cover{height:142px;background:radial-gradient(ellipse at 30% 20%,rgba(232,138,42,.20),rgba(0,0,0,.35) 70%),linear-gradient(160deg,#232620,#16181a);display:grid;place-items:center;position:relative}
body.landing .w-cover::before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,transparent 30%,rgba(255,255,255,.05) 45%,transparent 60%);background-size:200% 100%;animation:scan 3.4s linear infinite}
@keyframes scan{from{background-position:-200% 0}to{background-position:200% 0}}
body.landing .w-wave{width:68%;height:42%;display:flex;align-items:center;gap:3px}
body.landing .w-wave i{flex:1;background:linear-gradient(180deg,rgba(255,255,255,.75),rgba(255,255,255,.25));height:var(--h,40%);animation:pulse 1.6s ease-in-out infinite}
body.landing .w-wave i:nth-child(2n){animation-delay:.2s}.w-wave i:nth-child(3n){animation-delay:.4s}.w-wave i:nth-child(4n){animation-delay:.6s}.w-wave i:nth-child(5n){animation-delay:.8s}
@keyframes pulse{0%,100%{transform:scaleY(.55)}50%{transform:scaleY(1)}}
body.landing .w-body{padding:15px 17px}
body.landing .w-body h4{font-size:15px;font-weight:600;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.landing .w-body p{font-size:13px;color:var(--txt-3);margin-top:4px}
body.landing .w-body .dur{font-size:12px;color:var(--txt-4);margin-top:6px;letter-spacing:1px}


/* ===== 四步 ===== */
body.landing .steps{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:0;position:relative;background:var(--bg2);border:1px solid var(--line);border-radius:var(--r-card);padding:38px 20px}
body.landing .step{position:relative;padding:0 20px;text-align:center}
body.landing .step .dot{width:48px;height:48px;margin:0 auto 14px;background:var(--bg);border:1px solid rgba(255,255,255,.4);color:#fff;font-weight:800;font-size:17px;display:grid;place-items:center;position:relative;z-index:2;box-shadow:0 0 0 5px rgba(255,255,255,.05);transition:all .3s;border-radius:0}
body.landing .step:hover .dot{background:rgba(255,255,255,.22);color:#fff;box-shadow:0 0 0 7px rgba(255,255,255,.1);transform:scale(1.1)}
body.landing .step h3{font-size:16px;font-weight:700;color:#fff}
body.landing .step p{font-size:13.5px;color:var(--txt-3);margin-top:6px}
body.landing .step-line{position:absolute;top:60px;left:calc(12.5% + 24px);right:calc(12.5% + 24px);height:2px;background:linear-gradient(90deg,rgba(255,255,255,.16),rgba(255,255,255,.45),rgba(255,255,255,.16));z-index:1}


/* ===== FAQ ===== */
body.landing .faq{max-width:740px;margin:0 auto}
body.landing .faq-item{background:var(--bg2);border:1px solid var(--line);border-radius:var(--r-card);margin-bottom:12px;overflow:hidden;transition:border-color .3s}
body.landing .faq-item.open,body.landing .faq-item:hover{border-color:rgba(255,255,255,.35)}
body.landing .faq-q{width:100%;display:flex;justify-content:space-between;align-items:center;padding:18px 24px;font-size:15px;font-weight:600;color:#fff}
body.landing .faq-q .chev{transition:transform .35s;color:var(--txt-3)}
body.landing .faq-item.open .chev{transform:rotate(180deg);color:#fff}
body.landing .faq-a{max-height:0;overflow:hidden;transition:max-height .4s ease;padding:0 24px;font-size:14.5px;color:var(--txt-2);line-height:1.7}
body.landing .faq-item.open .faq-a{max-height:240px;padding:0 24px 20px}


/* ===== 底部 CTA ===== */
body.landing .cta-sec{padding:96px 0;text-align:center;position:relative;overflow:hidden}
body.landing .cta-sec h2{font-size:clamp(30px,3.6vw,46px);font-weight:800;letter-spacing:1px;background:linear-gradient(90deg,#fff,#e9e5df);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
body.landing .cta-sec p{font-size:15px;color:var(--txt-3);margin:14px 0 30px}
body.landing .foot{border-top:1px solid var(--line);padding-block:28px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px;color:var(--txt-3)}
body.landing .foot .fb{font-weight:700;color:var(--txt-2)}


/* ===== 迷你播放条 ===== */
body.landing .minidock{position:fixed;left:0;right:0;bottom:0;height:64px;background:rgba(24,26,29,.88);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border-top:1px solid var(--line-2);display:none;align-items:center;padding:0 26px;gap:16px;z-index:70}
body.landing .minidock.show{display:flex}
body.landing .md-cover{width:40px;height:40px;background:linear-gradient(160deg,#26282c,#16181a);display:grid;place-items:center;color:#fff;border:1px solid var(--line);border-radius:0}
body.landing .md-info{min-width:0;flex:1}
body.landing .md-info b{display:block;font-size:14px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.landing .md-info span{font-size:12px;color:var(--txt-3)}
body.landing .md-play{width:36px;height:36px;background:rgba(255,255,255,.16);color:#fff;display:grid;place-items:center;flex:0 0 auto;border:1px solid rgba(255,255,255,.3);transition:transform .2s;border-radius:0}
body.landing .md-play:hover{transform:scale(1.12)}
body.landing .md-close{width:30px;height:30px;color:var(--txt-3);display:grid;place-items:center}
body.landing .md-close:hover{color:#fff}


/* ===== toast ===== */
body.landing .toast{position:fixed;left:50%;bottom:86px;transform:translateX(-50%) translateY(16px);background:rgba(28,30,33,.94);backdrop-filter:blur(14px);border:1px solid var(--line-2);color:#fff;font-size:14px;padding:12px 22px;border-radius:var(--r-ctl);opacity:0;pointer-events:none;transition:all .35s;z-index:80;max-width:86vw;text-align:center;box-shadow:0 14px 44px rgba(0,0,0,.45)}
body.landing .toast.show{opacity:1;transform:translateX(-50%) translateY(0)}


/* ===== 滚动渐显 ===== */
body.landing .reveal{opacity:0;transform:translateY(22px) scale(.99);filter:blur(4px);transition:opacity .6s cubic-bezier(.2,.7,.2,1),transform .6s cubic-bezier(.2,.7,.2,1),filter .6s}
body.landing .reveal.in{opacity:1;transform:none;filter:none}


/* 打字标题：保留 .typed 节点；禁止 background 简写重置 clip */
body.landing .hero h1 .typed{
  background-image:linear-gradient(90deg,#fff 0%,#f3a55d 40%,#fff 70%,#e9e5df 100%);
  background-size:220% 100%;
  background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;
  animation:typeShimmer 3.6s ease-in-out infinite;
}
body.landing .hero h1.typed-done .typed{
  background-image:linear-gradient(90deg,#fff 0%,#e9e5df 55%,#f3a55d 100%);
  background-size:160% 100%;
  background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;
  animation:typeShimmer 5s ease-in-out infinite;
}
@keyframes typeShimmer{0%{background-position:100% 50%}50%{background-position:0% 50%}100%{background-position:100% 50%}}
/* 有 .typed 时不要让 h1 自身 transparent 覆盖子节点 */
body.landing .hero h1:has(.typed){
  background:none;-webkit-text-fill-color:unset;animation:none;color:#fff;
}
body.landing .btn-gen,body.landing .btn-out{display:inline-flex;align-items:center;justify-content:center;gap:8px}
body.landing .btn-gen .btn-ico,body.landing .btn-out .btn-ico{display:block;flex:0 0 auto}
body.landing .burger{display:none;width:38px;height:38px;border:1px solid var(--line-2);place-items:center;color:var(--txt-2);border-radius:0}
body.landing .scrim{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:64;opacity:0;pointer-events:none;transition:opacity .3s}
body.landing .scrim.show{opacity:1;pointer-events:auto}

@media (max-width:1180px){
body.landing .tools{grid-template-columns:repeat(2,1fr)}
body.landing .tool.wide,body.landing .tool.mega{grid-column:span 2}
}
@media (max-width:900px){
body.landing .hero{padding:44px 0 48px}
body.landing .hero h1{font-size:34px}
body.landing .goo-wrap{width:min(420px,86%);bottom:-8%}
body.landing .steps{grid-template-columns:1fr 1fr;gap:26px 0;padding:32px 12px}
body.landing .step-line{display:none}
body.landing .sec{padding:60px 0}
body.landing .hero-cta .btn-gen,body.landing .hero-cta .btn-out{width:100%}
body.landing .wrap{padding-inline:20px}
body.landing .hero-in{padding-inline:20px}
body.landing #home-side{position:fixed;top:0;left:0;bottom:0;height:100vh;z-index:65;display:none;padding-top:72px;width:230px;overflow:hidden}
body.landing #home-side.open{display:flex;flex-direction:column;animation:railIn .35s cubic-bezier(.2,.8,.2,1)}
@keyframes railIn{from{transform:translateX(-100%)}to{transform:none}}
body.landing .burger{display:grid !important}
body.landing:not(.view-create):not(.view-analyze) #landing{left:0 !important}
}
@media (max-width:560px){
body.landing .tools{grid-template-columns:1fr}
body.landing .tool.wide,body.landing .tool.mega{grid-column:span 1}
body.landing .steps{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
body.landing .reveal{opacity:1;transform:none;filter:none}
body.landing .goo-wrap{display:none}
}
