/* WingsPulse 前台样式 - 落日橙主题 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #fff7ed;
    color: #374151;
    line-height: 1.5;
}

/* 落日橙渐变 */
.sunset-gradient {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 25%, #fb923c 50%, #f97316 75%, #ea580c 100%);
}

/* 容器 */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========== 顶部导航 ========== */
.top-nav {
    background: white;
    border-bottom: 1px solid #ffedd5;
    padding: 8px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 20;
}

.nav-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}
.logo-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
}

.logo-svg {
    height: 40px;
    width: auto;
    display: block;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-link {
    color: #374151;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #ea580c;
}

.btn-signin {
    background: white;
    border: 2px solid #f97316;
    color: #ea580c;
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-signin:hover {
    background: #fff7ed;
}

.btn-register {
    background: #f97316;
    color: white;
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-register:hover {
    background: #ea580c;
}

/* ========== 下拉菜单 ========== */
.dropdown {
    position: relative;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    background: none;
    border: none;
    font-size: 14px;
}

.dropdown-btn:hover {
    background: #fff7ed;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #ffedd5;
    z-index: 100;
    min-width: 160px;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-item {
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #fff7ed;
}

/* ========== Hero 区域 ========== */
.hero {
    padding: 40px 0 96px;
    position: relative;
}

.hero-title {
    color: white;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    color: white;
    font-size: 18px;
    margin-bottom: 32px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ========== 搜索框 ========== */
.search-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: visible;
    position: relative;
}

.search-content {
    display: flex;
    flex-direction: column;
}

/* 主标签：住宿/机票 - 始终水平并排 */
.search-tabs {
    display: flex;
    flex-direction: row;
    gap: 0;
    padding: 12px 16px 0;
    border-bottom: 1px solid #e5e7eb;
    background: #fafafa;
    align-items: flex-end;
}

.tab-btn {
    padding: 12px 24px;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    border-bottom: none;
    background: white;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-bottom: -1px;
    position: relative;
}

.tab-btn .tab-icon {
    font-size: 20px;
    line-height: 1;
}

.tab-btn .tab-text {
    font-size: 14px;
    white-space: nowrap;
}

.tab-btn.active {
    background: white;
    color: #f97316;
    border-color: #f97316;
    box-shadow: 0 -2px 8px rgba(249, 115, 22, 0.1);
}

.tab-btn.inactive {
    color: #6b7280;
    background: #f5f5f5;
}

.tab-btn.inactive:hover {
    background: #fff7ed;
    color: #f97316;
}

/* 输入框区域 */
.search-inputs {
    flex: 1;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 16px;
    align-items: center;
}

.input-group {
    position: relative;
    flex: 1;
    min-width: 140px;
}

.destination-wrapper {
    flex: 1.5;
}

.date-group {
    display: flex;
    gap: 8px;
    flex: 1;
}

.guest-group {
    max-width: 160px;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 16px;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 12px 14px 12px 38px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.search-select {
    width: 100%;
    padding: 12px 14px 12px 38px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.btn-search {
    background: #f97316;
    color: white;
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    min-width: 100px;
}

.btn-search:hover {
    background: #ea580c;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* ========== 热门目的地弹窗 ========== */
.popular-destinations {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 750px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid #ffedd5;
    z-index: 9999;
    padding: 20px;
    max-height: 480px;
    overflow-y: auto;
}

.popular-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f97316;
}

.popular-tabs {
    display: flex;
    gap: 8px;
}

.popular-tab {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
}

.popular-tab.active {
    background: #f97316;
    color: white;
    border-color: #f97316;
}

.popular-tab.inactive:hover {
    background: #fff7ed;
    border-color: #f97316;
    color: #f97316;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .popular-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.popular-item {
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e5e7eb;
    background: #fafafa;
}

.popular-item:hover {
    background: #fff7ed;
    border-color: #f97316;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.1);
}

.popular-item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 6px;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.popular-item-info {
    flex: 1;
    min-width: 0;
}

.popular-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popular-item-desc {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== 主内容区 ========== */
.main-content {
    margin-top: -64px;
    position: relative;
    z-index: 10;
    padding-bottom: 80px;
}

.promo-banner {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ffedd5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.promo-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.promo-subtitle {
    color: #6b7280;
}

.btn-view-all {
    background: #f97316;
    color: white;
    padding: 8px 24px;
    border-radius: 4px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-view-all:hover {
    background: #ea580c;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
}

/* ========== 酒店网格 ========== */
.hotel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .hotel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hotel-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.hotel-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #ffedd5;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.hotel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.2);
}

.hotel-image-wrapper {
    position: relative;
    height: 192px;
    overflow: hidden;
}

.hotel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.hotel-card:hover .hotel-image {
    transform: scale(1.05);
}

.genius-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(90deg, #f97316 0%, #fb923c 100%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #dc2626;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}

.hotel-content {
    padding: 16px;
}

.hotel-name {
    font-weight: 700;
    font-size: 18px;
    color: #111827;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hotel-city {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.rating-badge {
    background: #f97316;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px 0 0 4px;
}

.rating-text {
    background: #fff7ed;
    color: #f97316;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 0 4px 4px 0;
    border-left: 2px solid white;
}

.hotel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

.tag {
    font-size: 12px;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    padding: 2px 6px;
    border-radius: 4px;
}

.hotel-price {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.price-amount {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.price-unit {
    font-size: 12px;
    color: #6b7280;
    margin-left: 4px;
}

.price-note {
    font-size: 12px;
    color: #16a34a;
    font-weight: 500;
    margin-top: 4px;
}

.btn-details {
    font-size: 14px;
    font-weight: 700;
    color: #ea580c;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.btn-details:hover {
    color: #c2410c;
}

/* ========== Footer ========== */
.footer {
    background: #f3f4f6;
    padding: 48px 0;
    border-top: 1px solid #fed7aa;
}

.footer-content {
    text-align: center;
}

.footer-text {
    color: #6b7280;
    font-size: 14px;
}

.footer-links {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.footer-link {
    color: #6b7280;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #ea580c;
}

/* ========== 动画 ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ========== 响应式调整 ========== */
@media (max-width: 1024px) {
    .search-inputs {
        flex-wrap: wrap;
    }

    .date-group {
        flex: 1 1 100%;
    }

    .guest-group {
        flex: 1;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .search-inputs {
        flex-direction: column;
    }

    .input-group,
    .date-group,
    .destination-wrapper,
    .guest-group {
        width: 100%;
        flex: none;
    }

    .popular-destinations {
        min-width: auto;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .popular-destinations {
        min-width: auto;
        max-width: none;
    }
}

/* ========== 自定义日期选择器 ========== */
.custom-date-picker {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    padding: 24px;
    width: 380px;
    max-width: 90vw;
}

.custom-date-picker.active {
    display: block;
}

.date-picker-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.date-picker-overlay.active {
    display: block;
}

.date-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.date-picker-nav {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
    color: #374151;
}

.date-picker-nav:hover {
    background: #fff7ed;
    color: #f97316;
}

.date-picker-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.date-picker-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.weekday-label {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    padding: 8px 0;
}

.weekday-label.weekend {
    color: #dc2626;
}

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

.date-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: white;
    color: #374151;
}

.date-day:hover:not(.disabled):not(.empty) {
    background: #fff7ed;
    color: #f97316;
}

.date-day.today {
    border: 2px solid #f97316;
    font-weight: 700;
}

.date-day.selected {
    background: #f97316;
    color: white;
    font-weight: 700;
}

.date-day.disabled {
    color: #d1d5db;
    cursor: not-allowed;
    background: #fafafa;
}

.date-day.empty {
    cursor: default;
    background: transparent;
}

.date-day.weekend:not(.disabled):not(.selected) {
    color: #dc2626;
}

.date-picker-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-picker-clear {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
}

.date-picker-clear:hover {
    background: #f3f4f6;
    color: #374151;
}

.date-picker-today {
    background: #fff7ed;
    border: 1px solid #f97316;
    color: #f97316;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
}

.date-picker-today:hover {
    background: #f97316;
    color: white;
}

/* ========== 暂未开放弹窗 ========== */
.coming-soon-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.coming-soon-modal {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

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

.coming-soon-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.coming-soon-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.coming-soon-message {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.6;
}

.coming-soon-btn {
    background: #f97316;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.coming-soon-btn:hover {
    background: #ea580c;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}


