/* ============================================================
 * test01 销售App端 - 移动端样式（Bootstrap 风格）
 * ============================================================ */
:root {
  --app-primary: #3c96f3;
  --app-primary-deep: #0d96f1;
  --app-bg: #f5f6f7;
  --app-text: #323233;
  --app-text-2: #969799;
  --app-radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }
.app-body { background: #dfe4ea; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }

/* ---------- 手机外框 ---------- */
.phone-stage { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; justify-content: center; }
.phone-frame {
  width: 390px; height: 790px; background: #111; border-radius: 46px; padding: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); position: relative;
}
.phone-screen {
  width: 100%; height: 100%; background: var(--app-bg); border-radius: 36px; overflow: hidden;
  position: relative; display: flex; flex-direction: column;
}
.phone-home-bar {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 4px; border-radius: 2px; background: #2a2a2a;
}
.stage-note { max-width: 360px; }
.stage-note h2 { font-size: 22px; color: #1e2a3a; margin-bottom: 10px; }
.stage-note p { color: #4a5568; line-height: 1.8; font-size: 14px; }
.stage-note .muted { color: #8a94a6; font-size: 13px; }
.note-card { background: #fff; border-radius: 12px; padding: 14px 18px; margin: 14px 0; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.note-card .note-title { font-weight: 700; margin-bottom: 8px; color: var(--app-primary); }
.note-card code { background: #f0f4ff; color: var(--app-primary); padding: 2px 8px; border-radius: 5px; }

/* ---------- 登录页 ---------- */
.login-screen { background: #fff; }
.login-head {
  background: linear-gradient(160deg, var(--app-primary-deep), var(--app-primary) 60%, #7ec1ff);
  height: 300px; border-radius: 0 0 60px 60px / 0 0 46px 46px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff;
}
.login-logo {
  width: 70px; height: 70px; border-radius: 18px; background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.6); display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; margin-bottom: 14px;
}
.login-title { font-size: 22px; font-weight: 700; letter-spacing: 2px; }
.login-sub { font-size: 13px; opacity: 0.85; margin-top: 6px; }
.login-form { padding: 30px 32px; flex: 1; }
.login-tip {
  background: #f0f7ff; border: 1px solid #cfe4ff; color: var(--app-primary);
  border-radius: 8px; padding: 8px 12px; font-size: 12px; text-align: center; margin-bottom: 22px;
}
.field {
  display: flex; align-items: center; background: #f5f6f7; border-radius: 22px;
  height: 46px; padding: 0 16px; margin-bottom: 16px;
}
.field-icon { font-size: 16px; margin-right: 10px; }
.field input { flex: 1; border: none; background: transparent; outline: none; font-size: 14px; color: var(--app-text); }
.remember { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--app-text-2); margin-bottom: 24px; }
.login-btn {
  width: 100%; height: 46px; border: none; border-radius: 23px; color: #fff; font-size: 16px; font-weight: 600;
  background: linear-gradient(90deg, var(--app-primary-deep), var(--app-primary));
  cursor: pointer; box-shadow: 0 6px 16px rgba(61, 150, 243, 0.4);
}
.login-btn:active { transform: scale(0.98); }
.login-footer { text-align: center; font-size: 11px; color: #c0c4cc; padding-bottom: 18px; }

/* ---------- 主页面容器 ---------- */
#page { flex: 1; overflow-y: auto; padding-bottom: 54px; }
#page::-webkit-scrollbar { display: none; }

/* ---------- TabBar ---------- */
.tabbar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 54px;
  background: #fff; border-top: 1px solid #f0f2f5; display: flex; z-index: 50;
}
.tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.tab-icon { font-size: 20px; line-height: 1; }
.tab-text { font-size: 11px; color: #969799; margin-top: 3px; }
.tab-item.active .tab-text { color: var(--app-primary); font-weight: 600; }

/* ---------- 通用页面头 ---------- */
.page-nav {
  height: 44px; background: #fff; display: flex; align-items: center; padding: 0 14px;
  position: sticky; top: 0; z-index: 40;
}
.page-nav .nav-back { font-size: 18px; cursor: pointer; padding: 4px; color: var(--app-text); }
.page-nav .nav-title { flex: 1; text-align: center; font-size: 16px; font-weight: 700; }
.page-nav .nav-right { font-size: 20px; cursor: pointer; padding: 4px; color: var(--app-primary); }

/* ---------- 首页 ---------- */
.home-banner {
  height: 150px; background: linear-gradient(135deg, var(--app-primary-deep), var(--app-primary) 55%, #7ec1ff);
  border-radius: 0 0 60px 60px / 0 0 46px 46px;
  padding: 26px 22px 0; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
}
.home-banner .greet { font-size: 14px; opacity: 0.9; }
.home-banner .hi { font-size: 20px; font-weight: 700; margin-top: 4px; }
.home-banner .banner-card {
  background: rgba(255, 255, 255, 0.92); border-radius: 12px; color: var(--app-text);
  padding: 12px 16px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.banner-card .bc-icon { font-size: 26px; }
.banner-card .bc-title { font-weight: 700; font-size: 14px; }
.banner-card .bc-desc { font-size: 12px; color: var(--app-text-2); }
.home-section { padding: 14px; }
.home-stats { display: flex; gap: 10px; margin-bottom: 14px; }
.home-stat {
  flex: 1; background: #fff; border-radius: var(--app-radius); padding: 12px 10px; text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.home-stat .num { font-size: 18px; font-weight: 700; color: var(--app-primary); }
.home-stat .label { font-size: 12px; color: var(--app-text-2); margin-top: 3px; }
.home-card { background: #fff; border-radius: var(--app-radius); box-shadow: 0 2px 8px rgba(0,0,0,.05); margin-bottom: 14px; overflow: hidden; }
.home-card .hc-title { padding: 12px 14px; font-weight: 700; font-size: 14px; border-bottom: 1px solid #f6f8fa; display: flex; justify-content: space-between; align-items: center; }
.home-card .hc-more { font-size: 12px; color: var(--app-primary); cursor: pointer; }
.home-card .hc-item { padding: 10px 14px; border-bottom: 1px solid #f6f8fa; font-size: 13px; display: flex; gap: 8px; align-items: flex-start; }
.home-card .hc-item:last-child { border-bottom: none; }
.hc-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--app-primary); margin-top: 6px; flex: 0 0 6px; }
.hc-item .small { color: var(--app-text-2); font-size: 12px; }

/* ---------- 工作台 ---------- */
.work-head {
  background: linear-gradient(160deg, var(--app-primary-deep), var(--app-primary) 60%);
  height: 130px; border-radius: 0 0 60px 60px / 0 0 46px 46px;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; font-weight: 700;
}
.work-body { margin: -36px 14px 0; }
.work-group { background: #fff; border-radius: 16px; box-shadow: 0 8px 16px rgba(0,0,0,.08); padding: 16px; }
.work-group .wg-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.work-item { display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.work-item .wi-icon {
  width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: #eef6ff; color: var(--app-primary);
}
.work-item .wi-text { font-size: 12px; margin-top: 7px; color: var(--app-text); }

/* ---------- 列表 ---------- */
.list-page { background: var(--app-bg); }
.list-search { background: #fff; padding: 10px 14px; position: sticky; top: 0; z-index: 30; }
.search-box {
  display: flex; align-items: center; background: #f5f6f7; border-radius: 18px; height: 36px; padding: 0 14px;
}
.search-box input { flex: 1; border: none; background: transparent; outline: none; font-size: 13px; }
.list-wrap { padding: 10px 14px; }
.list-card {
  background: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,.05); border: 1px solid #f1f1f1;
}
.list-card .lc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.list-card .lc-name { font-size: 15px; font-weight: 600; }
.list-card .lc-info { font-size: 12.5px; color: var(--app-text-2); line-height: 1.7; }
.list-card .lc-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.list-card .lc-time { font-size: 11px; color: #c0c4cc; }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px;
}
.tag-primary { background: #ecf5ff; color: #409eff; }
.tag-success { background: #f0f9eb; color: #67c23a; }
.tag-warning { background: #fdf6ec; color: #e6a23c; }
.tag-danger { background: #fef0f0; color: #f56c6c; }
.tag-info { background: #f4f4f5; color: #909399; }
.status-0 { background: #4db7fe; } .status-1 { background: #f56c6c; }
.status-2 { background: #e6a23c; } .status-3 { background: #909399; }

/* 左滑操作 */
.list-card .lc-actions { display: flex; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #f1f1f1; }
.mini-btn {
  flex: 1; height: 30px; border: none; border-radius: 6px; font-size: 12.5px; cursor: pointer; color: #fff;
}
.mini-btn.blue { background: #409eff; } .mini-btn.green { background: #67c23a; }
.mini-btn.red { background: #f56c6c; } .mini-btn.gray { background: #909399; }

/* ---------- 销控 ---------- */
.ctrl-filter { display: flex; align-items: center; gap: 10px; background: #fff; padding: 10px 14px; border-radius: 12px; margin: 10px 14px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.ctrl-filter select { flex: 1; height: 34px; border: 1px solid #e8e8e8; border-radius: 8px; padding: 0 8px; font-size: 13px; background: #fff; }
.ctrl-legend { display: flex; gap: 12px; padding: 8px 14px; font-size: 12px; color: var(--app-text-2); }
.ctrl-legend span { display: flex; align-items: center; gap: 4px; }
.legend-box { width: 18px; height: 13px; border-radius: 3px; display: inline-block; }
.ctrl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 4px 14px 20px; }
.ctrl-room {
  height: 42px; border-radius: 6px; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,.1);
}
.ctrl-room:active { transform: scale(0.94); }

/* ---------- 我的 ---------- */
.mine-head {
  background: linear-gradient(160deg, var(--app-primary-deep), var(--app-primary) 60%);
  height: 180px; border-radius: 0 0 60px 60px / 0 0 46px 46px;
  padding: 40px 22px 0; color: #fff; display: flex; align-items: center; gap: 16px;
}
.mine-avatar {
  width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,0.25);
  border: 2px solid rgba(255,255,255,0.7); display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700;
}
.mine-name { font-size: 19px; font-weight: 700; }
.mine-role { font-size: 12.5px; opacity: 0.88; margin-top: 5px; }
.mine-body { margin: -30px 14px 0; }
.mine-group { background: #fff; border-radius: 14px; box-shadow: 0 4px 12px rgba(0,0,0,.06); margin-bottom: 12px; overflow: hidden; }
.mine-item { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid #f6f8fa; cursor: pointer; font-size: 14px; }
.mine-item:last-child { border-bottom: none; }
.mine-item .mi-icon { margin-right: 12px; font-size: 18px; }
.mine-item .mi-arrow { margin-left: auto; color: #c0c4cc; }
.mine-item.logout { color: #f56c6c; justify-content: center; font-weight: 600; }

/* ---------- 表单页 ---------- */
.form-page { background: #fff; min-height: 100%; }
.form-item { padding: 14px 16px; border-bottom: 1px solid #f6f8fa; display: flex; align-items: center; }
.form-item label { width: 86px; font-size: 14px; color: var(--app-text); flex: 0 0 86px; }
.form-item input, .form-item select, .form-item textarea {
  flex: 1; border: none; outline: none; font-size: 14px; color: var(--app-text); background: transparent; resize: none;
}
.form-item textarea { min-height: 70px; padding-top: 4px; }
.form-submit { margin: 24px 16px; height: 44px; border: none; border-radius: 22px; background: linear-gradient(90deg, var(--app-primary-deep), var(--app-primary)); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }

/* ---------- 弹窗 ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 200; display: none;
  align-items: flex-end; justify-content: center;
}
.overlay.show { display: flex; }
.overlay-box { background: #fff; width: 100%; max-width: 460px; border-radius: 16px 16px 0 0; padding: 20px 18px; }
.overlay-title { font-weight: 700; font-size: 16px; margin-bottom: 14px; text-align: center; }
.overlay-actions { display: flex; gap: 10px; margin-top: 18px; }
.overlay-actions button { flex: 1; height: 40px; border: none; border-radius: 20px; font-size: 14px; cursor: pointer; }
.btn-cancel { background: #f2f3f5; color: #646566; }
.btn-confirm { background: linear-gradient(90deg, var(--app-primary-deep), var(--app-primary)); color: #fff; }

/* 提示 */
.app-tip {
  position: absolute; top: 60px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.75); color: #fff; padding: 8px 18px; border-radius: 18px; font-size: 13px; z-index: 300;
  opacity: 0; transition: opacity .25s; pointer-events: none; white-space: nowrap;
}
.app-tip.show { opacity: 1; }

/* 空状态 */
.empty { text-align: center; color: #c0c4cc; padding: 50px 0; font-size: 13px; }
.empty .big { font-size: 40px; margin-bottom: 10px; }
