/* 体育新闻网站 - 主样式文件 */
/* 移动优先设计 - 响应式布局 */

/* ===== 全局重置和基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1E88E5;
    --primary-orange: #FF6F00;
    --dark-gray: #212121;
    --medium-gray: #616161;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);
    --gradient-secondary: linear-gradient(135deg, #FF6F00 0%, #F57C00 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.2);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.8;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ===== 容器和布局 ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-secondary);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ===== 头部导航 ===== */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--dark-gray);
    margin: 6px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-shadow: var(--shadow-md);
}

.nav-menu.active {
    display: flex;
}

.nav-link {
    padding: 16px 20px;
    color: var(--dark-gray);
    font-weight: 500;
    border-bottom: 1px solid var(--light-gray);
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: var(--light-gray);
    color: var(--primary-blue);
    padding-left: 28px;
}

/* ===== Hero横幅 ===== */
.hero-section {
    position: relative;
    height: 400px;
    background: var(--gradient-primary);
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(30,136,229,0.7), rgba(21,101,192,0.9));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 24px;
}

.hero-cta {
    display: inline-block;
    padding: 14px 32px;
    background: var(--gradient-secondary);
    color: var(--white);
    font-weight: 600;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== 面包屑导航 ===== */
.breadcrumb {
    padding: 16px 0;
    background: var(--light-gray);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    font-size: 0.875rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item::after {
    content: '›';
    color: var(--medium-gray);
}

.breadcrumb-item:last-child::after {
    content: '';
}

.breadcrumb-link {
    color: var(--primary-blue);
}

.breadcrumb-link:hover {
    text-decoration: underline;
}

/* ===== 卡片网格系统 ===== */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
}

.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 12px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-description {
    font-size: 0.9375rem;
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--medium-gray);
}

.card-link {
    color: var(--primary-blue);
    font-weight: 600;
}

.card-link:hover {
    text-decoration: underline;
}

/* ===== 数据展示模块 ===== */
.data-section {
    background: var(--light-gray);
}

.data-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.data-card {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-blue);
}

.data-label {
    font-size: 0.875rem;
    color: var(--medium-gray);
    margin-bottom: 8px;
}

.data-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* ===== 赛程模块 ===== */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.schedule-item {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
}

.schedule-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.schedule-info {
    flex: 1;
}

.schedule-teams {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 4px;
}

.schedule-time {
    font-size: 0.875rem;
    color: var(--medium-gray);
}

.schedule-status {
    padding: 6px 16px;
    background: var(--gradient-secondary);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
}

/* ===== FAQ模块 ===== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-gray);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--medium-gray);
    line-height: 1.8;
}

/* ===== 评论模块 ===== */
.review-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.review-card {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.review-author {
    font-weight: 600;
    color: var(--dark-gray);
}

.review-location {
    font-size: 0.875rem;
    color: var(--medium-gray);
}

.review-rating {
    display: flex;
    gap: 4px;
}

.star {
    color: var(--primary-orange);
    font-size: 1.125rem;
}

.review-content {
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: 12px;
}

.review-date {
    font-size: 0.875rem;
    color: var(--medium-gray);
}

/* ===== 页脚 ===== */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h3 {
    font-size: 1.125rem;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: rgba(255,255,255,0.8);
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-orange);
    padding-left: 8px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

.license-badge {
    width: 80px;
    height: 80px;
    margin: 16px auto;
}

/* ===== 响应式设计 ===== */
@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
    
    .nav-menu {
        display: flex;
        flex-direction: row;
        position: static;
        box-shadow: none;
        gap: 8px;
    }
    
    .nav-link {
        padding: 8px 16px;
        border: none;
        border-radius: 6px;
    }
    
    .nav-link:hover {
        padding-left: 16px;
        background: var(--light-gray);
    }
    
    .hero-section {
        height: 500px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .data-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .review-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        height: 600px;
    }
    
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .data-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
}

/* ===== 辅助类 ===== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hidden {
    display: none;
}

/* ===== 性能优化 ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
