/* 商家中心工作台 */
.shop-desk {
  padding: 0 16px 28px;
  color: #1c1c1e;
}
.shop-mode {
  margin: 12px 0 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f2f7ff, #f7f7f7);
}
.shop-mode b {
  display: block;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.shop-mode p {
  margin: 6px 0 0;
  color: #636366;
  font-size: 13px;
  line-height: 1.45;
}
.shop-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.shop-stat {
  padding: 12px 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 0.5px rgba(60, 60, 67, .12);
  text-align: center;
}
.shop-stat em {
  display: block;
  color: #8e8e93;
  font-style: normal;
  font-size: 11px;
}
.shop-stat b {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.03em;
}
.shop-sec {
  margin: 18px 0 8px;
  font-size: 15px;
  font-weight: 700;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.shop-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 78px;
  padding: 12px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 0.5px rgba(60, 60, 67, .12);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.shop-card:active { opacity: .7; }
.shop-card i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f2f2f7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #007AFF;
}
.shop-card i svg { display: block; width: 18px; height: 18px; }
.shop-card b {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
}
.shop-todo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shop-todo button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 0.5px rgba(60, 60, 67, .12);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.shop-todo button:active { opacity: .7; }
.shop-todo .main { flex: 1; min-width: 0; }
.shop-todo b {
  display: block;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-todo span {
  display: block;
  margin-top: 2px;
  color: #8e8e93;
  font-size: 12px;
}
.shop-todo em {
  flex: none;
  color: #007AFF;
  font-style: normal;
  font-size: 12px;
  font-weight: 650;
}
.shop-todo .need {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b30;
  flex: none;
}
.shop-todo .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f2f2f7;
  color: #007AFF;
  flex: none;
}
.shop-todo .mark svg { display: block; width: 16px; height: 16px; }
.desk-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.desk-line .desk-copy { flex: 1; min-width: 0; }
.desk-line .desk-copy span { display: block; }
.desk-line em { margin-top: 0; flex: none; }
.desk-line .ali,
.desk-row .ali,
.desk-card > b .ali {
  color: #007AFF;
  flex: none;
  margin-right: 6px;
  vertical-align: -3px;
}
.shop-empty {
  margin: 0;
  padding: 18px 12px;
  color: #8e8e93;
  font-size: 13px;
  text-align: center;
}
.shop-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 0.5px rgba(60, 60, 67, .12);
  font-size: 14px;
}
.shop-switch {
  position: relative;
  width: 46px;
  height: 28px;
  border: 0;
  border-radius: 14px;
  background: #e5e5ea;
  padding: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 180ms ease;
}
.shop-switch.is-on { background: #34c759; }
.shop-switch i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
  transition: transform 180ms ease;
}
.shop-switch.is-on i { transform: translateX(18px); }
.tab-item .shop-dot {
  position: absolute;
  top: 4px;
  right: 18px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #ff3b30;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.tab-item { position: relative; }

/* 子页通用 */
.desk-page {
  min-height: 100%;
  padding: 12px 16px calc(24px + env(safe-area-inset-bottom));
  background: #f2f2f7;
  color: #1c1c1e;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
}
.desk-card {
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
}
.desk-card h2 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}
.desk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
}
.desk-row + .desk-row { border-top: 0.5px solid rgba(60,60,67,.12); }
.desk-row em { color: #8e8e93; font-style: normal; }
.desk-field {
  display: block;
  margin: 10px 0 6px;
  color: #8e8e93;
  font-size: 13px;
}
.desk-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: #f2f2f7;
  font: inherit;
  font-size: 15px;
  outline: none;
}
.desk-area {
  width: 100%;
  min-height: 88px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: #f2f2f7;
  font: inherit;
  font-size: 15px;
  resize: vertical;
  outline: none;
}
.desk-btn {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 14px;
  border: 0;
  border-radius: 12px;
  background: #007AFF;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
}
.desk-btn.ghost {
  background: #f2f2f7;
  color: #1c1c1e;
}
.desk-btn.danger { background: #ff3b30; }
.desk-btn[disabled] { opacity: .45; }
.desk-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 12px;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.desk-filters::-webkit-scrollbar { display: none; }
.desk-filters button {
  flex: none;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #636366;
  font: inherit;
  font-size: 13px;
}
.desk-filters button.is-on {
  background: #007AFF;
  color: #fff;
  font-weight: 650;
}
.desk-item {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 14px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.desk-item b { display: block; font-size: 15px; }
.desk-item span { display: block; margin-top: 4px; color: #8e8e93; font-size: 12px; }
.desk-item em { display: block; margin-top: 8px; color: #007AFF; font-style: normal; font-size: 13px; font-weight: 650; }
.desk-money {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.desk-money div {
  flex: 1;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}
.desk-money em { display: block; color: #8e8e93; font-style: normal; font-size: 12px; }
.desk-money b { display: block; margin-top: 6px; font-size: 18px; }
.desk-chain {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.desk-chain i {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  background: #f2f2f7;
  color: #8e8e93;
  font-style: normal;
  font-size: 12px;
}
.desk-chain i.is-on { background: #e8f1ff; color: #007AFF; font-weight: 650; }
.desk-chain i.is-done { background: #e8f8ef; color: #34c759; }
.desk-flow { margin-top: 12px; }
.desk-flow-hint {
  margin: 0 0 8px;
  color: #1c1c1e;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}
.desk-flow-hint:empty { display: none; }
.desk-flow-label {
  display: block;
  margin: 12px 0 8px;
  color: #8e8e93;
  font-size: 12px;
  font-weight: 650;
}
.desk-flow-area {
  width: 100%;
  min-height: 96px;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: #f7f8fa;
  color: #1c1c1e;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  resize: none;
}
.desk-flow-pics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.desk-flow-pics img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  background: #f7f8fa;
}
.desk-flow-err {
  min-height: 18px;
  margin: 8px 0 0;
  color: #ff3b30;
  font-size: 13px;
}
.desk-flow-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.desk-flow-reset,
.desk-flow-go {
  flex: 1;
  height: 44px;
  margin: 0;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
}
.desk-flow-reset { background: #f7f8fa; color: #1c1c1e; }
.desk-flow-go { background: #1c1c1e; color: #fff; }
.desk-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 30;
  width: 112px;
  height: 112px;
  padding: 12px 10px 14px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 0, 0, .82);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 240ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.desk-toast.is-on {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.desk-toast svg {
  display: block;
  width: 36px;
  height: 36px;
}
