/* ============================================================
   用户端布局
   ============================================================ */

/* ================= 登录 / 注册 ================= */
.auth-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(900px 500px at 12% 8%, rgba(47, 107, 255, .30), transparent 60%),
    radial-gradient(700px 500px at 88% 92%, rgba(14, 164, 114, .22), transparent 62%),
    linear-gradient(160deg, #101725 0%, #1a2437 55%, #131b29 100%);
  position: relative;
  overflow: hidden;
}
.auth-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.auth-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 404px;
  background: #fff;
  border-radius: 20px;
  padding: 32px 30px 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .38);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 26px;
}
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), #6b8dff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(47, 107, 255, .35);
  flex: none;
}
.brand-name { font-size: 17px; font-weight: 600; letter-spacing: .3px; }
.brand-sub { font-size: 11.5px; color: var(--muted); letter-spacing: .6px; }

.auth-tabs {
  display: flex;
  gap: 4px;
  background: #f2f5fa;
  padding: 4px;
  border-radius: 11px;
  margin-bottom: 22px;
}
.auth-tabs button {
  flex: 1;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  transition: .16s;
  font-weight: 500;
}
.auth-tabs button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(16, 24, 40, .1);
}

.auth-foot {
  margin-top: 18px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}

/* ================= 主框架 ================= */
.shell { display: flex; min-height: 100vh; min-height: 100dvh; }

.sidebar {
  width: 218px;
  flex: none;
  background: var(--sidebar);
  color: #cdd5e2;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 60;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.sidebar-brand .brand-logo {
  width: 34px; height: 34px; border-radius: 10px;
  font-size: 16px;
  box-shadow: none;
}
.sidebar-brand .t { font-size: 14.5px; font-weight: 600; color: #fff; }
.sidebar-brand .s { font-size: 10.5px; color: #76839a; letter-spacing: .5px; }

.nav { padding: 12px 10px; flex: 1; overflow-y: auto; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 44px;
  padding: 0 13px;
  border-radius: 9px;
  color: #b3bdcd;
  cursor: pointer;
  font-size: 14px;
  transition: .15s;
  margin-bottom: 3px;
  position: relative;
}
.nav-item:hover { background: var(--sidebar-2); color: #e6ecf5; }
.nav-item.active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(47, 107, 255, .3);
}
.nav-item .ico { width: 18px; text-align: center; font-size: 15px; flex: none; opacity: .9; }
.nav-item .cnt {
  margin-left: auto;
  font-size: 11px;
  background: rgba(255, 255, 255, .12);
  padding: 1px 7px;
  border-radius: 20px;
}
.nav-item.active .cnt { background: rgba(255, 255, 255, .25); }

.sidebar-foot {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 11.5px;
  color: #6c7891;
  line-height: 1.6;
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 58px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-title { font-size: 15px; font-weight: 600; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.balance-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border-radius: 20px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.balance-pill .lbl { font-weight: 400; color: #7386ad; font-size: 12px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #b6c6e8, #8fa6d6);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; flex: none;
}
.hamburger {
  display: none;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  color: var(--ink-2);
  align-items: center;
  justify-content: center;
}

.content { flex: 1; padding: 22px; max-width: 1180px; width: 100%; }

.mask {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(16, 24, 40, .45);
  z-index: 55;
}

/* ================= 发布任务 ================= */
/* ================= 发布任务 ================= */
/* 左侧导航里的「发布任务」是个父菜单：点一下展开业务列表（公众号阅读 / 点赞、再看 …），
   点某个业务，右边就只显示那个业务的项目。菜单内容是后台分组动态生成的 */
.nav-item .nav-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item .nav-arrow {
  font-size: 11px;
  opacity: .7;
  flex: none;
  display: inline-block;
  transition: transform .18s;
}
.nav-item.sub-open .nav-arrow { transform: rotate(180deg); }
.nav-item.sub-open { background: var(--sidebar-2); color: #fff; }

.nav-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height .22s ease;
  margin-bottom: 3px;
}
.nav-sub.open { max-height: 460px; overflow-y: auto; }
.nav-sub-item {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 12px 0 40px;
  border-radius: 8px;
  color: #9aa6b8;
  font-size: 13px;
  cursor: pointer;
  transition: .14s;
  position: relative;
}
.nav-sub-item:hover { background: var(--sidebar-2); color: #e6ecf5; }
.nav-sub-item.active {
  background: rgba(47, 107, 255, .3);
  color: #fff;
  font-weight: 600;
}
.nav-sub-item .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .55;
  flex: none;
}
.nav-sub-item.active .dot { opacity: 1; }
.nav-sub-item .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-sub-item .n { font-size: 11px; opacity: .65; flex: none; }
.nav-sub-empty { padding: 6px 12px 8px 40px; font-size: 12px; color: #6c7891; }

/* 发布任务页顶部的业务选择条。
   手机上左侧导航是抽屉，收起来后靠这个下拉切业务，跟导航里的选择是同一件事 */
.biz-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  /* 不给换行：换行业会让下拉框掉到下一行、高度忽高忽低 */
  flex-wrap: nowrap;
}
.biz-label { font-size: 13px; color: var(--muted); flex: none; }
/* min-width: 0 是关键：flex 子项默认最小宽度是内容的宽度，
   不加这行，长选项会把下拉框撑破，或者反过来把自己压成一条缝 */
.biz-picker { position: relative; flex: 1 1 auto; min-width: 0; max-width: 380px; }
.biz-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  /* 手机上给足高度和字号，手指点得中；电脑上保持原来的紧凑 */
  height: 38px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.biz-select:focus { outline: none; border-color: var(--brand); }
.biz-arrow {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 11px;
  color: var(--muted);
}
/* 这句提示只是电脑上的补充说明，手机上挤位置，直接不要 */
.biz-tip { font-size: 12px; color: var(--muted); margin-left: auto; flex: none; white-space: nowrap; }

/* 当前业务的小标题（右边区域顶部那一行） */
.biz-current {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 12px;
}
.biz-current .bname { font-size: 15px; font-weight: 700; color: var(--ink); }
.biz-current .bdesc { font-size: 12.5px; color: var(--muted); }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.svc {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 15px;
  cursor: pointer;
  transition: .16s;
  background: #fff;
  position: relative;
}
.svc:hover { border-color: #c9d6ee; }
.svc.on {
  border-color: var(--brand);
  background: #f7faff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .09);
}
.svc .n { font-size: 14px; font-weight: 600; margin-bottom: 6px; padding-right: 54px; }
.svc .p { color: var(--danger); font-weight: 700; font-size: 16px; }
.svc .p small { font-weight: 400; font-size: 11.5px; color: var(--muted); margin-left: 2px; }
.svc .m { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.svc .tag {
  position: absolute; top: 12px; right: 12px;
  font-size: 10.5px; padding: 1px 7px; border-radius: 20px;
  background: var(--brand-soft); color: var(--brand);
}

/* 手机端专用：任务类型做成下拉框（电脑上看不到这块，手机上看不到上面的卡片） */
.svc-picker { display: none; }
.svc-select {
  width: 100%;
  font-size: 14px;
  /* 旧机型 / 旧浏览器可能不认 appearance，加 -webkit- 前缀保险 */
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238095b0' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}
.svc-picked {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 9px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #f7faff;
  border: 1px solid #e2ebfa;
  font-size: 13px;
  line-height: 1.6;
}
.svc-picked .sp-tag {
  font-size: 10.5px; padding: 1px 7px; border-radius: 20px;
  background: var(--brand-soft); color: var(--brand);
  margin-right: 7px;
}
.svc-picked .sp-name { color: var(--ink); font-weight: 600; }
.svc-picked .sp-price { color: var(--danger); font-weight: 700; margin-left: 8px; }
.svc-picked .sp-price small { font-weight: 400; font-size: 11px; color: var(--muted); }
.svc-picked .sp-min { color: var(--muted); font-size: 11.5px; margin-left: 8px; }

/* 价格说明：任务类型下面那一行提示小字（后台每个项目单独填，字数不限）
   做成一条浅灰底的小条，跟下面的输入框拉开层次，手机上也不会被忽略 */
.svc-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 11px;
  border-radius: 9px;
  background: #f6f8fb;
  border: 1px solid #e8eef6;
  font-size: 12.5px;
  line-height: 1.65;
  color: #6b7c95;
}
.svc-note-ico {
  flex: 0 0 auto;
  width: 14px; height: 14px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  font-style: normal;
}

.qty-box { display: flex; gap: 8px; }
.qty-box .input { flex: 1; }
.qty-step {
  width: 44px; height: 42px; flex: none;
  border: 1px solid var(--line); background: #fff;
  border-radius: 9px; font-size: 18px; color: var(--ink-2);
  cursor: pointer; line-height: 1;
}
.qty-step:hover { background: #f5f8fd; border-color: #cfdaeb; }

.calc-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f8fafd;
  border: 1px dashed #d5e0f2;
  border-radius: 11px;
  padding: 14px 16px;
  margin: 6px 0 18px;
}
.calc-bar .t { font-size: 12.5px; color: var(--muted); }
.calc-bar .v { font-size: 21px; font-weight: 700; color: var(--danger); line-height: 1.2; }
.calc-bar .v small { font-size: 12px; font-weight: 400; color: var(--muted); }

/* ================= 订单列表 ================= */
.tabs {
  display: flex;
  gap: 6px;
  background: #fff;
  padding: 5px;
  border-radius: 11px;
  border: 1px solid var(--line);
  margin-bottom: 16px;
  overflow-x: auto;
}
.tabs button {
  flex: none;
  height: 34px;
  padding: 0 15px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: .15s;
}
.tabs button:hover { background: #f4f7fc; }
.tabs button.active { background: var(--brand); color: #fff; font-weight: 500; }
.tabs button .n { font-size: 11.5px; opacity: .75; margin-left: 3px; }

.search-row { display: flex; gap: 10px; margin-bottom: 16px; }
.search-row .input { flex: 1; }

.olist { display: flex; flex-direction: column; gap: 12px; }
.ocard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 15px 16px;
  transition: .16s;
}
.ocard:hover { box-shadow: 0 4px 16px rgba(16, 24, 40, .06); border-color: #dde5f2; }
.ocard-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 10px;
}
.oid { font-size: 14.5px; font-weight: 700; letter-spacing: .2px; }
.oid span { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 6px; }

.olink {
  display: flex; align-items: center; gap: 8px;
  background: #f7f9fd;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
}
.olink .u {
  flex: 1; min-width: 0;
  font-size: 12.5px;
  color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.copy-btn {
  flex: none;
  font-size: 11.5px;
  height: 24px; padding: 0 9px;
  border: 1px solid #cfdaeb;
  background: #fff;
  border-radius: 6px;
  color: var(--brand);
  cursor: pointer;
}
.copy-btn:hover { background: var(--brand-soft); }

.ometa {
  display: flex;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
  margin-right: -20px;
  margin-bottom: -4px;
}
.ometa > div {
  margin-right: 20px;
  margin-bottom: 4px;
}
.ometa b { color: var(--ink); font-weight: 600; }
.ometa .amt { color: var(--danger); font-weight: 700; font-size: 13.5px; }

/* 上游没接单、已自动退款的提示条 */
.orefund {
  margin-top: 10px;
  padding: 8px 11px;
  border-radius: 8px;
  background: var(--warn-soft);
  color: #8a5b02;
  font-size: 12.5px;
  line-height: 1.65;
}
.orefund b { font-weight: 700; }

/* 订单进度条 */
.prog { margin-top: 12px; }
.prog-line {
  height: 7px;
  border-radius: 99px;
  background: #eef1f7;
  overflow: hidden;
}
.prog-bar {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #4a86ff 0%, #22c07a 100%);
  transition: width .8s ease;
}
.prog-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.prog-pct { font-weight: 700; color: var(--brand); font-size: 13px; }

.pager {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 20px;
}
.pager button {
  height: 33px; padding: 0 13px;
  border: 1px solid var(--line); background: #fff;
  border-radius: 8px; font-size: 13px; cursor: pointer; color: var(--ink-2);
}
.pager button:disabled { opacity: .45; cursor: not-allowed; }
.pager .pn { font-size: 13px; color: var(--muted); }

/* ================= 充值 ================= */
.bal-card {
  background: linear-gradient(135deg, #2f6bff 0%, #5b86ff 55%, #7aa2ff 100%);
  border-radius: 16px;
  padding: 22px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
}
.bal-card::after {
  content: "";
  position: absolute;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  right: -60px; top: -70px;
}
.bal-card .lbl { font-size: 12.5px; opacity: .85; margin-bottom: 4px; }
.bal-card .num { font-size: 34px; font-weight: 700; line-height: 1.2; letter-spacing: -.5px; }
.bal-card .num small { font-size: 15px; font-weight: 500; margin-left: 4px; opacity: .9; }
.bal-card .tip { font-size: 11.5px; opacity: .78; margin-top: 8px; position: relative; z-index: 1; }

.qr-box {
  text-align: center;
  padding: 10px 20px 26px;
}
.qr-box img {
  width: 220px; height: 220px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px;
}
.qr-empty {
  width: 220px; height: 220px; margin: 0 auto;
  border: 1.5px dashed #d5ddea;
  border-radius: 12px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--muted); font-size: 12.5px; gap: 6px;
  background: #fafbfd;
}
.qr-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.9;
  text-align: left;
  max-width: 380px;
  margin-left: auto; margin-right: auto;
  background: #f8fafd;
  border-radius: 10px;
  padding: 14px 16px;
}
.qr-note b { color: var(--ink); }

/* ================= 资料行 ================= */
.kv { display: flex; flex-direction: column; }
.kv-item {
  display: flex; align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f4f9;
  font-size: 13.5px;
}
.kv-item:last-child { border-bottom: none; }
.kv-item .k { width: 96px; flex: none; color: var(--muted); }
.kv-item .v { color: var(--ink); word-break: break-all; }

.log-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 11px 0; border-bottom: 1px solid #f1f4f9;
  font-size: 13px;
}
.log-item:last-child { border-bottom: none; }
.log-item .t { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* 余额流水：这条扣款买的是哪个项目 */
.log-svc {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 11.5px;
  line-height: 1.6;
  word-break: break-all;
}

/* ================= 手机端 ================= */
@media (max-width: 860px) {
  .sidebar {
    position: fixed;
    left: 0; top: 0;
    transform: translateX(-100%);
    transition: transform .24s cubic-bezier(.2, .8, .3, 1);
    box-shadow: 8px 0 32px rgba(0, 0, 0, .28);
  }
  .sidebar.open { transform: translateX(0); }
  .mask.show { display: block; }
  .hamburger { display: flex; }
  .content { padding: 12px; }
  .topbar { padding: 0 12px; height: 54px; }
  .topbar-title { font-size: 15px; }
  .balance-pill { padding: 0 11px; font-size: 12.5px; }
  .balance-pill .lbl { display: none; }
  .svc-grid { grid-template-columns: 1fr; }
  /* 手机上任务类型改成下拉：卡片藏起来，下拉框露出来（项目再多也不用往下翻半天） */
  .svc-grid { display: none; }
  .svc-picker { display: block; }
  .auth-card { padding: 26px 22px; border-radius: 18px; }
  .bal-card .num { font-size: 30px; }
  .qr-box img, .qr-empty { width: 200px; height: 200px; }
  .calc-bar .v { font-size: 19px; }
  .kv-item .k { width: 78px; font-size: 13px; }

  /* 手机上的卡片：内边距收紧一点，让内容占满屏宽，别挤在中间一条缝里；
     圆角也小一点，屏窄的时候大圆角显笨 */
  .card { border-radius: 12px; }
  .card-head { padding: 14px 15px; }
  .card-head h3 { font-size: 16px; }
  /* 标题和「当前余额」在窄屏上会挤，改成上下两行 */
  .card-head .small { font-size: 12px; }
  .card-body { padding: 14px 15px 16px; }

  /* 表单项之间的间距在手机上稍微放大，手指不容易点错 */
  .field { margin-bottom: 15px; }
  .field > label { font-size: 13px; margin-bottom: 7px; }
  .input, .select, .textarea { height: 46px; font-size: 16px; }
  .textarea { height: auto; font-size: 15px; }
  .qty-box .input { height: 46px; font-size: 17px; }
  .qty-step { width: 46px; height: 46px; font-size: 20px; }
  .calc-bar { padding: 13px 15px; border-radius: 12px; }
  .calc-bar .btn { height: 46px; font-size: 15px; }

  /* 业务类型条：手机上一行放不下「业务类型 + 下拉 + 那句长提示」。
     改成上下两行——上面一行小字标题，下面整行都是下拉，点哪儿都行 */
  .biz-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    padding: 11px 12px;
  }
  .biz-label { font-size: 12.5px; }
  .biz-tip { display: none; }
  .biz-picker { flex: none; max-width: none; width: 100%; }
  /* 跟别的输入框统一成 46px，整行宽，手指随便点 */
  .biz-select, .input.biz-select { height: 46px; font-size: 15px; padding-left: 13px; }
  .biz-arrow { right: 14px; font-size: 12px; }
}

/* 旧浏览器不支持 flex gap 时的间距兜底 */
.search-row > * + * { margin-left: 10px; }
.qty-box > * + * { margin-left: 8px; }
.topbar-right > * + * { margin-left: 14px; }
.tabs button + button { margin-left: 6px; }
.pager > * + * { margin-left: 8px; }

/* ============ 严令禁止（规则展示 / 弹窗） ============ */
.warn-ico {
  display: inline-block;
  width: 16px; height: 16px; line-height: 16px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 11px; font-weight: 700;
  text-align: center;
  margin-right: 6px;
  vertical-align: 1px;
}

.foot-rules {
  color: #ffb4b4;
  cursor: pointer;
  font-size: 12.5px;
  line-height: 1.5;
}
.foot-rules:hover { color: #fff; }

.rules-box {
  margin-top: 18px;
  border: 1px solid #ffd9d9;
  background: #fff8f8;
  border-radius: 12px;
  padding: 14px 16px 12px;
}
.rules-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--danger);
  margin-bottom: 10px;
}
.rules .rule-item {
  display: flex;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.rules .rule-no {
  flex: 0 0 18px;
  width: 18px; height: 18px; line-height: 18px;
  border-radius: 50%;
  background: #ffe9e9;
  color: var(--danger);
  font-size: 11px; font-weight: 700;
  text-align: center;
  margin-right: 8px;
  margin-top: 3px;
}
.rules-foot {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px dashed #ffd9d9;
  padding-top: 8px;
  margin-top: 4px;
}

/* 弹窗 */
.modal-mask {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(18, 24, 36, .55);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-box {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
  overflow: hidden;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 16px; color: var(--danger); }
.modal-x {
  border: none; background: transparent;
  font-size: 22px; line-height: 1;
  color: var(--muted); cursor: pointer;
  padding: 0 4px;
}
.modal-body { padding: 16px 20px; max-height: 62vh; overflow-y: auto; }
.modal-foot {
  padding: 12px 20px 18px;
  text-align: right;
}

/* ============ 充值页（联系客服充值） ============ */
.recharge-steps { margin-bottom: 18px; }
.recharge-steps .rstep {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.7;
}
.recharge-steps .rno {
  flex: 0 0 22px;
  width: 22px; height: 22px; line-height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 12px; font-weight: 700;
  text-align: center;
  margin-right: 10px;
  margin-top: 2px;
}
.recharge-steps b { color: var(--ink); }

.recharge-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  background: #f7f9fd;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.recharge-contact .k {
  font-size: 13px;
  color: var(--muted);
  margin-right: 12px;
}
.recharge-contact .v {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  word-break: break-all;
  margin-right: 10px;
}

.recharge-thanks {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 1px;
}

/* ============ 充值页（扫码付款 + 上传截图 + 后台审核） ============ */

/* 已经有一笔在等审核时，顶上那条黄提示 */
.pay-pending {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #fffaf0;
  border: 1px solid #ffe1b0;
}
.pay-pending .pp-ico { font-size: 18px; line-height: 1.2; }
.pay-pending .pp-t { font-size: 13.5px; font-weight: 600; color: #8a5a00; line-height: 1.6; }
.pay-pending .pp-s { font-size: 12px; color: #a98145; margin-top: 3px; line-height: 1.65; }

/* 左边二维码、右边表单；手机上自动上下排 */
.pay-wrap { display: flex; gap: 26px; align-items: flex-start; }
.pay-qr { flex: 0 0 200px; text-align: center; }
.pay-qr-box {
  width: 200px; height: 200px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfe;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pay-qr-box img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* 有二维码时让它看起来「可以点」：鼠标变放大镜，手指点上去有反馈 */
.pay-qr-box.can-zoom { cursor: zoom-in; transition: box-shadow .16s ease, border-color .16s ease; }
.pay-qr-box.can-zoom:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(47, 107, 255, .16); }
.pay-qr-box.can-zoom:active { transform: scale(.985); }
.pay-qr-box.can-zoom:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 107, 255, .18); }
.pay-qr-none {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.9;
  text-align: center;
}
.pay-qr-tip { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

/* ---- 二维码大图：点一下弹出来，方便长按保存 ---- */
.qr-big-mask { z-index: 980; background: rgba(12, 18, 30, .86); padding: 14px; }
.qr-big-inner {
  width: 100%; max-width: 460px;
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .4);
  display: flex; flex-direction: column;
}
.qr-big-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink);
  flex: none;
}
.qr-big-x {
  border: 0; background: #f2f5fa; color: var(--ink-2);
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 20px; line-height: 1; cursor: pointer;
}
.qr-big-stage {
  background: #fff; padding: 16px;
  display: flex; align-items: center; justify-content: center;
  min-height: 220px;
}
/* 只限制最大宽高，保持二维码原比例；白底方便手机长按「保存图片」 */
.qr-big-img {
  display: block;
  max-width: 100%; max-height: 70vh;
  width: auto; height: auto;
  object-fit: contain;
  -webkit-touch-callout: default;
}
.qr-big-foot {
  padding: 10px 16px 14px; text-align: center;
  font-size: 12.5px; color: var(--muted);
  border-top: 1px solid var(--line); flex: none;
}

.pay-form { flex: 1; min-width: 0; }

/* 后台可编辑的那段说明文字 */
.pay-note {
  font-size: 12.5px;
  color: #6b7c95;
  line-height: 1.95;
  background: #f6f8fb;
  border: 1px solid #e8eef6;
  border-radius: 10px;
  padding: 10px 13px;
  margin-bottom: 16px;
}

/* 上传框：平时是虚线框，传完变成图片 */
.pay-up {
  position: relative;
  border: 1.5px dashed #cfdcef;
  border-radius: 12px;
  background: #fbfcfe;
  min-height: 108px;
  cursor: pointer;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, background .15s;
}
.pay-up:hover { border-color: var(--brand); background: #f7faff; }
.pay-up-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px;
  padding: 18px 12px;
  font-size: 13px;
  color: var(--ink-2);
  text-align: center;
}
.pay-up-ico { font-size: 20px; color: var(--brand); line-height: 1; }
.pay-up-img { max-width: 100%; max-height: 220px; display: block; }

/* 充值记录里的状态小标签 */
.rc-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  vertical-align: 1px;
}
.rc-pending  { background: #fff4e0; color: #a56a00; }
.rc-approved { background: #e7f8ef; color: var(--ok, #12a150); }
.rc-rejected { background: #fdecec; color: var(--danger); }

/* ============================================================
   登录后公告弹窗
   ============================================================ */
.notice-mask { z-index: 950; background: rgba(16, 23, 37, .62); }

.notice-box {
  max-width: 600px;
  max-height: 86vh;
  max-height: 86dvh;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .34);
}

/* 头部：品牌蓝渐变，和登录页的色调呼应 */
.notice-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 22px 18px;
  background: linear-gradient(135deg, #2f6bff 0%, #1f4fd8 100%);
  overflow: hidden;
}
.notice-head::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -54px;
  top: -96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.notice-head-l {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}
.notice-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 36px;
  text-align: center;
  margin-right: 12px;
  flex-shrink: 0;
}
.notice-head h3 {
  font-size: 17px;
  color: #fff;
  font-weight: 600;
  margin: 0;
  letter-spacing: .5px;
}
.notice-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, .78);
  margin: 3px 0 0;
}
.notice-head .modal-x {
  color: rgba(255, 255, 255, .85);
  font-size: 24px;
  position: relative;
  z-index: 1;
  margin-top: -2px;
}
.notice-head .modal-x:hover { color: #fff; }

/* 正文：可滚动，排版有层次 */
.notice-body {
  padding: 6px 28px 24px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-2);
  flex: 1 1 auto;
  min-height: 0;
}
.notice-body::-webkit-scrollbar { width: 7px; }
.notice-body::-webkit-scrollbar-thumb { background: #d3dae6; border-radius: 4px; }
.notice-body::-webkit-scrollbar-thumb:hover { background: #bcc6d6; }
.notice-body .nt-h1 {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  margin: 20px 0 8px;
  padding-left: 11px;
  border-left: 3px solid var(--brand);
  line-height: 1.5;
}
.notice-body .nt-h1:first-child { margin-top: 14px; }
.notice-body .nt-h2 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin: 15px 0 6px;
}
.notice-body .nt-p {
  margin: 0 0 10px;
  text-align: justify;
  word-break: break-word;
}
.notice-body .nt-note {
  margin: 0 0 12px;
  padding: 10px 13px;
  background: var(--warn-soft);
  border-radius: 9px;
  color: #8a5b02;
  font-size: 13.5px;
  line-height: 1.75;
}

/* 底部 */
.notice-foot {
  padding: 14px 22px 18px;
  border-top: 1px solid var(--line);
  background: #fbfcfe;
  flex-shrink: 0;
}
.notice-foot .btn { min-width: 128px; }

/* 手机 */
@media (max-width: 560px) {
  .notice-box { max-width: 100%; max-height: 90vh; max-height: 90dvh; border-radius: 16px; }
  .notice-head { padding: 15px 15px 13px; }
  .notice-head h3 { font-size: 16px; }
  .notice-icon { width: 32px; height: 32px; line-height: 32px; font-size: 17px; border-radius: 10px; margin-right: 10px; }
  .notice-sub { font-size: 11.5px; }
  .notice-body { padding: 4px 19px 20px 16px; font-size: 13.5px; line-height: 1.78; }
  .notice-body .nt-h1 { font-size: 14.5px; margin: 17px 0 7px; padding-left: 9px; }
  .notice-body .nt-h2 { font-size: 14px; margin: 13px 0 5px; }
  .notice-body .nt-note { padding: 9px 11px; font-size: 13px; }
  .notice-foot { padding: 12px 15px 15px; }
  .notice-foot .btn { width: 100%; }
  .notice-mask { padding: 12px; }

  /* 充值页：手机上二维码和表单上下排，二维码居中缩小一点 */
  .pay-wrap { flex-direction: column; gap: 16px; }
  .pay-qr { flex: none; width: 100%; }
  .pay-qr-box { width: 168px; height: 168px; margin: 0 auto; }
}

/* ============ 打烊 / 项目暂停接单 ============ */
.svc.off {
  opacity: .62;
  background: #f7f8fa;
  border-color: #e4e8ef;
  cursor: pointer;
}
.svc.off .p { color: var(--muted) !important; }
.svc.off .m { color: var(--danger); font-weight: 600; }

.closed-bar {
  margin: 0 0 18px;
  padding: 12px 15px;
  background: var(--warn-soft);
  border: 1px solid #f6dfb0;
  border-radius: 10px;
  color: #8a5b02;
  font-size: 13.5px;
  line-height: 1.75;
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}
