/* ==========================================================================
   亲友地图 H5 前端
   UI 规范 1:1 对齐小程序（pages/index / map / welfare / mine）
   rpx → px 按 750rpx 设计稿 ÷2 换算
   ========================================================================== */

* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html, body { height:100%; }
body {
    background:#f0f2f5; color:#2d3748;
    font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue","Microsoft YaHei",sans-serif;
    font-size:14px; line-height:1.5; -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
}
button, input, select, textarea { font-family:inherit; font-size:inherit; color:inherit; outline:none; }
button { border:none; background:none; cursor:pointer; }
img { display:block; }

/* ===================== App Shell ===================== */
.h5-app { min-height:100vh; padding-bottom:68px; position:relative; }
.h5-main { padding:12px 14px 24px; }

/* ===================== TabBar ===================== */
.h5-tabbar {
    position:fixed; bottom:0; left:0; right:0;
    background:#fff; border-top:1px solid #e5e7eb;
    display:flex; z-index:200;
    padding-bottom:env(safe-area-inset-bottom);
}
.h5-tabbar-item {
    flex:1; display:flex; flex-direction:column;
    align-items:center; justify-content:center;
    padding:8px 0; color:#999; font-size:11px;
    transition:color .2s;
}
.h5-tabbar-item.active { color:#2B78E4; }
.h5-tabbar-ico { font-size:22px; line-height:1; margin-bottom:2px; }
.h5-tabbar-text { font-size:11px; }

/* ===================== 通用卡片 ===================== */
.h5-card {
    background:#fff; border-radius:10px;
    padding:14px 16px; margin-bottom:12px;
    box-shadow:0 1px 4px rgba(0,0,0,0.04);
}
.h5-card-blue  { background:linear-gradient(180deg,#f0f7ff 0%,#fff 100%); border-top:2px solid #4080ff; }
.h5-card-green { background:linear-gradient(180deg,#f0fff4 0%,#fff 100%); border-top:2px solid #10b981; }

/* ===================== 首页 ===================== */
.h5-home-card {
    background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
    border-radius:14px; padding:22px 20px; color:#fff; margin-bottom:12px;
    box-shadow:0 6px 20px rgba(102,126,234,0.3);
}
.h5-home-brand { text-align:center; margin-bottom:18px; }
.h5-home-title { font-size:22px; font-weight:700; margin-bottom:4px; }
.h5-home-desc { font-size:12px; opacity:.85; }
.h5-home-features { display:flex; justify-content:space-around; }
.h5-home-feat { text-align:center; }
.h5-feat-ico {
    width:44px; height:44px; border-radius:22px;
    background:rgba(255,255,255,0.2);
    display:flex; align-items:center; justify-content:center;
    font-size:22px; margin:0 auto 6px;
}
.h5-feat-text { font-size:12px; opacity:.9; }

.h5-home-list { display:flex; flex-direction:column; gap:10px; }
.h5-svc {
    display:flex; align-items:center; gap:12px;
    padding:16px; border-radius:12px;
    cursor:pointer; transition:opacity .15s;
}
.h5-svc:active { opacity:.85; }
.h5-svc-blue {
    background:linear-gradient(135deg,#4299e1 0%,#3182ce 100%);
    color:#fff; box-shadow:0 4px 14px rgba(66,153,225,0.35);
}
.h5-svc-green {
    background:linear-gradient(135deg,#48bb78 0%,#38a169 100%);
    color:#fff; box-shadow:0 4px 14px rgba(72,187,120,0.35);
}
.h5-svc-ico { font-size:28px; }
.h5-svc-info { flex:1; }
.h5-svc-title { font-size:15px; font-weight:600; margin-bottom:2px; }
.h5-svc-desc { font-size:12px; opacity:.85; }
.h5-svc-arrow { font-size:28px; opacity:.8; }

/* 广告位 */
.h5-ad-slot { margin-top:14px; background:#fff; border-radius:10px; padding:12px; }
.h5-ad-label { font-size:11px; color:#999; margin-bottom:8px; }
.h5-ad-content { min-height:80px; background:#f7fafc; border-radius:6px; display:flex; align-items:center; justify-content:center; color:#cbd5e0; font-size:12px; }

/* ===================== 地图 ===================== */
.h5-map-wrap {
    position:relative; height:calc(100vh - 68px - 24px - 12px);
    border-radius:12px; overflow:hidden; background:#e6f2ff;
    margin:-12px -14px 0;
}
.h5-map-canvas { position:absolute; inset:0; width:100%; height:100%; }
.h5-no-bind {
    position:absolute; inset:0;
    display:flex; flex-direction:column;
    align-items:center; justify-content:center;
    text-align:center; padding:24px;
}
.h5-no-bind-ico { font-size:48px; margin-bottom:12px; }
.h5-no-bind-title { font-size:16px; font-weight:600; color:#2d3748; margin-bottom:6px; }
.h5-no-bind-desc { font-size:12px; color:#718096; margin-bottom:18px; }
.h5-no-bind-btn {
    padding:10px 24px; background:#4080ff; color:#fff;
    border-radius:20px; font-size:13px;
}

/* 提醒横幅 */
.h5-alert-banner {
    position:absolute; top:12px; left:12px; right:12px;
    background:rgba(255,77,79,0.95); color:#fff;
    border-radius:8px; padding:10px 14px;
    display:none; align-items:center; gap:8px;
    box-shadow:0 2px 10px rgba(0,0,0,0.2); z-index:10;
}
.h5-alert-banner.show { display:flex; }
.h5-alert-ico { font-size:18px; }
.h5-alert-text { flex:1; font-size:13px; }
.h5-alert-close { font-size:20px; line-height:1; cursor:pointer; }

/* 浮动按钮 */
.h5-float-btns {
    position:absolute; right:12px; bottom:180px;
    display:flex; flex-direction:column; gap:10px; z-index:10;
}
.h5-float-btn {
    width:44px; height:44px; background:rgba(255,255,255,0.95);
    border-radius:22px; display:flex; align-items:center; justify-content:center;
    box-shadow:0 2px 10px rgba(0,0,0,0.15);
    font-size:20px; cursor:pointer; transition:transform .15s;
}
.h5-float-btn:active { transform:scale(0.92); }
.h5-float-live { background:rgba(255,77,79,0.95); color:#fff; }

/* 底部卡片 */
.h5-bottom-card {
    position:absolute; left:0; right:0; bottom:0;
    background:#fff; border-top-left-radius:16px; border-top-right-radius:16px;
    padding:16px 18px 20px; box-shadow:0 -2px 12px rgba(0,0,0,0.1);
    z-index:10;
}
.h5-dist-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.h5-dist-label { font-size:18px; font-weight:700; color:#2d3748; }
.h5-refresh-time { font-size:11px; color:#a0aec0; }
.h5-action-row { display:flex; gap:10px; margin-top:14px; }
.h5-action-btn {
    flex:1; height:40px; border-radius:8px; font-size:14px;
    display:flex; align-items:center; justify-content:center; color:#fff;
    font-weight:500;
}
.h5-btn-purple { background:linear-gradient(135deg,#764ba2 0%,#667eea 100%); }
.h5-btn-orange { background:linear-gradient(135deg,#f59e0b 0%,#ef6c00 100%); }
.h5-scale-bar {
    display:flex; align-items:center; gap:8px; margin-top:12px;
    font-size:11px; color:#a0aec0;
}
.h5-scale-dot { width:6px; height:6px; border-radius:3px; background:#a0aec0; }

/* ===================== 会员 ===================== */
.h5-member-card {
    background:#fff; border-radius:14px; padding:0;
    box-shadow:0 2px 10px rgba(0,0,0,0.06); margin-bottom:12px; overflow:hidden;
}
.h5-member-active { border:1px solid #48bb78; }

.h5-price-card { padding:18px 20px; }
.h5-price-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.h5-price-tag { background:#fff0f0; color:#f56565; padding:3px 10px; border-radius:4px; font-size:12px; }
.h5-save-tag { background:#fef3c7; color:#d97706; padding:3px 10px; border-radius:4px; font-size:12px; font-weight:600; }
.h5-price-cur { display:flex; align-items:baseline; }
.h5-price-sym { font-size:16px; color:#f56565; font-weight:600; }
.h5-price-num { font-size:34px; color:#f56565; font-weight:700; line-height:1; }
.h5-price-org { margin-left:8px; font-size:13px; color:#a0aec0; }
.h5-price-del { text-decoration:line-through; }
.h5-price-bot { font-size:12px; color:#718096; margin-top:10px; }

.h5-active-info {
    text-align:center; padding:22px 20px;
    background:linear-gradient(135deg,#48bb78 0%,#38a169 100%);
    color:#fff;
}
.h5-active-title { font-size:20px; font-weight:700; margin-bottom:4px; }
.h5-active-expire { font-size:13px; opacity:.9; }

.h5-priv-grid {
    display:grid; grid-template-columns:repeat(3,1fr);
    gap:10px; padding:16px;
}
.h5-priv-cell {
    display:flex; flex-direction:column; align-items:center;
    padding:12px 6px; text-align:center; gap:6px;
}
.h5-priv-cell span:first-child { font-size:22px; }
.h5-priv-cell span:last-child { font-size:11px; color:#4a5568; }
.h5-priv-cell .h5-locked { filter:grayscale(1); opacity:.6; }

.h5-subscribe-btn {
    width:calc(100% - 32px); margin:0 16px 20px;
    height:48px; border-radius:24px;
    background:linear-gradient(135deg,#ff9500 0%,#ff2d55 100%);
    color:#fff; font-size:16px; font-weight:700;
    position:relative; overflow:hidden;
    box-shadow:0 4px 14px rgba(255,45,85,0.3);
}
.h5-subscribe-btn:active { opacity:.9; }
.h5-shine {
    position:absolute; top:0; left:-50%; width:50%; height:100%;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,0.3),transparent);
    animation:shine 2.5s infinite;
}
@keyframes shine { 0%{left:-50%} 100%{left:150%} }

.h5-upgrade-row {
    display:flex; gap:10px; padding:0 16px 18px;
}
.h5-upgrade-btn {
    flex:1; height:40px; border-radius:8px;
    display:flex; align-items:center; justify-content:center; font-size:13px;
}
.h5-up-left { background:#e2e8f0; color:#a0aec0; }
.h5-up-right { background:linear-gradient(135deg,#4299e1 0%,#3182ce 100%); color:#fff; }

/* 签到卡 */
.h5-checkin-card {
    background:#fff; border-radius:12px; padding:16px 18px;
    box-shadow:0 1px 6px rgba(0,0,0,0.04);
}
.h5-checkin-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:4px; }
.h5-checkin-title { font-size:15px; font-weight:600; color:#2d3748; }
.h5-checkin-status { font-size:12px; color:#a0aec0; }
.h5-checkin-tip { font-size:12px; color:#718096; margin-bottom:14px; }
.h5-checkin-btns { display:flex; gap:10px; }
.h5-checkin-btn {
    flex:1; height:40px; border-radius:8px; font-size:14px;
    background:linear-gradient(135deg,#ff9500 0%,#ff7a00 100%);
    color:#fff; font-weight:600;
}
.h5-checkin-btn:active { opacity:.9; }
.h5-checkin-exchange { background:linear-gradient(135deg,#4299e1 0%,#3182ce 100%); }
.h5-checkin-btn:disabled { background:#e2e8f0; color:#a0aec0; }

/* ===================== 我的 ===================== */
.h5-user-card {
    display:flex; align-items:center; gap:14px;
    padding:18px 16px; position:relative;
}
.h5-avatar-wrap { display:flex; flex-direction:column; align-items:center; }
.h5-avatar {
    width:60px; height:60px; border-radius:50%;
    background:linear-gradient(135deg,#4080ff 0%,#6b9dff 100%);
    display:flex; align-items:center; justify-content:center;
    font-size:28px; color:#fff;
    border:3px solid #fff; box-shadow:0 2px 8px rgba(0,0,0,0.12);
}
.h5-avatar.has-img { background-size:cover; background-position:center; }
.h5-avatar-btn {
    margin-top:6px; padding:3px 10px;
    background:#f0f7ff; color:#4080ff;
    border:1px solid #4080ff; border-radius:12px;
    font-size:11px; line-height:1.4;
}
.h5-user-info { flex:1; min-width:0; }
.h5-user-phone { font-size:15px; font-weight:600; color:#2d3748; margin-bottom:8px; }
.h5-bind-tip { font-size:11px; color:#4080ff; border:1px solid #4080ff; padding:1px 8px; border-radius:10px; margin-left:6px; font-weight:400; }
.h5-user-coins {
    display:inline-flex; align-items:center; gap:4px;
    padding:4px 14px; background:linear-gradient(135deg,#fff5d6 0%,#ffe9a8 100%);
    border:1px solid #ffd766; border-radius:12px;
    font-size:12px; color:#8a5a00;
}
.h5-coin-val { font-weight:700; color:#ff7a00; font-size:14px; }
.h5-coin-arrow { color:#c98a00; font-size:14px; }
.h5-logout-btn {
    position:absolute; right:14px; top:50%; transform:translateY(-50%);
    padding:4px 12px; background:#ffc0cb; color:#333;
    border-radius:16px; font-size:12px; font-weight:500;
}

/* 菜单项 */
.h5-menu-item {
    display:flex; align-items:center; gap:12px;
    padding:13px 0; border-bottom:1px solid #f0f0f0;
    cursor:pointer; transition:opacity .15s;
}
.h5-menu-item:last-child { border-bottom:none; }
.h5-menu-item:active { opacity:.6; }
.h5-mi-ico { font-size:20px; width:24px; text-align:center; }
.h5-mi-text { flex:1; font-size:15px; color:#333; }
.h5-mi-arrow { font-size:18px; color:#ccc; }

.h5-card-blue .h5-mi-text { color:#1a4a8a; }
.h5-card-blue .h5-mi-arrow { color:#4080ff; }
.h5-card-green .h5-mi-text { color:#1a5e20; }
.h5-card-green .h5-mi-arrow { color:#10b981; }

.h5-menu-switch { gap:8px; }
.h5-switch-tag {
    font-size:10px; color:#ff9500; background:#fff7e6;
    padding:2px 8px; border-radius:10px; margin-right:8px;
}
.h5-switch { position:relative; width:40px; height:22px; flex-shrink:0; }
.h5-switch input { opacity:0; width:0; height:0; }
.h5-switch-track {
    position:absolute; inset:0; background:#e2e8f0; border-radius:22px;
    transition:background .2s;
}
.h5-switch-track::after {
    content:''; position:absolute; top:2px; left:2px;
    width:18px; height:18px; border-radius:50%;
    background:#fff; box-shadow:0 1px 3px rgba(0,0,0,0.2);
    transition:transform .2s;
}
.h5-switch input:checked + .h5-switch-track { background:#4080ff; }
.h5-switch input:checked + .h5-switch-track::after { transform:translateX(18px); }
.h5-switch input:disabled + .h5-switch-track { background:#cbd5e0; }

/* ===================== 弹窗 ===================== */
.h5-modal { position:fixed; inset:0; z-index:999; display:none; }
.h5-modal.show { display:flex; align-items:center; justify-content:center; }
.h5-modal-mask { position:absolute; inset:0; background:rgba(0,0,0,0.5); }
.h5-modal-box {
    position:relative; background:#fff; border-radius:14px;
    width:85%; max-width:360px; overflow:hidden;
    animation:h5pop .2s ease;
}
@keyframes h5pop { from{transform:scale(.9);opacity:0} to{transform:scale(1);opacity:1} }

.h5-modal-head {
    display:flex; align-items:center; justify-content:space-between;
    padding:16px 18px; border-bottom:1px solid #f0f0f0;
}
.h5-modal-title { font-size:16px; font-weight:600; color:#2d3748; }
.h5-modal-close { font-size:24px; color:#999; cursor:pointer; line-height:1; }
.h5-modal-body { padding:18px; max-height:60vh; overflow-y:auto; }
.h5-modal-footer {
    display:flex; gap:10px; padding:14px 18px;
    border-top:1px solid #f0f0f0;
}

.h5-btn {
    flex:1; height:40px; border-radius:8px;
    display:flex; align-items:center; justify-content:center;
    font-size:14px; font-weight:500; border:none;
    transition:opacity .15s;
}
.h5-btn:active { opacity:.85; }
.h5-btn-cancel { background:#f5f5f5; color:#666; }
.h5-btn-primary { background:#4080ff; color:#fff; }
.h5-btn-danger { background:#ff4d4f; color:#fff; }

/* 客服弹窗内容 */
.h5-loading { display:flex; flex-direction:column; align-items:center; padding:30px 0; gap:10px; color:#999; font-size:12px; }
.h5-spinner {
    width:32px; height:32px; border:3px solid #e2e8f0; border-top-color:#4080ff;
    border-radius:50%; animation:spin 1s linear infinite;
}
@keyframes spin { to{transform:rotate(360deg)} }
.h5-contact-qrcode { text-align:center; margin-bottom:18px; }
.h5-contact-qrcode img { width:200px; height:200px; border-radius:8px; margin:0 auto; }
.h5-contact-qrcode-tip { font-size:11px; color:#999; margin-top:8px; }
.h5-contact-actions { display:flex; gap:10px; }
.h5-contact-btn {
    flex:1; height:38px; border-radius:6px; font-size:13px;
    display:flex; align-items:center; justify-content:center;
}
.h5-contact-copy { background:#f0f0f0; color:#666; }
.h5-contact-call { background:#4080ff; color:#fff; }
.h5-contact-empty { text-align:center; padding:20px; color:#999; font-size:13px; }

/* 确认弹窗 */
.h5-modal-confirm { text-align:center; }
.h5-confirm-ico { font-size:36px; margin-top:20px; }
.h5-confirm-title { font-size:16px; font-weight:600; color:#2d3748; margin:10px 0; }
.h5-confirm-text { font-size:13px; color:#718096; padding:0 20px; line-height:1.6; margin-bottom:18px; }

/* 绑定手机号输入 */
.h5-bind-tip { font-size:12px; color:#718096; margin-bottom:12px; }
.h5-bind-input {
    width:100%; height:44px; padding:0 14px;
    border:2px solid #e0e0e0; border-radius:8px;
    font-size:16px; background:#fafafa;
}
.h5-bind-input:focus { border-color:#4080ff; background:#fff; }

/* ===================== Toast ===================== */
.h5-toast {
    position:fixed; top:50%; left:50%;
    transform:translate(-50%,-50%) scale(.9);
    background:rgba(0,0,0,0.8); color:#fff;
    padding:10px 20px; border-radius:8px; font-size:14px;
    z-index:9999; opacity:0; pointer-events:none;
    transition:opacity .2s, transform .2s;
    max-width:70%; text-align:center;
}
.h5-toast.show { opacity:1; transform:translate(-50%,-50%) scale(1); }

/* ==========================================================================
   v1.0.5 手机外部浏览器版（定位查询 / 号码状态查询 / 支付宝H5支付）
   新版式类名统一 qy- 前缀，与上方旧版样式互不影响
   ========================================================================== */

/* 覆盖旧 App Shell 的底部 tabbar 占位 */
.qy-app { min-height:100vh; padding-bottom:24px; }
.qy-view { padding:12px 14px 28px; max-width:560px; margin:0 auto; }

/* 顶部品牌条 */
.qy-hero {
    background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
    border-radius:14px; padding:18px 20px; color:#fff; margin-bottom:12px;
    box-shadow:0 6px 20px rgba(102,126,234,0.28);
}
.qy-hero-title { font-size:21px; font-weight:700; margin-bottom:4px; }
.qy-hero-desc { font-size:12.5px; opacity:.9; }

/* 地图（保留原地图视觉，仅调整容器尺寸以适配新布局） */
.qy-map-box {
    position:relative; height:44vh; min-height:240px; max-height:360px;
    border-radius:12px; overflow:hidden; background:#e6f2ff;
    margin-bottom:12px; box-shadow:0 1px 4px rgba(0,0,0,0.05);
    /* 创建独立层叠上下文：把腾讯 GL 地图内部高 z-index 控件（指南针/缩放/logo/比例尺）
       限制在本地图容器内，弹窗(z-index:900)显示时整体压在其下层，杜绝控件穿透 */
    z-index:1;
    isolation:isolate;
}
.qy-map-canvas { position:absolute; inset:0; width:100%; height:100%; }
.qy-map-canvas.qy-map-fallback {
    background:
        radial-gradient(circle at 30% 40%, rgba(64,128,255,0.18) 0, transparent 40%),
        radial-gradient(circle at 70% 65%, rgba(56,161,105,0.16) 0, transparent 42%),
        linear-gradient(135deg,#e6f2ff 0%,#c5dbff 100%);
}
.qy-map-badge {
    position:absolute; left:10px; top:10px; z-index:5;
    background:rgba(255,255,255,0.92); color:#4a5568;
    font-size:11px; padding:4px 10px; border-radius:20px;
    box-shadow:0 1px 4px rgba(0,0,0,0.12);
}

/* 卡片 */
.qy-card {
    background:#fff; border-radius:14px; padding:18px 16px;
    box-shadow:0 2px 12px rgba(45,55,72,0.06);
}
.qy-query-card { margin-bottom:12px; }

.qy-label { display:block; font-size:13px; font-weight:600; color:#4a5568; margin-bottom:8px; }

.qy-input-wrap {
    display:flex; align-items:center; gap:8px;
    border:2px solid #e2e8f0; border-radius:10px;
    background:#f8fafc; padding:0 14px; transition:border-color .15s, background .15s;
}
.qy-input-wrap:focus-within { border-color:#667eea; background:#fff; }
.qy-input-ico { font-size:18px; flex:none; }
.qy-input {
    flex:1; height:50px; border:none; background:transparent;
    font-size:18px; letter-spacing:1px; color:#2d3748;
}

/* 价格行 */
.qy-price-line {
    display:flex; align-items:center; justify-content:space-between;
    margin:14px 2px 14px; font-size:12.5px; color:#718096;
}
.qy-price-line strong { font-size:15px; color:#e53e3e; font-weight:700; }
.qy-price-line em { font-style:normal; font-size:18px; }

/* 按钮 */
.qy-btn {
    height:48px; border-radius:24px; font-size:16px; font-weight:600;
    display:inline-flex; align-items:center; justify-content:center;
    transition:opacity .15s, transform .1s; padding:0 20px;
}
.qy-btn:active { transform:scale(.98); }
.qy-btn-primary {
    width:100%; color:#fff; border:none;
    background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
    box-shadow:0 6px 16px rgba(102,126,234,0.35);
}
.qy-btn-green {
    width:100%; color:#fff;
    background:linear-gradient(135deg,#48bb78 0%,#38a169 100%);
    box-shadow:0 6px 16px rgba(72,187,120,0.32);
}
.qy-btn-cancel {
    flex:1; color:#718096; background:#f1f5f9;
}
.qy-btn-ghost {
    width:80%; max-width:280px; color:#667eea; background:#eef2ff; margin-top:12px;
}
.qy-btn-block { width:100%; }

.qy-footnote { text-align:center; font-size:11px; color:#a0aec0; margin-top:12px; }

/* 状态查询页导航条 */
.qy-navbar {
    display:flex; align-items:center; justify-content:space-between;
    height:46px; margin:-12px -14px 12px; padding:0 8px;
    background:#fff; border-bottom:1px solid #edf0f5;
    position:sticky; top:0; z-index:20;
}
.qy-navbar-back {
    width:36px; height:36px; display:flex; align-items:center; justify-content:center;
    font-size:26px; color:#2d3748; line-height:1;
}
.qy-navbar-title { font-size:16px; font-weight:600; color:#2d3748; }
.qy-navbar-placeholder { width:36px; }

.qy-status-banner {
    display:flex; align-items:center; gap:12px;
    background:linear-gradient(135deg,#eff6ff 0%,#f0fff4 100%);
    border:1px solid #dbeafe; border-radius:10px;
    padding:14px; margin-bottom:16px;
}
.qy-status-ico { font-size:28px; }
.qy-status-title { font-size:14px; font-weight:600; color:#2d3748; margin-bottom:2px; }
.qy-status-desc { font-size:12px; color:#718096; }

/* 支付返回页 */
.qy-return-box {
    min-height:70vh; display:flex; flex-direction:column;
    align-items:center; justify-content:center; text-align:center; padding:30px 20px;
}
.qy-return-title { font-size:17px; font-weight:600; color:#2d3748; margin:22px 0 8px; }
.qy-return-desc { font-size:13px; color:#a0aec0; line-height:1.7; max-width:300px; }
.qy-return-spinner {
    width:46px; height:46px; border-radius:50%;
    border:4px solid #e2e8f0; border-top-color:#667eea;
    animation:qy-spin 0.9s linear infinite;
}

/* 遮罩 + 弹窗 */
.qy-mask {
    position:fixed; inset:0; z-index:900;
    background:rgba(15,23,42,0.55);
    display:flex; align-items:center; justify-content:center;
    padding:32px 26px;
}
.qy-mask-loading { background:rgba(15,23,42,0.35); }
.qy-dialog {
    width:100%; max-width:320px; background:#fff;
    border-radius:16px; padding:24px 20px 18px;
    text-align:center; animation:qy-pop .18s ease;
    box-shadow:0 12px 40px rgba(0,0,0,0.2);
}
@keyframes qy-pop {
    from { transform:scale(.92); opacity:0; }
    to   { transform:scale(1); opacity:1; }
}
.qy-dialog-ico { font-size:40px; line-height:1; margin-bottom:10px; }
.qy-dialog-title { font-size:17px; font-weight:700; color:#1f2937; margin-bottom:10px; }
.qy-dialog-text { font-size:14px; color:#4b5563; line-height:1.75; margin-bottom:18px; }
.qy-dialog-text strong { color:#e53e3e; }
.qy-dialog-footer { display:flex; }
.qy-dialog-footer-2 { gap:12px; }
.qy-dialog-footer-2 .qy-btn { flex:1; width:auto; height:44px; font-size:15px; }

/* 加载弹窗 */
.qy-loading-box {
    background:#fff; border-radius:14px; padding:26px 30px;
    display:flex; flex-direction:column; align-items:center; gap:14px;
    box-shadow:0 12px 40px rgba(0,0,0,0.2);
}
.qy-loading-text { font-size:14px; color:#4b5563; }
.qy-spinner {
    width:38px; height:38px; border-radius:50%;
    border:4px solid #e2e8f0; border-top-color:#667eea;
    animation:qy-spin .8s linear infinite;
}
@keyframes qy-spin { to { transform:rotate(360deg); } }

/* 结果弹窗（贴近真实号码查询页） */
.qy-dialog-result {
    max-width:360px; padding:0; overflow:hidden; text-align:left;
}
.qy-result-head {
    display:flex; align-items:center; justify-content:space-between;
    padding:16px 18px; border-bottom:1px solid #f1f5f9;
}
.qy-result-head > span:first-child { font-size:16px; font-weight:700; color:#1f2937; }
.qy-result-close {
    width:28px; height:28px; line-height:26px; text-align:center;
    font-size:22px; color:#9ca3af; border-radius:50%; cursor:pointer;
}
.qy-result-body { padding:14px 18px; max-height:56vh; overflow-y:auto; }
.qy-result-row {
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    padding:11px 0; border-bottom:1px dashed #eef2f7; font-size:13.5px;
}
.qy-result-row:last-child { border-bottom:none; }
.qy-result-k { color:#6b7280; flex:none; }
.qy-result-v { color:#1f2937; font-weight:600; text-align:right; word-break:break-all; }
.qy-result-note { font-size:11px; color:#9ca3af; text-align:center; padding-top:10px; }
.qy-badge { display:inline-block; font-size:12.5px; font-weight:600; padding:3px 10px; border-radius:14px; }
.qy-badge-green { background:#e8f8f1; color:#0f9d58; }
.qy-badge-orange { background:#fff5e5; color:#b4740a; }
.qy-dialog-result .qy-dialog-footer { padding:12px 18px 18px; }
.qy-dialog-result .qy-btn { height:42px; font-size:15px; }

/* Toast */
.qy-toast {
    position:fixed; top:50%; left:50%;
    transform:translate(-50%,-50%) scale(.92);
    background:rgba(0,0,0,0.82); color:#fff;
    padding:11px 22px; border-radius:10px; font-size:14px;
    z-index:9999; opacity:0; pointer-events:none;
    transition:opacity .2s, transform .2s;
    max-width:74%; text-align:center; line-height:1.6;
}
.qy-toast.show { opacity:1; transform:translate(-50%,-50%) scale(1); }

/* 小屏微调 */
@media (max-height:640px) {
    .qy-map-box { height:38vh; min-height:200px; }
}

/* ==========================================================================
   v1.0.6 SPA 改版
   固定底部菜单 / 首页功能卡片 / 地图页头 / 我的 / 客服二维码弹窗
   ========================================================================== */

/* App 底部为固定菜单留出空间（覆盖 v1.0.5 的 24px） */
.qy-app { min-height:100vh; padding-bottom:calc(74px + env(safe-area-inset-bottom)); }

/* ===================== 固定悬浮底部菜单栏 ===================== */
.qy-tabbar {
    position:fixed; left:0; right:0; bottom:0; z-index:300;
    display:flex; background:rgba(255,255,255,0.98);
    border-top:1px solid #edeef3;
    box-shadow:0 -2px 14px rgba(45,55,72,0.07);
    padding:6px 0 calc(6px + env(safe-area-inset-bottom));
}
.qy-tabbar.hidden { display:none; }
.qy-tab-item {
    flex:1; display:flex; flex-direction:column; align-items:center;
    gap:3px; color:#9aa3b2; font-size:11px; line-height:1;
    transition:color .18s; cursor:pointer;
}
.qy-tab-ico {
    font-size:21px; line-height:1; opacity:.7; filter:grayscale(.35);
    transition:transform .18s, opacity .18s, filter .18s;
}
.qy-tab-item.active { color:#667eea; font-weight:700; }
.qy-tab-item.active .qy-tab-ico {
    opacity:1; filter:none; transform:translateY(-1px) scale(1.08);
}
.qy-tab-item.active .qy-tab-text::after {
    content:''; display:block; width:16px; height:3px; border-radius:2px;
    background:linear-gradient(90deg,#667eea,#764ba2);
    margin:3px auto 0;
}

/* ===================== 首页：分区标题 ===================== */
.qy-section-label {
    font-size:13px; font-weight:700; color:#4a5568;
    margin:16px 4px 10px;
}

/* ===================== 首页：功能卡片 ===================== */
.qy-fun-card {
    background:#fff; border-radius:16px; overflow:hidden;
    margin-bottom:14px; cursor:pointer;
    box-shadow:0 4px 16px rgba(45,55,72,0.07);
    transition:transform .12s, box-shadow .12s;
}
.qy-fun-card:active {
    transform:scale(.985);
    box-shadow:0 2px 8px rgba(45,55,72,0.1);
}
.qy-fun-preview { position:relative; height:152px; overflow:hidden; }

/* 亲友地图卡片：静态地图预览图（加载失败显示蓝紫渐变兜底） */
.qy-fun-preview-map img { width:100%; height:100%; object-fit:cover; }
.qy-fun-preview-fallback {
    position:absolute; inset:0; display:none;
    align-items:center; justify-content:center;
    background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
}
.qy-fun-preview-fallback span { font-size:50px; }
.qy-fun-preview.imgfail img { display:none; }
.qy-fun-preview.imgfail .qy-fun-preview-fallback { display:flex; }

/* 号码查询卡片：绿色渐变预览 */
.qy-fun-preview-status {
    display:flex; align-items:center; justify-content:center;
    background:linear-gradient(135deg,#48bb78 0%,#38a169 100%);
}
.qy-fun-preview-ico { font-size:54px; }

/* 悬浮“进入”遮罩（移动端按下时显示） */
.qy-fun-preview-mask {
    position:absolute; inset:0;
    background:rgba(30,27,75,0.30);
    display:flex; align-items:center; justify-content:center;
    opacity:0; transition:opacity .18s;
}
.qy-fun-card:active .qy-fun-preview-mask { opacity:1; }
.qy-fun-preview-btn {
    background:rgba(255,255,255,0.94); color:#667eea;
    font-size:13px; font-weight:700;
    padding:7px 20px; border-radius:20px;
    box-shadow:0 3px 10px rgba(0,0,0,0.15);
}

/* 卡片信息区 */
.qy-fun-info { padding:14px 16px 15px; }
.qy-fun-title { font-size:16px; font-weight:700; color:#1f2937; margin-bottom:3px; }
.qy-fun-desc { font-size:12.5px; color:#8a94a6; margin-bottom:10px; }
.qy-fun-meta { display:flex; align-items:center; justify-content:space-between; }
.qy-fun-price { font-size:12px; color:#9aa3b2; }
.qy-fun-price em {
    font-style:normal; font-size:19px; font-weight:800;
    color:#e53e3e; margin:0 1px;
}
.qy-fun-price-green em { color:#1f9d63; }
.qy-fun-go { font-size:12.5px; color:#667eea; font-weight:600; }

/* ===================== 地图页头 ===================== */
.qy-map-head { margin-bottom:12px; padding:2px 2px 0; }
.qy-map-head-title { font-size:18px; font-weight:800; color:#1f2937; }
.qy-map-head-desc { font-size:12px; color:#8a94a6; margin-top:2px; }

/* ===================== 我的 ===================== */
.qy-mine-head {
    border-radius:16px; padding:24px 18px 22px;
    color:#fff; text-align:center;
    background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
    box-shadow:0 6px 20px rgba(102,126,234,0.3);
    margin-bottom:12px;
}
.qy-mine-avatar {
    width:62px; height:62px; border-radius:50%; margin:0 auto 9px;
    background:rgba(255,255,255,0.2);
    border:2px solid rgba(255,255,255,0.65);
    display:flex; align-items:center; justify-content:center;
    font-size:30px;
}
.qy-mine-name { font-size:17px; font-weight:700; }
.qy-mine-tag {
    display:inline-block; margin-top:6px;
    font-size:11.5px; opacity:.92;
    background:rgba(255,255,255,0.18);
    padding:2px 12px; border-radius:20px;
}

/* 三格统计 */
.qy-mine-stats {
    display:flex; background:#fff; border-radius:16px;
    box-shadow:0 2px 12px rgba(45,55,72,0.06); margin-bottom:12px;
}
.qy-stat { flex:1; text-align:center; padding:15px 4px; }
.qy-stat + .qy-stat { border-left:1px solid #f1f3f8; }
.qy-stat b { display:block; font-size:18px; font-weight:800; color:#1f2937; }
.qy-stat b em { font-style:normal; }
.qy-stat span { display:block; font-size:11.5px; color:#9aa3b2; margin-top:3px; }

/* 我的卡片 */
.qy-mine-card { margin-bottom:12px; }
.qy-mine-card-title {
    display:flex; align-items:center; justify-content:space-between;
    font-size:15px; font-weight:700; color:#1f2937; margin-bottom:12px;
}
.qy-mine-refresh { font-size:12.5px; font-weight:600; color:#667eea; cursor:pointer; }
.qy-mine-save { width:100%; margin-top:14px; }
.qy-mine-hint { font-size:11.5px; color:#a0aec0; text-align:center; margin-top:10px; }

/* 订单列表 */
.qy-order-list { display:flex; flex-direction:column; }
.qy-order-empty { padding:26px 10px; text-align:center; color:#aeb6c4; font-size:13px; }
.qy-order-item {
    display:flex; align-items:center; justify-content:space-between;
    gap:10px; padding:12px 0; border-bottom:1px dashed #eef1f6;
}
.qy-order-item:last-child { border-bottom:none; padding-bottom:2px; }
.qy-order-item:first-child { padding-top:2px; }
.qy-order-main { min-width:0; flex:1; }
.qy-order-name { font-size:14px; font-weight:600; color:#2d3748; }
.qy-order-no { font-size:11px; color:#aab2c0; margin-top:3px; line-height:1.6; word-break:break-all; }
.qy-order-right { text-align:right; flex:none; }
.qy-order-amount { font-size:14px; font-weight:700; color:#1f2937; }
.qy-order-status {
    display:inline-block; margin-top:3px;
    font-size:11px; padding:2px 9px; border-radius:12px;
}
.qy-ost-green  { background:#e8f8f1; color:#0f9d58; }
.qy-ost-orange { background:#fff5e5; color:#b4740a; }
.qy-ost-gray   { background:#f1f3f7; color:#8a94a6; }

/* 联系客服大按钮 */
.qy-btn-service {
    width:100%; color:#fff; margin-top:2px;
    background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
    box-shadow:0 6px 16px rgba(102,126,234,0.32);
}

/* ===================== 联系客服弹窗 ===================== */
.qy-service-dialog { position:relative; max-width:310px; padding:24px 20px 20px; }
.qy-service-close {
    position:absolute; right:10px; top:8px;
    width:30px; height:30px; line-height:28px; text-align:center;
    font-size:24px; color:#9ca3af; border-radius:50%; cursor:pointer;
}
.qy-service-close:active { background:#f3f4f8; }
.qy-service-title { font-size:17px; font-weight:700; color:#1f2937; }
.qy-service-sub { font-size:12px; color:#9aa3b2; margin-top:3px; }
.qy-service-imgwrap {
    width:200px; height:200px; margin:16px auto 0;
    border-radius:12px; overflow:hidden; background:#f6f7fb;
    display:flex; align-items:center; justify-content:center;
}
.qy-service-imgwrap img { width:100%; height:100%; object-fit:cover; }
.qy-service-empty { font-size:12.5px; color:#aab2c0; line-height:1.9; }
.qy-service-tip { font-size:11.5px; color:#8a94a6; margin-top:14px; }

/* 小屏微调 */
@media (max-height:640px) {
    .qy-fun-preview { height:132px; }
}

/* ==========================================================================
   v1.1.0 首页视觉改版（风格对齐「亲友地图」小程序参考图）
   - 仅首页 UI 样式，业务逻辑 / 元素 ID 全部保留
   - 浅紫渐变背景 + 白色标题卡片 + 蓝/橙渐变功能大卡 + SVG 底部菜单
   ========================================================================== */

/* ---------------- 首页整屏浅紫渐变背景 ---------------- */
#viewHome {
    max-width:none;
    margin:0;
    padding:14px 0 34px;
    min-height:calc(100vh - 74px - env(safe-area-inset-bottom));
    background:linear-gradient(180deg,#d4cef0 0%,#e0dcf5 210px,#f0eff9 56%,#eceef7 100%);
}
.qy-home-inner { max-width:560px; margin:0 auto; padding:0 14px; }

/* ---------------- 顶部白色标题卡片 ---------------- */
.qy-home-hero {
    background:#fff;
    border-radius:20px;
    padding:28px 20px 26px;
    text-align:center;
    box-shadow:0 10px 30px rgba(88,84,160,0.12);
    margin-bottom:18px;
}
.qy-home-hero-title {
    font-size:26px;
    font-weight:800;
    color:#3f3860;
    letter-spacing:3px;
    line-height:1.2;
}
.qy-home-hero-desc {
    font-size:13.5px;
    color:#9aa1b3;
    margin-top:10px;
    letter-spacing:.5px;
}
.qy-home-tags {
    display:flex;
    justify-content:space-around;
    margin-top:24px;
}
.qy-home-tag {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
}
.qy-home-tag-ico {
    width:54px;
    height:54px;
    border-radius:50%;
    background:linear-gradient(135deg,#6b6fe0 0%,#865fc6 100%);
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 7px 15px rgba(107,111,224,0.35);
}
.qy-home-tag-ico svg { width:26px; height:26px; display:block; }
.qy-home-tag-text { font-size:13px; color:#5b6478; font-weight:500; }

/* ---------------- 功能入口渐变卡片 ---------------- */
.qy-entry {
    position:relative;
    display:flex;
    align-items:center;
    gap:14px;
    border-radius:18px;
    padding:19px 16px;
    margin-bottom:16px;
    color:#fff;
    cursor:pointer;
    overflow:hidden;
    transition:transform .12s, box-shadow .12s;
}
.qy-entry:active {
    transform:scale(.98);
    box-shadow:0 5px 14px rgba(45,55,72,0.18);
}
/* 右上角柔光高光，增强渐变质感 */
.qy-entry::after {
    content:'';
    position:absolute;
    right:-34px;
    top:-46px;
    width:150px;
    height:150px;
    border-radius:50%;
    background:rgba(255,255,255,0.13);
    pointer-events:none;
}
.qy-entry-blue {
    background:linear-gradient(118deg,#2f7fea 0%,#33a4f2 48%,#37d9cd 100%);
    box-shadow:0 10px 24px rgba(47,127,234,0.32);
}
.qy-entry-orange {
    background:linear-gradient(118deg,#f6901b 0%,#f8a52b 50%,#ffcd5a 100%);
    box-shadow:0 10px 24px rgba(246,144,27,0.30);
}
.qy-entry-ico {
    flex:none;
    width:54px;
    height:54px;
    border-radius:15px;
    background:rgba(255,255,255,0.22);
    display:flex;
    align-items:center;
    justify-content:center;
}
.qy-entry-ico svg { width:28px; height:28px; display:block; }
.qy-entry-main { flex:1; min-width:0; }
.qy-entry-title {
    font-size:18.5px;
    font-weight:700;
    letter-spacing:1px;
    line-height:1.2;
}
.qy-entry-desc {
    margin-top:6px;
    font-size:12px;
    color:rgba(255,255,255,0.92);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    letter-spacing:.2px;
}
.qy-entry-arrow {
    flex:none;
    opacity:.88;
    display:flex;
}
.qy-entry-arrow svg { width:22px; height:22px; display:block; }

.qy-home-footnote { margin-top:18px; }

/* ---------------- 底部菜单栏：对齐参考示例（线性图标 + 蓝紫高亮） ---------------- */
.qy-tabbar {
    background:linear-gradient(180deg,#f0f3fc 0%,#e8edf8 100%);
    border-top:none;
    box-shadow:0 -2px 12px rgba(80,86,140,0.08);
    padding:7px 0 calc(7px + env(safe-area-inset-bottom));
}
.qy-tab-item { color:#97a0b4; gap:4px; }
.qy-tab-ico {
    width:25px;
    height:25px;
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:1;
    filter:none;
    margin-bottom:0;
    transition:transform .18s, color .18s;
}
.qy-tab-ico svg { width:24px; height:24px; display:block; }
.qy-tab-item.active { color:#5b6ee1; }
.qy-tab-item.active .qy-tab-ico {
    transform:translateY(-1px) scale(1.08);
}
/* 移除旧版高亮下划线，参考示例仅用颜色高亮 */
.qy-tab-item.active .qy-tab-text::after { display:none; }

/* ---------------- 小屏微调 ---------------- */
@media (max-width:340px) {
    .qy-home-hero-title { font-size:23px; }
    .qy-entry { padding:16px 13px; gap:11px; }
    .qy-entry-ico { width:48px; height:48px; }
    .qy-entry-title { font-size:17px; }
    .qy-entry-desc { font-size:11px; }
}

/* ==========================================================================
   v1.1.1 底部菜单 3 tab → 4 tab（首页 / 地图 / 查询 / 我的）
   flex:1 自动均分；仅微调图标与文字尺寸，保证窄屏不挤压、不变形
   ========================================================================== */
.qy-tab-item { gap:3px; }
.qy-tab-ico { width:23px; height:23px; }
.qy-tab-ico svg { width:22px; height:22px; }
.qy-tab-text { font-size:10.5px; white-space:nowrap; }
@media (max-width:340px) {
    .qy-tab-ico { width:21px; height:21px; }
    .qy-tab-ico svg { width:20px; height:20px; }
    .qy-tab-text { font-size:10px; }
}

/* ==========================================================================
   v1.1.2 地图「定位我的位置」悬浮按钮
   右下角白底圆形按钮，风格对齐腾讯地图原生控件；点击走浏览器 GPS 定位
   ========================================================================== */
.qy-map-loc {
    position:absolute;
    right:10px;
    bottom:24px;
    /* v1.1.3：腾讯GL内部全屏事件层为z-index:1000，按钮必须高于它才可点到；
       map-box 已 isolation:isolate，2000 仅容器内生效，不会越过根层级弹窗900 */
    z-index:2000;
    width:42px;
    height:42px;
    border-radius:50%;
    padding:0;
    background:#fff;
    color:#2f7fea;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 2px 10px rgba(0,0,0,0.20);
    transition:transform .12s;
    pointer-events:auto;
    touch-action:manipulation;
    -webkit-tap-highlight-color:transparent;
}
.qy-map-loc:active { transform:scale(.92); }
.qy-map-loc svg { width:23px; height:23px; display:block; pointer-events:none; }
/* 定位中：图标旋转反馈（复用 qy-spin 旋转帧） */
.qy-map-loc.is-loading { color:#8a94a6; pointer-events:none; }
.qy-map-loc.is-loading svg { animation:qy-spin .8s linear infinite; }
