/* ========================================
   足球赛事情报网 - 响应式样式文件
   ======================================== */

/* 平板设备 (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .predictions-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
    
    .tactical-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* 平板设备 (768px 及以下) */
@media screen and (max-width: 768px) {
    /* 导航栏 */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition);
        gap: 0;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .login-btn,
    .register-btn {
        display: block;
        text-align: center;
        margin-top: 1rem;
    }
    
    /* Hero 区域 */
    .hero-section {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .date-display {
        position: relative;
        bottom: auto;
        right: auto;
        text-align: center;
        margin-top: 2rem;
    }
    
    /* 章节标题 */
    .section-title {
        font-size: 2rem;
    }
    
    /* 资讯模块 */
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-filter {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* 比赛分析模块 */
    .analysis-tabs {
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .match-teams {
        flex-direction: column;
        gap: 1rem;
    }
    
    .team {
        justify-content: center !important;
        text-align: center;
    }
    
    .team-home {
        flex-direction: column;
    }
    
    .team-away {
        flex-direction: column;
    }
    
    .match-score {
        padding: 1rem 0;
    }
    
    .match-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tactical-grid {
        grid-template-columns: 1fr;
    }
    
    /* 球队数据模块 */
    .stats-tabs {
        gap: 0.5rem;
    }
    
    .stats-tab {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .ranking-table {
        font-size: 0.85rem;
    }
    
    .ranking-table th,
    .ranking-table td {
        padding: 0.8rem 0.5rem;
    }
    
    .players-grid {
        grid-template-columns: 1fr;
    }
    
    /* 预测模块 */
    .prediction-intro {
        grid-template-columns: 1fr;
    }
    
    .predictions-grid {
        grid-template-columns: 1fr;
    }
    
    .prediction-match {
        flex-direction: column;
        gap: 1rem;
    }
    
    .odds-table {
        font-size: 0.85rem;
    }
    
    .odds-table th,
    .odds-table td {
        padding: 0.8rem 0.5rem;
    }
    
    /* 模态框 */
    .modal-content {
        margin: 1rem;
        padding: 2rem 1.5rem;
        max-width: calc(100% - 2rem);
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    /* 页脚 */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* 手机设备 (480px 及以下) */
@media screen and (max-width: 480px) {
    /* 导航栏 */
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-icon {
        font-size: 1.5rem;
    }
    
    /* Hero 区域 */
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* 章节 */
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* 资讯模块 */
    .news-category {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
    }
    
    /* 比赛分析 */
    .match-stat-label {
        font-size: 0.75rem;
    }
    
    .match-stat-value {
        font-size: 0.9rem;
    }
    
    /* 球队数据 */
    .ranking-table th,
    .ranking-table td {
        padding: 0.6rem 0.3rem;
    }
    
    .ranking-table {
        font-size: 0.75rem;
    }
    
    .player-avatar {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .player-name {
        font-size: 1.1rem;
    }
    
    .player-stats {
        grid-template-columns: 1fr;
    }
    
    /* 预测模块 */
    .intro-icon {
        font-size: 2.5rem;
    }
    
    .intro-card h3 {
        font-size: 1.2rem;
    }
    
    .intro-card p {
        font-size: 0.9rem;
    }
    
    .prediction-detail {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    /* 页脚 */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
}

/* 小屏手机设备 (360px 及以下) */
@media screen and (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .news-content {
        padding: 1rem;
    }
    
    .modal-content {
        padding: 1.5rem 1rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
}

/* 横屏模式 */
@media screen and (max-width: 896px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 高分辨率屏幕优化 */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .user-panel,
    .hero-buttons,
    .news-filter,
    .analysis-tabs,
    .stats-tabs,
    .load-more,
    .modal,
    .footer {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero-section {
        background: white;
        color: black;
        padding: 20px 0;
    }
    
    .news-card,
    .match-card,
    .player-card,
    .prediction-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* 动画和过渡优化 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 深色模式支持 (可选) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --bg-secondary: #2d2d2d;
        --text-primary: #e0e0e0;
        --text-secondary: #a0a0a0;
        --border-color: #404040;
    }
    
    .navbar {
        background: var(--bg-primary);
    }
    
    .modal-content {
        background: var(--bg-secondary);
    }
    
    .form-group input {
        background: var(--bg-primary);
        color: var(--text-primary);
    }
}