﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: #0056b3;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}
nav {
    margin:0 auto;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s;
}

nav a:hover {
    color: #ffc107;
}

.hero {
    background: url('https://placeholder.com/1920x600') no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 8rem 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
}

section {
    padding: 3rem 0;
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #0056b3;
    font-size: 2rem;
}

.about {
    background: #f8f9fa;
    padding: 3rem 0;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-section {
    background: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about-section h3 {
    color: #0056b3;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 0.5rem;
}

.about-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.organization-list {
    list-style: none;
    padding: 0;
}

.organization-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.organization-list li::before {
    content: "•";
    color: #0056b3;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1.2;
}

.competition-list {
    list-style: none;
    padding: 0;
}

.competition-list > li {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.competition-list > li::before {
    content: "▸";
    color: #0056b3;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.competition-list ul {
    margin-left: 2rem;
    margin-top: 0.5rem;
    list-style: disc;
}

.competition-list ul li {
    margin-bottom: 0.5rem;
}

.event-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.event-item {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.event-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.event-item h3 {
    color: #0056b3;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.event-item p {
    margin-bottom: 1rem;
}

.event-item ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.btn {
    display: inline-block;
    background: #0056b3;
    color: #fff;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
    margin-top: 1rem;
}

.btn:hover {
    background: #004085;
}

.rules {
    background: #f8f9fa;
}

.schedule {
    padding: 3rem 0;
    background: #fff;
}

.schedule-table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.schedule-header {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    background: #0056b3;
    color: #fff;
    padding: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.schedule-item {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-item:hover {
    background: #f8f9fa;
}

.schedule-date {
    font-weight: bold;
    color: #0056b3;
}

.schedule-event {
    color: #333;
}

.schedule-location {
    color: #666;
}

@media (max-width: 768px) {
    .schedule-header,
    .schedule-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: left;
    }
}

.past-events {
    background: #f8f9fa;
    padding: 3rem 0;
}

.carousel {
    overflow: hidden;
    position: relative;
    margin-top: 2rem;
}

.carousel-track {
    display: flex;
    animation: scroll 20s linear infinite;
    gap: 2rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.carousel-item {
    min-width: 300px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.carousel-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.carousel-item p {
    padding: 1rem;
    font-weight: bold;
    color: #333;
}

.news-photo-section {
    margin-bottom: 3rem;
}

.news-photo-section h3 {
    color: #0056b3;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 0.5rem;
}

.photo-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* 调整首页赛事动态样式，确保一行显示4条 */
.news .photo-news-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 1200px) {
    .news .photo-news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .news .photo-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .news .photo-news-grid {
        grid-template-columns: 1fr;
    }
}

.photo-news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.photo-news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.photo-news-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.photo-news-item h4 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: #0056b3;
    margin: 0;
    font-size: 1.2rem;
}

.photo-news-item p {
    padding: 0 1.5rem 1.5rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.news-notice-download {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.news-column {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-column h3 {
    color: #0056b3;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 0.5rem;
}

.news-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.news-item h4 {
    color: #007bff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.news-item p {
    color: #666;
    font-size: 0.95rem;
}

.news-item a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
}

.news-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 地方选拔赛日程样式 */
.local-schedule {
    padding: 3rem 0;
    background: #f8f9fa;
}

.local-schedule .container {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

/* 页面标题样式 */
.page-header {
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 新闻列表页样式 */
.news-list {
    padding: 3rem 0;
    background: #f8f9fa;
}

.news-wrapper {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* 左侧新闻内容 */
.news-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 统一新闻栏目样式 */
.news-section {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-section h3 {
    color: #0056b3;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 0.5rem;
}

/* 统一新闻列表样式 */
.news-list-unified {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 统一新闻项样式 */
.news-item-unified {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item-unified:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 统一日期/类型标签样式 */
.news-date {
    width: 100px;
    background: #0056b3;
    color: #fff;
    padding: 0.5rem;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
    align-self: flex-start;
    flex-shrink: 0;
}

/* 统一新闻内容样式 */
.news-item-content {
    flex: 1;
}

.news-item-content h4 {
    margin: 0 0 0.5rem;
    color: #0056b3;
    font-size: 1.2rem;
}

.news-item-content h4 a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.3s;
}

.news-item-content h4 a:hover {
    color: #007bff;
    text-decoration: underline;
}

.news-item-content p {
    margin: 0 0 1rem;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 下载按钮样式 */
.download-btn {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
    font-size: 0.9rem;
}

.download-btn:hover {
    background: #0056b3;
}

/* 右侧侧边栏 */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-section h3 {
    color: #0056b3;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 0.5rem;
}

/* 新闻分类 */
.news-categories {
    list-style: none;
    padding: 0;
}

.news-categories li {
    margin-bottom: 1rem;
}

.news-categories a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.news-categories a:hover {
    color: #007bff;
    padding-left: 0.5rem;
}

/* 热门新闻 */
.hot-news {
    list-style: none;
    padding: 0;
}

.hot-news li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.hot-news li::before {
    content: "▸";
    color: #0056b3;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.hot-news a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.hot-news a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* 联系方式 */
.contact-info p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* 激活导航项 */
nav a.active {
    color: #0056b3;
    font-weight: bold;
}

nav a.active::after {
    width: 100%;
    background: #0056b3;
}

/* 分页样式 */
.pagination {
    margin-top: 2rem;
    text-align: center;
}

.pagination-list {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination-item {
    margin: 0;
}

.pagination-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #fff;
    color: #0056b3;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination-link:hover {
    background: #f8f9fa;
    border-color: #0056b3;
}

.pagination-link.active {
    background: #0056b3;
    color: #fff;
    border-color: #0056b3;
}

.pagination-link.disabled {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #ddd;
    cursor: not-allowed;
}

.pagination-link.disabled:hover {
    background: #f8f9fa;
    border-color: #ddd;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .news-wrapper {
        grid-template-columns: 2fr 1fr;
    }
}

@media (max-width: 768px) {
    .news-wrapper {
        grid-template-columns: 1fr;
    }
    
    .notice-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .notice-date {
        width: 100%;
    }
    
    .download-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .download-btn {
        align-self: flex-start;
    }
}

.contact {
    background: #f8f9fa;
}

/* 新闻详情页样式 */
.news-detail {
    padding: 3rem 0;
    background: #f8f9fa;
}

.news-detail-wrapper {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    align-items: start;
}

.news-detail-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-article h3 {
    color: #0056b3;
    margin-bottom: 1rem;
    font-size: 2rem;
    line-height: 1.3;
}

.news-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    color: #666;
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.news-date,
.news-category {
    display: flex;
    align-items: center;
}

.news-image {
    margin-bottom: 2rem;
    text-align: center;
}

.news-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-text {
    line-height: 1.8;
    color: #333;
}

.news-text p {
    margin-bottom: 1.5rem;
}

.news-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.prev-news a,
.next-news a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.3s;
}

.prev-news a:hover,
.next-news a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .news-detail-wrapper {
        grid-template-columns: 2fr 1fr;
    }
}

@media (max-width: 768px) {
    .news-detail-wrapper {
        grid-template-columns: 1fr;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .news-navigation {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

.event-detail {
    background: #f8f9fa;
    padding: 3rem 0;
}

.event-detail .container {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.detail-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.detail-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 水平时间线样式 */
.timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 2rem 0;
    overflow-x: auto;
    gap: 1rem;
    flex-wrap: nowrap;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    background: #0056b3;
    border-radius: 2px;
    transform: translateY(-50%);
    z-index: 0;
}

.timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 180px;
    z-index: 1;
}

.timeline-date {
    width: 3rem;
    height: 3rem;
    background: #0056b3;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    margin-bottom: 1rem;
    z-index: 2;
}

.timeline-content {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    width: 100%;
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.timeline-content h4 {
    color: #0056b3;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.timeline-content p {
    color: #666;
    margin: 0;
    font-size: 1.2rem;
}

/* 响应式水平时间线 */
@media (max-width: 1200px) {
    .timeline {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .timeline-item {
        flex: 0 0 auto;
        width: 200px;
    }
}

@media (max-width: 768px) {
    .timeline {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 2rem;
        overflow-x: visible;
    }
    
    .timeline::before {
        left: 1rem;
        top: 0;
        bottom: 0;
        width: 4px;
        transform: none;
    }
    
    .timeline-item {
        flex-direction: row;
        align-items: flex-start;
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .timeline-date {
        margin-right: 1rem;
        margin-bottom: 0;
    }
    
    .timeline-content {
        text-align: left;
    }
}

.organization-sidebar {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: static;
}

.organization-sidebar h3 {
    color: #0056b3;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 0.5rem;
}

.sidebar-content {
    padding: 0;
}

.sub-event {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.detail-main {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    align-items: start;
}

.schedule-section {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.schedule-section h3 {
    color: #0056b3;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 0.5rem;
}

@media (max-width: 992px) {
    .detail-main {
        grid-template-columns: 1fr;
    }
    
    .organization-sidebar {
        order: -1;
    }
}

.sub-event h3 {
    color: #0056b3;
    margin-bottom: 1rem;
}

.sub-event h4 {
    color: #007bff;
    margin: 1.5rem 0 1rem;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .sub-event {
        padding: 1.5rem;
    }
}