/* Rail Europe 响应式样式 */

/* ===== 平板设备 ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .eurail-content,
    .wechat-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .wechat-content {
        text-align: center;
    }
    
    .section-header {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

/* ===== 移动设备 ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-lg) 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-cta {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-features {
        justify-content: center;
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .features h2,
    .testimonials h2 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .eurail-text h2,
    .wechat-info h2 {
        font-size: 2rem;
    }
    
    .routes-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .mini-program-features {
        grid-template-columns: 1fr;
    }
    
    /* Train tickets 页面响应式 */
    .types-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .service-items {
        grid-template-columns: 1fr;
    }
    
    .tips-row {
        grid-template-columns: 1fr;
    }
    
    .phone-mockup {
        width: 250px;
        height: 400px;
    }
}

/* ===== 小屏移动设备 ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .btn-large {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 16px;
    }
    
    .features,
    .popular-routes,
    .eurail-preview,
    .wechat-section,
    .testimonials,
    .train-types,
    .train-services {
        padding: var(--spacing-xl) 0;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .type-icon {
        height: 150px;
    }
    
    .phone-mockup {
        width: 200px;
        height: 350px;
    }
    
    .service-header {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-xs);
    }
    
    .service-logo {
        width: 60px;
        height: 60px;
    }
    
    /* 简化页脚响应式 */
    .wechat-footer {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-lg);
    }
    
    .wechat-info {
        text-align: center;
    }
    
    .qr-code-footer {
        margin-left: 0;
    }
    
    .footer-qr {
        width: 100px;
        height: 100px;
    }
    
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .route-card {
        margin: 0 var(--spacing-sm);
    }
    
    .qr-placeholder {
        width: 150px;
        height: 150px;
    }
    
    .qr-code {
        width: 150px;
        height: 150px;
    }
}

/* ===== 超大屏幕 ===== */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .features h2,
    .testimonials h2,
    .section-header h2,
    .eurail-text h2,
    .wechat-info h2 {
        font-size: 3rem;
    }
}

/* ===== 打印样式 ===== */
@media print {
    .navbar,
    .hamburger,
    .modal,
    .btn-primary,
    .btn-secondary,
    .btn-wechat,
    .hero-cta,
    .eurail-cta {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero,
    .features,
    .popular-routes,
    .eurail-preview,
    .wechat-section,
    .testimonials {
        padding: var(--spacing-md) 0 !important;
        background: white !important;
    }
}

/* ===== 无障碍访问 ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== 高对比度模式 ===== */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --text-color: #000000;
        --background-color: #ffffff;
        --border-color: #000000;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid #000000;
    }
}

/* ===== 深色模式准备 ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #ffffff;
        --text-light: #cccccc;
        --background-color: #121212;
        --border-color: #333333;
    }
    
    .navbar {
        background: rgba(18, 18, 18, 0.95);
    }
    
    .hero {
        background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    }
    
    .features,
    .eurail-preview,
    .testimonials {
        background: #1a1a1a;
    }
    
    .popular-routes,
    .wechat-section {
        background: #2a2a2a;
    }
    
    .feature-card,
    .route-card,
    .testimonial-card,
    .modal-content {
        background: #2a2a2a;
        border-color: #444444;
    }
}