/* ================================================================
   24直播网 · shengqingnian.com 米杏色风格
   米杏底 #ffe4c4 / 浅棕头部 #efd6b8 / 藏青按钮 #1f3a5f
   ================================================================ */

html,body.o5-body{
  background:#ffe4c4!important;background-image:none!important;
  color:#1f2d3d;font:14px/1.6 "Microsoft YaHei","PingFang SC",Arial,sans-serif;
}
body.o5-body a{text-decoration:none;color:inherit}
body.o5-body img{border:0}

.sq-wrap{width:1200px;max-width:100%;margin:0 auto;padding:0 12px;box-sizing:border-box}

/* 顶部 */
.sq-header{background:#efd6b8;height:60px}
.sq-header .sq-wrap{display:flex;align-items:center;height:100%}
.sq-logo{display:flex;align-items:center;height:100%;margin-right:auto;flex:0 0 auto}
.sq-logo b{color:#1f2d3d;font-size:24px;font-weight:800;white-space:nowrap;letter-spacing:.5px}
.sq-nav{display:flex;align-items:stretch;height:100%;min-width:0}
.sq-nav a{
  display:flex;align-items:center;color:#1f2d3d!important;font-size:16px;padding:0 18px;
  white-space:nowrap;border-bottom:3px solid transparent;transition:background .2s;
}
.sq-nav a:hover,.sq-nav a.on{border-bottom-color:#1f3a5f;font-weight:700}
.sq-clock{display:flex;align-items:center;gap:6px;margin-left:22px;font-size:13px;color:#5a4a38;white-space:nowrap}
.sq-clock i{font-style:normal;font-size:15px}

/* 筛选条 */
.sq-filterstrip{background:#ffe4c4;padding:12px 0 6px}
.sq-filter{display:flex;flex-wrap:wrap;gap:10px}
.sq-filter a{
  display:block;padding:7px 22px;border-radius:20px;font-size:15px;color:#1f2d3d;
  background:#f7e6cd;border:1px solid #e8d2b4;white-space:nowrap;
}
.sq-filter a.on{background:#1f3a5f;border-color:#1f3a5f;color:#fff;font-weight:700}

/* 日期条 */
.sq-datebar{
  display:flex;align-items:center;justify-content:center;gap:10px;
  background:#efd6b8;border-radius:6px 6px 0 0;min-height:58px;
  color:#1f2d3d;font-size:16px;font-weight:700;margin-top:12px;
}
.sq-datebar span{font-weight:400;color:#5a4a38;font-size:14px}

/* 比赛行 */
.sq-list{background:transparent}
.sq-row{
  display:flex;align-items:center;min-height:70px;padding:8px 12px;
  border-bottom:1px solid rgba(31,45,61,.10);color:#1f2d3d;box-sizing:border-box;
  transition:background .15s;
}
.sq-row:hover{background:#ffedd6}
.sq-left{flex:0 0 230px;width:230px;display:flex;align-items:center;gap:8px;min-width:0}
.sq-league-logo{width:28px;height:28px;max-width:28px;max-height:28px;object-fit:contain;flex:0 0 28px}
.sq-lgname{font-size:14px;color:#1f2d3d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sq-time{font-size:14px;color:#5a4a38;white-space:nowrap}
.sq-teams{flex:1 1 auto;display:flex;align-items:center;justify-content:center;gap:12px;min-width:0}
.sq-team{display:flex;align-items:center;gap:8px;min-width:0;font-size:15px;font-weight:600}
.sq-team span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sq-team img{width:28px;height:28px;max-width:28px;max-height:28px;object-fit:contain;flex:0 0 28px}
.sq-vs{flex:0 0 auto;font-size:13px;color:#8a7458;font-weight:700;padding:0 4px}
.sq-btn{
  flex:0 0 106px;width:106px;height:34px;display:flex;align-items:center;justify-content:center;gap:6px;
  margin-left:auto;background:#1f3a5f;color:#fff!important;border-radius:17px;font-size:14px;white-space:nowrap;
}
.sq-btn::before{content:"";width:0;height:0;border-left:8px solid #fff;border-top:5px solid transparent;border-bottom:5px solid transparent}
.sq-crest{
  width:28px;height:28px;flex:0 0 28px;border-radius:50%;display:inline-grid;place-items:center;
  background:#f1ddc2;color:#1f3a5f;font-size:11px;font-style:normal;font-weight:700;
}

/* 其他页面 */
.o5-body .o5-page .o5-wrap{width:1200px!important;max-width:100%!important;padding:12px 12px 10px!important;box-sizing:border-box!important}
.o5-body .o5-page .o5-grid{display:grid!important;grid-template-columns:1fr!important;gap:0!important}
.o5-body .o5-page .o5-side{display:none!important}
.o5-body .o5-page .o5-card{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important}
.o5-body .o5-page .o5-sidehead,
.o5-body .o5-page .o5-main>.o5-card>.o5-sidehead{
  display:block!important;background:#efd6b8!important;color:#1f2d3d!important;
  font-size:20px!important;font-weight:800!important;line-height:1.4!important;
  padding:12px 18px!important;border:0!important;border-radius:6px 6px 0 0!important;
}
.o5-body .o5-page .o5-sidehead::before{display:none!important}
.o5-body .o5-page .o5-days{padding:0!important;background:transparent!important}
.o5-body .o5-page .o5-day{border:0!important;border-radius:0!important;margin:0!important;overflow:visible!important}
.o5-body .o5-page .o5-rows{background:transparent!important}
.o5-body .o5-page .o5-dayhead{
  display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;
  background:#efd6b8!important;color:#1f2d3d!important;font-size:16px!important;font-weight:700!important;
  min-height:54px!important;padding:10px!important;margin-top:12px!important;border-radius:6px 6px 0 0!important;
}
.o5-body .o5-page .o5-dayhead span{background:transparent!important;padding:0!important;color:#1f2d3d!important;font-size:16px!important;font-weight:700!important}
.o5-body .o5-page .o5-match{
  display:flex!important;align-items:center!important;min-height:70px!important;
  padding:8px 12px!important;border:0!important;border-bottom:1px solid rgba(31,45,61,.10)!important;
  background:transparent!important;color:#1f2d3d!important;gap:0!important;box-sizing:border-box!important;
}
.o5-body .o5-page .o5-match:hover{background:#ffedd6!important}
.o5-body .o5-page .o5-time{flex:0 0 100px!important;width:100px!important;font-size:14px!important;font-weight:400!important;color:#5a4a38!important;white-space:nowrap}
.o5-body .o5-page .o5-league{flex:0 0 130px!important;width:130px!important;font-size:14px!important;font-weight:400!important;color:#1f2d3d!important}
.o5-body .o5-page .o5-teams{flex:1 1 auto!important;justify-content:center!important;gap:12px!important;min-width:0!important}
.o5-body .o5-page .o5-team{font-size:15px!important;font-weight:600!important;gap:8px!important;min-width:0!important}
.o5-body .o5-page .o5-team img.o5-logo-img{
  width:28px!important;height:28px!important;max-width:28px!important;max-height:28px!important;
  flex:0 0 28px!important;border-radius:0!important;background:none!important;object-fit:contain!important;
}
.o5-body .o5-page .o5-crest{width:28px!important;height:28px!important;flex:0 0 28px!important;background:#f1ddc2!important;color:#1f3a5f!important;font-size:11px!important}
.o5-body .o5-page .o5-teams em{color:#8a7458!important;font-size:13px!important;font-weight:700!important}
.o5-body .o5-page .o5-status{
  flex:0 0 106px!important;width:106px!important;min-width:106px!important;height:34px!important;
  line-height:34px!important;margin-left:auto!important;padding:0!important;text-align:center!important;
  background:#1f3a5f!important;color:#fff!important;border:0!important;border-radius:17px!important;
  font-size:14px!important;font-weight:400!important;box-sizing:border-box!important;
}
.o5-body .o5-page .o5-status::before{content:"";display:inline-block;width:0;height:0;border-left:8px solid #fff;border-top:5px solid transparent;border-bottom:5px solid transparent;margin-right:6px;vertical-align:1px}
.o5-body .o5-page .o5-status.live,.o5-body .o5-page .o5-status.wait{background:#1f3a5f!important;color:#fff!important}

/* 新闻 / 录像 / 词条 */
.o5-body .o5-newslist{padding:0 14px!important}
.o5-body .o5-newsitem{border-bottom:1px solid rgba(31,45,61,.10)!important;padding:14px 0!important}
.o5-body .o5-newsitem:hover .o5-ntext h3{color:#1f3a5f}
.o5-body .o5-ntext h3{font-size:16px!important;font-weight:400!important;color:#1f2d3d!important}
.o5-body .o5-ntext p{color:#7b6a56!important}
.o5-body .o5-nthumb{border-radius:4px!important;background:#f1ddc2!important}
.o5-body .o5-videos{padding:14px!important;gap:16px!important}
.o5-body .o5-vthumb{border-radius:4px!important;background-color:#2a2a2a!important;background-image:none!important}
.o5-body .o5-vthumb::before{border-color:#fff!important;background-color:rgba(0,0,0,.35)!important}
.o5-body .o5-vthumb::after{border-left-color:#fff!important}
.o5-body .o5-video b{font-size:14px!important;color:#1f2d3d!important}
.o5-body .o5-video:hover b{color:#1f3a5f}
.o5-body .o5-video>span{color:#8a7458!important}
.o5-body .o5-tagbox{padding:14px!important;gap:10px!important}
.o5-body .o5-tag{border:1px solid #e8d2b4!important;border-radius:20px!important;color:#1f2d3d!important;background:#f7e6cd!important}
.o5-body .o5-tag:hover{background:#1f3a5f!important;border-color:#1f3a5f!important;color:#fff!important}

/* 分页 */
.o5-body .pagination li a,.o5-body .pagination li span{border-radius:6px!important;border:1px solid #e8d2b4!important;color:#1f2d3d!important;background:#f7e6cd!important}
.o5-body .pagination li.active a,.o5-body .pagination li.active span{background:#1f3a5f!important;border-color:#1f3a5f!important;color:#fff!important}
.o5-body .pagination li a:hover{border-color:#1f3a5f!important;color:#1f3a5f!important}

/* 详情 */
.o5-body .o5-detail .o5-detailhead{border-bottom:1px solid rgba(31,45,61,.10)!important;padding:18px 16px 12px!important}
.o5-body .o5-detail h1{font-size:24px!important;color:#1f2d3d!important;text-align:left!important}
.o5-body .o5-detailbody{background:transparent!important;padding:16px!important}
.o5-body .o5-detailbody p{color:#3f3a33!important}
.o5-body .o5-detailbody #stream-sources-mount a{border-radius:17px!important;background:#1f3a5f!important;border-color:#1f3a5f!important;color:#fff!important}
.o5-body .o5-chip{background:#f7e6cd!important;color:#5a4a38!important}

/* 旧结构兼容 */
body.o5-body .categorySwitch li.active a{color:#1f3a5f!important;border-color:#1f3a5f!important}
body.o5-body .showMatch .match_every .status a{background:#1f3a5f!important;border:0!important;color:#fff!important;border-radius:17px!important}
body.o5-body .showMatch .match_every .status.start a{background:#1f3a5f!important;border:0!important;color:#fff!important}
body.o5-body .newscolumn li article span{color:#1f2d3d!important}
body.o5-body .citiaolist ul li a:hover{background:#1f3a5f!important;border-color:#1f3a5f!important;color:#fff!important}

/* 页脚 */
body.o5-body .footer,body.o5-body .o5-footer{
  background:#e6ccaa!important;color:#5a4a38!important;margin-top:22px!important;
  padding:24px 0!important;font-size:12px!important;line-height:1.9!important;
}
body.o5-body .footer .content,body.o5-body .footer .w{width:1200px!important;max-width:100%!important;margin:0 auto!important;padding:0 12px!important;box-sizing:border-box!important}
body.o5-body .footer p{color:#5a4a38!important;margin:0!important;text-align:center!important}
body.o5-body .footer a{color:#1f3a5f!important}

/* 平板 */
@media screen and (max-width:1200px){
  .sq-wrap{width:100%;padding:0 12px}
  .sq-nav a{padding:0 13px;font-size:15px}
  .sq-logo b{font-size:22px}
  .sq-left{flex:0 0 200px;width:200px}
}
@media screen and (max-width:980px){
  .sq-clock{display:none}
  .sq-left{flex:0 0 180px;width:180px}
  .sq-team span{max-width:8em}
}

/* 手机 */
@media screen and (max-width:768px){
  .sq-wrap{padding:0 10px}
  .sq-header{height:auto}
  .sq-header .sq-wrap{flex-wrap:wrap;padding:7px 10px 0}
  .sq-logo{height:38px;width:100%}
  .sq-logo b{font-size:20px}
  .sq-nav{width:100%;height:42px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;flex-wrap:nowrap}
  .sq-nav a{padding:0 11px;font-size:13px;height:42px}
  .sq-clock{display:none}
  .sq-filterstrip{padding:8px 0 4px}
  .sq-filter{gap:8px}
  .sq-filter a{padding:5px 14px;font-size:13px}
  .sq-datebar{font-size:14px;min-height:48px;margin-top:8px;border-radius:6px 6px 0 0}
  .sq-datebar span{font-size:12px}
  .sq-row{flex-wrap:wrap;min-height:0;padding:9px 8px;gap:5px 8px}
  .sq-left{flex:0 0 auto;width:auto;gap:6px}
  .sq-league-logo{width:20px;height:20px;max-width:20px;max-height:20px;flex:0 0 20px}
  .sq-lgname{font-size:12px;color:#5a4a38}
  .sq-time{font-size:12px;color:#8a7458}
  .sq-btn{flex:0 0 auto;width:auto;height:28px;font-size:12px;padding:0 10px;margin-left:auto;border-radius:14px}
  .sq-btn::before{border-left-width:7px;border-top-width:4px;border-bottom-width:4px}
  .sq-teams{flex:1 1 100%;order:3;justify-content:flex-start;gap:8px}
  .sq-team{font-size:13px;max-width:44%}
  .sq-team img{width:22px;height:22px;max-width:22px;max-height:22px;flex:0 0 22px}
  .sq-crest{width:22px;height:22px;flex:0 0 22px;font-size:10px}
  .sq-vs{font-size:12px}

  .o5-body .o5-page .o5-wrap{padding:8px 10px 10px!important}
  .o5-body .o5-page .o5-grid{grid-template-columns:1fr!important}
  .o5-body .o5-page .o5-sidehead,
  .o5-body .o5-page .o5-main>.o5-card>.o5-sidehead{font-size:17px!important;padding:10px 14px!important}
  .o5-body .o5-page .o5-dayhead{font-size:14px!important;min-height:46px!important;padding:8px!important}
  .o5-body .o5-page .o5-dayhead span{font-size:14px!important}
  .o5-body .o5-page .o5-match{flex-wrap:wrap!important;min-height:0!important;padding:9px 8px!important;gap:5px 8px!important}
  .o5-body .o5-page .o5-time{flex:0 0 auto!important;width:auto!important;font-size:12px!important;color:#8a7458!important}
  .o5-body .o5-page .o5-league{flex:0 1 auto!important;width:auto!important;font-size:12px!important;color:#5a4a38!important;max-width:45%!important}
  .o5-body .o5-page .o5-teams{flex:1 1 100%!important;order:3!important;justify-content:flex-start!important;gap:8px!important}
  .o5-body .o5-page .o5-team{font-size:13px!important;max-width:44%!important}
  .o5-body .o5-page .o5-team img.o5-logo-img{width:22px!important;height:22px!important;max-width:22px!important;max-height:22px!important;flex:0 0 22px!important}
  .o5-body .o5-page .o5-status{flex:0 0 auto!important;width:auto!important;min-width:0!important;height:28px!important;line-height:28px!important;font-size:12px!important;border-radius:14px!important;padding:0 10px!important}
  .o5-body .o5-newslist{padding:0 12px!important}
  .o5-body .o5-newsitem{display:block!important;padding:12px 0!important}
  .o5-body .o5-nthumb{width:100%!important;height:170px!important;margin-bottom:8px!important}
  .o5-body .o5-ntext h3{font-size:15px!important}
  .o5-body .o5-videos{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;padding:10px!important}
  .o5-body .o5-video b{font-size:13px!important}
  .o5-body .o5-tagbox{padding:10px!important;gap:8px!important}
  .o5-body .o5-tag{padding:6px 11px!important;font-size:12px!important}
  .o5-body .o5-detail .o5-detailhead{padding:12px!important}
  .o5-body .o5-detail h1{font-size:20px!important}
  .o5-body .o5-detailbody{padding:12px!important}
  body.o5-body .footer .content,body.o5-body .footer .w{padding:0 14px!important}
}

/* 当前菜单选中效果 */
body.o5-body .sq-nav a.on{background:#1f3a5f;color:#fff!important;border-bottom-color:#1f3a5f;font-weight:700}

/* 原模板内容页：修正 within 70% 导致的空白 */
.o5-body .outside .package .within{width:100%!important;max-width:100%!important;float:none!important}
.o5-body .outside .package .within .together{width:100%!important;max-width:100%!important}
.o5-body .outside .package .o5-side{width:100%!important;max-width:100%!important;float:none!important}
/* 首页补充板块 */
.sq-block{margin-top:26px}
.sq-blockhead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.sq-blockhead h2{margin:0;font-size:20px;font-weight:800;color:#1f2d3d;padding-left:10px;border-left:4px solid #1f3a5f;line-height:1.3}
.sq-blockhead span{font-size:13px;color:#8a7458}
.sq-blockhead a{font-size:13px;color:#8a7458}
.sq-more{display:block;text-align:center;margin:14px 0 0;padding:10px;border:1px solid #e8d2b4;border-radius:20px;color:#1f3a5f;font-size:14px;background:#f7e6cd}
.sq-more:hover{background:#1f3a5f;border-color:#1f3a5f;color:#fff}

.sq-news{display:grid;grid-template-columns:380px minmax(0,1fr);gap:16px}
.sq-feature{position:relative;display:block;height:240px;border-radius:6px;overflow:hidden;background:linear-gradient(135deg,#2b2b2b,#111)}
.sq-feature-pic{position:absolute;left:0;top:0;right:0;bottom:0;display:block}
.sq-feature-pic img{width:100%;height:100%;object-fit:cover;display:block}
.sq-feature b{position:absolute;left:0;right:0;bottom:0;padding:34px 12px 12px;background:linear-gradient(0deg,rgba(0,0,0,.82),rgba(0,0,0,0));color:#fff;font-size:16px;line-height:1.45;font-weight:700;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sq-news-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;min-width:0}
.sq-news-item{display:flex;gap:10px;background:#fff;border:1px solid #f0e0c8;border-radius:6px;padding:8px;min-width:0}
.sq-news-pic{flex:0 0 92px;width:92px;height:64px;border-radius:4px;overflow:hidden;background:#f1ddc2;display:block}
.sq-news-pic img{width:100%;height:100%;object-fit:cover;display:block}
.sq-news-txt{flex:1;min-width:0;font-size:14px;color:#1f2d3d;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sq-news-txt time{display:block;font-size:12px;color:#8a7458;margin-top:4px}
.sq-news-item:hover .sq-news-txt{color:#1f3a5f}

.sq-hotgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.sq-hotcard{position:relative;display:block;height:110px;border-radius:6px;overflow:hidden;background:linear-gradient(135deg,#2b2b2b,#111);background-size:cover;background-position:center;color:#fff}
.sq-hotcard::after{content:"";position:absolute;left:0;right:0;bottom:0;height:75%;background:linear-gradient(0deg,rgba(0,0,0,.82),rgba(0,0,0,0))}
.sq-hotlabel{position:absolute;left:8px;top:8px;z-index:2;background:#1f3a5f;color:#fff;font-size:11px;padding:2px 6px;border-radius:2px}
.sq-hotcard b{position:absolute;left:10px;right:10px;bottom:10px;z-index:2;font-size:14px;line-height:1.4;font-weight:700;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

.sq-teamcols{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.sq-teamcol{background:#fff;border:1px solid #f0e0c8;border-radius:6px;padding:12px;min-width:0}
.sq-teamcol h3{margin:0 0 10px;font-size:16px;color:#1f3a5f;font-weight:700}
.sq-teamtags{display:flex;flex-wrap:wrap;gap:8px}
.sq-teamtags a{font-size:13px;padding:5px 10px;border:1px solid #e8d2b4;border-radius:14px;color:#1f2d3d;background:#fff8ee;white-space:nowrap}
.sq-teamtags a:hover{background:#1f3a5f;border-color:#1f3a5f;color:#fff}

.sq-replay{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.sq-replaycard{display:block;min-width:0}
.sq-replay-thumb{position:relative;display:block;aspect-ratio:16/9;border-radius:6px;overflow:hidden;background:linear-gradient(135deg,#2b2b2b,#111);background-size:cover;background-position:center}
.sq-replay-thumb::before{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:36px;height:36px;border-radius:50%;border:2px solid #fff;background:rgba(0,0,0,.25)}
.sq-replay-thumb::after{content:"";position:absolute;left:calc(50% + 3px);top:50%;transform:translate(-50%,-50%);border-left:11px solid #fff;border-top:7px solid transparent;border-bottom:7px solid transparent}
.sq-replaycard b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:7px;font-size:13px;line-height:1.5;color:#1f2d3d;font-weight:400}
.sq-replaycard:hover b{color:#1f3a5f}

.sq-tags{display:flex;flex-wrap:wrap;gap:8px}
.sq-tag{font-size:13px;padding:6px 12px;border:1px solid #e8d2b4;border-radius:14px;color:#1f2d3d;background:#f7e6cd;white-space:nowrap}
.sq-tag:hover{background:#1f3a5f;border-color:#1f3a5f;color:#fff}

@media screen and (max-width:980px){
  .sq-news{grid-template-columns:1fr}
  .sq-feature{height:220px}
  .sq-hotgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sq-replay{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media screen and (max-width:768px){
  .sq-block{margin-top:18px}
  .sq-blockhead h2{font-size:17px}
  .sq-news-grid{grid-template-columns:1fr}
  .sq-feature{height:180px}
  .sq-feature b{font-size:14px;padding:26px 10px 10px}
  .sq-news-pic{flex:0 0 84px;width:84px;height:58px}
  .sq-news-txt{font-size:13px}
  .sq-hotcard{height:96px}
  .sq-hotcard b{font-size:13px}
  .sq-teamcols{grid-template-columns:1fr}
  .sq-replay{gap:10px}
  .sq-replaycard b{font-size:12px}
  .sq-tag{font-size:12px;padding:5px 10px}
}