/* ===== 首页动态引擎层：AIGC 造梦流水线 =====
   叠加在 #page-dash .hero-new 上；保留原有金线/青绿/书法体系，
   增加实时粒子、生成核心、镜头帧、状态读数，让首页第一屏“动起来”。 */

#page-dash .hero-new { overflow:hidden; }
#page-dash .dw-cine { position:absolute; inset:0; z-index:2; pointer-events:none; overflow:hidden; }
#page-dash .dw-cine::before {
  content:''; position:absolute; inset:-12%;
  background:
    radial-gradient(ellipse 520px 340px at 78% 22%,rgba(239,190,112,.16),transparent 64%),
    radial-gradient(ellipse 420px 300px at 58% 92%,rgba(40,162,144,.14),transparent 70%),
    radial-gradient(ellipse 260px 200px at 94% 70%,rgba(255,213,146,.10),transparent 68%);
  filter:blur(6px);
  animation:dwCineAurora 12s ease-in-out infinite alternate;
}
#page-dash .dw-cine::after {
  content:''; position:absolute; inset:0; z-index:3; pointer-events:none;
  opacity:.34; mix-blend-mode:screen;
  background:repeating-linear-gradient(0deg,rgba(255,234,190,.055) 0 1px,transparent 1px 4px);
  animation:dwCineScan 9s linear infinite;
}
#page-dash .dw-cine-beam {
  position:absolute; top:-24%; left:-18%; z-index:2; width:28%; height:150%;
  background:linear-gradient(90deg,transparent,rgba(255,231,185,.14) 38%,rgba(255,246,222,.26) 50%,rgba(84,201,180,.10) 62%,transparent);
  transform:skewX(-16deg); filter:blur(2px); mix-blend-mode:screen;
  animation:dwCineBeam 7.5s ease-in-out infinite;
}
#page-dash .dw-cine-scanline {
  position:absolute; left:0; right:0; top:-2%; z-index:3; height:1px; opacity:.58;
  background:linear-gradient(90deg,transparent,rgba(240,196,122,.55),rgba(84,201,180,.42),transparent);
  box-shadow:0 0 12px rgba(240,196,122,.18);
  animation:dwCineScanLine 5.6s linear infinite;
}
#page-dash .dw-cine-grid {
  position:absolute; left:44%; right:-10%; bottom:-18%; height:54%; z-index:1;
  transform:perspective(500px) rotateX(64deg); transform-origin:50% 100%;
  opacity:.42;
  background-image:
    linear-gradient(rgba(221,181,108,.22) 1px,transparent 1px),
    linear-gradient(90deg,rgba(54,169,151,.18) 1px,transparent 1px);
  background-size:58px 58px;
  -webkit-mask-image:linear-gradient(to top,#000 8%,transparent 82%);
  mask-image:linear-gradient(to top,#000 8%,transparent 82%);
  animation:dwCineGrid 10s linear infinite;
}
#dw-cine-canvas { position:absolute; inset:0; z-index:1; width:100%; height:100%; opacity:.78; mix-blend-mode:screen; }

/* HUD：右上角实时读数 */
#page-dash .dw-cine-hud {
  position:absolute; left:48%; right:auto; top:24px; z-index:5;
  display:flex; align-items:center; gap:8px;
  padding:6px 10px; border:1px solid rgba(226,190,124,.28); border-radius:3px;
  background:rgba(5,16,16,.62); color:rgba(232,218,186,.7);
  font-size:8px; letter-spacing:1.6px; white-space:nowrap;
  backdrop-filter:blur(8px);
}
#page-dash .dw-cine-hud .dot {
  width:5px; height:5px; border-radius:50%; background:#f0c47a;
  box-shadow:0 0 0 0 rgba(240,196,122,.6); animation:dwCinePulse 2.2s infinite;
}
#page-dash .dw-cine-hud b { color:#f6dca9; font-weight:600; letter-spacing:.8px; }
#page-dash .dw-cine-hud i { width:1px; height:10px; background:rgba(226,190,124,.22); }

/* 生成核心 + 六格镜头帧 */
#page-dash .dw-cine-stage { position:absolute; right:24px; top:98px; z-index:4; width:min(260px,24vw); height:310px; }
#page-dash .dw-cine-core {
  position:absolute; left:50%; top:4px; width:120px; height:120px;
  transform:translateX(-50%);
  border-radius:50%; z-index:2;
  animation:dwCineCoreFloat 7s ease-in-out infinite;
}
#page-dash .dw-cine-core::before {
  content:''; position:absolute; inset:-18%;
  border-radius:50%;
  background:radial-gradient(circle,rgba(240,196,122,.24),rgba(45,156,142,.12) 42%,transparent 70%);
  filter:blur(10px); animation:dwCineCoreGlow 4.2s ease-in-out infinite;
}
#page-dash .dw-cine-core i {
  position:absolute; inset:0; border-radius:50%; border:1px solid rgba(226,190,124,.28);
}
#page-dash .dw-cine-core i.r1 { inset:4%; border-top-color:rgba(246,220,169,.78); animation:dwCineSpin 16s linear infinite; }
#page-dash .dw-cine-core i.r2 { inset:14%; border-bottom-color:rgba(54,169,151,.65); transform:rotateX(62deg); animation:dwCineSpin 11s linear infinite reverse; }
#page-dash .dw-cine-core i.r3 { inset:25%; border-style:dashed; border-color:rgba(226,190,124,.32); animation:dwCineSpin 24s linear infinite; }
#page-dash .dw-cine-orb {
  position:absolute; inset:31%; border-radius:50%;
  background:
    radial-gradient(circle at 34% 28%,#fff8e6 0%,#f2cf92 9%,#ba8544 36%,#3e2a16 64%,#0b1312 100%);
  box-shadow:0 0 24px rgba(240,196,122,.42),0 0 70px rgba(54,169,151,.18),inset -10px -14px 26px rgba(0,0,0,.52);
  animation:dwCineOrb 4.8s ease-in-out infinite;
}
#page-dash .dw-cine-orb::after {
  content:''; position:absolute; inset:-16%; border-radius:50%;
  border:1px solid rgba(246,220,169,.28); animation:dwCineHalo 3.2s ease-out infinite;
}
#page-dash .dw-cine-core span {
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  z-index:3; color:#fff4db; font-size:9px; line-height:1.2; text-align:center;
  letter-spacing:2px; font-weight:800; text-shadow:0 0 14px rgba(240,196,122,.7);
}
#page-dash .dw-cine-core span small { display:block; margin-top:3px; font-size:6px; letter-spacing:2.4px; color:rgba(246,226,190,.72); }

#page-dash .dw-cine-frame {
  position:absolute; z-index:3; width:78px; height:44px; overflow:hidden;
  border:1px solid rgba(226,190,124,.32); border-radius:3px;
  background:#071516; box-shadow:0 10px 24px rgba(0,0,0,.34),inset 0 0 0 1px rgba(255,246,218,.04);
  opacity:.55; transform:scale(.96); transition:opacity .6s,border-color .6s,transform .6s;
}
#page-dash .dw-cine-frame.is-on { opacity:.95; transform:scale(1); border-color:rgba(246,220,169,.78); }
#page-dash .dw-cine-frame .art { position:absolute; inset:0; opacity:.58; mix-blend-mode:screen; }
#page-dash .dw-cine-frame .art::before {
  content:''; position:absolute; inset:0; opacity:.5;
  background:repeating-linear-gradient(0deg,rgba(255,255,255,.08) 0 1px,transparent 1px 3px);
  mix-blend-mode:overlay;
}
#page-dash .dw-cine-frame .art::after {
  content:''; position:absolute; left:-45%; top:0; width:42%; height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,240,205,.32),transparent);
  transform:skewX(-18deg); animation:dwCineShimmer 2.8s ease-in-out infinite;
}
#page-dash .dw-cine-frame em {
  position:absolute; left:5px; bottom:3px; z-index:2;
  color:rgba(255,247,225,.84); font-style:normal; font-size:5.5px; letter-spacing:.9px;
}
#page-dash .dw-cine-frame::after {
  content:''; position:absolute; inset:0; z-index:2; pointer-events:none;
  background:linear-gradient(to bottom,transparent,rgba(240,196,122,.18),transparent);
  opacity:0;
}
#page-dash .dw-cine-frame.is-on::after { opacity:1; animation:dwCineFrameScan 2.4s linear infinite; }
#page-dash .dw-cine-frame.f1 { left:12px; top:120px; animation:dwCineFrameGlow 4.2s ease-in-out infinite; } .dw-cine-frame.f1 .art { background:linear-gradient(140deg,#08252a,#155f66 42%,#c09152 78%,#f3d9a2); }
#page-dash .dw-cine-frame.f2 { right:12px; top:120px; animation:dwCineFrameGlow 4.2s ease-in-out -1.1s infinite; }
#page-dash .dw-cine-frame.f2 .art { background:linear-gradient(140deg,#071f24,#164977 46%,#6a4c8b 76%,#e8b76b); }
#page-dash .dw-cine-frame.f3 { left:12px; top:172px; animation:dwCineFrameGlow 4.2s ease-in-out -2.2s infinite; }
#page-dash .dw-cine-frame.f3 .art { background:linear-gradient(140deg,#081a20,#2e6259 48%,#bd8750 78%,#ffe4a8); }
#page-dash .dw-cine-frame.f4 { right:12px; top:172px; animation:dwCineFrameGlow 4.2s ease-in-out -3.1s infinite; }
#page-dash .dw-cine-frame.f4 .art { background:linear-gradient(140deg,#101b2a,#28536e 44%,#77539b 74%,#f3c174); }
#page-dash .dw-cine-frame.f5 { left:12px; top:224px; animation:dwCineFrameGlow 4.2s ease-in-out -3.8s infinite; }
#page-dash .dw-cine-frame.f5 .art { background:linear-gradient(140deg,#0a2024,#20756a 46%,#d3a161 76%,#fff0c8); }
#page-dash .dw-cine-frame.f6 { right:12px; top:224px; animation:dwCineFrameGlow 4.2s ease-in-out -4.6s infinite; }
#page-dash .dw-cine-frame.f6 .art { background:linear-gradient(140deg,#091d2a,#1c5f70 44%,#7d5d9c 72%,#e8ba78); }

/* 底部能力轨道 */
#page-dash .dw-cine-rail {
  position:absolute; left:48%; right:30px; bottom:52px; z-index:5;
  display:flex; align-items:center; gap:0;
  padding:8px 10px; border:1px solid rgba(226,190,124,.16);
  background:rgba(5,15,16,.52); backdrop-filter:blur(8px);
  color:rgba(219,207,181,.52); font-size:7.5px; letter-spacing:1.1px;
}
#page-dash .dw-cine-rail span { flex:1; text-align:center; white-space:nowrap; }
#page-dash .dw-cine-rail span.on { color:#f4d79e; }
#page-dash .dw-cine-rail i {
  position:absolute; left:10px; bottom:0; height:1px; width:0;
  background:linear-gradient(90deg,transparent,#e8bd7d,#54c9b4); transition:width .8s cubic-bezier(.16,1,.3,1);
}

/* 文案下方的实时状态 */
#page-dash .dw-cine-status {
  display:inline-flex; align-items:center; gap:7px; margin-top:16px;
  color:#9eb3ab; font-size:10.5px; letter-spacing:.6px;
}
#page-dash .dw-cine-status .pulse {
  width:6px; height:6px; border-radius:50%; background:#54c9b4;
  box-shadow:0 0 0 0 rgba(84,201,180,.7); animation:dwCinePulse 1.8s infinite;
}
#page-dash .dw-cine-status b { color:#e8c88d; font-weight:500; }
#page-dash .dw-cine-status .bar { width:74px; height:2px; background:rgba(255,255,255,.08); overflow:hidden; border-radius:2px; }
#page-dash .dw-cine-status .bar i { display:block; height:100%; width:0; background:linear-gradient(90deg,#e8c88d,#54c9b4); transition:width .8s; }


/* 首屏六格使用真实生成画面，叠加金色 HUD */
#page-dash .dw-cine-frame.f1 .art { background-image:linear-gradient(140deg,rgba(8,37,42,.18),rgba(21,95,102,.10) 42%,rgba(192,145,82,.16)),url('/frontend/live/f1.jpg');background-size:cover;background-position:center; }
#page-dash .dw-cine-frame.f2 .art { background-image:linear-gradient(140deg,rgba(7,31,36,.18),rgba(22,73,119,.10) 46%,rgba(232,183,107,.16)),url('/frontend/live/f2.jpg');background-size:cover;background-position:center; }
#page-dash .dw-cine-frame.f3 .art { background-image:linear-gradient(140deg,rgba(8,26,32,.18),rgba(46,98,89,.10) 48%,rgba(255,228,168,.14)),url('/frontend/live/f3.jpg');background-size:cover;background-position:center; }
#page-dash .dw-cine-frame.f4 .art { background-image:linear-gradient(140deg,rgba(16,27,42,.18),rgba(40,83,110,.10) 44%,rgba(243,193,116,.14)),url('/frontend/live/f4.jpg');background-size:cover;background-position:center; }
#page-dash .dw-cine-frame.f5 .art { background-image:linear-gradient(140deg,rgba(10,32,36,.18),rgba(32,117,106,.10) 46%,rgba(255,240,200,.14)),url('/frontend/live/f5.jpg');background-size:cover;background-position:center; }
#page-dash .dw-cine-frame.f6 .art { background-image:linear-gradient(140deg,rgba(9,29,42,.18),rgba(28,95,112,.10) 44%,rgba(232,186,120,.14)),url('/frontend/live/f6.jpg');background-size:cover;background-position:center; }

@keyframes dwCineBeam { 0% { left:-30%; opacity:0; } 18% { opacity:.9; } 55% { opacity:.5; } 100% { left:120%; opacity:0; } }
@keyframes dwCineScanLine { 0% { top:-4%; opacity:0; } 12% { opacity:.7; } 88% { opacity:.5; } 100% { top:104%; opacity:0; } }
@keyframes dwCineFrameGlow { 0%,100% { box-shadow:0 10px 24px rgba(0,0,0,.34),inset 0 0 0 1px rgba(255,246,218,.04); } 50% { box-shadow:0 12px 30px rgba(0,0,0,.42),0 0 18px rgba(240,196,122,.16),inset 0 0 0 1px rgba(255,246,218,.10); } }
@keyframes dwCineAurora { from { transform:translate3d(-3%,-2%,0) scale(1); } to { transform:translate3d(4%,3%,0) scale(1.08); } }
@keyframes dwCineScan { from { background-position:0 0; } to { background-position:0 44px; } }
@keyframes dwCineGrid { from { background-position:0 0,0 0; } to { background-position:0 58px,58px 0; } }
@keyframes dwCinePulse { 0% { box-shadow:0 0 0 0 rgba(240,196,122,.6); } 70% { box-shadow:0 0 0 7px rgba(240,196,122,0); } 100% { box-shadow:0 0 0 0 rgba(240,196,122,0); } }
@keyframes dwCineCoreFloat { 0%,100% { transform:translateX(-50%) translateY(-4px); } 50% { transform:translateX(-50%) translateY(5px); } }
@keyframes dwCineCoreGlow { 0%,100% { opacity:.58; transform:scale(.92); } 50% { opacity:1; transform:scale(1.08); } }
@keyframes dwCineSpin { to { transform:rotate(360deg); } }
@keyframes dwCineOrb { 0%,100% { transform:scale(1); filter:brightness(1); } 50% { transform:scale(1.05); filter:brightness(1.12); } }
@keyframes dwCineHalo { 0% { transform:scale(.7); opacity:.5; } 100% { transform:scale(1.3); opacity:0; } }
@keyframes dwCineShimmer { 0% { left:-45%; } 55%,100% { left:120%; } }
@keyframes dwCineFrameScan { 0% { transform:translateY(-100%); } 100% { transform:translateY(320%); } }

@media (max-width:980px) {
  #page-dash .dw-cine-stage { width:220px; height:280px; right:16px; top:92px; }
  #page-dash .dw-cine-frame { width:70px; height:40px; }
  #page-dash .dw-cine-core { width:96px; height:96px; }
  #page-dash .dw-cine-rail { left:50%; }
  #page-dash .dw-cine-hud { left:46%; }
}
#page-dash .hero-art { opacity:.16; transition:opacity .3s; }
@media (max-width:768px) {
  #page-dash .dw-cine-stage { display:none; }
  #page-dash .dw-cine-rail { display:none; }
  #page-dash .dw-cine-hud { display:none; }
  #page-dash .dw-cine-grid { left:30%; height:44%; opacity:.30; }
  #page-dash .dw-cine-status { margin-top:13px; font-size:9.5px; }
  #page-dash .dw-cine-status .bar { width:54px; }
}
@media (prefers-reduced-motion:reduce) {
  #page-dash .dw-cine *, #page-dash .dw-cine *::before, #page-dash .dw-cine *::after { animation-duration:.001ms !important; animation-iteration-count:1 !important; }
}
