/* Airport Page Specific Styles */

/* 机场页面背景 */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* 添加飞机动画背景 */
body::after {
    content: '✈️';
    position: fixed;
    top: 10%;
    right: -50px;
    font-size: 2rem;
    animation: fly 15s linear infinite;
    opacity: 0.3;
    z-index: -1;
}

@keyframes fly {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
        right: -50px;
    }
    25% {
        transform: translateX(-100px) translateY(-50px) rotate(15deg);
    }
    50% {
        transform: translateX(-200px) translateY(0) rotate(0deg);
    }
    75% {
        transform: translateX(-300px) translateY(50px) rotate(-15deg);
    }
    100% {
        transform: translateX(-400px) translateY(0) rotate(0deg);
        right: -450px;
    }
}

/* 添加更多飞机动画 */
.airplane-1 {
    position: fixed;
    top: 20%;
    right: -30px;
    font-size: 1.5rem;
    animation: fly1 20s linear infinite;
    opacity: 0.2;
    z-index: -1;
}

.airplane-2 {
    position: fixed;
    top: 60%;
    right: -40px;
    font-size: 1.8rem;
    animation: fly2 18s linear infinite;
    opacity: 0.25;
    z-index: -1;
}

@keyframes fly1 {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
        right: -30px;
    }
    100% {
        transform: translateX(-500px) translateY(-100px) rotate(10deg);
        right: -530px;
    }
}

@keyframes fly2 {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
        right: -40px;
    }
    100% {
        transform: translateX(-600px) translateY(80px) rotate(-8deg);
        right: -640px;
    }
}

/* 云朵装饰 */
.cloud-1 {
    position: fixed;
    top: 15%;
    left: 10%;
    font-size: 3rem;
    opacity: 0.1;
    animation: float 8s ease-in-out infinite;
    z-index: -1;
}

.cloud-2 {
    position: fixed;
    top: 45%;
    left: 70%;
    font-size: 2.5rem;
    opacity: 0.08;
    animation: float 10s ease-in-out infinite reverse;
    z-index: -1;
}

.cloud-3 {
    position: fixed;
    top: 75%;
    left: 20%;
    font-size: 2rem;
    opacity: 0.12;
    animation: float 12s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Airports Section */
.airports-section {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

/* 标题样式 */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.airports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.airport-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.airport-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.airport-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.airport-logo {
    width: 60px;
    height: 60px;
    background: #f3f4f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 2rem;
    color: #3b82f6;
}

.airport-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.airport-codes {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.airport-code {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.airport-location {
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    align-items: center;
}

.airport-location i {
    margin-right: 0.5rem;
}

.airport-region {
    font-size: 0.875rem;
    color: #3b82f6;
    display: flex;
    align-items: center;
    margin-top: 0.25rem;
}

.airport-region i {
    margin-right: 0.5rem;
}

.airport-details {
    margin-top: 1rem;
}

.airport-detail {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.airport-detail i {
    width: 16px;
    margin-right: 0.5rem;
    color: #9ca3af;
}

.airport-type {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 1rem;
}

/* 搜索区域样式更新 */
.search-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.search-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.stat-card i {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
}

/* Airport Modal Styles */
.modal-airport-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-airport-logo {
    width: 80px;
    height: 80px;
    background: #f3f4f6;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 2.5rem;
    color: #3b82f6;
}

.modal-airport-info h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.modal-airport-codes {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.modal-airport-code {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

.modal-airport-location {
    font-size: 1rem;
    color: #6b7280;
    display: flex;
    align-items: center;
}

.modal-airport-region {
    font-size: 1rem;
    color: #3b82f6;
    display: flex;
    align-items: center;
    margin-top: 0.25rem;
}

.modal-airport-details {
    display: grid;
    gap: 1rem;
}

.modal-detail-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.modal-detail-item i {
    width: 20px;
    margin-right: 1rem;
    margin-top: 0.25rem;
    color: #3b82f6;
}

.modal-detail-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-detail-content p {
    color: #1f2937;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .airports-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .airport-card {
        padding: 1.5rem;
    }
    
    .modal-airport-header {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-airport-logo {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .airport-codes {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .modal-airport-codes {
        flex-direction: column;
        gap: 0.5rem;
    }
}
