/* 只适配正式公共组件；原CSS、静态预览及源DOM尺寸规则保持原字节。 */
[hidden]{display:none!important}
[data-hg-device="h5"]{display:none!important}
.hg-business-shell .d-top-vip,.hg-business-shell .d-top-avatar{border:0;cursor:pointer}
.hg-business-shell .d-top-avatar{position:relative;background:transparent}
.hg-avatar-vip{position:absolute;bottom:-3px;right:-5px;background:#ffc30d;color:#281c0c;padding:1px 4px;border-radius:4px;font-size:10px}
.hg-business-shell .d-top-name{max-width:28vw;overflow:hidden;text-overflow:ellipsis}
.hg-business-shell .base-menu-navigation{display:flex;flex-direction:column;width:100%}
.hg-business-shell .d-side .base-menu-node{width:100%}
.hg-business-shell .base-menu-link{box-sizing:border-box;max-width:100%;white-space:normal}
.hg-business-shell .base-menu-link-label{overflow-wrap:anywhere}
.hg-business-shell .base-menu-link.is-active{color:#ffc30d}
.hg-business-shell .base-menu-children{background:#191621;color:#ddd;border:1px solid #383140}
.hg-business-shell .d-footer .d-top-name{max-width:none;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.4}
/* 正式页脚用品牌/分类/功能三栏建立对齐，手机将品牌独占一行，避免所有内容零散居中堆叠。 */
.hg-footer{border-top:1px solid rgba(148,148,165,.12)}
.hg-footer .d-footer-inner{box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;gap:24px;width:100%;max-width:1202px;margin:0 auto;padding:36px 24px 24px;text-align:left}
.hg-footer .d-footer-inner>*{box-sizing:border-box;min-width:0;max-width:100%}
.hg-footer-main{display:grid;grid-template-columns:minmax(220px,1.35fr) repeat(2,minmax(0,1fr));gap:40px;align-items:start}
.hg-footer-main>*{min-width:0}
.hg-footer .d-top-logo-link{display:flex;align-items:center;justify-content:flex-start;gap:11px;width:fit-content;max-width:100%}
.hg-footer .d-top-logo{display:block;flex:none;width:44px;height:44px;object-fit:contain;border-radius:10px}
.hg-footer .d-top-name{font-size:22px;color:var(--d-gold,#ffc30d)}
.hg-footer-category-group>h3,.hg-footer .site-footer-functions>h3{margin:0 0 10px;font-size:14px;line-height:22px;font-weight:600;color:#e8e8ef}
.hg-footer-categories,.hg-footer .site-footer-function-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
.hg-footer-links{display:flex;flex-wrap:wrap;gap:0 20px;max-width:100%}
.hg-footer a{color:inherit;text-decoration:none}
.hg-footer a:hover{color:var(--d-gold,#ffc30d)}
.hg-footer a:focus-visible{outline:2px solid var(--d-gold,#ffc30d);outline-offset:3px}
.hg-footer p{max-width:360px;margin:10px 0 0;color:#93939f;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.hg-footer-categories a,.hg-footer-links a,.hg-footer .site-footer-function-links a{box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;min-width:0;max-width:100%;min-height:36px;margin:0;padding:5px 0;font-size:13px;line-height:1.7;overflow-wrap:anywhere;color:#aaaab8}
.hg-footer-info{display:flex;flex-wrap:wrap;align-items:center;gap:12px 28px;width:100%;padding-top:18px;border-top:1px solid rgba(148,148,165,.12)}
.hg-footer-info>[data-site-footer-addresses],.hg-footer-info>[data-site-footer-anti-lost],.hg-footer-info>[data-site-footer-contacts]{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;min-width:0;max-width:100%;margin:0;text-align:left}
.hg-footer-info h3{margin:0;font-size:12px;line-height:20px;color:#93939f}
.hg-footer .site-footer-functions{width:100%;text-align:left}
.hg-footer .site-footer-pills{justify-content:flex-start}
.hg-footer-info [data-site-email]{margin:0}
.hg-footer-bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 24px;width:100%}
.hg-footer .d-footer-copy{flex:1;min-width:0;color:#747480;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.hg-menu{box-sizing:border-box;position:fixed;inset:0 auto 0 0;margin:0;width:min(84vw,340px);height:100dvh;max-height:100dvh;max-width:100vw;background:#15121d;color:#eee;border:0;border-right:1px solid #35303e;padding:12px 16px;overflow-y:auto}
.hg-menu::backdrop{background:rgba(0,0,0,.68)}
.hg-menu-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.hg-menu-head button{width:44px;height:44px;background:none;border:0;color:inherit;font-size:28px;cursor:pointer}
.hg-menu .d-side-item{height:auto;min-height:52px;padding:12px;text-wrap:wrap;font-size:17px}
.hg-menu .base-menu-navigation{display:flex;flex-direction:column}
.hg-menu-toggle,.hg-mobile-search{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:10px;border:0;background:none;color:inherit;flex-shrink:0;cursor:pointer}
.hg-mobile-header .brand{min-width:0;flex:1;text-decoration:none;color:inherit;font-size:18px;font-weight:700;overflow:hidden}
.hg-mobile-header .brand span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.hg-mobile-logo{width:auto;max-width:100px;height:32px;object-fit:contain}
.hg-ui-status{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);z-index:3000;max-width:calc(100vw - 40px);padding:12px 18px;background:rgba(25,21,32,.96);color:#fff;border:1px solid #4a4252;border-radius:10px}
.hg-business-shell .tabbar__item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#999;text-decoration:none;font-size:12px}
.hg-business-shell .tabbar__item.is-on{color:#ffc30d}
.hg-faq-list{display:flex;flex-direction:column;gap:12px;padding:16px 0}
.hg-faq-list details{border-bottom:1px solid #333;padding:16px 0}
.hg-faq-list summary{cursor:pointer;font-weight:600;min-height:32px}
.hg-faq-list p{line-height:1.8;color:#aaa}
/* H5播放器固定层为200，公共客服需保持可点击；顶层dialog和原全屏避让仍由公共脚本管理。 */
.site-tools[data-site-theme="huangguov2"]{z-index:250}
@media(max-width:1023px){
    [data-hg-device="pc"]{display:none!important}
    [data-hg-device="h5"]{display:block!important}
    [data-hg-device="h5"].hg-mobile-header,[data-hg-device="h5"].tabbar{display:flex!important}
    .hg-business-shell{padding-top:0;background:var(--bg,#0e1119);font-size:14px}
    .hg-business-shell .d-footer{margin-left:0!important}
    .hg-footer .d-footer-inner{padding:28px 20px calc(var(--tabbar-h,60px) + env(safe-area-inset-bottom,0px) + 22px);gap:20px}
    .hg-footer .d-top-name{font-size:20px}
    .hg-footer-main{gap:28px}
    .hg-footer-info{gap:10px 12px}
    .hg-footer-info>[data-site-footer-addresses],.hg-footer-info>[data-site-footer-anti-lost],.hg-footer-info>[data-site-footer-contacts]{gap:8px}
    .hg-footer-categories a,.hg-footer-links a,.hg-footer .site-footer-function-links a{min-height:44px}
    .hg-business-shell .m-body{min-width:0}
    .site-tools[data-site-theme="huangguov2"]{bottom:calc(var(--tabbar-h,60px) + env(safe-area-inset-bottom,0px) + 18px)}
}
@media(max-width:600px){
    .hg-footer-main{grid-template-columns:1fr;gap:22px}
    .hg-footer p{max-width:100%;margin-top:8px}
    .hg-footer-categories{grid-template-columns:repeat(4,minmax(0,1fr));gap:0 12px}
    .hg-footer .site-footer-function-links{grid-template-columns:repeat(3,minmax(0,1fr));gap:0 12px}
    .hg-footer-bottom{flex-direction:column;align-items:flex-start;gap:4px}
    .hg-footer-links{order:-1;gap:0 20px}
}
