/* ========== 基础重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f2f5f9;
    color: #1e2a3a;
    font-size: 14px;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
.clearfix::after { content: ""; display: table; clear: both; }
.fl { float: left; }
.fr { float: right; }

/* ========== 布局容器 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========== 顶部 ========== */
.header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo a {
    font-size: 22px;
    font-weight: 800;
    color: #1a3a5c;
    letter-spacing: 1px;
}
.logo a span { color: #e74c3c; }
.nav { display: flex; gap: 4px; }
.nav > li { position: relative; }
.nav > li > a {
    display: block;
    padding: 0 14px;
    line-height: 64px;
    font-size: 15px;
    color: #2c3e50;
    font-weight: 500;
    transition: color .2s;
}
.nav > li > a:hover,
.nav > li.active > a {
    color: #e74c3c;
}
/* 二级菜单 */
.sub-nav {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 140px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    border-radius: 0 0 6px 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all .2s;
    z-index: 50;
}
.nav > li:hover .sub-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.sub-nav li a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: #34495e;
    border-bottom: 1px solid #f0f4f8;
}
.sub-nav li:last-child a { border-bottom: none; }
.sub-nav li a:hover { background: #f7fafd; color: #e74c3c; }

/* ========== 主内容区 ========== */
.content { padding: 24px 0 40px; }

/* 顶部轮播 + 侧边小图 */
.slider-wrap {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    margin-bottom: 28px;
}
.swiper-box {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    height: 365px;
}
.swiper-box img {
    width: 100%;
    height: 365px;
    object-fit: cover;
    opacity: 0.92;
}
.swiper-box .slide-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 20px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}
.swiper-box .dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.swiper-box .dots span {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
}
.swiper-box .dots span.on { background: #fff; }

.side-pics { display: flex; flex-direction: column; gap: 12px; }
.side-pic {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 113px;
    background: #000;
}
.side-pic img {
    width: 100%;
    height: 113px;
    object-fit: cover;
    opacity: 0.9;
}
.side-pic .cap {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 20px 12px 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 主栏 + 侧栏 */
.layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
}

/* 板块标题 */
.box-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8eef5;
}
.box-title h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a3a5c;
    position: relative;
    padding-left: 12px;
}
.box-title h2::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 18px;
    background: #e74c3c;
    border-radius: 2px;
}
.box-title .more {
    font-size: 13px;
    color: #8fa4b8;
}
.box-title .more:hover { color: #e74c3c; }

/* 精彩推荐卡片 */
.recommend {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 36px;
}
.rec-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform .2s, box-shadow .2s;
}
.rec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.rec-card img { width: 100%; height: 160px; object-fit: cover; }
.rec-card .body { padding: 14px; }
.rec-card h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 8px;
    color: #1e2a3a;
    height: 45px;
    overflow: hidden;
}
.rec-card .desc {
    font-size: 13px;
    color: #7a8fa6;
    line-height: 1.6;
    height: 42px;
    overflow: hidden;
    margin-bottom: 10px;
}
.rec-card .meta {
    font-size: 12px;
    color: #a8b8c8;
    display: flex;
    gap: 12px;
}

/* ========== 赛程预告 ========== */
.preview-schedule {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
}

/* 单个预告卡片 */
.preview-card {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform .2s, box-shadow .2s;
}
.preview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

/* 左侧日期块 */
.preview-date {
    width: 86px;
    flex-shrink: 0;
    background: #eef4fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
    color: #1a3a5c;
}
.preview-date .pd-day {
    font-size: 13px;
    font-weight: 600;
    color: #5b7fa6;
    letter-spacing: 1px;
}
.preview-date .pd-num {
    font-size: 17px;
    font-weight: 800;
    margin-top: 4px;
    color: #1a3a5c;
}

/* ===== 日期块五种颜色 _1 ~ _5 ===== */

/* _1 今天 —— 红色 */
.preview-card._1 .preview-date {
    background: linear-gradient(135deg, #e74c3c, #ff6b5b);
}
.preview-card._1 .preview-date .pd-day,
.preview-card._1 .preview-date .pd-num {
    color: #fff;
}

/* _2 明天 —— 橙色 */
.preview-card._2 .preview-date {
    background: linear-gradient(135deg, #f39c12, #ffb84d);
}
.preview-card._2 .preview-date .pd-day,
.preview-card._2 .preview-date .pd-num {
    color: #fff;
}

/* _3 后天 —— 蓝色 */
.preview-card._3 .preview-date {
    background: linear-gradient(135deg, #2980b9, #5dade2);
}
.preview-card._3 .preview-date .pd-day,
.preview-card._3 .preview-date .pd-num {
    color: #fff;
}

/* _4 周三 —— 紫色 */
.preview-card._4 .preview-date {
    background: linear-gradient(135deg, #8e44ad, #b07cc6);
}
.preview-card._4 .preview-date .pd-day,
.preview-card._4 .preview-date .pd-num {
    color: #fff;
}

/* _5 周六总决赛 —— 绿色 */
.preview-card._5 .preview-date {
    background: linear-gradient(135deg, #27ae60, #52d689);
}
.preview-card._5 .preview-date .pd-day,
.preview-card._5 .preview-date .pd-num {
    color: #fff;
}

/* 右侧比赛列表 */
.preview-games {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6px 18px;
}
.pg-row {
    display: flex;
    align-items: center;
    padding: 7px 0;
    font-size: 14px;
    border-bottom: 1px dashed #eef3f8;
}
.pg-row:last-child { border-bottom: none; }

.pg-time {
    width: 52px;
    flex-shrink: 0;
    color: #8fa4b8;
    font-size: 13px;
}
.pg-team {
    flex: 1;
    text-align: center;
    font-weight: 600;
    color: #1e2a3a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pg-vs {
    padding: 0 10px;
    color: #c8d4e0;
    font-size: 12px;
    flex-shrink: 0;
}

/* 状态 */
.pg-status {
    width: 56px;
    text-align: right;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
}
.pg-status.live { color: #e74c3c; }
.pg-status.live::before {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #e74c3c;
    margin-right: 3px;
    vertical-align: middle;
    animation: blink 1s infinite;
}
.pg-status.soon { color: #e67e22; }
.pg-status.tbd  { color: #8fa4b8; }

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ========== 侧栏 ========== */
.aside .widget {
    background: #fff;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.aside .widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a3a5c;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 2px solid #e8eef5;
    position: relative;
    padding-left: 12px;
}
.aside .widget-title::before {
    content: "";
    position: absolute;
    left: 0; top: 3px;
    width: 4px; height: 16px;
    background: #e74c3c;
    border-radius: 2px;
}
/* 热门文章 */
.hot-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed #eef3f8;
    font-size: 14px;
}
.hot-list li:last-child { border-bottom: none; }
.hot-list .num {
    width: 20px; height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    background: #eef3f8;
    color: #8fa4b8;
    flex-shrink: 0;
}
.hot-list li:nth-child(1) .num { background: #e74c3c; color: #fff; }
.hot-list li:nth-child(2) .num { background: #f39c12; color: #fff; }
.hot-list li:nth-child(3) .num { background: #f1c40f; color: #fff; }
.hot-list a {
    flex: 1;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hot-list a:hover { color: #e74c3c; }

/* ========== 侧栏：近期赛程 ========== */
.schedule-list li {
    display: flex;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px dashed #eef3f8;
    font-size: 13px;
}
.schedule-list li:last-child { border-bottom: none; }
.schedule-list .date {
    width: 54px;
    flex-shrink: 0;
    color: #8fa4b8;
    font-size: 12px;
}
.schedule-list .match {
    flex: 1;
    text-align: center;
    color: #1e2a3a;
    font-weight: 500;
}
.schedule-list .match .vs {
    color: #b8c8d8;
    font-weight: 400;
    padding: 0 6px;
    font-size: 12px;
}
.schedule-list .time {
    width: 52px;
    text-align: right;
    flex-shrink: 0;
    color: #e67e22;
    font-size: 12px;
}
.schedule-list .time.done { color: #27ae60; }

/* 标签 */
.tag {
    display: inline-block;
    background: #eef4fa;
    color: #5b7fa6;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 3px;
}
.tag:hover { background: #e74c3c; color: #fff; }

/* ========== 底部 ========== */
.footer {
    background: #1a2b3c;
    color: #8fa4b8;
    padding: 36px 0 24px;
    margin-top: 40px;
    font-size: 13px;
}
.footer .cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1.6fr;
    gap: 40px;
}
.footer h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 14px;
    font-weight: 600;
}
.footer p, .footer li { line-height: 2; }
.footer a { color: #8fa4b8; }
.footer a:hover { color: #fff; }
.footer .copyright {
    text-align: center;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #2c3e50;
    font-size: 12px;
    color: #5b7fa6;
}

/* ========== 响应式 ========== */
@media (max-width: 1000px) {
    .slider-wrap { grid-template-columns: 1fr; }
    .side-pics { flex-direction: row; }
    .side-pic { flex: 1; height: 90px; }
    .side-pic img { height: 90px; }
    .layout { grid-template-columns: 1fr; }
    .recommend { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .header .container { flex-direction: column; height: auto; padding: 12px 15px; }
    .nav { flex-wrap: wrap; justify-content: center; }
    .nav > li > a { line-height: 40px; padding: 0 10px; font-size: 14px; }
    .recommend { grid-template-columns: 1fr; }
    .footer .cols { grid-template-columns: 1fr; gap: 24px; }
    /* 赛程预告移动端 */
    .preview-card { flex-direction: column; }
    .preview-date {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        padding: 10px 16px;
    }
    .preview-date .pd-num { margin-top: 0; }
    .pg-team { text-align: left; }
}