/* 全站幽魂主题；功能页与登录器嵌入页分别限定布局，避免互相覆盖。 */
:root{color-scheme:dark;--night:#050c12;--panel:#0b1b26;--line:#315666;--silver:#dbe8ee;--muted:#9fb8c5;--soul:#79d8ee;}
html{scroll-behavior:smooth;}
body.youhun{margin:0;background:var(--night);color:var(--silver);font-family:"Microsoft YaHei",sans-serif;line-height:1.7;}
.youhun *{box-sizing:border-box;}
.youhun a{color:var(--silver);text-decoration:none;}
.youhun a:hover{color:#b8f2ff;text-decoration:none;}
.youhun a:focus-visible,.youhun button:focus-visible{outline:2px solid var(--soul);outline-offset:5px;}
.youhun p{color:inherit;}
.youhun-home .daohang,.sub-header{position:relative;width:100%;height:88px;left:auto;margin:0;padding:0 6%;display:flex;align-items:center;justify-content:space-between;background:#061018f5;border-bottom:1px solid #6ebbd02e;overflow:visible;z-index:10;}
.site-brand{color:#e2f3f7!important;font-family:"STKaiti","KaiTi",serif;font-size:28px;font-weight:700;letter-spacing:5px;white-space:nowrap;}
.site-brand span{display:block;margin-top:3px;font-family:"Microsoft YaHei",sans-serif;font-size:10px;font-weight:400;letter-spacing:4px;color:#8daebf;}
.youhun-home #downloaddh,.youhun-home #downloaddha{position:static;float:none;width:auto;height:auto;margin:0;overflow:visible;}
.youhun-home #downloaddha{display:flex;gap:34px;}
.youhun-home #downloaddha a,.youhun-home #downloaddha a:hover{float:none;width:auto;height:auto;margin:0;padding:12px 0;background:none;text-indent:0;color:#c1d5e0;font-size:14px;letter-spacing:2px;border-bottom:1px solid transparent;}
.youhun-home #downloaddha a:hover{color:#a9efff;border-color:var(--soul);}
.youhun-home #Version{width:100%;height:clamp(760px,56.25vw,1080px);position:relative;isolation:isolate;z-index:0;overflow:hidden;background:var(--night);}
.youhun-home #Header{position:absolute;inset:0;width:100%;height:100%;margin:0;z-index:-1;}
.youhun-home #Header img{width:100%;height:100%;object-fit:cover;object-position:center;}
.youhun-home #Header::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#030b1266,transparent 70%),linear-gradient(0deg,var(--night),transparent 25%);}
.hero-copy{position:relative;padding:clamp(70px,6vw,120px) 0 0 8%;width:60%;}
.hero-eyebrow{color:var(--soul)!important;font-size:12px;letter-spacing:6px;display:flex;align-items:center;gap:16px;}
.hero-eyebrow span{width:34px;height:1px;background:var(--soul);box-shadow:0 0 12px #4cbdd9;}
#hero-title{position:relative;display:inline-block;font-family:"STKaiti","Kaiti SC","KaiTi",serif;font-size:clamp(88px,7.3vw,140px);font-weight:900;letter-spacing:5px;line-height:1.13;color:#e0f3f9;margin:27px 0 24px;text-shadow:0 2px 4px #000,0 0 36px #4ac4ec44;}
#hero-title span{display:block;margin-left:65px;color:#91cedf;}
#hero-title i{position:absolute;right:-35px;top:24px;padding:8px 5px;border:1px solid #6599ac;outline:1px solid #6599ac66;outline-offset:4px;font-size:16px;line-height:1.1;letter-spacing:0;font-weight:400;color:#94d8ec;}
.hero-intro{font-size:21px;line-height:1.8;letter-spacing:4px;color:#d5e6ef!important;}
.hero-features{margin-top:26px;border-top:1px solid #6bc7e044;padding-top:18px;width:max-content;max-width:100%;}
.hero-features p{font-size:15px;line-height:1.95;letter-spacing:1px;color:#aecbd7;}
.hero-note{margin-top:17px;font-size:12px;line-height:1.9;letter-spacing:1px;color:#94adba!important;}
.youhun-home #download{position:relative;top:auto;left:auto;width:100%;height:auto;margin:-40px 0 0;padding:0 8% 52px;z-index:2;}
.youhun-home #downloada{float:none;display:flex;gap:20px;width:min(920px,100%);height:auto;margin:0;overflow:visible;}
.youhun-home #downloada a{float:none;display:flex;align-items:center;justify-content:space-between;flex:1;min-width:0;width:auto;height:84px;margin:0;padding:0 25px;border:1px solid #426b7d;outline:1px solid #345a6b88;outline-offset:-6px;background:linear-gradient(140deg,#102a38f2,#08121df5);text-indent:0;color:#d4e7ef;font-size:21px;letter-spacing:4px;box-shadow:0 8px 28px #0006;transition:transform .2s,border-color .2s;}
.youhun-home #downloada a::after{content:'↗';font-family:serif;font-size:22px;letter-spacing:0;color:#77b8d0;}
.youhun-home #downloada .btn_downa{background:linear-gradient(120deg,#1d596b,#103042);border-color:#6cb8cf;color:#ecfbff;box-shadow:0 0 30px #318bb329,inset 0 0 20px #5bd7ec11;}
.youhun-home #downloada a:hover{border-color:var(--soul);transform:translateY(-2px);}
.youhun-home #Floatingbar{width:126px;background:#091721;border:1px solid #355b6d;box-shadow:0 7px 24px #0008;transition:transform .2s ease;}
.youhun-home #Floatingbar .ewm{padding:14px 0 10px;background:transparent;}
.youhun-home #Floatingbar .ewm img{width:96px;height:96px;object-fit:cover;object-position:80%;border:1px solid #375c6a;}
.youhun-home #Floatingbar ul{background:none;padding:6px 0 12px;}
.youhun-home #Floatingbar ul li a,.youhun-home #music_btn{color:#bad4df;}
.youhun-home #audio_btn{display:block;text-align:center;}
.youhun-home #music_btn{margin:0;}
.youhun-home #Floatingbar .btn_backtop{background:#173848;color:#dbf2ff;}
.youhun-home #Floatingbar .btn_backtop:hover{background:#255569;}
.youhun-home #Floatingbar .btn{background:#173848;width:20px;left:-20px;height:65px;display:flex;align-items:center;justify-content:center;border:1px solid #355b6d;cursor:pointer;}
.youhun-home #Floatingbar .btn::after{content:'›';color:#c2ebfa;font-size:22px;}
.youhun-home #Floatingbar .btn.change::after{content:'‹';}
/* 功能页复用同一主视觉，用遮罩保证文字及操作优先可读。 */
body.youhun-sub{min-height:100vh;background:linear-gradient(90deg,#050c12f2,#050c12a8),url('../images/hero-youhun.jpg') center top/cover fixed;}
.sub-header .back-link{font-size:13px;letter-spacing:2px;color:#a8cbd9;padding:10px 0;}
.page-content{width:min(960px,calc(100% - 64px));margin:72px auto;padding-bottom:48px;}
.page-kicker{margin:0;color:var(--soul)!important;font-size:12px;letter-spacing:5px;}
.page-title{margin:12px 0 36px;font-family:"STKaiti","KaiTi",serif;font-size:48px;letter-spacing:6px;line-height:1.3;color:#e1eff5;}
.youhun .fl,.route-panel{min-width:0;margin:0 0 26px;padding:26px 30px;border:1px solid #355565;background:linear-gradient(135deg,#102330ee,#08131eea);box-shadow:0 16px 44px #0004;}
.youhun legend{padding:0 14px;color:#c6e8f5;font-size:20px;letter-spacing:2px;}
.youhun .fl ol{padding-left:22px;margin:4px 0;}
.youhun .fl li{color:#b7cbd6;margin:12px 0;line-height:1.9;font-size:14px;}
.youhun #urls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:4px 0;}
.youhun #urls a,.route-link{display:block;text-align:center;border:1px solid #3d697c;background:linear-gradient(135deg,#15394b,#0b202e);padding:15px 8px;color:#d7edf5;font-size:14px;transition:background .2s,border-color .2s;}
.youhun #urls a:hover,.route-link:hover{background:#19485c;border-color:#7ed5eb;}
.route-panel{max-width:680px;}
.route-intro{color:#a9c5d2!important;font-size:15px;margin:0 0 24px;}
.route-list{display:grid;gap:14px;}
.route-link{display:flex;justify-content:space-between;padding:18px 24px;font-size:16px;letter-spacing:2px;}
.route-link span{font-size:12px;color:#93cadd;letter-spacing:1px;align-self:center;}
/* 登录器信息页保持固定画布，不引入站点导航或响应式重排。 */
body.youhun-embedded{width:534px;height:269px;overflow:hidden!important;background:radial-gradient(ellipse at top right,#153242,#060f18 75%);font-size:12px;}
.youhun-embedded table{border:0;background:transparent!important;}
.youhun-embedded td{background:transparent!important;color:#b5d1dd;}
.youhun-embedded font,.youhun-embedded span{color:#c4dbe5!important;}
.youhun-embedded font[color="#ff9933"]{color:#71cce4!important;}
.youhun-embedded font[color="#cc0000"]{color:#99e6fa!important;}
.youhun-embedded a{color:#91d9f1;}
.youhun-embedded .group-link{display:inline-block;padding:0 9px;border:1px solid #47748b;line-height:20px;}
/* 展示页仅换外围装饰，游戏截图和 GIF 保持原样。 */
body.youhun-gallery{min-height:100vh;padding:36px 0;background:radial-gradient(ellipse at top,#102939,var(--night) 70%);overflow-x:hidden;}
.youhun-gallery .zbShow{width:100%;height:auto;min-height:720px;left:auto;margin:0;background:none;padding:30px 0;border-top:1px solid #284756;border-bottom:1px solid #284756;}
.youhun-gallery #focus_Box{width:min(1160px,100%);margin:auto;}
.youhun-gallery .feature-swiper{width:min(990px,100%);}
.youhun-gallery #focus_Box .prev,.youhun-gallery #focus_Box .next{width:48px;height:64px;top:280px;background:#102d3ee6;border:1px solid #49758b;color:#b1deed;}
.youhun-gallery #focus_Box .prev{left:12px;}
.youhun-gallery #focus_Box .next{right:12px;}
.youhun-gallery .prev::after,.youhun-gallery .next::after{display:block;text-align:center;font:32px/60px serif;}
.youhun-gallery .prev::after{content:'‹';}
.youhun-gallery .next::after{content:'›';}
/* 碎片轮播按容器宽度分格，用 outline 避免边框挤占两像素导致换行。 */
.youhun-gallery .banner{top:0;margin:0 auto;border:0;outline:1px solid #355f73;box-shadow:0 0 48px #23729022;}
.youhun-gallery .banner-btn span{background:#102d3ee6;color:#c0edfa;border:1px solid #49758b;}
.youhun-gallery .banner-number>*{border-color:#7ab6ce;background:#142f3d;}
.youhun-gallery .banner-number>*.on{background:#80d4ef;box-shadow:0 0 12px #48c4ea;}
.youhun-gallery .banner-progres i{background:#77d9f1!important;}
@media(min-width:1700px){.hero-features p{font-size:18px;}.hero-intro{font-size:25px;}.hero-note{font-size:14px;}}
@media(min-width:641px){.youhun-home #Floatingbar.is-collapsed{transform:translateX(100%);}}
@media(max-width:1100px){.youhun-home #downloaddha{gap:20px;}.hero-copy{padding-left:6%;width:68%;}.hero-features p{font-size:14px;}.youhun-home #Floatingbar{top:auto;bottom:20px;margin-top:0;}.youhun #urls{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:640px){
 .youhun-home .daohang{height:auto;min-height:108px;flex-direction:column;gap:13px;padding:16px 16px 7px;}
 .site-brand{font-size:23px;letter-spacing:5px;}.site-brand span{display:none;}
 .youhun-home #downloaddha{gap:21px;justify-content:center;flex-wrap:wrap;}
 .youhun-home #downloaddha a,.youhun-home #downloaddha a:hover{font-size:12px;letter-spacing:1px;padding:8px 0;}
 .youhun-home #Version{height:auto;min-height:0;}
 .youhun-home #Header{height:500px;}.youhun-home #Header img{object-position:77% center;}
 .youhun-home #Header::after{background:linear-gradient(0deg,var(--night) 3%,transparent 75%);}
 .hero-copy{padding:360px 24px 42px;width:100%;}
 .hero-eyebrow{font-size:11px;letter-spacing:4px;gap:10px;}
 #hero-title{font-size:64px;line-height:1.1;margin:21px 0 20px;letter-spacing:0;}
 #hero-title span{display:inline;margin-left:0;}#hero-title i{right:-26px;top:12px;font-size:11px;padding:4px;}
 .hero-intro{font-size:18px;letter-spacing:3px;}.hero-features{margin-top:23px;padding-top:16px;}
 .hero-features p{font-size:13px;letter-spacing:0;line-height:2;}.hero-note{font-size:11px;letter-spacing:0;}
 .youhun-home #download{margin:0;padding:0 24px 32px;}
 .youhun-home #downloada{gap:10px;flex-wrap:wrap;}
 .youhun-home #downloada a{height:62px;font-size:17px;letter-spacing:2px;padding:0 18px;flex-basis:calc(50% - 5px);}
 .youhun-home #downloada .btn_downa{flex-basis:100%;}
 .youhun-home #Floatingbar{position:relative;top:auto;right:auto!important;bottom:auto;width:calc(100% - 48px);margin:0 24px 24px!important;display:flex;align-items:center;justify-content:center;gap:20px;}
 .youhun-home #Floatingbar .ewm{padding:12px 0;}.youhun-home #Floatingbar .ewm img{width:64px;height:78px;}
 .youhun-home #Floatingbar ul{padding:8px 0;}.youhun-home #Floatingbar .btn_backtop{padding:0 10px;font-size:11px;}
 .youhun-home #Floatingbar .btn{display:none;}
 .sub-header{height:76px;padding:0 24px;}.sub-header .back-link{font-size:12px;letter-spacing:0;}
 .page-content{width:calc(100% - 40px);margin:40px auto;padding-bottom:16px;}.page-title{font-size:36px;letter-spacing:3px;margin-bottom:30px;}
 .youhun .fl,.route-panel{padding:22px 16px;}.youhun legend{padding:0 8px;font-size:18px;}
 .youhun #urls{gap:10px;}.youhun #urls a{font-size:13px;padding:14px 3px;}
 .route-link{font-size:15px;padding:16px;letter-spacing:1px;}.route-intro{font-size:14px;}
 body.youhun-gallery{padding:20px 0;}.youhun-gallery .feature-swiper .swiper-slide,.youhun-gallery .feature-swiper img{width:280px;}
 .youhun-gallery .zbShow{min-height:640px;}.youhun-gallery #focus_Box .prev,.youhun-gallery #focus_Box .next{width:36px;height:56px;}
}
@media(max-width:360px){#hero-title{font-size:56px;}.hero-copy{padding-left:20px;padding-right:20px;}.youhun-home #Floatingbar{gap:12px;}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto;}.youhun *{transition:none!important;}}

/* 旧 web.js 会插入展示区，覆盖其固定 1920px 画布及橙金背景。 */
.youhun-home .jsmg{position:relative;width:100%;left:auto;margin:0;background:radial-gradient(ellipse at top,#112936,var(--night) 60%);z-index:1;}
.youhun-home .jsmg_02,.youhun-home .jsmg_03,.youhun-home .jsmg_04{position:relative;width:100%;height:auto;padding:56px 0 30px;border-top:1px solid #315363;}
.youhun-home .js_bt{position:relative;width:auto;height:auto;margin:0 20px 36px!important;background:none;text-indent:0;overflow:visible;text-align:center;color:#cce9f4;font-family:"STKaiti","KaiTi",serif;font-size:32px;letter-spacing:5px;font-weight:400;}
.youhun-home .js_bt::after{content:"";display:block;width:52px;height:1px;background:#77c7df;margin:18px auto 0;box-shadow:0 0 12px #5dcce8;}
.youhun-home .jsmg .jsshow{position:relative;left:auto;margin:0;padding:0;width:100%;}
.youhun-home .jsmg .mkbg{display:none;background:none;}
.youhun-home .pview{position:relative;top:auto;left:auto;width:min(1320px,calc(100% - 96px));margin:0 auto;}
.youhun-home .items{position:relative;display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:18px;}
.youhun-home .items a,.youhun-home .items a:nth-child(10n){position:relative;float:none;display:flex;align-items:center;justify-content:center;width:100%;height:auto;aspect-ratio:1;margin:0;border:1px solid #365b70;outline:1px solid #274454;outline-offset:-5px;background:radial-gradient(ellipse at center,#183b50,#0a1925 75%);cursor:pointer;transition:border-color .2s,transform .2s;}
.youhun-home .items a:hover{border-color:#8ad9ee;transform:translateY(-3px);box-shadow:0 0 18px #3d9fc433;}
.youhun-home .items a img{margin:0;max-width:65%;max-height:65%;object-fit:contain;}
.youhun-home #preview{max-width:calc(100vw - 24px);padding:6px;border-color:#6494aa;background:#0b1a25;box-shadow:0 12px 36px #0009;}
.youhun-home #preview img{max-width:100%;height:auto;}
.youhun-home .jsmg iframe{display:block;width:100%;max-width:1440px;margin:0 auto!important;border:0;}
.youhun-home .jsmg_03 iframe{height:800px;}
.youhun-home .jsmg_04 iframe{height:clamp(280px,calc(53.846vw + 80px),800px);}
.youhun-home #Layer4{position:relative;left:auto;width:100%;height:auto;min-height:160px;margin:0;padding:36px 24px;background:#060e16;border-top:1px solid #284654;text-align:center;}
.youhun-home #Layer5,.youhun-home #layer2{position:static;width:auto;height:auto;margin:0;}
.youhun-home #Layer4 .STYLE2{text-align:center;}
.youhun-home #Layer4 p{font-size:11px;line-height:1.9;color:#8eabba;}
@media(max-width:1000px){.youhun-home .items{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;}}
@media(max-width:640px){
 .youhun-home .jsmg_02,.youhun-home .jsmg_03,.youhun-home .jsmg_04{padding:36px 0 24px;}
 .youhun-home .js_bt{font-size:25px;letter-spacing:3px;margin-bottom:28px!important;}
 .youhun-home .pview{width:calc(100% - 48px);}.youhun-home .items{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
 .youhun-home .jsmg_03 iframe{height:700px;}
}
