/* 内容页样式 */

/* 主内容布局 */
.main-content {
    padding: 40px 0 60px;
}

.content-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* 侧边栏 */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sidebar-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1a1a2e;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.category-list,
.filter-list,
.league-list {
    font-size: 14px;
}

.category-list li,
.filter-list li,
.league-list li {
    margin-bottom: 8px;
}

.category-list a,
.filter-list a,
.league-list a {
    display: block;
    padding: 10px 15px;
    border-radius: 4px;
    color: #666;
    transition: all 0.3s ease;
}

.category-list a:hover,
.filter-list a:hover,
.league-list a:hover {
    background: #f8f9fa;
    color: #667eea;
}

.category-list a.active,
.filter-list a.active {
    background: #667eea;
    color: #fff;
}

.hot-articles li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.hot-articles li:last-child {
    border-bottom: none;
}

.hot-articles a {
    display: block;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 5px;
}

.hot-articles a:hover {
    color: #667eea;
}

.article-views {
    font-size: 12px;
    color: #999;
}

/* 赛事列表 */
.event-list {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.list-header h2 {
    font-size: 24px;
    color: #1a1a2e;
}

.filter-select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.event-group {
    margin-bottom: 30px;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: #fff;
}

.group-title {
    font-size: 16px;
    font-weight: 500;
}

.group-count {
    font-size: 14px;
    opacity: 0.9;
}

.event-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.event-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.event-card.live {
    border-left: 4px solid #ff6b6b;
}

.event-card.upcoming {
    border-left: 4px solid #667eea;
}

.event-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.event-time {
    font-size: 14px;
    color: #666;
}

.event-main {
    margin-bottom: 15px;
}

.event-league {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.league-name {
    font-weight: 500;
    color: #667eea;
}

.event-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-items: center;
}

.team {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-logo {
    font-size: 32px;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-name {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a2e;
}

.team-score {
    font-size: 18px;
    font-weight: bold;
    color: #667eea;
}

.match-score {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

.event-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.event-views {
    font-size: 13px;
    color: #999;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.page-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
}

.page-link:hover:not(.disabled) {
    background: #667eea;
    color: #fff;
}

.page-link.active {
    background: #667eea;
    color: #fff;
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-ellipsis {
    padding: 0 5px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .sidebar-section {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .event-teams {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .event-main .match-score {
        display: none;
    }

    .list-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}
