* {
    box-sizing: border-box;
}

html, body {
    margin:0;
    background:#eef5ff;
    color:#1e293b;
    font-family:
        "PingFang SC",
        "Microsoft YaHei",
        sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 顶部Tab */
.tabs {
    display: flex;
    width: 100%;
    margin: 0;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,83,187,.08);
}

.tab {
    flex:1;
    text-align:center;
    padding:16px 0;
    color:#334155;
    font-weight:700;
    text-decoration:none;
    background:#ffffff;
    transition:.2s;
}

.tab.active {
    color:#0057d9;
    background:#f4f8ff;
    border-bottom:3px solid #1d6fff;
}

/* 页面主体 */
.page {
    min-height: 100vh;
    background: #ffffff;
    padding-bottom: 24px;
}

/* 顶部Banner */
.top-banner-wrap {
    background:linear-gradient(
        135deg,
        #0b5cff 0%,
        #3b82f6 100%
    );

    color:#ffffff;;
}

/* 轮播 */
.carousel {
    position: relative;
    width: 100%;
    height: 200px;
    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:#fff;
    border-radius:20px;
    padding:20px;
    margin-bottom:22px;
    box-shadow:0 4px 18px rgba(37,99,235,.08);
    border:1px solid #dbeafe;
    overflow:hidden;
}

.match-main {
    font-size:22px;
    font-weight:700;
    text-align:center;
    margin-bottom:12px;
    line-height:1.5;
}

.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:#f4a000;
    font-weight:700;
}

.match-time {
    font-size:17px;
    color:#64748b;
    text-align:center;
    margin-bottom:18px;
}

/* 今日赛程 / 历史竞猜文案 */
.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: normal;
}

.match-desc:empty {
    display: none;
}

.empty {
    background:#ffffff;
    border-radius:16px;
    padding:30px;
    text-align:center;
    color:#64748b;
}

@media (max-width: 600px) {
    .tab {
        font-size: 15px;
        padding: 14px 2px;
    }

    .carousel {
        height: 200px;
    }

    .carousel.small {
        height: 82px;
    }

    .match-main {
        font-size: 16px;
    }

    .flag-img {
    width:28px;
    height:20px;
    object-fit:cover;
    border-radius:3px;
    vertical-align:middle;
    }
}
/* 悬浮广告 */
.float-ad {
    position: fixed;
    right: 18px;
    bottom: 90px;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    animation: floatPulse 2s infinite;
}

.float-ad img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes floatPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}
.match-card .carousel.small .carousel-item{
    border-radius:0;
}
@media (max-width: 390px) {
    .match-card {
        padding: 14px;
        margin-bottom: 16px;
        border-radius: 16px;
    }

    .match-main {
        font-size: 16px;
        gap: 4px;
    }

    .flag-img {
        width: 20px;
        height: 14px;
    }

    .match-time {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .match-desc {
        font-size: 13px;
    }
    .float-ad {
        width: 56px;
        height: 56px;
        right: 12px;
        bottom: 70px;
    }
}
.top-banner-wrap .carousel img{
    object-fit:cover;
    object-position:center;
}
/* 比赛卡片底部广告 */
.match-card .carousel.small{
    margin:18px 0 0 0;
    width:100%;
    height:160px;
    border-radius:14px;
    overflow:hidden;
    box-shadow:none;
    border:none;
    background:#fff;
}

.match-card .carousel.small .carousel-track,
.match-card .carousel.small .carousel-slide,
.match-card .carousel.small .carousel-link{
    height:100%;
}

.match-card .carousel.small img{
    width:100%;
    height:100%;
    object-fit:fill;
    display:block;
}

@media (max-width:390px){
    .match-card .carousel.small{
        width:100%;
        height:120px;
        margin:16px 0 0 0;
        border-radius:12px;
    }
}
.match-desc * {
    max-width: 100% !important;
    box-sizing: border-box;
}

.match-desc p {
    margin: 0;
}

.match-desc br {
    display: none;
}
.score-box{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:4px 12px;
    border-radius:12px;
    background:#eef5ff;
    color:#0057d9;
    font-size:24px;
    font-weight:800;
}

.score-colon{
    color:#64748b;
}

.score-status{
    text-align:center;
    font-size:13px;
    color:#1677ff;
    font-weight:600;
    margin-top:-4px;
    margin-bottom:8px;
}
.match-desc.collapsed {
    display: none;
}

.desc-toggle {
    width: 100%;
    margin: 12px 0;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: #eef5ff;
    color: #0057d9;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.match-status.finished{
    text-align:center;
    color:#ff4d4f;
    font-size:15px;
    font-weight:700;
    margin-top:-8px;
    margin-bottom:12px;
}