/* 响应式设计 */

/* 大屏幕 (1200px 以上) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* 中等屏幕 (992px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 小屏幕 (768px - 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .nav.active {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .nav ul li {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .boosters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .order-status {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* 超小屏幕 (576px - 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 10px;
    }
    
    .header .container {
        padding: 10px;
    }
    
    .logo a {
        font-size: 20px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .stats {
        padding: 40px 0;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    .games {
        padding: 40px 0;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .latest-orders {
        padding: 40px 0;
    }
    
    .order-item {
        padding: 15px;
    }
    
    .top-boosters {
        padding: 40px 0;
    }
    
    .boosters-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .table {
        font-size: 14px;
    }
    
    .table th,
    .table td {
        padding: 8px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

/* 极小屏幕 (575px 以下) */
@media (max-width: 575px) {
    .container {
        max-width: 100%;
        padding: 0 5px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .btn-large {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 30px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .game-icon {
        height: 120px;
    }
    
    .game-icon img {
        max-width: 60px;
        max-height: 60px;
    }
    
    .game-info {
        padding: 15px;
    }
    
    .game-info h3 {
        font-size: 16px;
    }
    
    .game-info p {
        font-size: 12px;
    }
    
    .booster-card {
        padding: 15px;
    }
    
    .booster-avatar img {
        width: 50px;
        height: 50px;
    }
    
    .booster-info h3 {
        font-size: 16px;
    }
    
    .booster-stats {
        font-size: 12px;
        gap: 10px;
    }
    
    .footer-section h3 {
        font-size: 16px;
    }
    
    .footer-section ul li {
        font-size: 14px;
    }
    
    .footer-section p {
        font-size: 14px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 14px;
    }
    
    .table {
        font-size: 12px;
    }
    
    .table th,
    .table td {
        padding: 6px;
    }
    
    .pagination a,
    .pagination span {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* 横屏手机 */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
    
    .btn-large {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* 高分辨率屏幕 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo a {
        font-weight: 300;
    }
    
    .btn {
        font-weight: 500;
    }
}

/* 打印样式 */
@media print {
    .header,
    .footer,
    .hero-buttons,
    .mobile-menu-toggle {
        display: none;
    }
    
    .hero {
        background: none;
        color: #000;
        padding: 20px 0;
    }
    
    .stats,
    .games,
    .latest-orders,
    .top-boosters {
        background: none;
        padding: 20px 0;
    }
    
    .game-card,
    .booster-card,
    .order-item {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .btn {
        background: none;
        color: #000;
        border: 1px solid #000;
    }
}