/* 访客通 H5 样式（对齐工作区蓝白主题） */
:root { --brand: #2b7cff; --brand-grad: linear-gradient(135deg, #2b7cff 0%, #5a95ff 100%); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: #f2f4f8; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: #f2f4f8; }

/* 顶部（rem 适配：375 基准 1rem=16px） */
.nav { background: var(--brand-grad); color: #fff; padding: 0.875rem 1rem 1.125rem; }
.nav .t { font-size: 1.0625rem; font-weight: 700; }
.nav .s { font-size: 0.75rem; opacity: .85; margin-top: 0.1875rem; }

/* 轮播横幅 / 底部横幅（页面模版配置） */
.banner-swipe { margin: 0.75rem 0.875rem 0; border-radius: 0.75rem; overflow: hidden; box-shadow: 0 1px 4px rgba(0,21,41,.06); }
.banner-img { width: 100%; height: 8.75rem; object-fit: cover; display: block; }
.footer-banner { margin: 0.5rem 0 0; }
.footer-banner img { width: 100%; display: block; max-height: 11.25rem; object-fit: cover; }

/* 个人中心 */
.profile-head { background: linear-gradient(135deg, #2b7cff 0%, #5a95ff 100%); color: #fff; padding: 1.75rem 1rem 1.5rem; text-align: center; }
.p-avatar { width: 3.75rem; height: 3.75rem; line-height: 3.75rem; border-radius: 50%; background: rgba(255,255,255,.25); font-size: 1.75rem; font-weight: 700; display: inline-block; }
.p-name { font-size: 1.125rem; font-weight: 700; margin-top: 0.625rem; }
.p-phone { font-size: 0.8125rem; opacity: .85; margin-top: 0.1875rem; }
.p-badges { margin-top: 0.625rem; }

/* 公司地图（凭证页，点击放大） */
.map-card { text-align: left; cursor: pointer; }
.map-card .map-img { width: 100%; border-radius: 0.5rem; display: block; max-height: 13.75rem; object-fit: cover; }
.map-card .map-text { color: #606266; font-size: 0.8125rem; margin-top: 0.5rem; line-height: 1.7; }
.map-card .map-zoom { color: #2b7cff; font-size: 0.75rem; margin-top: 0.375rem; }

/* 随访人子表单 */
.companion-block { margin-top: 0.75rem; }
.companion-block .cmp-title { font-size: 0.8125rem; font-weight: 600; color: #303133; margin: 0 1.125rem 0.375rem; }
.companion-block .cmp-title:before { content: '👤 '; }

/* 首页宫格 */
.home-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; padding: 0.875rem; }
.home-card { background: #fff; border-radius: 0.75rem; padding: 1.125rem 0.875rem; text-align: left; box-shadow: 0 1px 4px rgba(0,21,41,.06); cursor: pointer; }
.home-card .ic { font-size: 1.625rem; }
.home-card .tt { font-weight: 600; margin-top: 0.5rem; font-size: 0.9375rem; }
.home-card .ds { color: #909399; font-size: 0.75rem; margin-top: 0.1875rem; }
.home-card.brand { background: var(--brand-grad); color: #fff; }
.home-card.brand .ds { color: rgba(255,255,255,.8); }

/* 统计条 */
.stat-strip { display: flex; gap: 10px; padding: 0 14px 4px; }
.stat-strip .it { flex: 1; background: #fff; border-radius: 10px; padding: 10px 12px; }
.stat-strip .n { font-size: 20px; font-weight: 700; color: #2b7cff; }
.stat-strip .l { color: #909399; font-size: 12px; }

/* 卡片 */
.card { background: #fff; border-radius: 12px; margin: 12px 14px; padding: 14px; box-shadow: 0 1px 4px rgba(0,21,41,.06); }
.card h4 { margin: 0 0 10px; font-size: 14px; color: #303133; }

/* 预约条目 */
.apt { background: #fff; border-radius: 12px; margin: 10px 14px; padding: 13px 14px; box-shadow: 0 1px 4px rgba(0,21,41,.06); }
.apt .row1 { display: flex; align-items: center; justify-content: space-between; }
.apt .name { font-weight: 700; font-size: 15px; }
.apt .meta { color: #606266; font-size: 12.5px; margin-top: 6px; line-height: 1.8; }
.apt .code { color: #b0b3ba; font-size: 11px; margin-top: 4px; }

/* 通行码 */
.pass-wrap { text-align: center; padding: 1.625rem 1rem; }
.pass-wrap .tips { color: #909399; font-size: 0.75rem; line-height: 1.8; margin-top: 0.75rem; }
.pass-card { background: #fff; border-radius: 1rem; padding: 1.625rem 1.125rem; margin: 1rem 0.875rem; box-shadow: 0 2px 10px rgba(43,124,255,.12); }
.pass-card img { width: 15rem; height: 15rem; }
.pass-apt { background: #f7f9fc; border-radius: 0.625rem; padding: 0.625rem 0.875rem; margin-top: 0.875rem; font-size: 0.8125rem; color: #606266; text-align: left; line-height: 1.9; }
.pass-apt b { color: #303133; font-size: 0.9375rem; }

/* 表单 */
.form-wrap { padding: 6px 0 80px; }
.bottom-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; padding: 10px 14px; background: #fff; box-shadow: 0 -2px 10px rgba(0,21,41,.05); z-index: 20; }

/* 时间轴（审批记录） */
.timeline { padding-left: 4px; }
.timeline .ti { position: relative; padding: 0 0 14px 18px; font-size: 13px; color: #606266; }
.timeline .ti:before { content: ''; position: absolute; left: 0; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.timeline .ti.rej:before { background: #f56c6c; }
.timeline .ti .t-time { color: #b0b3ba; font-size: 11px; }

.empty-pad { padding: 40px 0; }
.mock-tip { margin: 10px 14px 0; background: #fff7e8; color: #b88230; border-radius: 8px; padding: 8px 12px; font-size: 12px; }
.tabbar-pad { height: 60px; }
.brand-btn { width: 100%; --van-button-primary-background: #2b7cff; }
/* 输入弹窗 */
.prompt-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 999; display: flex; align-items: center; justify-content: center; padding: 30px; }
.prompt-box { width: 100%; max-width: 340px; background: #fff; border-radius: 14px; padding: 18px 14px 14px; }
.prompt-title { font-size: 16px; font-weight: 700; text-align: center; color: #303133; }
.prompt-msg { font-size: 13px; color: #606266; text-align: center; margin: 8px 0 4px; line-height: 1.7; word-break: break-all; }
.prompt-btns { display: flex; gap: 10px; justify-content: flex-end; padding: 10px 4px 0; }

/* 近7天趋势（员工工作台） */
.trend { background: #fff; border-radius: 12px; margin: 10px 14px; padding: 12px 14px 6px; box-shadow: 0 1px 4px rgba(0,21,41,.06); }
.trend .tt2 { font-size: 13px; font-weight: 700; color: #303133; margin-bottom: 8px; }
.trend .bars { display: flex; align-items: flex-end; gap: 10px; height: 84px; padding: 0 4px; }
.trend .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.trend .col { width: 55%; max-width: 26px; background: linear-gradient(180deg, #2b7cff, #6aa6ff); border-radius: 4px 4px 0 0; min-height: 3px; }
.trend .lb { font-size: 10px; color: #b0b3ba; margin-top: 4px; }

/* 访客须知 */
.notice-bar { display: flex; align-items: center; gap: 2px; margin: 12px 18px 0; font-size: 13px; color: #606266; }
.notice-link { color: #2b7cff; }
.notice-pop { padding: 18px 16px calc(14px + env(safe-area-inset-bottom)); }
.notice-pop h4 { margin: 0 0 10px; text-align: center; font-size: 16px; color: #303133; }
.notice-text { font-size: 13px; color: #606266; line-height: 2; white-space: pre-wrap; background: #f7f9fc; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; max-height: 46vh; overflow: auto; }

/* 多选下拉弹层（vis_field.multiple=1） */
.multi-pick { padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); }
.multi-pick .mp-title { text-align: center; font-size: 15px; font-weight: 600; color: #303133; padding: 2px 0 10px; }
.multi-pick .mp-title span { margin-left: 6px; font-size: 11px; font-weight: 400; color: #2b7cff; background: #eaf2ff; border-radius: 999px; padding: 1px 8px; }
.multi-pick .mp-btns { display: flex; gap: 10px; padding: 12px 16px 0; }

/* 电子名片 */
.card-view { margin: 12px 14px; border-radius: 16px; padding: 22px 18px; color: #fff; box-shadow: 0 6px 18px rgba(43,124,255,.28); }
.card-view .cv-name { font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.card-view .cv-title { font-size: 12.5px; opacity: .85; margin-top: 4px; }
.card-view .cv-meta { font-size: 13px; margin-top: 9px; opacity: .95; }
.card-view .cv-stats { margin-top: 12px; font-size: 11.5px; opacity: .75; }
.color-dot { width: 22px; height: 22px; border-radius: 50%; display: inline-block; cursor: pointer; border: 2px solid transparent; }
.color-dot.on { border-color: #303133; box-shadow: 0 0 0 2px #fff inset; }
