/* 文章页面特定样式 */

/* 首页特定样式 */
.home-page-overflow-fix {
    overflow-x: hidden !important;
}

.home-page-main-container {
    margin-top: 20px;
}

.home-page-category-switcher-hidden {
    display: none;
}

.home-page-footer-links {
    margin-bottom: 20px;
}

.home-page-category-switcher {
    margin-bottom: 0;
    padding: 15px;
    background: #fff;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-bottom: none;
}

.home-page-switcher-buttons {
    display: flex;
    gap: 10px;
}

.home-page-switch-btn {
    padding: 8px 20px;
    border: 2px solid #e0e0e0;
    background: #fff;
    color: #333;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.home-page-switch-btn:hover {
    border-color: #0066cc;
    color: #0066cc;
}

.home-page-switch-btn.active {
    background: #0066cc;
    border-color: #0066cc;
    color: #fff;
}

.home-page-match-time {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    width: 180px;
}

.home-page-match-list {
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.home-page-match-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.home-page-match-time {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    width: 180px;
    font-size: 14px;
    color: #666;
}

.home-page-match-league {
    width: 150px;
    display: flex;
    align-items: center;
}

.home-page-league-logo {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.home-page-match-teams {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-page-home-team,
.home-page-away-team {
    display: flex;
    align-items: center;
    margin: 0 5px;
}

.home-page-home-team {
    flex-direction: row-reverse;
}

.home-page-team-logo {
    width: 32px;
    height: 32px;
    margin: 0 10px;
}

.home-page-team-name {
    font-size: 14px;
}

.home-page-vs {
    margin: 0 10px;
    font-weight: bold;
    color: #999;
}

.home-page-match-live {
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-page-live-link {
    display: inline-block;
    padding: 5px 15px;
    background: #ff6b6b;
    color: #fff;
    border-radius: 15px;
    font-size: 14px;
    text-decoration: none;
}

.home-page-live-link:hover {
    background: #ee5a52;
}

.home-page-basketball .home-page-live-link,
.home-page-match-item.home-page-basketball .home-page-live-link {
    background: #4ecdc4;
}

.home-page-basketball .home-page-live-link:hover,
.home-page-match-item.home-page-basketball .home-page-live-link:hover {
    background: #45b7aa;
}

.home-page-match-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.home-page-match-status:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 未开始状态 - 扫光特效 */
.home-page-match-status.not-started {
    background: #ffc107;
    color: #333;
}

.home-page-match-status.not-started::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: sweep 2s infinite;
}

@keyframes sweep {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

/* 比赛中状态 - 脉动+闪烁动态效果 */
.home-page-match-status.playing {
    background: #28a745;
    color: #fff;
    animation: playing-pulse 1.5s infinite, playing-flicker 0.5s infinite;
}

@keyframes playing-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
}

@keyframes playing-flicker {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

/* 已结束状态 - 暗色显示样式 */
.home-page-match-status.finished {
    background: #6c757d;
    color: #fff;
    filter: grayscale(30%);
    opacity: 0.85;
}

.home-page-match-status.finished:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.home-page-loading,
.home-page-error {
    text-align: center;
    padding: 50px;
    color: #999;
    font-size: 16px;
}

.home-page-no-matches {
    text-align: center;
    padding: 50px;
    color: #999;
    font-size: 16px;
}

.home-page-load-more-btn {
    padding: 10px 30px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.home-page-load-more-container {
    display: none;
    text-align: center;
    padding: 20px;
}

/* 首页移动端响应式 */
@media (max-width: 768px) {
    .home-page-category-switcher {
        padding: 10px;
    }
    .home-page-switcher-buttons {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    .home-page-switch-btn {
        padding: 6px 15px;
        font-size: 13px;
    }
    .home-page-match-item {
        flex-wrap: wrap;
        padding: 12px 10px;
    }
    .home-page-match-time {
        width: 100%;
        margin-bottom: 8px;
        font-size: 13px;
        text-align: center;
    }
    .home-page-match-league {
        width: 100%;
        margin-bottom: 10px;
        justify-content: center;
        font-size: 12px;
    }
    .home-page-match-teams {
        width: 100%;
        margin-bottom: 12px;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        flex-direction: row;
    }
    .home-page-match-teams > * {
        margin-bottom: 0;
    }
    .home-page-home-team,
    .home-page-away-team {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
        min-width: 0;
        padding: 4px 0;
    }
    .home-page-match-live {
        width: 100%;
        text-align: center;
    }
    .home-page-team-logo {
        width: 28px;
        height: 28px;
        margin: 0 6px;
        flex-shrink: 0;
    }
    .home-page-team-name {
        font-size: 12px;
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        word-break: break-word;
        text-align: center;
        line-height: 1.3;
        flex: 1;
        min-width: 0;
    }
    .home-page-vs {
        margin: 0 6px;
        font-size: 11px;
        font-weight: bold;
        flex-shrink: 0;
    }
    .home-page-live-link {
        padding: 10px 30px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .home-page-match-item {
        padding: 12px 8px;
    }
    .home-page-match-time {
        font-size: 12px;
    }
    .home-page-match-league {
        font-size: 15px;
    }
    .home-page-team-name {
        font-size: 12px;
    }
    .home-page-team-logo {
        width: 24px;
        height: 24px;
        margin: 0 4px;
    }
    .home-page-home-team,
    .home-page-away-team {
        padding: 2px 0;
    }
    .home-page-vs {
        font-size: 10px;
        margin: 0 4px;
    }
    .home-page-live-link {
        padding: 8px 25px;
        font-size: 13px;
    }
}

/* 比赛信息卡片 */
.match-info-card {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 50%, #d63031 100%);
    padding: 25px 30px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(214, 48, 49, 0.35);
    position: relative;
    overflow: hidden;
}

.match-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.match-info-card .league-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 8px;
}

.match-info-card .league-name {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.match-info-card .match-time-display {
    font-size: 24px;
    font-weight: 600;
    color: #ffebee;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.match-info-card .teams-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.match-info-card .team-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.match-info-card .team-logo-large {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    object-fit: contain;
}

.match-info-card .team-name-large {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.match-info-card .match-status {
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    min-width: 110px;
    white-space: nowrap;
}

.match-info-card .match-status.not-started {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #212121;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    font-weight: 700;
}

.match-info-card .match-status.playing {
    background: linear-gradient(135deg, #4caf50 0%, #43a047 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: pulse-vibrant 1.5s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.match-info-card .match-status.finished {
    background: linear-gradient(135deg, #78909c 0%, #607d8b 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    font-weight: 700;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes pulse-soft {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(165, 214, 167, 0.4);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 3px 8px rgba(165, 214, 167, 0.6);
    }
}

@keyframes pulse-vibrant {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    }
}

/* 比赛详情区域 */
.match-detail {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.match-detail h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.match-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.match-time {
    font-size: 16px;
    color: #666;
}

.match-league {
    display: flex;
    align-items: center;
}

.league-logo {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

/* 队伍详情 */
.match-teams-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.team {
    display: flex;
    align-items: center;
    margin: 0 30px;
}

.team-logo {
    width: 64px;
    height: 64px;
    margin: 0 20px;
}

.vs {
    font-size: 24px;
    font-weight: bold;
    color: #999;
    margin: 0 20px;
}

/* 直播信号区域 */
.live-section {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    text-align: center;
}

.live-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.live-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding-top: 15px;
}

/* 篮球直播按钮 */
.basketball .live-button {
    display: inline-block;
    padding: 10px 20px;
    background: #4ecdc4;
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
}

.basketball .live-button:hover {
    background: #45b7aa;
}

/* 足球直播按钮 */
.football .live-button {
    display: inline-block;
    padding: 10px 20px;
    background: #ff6b6b;
    color: #fff;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
}

.football .live-button:hover {
    background: #ee5a52;
}

/* 文章内容区域 */
.match-content {
    margin-bottom: 30px;
}

.match-content h3 {
    margin-bottom: 15px;
    color: #333;
}

.match-content p {
    line-height: 1.6;
    color: #666;
    margin-bottom: 10px;
}

/* 相关赛事区域 */
.related-matches {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.related-matches h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* 赛事项目样式 */
.match-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.match-time {
    width: 100px;
    font-size: 14px;
    color: #666;
}

.match-league {
    width: 150px;
    display: flex;
    align-items: center;
}

.league-logo {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.match-teams {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team {
    display: flex;
    align-items: center;
    margin: 0 20px;
}

.team-logo {
    width: 32px;
    height: 32px;
    margin: 0 10px;
}

.home-team {
    flex-direction: row-reverse;
}

.vs {
    margin: 0 10px;
    font-weight: bold;
    color: #999;
}

.match-live {
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-link {
    display: inline-block;
    padding: 3px 10px;
    background: #f0f0f0;
    color: #333;
    border-radius: 10px;
    font-size: 12px;
    text-decoration: none;
    margin-bottom: 5px;
}

.detail-link:hover {
    background: #e0e0e0;
}

.live-link {
    display: inline-block;
    padding: 5px 15px;
    color: #fff;
    border-radius: 15px;
    font-size: 14px;
    text-decoration: none;
}

.live-link.football {
    background: #ff6b6b;
}

.live-link.football:hover {
    background: #ee5a52;
}

.live-link.basketball {
    background: #4ecdc4;
}

.live-link.basketball:hover {
    background: #45b7aa;
}

.live-link.disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 无赛事提示 */
.no-match,
.no-matches {
    text-align: center;
    padding: 50px;
    color: #999;
    font-size: 16px;
}

/* 比赛信息卡片移动端响应式 - 保持与PC端一致的布局 */
@media (max-width: 768px) {
    .match-info-card {
        padding: 25px 20px;
    }

    .match-info-card .league-header {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 25px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .match-info-card .league-name {
        font-size: 20px;
        font-weight: 700;
        color: #ffffff;
        text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    
    .match-info-card .match-time-display {
        font-size: 20px;
        font-weight: 600;
        color: #ffebee;
        text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    }

    .match-info-card .teams-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }

    .match-info-card .team-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 1;
    }

    .match-info-card .team-logo-large {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.95);
        padding: 6px;
        margin-bottom: 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
        object-fit: contain;
    }

    .match-info-card .team-name-large {
        font-size: 18px;
        font-weight: 700;
        color: #ffffff;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    }

    .match-info-card .match-status {
        padding: 8px 18px;
        border-radius: 4px;
        font-size: 16px;
        font-weight: bold;
        min-width: 100px;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .match-info-card {
        padding: 20px 15px;
    }

    .match-info-card .league-name {
        font-size: 18px;
        font-weight: 700;
        color: #ffffff;
        text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    
    .match-info-card .match-time-display {
        font-size: 18px;
        font-weight: 600;
        color: #ffebee;
        text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    }

    .match-info-card .teams-container {
        gap: 10px;
    }

    .match-info-card .team-logo-large {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.95);
        padding: 5px;
        margin-bottom: 10px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
        object-fit: contain;
    }

    .match-info-card .team-name-large {
        font-size: 16px;
        font-weight: 700;
        color: #ffffff;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    }

    .match-info-card .match-status {
        font-size: 14px;
        padding: 6px 14px;
        min-width: 90px;
    }
}

@media (max-width: 375px) {
    .match-info-card {
        padding: 15px 12px;
    }

    .match-info-card .league-name {
        font-size: 16px;
        font-weight: 700;
        color: #ffffff;
        text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    
    .match-info-card .match-time-display {
        font-size: 16px;
        font-weight: 600;
        color: #ffebee;
        text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    }

    .match-info-card .teams-container {
        gap: 8px;
    }

    .match-info-card .team-logo-large {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.95);
        padding: 4px;
        margin-bottom: 8px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
        object-fit: contain;
    }

    .match-info-card .team-name-large {
        font-size: 14px;
        font-weight: 700;
        color: #ffffff;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    }

    .match-info-card .match-status {
        font-size: 13px;
        padding: 5px 12px;
        min-width: 80px;
    }
}

/* 响应式设计 - 移动端相关赛事样式与首页文章列表一致 */
@media (max-width: 768px) {
    .related-matches .match-item {
        display: flex;
        flex-direction: column;
        padding: 15px;
        background: #fff;
        border-radius: 6px;
        margin-bottom: 15px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }

    .related-matches .match-item:hover {
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        transform: translateY(-2px);
    }

    .related-matches .match-time {
        width: 100%;
        font-size: 12px;
        color: #828a92;
        margin-bottom: 8px;
    }

    .related-matches .match-league {
        width: 100%;
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }

    .related-matches .league-logo {
        width: 24px;
        height: 24px;
        margin-right: 8px;
    }

    .related-matches .match-teams {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 12px;
        padding: 10px 0;
        border-radius: 4px;
    }

    .related-matches .team {
        display: flex;
        align-items: center;
        margin: 0 15px;
    }

    .related-matches .team-logo {
        width: 28px;
        height: 28px;
        margin: 0 8px;
    }

    .related-matches .home-team {
        flex-direction: row-reverse;
    }

    .related-matches .vs {
        margin: 0 8px;
        font-weight: bold;
        color: #999;
        font-size: 12px;
    }

    .related-matches .match-live {
        width: 100%;
        text-align: center;
    }

    .related-matches .detail-link {
        display: inline-block;
        padding: 8px 24px;
        background: #0066cc;
        color: #fff;
        border-radius: 20px;
        font-size: 14px;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .related-matches .detail-link:hover {
        background: #0052a3;
        transform: scale(1.05);
    }

    .match-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .match-league {
        margin-top: 10px;
    }

    .match-teams-detail {
        flex-wrap: wrap;
    }

    .team {
        margin: 10px;
    }

    .related-match-item {
        flex-wrap: wrap;
    }

    .related-match-item > div {
        width: 100%;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .related-matches .match-item {
        padding: 12px;
    }

    .related-matches .match-teams {
        padding: 8px 0;
    }

    .related-matches .team {
        margin: 0 10px;
    }

    .related-matches .team-logo {
        width: 24px;
        height: 24px;
        margin: 0 6px;
    }

    .related-matches .detail-link {
        padding: 6px 20px;
        font-size: 13px;
    }
}