/* Shared layout fixes, 2026-11-11. */
.headers{width:100%;height:auto;min-height:100px;box-sizing:border-box;}
.headers .logo{margin:18px 0;}
.headers .logo-link{background-size:56px 56px!important;background-position:left center!important;}
.headers .logo-link h1,.headers .logo-link h2{padding-left:72px;white-space:nowrap;}
.main_l,.c-left{min-width:0;}
.navbar{height:auto!important;}
.navbar .wraps{height:auto!important;}
.soft-title,.soft-title h1{height:auto!important;overflow:visible!important;}
.artcontent img,.soft-content img{max-width:100%!important;height:auto!important;}
.artcontent,.soft-content{overflow-wrap:anywhere;word-break:normal;}
.artcontent table,.soft-content table{max-width:100%;display:block;overflow-x:auto;}
.artcontent pre,.soft-content pre{white-space:pre-wrap;overflow-wrap:anywhere;}
@media(max-width:1100px){
 .navbar .wraps{overflow-x:auto!important;justify-content:flex-start;}
 .navbar .nav-item{flex:0 0 auto!important;width:auto!important;overflow:visible;white-space:nowrap;min-width:72px;}
}
@media(max-width:960px){
 .main-wrap{flex-direction:column;}
 .grid-left{width:100%;}
 .grid-right{width:100%!important;max-width:none!important;min-width:0!important;}
 .artlist>.container{display:flex;flex-direction:column;gap:16px;}
 .artlist .main_l,.artlist .c-left{width:100%!important;max-width:100%!important;float:none!important;margin:0!important;}
 .artlist .side_r{display:block!important;width:100%!important;max-width:100%!important;float:none!important;margin:0!important;}
}
@media(max-width:640px){
 html,body{min-width:0!important;width:100%;}
 .headers{min-height:0;}
 .headers .wraps{display:flex!important;flex-direction:column!important;align-items:stretch!important;padding:10px 14px!important;gap:12px!important;}
 .headers .logo{max-width:100%!important;width:100%;margin:0;float:none;}
 .headers .logo-link{width:100%!important;height:56px!important;}
 .headers .logo-link h1{font-size:19px!important;line-height:30px!important;padding-top:3px!important;}
 .headers .logo-link h2{font-size:14px!important;line-height:20px!important;}
 .hd-search-wrap{width:100%!important;min-width:0!important;flex:auto!important;margin:0!important;}
 .hd-search-bar{height:40px;}
 .navbar .nav-item{font-size:15px!important;line-height:40px!important;padding:0 12px!important;}
 .main-wrap{padding:12px!important;gap:12px;}
 .grid-left{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:12px;}
 .grid-item{height:auto;min-height:0;}
 .item-list li{font-size:14px;line-height:26px;}
 .item-list li a{max-width:100%;display:block;white-space:normal;}
 .item-list li span{float:none;display:block;margin:0;font-size:12px;color:#767676;}
 .item-header h3{font-size:16px;}
 .container{padding:0 12px!important;}
 .artlist{padding:12px 0!important;}
 .artinfo,.artcontent,#scon_0.soft-content{padding:16px!important;}
 .artinfo h1,.soft-title h1{font-size:22px!important;line-height:1.5!important;white-space:normal;}
 .artcontent,.soft-content{font-size:16px;line-height:1.9;}
 .soft-area{display:flex;flex-direction:column;padding:16px!important;gap:16px;}
 .soft-area .area-c{width:100%!important;max-width:280px;}
 .soft-area .area-l{width:100%;padding:0!important;}
 .soft-meta{display:flex;flex-wrap:wrap;gap:8px;}
 .soft-meta>span{white-space:normal;}
 .down-btns{display:flex;flex-wrap:wrap;gap:10px;}
 .down-btns a,.down-btns button{min-height:44px;box-sizing:border-box;max-width:100%;}
 .down-box,.w880,.w880-min-sd{width:100%!important;max-width:100%!important;box-sizing:border-box;}
 .itemTitle,.itemTitle a{white-space:normal!important;line-height:1.5!important;}
 .artItem{padding:14px!important;box-sizing:border-box;}
 .pagebar,.pagination{display:flex;flex-wrap:wrap;gap:4px;}
 .foot{box-sizing:border-box;width:100%;min-width:0;}
}
