@charset "UTF-8";

/* ==================== 1. 全局与容器 ==================== */
.sports-portal-body {
    background-color: #f3f5f8;
    color: #1a202c;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    margin: 0;
    padding: 0;
}
.main-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* ==================== 2. 顶部即时比分滚动栏 ==================== */
.score-ticker-wrap {
    background: #0f172a;
    color: #fff;
    padding: 8px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #2563eb;
}
.ticker-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 15px;
}
.ticker-badge {
    background: #ef4444;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    margin-right: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.live-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: blink 1s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.ticker-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    white-space: nowrap;
}
.ticker-scroll::-webkit-scrollbar {
    display: none;
}
.ticker-item {
    color: #cbd5e1;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    gap: 8px;
}
.ticker-item:hover {
    color: #38bdf8;
}
.ticker-item em {
    color: #f59e0b;
    font-style: normal;
    font-weight: bold;
}
.ticker-item.is-live-match {
    color: #38bdf8;
}

/* ==================== 3. 1+2+N 杂志式首屏 ==================== */
.portal-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.4fr;
    gap: 16px;
    margin-bottom: 25px;
}
.hero-main-feature {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 380px;
}
.feature-big-card {
    display: block;
    height: 100%;
    position: relative;
}
.feature-big-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.feature-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    box-sizing: border-box;
}
.hero-cat-tag {
    background: #2563eb;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    width: fit-content;
    margin-bottom: 8px;
}
.hero-main-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    margin: 0 0 8px 0;
}
.hero-desc {
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.5;
    margin: 0 0 8px 0;
}
.hero-time {
    font-size: 12px;
    color: #94a3b8;
}

/* 次级双图 */
.hero-sub-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 380px;
}
.sub-feature-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    height: 183px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.sub-feature-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}
.thumb-box {
    position: relative;
    height: 110px;
    overflow: hidden;
}
.thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sub-cat-badge {
    position: absolute;
    bottom: 6px;
    left: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
}
.sub-info {
    padding: 8px 12px;
}
.sub-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sub-info time {
    font-size: 11px;
    color: #94a3b8;
}

/* 24H 极速快讯 */
.hero-flash-news {
    background: #fff;
    border-radius: 8px;
    padding: 14px 16px;
    height: 380px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.flash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.flash-heading {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.flash-pulse {
    font-size: 11px;
    color: #ef4444;
    background: #fee2e2;
    padding: 2px 6px;
    border-radius: 10px;
}
.flash-timeline {
    overflow-y: auto;
    flex: 1;
}
.timeline-item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed #f1f5f9;
    font-size: 13px;
}
.t-hour {
    color: #64748b;
    font-weight: 600;
    font-size: 12px;
}
.t-content a {
    color: #334155;
    text-decoration: none;
}
.t-content a:hover {
    color: #2563eb;
}

/* ==================== 4. 赛事大厅与侧边栏 ==================== */
.section-wrapper {
    margin-bottom: 30px;
}
.portal-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.title-with-pill {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pill-bar {
    width: 4px;
    height: 18px;
    background: #2563eb;
    border-radius: 2px;
}
.pill-bar.video-pill {
    background: #e11d48;
}
.title-text {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

/* 顶部 Tab 胶囊样式 */
.custom-filter-tabs {
    display: flex;
    gap: 6px;
    background: #e2e8f0;
    padding: 3px;
    border-radius: 20px;
}
.filter-tab-item {
    font-size: 12px;
    color: #475569;
    padding: 4px 14px;
    border-radius: 16px;
    cursor: pointer;
    transition: all .2s ease;
    user-select: none;
}
.filter-tab-item:hover {
    color: #0f172a;
}
.filter-tab-item.active {
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(37,99,235,0.3);
}

.match-dashboard-body {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 18px;
}

/* Tab 切换面板显示逻辑 */
.match-tab-panel {
    display: none;
}
.match-tab-panel.active {
    display: block;
    animation: fadeIn .25s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

.match-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.versus-card {
    background: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: transform .2s, box-shadow .2s, border-color .2s;
    box-sizing: border-box;
}
.versus-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    border-color: #cbd5e1;
}

.versus-card.is-live-active {
    border: 1px solid #ef4444;
    background: linear-gradient(180deg, #fff 0%, #fff9f9 100%);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.08);
}

.vs-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 12px;
}
.vs-league {
    color: #64748b;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vs-time {
    color: #334155;
    font-weight: 500;
}
.tag-live {
    color: #ef4444;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.live-dot-mini {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    animation: blink 1s infinite;
}
.tag-wait, .tag-end {
    color: #94a3b8;
}

.vs-arena {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.vs-club {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 35%;
}
.club-logo-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-sizing: border-box;
}
.club-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.club-name {
    display: block;
    font-size: 13px;
    color: #1e293b;
    margin-top: 6px;
    text-align: center;
    max-width: 105px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vs-score-board .score-num {
    font-size: 22px;
    font-weight: 800;
    color: #2563eb;
    letter-spacing: 1px;
}
.vs-actions {
    text-align: center;
}
.vs-btn-watch {
    display: block;
    background: #f8fafc;
    color: #2563eb;
    border: 1px solid #dbeafe;
    font-size: 12px;
    padding: 7px 0;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all .2s ease;
}
.vs-btn-watch:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* ==================== 5. 右侧侧边栏两卡片整合 ==================== */
.dashboard-side-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.league-standings-box {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
}
.standings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.standings-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.standings-sub {
    font-size: 12px;
    color: #64748b;
    text-decoration: none;
}
.standings-sub:hover {
    color: #2563eb;
}
.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: center;
}
.standings-table th {
    color: #64748b;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
}
.standings-table td {
    padding: 8px 0;
    border-bottom: 1px dashed #f1f5f9;
    color: #475569;
}
.standings-table .team-td {
    text-align: left;
    font-weight: 600;
    color: #1e293b;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rank-badge {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    background: #cbd5e1 !important;
    color: #1e293b !important;
}
.rank-badge.rank-1 { background: #ef4444 !important; color: #ffffff !important; }
.rank-badge.rank-2 { background: #f97316 !important; color: #ffffff !important; }
.rank-badge.rank-3 { background: #f59e0b !important; color: #ffffff !important; }
.pts-txt {
    color: #0f172a;
    font-weight: 700;
}

.sidebar-replay-box {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
}
.replay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.replay-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.replay-mini-tabs {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    padding: 2px;
    border-radius: 12px;
}
.replay-mini-tabs .r-tab {
    font-size: 11px;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: all .2s;
}
.replay-mini-tabs .r-tab:hover {
    color: #0f172a;
}
.replay-mini-tabs .r-tab.active {
    background: #2563eb;
    color: #fff;
    font-weight: 600;
}
.r-panel {
    display: none;
}
.r-panel.active {
    display: block;
    animation: fadeIn .2s ease;
}
.replay-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.replay-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px dashed #f1f5f9;
    font-size: 13px;
}
.replay-list li:last-child {
    border-bottom: none;
}
.replay-list a {
    color: #334155;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    max-width: 82%;
}
.replay-list a:hover .r-title {
    color: #2563eb;
}
.replay-list .r-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.replay-badge {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    color: #fff;
    white-space: nowrap;
}
.replay-badge.bg-fb {
    background: #059669;
}
.replay-badge.bg-bk {
    background: #d97706;
}
.replay-list time {
    font-size: 11px;
    color: #94a3b8;
}

/* ==================== 6. 新增：高清赛事视频专区 ==================== */
.portal-video-section {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
}
.video-tab-panel {
    display: none;
}
.video-tab-panel.active {
    display: block;
    animation: fadeIn .25s ease-in-out;
}
.video-grid-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.video-item-card {
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: transform .2s, box-shadow .2s;
}
.video-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
    border-color: #cbd5e1;
}
.video-thumb-wrap {
    display: block;
    position: relative;
    height: 140px;
    overflow: hidden;
}
.video-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.video-item-card:hover .video-thumb-wrap img {
    transform: scale(1.05);
}

/* 视频播放三角图标 (纯CSS实现) */
.play-btn-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}
.video-item-card:hover .play-btn-overlay {
    background: rgba(0, 0, 0, 0.45);
}
.play-icon-triangle {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
    transition: transform .2s ease;
}
.video-item-card:hover .play-icon-triangle {
    transform: scale(1.2);
}

.video-cat-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 11px;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 2;
}
.video-cat-badge.tag-fb {
    background: rgba(5, 150, 105, 0.9);
}
.video-cat-badge.tag-bk {
    background: rgba(217, 119, 6, 0.9);
}

.video-meta-box {
    padding: 10px 12px;
}
.video-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px 0;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.video-title a {
    color: #1e293b;
    text-decoration: none;
}
.video-title a:hover {
    color: #2563eb;
}
.video-sub-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
}

/* ==================== 7. 双轨垂直专栏 (左绿右橙) ==================== */
.dual-sports-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.dual-column {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.channel-bar {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.green-accent {
    background: #065f46;
    color: #fff;
}
.orange-accent {
    background: #9a3412;
    color: #fff;
}
.channel-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}
.channel-more {
    color: #e2e8f0;
    font-size: 12px;
    text-decoration: none;
}
.channel-content {
    padding: 14px;
}
.channel-lead-card {
    margin-bottom: 12px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    height: 140px;
}
.channel-lead-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.channel-lead-card .lead-text {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 70%);
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    box-sizing: border-box;
}
.channel-lead-card h3 {
    font-size: 14px;
    margin: 0;
    color: #fff;
}
.channel-lead-card p {
    font-size: 12px;
    color: #cbd5e1;
    margin-top: 4px;
}
.channel-text-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.channel-text-list li {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    font-size: 13px;
    border-bottom: 1px dashed #f1f5f9;
}
.channel-text-list a {
    color: #334155;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 80%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.channel-text-list a:hover {
    color: #2563eb;
}
.dot-bullet {
    width: 4px;
    height: 4px;
    background: #94a3b8;
    border-radius: 50%;
    display: inline-block;
}
.channel-text-list time {
    font-size: 12px;
    color: #94a3b8;
}

/* ==================== 8. 俱乐部与球员卡片矩阵 ==================== */
.trading-cards-container {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e2e8f0;
}
.cards-sub-row {
    margin-bottom: 16px;
}
.cards-sub-row:last-child {
    margin-bottom: 0;
}
.row-badge {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 10px;
    border-left: 3px solid #f59e0b;
    padding-left: 8px;
}
.cards-flex {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.trading-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px;
    text-decoration: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all .2s;
    box-sizing: border-box;
}
.trading-card:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.card-emblem img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}
.card-name {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    margin-top: 6px;
}
.player-photo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.player-detail .p-name {
    display: block;
    font-size: 12px;
    color: #0f172a;
    margin-top: 4px;
}
.player-detail .p-tag {
    font-size: 10px;
    color: #64748b;
    background: #e2e8f0;
    padding: 1px 4px;
    border-radius: 2px;
}

/* ==================== 9. 全站 SEO 拓扑词库 ==================== */
.seo-matrix-footer {
    background: #1e293b;
    color: #94a3b8;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 20px;
}
.matrix-title {
    font-size: 13px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 10px;
    display: block;
}
.matrix-links a {
    color: #94a3b8;
    font-size: 12px;
    margin-right: 12px;
    text-decoration: none;
    line-height: 2;
    display: inline-block;
}
.matrix-links a:hover {
    color: #38bdf8;
}
.matrix-tags a {
    display: inline-block;
    background: #334155;
    color: #e2e8f0;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    margin: 3px;
    text-decoration: none;
}
.matrix-tags a:hover {
    background: #2563eb;
    color: #fff;
}

/* ==================== 10. 响应式移动端适配 ==================== */
@media (max-width: 900px) {
    .portal-hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-sub-features, .hero-flash-news {
        height: auto;
    }
    .match-dashboard-body {
        grid-template-columns: 1fr;
    }
    .match-cards-grid {
        grid-template-columns: 1fr;
    }
    .video-grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }
    .dual-sports-block {
        grid-template-columns: 1fr;
    }
    .cards-flex {
        grid-template-columns: repeat(3, 1fr);
    }
    .seo-matrix-footer {
        grid-template-columns: 1fr;
    }
}