* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

:root {
    --primary-color: #0073d8;
    --primary-light: #33b1be;
    --border-color: #d0d7de;
    --box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: -webkit-linear-gradient(180deg, var(--primary-light) 5%, #ffffff 30%);
    background: -moz-linear-gradient(180deg, var(--primary-light) 5%, #ffffff 30%);
    background: linear-gradient(180deg, var(--primary-light) 5%, #ffffff 30%);
    min-height: 100vh;
    -webkit-min-height: 100vh;
    color: #333;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

.plane-card {
    background: #fff;
    padding: 32px 18px;
    border-radius: 18px;
    -webkit-border-radius: 18px;
    -moz-border-radius: 18px;
    box-shadow: var(--box-shadow);
    -webkit-box-shadow: var(--box-shadow);
    -moz-box-shadow: var(--box-shadow);
    width: 90%;
    max-width: 420px;
    margin: 20px auto 0;
    position: relative;
    z-index: 1;
}

/* 筛选按钮样式 */
.filter-buttons {
    display: -webkit-flex;
    display: -moz-flex;
    display: flex;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    -moz-align-items: center;
    align-items: center;
    width: 100%;
    gap: 4px;
    margin-bottom: 10px;
    padding: 0 1px;
}

.filter-btn {
    -webkit-flex: 1 1 0;
    -moz-flex: 1 1 0;
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    min-height: 36px;
    max-height: 40px;
    padding: 8px 4px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    color: #666;
    font-size: 16px !important;
    cursor: pointer;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    transition: all 0.2s ease;
    text-align: center;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    line-height: 20px;
    display: -webkit-flex;
    display: -moz-flex;
    display: flex;
    -webkit-align-items: center;
    -moz-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    justify-content: center;
}

.filter-btn.active {
    background: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
}

.filter-btn:hover:not(.active) {
    background: #e8e8e8;
    border-color: #ccc;
}

/* 筛选按钮禁用状态 */
.filter-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: #f5f5f5;
    color: #ccc;
    border-color: #e0e0e0;
}

.filter-btn.disabled:hover {
    background: #f5f5f5;
    border-color: #e0e0e0;
}

.city-select-container {
    position: relative;
    padding: 20px 0 0 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.swap-btn {
    position: absolute;
    right: 15%;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.swap-btn::before {
    content: "⇅";
    font-size: 20px;
    color: #666;
}

.swap-btn:hover {
    background: #e8e8e8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.swap-btn:active {
    background: #e0e0e0;
    -webkit-transform: translateY(-50%) scale(0.95);
    -moz-transform: translateY(-50%) scale(0.95);
    transform: translateY(-50%) scale(0.95);
}

.custom-select {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    padding: 8px 15px;
    transition: all 0.2s ease;
    background: white;
    position: relative;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.custom-select:active {
    background: #f8f9fa;
    -webkit-transform: scale(0.98);
    -moz-transform: scale(0.98);
    transform: scale(0.98);
}

.select-label {
    color: #333;
    font-size: 16px;
    margin-bottom: 4px;
}

.select-value {
    color: #999;
    font-size: 17px;
}

.date-group {
    display: -webkit-flex;
    display: -moz-flex;
    display: flex;
    gap: 15px;
}

.date-group .form-group {
    flex: 1;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    -webkit-box-shadow: 0 0 0 2px rgba(0, 115, 216, 0.1);
    -moz-box-shadow: 0 0 0 2px rgba(0, 115, 216, 0.1);
    box-shadow: 0 0 0 2px rgba(0, 115, 216, 0.1);
}

.search-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-light);
    color: white;
    border: none;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    transition: all 0.2s ease;
    margin-top: 10px;
    pointer-events: auto;
    min-height: 48px;
    display: -webkit-flex;
    display: -moz-flex;
    display: flex;
    -webkit-align-items: center;
    -moz-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    justify-content: center;
    font-weight: 500;
}

.search-btn:hover {
    background: #cccccc;
    transform: none;
}

.search-btn.active {
    background: var(--primary-light);
    color: white;
    cursor: pointer;
    pointer-events: auto;
}

.search-btn.active:hover {
    background: #2a9ba8;
    -webkit-transform: translateY(-1px);
    -moz-transform: translateY(-1px);
    transform: translateY(-1px);
}

.search-btn.active:active {
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    transform: translateY(0);
    background: #238a96;
}

/* 搜索按钮加载状态 */
.search-btn.loading {
    background: #cccccc !important;
    color: #999 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
}

.search-btn.loading:hover {
    background: #cccccc !important;
    transform: none !important;
}

.search-btn.loading i {
    margin-right: 8px;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .plane-card {
        width: 85%;
        padding: 20px 15px;
        margin-top: 10vh;
    }
    
    .date-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* Safari兼容性支持 */
/* 通用Safari兼容性 */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 苹果手机适配 */
@supports (-webkit-touch-callout: none) {
    /* 防止iOS Safari中的缩放 */
    input, select, textarea {
        font-size: 16px !important;
    }
    
    /* 修复iOS Safari中的点击延迟 */
    .custom-select, .date-input, .filter-btn, .search-btn, .modal-item, .service-button, .hot-airport-item {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* 修复iOS Safari中的滚动问题 */
    .modal-content, .date-picker-content, .modal-list {
        -webkit-overflow-scrolling: touch;
    }
    
    /* 修复iOS Safari中的输入框样式 */
    .custom-select, .date-input, input[type="text"] {
        -webkit-appearance: none;
        appearance: none;
        background: white;
        border-radius: 12px;
    }
    
    /* 修复iOS Safari中的按钮样式 */
    .filter-btn, .search-btn, .swap-btn, .month-btn {
        -webkit-appearance: none;
        appearance: none;
        border-radius: 4px;
    }
    
    /* 修复iOS Safari中的安全区域 */
    @supports (padding: max(0px)) {
        .plane-card {
            padding-left: max(18px, env(safe-area-inset-left));
            padding-right: max(18px, env(safe-area-inset-right));
        }
        
        body {
            padding-top: env(safe-area-inset-top);
            padding-bottom: env(safe-area-inset-bottom);
        }
        
        .modal-content {
            padding-bottom: max(16px, env(safe-area-inset-bottom));
        }
        
        .date-picker-content {
            padding-bottom: max(15px, env(safe-area-inset-bottom));
        }
    }
    
    /* 修复iOS Safari中的flexbox问题 */
    .filter-buttons, .date-group, .bottom-container, .trip-route, .route-line {
        -webkit-box-align: center;
        -webkit-box-pack: center;
    }
    
    /* 修复iOS Safari中的transform问题 */
    .swap-btn, .search-btn, .service-button {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    /* 修复iOS Safari中的backdrop-filter */
    .new-service-buttons .service-button {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
    
    .new-service-buttons .service-button.active,
    .new-service-buttons .service-button:active,
    .new-service-buttons .service-button:focus {
        -webkit-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px);
    }
    
    /* 修复iOS Safari中的grid布局 */
    .days-grid, .hot-airports-list {
        display: -webkit-grid;
        display: grid;
    }
    
    /* 修复iOS Safari中的动画 */
    @keyframes spin {
        0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
        100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
    }
    
    /* 修复iOS Safari中的渐变背景 */
    body {
        background: -webkit-linear-gradient(180deg, var(--primary-light) 5%, #ffffff 30%);
        background: linear-gradient(180deg, var(--primary-light) 5%, #ffffff 30%);
    }
    
    .flight-icon {
        background: -webkit-linear-gradient(145deg, #ffffff, #f5f5f5);
        background: linear-gradient(145deg, #ffffff, #f5f5f5);
    }
}

/* 桌面版Safari兼容性 */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    /* 修复桌面版Safari中的flexbox问题 */
    .filter-buttons, .date-group, .bottom-container {
        display: -webkit-flex;
        display: flex;
    }
    
    /* 修复桌面版Safari中的grid问题 */
    .days-grid, .hot-airports-list {
        display: -webkit-grid;
        display: grid;
    }
    
    /* 修复桌面版Safari中的transform问题 */
    .swap-btn, .search-btn, .service-button {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    /* 修复桌面版Safari中的transition问题 */
    .custom-select, .date-input, .filter-btn, .search-btn, .service-button {
        -webkit-transition: all 0.2s ease;
        transition: all 0.2s ease;
    }
    
    /* 修复桌面版Safari中的border-radius问题 */
    .plane-card, .custom-select, .date-input, .search-btn {
        -webkit-border-radius: 12px;
        border-radius: 12px;
    }
    
    .filter-btn {
        -webkit-border-radius: 4px;
        border-radius: 4px;
    }
}

/* 修复Safari中的特定问题 */
/* 修复Safari中的flex-shrink问题 */
.filter-btn {
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

/* 修复Safari中的min-height问题 */
.custom-select, .date-input, .search-btn {
    min-height: 44px;
    -webkit-min-height: 44px;
}

/* 修复Safari中的box-shadow问题 */
.plane-card, .flight-icon {
    -webkit-box-shadow: var(--box-shadow);
    box-shadow: var(--box-shadow);
}

/* 修复Safari中的z-index问题 */
.swap-btn, .flight-icon {
    -webkit-z-index: 2;
    z-index: 2;
}

/* 修复Safari中的position问题 */
.swap-btn, .flight-icon {
    -webkit-position: absolute;
    position: absolute;
}

/* 修复Safari中的display问题 */
.modal, .date-picker-modal {
    display: none;
    -webkit-display: none;
}

.modal.show, .date-picker-modal.show {
    display: block;
    -webkit-display: block;
}

/* 修复Safari中的overflow问题 */
.modal-content, .date-picker-content {
    -webkit-overflow: hidden;
    overflow: hidden;
}

.modal-list {
    -webkit-overflow-y: auto;
    overflow-y: auto;
}

.bottom-container {
    display: -webkit-flex;
    display: -moz-flex;
    display: flex;
    -webkit-flex-direction: row;
    -moz-flex-direction: row;
    flex-direction: row;
    gap: 20px;
    margin: 10px 0 5px 0;
    width: 100%;
}

.bottom-box {
    flex: 1;
    background: transparent;
    border-radius: 12px;
    padding: 0;
    box-shadow: none;
    min-height: auto;
    width: calc(50% - 10px);
}

.bottom-container.single-date {
    gap: 0;
}

.bottom-container.single-date .bottom-box {
    width: 100%;
}

@media (max-width: 600px) {
    .plane-card {
        width: 90%;
        padding: 20px 15px;
        margin-top: 10vh;
    }
    
    .bottom-container {
        gap: 10px;
        flex-direction: row;
        margin: 10px 0 5px 0;
    }
    
    .bottom-box {
        min-height: auto;
        padding: 0;
        width: calc(50% - 5px);
    }
    
    .bottom-container.single-date {
        gap: 0;
    }
    
    .bottom-container.single-date .bottom-box {
        width: 100%;
    }
}

/* 日期选择器样式 */
.date-selector {
    width: 100%;
}

.date-label {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.date-input {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    border: 1px solid transparent;
}

.date-input:hover {
    background: #f5f5f5;
}

.date-input:active {
    background: #f0f0f0;
    transform: scale(0.98);
}

.date-placeholder {
    color: #999;
}

.date-input i {
    color: var(--primary-light);
    font-size: 16px;
}

/* 日期选择弹窗样式 */
.date-picker-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.date-picker-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 320px;
    overflow: hidden;
}

.date-picker-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-picker-title {
    font-size: 18px;
    font-weight: 500;
}

.date-picker-close {
    font-size: 20px;
    color: #999;
    cursor: pointer;
}

.date-picker-body {
    padding: 15px;
}

.month-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.month-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.current-month {
    font-size: 17px;
    font-weight: 500;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.weekday {
    text-align: center;
    font-size: 15px;
    color: #999;
    padding: 5px 0;
}

.day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.day-cell:hover {
    background: #f5f5f5;
}

.day-cell.selected {
    background: var(--primary-color);
    color: white;
}

.day-cell.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.day-cell.today {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

/* 当前行程标题样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 85%;
    max-width: 550px;
    margin-top: 20px;
    margin-left: 15px;
    margin-bottom: 10px;
    white-space: nowrap;
}

.section-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    flex-shrink: 0;
}

.section-action {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.section-action:hover {
    color: var(--primary-color);
}

.section-action i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.section-action:hover i {
    transform: translateX(2px);
}

/* section-action禁用状态 */
.section-action.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    color: #ccc;
}

.section-action.disabled:hover {
    color: #ccc;
}

.section-action.disabled:hover i {
    transform: none;
}

/* 行程卡片容器 */
.trip-cards {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 当前行程卡片样式 */
.trip-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 15px;
    margin-bottom: 15px;
    width: 100%;
}

.trip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.trip-date {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
}

.trip-duration {
    font-size: 15px;
    color: var(--primary-color);
}

.trip-divider {
    height: 1px;
    background: #eee;
    margin: 12px 0;
}

.trip-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
}

.route-city {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 80px;
}

.city-time {
    font-size: 14px;
    color: #999;
    margin-bottom: 2px;
}

.city-name {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.city-airport {
    font-size: 14px;
    color: #bbb;
    margin-top: 2px;
}

.route-line {
    flex: 1;
    display: flex;
    align-items: center;
    margin: 0 15px;
    position: relative;
}

.flight-line {
    flex: 1;
    height: 1px;
    background: #ddd;
    position: relative;
}

.flight-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: -webkit-linear-gradient(145deg, #ffffff, #f5f5f5);
    background: -moz-linear-gradient(145deg, #ffffff, #f5f5f5);
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    display: -webkit-flex;
    display: -moz-flex;
    display: flex;
    -webkit-align-items: center;
    -moz-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    justify-content: center;
    z-index: 2;
    border: 1px solid #e8e8e8;
    -webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08),
                inset 0 1px 1px rgba(255, 255, 255, 0.8);
    -moz-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08),
                inset 0 1px 1px rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08),
                inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.flight-icon i {
    color: #666;
    font-size: 20px;
    transform: rotate(0deg);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.flight-arrow {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 0 4px 6px;
    border-color: transparent transparent transparent #ddd;
    margin-left: -1px;
}

@media (max-width: 768px) {
    .trip-card {
        padding: 12px;
    }
    
    .city-name {
        font-size: 16px;
    }
    
    .city-time, .city-airport {
        font-size: 13px;
    }
    
    .route-line {
        margin: 0 10px;
    }
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 16px 20px;
    padding-bottom: 80px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

.modal.show .modal-content {
    transform: translateY(0);
}

/* 确保弹窗始终保持完全弹出状态 */
.modal.show {
    display: block !important;
}

.modal.show .modal-content {
    transform: translateY(0) !important;
    max-height: 80vh !important;
    transition: none !important;
}

/* 弹窗显示时禁用所有可能影响位置的动画 */
.modal.show * {
    transition: none !important;
}

.modal-header {
    text-align: center !important;
    margin-bottom: 16px !important;
    position: relative !important;
    padding: 0 !important;
    background: transparent !important;
    display: block !important;
    align-items: unset !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

.modal-close {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    padding: 8px !important;
    cursor: pointer !important;
    font-size: 18px !important;
    color: #999 !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-title {
    font-size: 16px !important;
    color: #333 !important;
    font-weight: 500 !important;
}

.modal-list {
    max-height: 60vh;
    overflow-y: auto;
}

/* 搜索框样式 */
.modal-search {
    margin-bottom: 16px;
    padding: 0 4px;
}

.modal-search input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #f8f9fa;
    transition: border-color 0.2s ease;
}

.modal-search input:focus {
    outline: none;
    border-color: var(--primary-light);
    background: white;
}

/* 热门机场样式 */
.hot-airports-section {
    margin-bottom: 20px !important;
}

.hot-airports-section .section-title {
    font-size: 14px !important;
    color: #666 !important;
    margin-bottom: 12px !important;
    padding: 0 4px !important;
    font-weight: 500 !important;
}

.hot-airports-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    padding: 0 4px !important;
}

.hot-airport-item {
    padding: 6px 8px !important;
    background: #f8f9fa !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 10px !important;
    min-height: 32px !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.hot-airport-item:hover {
    background: #e3f2fd !important;
    border-color: var(--primary-light) !important;
}

.hot-airport-item:active {
    background: #bbdefb !important;
}

.hot-airport-name {
    font-weight: 500 !important;
    color: #333 !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
}

.hot-airport-code {
    color: #666 !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
}

/* 所有机场样式 */
.all-airports-section {
    border-top: 1px solid #eee !important;
    padding-top: 16px !important;
}

.all-airports-section .section-title {
    font-size: 14px !important;
    color: #666 !important;
    margin-bottom: 8px !important;
    padding: 0 4px !important;
    font-weight: 500 !important;
}

.all-airports-section .modal-list {
    max-height: 40vh !important;
    overflow-y: auto !important;
    padding-bottom: 60px !important;
}

.all-airports-section .modal-item {
    padding: 12px 15px !important;
    border-bottom: 1px solid #eee !important;
    cursor: pointer !important;
    font-size: 14px !important;
    color: #333 !important;
    transition: background-color 0.2s ease !important;
}

.all-airports-section .modal-item:active {
    background: #f5f5f5 !important;
}

/* 加载动画样式 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}

/* 搜索结果底部空白区域 */
.all-airports-section .modal-list:not(.loading) {
    padding-bottom: 80px !important;
}

/* 搜索时确保有足够的滚动空间 */
.modal-content:has(.modal-search input:focus) {
    padding-bottom: 100px !important;
}

/* 分组标题间距 */
.group-title {
    margin-top: 10px !important;
}

.group-title:first-child {
    margin-top: 0 !important;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@-moz-keyframes spin {
    0% { -moz-transform: rotate(0deg); }
    100% { -moz-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    text-align: center !important;
    color: #999 !important;
    font-size: 14px !important;
    padding: 20px !important;
}

.hot-airports-list.loading,
.all-airports-section .modal-list.loading {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal-item {
    padding: 12px 15px !important;
    border-bottom: 1px solid #eee !important;
    cursor: pointer !important;
    font-size: 14px !important;
    color: #333 !important;
    transition: background-color 0.2s ease !important;
}

.modal-item:active {
    background: #f5f5f5;
}

/* 页面内容区域，为底部导航留出空间 */
.content {
    padding-bottom: 90px;
}

/* 强制覆盖弹窗样式，确保不被其他CSS文件影响 */
#cityModal .modal-content .modal-header .modal-title {
    font-size: 16px !important;
    color: #333 !important;
    font-weight: 500 !important;
}

#cityModal .modal-content .modal-header .modal-close {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    padding: 8px !important;
    cursor: pointer !important;
    font-size: 18px !important;
    color: #999 !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#cityModal .modal-content .modal-list .modal-item {
    padding: 12px 15px !important;
    border-bottom: 1px solid #eee !important;
    cursor: pointer !important;
    font-size: 14px !important;
    color: #333 !important;
    transition: background-color 0.2s ease !important;
}

#cityModal .modal-content .modal-list .modal-item:active {
    background: #f5f5f5 !important;
}

/* 覆盖页面头部样式，使用纯色蓝绿色背景 */
.page-header {
    background: #33b1be !important;
    color: white !important;
}

.page-header .header-title {
    color: white !important;
}

/* 服务按钮样式 */
.service-buttons {
    display: flex;
    justify-content: space-between;
    padding: 20px 15px;
    background: white;
    margin: 15px;
    border-radius: 12px;
    box-shadow: none;
}

.service-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    margin: 0 5px;
    border: none;
    background: white;
    box-shadow: none;
}

.service-button.active {
    background: white;
    border: none;
    color: #33b1be;
}

.service-button:not(.active) {
    color: #666;
}

.service-button:not(.active):hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.service-button i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #33b1be;
}

.service-button .label {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

/* 禁用状态样式 */
.service-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.service-button.disabled:hover {
    background: white;
    transform: none;
}

.service-button.disabled i {
    color: #ccc;
}

.service-button.disabled .label {
    color: #ccc;
}

/* 新服务按钮样式：独立正方形圆角，无大背景 */
.new-service-buttons {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    background: none;
    margin: 16px auto 0 auto;
    padding: 0;
    max-width: 85%;
    align-items: flex-start;
}

.service-item-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.new-service-buttons .service-button {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    max-width: 64px;
    max-height: 64px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: none;
    transition: box-shadow 0.2s;
    padding: 0;
}

.new-service-buttons .service-button.active,
.new-service-buttons .service-button:active,
.new-service-buttons .service-button:focus {
    box-shadow: 0 4px 16px rgba(51,177,190,0.10);
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.new-service-buttons .service-button i {
    font-size: 38px;
    color: var(--primary-light);
    transition: color 0.3s ease;
    position: relative;
    top: 3px;
}

/* 新服务按钮禁用状态 */
.new-service-buttons .service-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.4);
}

.new-service-buttons .service-button.disabled i {
    color: #ccc;
}

.new-service-buttons .service-button.disabled .label {
    color: #ccc;
}

.service-item-wrapper .label {
    margin-top: 4px;
    font-size: 16px;
    font-weight: 500;
    color: white;
    text-align: center;
    transition: color 0.3s ease;
}

/* 全局字体大小调整 - 除了顶部标题 */
.content * {
    font-size: 1.3em;
}

/* 特定元素字体大小调整 */
.select-label {
    font-size: 18px !important;
}

.select-value {
    font-size: 19px !important;
}

.date-label {
    font-size: 18px !important;
}

.date-placeholder {
    font-size: 19px !important;
}

.search-btn {
    font-size: 20px !important;
}

.section-title {
    font-size: 20px !important;
}

.section-action {
    font-size: 18px !important;
}

.trip-date {
    font-size: 18px !important;
}

.trip-duration {
    font-size: 17px !important;
}

.city-time {
    font-size: 16px !important;
}

.city-name {
    font-size: 20px !important;
}

.city-airport {
    font-size: 16px !important;
}

.date-picker-title {
    font-size: 20px !important;
}

.current-month {
    font-size: 19px !important;
}

.weekday {
    font-size: 17px !important;
}

.day-cell {
    font-size: 18px !important;
}

@media (max-width: 400px) {
    .new-service-buttons .service-button {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        max-width: 48px;
        max-height: 48px;
    }
    .new-service-buttons .service-button i {
        font-size: 28px;
    }
    .service-item-wrapper .label {
        font-size: 9px;
    }
} 

/* 搜索加载弹窗样式 */
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.loading-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.loading-content {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

.loading-animation {
    margin-bottom: 30px;
}

.plane-icon {
    margin-bottom: 20px;
}

.plane-icon i {
    font-size: 48px;
    color: var(--primary-color);
    animation: planeFly 2s infinite ease-in-out;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: dotPulse 1.4s infinite ease-in-out;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

.loading-text {
    margin-bottom: 25px;
}

.loading-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.loading-subtitle {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.loading-progress {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 3px;
    width: 0%;
    animation: progressFill 3s ease-in-out infinite;
}

/* 动画定义 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes planeFly {
    0%, 100% {
        transform: translateX(-20px) rotate(-15deg);
    }
    50% {
        transform: translateX(20px) rotate(15deg);
    }
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes progressFill {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
} 