/* 云小狐首页 v4：样式限定在 .yxh-home 内，不影响站点其他页面。需要 yxh-home.js（地图与演示动画）和 fonts/ */
@font-face{font-family:"YXH Display";src:url(fonts/yxh-display.woff2) format("woff2");font-weight:500 800;font-display:swap}
.yxh-home{--bg:#030406;--s1:#0a0c11;--s2:#11141b;--line:rgba(255,255,255,.08);--line2:rgba(255,255,255,.15);--tx:#e8edf6;--mu:#8a96ab;--mu2:#566173;--blue:#5b8cff;--fox:#ff8a3d;--ok:#3ddc97;
  background:var(--bg);color:var(--tx);font-family:-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;line-height:1.6;-webkit-font-smoothing:antialiased;overflow:hidden}
.yxh-home *{box-sizing:border-box}
.yxh-home .vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.yxh-home a{color:inherit;text-decoration:none}
.yxh-home .wrap{max-width:1200px;margin:0 auto;padding:0 32px}
.yxh-home .disp,.yxh-home h1,.yxh-home h2,.yxh-home .plan .gb,.yxh-home .plan .pr{font-family:"YXH Display",-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;letter-spacing:-.02em}
.yxh-home h1,.yxh-home h2{margin:0;font-weight:750}
.yxh-home .mono{font-family:ui-monospace,"JetBrains Mono",Consolas,monospace;letter-spacing:.02em}
.yxh-home .btn{display:inline-flex;align-items:center;gap:10px;height:48px;padding:0 24px;border-radius:10px;font-size:15px;font-weight:650;transition:transform .15s,background .15s,border-color .15s}
.yxh-home .btn-main{background:#f2f4f8;color:#06080d}
.yxh-home .btn-main:hover{background:#fff;transform:translateY(-1px)}
.yxh-home .btn-line{border:1px solid var(--line2);color:var(--tx)}
.yxh-home .btn-line:hover{border-color:rgba(255,255,255,.35)}

/* ── 首屏：整幅点阵地图 ── */
.yxh-home .yxh-hero{position:relative;height:clamp(860px,100vh,960px);isolation:isolate}
.yxh-home .map-room{display:none}
.yxh-home .yxh-hero canvas{position:absolute;inset:0;width:100%;height:100%;z-index:-2}
.yxh-home .yxh-hero:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,var(--bg) 0%,rgba(3,4,6,.88) 26%,rgba(3,4,6,0) 52%),linear-gradient(180deg,rgba(3,4,6,.7) 0%,rgba(3,4,6,0) 18%,rgba(3,4,6,0) 70%,var(--bg) 100%)}
.yxh-home .yxh-hero .wrap{position:relative;height:100%}
.yxh-home .copy{position:absolute;left:32px;top:clamp(150px,20vh,200px);max-width:560px}
.yxh-home .status{display:inline-flex;align-items:center;gap:10px;font-size:12.5px;color:var(--mu)}
.yxh-home .status i{width:7px;height:7px;border-radius:2px;background:var(--fox)}
.yxh-home .status b{color:var(--tx);font-weight:600}
@keyframes yxhPulse{70%{box-shadow:0 0 0 9px rgba(61,220,151,0)}100%{box-shadow:0 0 0 0 rgba(61,220,151,0)}}
.yxh-home h1{margin-top:26px;font-size:clamp(46px,5.6vw,78px);line-height:1.04;color:#fff}
.yxh-home .rot{display:inline-block;color:var(--fox);min-width:2.1em;transition:opacity .25s,transform .25s}
.yxh-home .rot.out{opacity:0;transform:translateY(.18em)}
.yxh-home .spec{margin:30px 0 0;display:flex;flex-wrap:wrap;gap:8px 0;font-size:13px;color:#b8c2d3}
.yxh-home .spec span+span:before{content:"/";margin:0 12px;color:var(--mu2)}
.yxh-home .cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:34px}

/* 客户端示意卡 */
.yxh-home .client{position:absolute;right:32px;top:clamp(270px,34vh,330px);width:300px;padding:16px;border-radius:16px;background:rgba(12,15,22,.78);border:1px solid var(--line2);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 40px 90px -30px rgba(0,0,0,.9)}
.yxh-home .c-top{display:flex;justify-content:space-between;align-items:center;font-size:11.5px;color:var(--mu2);margin-bottom:12px}
.yxh-home .c-status{display:flex;align-items:center;gap:12px;padding:14px;border-radius:12px;background:rgba(61,220,151,.08);border:1px solid rgba(61,220,151,.22);transition:background .3s,border-color .3s}
.yxh-home .c-status small{display:block;font-size:11.5px;font-weight:650;color:var(--ok);letter-spacing:.04em}
.yxh-home .c-status strong{display:block;font-size:15px;color:#fff;font-weight:650}
.yxh-home .c-led{flex:none;width:9px;height:9px;border-radius:50%;background:var(--ok);box-shadow:0 0 12px var(--ok)}
.yxh-home .c-switch{margin-left:auto;flex:none;width:44px;height:26px;border:0;padding:0;border-radius:99px;background:var(--ok);position:relative;cursor:pointer;transition:background .25s}
.yxh-home .c-switch i{position:absolute;top:3px;left:21px;width:20px;height:20px;border-radius:50%;background:#fff;transition:left .25s}
.yxh-home .c-status[data-state=busy]{background:rgba(255,138,61,.08);border-color:rgba(255,138,61,.3)}
.yxh-home .c-status[data-state=busy] small{color:var(--fox)}
.yxh-home .c-status[data-state=busy] .c-led{background:var(--fox);box-shadow:0 0 12px var(--fox);animation:yxhBlink .45s infinite alternate}
.yxh-home .c-status[data-state=off]{background:rgba(255,255,255,.03);border-color:var(--line)}
.yxh-home .c-status[data-state=off] small{color:var(--mu)}
.yxh-home .c-status[data-state=off] .c-led{background:#394355;box-shadow:none}
.yxh-home .c-status[data-state=off] .c-switch{background:#2a3346}.yxh-home .c-status[data-state=off] .c-switch i{left:3px}
@keyframes yxhBlink{to{opacity:.3}}
.yxh-home .c-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}
.yxh-home .c-metrics div{padding:10px 12px;border-radius:10px;background:rgba(255,255,255,.03);border:1px solid var(--line)}
.yxh-home .c-metrics small{display:block;font-size:11px;color:var(--mu)}
.yxh-home .c-metrics b{font-size:22px;font-weight:700;color:#fff;font-variant-numeric:tabular-nums}
.yxh-home .c-metrics span{margin-left:4px;font-size:11px;color:var(--mu)}
.yxh-home .c-list{list-style:none;margin:0;padding:0}
.yxh-home .c-list li{display:grid;grid-template-columns:56px 1fr 66px;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;font-size:13px;color:#b8c2d3;cursor:pointer;transition:background .2s}
.yxh-home .c-list li:hover{background:rgba(255,255,255,.04)}
.yxh-home .c-list li.on{background:rgba(255,138,61,.1);color:#fff}
.yxh-home .c-list i{height:3px;border-radius:3px;background:rgba(255,255,255,.07);position:relative;overflow:hidden}
.yxh-home .c-list i:after{content:"";position:absolute;inset:0 auto 0 0;width:var(--w);background:var(--blue);border-radius:3px}
.yxh-home .c-list li.on i:after{background:var(--fox)}
.yxh-home .c-list em{text-align:right;font-style:normal;font-size:11.5px;color:var(--mu);font-variant-numeric:tabular-nums}
.yxh-home .c-foot{margin-top:10px;padding-top:10px;border-top:1px solid var(--line);font-size:11px;color:var(--mu2)}

/* 首屏底部套餐条 */
.yxh-home .plans{position:absolute;left:32px;right:32px;bottom:34px;display:grid;grid-template-columns:repeat(var(--n,4),1fr);border:1px solid var(--line2);border-radius:14px;background:rgba(8,10,15,.82);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);overflow:hidden}
.yxh-home .plan{position:relative;display:grid;grid-template-columns:1fr auto;align-items:end;gap:2px 12px;padding:20px 22px;border-left:1px solid var(--line);transition:background .2s}
.yxh-home .plan:first-child{border-left:0}
.yxh-home .plan:hover{background:rgba(255,255,255,.03)}
.yxh-home .plan.pick{background:linear-gradient(180deg,rgba(255,138,61,.1),rgba(255,138,61,0))}
.yxh-home .plan.pick:before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:var(--fox)}
.yxh-home .plan .nm{grid-column:1/-1;font-size:12.5px;color:var(--mu)}
.yxh-home .plan .nm b{margin-left:8px;font-weight:650;color:var(--fox)}
.yxh-home .plan .gb{font-size:26px;font-weight:700;color:#fff;line-height:1.2}
.yxh-home .plan .gb small,.yxh-home .plan .pr small{font:400 12px -apple-system,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--mu);margin-left:2px}
.yxh-home .plan .pr{font-size:20px;font-weight:700;color:#fff;text-align:right}
.yxh-home .plans-more{position:absolute;right:32px;bottom:8px;font-size:12px;color:var(--mu)}
.yxh-home .plans-more a{color:var(--tx);border-bottom:1px solid var(--line2)}

/* ── 连上之后：场景演示 ── */
.yxh-home .scenes{padding:110px 0 80px}
.yxh-home .sc-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap;margin-bottom:28px}
.yxh-home .sc-head h2{font-size:clamp(30px,3.4vw,44px);line-height:1.15;color:#fff}
.yxh-home .tabs{display:flex;gap:6px;padding:4px;border:1px solid var(--line);border-radius:12px;background:var(--s1)}
.yxh-home .tabs button{all:unset;cursor:pointer;padding:9px 16px;border-radius:9px;font-size:14px;color:var(--mu);transition:background .2s,color .2s}
.yxh-home .tabs button.on{background:var(--s2);color:#fff}
.yxh-home .screen{position:relative;border:1px solid var(--line2);border-radius:16px;background:var(--s1);overflow:hidden;box-shadow:0 60px 120px -60px rgba(91,140,255,.35)}
.yxh-home .bar{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--line);font-size:12.5px;color:var(--mu)}
.yxh-home .bar i{width:10px;height:10px;border-radius:50%;background:#222a38}
.yxh-home .bar span{margin-left:10px;padding:4px 12px;border-radius:7px;background:rgba(255,255,255,.04);min-width:260px}
.yxh-home .bar em{margin-left:auto;font-style:normal;color:var(--ok);white-space:nowrap}
.yxh-home .pane{display:none;height:272px;padding:26px 32px}
.yxh-home .pane.on{display:block;animation:yxhIn .35s ease}
@keyframes yxhIn{from{opacity:0;transform:translateY(6px)}}
.yxh-home .msg{max-width:72%;padding:12px 16px;border-radius:14px;font-size:14.5px;line-height:1.7;margin-bottom:14px}
.yxh-home .msg.me{margin-left:auto;background:rgba(91,140,255,.16);color:#dce6ff;border-bottom-right-radius:4px}
.yxh-home .msg.bot{background:rgba(255,255,255,.04);border:1px solid var(--line);color:#cfd8e8;border-bottom-left-radius:4px;min-height:84px}
.yxh-home .caret{display:inline-block;width:7px;height:16px;margin-left:2px;vertical-align:-3px;background:var(--fox);animation:yxhBlink .55s infinite alternate}
.yxh-home .video{display:grid;grid-template-columns:1.4fr 1fr;gap:24px;height:100%}
.yxh-home .player{position:relative;border-radius:12px;overflow:hidden;background:#07090d;border:1px solid var(--line)}
.yxh-home .player canvas{position:absolute;inset:0;width:100%;height:100%}
.yxh-home .player .q{position:absolute;top:12px;left:12px;padding:3px 8px;border-radius:6px;background:rgba(0,0,0,.6);font-size:11px;font-weight:700;color:#fff}
.yxh-home .prog{position:absolute;left:14px;right:14px;bottom:14px;height:4px;border-radius:4px;background:rgba(255,255,255,.14)}
.yxh-home .prog i{position:absolute;inset:0 auto 0 0;border-radius:4px}
.yxh-home .prog .buf{background:rgba(255,255,255,.32);width:0}
.yxh-home .prog .cur{background:var(--fox);width:0}
.yxh-home .vstat{display:flex;flex-direction:column;justify-content:center;gap:18px}
.yxh-home .vstat div{padding-bottom:16px;border-bottom:1px solid var(--line)}
.yxh-home .vstat small{display:block;font-size:12px;color:var(--mu)}
.yxh-home .vstat b{font-size:28px;color:#fff;font-variant-numeric:tabular-nums}
.yxh-home .term code{display:block;white-space:pre-wrap;font:13.5px/1.95 ui-monospace,Consolas,monospace;color:#b8c2d3}
.yxh-home .term .p{color:var(--blue)}.yxh-home .term .g{color:var(--ok)}

/* ── 常用地区：横向滚动 ── */
.yxh-home .regions{padding:0 0 88px}
.yxh-home .rg-label{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px;font-size:13px;color:var(--mu)}
.yxh-home .rg-label b{color:var(--tx);font-weight:600}
.yxh-home .marquee{display:flex;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.yxh-home .marquee+.marquee{margin-top:12px}
.yxh-home .track{display:flex;gap:12px;padding-right:12px;flex:none;animation:yxhScroll 38s linear infinite}
.yxh-home .marquee.rev .track{animation-direction:reverse;animation-duration:44s}
.yxh-home .marquee:hover .track{animation-play-state:paused}
@keyframes yxhScroll{to{transform:translateX(-100%)}}
.yxh-home .chip{display:flex;align-items:center;gap:10px;flex:none;padding:12px 18px;border:1px solid var(--line);border-radius:12px;background:var(--s1);font-size:15px;color:#e8edf6;white-space:nowrap}
.yxh-home .chip .cc{font:600 11px ui-monospace,Consolas,monospace;color:var(--blue)}
.yxh-home .chip em{font-style:normal;font-size:12px;color:var(--ok);font-variant-numeric:tabular-nums}
.yxh-home .chip.hot{border-color:rgba(61,220,151,.22)}

/* ── 买之前 ── */
.yxh-home .rules{padding:96px 0 110px;border-top:1px solid var(--line)}
.yxh-home .rules .wrap{display:grid;grid-template-columns:320px 1fr;gap:64px}
.yxh-home .rules h2{font-size:clamp(30px,3.4vw,44px);line-height:1.15;color:#fff}
.yxh-home .rules .side p{margin:18px 0 0;font-size:14px;color:var(--mu)}
.yxh-home .rules .side a{color:var(--tx);border-bottom:1px solid var(--line2)}
.yxh-home .rules dl{display:grid;grid-template-columns:1fr 1fr;gap:0 48px;margin:0}
.yxh-home .rules dl div{padding:22px 0;border-top:1px solid var(--line)}
.yxh-home .rules dt{font-size:16px;font-weight:650;color:#fff}
.yxh-home .rules dd{margin:6px 0 0;font-size:14.5px;line-height:1.75;color:var(--mu)}

@media(max-width:1080px){
  .yxh-home .plans{grid-template-columns:repeat(2,1fr)}
  .yxh-home .plan:last-child:nth-child(odd){grid-column:1/-1}
  .yxh-home .plan:nth-child(3){border-left:0}
  .yxh-home .plan:nth-child(n+3){border-top:1px solid var(--line)}
  .yxh-home .yxh-hero{height:auto;min-height:0;padding-bottom:40px}
  .yxh-home .yxh-hero .wrap{height:auto}
  .yxh-home .copy{position:relative;left:auto;top:auto;padding-top:120px;max-width:620px}
  .yxh-home .map-room{display:block;position:relative;height:420px}
  .yxh-home .yxh-hero:before{background:linear-gradient(180deg,var(--bg) 0%,rgba(3,4,6,.85) 28%,rgba(3,4,6,0) 36%,rgba(3,4,6,0) 56%,var(--bg) 66%)}
  .yxh-home .client{position:relative;right:auto;top:auto;margin:-120px 0 0 auto}
  .yxh-home .plans{position:relative;left:auto;right:auto;bottom:auto;margin-top:36px}
  .yxh-home .plans-more{position:static;display:block;margin-top:10px;text-align:right}
  .yxh-home .rules .wrap{grid-template-columns:1fr;gap:24px}
}
@media(max-width:640px){
  .yxh-home .wrap{padding:0 20px}
  .yxh-home .copy{padding-top:96px}
  .yxh-home h1{font-size:44px}
  .yxh-home .spec{gap:6px 16px}
  .yxh-home .spec span:before,.yxh-home .spec span+span:before{content:"";display:inline-block;width:4px;height:4px;margin:0 7px 2px 0;border-radius:1px;background:var(--fox)}
  .yxh-home .map-room{height:340px}
  .yxh-home .client{width:100%;margin:-60px 0 0}
  .yxh-home .plans{grid-template-columns:1fr}
  .yxh-home .plan:last-child:nth-child(odd){grid-column:auto}
  .yxh-home .plan{border-left:0}
  .yxh-home .plan:nth-child(n+2){border-top:1px solid var(--line)}
  .yxh-home .scenes{padding:80px 0 64px}
  .yxh-home .tabs{width:100%}.yxh-home .tabs button{flex:1;text-align:center;padding:9px 6px}
  .yxh-home .bar span{min-width:0}
  .yxh-home .pane{height:auto;min-height:340px;padding:20px}
  .yxh-home .msg{max-width:90%}
  .yxh-home .video{grid-template-columns:1fr}.yxh-home .player{height:190px}
  .yxh-home .rules{padding:72px 0 80px}
  .yxh-home .rules dl{grid-template-columns:1fr}
}

/* ── 站点页头 / 页脚的首页深色版 ──
   只在首页加载本文件，并且全部限定在 body.yxh-home-page 下：页头改成透明、
   压在首屏地图上（对应设计稿 preview.html 的 .pv-head），页脚改成深色（.pv-foot），
   其他页面的页头页脚不受影响。弹出菜单（语言 / 账号 / 手机菜单）仍是原来的白色面板。 */
body.yxh-home-page{background:#030406}
.yxh-home-page>main{padding:0;max-width:none;width:auto}
.yxh-home-page .site-header{position:absolute;left:0;right:0;top:0;height:72px;border-bottom:0;background:transparent;box-shadow:none}
.yxh-home-page .brand-mark{width:30px;height:30px;border-radius:0;box-shadow:none;object-fit:contain}
.yxh-home-page .brand-text{color:#fff;font-size:16px}
.yxh-home-page .desktop-nav{color:#9aa6b8;font-size:14px;font-weight:500;gap:30px}
.yxh-home-page .desktop-nav a:hover,.yxh-home-page .desktop-nav a[aria-current=page]{color:#fff}
.yxh-home-page .header-login{color:#cfd8e8;font-size:14px;font-weight:500}
.yxh-home-page .header-login:hover{color:#fff}
.yxh-home-page .header-actions>.button-primary{min-height:36px;padding:0 16px;border-radius:9px;background:#f2f4f8;color:#06080d;font-size:14px;font-weight:650;box-shadow:none}
.yxh-home-page .header-actions>.button-primary:hover{background:#fff;color:#06080d}
.yxh-home-page .site-header .icon-trigger{color:#cfd8e8}
.yxh-home-page .site-header .icon-trigger[style]{border-color:rgba(255,255,255,.15)!important;color:#cfd8e8!important}
.yxh-home-page .header-popover>summary:hover .icon-trigger,.yxh-home-page .header-popover[open]>summary .icon-trigger,.yxh-home-page .header-popover>summary.icon-trigger:hover,.yxh-home-page .header-popover[open]>summary.icon-trigger{color:#fff;border-color:rgba(255,255,255,.18);background:rgba(255,255,255,.06)}

.yxh-home-page .site-footer{margin-top:0;padding:36px 0 28px;background:#030406;border-top:1px solid rgba(255,255,255,.08)}
.yxh-home-page .footer-wordmark{color:#e8edf6;font-size:16px;font-weight:700}
.yxh-home-page .footer-brand p{margin-top:6px;color:#566173}
.yxh-home-page .footer-links{color:#8a96ab}
.yxh-home-page .footer-links a:hover{color:#fff}
.yxh-home-page .footer-bottom{border-top-color:rgba(255,255,255,.08);color:#566173}
.yxh-home-page .footer-bottom a{background:transparent!important;border:1px solid rgba(255,255,255,.1);color:#b8c2d3!important}
.yxh-home-page .footer-bottom a:hover{border-color:rgba(255,255,255,.25);color:#fff!important}
.yxh-home-page .footer-bottom .text-slate-600{color:#b8c2d3}
