*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#080808;color:#f5f5f5;font:16px/1.8 system-ui,-apple-system,"Microsoft YaHei",sans-serif}a{color:inherit;text-decoration:none}a:hover,a:focus-visible{color:#ff656a}button,input{font:inherit}button{cursor:pointer;background:#d71920;color:#fff;border:1px solid #d71920;padding:7px 16px;min-height:44px}a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid #f0343b;outline-offset:3px}.wrap{max-width:1220px;margin:auto;padding:20px 20px}.fixed{position:fixed;top:0;left:0;right:0;background:#050505;z-index:20;border-bottom:1px solid #8f1017}.wire{height:16px;background:#d71920;display:flex;justify-content:space-between;align-items:center;padding:0 20px;font-size:11px;line-height:16px}.wire button{border:0;background:transparent;min-height:16px;padding:0 4px;font-size:11px}.brand{height:50px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid #8f1017}.brand>div{display:flex;align-items:center;gap:12px}.logo{font-weight:900;font-size:20px}.logo small{font-size:10px;letter-spacing:2px}.logo img{max-height:28px;width:auto}.desk{height:42px;display:flex;align-items:center;gap:6px;padding:0 20px}.desk a{border-left:3px solid #d71920;padding:4px 16px}main.wrap{padding-top:134px;padding-bottom:60px;min-height:70vh}.hero,.split{display:grid;grid-template-columns:42% 1fr;gap:20px}.panel,.card,.hero>div{background:#191919;border:1px solid rgba(255,255,255,.13);border-radius:8px;padding:22px;min-width:0}.hero>div:last-child{display:flex;align-items:center;justify-content:center;min-height:160px}.hero img{max-height:240px}.tag{color:#f5f5f5;border-left:4px solid #d71920;padding-left:12px}h1{font-size:30px;line-height:1.35;color:#fff}h2{font-size:22px;color:#fff;margin-top:0}h3{color:#fff}p{margin:12px 0;color:#f5f5f5}.muted{color:#d9d9d9}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.card:hover{background:#222}.card img,.panel img{max-width:100%;height:auto;object-fit:contain;object-position:center;max-height:180px;display:block;margin:auto}.btn{display:inline-block;padding:9px 18px;background:#d71920;border-radius:6px;margin:8px 8px 8px 0;min-height:44px}.outline{border:1px solid #d71920;background:#080808}.section{margin-top:28px}.line{border-left:3px solid #d71920;padding:8px 18px;margin:12px 0;background:#121212}.steps{counter-reset:steps}.steps p{counter-increment:steps}.steps p:before{content:counter(steps,decimal-leading-zero);color:#f0343b;margin-right:15px;font-weight:bold}.shade{position:fixed;inset:0;background:#000b;z-index:30;opacity:0;pointer-events:none;transition:opacity .2s}.shade.show{opacity:1;pointer-events:auto}.drawer{position:fixed;right:0;top:66px;bottom:0;width:min(400px,100vw);background:#121212;border-left:1px solid #d71920;padding:20px;overflow-y:auto;z-index:31;transform:translateX(105%);visibility:hidden;transition:transform .2s,visibility .2s}.drawer.show{transform:translateX(0);visibility:visible}.drawer-links{display:grid;grid-template-columns:1fr 1fr;gap:8px}.drawer-links a{padding:9px;background:#222;border-radius:5px;min-height:44px}.drawer input{width:100%;padding:12px;background:#080808;border:1px solid #d71920;color:white;margin-bottom:15px}.close{float:right}.locked{overflow:hidden}footer{border-top:2px solid #d71920;background:#050505;padding:25px 0}footer .footgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}footer a{display:block;min-height:30px;color:#ddd}footer h2{font-size:17px}.mobile{display:none}@media(max-width:800px){.desk{display:none}main.wrap{padding-top:88px;padding-bottom:90px}.wrap{padding-left:16px;padding-right:16px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.hero,.split{grid-template-columns:1fr}.mobile{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);bottom:0;left:0;right:0;z-index:19;background:#050505;border-top:1px solid #d71920;padding-bottom:env(safe-area-inset-bottom)}.mobile a{text-align:center;padding:10px 0;min-height:50px;font-size:14px}footer{padding-bottom:80px}.brand>div{gap:5px}.brand a{font-size:13px}footer .footgrid{grid-template-columns:repeat(2,1fr)}}@media(max-width:420px){.cards{grid-template-columns:1fr}.logo small{display:none}}

/* Responsive layout and media safety corrections */
html,body{width:100%;max-width:100%;overflow-x:clip}
*,*::before,*::after{box-sizing:border-box}
img,svg,video{max-width:100%;height:auto}
img{object-fit:contain;object-position:center}
.fixedhead,.site-header,header{max-width:100vw}
.brand,.brandbar,.brandname,.logo,.brand a,.brandbar a{min-width:0}
.brandname img,.brand .logo img,.brandbar img,.logo img,.brand img,header img[src*="51baoliao-logo.webp"]{display:block!important;width:auto!important;height:auto!important;max-height:28px!important;max-width:min(190px,42vw)!important;object-fit:contain!important;object-position:left center!important;margin:0!important}
.brandname,.logo{display:inline-flex;align-items:center;max-width:48%;flex-shrink:1}
.brandactions,.brand-actions,.header-actions{flex-shrink:0;min-width:0}
.hero,.split,.cards,.detailgrid,.grid,.card,.section,.article,.article-section{min-width:0;max-width:100%}
.hero>*,.split>*,.cards>*,.detailgrid>*,.grid>*{min-width:0}
.hero img[src*="51baoliao-banner.webp"],.heroimage img,.hero-media img,.hero .art img{display:block;width:auto!important;height:auto!important;max-width:100%!important;max-height:240px!important;object-fit:contain!important;object-position:center!important;margin:0 auto!important}
.heroimage,.hero-media,.hero .art{min-width:0;max-width:100%;max-height:none;overflow:visible}
img[src*="51baoliao-quanwang.webp"]{display:block;width:auto!important;height:auto!important;max-width:100%!important;max-height:180px!important;object-fit:contain!important;object-position:center!important;margin:12px auto!important}
.card img,.section img,.article img,.article-section img{width:auto;max-width:100%;height:auto;max-height:180px;object-fit:contain;object-position:center}
.appimg,img[src*="51baoliao-app.webp"]{max-height:420px!important;width:auto!important;height:auto!important}
@media(max-width:700px){
 .container,main,main.container{width:100%;max-width:100%;min-width:0;padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
 .hero,.split{display:grid!important;grid-template-columns:minmax(0,1fr)!important;max-width:100%;gap:12px}
 .hero>*,.split>*{width:100%;min-width:0;max-width:100%}
 .hero h1,.hero p,.section p,.card p{overflow-wrap:anywhere}
 .heroimage,.hero-media,.hero .art{min-height:0!important;height:auto!important;padding:12px!important}
 .brandname img,.brand .logo img,.brandbar img,.logo img,.brand img,header img[src*="51baoliao-logo.webp"]{max-width:min(148px,37vw)!important;max-height:26px!important}
 .brandactions,.brand-actions{gap:5px}
 .cards,.detailgrid{grid-template-columns:minmax(0,1fr)!important}
 .bottomnav{padding-bottom:env(safe-area-inset-bottom)}
 .footer,footer{padding-bottom:max(72px,calc(58px + env(safe-area-inset-bottom)))}
}
