.top-bar { padding: 12px 0; background: #fff; }
.container-xl { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 20px; font-weight: bold; color: #333; text-decoration: none; }
.nav-search-wrap { flex: 1; margin: 0 20px; }
.nav-search-tabs { display: flex; margin-bottom: 8px; }
.nav-search-tab { padding: 6px 12px; cursor: pointer; color: #666; }
.nav-search-tab.active { color: #fff; background: #b71c1c; border-radius: 4px 4px 0 0; }
.nav-search-input { height: 38px; border: 1px solid #ddd; border-radius: 4px; padding: 0 10px; font-size: 14px; width: 100%; }
.nav-search-btn { background: #b71c1c; color: #fff; border: none; height: 38px; padding: 0 16px; border-radius: 4px; cursor: pointer; }
.nav-search-btn:hover { background: #c62828; }

.start-wrapper, .dest-wrapper { position: relative; min-width: 120px; }
.select-arrow { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #999; cursor: pointer; }

.city-dropdown {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border: 1px solid #ddd; border-radius: 4px;
    z-index: 1000; margin-top: 2px; max-height: 200px; overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.city-option { padding: 8px 12px; cursor: pointer; }
.city-option:hover { background: #f5f5f5; }

.city-modal {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 999999 !important;
    justify-content: center; align-items: center;
}
.modal-backdrop {
    position: absolute; background: rgba(0,0,0,0.5); width: 100%; height: 100%;
    z-index: 999998;
}
.modal-content {
    background: #fff; border-radius: 8px; width: 600px;
    z-index: 999999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.modal-header {
    padding: 15px; border-bottom: 1px solid #eee;
    display: flex; justify-content: space-between; align-items: center;
}
.modal-header h5 { margin: 0; font-size: 16px; }
.close { font-size: 20px; cursor: pointer; color: #999; }
.close:hover { color: #b71c1c; }
.modal-body { padding: 20px; }

.search-input-wrap {
    position: relative;
    margin-bottom: 15px;
    max-width: 80%;
}
.search-input-wrap input {
    width: 100%;
    height: 32px;
    padding: 0 35px 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}
.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
}

.city-selector { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.city-selector select { padding: 8px 10px; border: 1px solid #ddd; border-radius: 4px; min-width: 120px; height: 38px; }
.btn-confirm { background: #b71c1c; color: #fff; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; height: 38px; }
.btn-confirm:hover { background: #c62828; }

.gap-6 { gap: 6px; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.w-100 { width: 100%; }
/* 顶部通栏基础样式 */
.top-header-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 6px 0;
    font-size: 14px;
}
.top-header-inner {
    height: 16px;
}
.welcome-area {
    color: #666;
}
.login-link {
    color: #dc3545;
    margin-left: 8px;
    text-decoration: none;
}
.login-link:hover {
    color: #c82333;
    text-decoration: underline;
}
.header-link-item {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.header-link-item:hover {
    color: #dc3545;
}
.header-link-item i {
    font-size: 16px;
}

/* 悬停二维码气泡核心样式（完全匹配参考图） */
.hover-qrcode-wrap {
    position: relative;
    display: inline-block;
}
.qrcode-popup {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 9999;
}
/* 气泡小三角（参考图的箭头效果） */
.qrcode-popup::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid #e9ecef;
    border-top: 1px solid #e9ecef;
    transform: translateX(-50%) rotate(45deg);
}
.qrcode-popup img {
    width: 160px;
    height: 160px;
    display: block;
}
.qrcode-popup p {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #666;
    text-align: center;
}
/* 悬停显示 */
.hover-qrcode-wrap:hover .qrcode-popup {
    opacity: 1;
    visibility: visible;
    margin-top: 4px;
}
/* 移动端适配 */
@media (max-width: 768px) {
    .top-header-bar {
        font-size: 12px;
    }
    .header-links {
        gap: 12px !important;
    }
    .header-link-item span {
        display: none;
    }
    /* 移动端隐藏悬停二维码，避免遮挡 */
    .qrcode-popup {
        display: none !important;
    }
}