/* ========== 基础重置 ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #fff;
    background: #060b19 url("../image/bg.png") no-repeat center top;
    background-size: cover;
    background-attachment: fixed;
    line-height: 1.4;
}

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

button {
    font-family: inherit;
    border: 0;
    background: none;
    cursor: pointer;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
    border: 0;
}

ul,
ol {
    list-style: none;
}

/* ========== 布局 ========== */
.page {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wrap {
    width: 1360px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
    padding: 28px 0 36px;
    flex: 1;
}

/* 玻璃拟态通用面板 */
.panel {
    background: rgba(8, 18, 42, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(90, 170, 255, 0.08);
}

.panel__hd {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px 10px;
    background: linear-gradient(180deg, rgba(18, 62, 78, 0.98) 0%, rgba(8, 36, 50, 0.95) 100%);
    border-bottom: 1px solid rgba(90, 200, 170, 0.22);
}

.panel__hd h2 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #b8ff4a;
    text-shadow: 0 0 12px rgba(184, 255, 74, 0.35);
}

.panel__icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* ========== 顶部 Hero ========== */
.hero {
    display: flex;
    align-items: flex-start;
}

.banner {
    width: 100%;
    min-width: 0;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 2140 / 600;
    box-shadow: 0 0 0 1px rgba(80, 190, 255, 0.35), 0 10px 36px rgba(0, 40, 120, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(80, 220, 255, 0.55), 0 14px 40px rgba(0, 60, 160, 0.5);
}

/* ========== 中部三栏 ========== */
.main {
    display: flex;
    align-items: stretch;
    gap: 16px;
    margin-top: 16px;
    min-height: 430px;
}

.match-board {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.match-board .panel__hd {
    border-radius: 12px 12px 0 0;
}

.match-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0 8px;
}

.match-list::-webkit-scrollbar {
    width: 4px;
}

.match-list::-webkit-scrollbar-thumb {
    background: rgba(80, 200, 140, 0.45);
    border-radius: 4px;
}

.match-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.86);
    transition: background 0.2s ease;
}

.match-row:hover {
    background: rgba(80, 180, 255, 0.12);
}

.match-row__league {
    flex-shrink: 0;
    min-width: 42px;
    padding: 2px 6px;
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    color: #fff;
    background: rgba(70, 190, 110, 0.55);
}

.match-row__teams {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 焦点比赛 */
.focus-board {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(6, 22, 36, 0.72);
}

.focus-board .tabs {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 12px 20px 10px;
    background: linear-gradient(180deg, rgba(18, 62, 78, 0.98) 0%, rgba(8, 36, 50, 0.95) 100%);
    border-bottom: 1px solid rgba(90, 200, 170, 0.22);
}

.tabs__item {
    position: relative;
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    padding: 4px 0 8px;
    transition: color 0.2s ease;
}

.tabs__item:hover {
    color: rgba(255, 255, 255, 0.9);
}

.tabs__item.is-active {
    color: #3dff78;
    text-shadow: 0 0 12px rgba(61, 255, 120, 0.45);
}

.tabs__item.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #2ee86a, #7dff9e);
    box-shadow: 0 0 8px rgba(61, 255, 120, 0.7);
}

.tab-panels {
    flex: 1;
    padding: 12px;
    background: rgba(4, 16, 28, 0.35);
}

.tab-panel {
    display: none;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.tab-panel.is-active {
    display: flex;
}

.match-card {
    position: relative;
    flex: 1;
    padding: 16px 20px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

.match-card--top {
    background-image: url("../image/team_top_bg.png");
}

.match-card--bot {
    background-image: url("../image/team_botm_bg.png");
}

.match-card__badge {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 58px;
    height: auto;
    z-index: 2;
}

.match-card__time {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 8px;
}

.match-card__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.team__logo {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(90, 170, 255, 0.45) 0%, rgba(10, 20, 50, 0.2) 70%);
    box-shadow: 0 0 18px rgba(70, 160, 255, 0.35);
}

.team__logo img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.team__name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.match-card__mid {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.match-card__vs {
    width: 78px;
    height: 78px;
    object-fit: contain;
}

.match-card__league {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.odds {
    min-width: 92px;
    height: 36px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #f5d76e;
    background: rgba(12, 18, 32, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.odds:hover {
    transform: scale(1.05);
    filter: brightness(1.08);
}

/* 右侧栏 */
.side-board {
    width: 330px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.saishi {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease;
}

.saishi img {
    width: 100%;
    height: auto;
}

.saishi:hover {
    transform: translateY(-2px);
}

.news-board .panel__hd {
    border-radius: 12px 12px 0 0;
}

.news-list {
    flex: 1;
    padding: 4px 0 8px;
}

.news-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    font-size: 12px;
    line-height: 1.55;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease;
}

.news-item:last-child {
    border-bottom: 0;
}

.news-item:hover {
    background: rgba(80, 180, 255, 0.1);
}

.news-item__title {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
}

.news-item__more {
    flex-shrink: 0;
    color: #b8ff4a;
    font-size: 12px;
    padding-top: 1px;
}

/* ========== 底部四宫格 ========== */
.promo {
    display: flex;
    gap: 14px;
    margin-top: 16px;
}

.promo__item {
    flex: 1;
    min-width: 0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.promo__item img {
    width: 100%;
    height: auto;
    display: block;
}

.promo__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* ========== 页脚 ========== */
.footer {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(4, 10, 28, 0.88);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
}

.footer a:hover {
    color: #fff;
}

.footer__split {
    color: rgba(255, 255, 255, 0.28);
}

/* ========== 悬浮客服 ========== */
.kefu {
    position: fixed;
    right: 18px;
    bottom: 72px;
    z-index: 100;
    width: 180px;
    transition: transform 0.25s ease;
}

.kefu img {
    width: 100%;
    height: auto;
}

.kefu:hover {
    transform: translateY(-4px) scale(1.03);
}

/* ========== 专家分析浮动窗 ========== */
.expert {
    position: fixed;
    z-index: 180;
    left: 40px;
    top: 80px;
    width: 270px;
    height: 220px;
    background: url("../image/fx_bg.png") no-repeat center / 100% 100%;
    padding: 56px 34px 36px;
    cursor: pointer;
    user-select: none;
    filter: drop-shadow(0 10px 18px rgba(0, 40, 120, 0.45));
}

.expert__inner {
    height: 100%;
    overflow: hidden;
    color: #1a3a6e;
    font-size: 12px;
    line-height: 1.7;
    font-weight: 600;
    text-align: justify;
}

.expert__inner .zhuanjia {
    margin: 0;
}

/* ========== 响应式 ========== */
@media (max-width: 1400px) {
    .wrap {
        width: 100%;
    }

    .banner {
        height: auto;
        aspect-ratio: 2140 / 600;
    }

    .match-board {
        width: 230px;
    }

    .side-board {
        width: 280px;
    }
}

@media (max-width: 960px) {
    .hero,
    .main,
    .promo {
        flex-wrap: wrap;
    }

    .banner,
    .match-board,
    .focus-board,
    .side-board,
    .promo__item {
        width: 100%;
        flex: none;
    }

    .banner {
        height: auto;
        aspect-ratio: 2140 / 600;
    }

    .main {
        min-height: 0;
    }

    .match-board {
        max-height: 320px;
    }

    .kefu {
        width: 140px;
        right: 10px;
        bottom: 56px;
    }
}
