/* =========================================================
   业务员端界面预览
   值来自 miniprogram/pages/*/index.wxss，按 rpx ÷ 2 换算（750rpx → 375px）
   ========================================================= */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #eef1f6;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #1f2937;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
}

.hidden { display: none !important; }

/* ---------------- 舞台 ---------------- */
.stage {
  display: flex;
  align-items: flex-start;
  gap: 34px;
}

/* ---------------- 手机外壳 ---------------- */
.phone {
  flex: 0 0 auto;
  width: 395px;
  height: 792px;
  background: #171b23;
  border-radius: 46px;
  padding: 10px;
  box-shadow:
    0 30px 70px rgba(16, 24, 40, .24),
    0 3px 10px rgba(16, 24, 40, .10),
    inset 0 0 0 1px rgba(255, 255, 255, .06);
  position: relative;
}

.phone::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  width: 108px;
  height: 22px;
  background: #171b23;
  border-radius: 0 0 14px 14px;
  z-index: 20;
}

.glass {
  width: 100%;
  height: 100%;
  background: #f6f8fb;
  border-radius: 37px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  line-height: 1.5;
}

/* ---------------- 导航栏 ---------------- */
.navbar {
  flex: 0 0 auto;
  height: 58px;
  padding-top: 16px;
  background: #ffffff;
  border-bottom: 1px solid #eef1f6;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.navbar .nb-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.navbar .nb-back {
  position: absolute;
  left: 12px;
  top: 22px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  cursor: pointer;
  border-radius: 8px;
}
.navbar .nb-back:hover { background: #f2f4f8; }

/* ---------------- 内容区 ---------------- */
.viewport {
  flex: 1;
  overflow: hidden;
  display: flex;
  min-height: 0;
}

.page {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.page::-webkit-scrollbar { width: 0; }

/* ---------------- 底部导航 ---------------- */
.tabbar {
  flex: 0 0 auto;
  height: 58px;
  background: #ffffff;
  border-top: 1px solid #e9edf3;
  display: flex;
  z-index: 10;
}

.tabbar .tb {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #98a2b3;
  font-size: 11px;
  cursor: pointer;
  user-select: none;
}

.tabbar .tb.on { color: #2563eb; }

/* ---------------- 通用 ---------------- */
.card {
  background: #ffffff;
  border-radius: 10px;
  margin: 0 12px 10px;
  border: 1px solid #e9edf3;
}

.empty {
  text-align: center;
  color: #b3bccb;
  font-size: 13px;
  padding: 60px 0;
}

.btn-main {
  display: block;
  width: 100%;
  height: 46px;
  border-radius: 9px;
  background: #2563eb;
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 2px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-main:disabled { background: #9db8ee; cursor: default; }
.btn-main.back { background: #dc2626; letter-spacing: 1px; }
.btn-main.back:disabled { background: #eda3a3; }

/* =========================================================
   登录页 / 改密页
   ========================================================= */
.page-auth {
  padding: 70px 24px 0;
  min-height: 100%;
  background: #f6f8fb;
}

.page-auth.tight { padding-top: 55px; }

.brand { text-align: center; margin-bottom: 38px; }
.brand.mb { margin-bottom: 30px; }

.brand .logo {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  background: #2563eb;
  margin: 0 auto 15px;
}
.brand .logo.warn { background: #d9820b; }

.brand .title {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.brand .sub {
  font-size: 12.5px;
  color: #98a2b3;
  margin-top: 8px;
  line-height: 1.6;
}

.form {
  background: #ffffff;
  border-radius: 12px;
  padding: 23px 19px 15px;
  border: 1px solid #e9edf3;
}

.notice {
  background: #fdf6e8;
  border: 1px solid #f2e0bd;
  border-radius: 7px;
  padding: 10px 11px;
  font-size: 12px;
  color: #a9700a;
  line-height: 1.6;
  margin-bottom: 17px;
}

.field { margin-bottom: 17px; }

.field .label {
  font-size: 12.5px;
  color: #5b6577;
  display: block;
  margin-bottom: 7px;
}

.field .input {
  width: 100%;
  height: 45px;
  background: #f8fafc;
  border: 1px solid #e9edf3;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 15px;
  font-family: inherit;
  color: #1f2937;
  outline: none;
}
.field .input:focus { border-color: #a9c4f7; background: #ffffff; }
.field .input::placeholder { color: #b9c0cc; }

.err {
  color: #dc2626;
  font-size: 12.5px;
  text-align: center;
  margin: 11px 0 0;
  min-height: 18px;
}

.auth-tip {
  text-align: center;
  color: #b9c0cc;
  font-size: 11.5px;
  margin-top: 24px;
}

.auth-out {
  text-align: center;
  color: #2563eb;
  font-size: 13px;
  margin-top: 22px;
  cursor: pointer;
}

/* =========================================================
   今日任务页
   ========================================================= */
.hello { padding: 18px 16px 5px; }

.hello .name { font-size: 20px; font-weight: 700; }

.hello .desc {
  font-size: 12.5px;
  color: #98a2b3;
  margin-top: 6px;
}

.daybar {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 14px 12px 9px;
  padding: 0 4px;
}
.daybar .dt { font-size: 13.5px; font-weight: 700; color: #2563eb; }
.daybar .dd { font-size: 12px; color: #98a2b3; }

.task {
  background: #ffffff;
  border: 1px solid #e9edf3;
  border-left: 3px solid #2563eb;
  border-radius: 9px;
  margin: 0 12px 9px;
  padding: 13px 14px;
  position: relative;
  cursor: pointer;
  transition: box-shadow .15s, transform .15s;
}
.task:hover { box-shadow: 0 4px 14px rgba(37, 99, 235, .10); }
.task:active { transform: scale(.995); }

.task.isdone { border-left-color: #0f9d58; background: #fbfefc; }
.task.isdone:hover { box-shadow: 0 4px 14px rgba(15, 157, 88, .10); }

.task .r1 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.task .tname {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.45;
  flex: 1;
  padding-right: 8px;
}

.pill {
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
}
.pill-wait { background: #fdf1dd; color: #d9820b; }
.pill-ok { background: #e6f6ec; color: #0f9d58; }

.task .tdesc {
  font-size: 12.5px;
  color: #5b6577;
  margin-top: 7px;
  line-height: 1.6;
}

.task .tmeta {
  font-size: 12px;
  color: #98a2b3;
  margin-top: 7px;
}

/* 每周任务才出现的节奏提示 */
.task .tmeta .rhythm { color: #2563eb; font-weight: 600; }

.task .go {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 12.5px;
  color: #2563eb;
  font-weight: 600;
}
.task.isdone .go { color: #0f9d58; }

/* ---------- 漏交 ---------- */
.missbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 3px 12px 0;
  padding: 13px 14px;
  background: #fff8f8;
  border: 1px solid #f6dcdc;
  border-radius: 9px;
  cursor: pointer;
}
.missbar .ml { font-size: 14px; font-weight: 700; color: #dc2626; }
.missbar .mr { font-size: 12px; color: #b46a6a; }

.tip { font-size: 11px; color: #b0a0a0; padding: 7px 16px 3px; }

.missday {
  margin: 6px 12px 0;
  background: #ffffff;
  border: 1px solid #e9edf3;
  border-radius: 9px;
  overflow: hidden;
}

.missday .mhd {
  font-size: 12px;
  font-weight: 700;
  color: #5b6577;
  background: #fafbfd;
  padding: 8px 13px;
}
.missday .mhd .wd { font-weight: 400; color: #98a2b3; margin-left: 6px; }

.missitem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 13px;
  border-top: 1px solid #f0f3f8;
  cursor: pointer;
}
.missitem:hover { background: #fffafa; }
.missitem .mt { font-size: 14px; color: #2c3444; }
.missitem .mg { font-size: 12.5px; color: #dc2626; font-weight: 600; }

.mylink {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 12px 20px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #e9edf3;
  border-radius: 9px;
  font-size: 13.5px;
  color: #5b6577;
  cursor: pointer;
}
.mylink .arw { color: #2563eb; font-weight: 600; }

/* =========================================================
   上传页
   ========================================================= */
.page-upload {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.uscroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0 14px;
}
.uscroll::-webkit-scrollbar { width: 0; }

.box { padding: 14px 14px 15px; }

.box .hd {
  font-size: 12px;
  color: #98a2b3;
  font-weight: 600;
  margin-bottom: 9px;
}

.taskname { font-size: 15.5px; font-weight: 600; }

/* ---------- 归属日期 ---------- */
.daybox.back { border-color: #f6dcdc; background: #fffafa; }

.dayrow { display: flex; align-items: center; gap: 8px; }
.dayrow .dv { font-size: 17px; font-weight: 700; color: #1f2937; }

.dayrow .dtag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
}
.tag-today { background: #e8f0ff; color: #2563eb; }
.tag-back { background: #fdeaea; color: #dc2626; }

.daybox .dhint {
  font-size: 11.5px;
  color: #98a2b3;
  margin-top: 7px;
  line-height: 1.6;
}

/* ---------- 图片九宫格 ---------- */
.grid { display: flex; flex-wrap: wrap; margin: -4px; }

.shot {
  width: 95px;
  height: 95px;
  margin: 4px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid #e9edf3;
  background: #f2f5fa;
}

.shot-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  cursor: zoom-in;
}

.shot .x {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 21px;
  height: 21px;
  line-height: 19px;
  text-align: center;
  border-radius: 50%;
  background: rgba(20, 26, 38, .62);
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
}
.shot .x:hover { background: rgba(20, 26, 38, .85); }

.shot.add {
  border: 1px dashed #c3d7ff;
  background: #fbfdff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.shot.add:hover { background: #f4f8ff; }
.shot.add .plus { font-size: 23px; color: #2563eb; line-height: 1; }
.shot.add .lbl { font-size: 11px; color: #2563eb; margin-top: 6px; }

.genline { margin-top: 10px; text-align: center; }
.genline .genbtn {
  font-size: 11.5px;
  color: #64748b;
  border-bottom: 1px dashed #cbd5e1;
  cursor: pointer;
  padding-bottom: 1px;
}
.genline .genbtn:hover { color: #2563eb; border-color: #93b4f7; }

/* ---------- 文字 ---------- */
.ta {
  width: 100%;
  min-height: 90px;
  font-size: 14px;
  line-height: 1.7;
  color: #1f2937;
  border: none;
  outline: none;
  resize: none;
  font-family: inherit;
  background: transparent;
}
.ta::placeholder { color: #b9c0cc; }

.cnt {
  text-align: right;
  font-size: 11px;
  color: #b9c0cc;
  margin-top: 5px;
}

/* ---------- 提交条 ---------- */
.footer {
  flex: 0 0 auto;
  padding: 10px 12px 17px;
  background: #ffffff;
  border-top: 1px solid #e9edf3;
}

/* =========================================================
   我的
   ========================================================= */
.page-mine { padding: 12px 0 30px; }

.profile {
  display: flex;
  align-items: center;
  padding: 16px 14px;
}

.profile .av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9d9f0, #8fa7c9);
  flex: 0 0 auto;
  margin-right: 12px;
}

.profile .info { flex: 1; min-width: 0; }
.profile .pname { font-size: 16.5px; font-weight: 700; }

.profile .pmeta {
  font-size: 12px;
  color: #98a2b3;
  margin-top: 5px;
  line-height: 1.5;
}
.profile .pmeta.phone { color: #b9c0cc; }

.sec {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #98a2b3;
  font-weight: 600;
  padding: 13px 16px 8px;
}
.sec .muted { font-weight: 400; }

.rec { padding: 13px 14px; }

.rec .r1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rec .rtitle {
  font-size: 14.5px;
  font-weight: 600;
  flex: 1;
  padding-right: 8px;
}

.rec .rmeta {
  font-size: 12px;
  color: #98a2b3;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.rec .daytag {
  font-size: 10.5px;
  font-weight: 700;
  color: #2563eb;
  background: #e8f0ff;
  padding: 2px 7px;
  border-radius: 4px;
}
.rec .daytag.tag-back { color: #dc2626; background: #fdeaea; }

.rec .rtxt {
  font-size: 12.5px;
  color: #5b6577;
  line-height: 1.65;
  background: #f7f9fc;
  border-radius: 7px;
  padding: 9px 10px;
  margin-top: 8px;
}

.thumbs {
  display: flex;
  flex-wrap: wrap;
  margin-top: 8px;
}
.thumbs .th {
  width: 65px;
  height: 65px;
  border-radius: 7px;
  margin: 0 7px 7px 0;
  border: 1px solid #e9edf3;
  object-fit: cover;
  cursor: zoom-in;
}

.actions { margin: 18px 12px 0; }

.act {
  background: #ffffff;
  border: 1px solid #e9edf3;
  border-radius: 9px;
  padding: 15px;
  text-align: center;
  font-size: 14.5px;
  color: #5b6577;
  margin-bottom: 9px;
  cursor: pointer;
}
.act:hover { background: #fafbfd; }
.act.danger { color: #dc2626; }
.act.danger:hover { background: #fff8f8; }

/* =========================================================
   浮层：提示 / 加载 / 弹窗 / 大图
   ========================================================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  background: rgba(20, 26, 38, .9);
  color: #ffffff;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 999;
  max-width: 70vw;
  text-align: center;
  animation: fadeUp .18s ease;
}
.toast.ok { background: rgba(15, 157, 88, .94); }

@keyframes fadeUp {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.loading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(20, 26, 38, .82);
  color: #ffffff;
  border-radius: 12px;
  padding: 20px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  z-index: 60;
}

.spin {
  width: 24px;
  height: 24px;
  border: 2.5px solid rgba(255, 255, 255, .28);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.sheet-mask {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.sheet {
  width: 100%;
  max-width: 330px;
  background: #ffffff;
  border-radius: 14px;
  padding: 20px 20px 16px;
  box-shadow: 0 20px 50px rgba(16, 24, 40, .28);
}

.sheet-t { font-size: 15.5px; font-weight: 700; text-align: center; }

.sheet-c {
  font-size: 13px;
  color: #5b6577;
  line-height: 1.7;
  text-align: center;
  margin: 12px 0 18px;
  word-break: break-word;
}

.sheet-a { display: flex; gap: 10px; }

.sbtn {
  flex: 1;
  height: 40px;
  border-radius: 9px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.sbtn.ghost { background: #f2f4f8; color: #5b6577; }

.lightbox {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 22, .93);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 70;
  cursor: zoom-out;
  padding: 22px;
}
.lightbox img {
  max-width: 100%;
  max-height: 78%;
  border-radius: 10px;
  object-fit: contain;
}
.lightbox .lb-close {
  color: rgba(255, 255, 255, .6);
  font-size: 12px;
  margin-top: 16px;
}

/* =========================================================
   侧栏
   ========================================================= */
.panel {
  width: 286px;
  flex: 0 0 auto;
  background: #ffffff;
  border: 1px solid #e4e9f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .07);
}

.phd { margin-bottom: 18px; }
.ptitle { font-size: 15px; font-weight: 700; }
.psub { font-size: 11.5px; color: #94a1b3; margin-top: 5px; line-height: 1.6; }

.pblock { margin-bottom: 18px; }

.plabel {
  font-size: 11px;
  font-weight: 700;
  color: #94a1b3;
  letter-spacing: .4px;
  margin-bottom: 8px;
}

.pacct {
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  background: #f4f8ff;
  border: 1px solid #dbe7ff;
  border-radius: 8px;
  padding: 9px 11px;
  word-break: break-all;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  font-size: 11.5px;
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid #e4e9f0;
  background: #ffffff;
  color: #4b5563;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
}
.chip:hover { border-color: #a9c4f7; color: #2563eb; background: #f7faff; }
.chip.on {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}
.chip em { font-style: normal; opacity: .65; font-size: 10px; margin-left: 4px; }

.pbtn {
  display: block;
  width: 100%;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #e4e9f0;
  background: #ffffff;
  color: #4b5563;
  font-size: 12.5px;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 8px;
}
.pbtn:last-child { margin-bottom: 0; }
.pbtn:hover { background: #f7faff; border-color: #a9c4f7; color: #2563eb; }

.plink {
  display: block;
  font-size: 12.5px;
  color: #2563eb;
  text-decoration: none;
  padding: 9px 11px;
  border-radius: 8px;
  background: #f7faff;
  border: 1px solid #dbe7ff;
}
.plink:hover { background: #eef5ff; }

.pnote {
  font-size: 11.5px;
  color: #94a1b3;
  line-height: 1.8;
  border-top: 1px dashed #e4e9f0;
  padding-top: 14px;
}

/* ---------------- 窄屏（手机直接打开时） ---------------- */
@media (max-width: 780px) {
  body { padding: 0; align-items: stretch; }
  .stage { gap: 0; flex-direction: column; width: 100%; }
  .phone {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }
  .phone::after { display: none; }
  .glass { border-radius: 0; }
  .panel { display: none; }
}
