/* static/f1.css */
.f1-page {
    max-width: 100%;
}

.f1-header {
    text-align: center;
    margin-bottom: 30px;
}

.f1-title {
    font-size: 2.5em;
    color: #e10600;
    margin-bottom: 10px;
}

.f1-subtitle {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 30px;
}

/* 通用section样式 */
.f1-news-section,
.next-race-section,
.drivers-section,
.teams-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-badge {
    display: inline-block;
    background: #e10600;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 新闻列表样式 - 修复版 */
.news-list-minimal {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-item-minimal {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-item-minimal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    background: #fff;
}

/* 新闻类型颜色定义 */
.news-minimal-hot { border-left-color: #e74c3c; background: #fdedec; }
.news-minimal-rumor { border-left-color: #f39c12; background: #fef5e7; }
.news-minimal-tech { border-left-color: #7f8c8d; background: #f8f9f9; }
.news-minimal-interview { border-left-color: #2ecc71; background: #eafaf1; }
.news-minimal-rule { border-left-color: #3498db; background: #eaf2f8; }

.news-type-minimal {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 15px;
    white-space: nowrap;
    text-align: center;
    min-width: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-minimal-hot .news-type-minimal { background: #e74c3c; color: white; }
.news-minimal-rumor .news-type-minimal { background: #f39c12; color: white; }
.news-minimal-tech .news-type-minimal { background: #7f8c8d; color: white; }
.news-minimal-interview .news-type-minimal { background: #2ecc71; color: white; }
.news-minimal-rule .news-type-minimal { background: #3498db; color: white; }

.news-content-minimal {
    flex: 1;
    min-width: 0;
}

.news-title-minimal {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta-minimal {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.news-date-minimal {
    font-weight: 500;
    color: #95a5a6;
}

.news-author-minimal {
    color: #3498db;
    font-weight: 600;
}

/* 更多按钮样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.title-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.more-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #e10600;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(225, 6, 0, 0.3);
}

.more-button:hover {
    background: #c10500;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(225, 6, 0, 0.4);
}

/* 下一场比赛样式 */
.race-card-minimal {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    padding: 25px;
    border-left: 5px solid #e10600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.race-name-minimal {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.race-details-minimal {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    font-size: 1rem;
    color: #666;
}

.race-circuit-minimal {
    font-weight: 600;
    color: #e10600;
}

.race-date-minimal {
    color: #e10600;
    font-weight: 700;
}

.countdown-minimal {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 3px solid #e10600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #e10600;
    display: block;
    line-height: 1;
}

.countdown-label {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
}

/* 车手和车队列表样式 */
.drivers-list-minimal,
.teams-list-minimal {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.driver-item-minimal,
.team-item-minimal {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid #e10600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.driver-item-minimal:hover,
.team-item-minimal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    background: #fff;
}

.driver-position-minimal,
.team-position-minimal {
    background: #e10600;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-right: 15px;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.driver-info-minimal,
.team-info-minimal {
    flex: 1;
    min-width: 0;
}

.driver-name-minimal,
.team-name-minimal {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.driver-details-minimal,
.team-details-minimal {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.driver-points-minimal,
.team-points-minimal {
    color: #e10600;
    font-weight: 700;
    font-size: 1rem;
}

/* 新闻列表页样式 */
.f1-news-list-page {
    max-width: 100%;
}

.page-header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.page-title {
    font-size: 2.2rem;
    color: #e10600;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 25px;
}

.page-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.back-button:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.pagination-info {
    color: #666;
    font-size: 1rem;
    font-weight: 600;
}

.news-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 35px;
}

.news-list-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 5px solid;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.news-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    background: #fff;
}

.news-list-type {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-type-hot { border-left-color: #e74c3c; background: #fdedec; }
.news-type-rumor { border-left-color: #f39c12; background: #fef5e7; }
.news-type-tech { border-left-color: #7f8c8d; background: #f8f9f9; }
.news-type-interview { border-left-color: #2ecc71; background: #eafaf1; }
.news-type-rule { border-left-color: #3498db; background: #eaf2f8; }

.news-type-hot .news-list-type { background: #e74c3c; }
.news-type-rumor .news-list-type { background: #f39c12; }
.news-type-tech .news-list-type { background: #7f8c8d; }
.news-type-interview .news-list-type { background: #2ecc71; }
.news-type-rule .news-list-type { background: #3498db; }

.news-list-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-summary {
    font-size: 1rem;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-meta {
    display: flex;
    gap: 25px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.news-list-views {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pagination-button,
.pagination-number {
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
}

.pagination-button {
    background: #e10600;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(225, 6, 0, 0.3);
}

.pagination-button:hover {
    background: #c10500;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(225, 6, 0, 0.4);
}

.pagination-number {
    background: #f8f9fa;
    color: #333;
    min-width: 40px;
    text-align: center;
    border-color: #e9ecef;
}

.pagination-number:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.pagination-current {
    padding: 10px 16px;
    background: #e10600;
    color: white;
    border-radius: 8px;
    min-width: 40px;
    text-align: center;
    font-weight: 700;
    border: 2px solid #e10600;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .f1-title {
        font-size: 2rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .title-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .news-item-minimal,
    .driver-item-minimal,
    .team-item-minimal {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-type-minimal {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .driver-position-minimal,
    .team-position-minimal {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .race-details-minimal {
        flex-direction: column;
        gap: 8px;
    }

    .news-meta-minimal,
    .driver-details-minimal,
    .team-details-minimal,
    .news-list-meta {
        flex-direction: column;
        gap: 5px;
    }

    .news-title-minimal {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .page-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .pagination {
        gap: 8px;
    }

    .pagination-button,
    .pagination-number {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}