*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;font-size:15px;line-height:1.7;color:#333;background:#f5f6fa}
img{max-width:100%;border:0;vertical-align:middle}
a{color:inherit;text-decoration:none;transition:color .2s}
a:hover{color:#e63946}
ul,ol{list-style:none}
input,button,textarea{font-family:inherit;outline:none;border:none}
button{cursor:pointer}

/* ---------- 容器 ---------- */
.wrap{max-width:1200px;margin:0 auto;padding:0 15px}

/* ============================================
   顶部导航
   ============================================ */
.topbar{background:#0d1b2a;color:#cdd5e0;position:sticky;top:0;z-index:1000;box-shadow:0 2px 10px rgba(0,0,0,.3)}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;height:60px;max-width:1200px;margin:0 auto;padding:0 15px}
.logo{display:flex;align-items:center;gap:6px;font-weight:bold;font-size:22px;color:#fff;text-decoration:none;}
.logo span{color:#e63946}

/* 新增：右侧容器，导航+搜索放一起 */
.topbar-right{
    display:flex;
    align-items:center;
    gap:8px;
}
.nav{display:flex;align-items:center;gap:5px}
.nav a{color:#cdd5e0;padding:8px 14px;font-size:15px;border-radius:4px;position:relative}
.nav a:hover,.nav a.on{color:#fff;background:rgba(255,255,255,.08)}
.nav a.on::after{content:"";position:absolute;left:14px;right:14px;bottom:2px;height:2px;background:#e63946}
.nav a .live-dot{display:inline-block;width:7px;height:7px;background:#e63946;border-radius:50%;margin-right:5px;animation:pulse 1.5s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.3}}

/* 汉堡按钮（手机端） */
.menu-btn{display:none;width:40px;height:40px;background:transparent;color:#fff;font-size:22px;align-items:center;justify-content:center;border-radius:4px}

/* ========== 搜索按钮 + CSS放大镜 ========== */
.search-btn{
    width:40px;height:40px;display:flex;align-items:center;justify-content:center;
    color:#cdd5e0;border-radius:4px;
    cursor:pointer;transition:0.2s;
    position:relative;
}
.search-btn:hover{
    color:#fff;background:rgba(255,255,255,.08);
}
.search-icon{
    width:18px;
    height:18px;
    border:2px solid currentColor;
    border-radius:50%;
    position:relative;
}
.search-icon::after{
    content:'';
    position:absolute;
    width:8px;
    height:2px;
    background:currentColor;
    right:-7px;
    bottom:-4px;
    transform:rotate(45deg);
}

/* 搜索遮罩+弹窗 */
.search-mask{
    position:fixed;inset:0;background:rgba(0,0,0,0.6);z-index:2000;display:none;align-items:center;justify-content:center;
}
.search-box{
    background:#fff;padding:24px;border-radius:8px;width:min(92%,520px);
}
.search-tab{
    display:flex;
    margin-bottom:16px;
    border-bottom:1px solid #eee;
}
.search-tab > div{
    flex:1; /* 两个平分宽度 */
    text-align:center;
}
.search-tab label{
    display:block;
    padding:8px 16px;
    cursor:pointer;
    color:#666;
    border-bottom:2px solid transparent;
}
.search-tab input{display:none;}
.search-tab input:checked+label{
    color:#e63946;
    border-color:#e63946;
}
.search-form{display:flex;
    gap:8px;
    align-items:stretch;}
.search-form input[type="text"]{
    flex:1;padding:10px 14px;border:1px solid #ddd;border-radius:4px;outline:none;
}
.search-form button{
    width:100px;
    height:44px;
    border:none;
    background:#e63946;
    color:#fff;
    border-radius:4px;
    cursor:pointer;
    font-size:15px;
    line-height:1.2;
    padding:4px 6px;
    white-space:normal;
    text-align:center;
}
.search-close{
    position:absolute;top:-12px;right:-12px;width:34px;height:34px;border-radius:50%;background:#222;color:#fff;
    border:none;font-size:18px;cursor:pointer;
}
.search-wrap{position:relative;}


/* 移动端适配 */
@media (max-width:768px) {
    .menu-btn{display:flex;}
    .nav{
        position:absolute;top:60px;left:0;right:0;background:#0d1b2a;flex-direction:column;
        align-items:flex-start;padding:15px;gap:2px;display:none;
    }
    .nav.show{display:flex;}
    .nav a{width:100%;padding:12px 15px;}
    /* 移动端：汉堡按钮在右侧 */
    .topbar-right{gap:0;}
}

.search-item a:hover{
    color:#e63946;
}
.search-title h2{
    font-size:18px;
    font-weight:600;
    margin-bottom:15px;
}
/* 手机端自适应，自动换行 */
@media (max-width:768px){
    .search-item{
        flex-direction:column;
        align-items:flex-start;
        padding:12px 0;
    }
    .search-info{
        width:100%;
    }
}


/* ============================================
   Hero区 - 今日比赛
   ============================================ */
.hero{background:linear-gradient(135deg,#0d1b2a 0%,#1b2d4a 100%);padding:30px 0;color:#fff}
.hero-title{font-size:20px;font-weight:700;margin-bottom:20px;display:flex;align-items:center;gap:10px}
.hero-title .tag{background:#e63946;color:#fff;font-size:12px;padding:2px 8px;border-radius:3px;font-weight:400}

.game-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:15px}
.game-card{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:10px;padding:18px;transition:transform .2s,background .2s}
.game-card:hover{transform:translateY(-2px);background:rgba(255,255,255,.1);border-color:#e63946}
.game-time{font-size:13px;color:#a0aec0;margin-bottom:12px;display:flex;justify-content:space-between;align-items:center}
.status-live{background:#e63946;color:#fff;padding:2px 8px;border-radius:3px;font-size:11px;font-weight:600;animation:pulse 1.5s infinite}
.status-soon{background:#f4a261;color:#000;padding:2px 8px;border-radius:3px;font-size:11px}
.status-end{background:#4a5568;color:#cbd5e0;padding:2px 8px;border-radius:3px;font-size:11px}
.team-match{display:flex;align-items:center;justify-content:space-between;margin:10px 0}
.team{display:flex;flex-direction:column;align-items:center;gap:6px;flex:1}
.team-logo{width:48px;height:48px;border-radius:50%;background:#e63946;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px}
.team-name{font-size:13px;color:#cbd5e0}
.score{font-size:22px;font-weight:800;color:#fff;min-width:30px;text-align:center}
.vs{font-size:14px;color:#718096;font-weight:600}
.game-link{display:block;text-align:center;margin-top:12px;padding:8px;background:#e63946;color:#fff;border-radius:5px;font-size:13px;font-weight:600}
.game-link:hover{background:#c1121f;color:#fff}
.game-no-line{
    background:#999;
    cursor:not-allowed;
}


.live-list{gap:12px;display:flex;flex-direction:column;}
.live-item{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;background:#fff;border-radius:8px;gap:16px;flex-wrap:wrap;}
.live-time{width:140px;}
.live-team{flex:1;display:flex;align-items:center;gap:12px;}
.live-team .vs{color:#888;padding:0 8px;}
.live-btn{padding:6px 14px;background:#2563eb;color:#fff;border-radius:4px;white-space:nowrap;}
.team1{display:flex;flex-direction:column;align-items:center;gap:6px;flex:1}
.team1-logo{width:48px;height:48px;border-radius:50%;background:#e63946;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px;color:#fff}
.team1-name{font-size:13px;color:#000;}

@media (max-width:768px) {
    .live-item {
        padding:12px;
        gap:10px;
        align-items:flex-start;
    }
    .live-time {
        width:100%;
        font-size:14px;
    }
    .live-team {
        width:100%;
        flex:unset;
        justify-content:center;
    }
    .live-btn {
        width:100%;
        text-align:center;
    }
    .team1-logo {
        width:40px;
        height:40px;
    }
    .team1-name {
        font-size:12px;
    }
}


.live-day-title{
    width:100%;
    padding:10px 12px;
    font-size:16px;
    font-weight:bold;
    color:#222;
    background:#f4f7ff;
    border-radius:6px;
    margin:10px 0 6px;
}

.live-line-list{display:flex;flex-wrap:wrap;gap:10px;padding:0;margin:0;list-style:none;}
.line-btn{display:inline-block;padding:8px 16px;background:#2563eb;color:#fff;border-radius:6px;}
.line-btn:hover{background:#1d4ed8;}

.match-head-card .team-logo img{
    width:50px;
    height:50px;
    object-fit:contain;
}
@media (max-width:768px){
    .match-head-card{
        flex-direction:column;
        gap:14px !important;
    }
    .match-head-card > div.team-item,
    .match-head-card > div.match-center{
        width:100% !important;
        justify-content:center !important;
        text-align:center !important;
    }
    .team-name{
        font-size:16px !important;
    }
}

/* ============================================
   主体布局
   ============================================ */
.main{padding:30px 0}
.main-grid{display:grid;grid-template-columns:1fr 320px;gap:25px}

/* 区块标题 */
.section{margin-bottom:30px}
.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;padding-bottom:10px;border-bottom:2px solid #e2e8f0}
.section-title{font-size:18px;font-weight:700;color:#0d1b2a;padding-left:12px;border-left:4px solid #e63946}
.section-more{font-size:13px;color:#718096}
.section-more:hover{color:#e63946}

/* 资讯卡片 */
.news-list .news-item{display:flex;gap:15px;padding:15px 0;border-bottom:1px solid #edf0f5}
.news-list .news-item:last-child{border-bottom:0}
.news-thumb{width:200px;height:120px;flex-shrink:0;border-radius:6px;overflow:hidden;background:#e2e8f0}
.news-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.news-item:hover .news-thumb img{transform:scale(1.05)}
.news-info{flex:1;display:flex;flex-direction:column;justify-content:space-between;min-width:0}
.news-info h3{font-size:16px;font-weight:600;line-height:1.4;color:#1a202c;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.news-info h3 a:hover{color:#e63946}
.news-meta{font-size:12px;color:#a0aec0;margin-top:8px;display:flex;gap:15px}
.news-desc{font-size:13px;color:#718096;margin-top:6px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  
  
.section-more-btn{
    display:inline-block;
    padding:10px 26px;
    background:#e63946;
    color:#fff;
    text-decoration:none;
    border-radius:4px;
}
.section-more-btn:hover{
    background:#d03838;
}

/* 录像卡片网格 */
.video-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}
.video-card{background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.06);transition:transform .2s,box-shadow .2s}
.video-card:hover{transform:translateY(-3px);box-shadow:0 6px 18px rgba(0,0,0,.1)}
.video-thumb{position:relative;aspect-ratio:16/9;background:#000}
.video-thumb img{width:100%;height:100%;object-fit:cover}
.video-duration{position:absolute;right:8px;bottom:8px;background:rgba(0,0,0,.75);color:#fff;font-size:11px;padding:2px 6px;border-radius:3px}
.video-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:48px;height:48px;background:rgba(230,57,70,.9);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:18px;transition:transform .2s}
.video-card:hover .video-play{transform:translate(-50%,-50%) scale(1.1)}
.video-info{padding:12px}
.video-info h4{font-size:14px;font-weight:600;line-height:1.4;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.video-info .meta{font-size:12px;color:#a0aec0;margin-top:6px}

/* ============================================
   侧边栏
   ============================================ */
.sidebar{display:flex;flex-direction:column;gap:20px}
.side-box{background:#fff;border-radius:8px;padding:18px;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.side-title{font-size:15px;font-weight:700;color:#0d1b2a;margin-bottom:15px;padding-bottom:10px;border-bottom:2px solid #e63946;display:inline-block}
.rank-list li{display:flex;align-items:center;padding:8px 0;border-bottom:1px dashed #edf0f5;font-size:13px}
.rank-list li:last-child{border-bottom:0}
.rank-num{width:22px;height:22px;background:#e2e8f0;color:#4a5568;border-radius:4px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:12px;margin-right:10px;flex-shrink:0}
.rank-list li:nth-child(1) .rank-num{background:#e63946;color:#fff}
.rank-list li:nth-child(2) .rank-num{background:#f4a261;color:#fff}
.rank-list li:nth-child(3) .rank-num{background:#e9c46a;color:#fff}
.rank-list .rank-title{flex:1;color:#2d3748;
  display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.rank-list .rank-title:hover{color:#e63946}

.tag-cloud{display:flex;flex-wrap:wrap;gap:8px}
.tag-cloud a{background:#f5f6fa;color:#4a5568;padding:4px 10px;border-radius:4px;font-size:12px}
.tag-cloud a:hover{background:#e63946;color:#fff}

/* ============================================
   内容页（资讯详情）
   ============================================ */
.article{background:#fff;border-radius:8px;padding:30px;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.breadcrumb{font-size:12px;color:#a0aec0;margin-bottom:20px}
.breadcrumb a{color:#718096}
.article h1{font-size:26px;line-height:1.4;color:#0d1b2a;margin-bottom:15px;font-weight:700}
.article-meta{display:flex;gap:20px;font-size:13px;color:#a0aec0;padding-bottom:20px;border-bottom:1px solid #edf0f5;margin-bottom:20px}
.article-content{font-size:16px;line-height:1.9;color:#2d3748}
.article-content p{margin-bottom:18px}
.article-content img{border-radius:6px;margin:15px auto;display:block}
.article-content h2{font-size:20px;margin:25px 0 15px;color:#0d1b2a;border-left:4px solid #e63946;padding-left:12px}
.article-tags{margin-top:30px;padding-top:20px;border-top:1px solid #edf0f5}

/* 播放器页 */
.player-box{background:#000;border-radius:8px;overflow:hidden;aspect-ratio:16/9;margin-bottom:20px}
.player-box iframe,.player-box video{width:100%;height:100%;border:0}
.playlist{background:#fff;border-radius:8px;padding:18px}
.playlist h3{font-size:16px;margin-bottom:15px;color:#0d1b2a}
.playlist-item{display:flex;gap:12px;padding:10px;border-bottom:1px solid #edf0f5;cursor:pointer}
.playlist-item:hover{background:#f9fafb}
.playlist-item.active{background:#fff5f5}
.playlist-item .thumb{width:120px;height:68px;flex-shrink:0;border-radius:4px;overflow:hidden;background:#e2e8f0}
.playlist-item .info{flex:1;font-size:13px;display:flex;flex-direction:column;justify-content:center}

/* ============================================
   分页
   ============================================ */
.pagination{display:flex;justify-content:center;gap:6px;margin-top:30px;flex-wrap:wrap}
.pagination a,.pagination span{padding:8px 14px;background:#fff;border:1px solid #e2e8f0;border-radius:4px;font-size:14px;color:#4a5568}
.pagination .this-page{background:#e63946;color:#fff;border-color:#e63946}
.pagination a:hover{background:#edf2f7;color:#e63946}

.pagination{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:20px 0;color:#666;font-size:15px;}
.pagination a{padding:6px 12px;border:1px solid #ddd;border-radius:4px;color:#333;text-decoration:none;}
.pagination a:hover{border-color:#2563eb;color:#2563eb;}
.pagination .disabled{padding:6px 12px;border:1px solid #eee;border-radius:4px;color:#bbb;background:#f8f8f8;cursor:not-allowed;}
.pagination select{padding:5px 8px;border:1px solid #ddd;border-radius:4px;}

/* ============================================
   底部
   ============================================ */
.footer{background:#0d1b2a;color:#8a96a8;padding:40px 0 20px;margin-top:50px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:30px;margin-bottom:30px}
.footer h4{color:#fff;font-size:15px;margin-bottom:15px}
.footer ul li{margin-bottom:8px;font-size:13px}
.footer a{color:#8a96a8}
.footer a:hover{color:#fff}
.footer-desc{font-size:13px;line-height:1.8}
.copyright{border-top:1px solid rgba(255,255,255,.1);padding-top:20px;text-align:center;font-size:12px;color:#5a6878}

/* ============================================
   移动端适配
   ============================================ */
@media (max-width:768px){
  .nav{position:fixed;top:60px;left:-100%;width:100%;max-width:280px;height:calc(100vh - 60px);
    background:#0d1b2a;flex-direction:column;align-items:stretch;padding:15px;gap:0;
    transition:left .3s;box-shadow:2px 0 10px rgba(0,0,0,.3)}
  .nav.open{left:0}
  .nav a{padding:14px 15px;border-radius:0;border-bottom:1px solid rgba(255,255,255,.05)}
  .nav a.on::after{display:none}
  .menu-btn{display:flex}

  .hero{padding:20px 0}
  .hero-title{font-size:17px}
  .game-row{grid-template-columns:1fr}

  .main-grid{grid-template-columns:1fr;gap:20px}
  .news-list .news-item{flex-direction:column}
  .news-thumb{width:100%;height:180px}
  .video-grid{grid-template-columns:1fr}

  .article{padding:18px}
  .article h1{font-size:20px}
  .article-content{font-size:15px}

  .footer-grid{grid-template-columns:1fr 1fr;gap:20px}
}

@media (max-width:480px){
  .logo{font-size:18px}
  .video-grid{grid-template-columns:1fr}
  .news-thumb{height:160px}
  .footer-grid{grid-template-columns:1fr}
}
