* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    color: #222;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 顶部Tab */
.tabs {
    display: flex;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 20;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.tab {
    flex: 1;
    text-align: center;
    padding: 15px 4px;
    font-size: 16px;
    font-weight: bold;
    color: #4a4a4a;
    background: linear-gradient(135deg, #f7fbff, #f4f0ff);
}

.tab.active {
    color: #0d47a1;
    background: linear-gradient(135deg, #dff3ff, #e8ddff);
    border-bottom: 3px solid #4a90e2;
}

/* 页面主体 */
.page {
    min-height: 100vh;
    background: #ffffff;
    padding-bottom: 24px;
}

/* 顶部Banner */
.top-banner-wrap {
    padding: 14px 12px 6px;
}

/* 轮播 */
.carousel {
    position: relative;
    width: 100%;
    height: 130px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid #dbe8ff;
    background: #f5f8ff;
}

.carousel.small {
    height: 92px;
    margin-top: 14px;
    border-radius: 12px;
}

.carousel-track {
    height: 100%;
    display: flex;
    transition: transform 0.35s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Banner图片文字 */
.banner-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 14px;
    color: #ffffff;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.05)
    );
}

.banner-text strong {
    display: block;
    font-size: 16px;
    line-height: 1.4;
}

.banner-text span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
}

/* 无图片占位 */
.banner-placeholder {
    width: 100%;
    height: 100%;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #123;
    background: linear-gradient(135deg, #eaf7ff, #f4ecff, #fff7df);
}

.banner-placeholder strong {
    font-size: 16px;
    margin-bottom: 6px;
}

.banner-placeholder span {
    font-size: 13px;
    color: #666;
}

.carousel.small .banner-placeholder strong {
    font-size: 14px;
}

.carousel.small .banner-placeholder span {
    font-size: 12px;
}

/* 轮播圆点 */
.carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.72);
    box-shadow: 0 0 2px rgba(0,0,0,0.25);
}

.carousel-dot.active {
    width: 14px;
    border-radius: 8px;
    background: #4a90e2;
}

/* 标题 */
.section-title {
    padding: 12px 14px 4px;
    font-size: 17px;
    font-weight: bold;
    color: #222;
}

/* 列表 */
.card-list {
    padding: 8px 12px 16px;
}

/* 赛程卡片 */
.match-card {
    background: #ffffff;
    border: 2px solid #d7e6ff;
    border-radius: 14px;
    padding: 15px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(30, 85, 160, 0.08);
}

.match-main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 17px;
    font-weight: bold;
}

.team {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.flag-img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid #eee;
    background: #fff;
}

.vs {
    color: #e59a00;
    font-weight: 900;
}

.match-time {
    margin-top: 8px;
    text-align: center;
    font-size: 15px;
    color: #555;
}

/* 今日赛程 / 历史竞猜文案 */
.match-desc {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e6eefc;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    text-align: left;
    white-space: pre-wrap;
}

.match-desc:empty {
    display: none;
}

.empty {
    margin: 20px 12px;
    padding: 24px 12px;
    text-align: center;
    color: #888;
    border: 1px dashed #ddd;
    border-radius: 12px;
    background: #fafafa;
}

@media (max-width: 600px) {
    .tab {
        font-size: 15px;
        padding: 14px 2px;
    }

    .carousel {
        height: 120px;
    }

    .carousel.small {
        height: 82px;
    }

    .match-main {
        font-size: 16px;
    }

    .flag-img {
        width: 22px;
        height: 16px;
    }
}