/* ========== 旅趣国际旅行社 H5移动端商城样式 ========== */
:root {
    --primary: #1890ff;
    --primary-dark: #096dd9;
    --primary-light: #e6f7ff;
    --secondary: #ff6b35;
    --success: #52c41a;
    --warning: #faad14;
    --danger: #ff4d4f;
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #999;
    --bg-main: #f5f7fa;
    --bg-white: #fff;
    --border: #eee;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --radius: 12px;
    --max-width: 750px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    max-width: var(--max-width);
    margin: 0 auto;
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
input, button, textarea { font-family: inherit; font-size: inherit; }

/* ========== 头部 ========== */
.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    z-index: 100;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 10px 16px;
    padding-top: calc(10px + env(safe-area-inset-top));
}

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

.header-brand {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.header-search {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 8px 14px;
    gap: 8px;
}

.header-search i { color: var(--text-light); font-size: 14px; }
.header-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-primary);
}
.header-search input::placeholder { color: var(--text-light); }

/* ========== 页面容器 ========== */
.page { display: none; padding-top: 90px; }
.page.active { display: block; }

/* ========== 首页Banner ========== */
.banner-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.banner-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-slide .banner-title {
    position: absolute;
    bottom: 16px;
    left: 16px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.banner-dots {
    position: absolute;
    bottom: 10px;
    right: 16px;
    display: flex;
    gap: 6px;
}

.banner-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    transition: all 0.3s;
}

.banner-dots span.active {
    background: #fff;
    width: 18px;
    border-radius: 3px;
}

/* ========== 快速导航 ========== */
.quick-nav {
    display: flex;
    flex-direction: column;
    background: #fff;
    margin: 12px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 12px 12px;
}

.nav-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.nav-scroll-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-top: 12px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.nav-scroll-row::-webkit-scrollbar { display: none; }

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.2s;
}

.nav-item:active { transform: scale(0.95); }

.nav-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.nav-icon.tours { background: linear-gradient(135deg, #1890ff, #36cfc9); }
.nav-icon.free { background: linear-gradient(135deg, #ff6b35, #ffa940); }
.nav-icon.tickets { background: linear-gradient(135deg, #52c41a, #95de64); }
.nav-icon.hotels { background: linear-gradient(135deg, #722ed1, #b37feb); }
.nav-icon.flights { background: linear-gradient(135deg, #13c2c2, #69c0ff); }
.nav-icon.visa { background: linear-gradient(135deg, #fa8c16, #ffd666); }
.nav-icon.guide { background: linear-gradient(135deg, #eb2f96, #ff85c0); }
.nav-icon.custom { background: linear-gradient(135deg, #2f54eb, #85a5ff); }
.nav-icon.cooperation { background: linear-gradient(135deg, #13a8a8, #5cdbd3); }
.nav-icon.train { background: linear-gradient(135deg, #f5222d, #ff7875); }
.nav-icon.bus { background: linear-gradient(135deg, #fa8c16, #ffc53d); }
.nav-icon.carrent { background: linear-gradient(135deg, #597ef7, #85a5ff); }
.nav-icon.insurance { background: linear-gradient(135deg, #52c41a, #b7eb8f); }

.nav-item span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ========== 区块标题 ========== */
.section {
    margin: 16px;
}

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

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-more {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========== 产品卡片 ========== */
.product-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.product-scroll::-webkit-scrollbar { display: none; }

.product-card-h {
    min-width: 220px;
    max-width: 220px;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.2s;
}

.product-card-h:active { transform: scale(0.98); }

.product-card-h .img-wrap {
    width: 100%;
    height: 140px;
    overflow: hidden;
    position: relative;
}

.product-card-h .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-h .img-wrap .tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--secondary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.product-card-h .info {
    padding: 10px;
}

.product-card-h .title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 6px;
}

.product-card-h .meta {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.product-card-h .price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.price {
    color: var(--secondary);
    font-weight: 700;
}

.price::before {
    content: '¥';
    font-size: 12px;
}

.price-num {
    font-size: 20px;
}

.price-original {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 4px;
}

/* ========== 最新线路网格 ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-card-v {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s;
}

.product-card-v:active { transform: scale(0.98); }

.product-card-v .img-wrap {
    width: 100%;
    height: 120px;
    overflow: hidden;
    position: relative;
}

.product-card-v .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-v .info {
    padding: 10px;
}

.product-card-v .title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    margin-bottom: 6px;
    min-height: 36px;
}

.product-card-v .meta {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.product-card-v .price-row {
    display: flex;
    align-items: baseline;
}

.product-card-v .price-num {
    font-size: 16px;
}

/* ========== 分类页 ========== */
.category-tabs {
    display: flex;
    padding: 12px 16px;
    gap: 8px;
    overflow-x: auto;
    background: #fff;
    position: sticky;
    top: 56px;
    z-index: 10;
}

.category-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
    padding: 6px 16px;
    border-radius: 18px;
    font-size: 13px;
    white-space: nowrap;
    background: var(--bg-main);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.cat-tab.active {
    background: var(--primary);
    color: #fff;
}

.product-list {
    padding: 12px;
}

.product-list-item {
    display: flex;
    gap: 12px;
    background: #fff;
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s;
}

.product-list-item:active { transform: scale(0.98); }

.product-list-item .img-wrap {
    width: 120px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-list-item .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-list-item .info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.product-list-item .title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-list-item .desc {
    font-size: 12px;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-list-item .bottom {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

/* ========== 详情页 ========== */
.detail-page {
    padding-top: 0;
}

.detail-gallery {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.detail-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-gallery .back-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
}

.detail-gallery .counter {
    position: absolute;
    bottom: 12px;
    right: 16px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.detail-info {
    background: #fff;
    padding: 16px;
    margin-bottom: 12px;
}

.detail-info .price-box {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.detail-info .price-box .price { font-size: 14px; }
.detail-info .price-box .price-num { font-size: 26px; }
.detail-info .price-box .original {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
}

.detail-info .detail-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.detail-info .tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.detail-info .tags span {
    padding: 2px 8px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 4px;
    font-size: 11px;
}

.detail-info .meta-info {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.detail-info .meta-info i { margin-right: 4px; color: var(--primary); }

.detail-section {
    background: #fff;
    padding: 16px;
    margin-bottom: 12px;
}

.detail-section .section-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid var(--primary);
}

.detail-section .content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.detail-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    background: #fff;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

.detail-bottom-bar .action-btn {
    flex: 1;
    height: 42px;
    border: none;
    border-radius: 21px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
}

.detail-bottom-bar .btn-fav {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--bg-main);
    color: var(--text-light);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-bottom-bar .btn-fav.active { color: #ff4d4f; }

.detail-bottom-bar .btn-book {
    background: linear-gradient(135deg, var(--secondary), #ff8f40);
    flex: 1;
}

.detail-bottom-bar .btn-contact {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    width: auto;
    padding: 0 20px;
}

/* ========== 订单页 ========== */
.order-tabs {
    display: flex;
    background: #fff;
    padding: 12px;
    gap: 8px;
    position: sticky;
    top: 56px;
    z-index: 10;
}

.order-tab {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    background: var(--bg-main);
}

.order-tab.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.order-list {
    padding: 12px;
}

.order-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.order-card .order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.order-card .order-no {
    font-size: 12px;
    color: var(--text-light);
}

.order-card .order-status {
    font-size: 13px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
}

.order-card .order-status.pending { background: #fff7e6; color: #fa8c16; }
.order-card .order-status.confirmed { background: #f6ffed; color: #52c41a; }
.order-card .order-status.completed { background: #e6f7ff; color: #1890ff; }
.order-card .order-status.cancelled { background: #fff1f0; color: #ff4d4f; }

.order-card .order-body {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.order-card .order-img {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.order-card .order-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-card .order-info {
    flex: 1;
}

.order-card .order-info .title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-card .order-info .sub {
    font-size: 12px;
    color: var(--text-light);
}

.order-card .order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-card .order-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
}

.order-card .order-actions {
    display: flex;
    gap: 8px;
}

.order-card .order-actions button {
    padding: 4px 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
}

.order-card .order-actions button.primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ========== 个人中心 ========== */
.user-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 30px 16px 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
}

.user-phone {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 2px;
}

.user-menu {
    background: #fff;
    margin: 12px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: #f9f9f9; }

.menu-item i {
    width: 32px;
    font-size: 18px;
    color: var(--primary);
}

.menu-item .menu-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.menu-item .menu-arrow {
    color: var(--text-light);
    font-size: 12px;
}

/* ========== 底部导航 ========== */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    background: #fff;
    display: flex;
    padding: 6px 0;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
    z-index: 100;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 0;
    cursor: pointer;
    transition: color 0.2s;
}

.tab-item i { font-size: 20px; color: var(--text-light); }
.tab-item span { font-size: 11px; color: var(--text-light); }
.tab-item.active i { color: var(--primary); }
.tab-item.active span { color: var(--primary); font-weight: 600; }

/* ========== 登录弹窗 ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: flex-end;
}

.modal-overlay.show { display: flex; }

.modal-content {
    background: #fff;
    width: 100%;
    max-width: var(--max-width);
    border-radius: 16px 16px 0 0;
    padding: 24px 20px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus { border-color: var(--primary); }

.code-input-wrap {
    display: flex;
    gap: 10px;
}

.code-input-wrap input { flex: 1; }

.code-btn {
    width: 110px;
    height: 44px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    background: #fff;
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.code-btn:disabled {
    border-color: var(--border);
    color: var(--text-light);
}

.submit-btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 23px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.submit-btn:active { opacity: 0.9; }

/* ========== 下单弹窗 ========== */
.booking-modal .modal-content {
    max-height: 85vh;
    overflow-y: auto;
}

.booking-form .product-brief {
    display: flex;
    gap: 10px;
    padding: 12px;
    background: var(--bg-main);
    border-radius: 8px;
    margin-bottom: 16px;
}

.booking-form .product-brief img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.booking-form .product-brief .pb-info {
    flex: 1;
}

.booking-form .product-brief .pb-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.booking-form .product-brief .pb-price {
    color: var(--secondary);
    font-weight: 700;
}

.traveler-card {
    background: var(--bg-main);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.traveler-card .remove-btn {
    color: var(--danger);
    font-size: 12px;
    cursor: pointer;
    text-align: right;
    margin-bottom: 4px;
}

.add-traveler-btn {
    width: 100%;
    padding: 10px;
    border: 1px dashed var(--primary);
    border-radius: 8px;
    background: #fff;
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    margin-bottom: 12px;
}

/* ========== 分销中心 ========== */
.dist-header {
    background: linear-gradient(135deg, var(--primary), #36cfc9);
    padding: 30px 20px;
    color: #fff;
    text-align: center;
}

.dist-header .earn-amount {
    font-size: 36px;
    font-weight: 700;
    margin: 10px 0;
}

.dist-header .earn-label {
    font-size: 13px;
    opacity: 0.8;
}

.dist-actions {
    display: flex;
    gap: 12px;
    padding: 16px;
    margin: -20px 16px 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}

.dist-action-item {
    flex: 1;
    text-align: center;
    padding: 10px;
}

.dist-action-item i {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 6px;
}

.dist-action-item span {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

.share-link-box {
    margin: 16px;
    padding: 14px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.share-link-box .link-text {
    background: var(--bg-main);
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    word-break: break-all;
    margin: 10px 0;
}

.copy-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

/* ========== 搜索结果 ========== */
.search-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    gap: 10px;
}

.search-header .back {
    font-size: 18px;
    cursor: pointer;
    color: var(--text-primary);
}

.search-header input {
    flex: 1;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
}

.search-header .search-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 18px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-light);
}

/* ========== 加载更多 ========== */
.load-more {
    text-align: center;
    padding: 16px;
    font-size: 13px;
    color: var(--text-light);
}

/* ========== Toast ========== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.toast.show { opacity: 1; }

/* ========== 加载动画 ========== */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.loading-spinner::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== 响应式微调 ========== */
@media (max-width: 375px) {
    .quick-nav { gap: 4px; padding: 12px 8px 8px; }
    .nav-row { gap: 4px; }
    .nav-scroll-row { gap: 4px; margin-top: 8px; }
    .nav-icon { width: 38px; height: 38px; font-size: 18px; }
    .product-card-h { min-width: 190px; max-width: 190px; }
    .detail-gallery { height: 220px; }
}

/* ========== 出发城市选择器 ========== */
.header-city-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    white-space: nowrap;
}
.header-city-btn i.fa-map-marker-alt { font-size: 12px; }
.header-city-btn span { max-width: 60px; overflow: hidden; text-overflow: ellipsis; }

/* 城市选择面板 */
.city-picker-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.5);
}
.city-picker-overlay.show { display: block; }
.city-picker-panel {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    max-height: 75vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.25s ease;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.city-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}
.city-picker-header i { font-size: 18px; color: #999; cursor: pointer; padding: 4px; }
.city-picker-search {
    display: flex;
    align-items: center;
    margin: 10px 16px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 8px 12px;
    gap: 8px;
}
.city-picker-search i { color: #999; font-size: 14px; }
.city-picker-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
}
.city-picker-hot {
    padding: 0 16px 12px;
    border-bottom: 1px solid #f0f0f0;
}
.city-picker-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}
.city-picker-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.city-picker-tags span {
    padding: 6px 14px;
    background: #f0f7ff;
    color: #1890ff;
    border-radius: 14px;
    font-size: 13px;
    cursor: pointer;
}
.city-picker-tags span.active {
    background: #1890ff;
    color: #fff;
}
.city-picker-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 16px 20px;
}
.city-picker-group-title {
    font-size: 12px;
    color: #999;
    padding: 8px 0 4px;
    font-weight: 600;
}
.city-picker-group-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 4px;
}
.city-picker-group-cities span {
    padding: 6px 14px;
    background: #f5f5f5;
    color: #333;
    border-radius: 14px;
    font-size: 13px;
    cursor: pointer;
}
.city-picker-group-cities span.active {
    background: #1890ff;
    color: #fff;
}