/* ============================================
   Europe Train - Home Page Enhanced Styles
   首页增强样式：实时数据、国家入口、通票对比
   ============================================ */

/* ============================================
   Live Data Section
   ============================================ */
.live-data-section {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
    color: white;
    padding: 64px 24px;
    text-align: center;
}

.live-data-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.live-data-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.live-data-section > .live-data-inner > p {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 40px;
    color: white;
}

.live-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 8px;
}

.live-data-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: transform 0.2s, background 0.2s;
}

.live-data-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.15);
}

.live-data-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.live-data-label {
    font-size: 14px;
    opacity: 0.85;
    color: white;
}

/* ============================================
   Countries Section
   ============================================ */
.countries-section {
    background: var(--bg-light);
    padding: 64px 24px;
}

.countries-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.countries-section h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.countries-section > .countries-inner > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 16px;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.country-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border);
}

.country-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.country-flag {
    font-size: 48px;
    margin-bottom: 12px;
    line-height: 1;
}

.country-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.country-desc {
    font-size: 13px;
    color: var(--text-light);
}

/* ============================================
   Pass Comparison Section
   ============================================ */
.pass-comparison-section {
    background: white;
    padding: 64px 24px;
}

.pass-comparison-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.pass-comparison-section h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.pass-comparison-section > .pass-comparison-inner > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 16px;
}

.pass-comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.pass-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(230,81,0,0.15);
}

.pass-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 24px;
    text-align: center;
    position: relative;
}

.pass-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.pass-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.pass-content {
    padding: 32px 24px;
}

.pass-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.pass-features li {
    padding: 8px 0;
    font-size: 15px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.pass-features li:last-child {
    border-bottom: none;
}

.pass-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 20px;
}

.pass-cta {
    text-align: center;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    padding: 10px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: 2px solid var(--primary);
    cursor: pointer;
    font-size: 15px;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   Article Categories
   ============================================ */
.article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 32px;
}

.category-tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-light);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid var(--border);
}

.category-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.category-tag.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .live-data-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .live-data-number {
        font-size: 36px;
    }
    
    .countries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pass-comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .article-categories {
        gap: 8px;
    }
    
    .category-tag {
        padding: 6px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .live-data-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .live-data-card {
        padding: 20px 12px;
    }
    
    .live-data-number {
        font-size: 28px;
    }
    
    .countries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .country-card {
        padding: 20px 12px;
    }
    
    .country-flag {
        font-size: 36px;
    }
}
