/* ===== 各页面样式 ===== */

/* ---------- 首页 ---------- */
.home-hero {
  background: #1a6fbf;
  padding: 10px 12px 14px;
  color: #fff;
}

.hero-user {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 4px 14px;
}

.hero-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(145deg, #8f69e8, #5d43df);
  border: 2px solid rgba(255, 255, 255, .18);
  box-shadow: 0 3px 10px rgba(40, 23, 108, .22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  font-weight: 600;
  flex: none;
}

.hero-info {
  flex: 1;
  min-width: 0;
}

.hero-name {
  font-size: 17px;
  font-weight: 600;
  color: #102b4d;
}

.hero-btn {
  padding: 9px 19px;
  border-radius: 4px;
  border: 1px solid #d63838;
  background: #dc4040;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.hero-btn.solid {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  border-color: #fff;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.stat-card {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 15px 4px 12px;
  box-shadow: 0 5px 16px rgba(8, 54, 101, .16);
  overflow: hidden;
  cursor: pointer;
  text-align: center;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: -27px;
  right: -18px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  pointer-events: none;
}

.stat-card.c1::before {
  background: #e5f0fc;
}

.stat-card.c2::before {
  background: #fff0d8;
}

.stat-card.c3::before {
  background: #e2f6ed;
}

.stat-card.c4::before {
  background: #fde9e8;
}

.stat-card.c1 .stat-value {
  color: #1a6fbf;
}

.stat-card.c2 .stat-value {
  color: #d97706;
}

.stat-card.c3 .stat-value {
  color: #0b9e6e;
}

.stat-card.c4 .stat-value {
  color: #d54941;
}

.stat-value {
  position: relative;
  font-size: clamp(23px, 7vw, 30px);
  font-weight: 700;
  line-height: 1.25;
}

.stat-label {
  position: relative;
  font-size: clamp(10px, 3vw, 12px);
  color: #435267;
  margin-top: 4px;
  white-space: nowrap;
}

/* ---------- 物品收纳首页 ---------- */
.wh-home {
  min-height: 100%;
  padding: calc(14px + env(safe-area-inset-top)) 14px 92px;
  background:
    radial-gradient(circle at 88% 2%, rgba(93, 156, 246, .18), transparent 25%),
    linear-gradient(180deg, #edf7ff 0, #f4f8fc 38%, #eef3f8 100%);
  color: #152438;
}

.wh-home button,
.wh-home input {
  font: inherit;
}

.wh-home-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 40px;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.wh-home-brand {
  margin: 0;
  color: #111d2e;
  font-size: clamp(20px, 5.6vw, 25px);
  font-weight: 800;
  letter-spacing: -.8px;
  white-space: nowrap;
}

.wh-home-search {
  display: flex;
  align-items: center;
  height: 42px;
  min-width: 0;
  padding-left: 12px;
  border: 1px solid rgba(198, 216, 235, .8);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 5px 16px rgba(36, 78, 122, .08);
  overflow: hidden;
}

.wh-home-search > span {
  flex: none;
  color: #71849a;
  font-size: 22px;
  line-height: 1;
  transform: rotate(-18deg);
}

.wh-home-search input {
  width: 100%;
  min-width: 0;
  padding: 0 7px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #24364d;
  font-size: 12px;
}

.wh-home-search input::placeholder {
  color: #9aa8b8;
}

.wh-home-search input::-webkit-search-cancel-button {
  display: none;
}

.wh-home-search button {
  align-self: stretch;
  flex: none;
  padding: 0 10px;
  border: 0;
  background: #eaf2ff;
  color: #2e73d1;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.wh-home-tools {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(198, 216, 235, .9);
  border-radius: 13px;
  background: rgba(255, 255, 255, .92);
  color: #44627f;
  box-shadow: 0 4px 12px rgba(36, 78, 122, .07);
  font-size: 18px;
  cursor: pointer;
}

.wh-home-quick-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 9px;
}

.wh-home-quick-grid.single {
  grid-template-columns: 1fr;
}

.wh-home-inbound-card,
.wh-stock-overview-card {
  min-height: 136px;
  padding: 16px 14px;
  border: 0;
  border-radius: 18px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 23px rgba(36, 76, 112, .15);
}

.wh-home-inbound-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.wh-home-inbound-card::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -38px;
  width: 106px;
  height: 106px;
  border: 1px solid rgba(255, 255, 255, .19);
  border-radius: 50%;
}

.wh-home-inbound-card:active,
.wh-stock-overview-card:active {
  transform: scale(.985);
}

.wh-quick-plus {
  width: 38px;
  height: 38px;
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 12px;
  background: rgba(255, 255, 255, .15);
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
}

.wh-home-inbound-card > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.wh-home-inbound-card b {
  font-size: 16px;
}

.wh-home-inbound-card small {
  margin-top: 3px;
  color: rgba(255, 255, 255, .75);
  font-size: 9px;
}

.wh-home-inbound-card em {
  position: absolute;
  right: 13px;
  bottom: 10px;
  color: rgba(255, 255, 255, .65);
  font-size: 20px;
  font-style: normal;
}

.wh-stock-overview-card {
  background:
    radial-gradient(circle at 95% 0, color-mix(in srgb, var(--accent) 28%, transparent), transparent 42%),
    color-mix(in srgb, var(--accent-soft) 72%, var(--card));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--card));
  color: var(--primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wh-stock-overview-card small {
  color: color-mix(in srgb, var(--primary) 70%, var(--text-3));
  font-size: 10px;
}

.wh-stock-overview-card strong {
  margin: 7px 0 4px;
  font-size: clamp(26px, 8vw, 34px);
  line-height: 1;
  letter-spacing: -1px;
}

.wh-stock-overview-card strong em {
  margin-left: 3px;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}

.wh-stock-overview-card > span {
  color: var(--text-2);
  font-size: 9px;
}

.wh-home-hero {
  position: relative;
  display: block;
  width: 100%;
  min-height: 166px;
  overflow: hidden;
  padding: 22px 20px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #1457b8 0, #3189df 54%, #83c2f2 100%);
  color: #fff;
  text-align: left;
  box-shadow: 0 12px 28px rgba(27, 91, 164, .25);
  cursor: pointer;
}

.wh-home-hero::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -52px;
  width: 190px;
  height: 110px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  transform: rotate(-13deg);
}

.wh-hero-glow {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
}

.wh-hero-glow.glow-a {
  top: -55px;
  right: 48px;
  width: 150px;
  height: 150px;
}

.wh-hero-glow.glow-b {
  right: 102px;
  bottom: -68px;
  width: 150px;
  height: 150px;
  background: rgba(95, 200, 255, .16);
}

.wh-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 62%;
  flex-direction: column;
  align-items: flex-start;
}

.wh-hero-copy small {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .17);
  font-size: 10px;
  letter-spacing: .5px;
}

.wh-hero-copy strong {
  margin: 10px 0 4px;
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}

.wh-hero-copy strong em {
  margin-left: 4px;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
}

.wh-hero-copy > span {
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
}

.wh-hero-art {
  position: absolute;
  right: 22px;
  bottom: 24px;
  z-index: 1;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 24px;
  background: rgba(255, 255, 255, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
  transform: rotate(3deg);
}

.wh-hero-art b {
  position: relative;
  z-index: 1;
  font-size: 49px;
  filter: drop-shadow(0 8px 10px rgba(7, 47, 105, .28));
}

.wh-hero-art i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .56);
}

.wh-hero-art i:first-child {
  top: 12px;
  right: 13px;
}

.wh-hero-art i:nth-child(2) {
  left: 14px;
  bottom: 17px;
  width: 5px;
  height: 5px;
}

.wh-home-section {
  margin-top: 17px;
}

.wh-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 3px;
}

.wh-section-head h2 {
  margin: 0;
  color: #19283b;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.3px;
}

.wh-section-head p {
  margin: 3px 0 0;
  color: #8998a8;
  font-size: 10px;
}

.wh-section-head > button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #6e8194;
  font-size: 11px;
  cursor: pointer;
}

.wh-section-head > button span {
  color: #a4b1bf;
  font-size: 14px;
}

.wh-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px 3px;
  margin-top: 12px;
  padding: 15px 7px 14px;
  border: 1px solid rgba(218, 229, 239, .82);
  border-radius: 17px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 8px 22px rgba(51, 87, 121, .06);
}

.wh-category-item {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.wh-category-item:active .wh-category-icon {
  transform: scale(.92);
}

.wh-category-icon {
  width: 43px;
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  box-shadow: 0 5px 12px rgba(46, 81, 116, .09);
  font-size: 21px;
  transition: transform .15s;
}

.wh-category-name {
  display: block;
  width: 100%;
  overflow: hidden;
  margin-top: 7px;
  color: #24354a;
  font-size: 10.5px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wh-category-item small {
  margin-top: 2px;
  color: #9ba8b6;
  font-size: 9px;
}

.wh-pending-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.wh-pending-card {
  min-width: 0;
  min-height: 66px;
  padding: 10px 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 13px;
  color: #fff;
  box-shadow: 0 7px 16px rgba(48, 75, 111, .12);
}

.wh-pending-card.loan-entry {
  border: 0;
  background: linear-gradient(135deg, #5d8df6, #78a8ff);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.wh-pending-card.loan-entry:active {
  transform: scale(.98);
}

.wh-pending-card.tone-1 {
  background: linear-gradient(135deg, #5d8df6, #78a8ff);
}

.wh-pending-card.tone-2 {
  background: linear-gradient(135deg, #ff8582, #ffae8b);
}

.wh-pending-card.tone-3 {
  background: linear-gradient(135deg, #ffaa66, #ffc47d);
}

.wh-pending-card > span {
  width: 29px;
  height: 29px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, .18);
  font-size: 16px;
}

.wh-pending-card > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.wh-pending-card b {
  font-size: 12px;
  font-weight: 700;
}

.wh-pending-card small {
  overflow: hidden;
  margin-top: 2px;
  color: rgba(255, 255, 255, .8);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wh-warehouse-strip {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  margin-top: 11px;
  padding: 2px 1px 6px;
  -webkit-overflow-scrolling: touch;
}

.wh-warehouse-strip::-webkit-scrollbar {
  display: none;
}

.wh-warehouse-card {
  position: relative;
  min-width: 154px;
  flex: 1 0 154px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  padding: 12px 10px;
  border: 1px solid #e1e9f1;
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 6px 16px rgba(43, 74, 106, .06);
  text-align: left;
  cursor: pointer;
}

.wh-warehouse-icon {
  width: 34px;
  height: 34px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #edf3ff;
  font-size: 17px;
}

.wh-warehouse-icon.tone-1 {
  background: #fff3eb;
}

.wh-warehouse-icon.tone-2 {
  background: #eaf8f1;
}

.wh-warehouse-icon.tone-3 {
  background: #f4edff;
}

.wh-warehouse-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.wh-warehouse-copy b {
  overflow: hidden;
  color: #24364a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wh-warehouse-copy small {
  overflow: hidden;
  max-width: 78px;
  margin-top: 2px;
  color: #9aa7b4;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wh-warehouse-card em {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 1px 4px;
  border-radius: 4px;
  background: #f4f0ff;
  color: #8367cd;
  font-size: 8px;
  font-style: normal;
}

.wh-featured-section {
  padding-bottom: 10px;
}

.wh-item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 11px;
}

.wh-item-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid #e3eaf1;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(38, 70, 103, .08);
  text-align: left;
  cursor: pointer;
}

.wh-item-card:active {
  transform: scale(.985);
}

.wh-item-photo {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #edf2f7;
}

.wh-item-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s;
}

.wh-item-card:hover .wh-item-photo img {
  transform: scale(1.035);
}

.wh-item-photo i {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(26, 111, 191, .88);
  color: #fff;
  font-size: 9px;
  font-style: normal;
  backdrop-filter: blur(4px);
}

.wh-item-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 10px 11px 12px;
}

.wh-item-info b {
  overflow: hidden;
  color: #203248;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wh-item-info small {
  overflow: hidden;
  margin-top: 4px;
  color: #8c9aaa;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wh-home-empty {
  margin-top: 10px;
  padding: 26px 14px;
  border: 1px dashed #d8e3ed;
  border-radius: 14px;
  background: rgba(255, 255, 255, .55);
  color: #93a3b3;
  font-size: 12px;
  text-align: center;
}

.wh-backup-reminder {
  width: 100%;
  margin-top: 13px;
  padding: 11px 12px;
  border: 1px solid #f4dfbb;
  border-radius: 12px;
  background: #fff8ec;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a16922;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.wh-backup-reminder span:nth-child(2) {
  flex: 1;
}

.wh-backup-reminder em {
  flex: none;
  color: #d17a16;
  font-style: normal;
  font-weight: 600;
}

.wh-tools-sheet {
  max-height: 86%;
}

.wh-tools-sheet .sheet-body {
  padding: 10px 12px calc(14px + env(safe-area-inset-bottom));
  background: #f2f6fa;
}

.wh-tools-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e1eaf2;
  border-radius: 13px;
  background: #fff;
}

.wh-tools-user > span {
  width: 39px;
  height: 39px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #6e98ea, #3f70cf);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.wh-tools-user > div {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wh-tools-user b {
  color: #213449;
  font-size: 13px;
}

.wh-tools-user small {
  margin-top: 2px;
  color: #97a4b2;
  font-size: 10px;
}

.wh-tools-user button {
  padding: 6px 10px;
  border: 1px solid #d9e6f3;
  border-radius: 8px;
  background: #f5f9fd;
  color: #3b77b8;
  font-size: 10px;
  cursor: pointer;
}

.wh-tools-group {
  margin-top: 10px;
  padding: 12px 8px 8px;
  border: 1px solid #e2eaf2;
  border-radius: 13px;
  background: #fff;
}

.wh-tools-group h3 {
  margin: 0 5px 9px;
  color: #516175;
  font-size: 12px;
  font-weight: 700;
}

.wh-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 2px;
}

.wh-tools-grid button {
  position: relative;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.wh-tools-grid button:active {
  opacity: .72;
}

.wh-tool-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font-size: 18px;
}

.wh-tools-grid b {
  margin-top: 5px;
  color: #415064;
  font-size: 10px;
  font-weight: 500;
}

.wh-tools-grid em {
  position: absolute;
  top: -3px;
  right: calc(50% - 23px);
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: #ef635c;
  color: #fff;
  font-size: 8px;
  font-style: normal;
  line-height: 14px;
  text-align: center;
}

@media (max-width: 370px) {
  .wh-home {
    padding-left: 11px;
    padding-right: 11px;
  }

  .wh-home-brand {
    font-size: 19px;
  }

  .wh-home-topbar {
    grid-template-columns: auto minmax(0, 1fr) 36px;
    gap: 6px;
  }

  .wh-home-tools {
    width: 36px;
    height: 38px;
  }

  .wh-home-search {
    height: 38px;
    padding-left: 8px;
  }

  .wh-home-search button {
    padding: 0 7px;
  }

  .wh-category-grid {
    gap: 13px 1px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .wh-category-icon {
    width: 39px;
    height: 39px;
    font-size: 19px;
  }

  .wh-category-name {
    font-size: 9.5px;
  }
}

/* ---------- 分类详情 ---------- */
.category-detail-page {
  min-height: 100%;
  padding: 14px 14px 34px;
  background:
    radial-gradient(circle at 90% 0, rgba(82, 157, 230, .17), transparent 25%),
    linear-gradient(180deg, #edf7ff 0, #f5f8fb 42%, #f1f5f9 100%);
}

.category-detail-hero {
  min-height: 112px;
  padding: 19px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1c65b8, #318ad6 60%, #69b7e8);
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
  box-shadow: 0 10px 25px rgba(34, 91, 151, .22);
}

.category-detail-hero > span {
  width: 58px;
  height: 58px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 17px;
  background: rgba(255, 255, 255, .13);
  font-size: 30px;
}

.category-detail-hero small {
  color: rgba(255, 255, 255, .68);
  font-size: 9px;
  letter-spacing: 1px;
}

.category-detail-hero h1 {
  overflow: hidden;
  margin: 5px 0 4px;
  font-size: 24px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-detail-hero p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 10px;
}

.category-inbound-btn {
  width: 100%;
  min-height: 67px;
  margin-top: 13px;
  padding: 11px 14px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(38, 82, 126, .1);
  display: flex;
  align-items: center;
  gap: 11px;
  color: #20405f;
  text-align: left;
  cursor: pointer;
}

.category-inbound-btn:active {
  background: #f5faff;
}

.category-inbound-btn > span {
  width: 40px;
  height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #1f79cc, #399ee0);
  color: #fff;
  font-size: 25px;
  font-weight: 300;
}

.category-inbound-btn > div {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-inbound-btn b {
  font-size: 16px;
}

.category-inbound-btn small {
  margin-top: 3px;
  color: #8b9aaa;
  font-size: 10px;
}

.category-inbound-btn em {
  color: #b3bec8;
  font-size: 20px;
  font-style: normal;
}

.category-detail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 18px 3px 10px;
}

.category-detail-head h2 {
  margin: 0;
  color: #1d2f43;
  font-size: 18px;
}

.category-detail-head p {
  margin: 3px 0 0;
  color: #93a1af;
  font-size: 10px;
}

.category-detail-head > span {
  color: #7b8b9b;
  font-size: 10px;
}

.category-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.category-item-card {
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e1e9f1;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(39, 73, 106, .08);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.category-item-card:active {
  transform: scale(.985);
  background: #f9fcff;
}

.category-item-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / .88;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #edf2f7;
  display: block;
  cursor: zoom-in;
}

.category-item-photo:disabled {
  cursor: default;
}

.category-item-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-item-photo > i {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(22, 95, 166, .82);
  color: #fff;
  font-size: 9px;
  font-style: normal;
}

.category-item-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #a1afbc;
  font-size: 34px;
}

.category-item-placeholder small {
  font-size: 10px;
}

.category-item-info {
  padding: 10px 11px 12px;
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.category-item-info b {
  overflow: hidden;
  color: #21354a;
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-item-info small {
  overflow: hidden;
  margin-top: 4px;
  color: #8b9baa;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-detail-empty {
  padding: 48px 18px;
  border: 1px dashed #d6e1eb;
  border-radius: 16px;
  background: rgba(255, 255, 255, .6);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #9aa8b5;
}

.category-detail-empty > span {
  font-size: 38px;
}

.category-detail-empty b {
  margin-top: 9px;
  color: #56687b;
  font-size: 13px;
}

.category-detail-empty small {
  margin-top: 4px;
  font-size: 10px;
}

/* ---------- 物品只读详情 ---------- */
.item-detail-page {
  min-height: 100%;
  padding: 12px 14px 34px;
  background:
    radial-gradient(circle at 92% 0, rgba(80, 158, 223, .15), transparent 24%),
    linear-gradient(180deg, #f1f8ff 0, #f6f8fb 42%, #f1f4f8 100%);
}

.item-detail-gallery {
  overflow: hidden;
  border-radius: 18px;
  background: #e9eff5;
  box-shadow: 0 9px 24px rgba(36, 70, 104, .12);
}

.item-detail-gallery.multiple {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 9px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.item-detail-gallery::-webkit-scrollbar {
  display: none;
}

.item-detail-gallery > button {
  position: relative;
  width: 100%;
  flex: none;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #e8eef4;
  cursor: zoom-in;
}

.item-detail-gallery.multiple > button {
  width: 88%;
  scroll-snap-align: center;
}

.item-detail-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-detail-gallery > button > span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(19, 31, 45, .62);
  color: #fff;
  font-size: 10px;
  line-height: 23px;
  text-align: center;
}

.item-detail-no-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #9ba9b6;
}

.item-detail-no-photo span {
  font-size: 46px;
}

.item-detail-no-photo small {
  font-size: 11px;
}

.item-detail-title {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #e1e9f1;
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 7px 18px rgba(38, 72, 104, .06);
}

.item-detail-title > span {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  background: #eaf3fc;
  color: #377ab4;
  font-size: 10px;
}

.item-detail-title h1 {
  margin: 9px 0 5px;
  color: #1e3146;
  font-size: 23px;
  line-height: 1.3;
}

.item-detail-title p {
  margin: 0;
  color: #8b9aaa;
  font-size: 11px;
}

.item-detail-info-card {
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid #e1e9f1;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 6px 17px rgba(38, 72, 104, .05);
}

.item-detail-info-card > div {
  min-height: 48px;
  padding: 10px 14px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-size: 12px;
}

.item-detail-info-card > div + div {
  border-top: 1px solid #eef2f6;
}

.item-detail-info-card span {
  width: 72px;
  flex: none;
  color: #8795a4;
}

.item-detail-info-card b {
  min-width: 0;
  flex: 1;
  color: #304356;
  font-weight: 500;
  line-height: 1.6;
  text-align: right;
  word-break: break-word;
}

.item-detail-history {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #e1e9f1;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 6px 17px rgba(38, 72, 104, .05);
}

.item-detail-history-head {
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eef2f6;
}

.item-detail-history-head h2 {
  margin: 0;
  color: #304356;
  font-size: 14px;
}

.item-detail-history-head span {
  color: #95a2af;
  font-size: 10px;
}

.item-detail-record {
  padding: 12px 14px;
  display: flex;
  gap: 10px;
}

.item-detail-record + .item-detail-record {
  border-top: 1px solid #eef2f6;
}

.item-detail-record-index {
  width: 25px;
  height: 25px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #edf4fb;
  color: #5685ad;
  font-size: 9px;
  font-weight: 700;
}

.item-detail-record > div {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.item-detail-record b {
  color: #374b5f;
  font-size: 12px;
  font-weight: 600;
}

.item-detail-record small {
  margin-top: 4px;
  color: #8d9aa8;
  font-size: 10px;
}

.item-detail-record p {
  margin: 5px 0 0;
  padding: 7px 9px;
  border-radius: 7px;
  background: #f6f8fa;
  color: #657586;
  font-size: 10px;
  line-height: 1.5;
}

.item-detail-empty {
  padding: 28px;
  color: #98a5b2;
  font-size: 11px;
  text-align: center;
}

.ia-field-static {
  cursor: default;
}

.ia-field-locked {
  flex: none;
  padding: 2px 6px;
  border-radius: 5px;
  background: #eaf3fd;
  color: #3e7db7;
  font-size: 9px;
}

/* ---------- 统计页 ---------- */
.statistics-page {
  min-height: 100%;
  padding: calc(14px + env(safe-area-inset-top)) 14px 90px;
  background:
    radial-gradient(circle at 92% 1%, rgba(72, 182, 167, .16), transparent 24%),
    linear-gradient(180deg, #edf8fb 0, #f4f7fa 44%, #eef2f6 100%);
}

.statistics-hero {
  position: relative;
  overflow: hidden;
  min-height: 142px;
  padding: 20px;
  border-radius: 19px;
  background: linear-gradient(135deg, #155e9d 0, #1d8fb5 57%, #49b7a3 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 12px 28px rgba(30, 92, 132, .23);
}

.statistics-hero::before,
.statistics-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
}

.statistics-hero::before {
  top: -70px;
  right: -30px;
  width: 180px;
  height: 180px;
}

.statistics-hero::after {
  right: 75px;
  bottom: -95px;
  width: 190px;
  height: 190px;
}

.statistics-hero > div {
  position: relative;
  z-index: 1;
}

.statistics-hero small {
  color: rgba(255, 255, 255, .72);
  font-size: 9px;
  letter-spacing: 1.2px;
}

.statistics-hero h1 {
  margin: 7px 0 5px;
  font-size: 29px;
  letter-spacing: -.6px;
}

.statistics-hero p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 11px;
}

.statistics-hero-total {
  min-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.statistics-hero-total b {
  font-size: 34px;
  line-height: 1;
}

.statistics-hero-total span {
  margin-top: 5px;
  color: rgba(255, 255, 255, .78);
  font-size: 9px;
}

.statistics-warehouse-stack {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.statistics-warehouse-card {
  overflow: hidden;
  padding: 15px 13px;
  border: 1px solid rgba(218, 228, 238, .9);
  border-radius: 17px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 22px rgba(39, 75, 109, .07);
}

.statistics-warehouse-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf1f5;
}

.statistics-warehouse-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.statistics-warehouse-title > span {
  width: 35px;
  height: 35px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eaf4fb;
  color: #3285bb;
  font-size: 12px;
  font-weight: 800;
}

.statistics-warehouse-title > div {
  min-width: 0;
}

.statistics-warehouse-title h2 {
  overflow: hidden;
  margin: 0;
  color: #22354a;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statistics-warehouse-title p {
  overflow: hidden;
  margin: 3px 0 0;
  color: #94a2b1;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statistics-warehouse-summary {
  flex: none;
  text-align: right;
}

.statistics-warehouse-summary b {
  display: block;
  color: #1e6fa9;
  font-size: 22px;
  line-height: 1;
}

.statistics-warehouse-summary span {
  color: #94a2b1;
  font-size: 9px;
}

.statistics-chart-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 13px 1px 9px;
}

.statistics-chart-title b {
  color: #405166;
  font-size: 12px;
}

.statistics-chart-title span {
  color: #9ba8b5;
  font-size: 9px;
}

.statistics-column-chart {
  display: grid;
  grid-template-columns: repeat(var(--bar-count), minmax(38px, 1fr));
  gap: 5px;
  min-height: 164px;
  overflow-x: auto;
  padding: 5px 1px 0;
  border-bottom: 1px solid #e9eef3;
  -webkit-overflow-scrolling: touch;
}

.statistics-column {
  min-width: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.statistics-column > b {
  height: 18px;
  color: #5c6b7c;
  font-size: 9px;
}

.statistics-column-track {
  width: 100%;
  height: 106px;
  padding: 0 23%;
  display: flex;
  align-items: flex-end;
}

.statistics-column-track i {
  display: block;
  width: 100%;
  min-height: 4px;
  border-radius: 5px 5px 2px 2px;
  box-shadow: 0 4px 9px rgba(34, 78, 118, .12);
}

.statistics-column > span {
  width: 100%;
  height: 28px;
  overflow: hidden;
  margin-top: 5px;
  color: #8492a1;
  display: -webkit-box;
  font-size: 8px;
  line-height: 14px;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.statistics-chart-title.pie-title {
  margin-top: 17px;
}

.statistics-pie-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 4px 6px 3px;
}

.statistics-pie {
  width: 116px;
  height: 116px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 7px 16px rgba(43, 73, 104, .11);
}

.statistics-pie > div {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.statistics-pie b {
  color: #24374b;
  font-size: 19px;
  line-height: 1;
}

.statistics-pie span {
  margin-top: 4px;
  color: #97a4b2;
  font-size: 8px;
}

.statistics-pie-legend {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.statistics-pie-legend > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6d7c8c;
  font-size: 9px;
}

.statistics-pie-legend i {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 2px;
}

.statistics-pie-legend span {
  overflow: hidden;
  flex: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statistics-pie-legend b {
  color: #516274;
  font-size: 9px;
}

.statistics-empty {
  padding: 35px 12px 24px;
  color: #9aa7b5;
  font-size: 11px;
  text-align: center;
}

.statistics-no-warehouse {
  margin-top: 15px;
  padding: 45px 16px;
  border: 1px dashed #d5e1eb;
  border-radius: 16px;
  background: rgba(255, 255, 255, .65);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #8e9dad;
}

.statistics-no-warehouse > span {
  font-size: 36px;
}

.statistics-no-warehouse b {
  margin-top: 8px;
  color: #526477;
  font-size: 13px;
}

.statistics-no-warehouse button {
  margin-top: 13px;
  padding: 8px 17px;
  border: 0;
  border-radius: 9px;
  background: #1a6fbf;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
}

/* ---------- 设置页 ---------- */
.settings-page {
  min-height: 100%;
  padding: calc(14px + env(safe-area-inset-top)) 14px 92px;
  background:
    radial-gradient(circle at 90% 0, rgba(255, 185, 94, .18), transparent 25%),
    linear-gradient(180deg, #fff8ef 0, #f5f8fb 33%, #eef3f8 100%);
}

.settings-hero {
  position: relative;
  overflow: hidden;
  min-height: 120px;
  padding: 19px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #3e4f68, #536d87);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 11px 25px rgba(48, 65, 85, .2);
}

.settings-hero small {
  color: rgba(255, 255, 255, .56);
  font-size: 8px;
  letter-spacing: 1px;
}

.settings-hero h1 {
  margin: 6px 0 4px;
  font-size: 27px;
}

.settings-hero p {
  margin: 0;
  color: rgba(255, 255, 255, .7);
  font-size: 10px;
}

.settings-hero > span {
  font-size: 45px;
  opacity: .72;
  filter: grayscale(1) brightness(2);
}

.settings-account {
  width: 100%;
  margin-top: 13px;
  padding: 12px;
  border: 1px solid #e2e9f0;
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 6px 17px rgba(43, 70, 99, .06);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.settings-account-avatar {
  width: 42px;
  height: 42px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #ef9b53, #df713d);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.settings-account-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.settings-account-copy b {
  color: #25374b;
  font-size: 13px;
}

.settings-account-copy small {
  overflow: hidden;
  margin-top: 3px;
  color: #97a4b1;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-account em {
  color: #a7b2bd;
  font-size: 19px;
  font-style: normal;
}

.settings-group {
  margin-top: 14px;
  padding: 14px 9px 9px;
  border: 1px solid #e2e9f0;
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 7px 19px rgba(43, 70, 99, .05);
}

.settings-group h2 {
  margin: 0 5px 10px;
  color: #34475b;
  font-size: 14px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.settings-grid button {
  min-width: 0;
  padding: 10px;
  border: 1px solid #edf1f5;
  border-radius: 11px;
  background: #fafcfe;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  cursor: pointer;
}

.settings-grid button:active {
  background: #f2f7fc;
  border-color: #dce9f4;
}

.settings-icon {
  width: 35px;
  height: 35px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #e8f2fc;
  font-size: 17px;
}

.settings-icon.tone-green {
  background: #e9f8f1;
}

.settings-icon.tone-orange {
  background: #fff1e4;
}

.settings-icon.tone-red {
  background: #ffebea;
}

.settings-icon.tone-purple {
  background: #f2edff;
}

.settings-icon.tone-cyan {
  background: #e8f8f8;
}

.settings-icon.tone-gray {
  background: #f0f2f5;
}

.settings-grid button > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.settings-grid button b {
  overflow: hidden;
  color: #3e5063;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-grid button small {
  overflow: hidden;
  margin-top: 2px;
  color: #9aa7b4;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 相关报表 ---------- */
.report-hero {
  padding: 12px 16px 22px;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.report-page {
  padding-top: 12px;
  padding-bottom: 24px;
}

.report-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-filter {
  height: 38px;
  padding: 0 9px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #3a414a;
  font: inherit;
  font-size: 14px;
  outline: none;
  cursor: pointer;
}

.report-filter:first-child {
  min-width: 80px;
}

.report-filter:last-child {
  min-width: 101px;
}

.report-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.report-stat {
  display: flex;
  min-height: 80px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #fff;
}

.report-stat b {
  font-size: clamp(21px, 6vw, 25px);
  line-height: 1.1;
}

.report-stat span {
  margin-top: 9px;
  color: #929aa4;
  font-size: 13px;
}

.report-stat.green {
  background: #f0fcf7;
  color: #13a06c;
}

.report-stat.red {
  background: #fff4f4;
  color: #d95550;
}

.report-stat.blue {
  background: #f2f8ff;
  color: #247fca;
}

.report-stat.purple {
  background: #faf4ff;
  color: #8a62cb;
}

.report-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  margin-top: 10px;
  border-radius: 4px;
  background: #fff;
}

.report-tabs button {
  height: 42px;
  border: 0;
  background: transparent;
  color: #4f5660;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.report-tabs button.on {
  background: #2d7fca;
  color: #fff;
}

.report-panel {
  min-height: 180px;
  margin-top: 9px;
  padding: 12px;
}

.report-category-head,
.report-category-row {
  display: grid;
  grid-template-columns: 1.35fr .7fr .7fr 1fr;
  gap: 6px;
  align-items: center;
  padding: 8px 5px;
  font-size: 13px;
}

.report-category-head {
  border-radius: 3px;
  background: #f4f6f9;
  color: #929aa4;
}

.report-category-row {
  color: #424a54;
}

.report-category-row + .report-category-row,
.report-material-row + .report-material-row {
  border-top: 1px solid #eef1f5;
}

.report-category-head span,
.report-category-row span,
.report-material-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-table-row {
  display: grid;
  grid-template-columns: 1.3fr .7fr .7fr 1fr;
  gap: 6px;
  padding: 8px 5px;
  border-top: 1px solid #eef1f5;
  color: #505862;
  font-size: 13px;
}

.report-empty {
  display: flex;
  min-height: 155px;
  align-items: center;
  justify-content: center;
  color: #a2a8b0;
  font-size: 15px;
}

.report-legend {
  display: flex;
  gap: 18px;
  color: #59616b;
  font-size: 13px;
}

.report-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.report-legend i {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.report-legend i.in {
  background: #11b47f;
}

.report-legend i.out {
  background: #ee5b55;
}

.report-bars {
  display: flex;
  height: 164px;
  align-items: flex-end;
  justify-content: space-around;
  margin-top: 18px;
  border-bottom: 1px solid #f1f3f6;
}

.report-day {
  display: flex;
  height: 100%;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.report-bar-group {
  display: flex;
  height: 120px;
  align-items: flex-end;
  gap: 3px;
}

.report-bar {
  display: block;
  width: 9px;
  border-radius: 2px 2px 0 0;
}

.report-bar.inbound {
  background: #11b47f;
}

.report-bar.outbound {
  background: #ee5b55;
}

.report-day-label {
  margin: 8px 0 5px;
  color: #a1a7af;
  font-size: 11px;
  white-space: nowrap;
}

.report-material-head,
.report-material-row {
  display: grid;
  grid-template-columns: 1.6fr .8fr .8fr .8fr;
  gap: 6px;
  align-items: center;
  padding: 9px 6px;
  font-size: 13px;
}

.report-material-head {
  background: #f5f7fa;
  color: #8a929c;
}

.report-material-head span:nth-child(n+2),
.report-material-row span:nth-child(n+2),
.report-material-row b {
  text-align: center;
}

.report-material-row {
  color: #4b535d;
}

.report-material-row b {
  color: #2a313a;
}

.report-material-row small {
  margin-left: 4px;
  color: #9ca3ac;
  font-size: 11px;
}

/* 图表 */
.chart-card {
  padding: 12px 14px;
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chart-tabs {
  display: flex;
  gap: 4px;
  background: #f2f5f8;
  border-radius: 8px;
  padding: 2px;
}

.chart-tab {
  padding: 3px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-3);
  cursor: pointer;
}

.chart-tab.on {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.chart-wh {
  margin: 8px 0 10px;
}

.wh-select,
.fsel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  width: 100%;
  max-width: 100%;
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 3px 4px;
  margin: -3px -4px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
}

.bar-row:active {
  background: #eef4fb;
}

.bar-name {
  width: 72px;
  flex: none;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-track {
  flex: 1;
  height: 14px;
  background: #f1f4f8;
  border-radius: 7px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 7px;
  transition: width .3s;
}

.bar-val {
  width: 34px;
  text-align: right;
  font-weight: 600;
}

.pie-chart {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pie {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pie-hole {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pie-total {
  font-size: 18px;
  font-weight: 700;
}

.pie-legend {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.pie-legend .lg {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 3px 4px;
  border-radius: 5px;
  cursor: pointer;
}

.pie-legend .lg:active {
  background: #eef4fb;
}

.pie-legend .lg i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex: none;
}

.pie-legend .lg span {
  margin-left: auto;
  font-size: 11px;
}

/* 菜单宫格 */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 10px 0;
  box-shadow: var(--shadow);
}

.menu-item {
  position: relative;
  padding: 10px 2px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.menu-item:active {
  background: #f5f8fb;
}

.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.bg-blue {
  background: #e8f2fc;
}

.bg-green {
  background: #e6f7f2;
}

.bg-orange {
  background: #fdf3e4;
}

.bg-red {
  background: #fde8e7;
}

.bg-purple {
  background: #f0eeff;
}

.bg-cyan {
  background: #e3f9f9;
}

.bg-gray {
  background: #f0f2f5;
}

.menu-text {
  font-size: 12px;
  color: var(--text-2);
}

.menu-badge {
  position: absolute;
  top: 6px;
  right: 12px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  text-align: center;
}

.menu-badge.orange {
  background: var(--orange);
}

.reminder {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff8e6;
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 12px;
}

.home-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 0 8px;
  font-size: 12px;
  color: var(--text-3);
}

.home-footer .go {
  color: var(--primary);
  cursor: pointer;
}

.alert-card {
  padding-bottom: 4px;
}

.danger-text {
  color: var(--red);
}

.warn-text {
  color: var(--orange);
}

/* ---------- 登录 / 关于 ---------- */
.login-hero,
.about-hero {
  padding: 48px 20px 26px;
  text-align: center;
  background: linear-gradient(180deg, #1a6fbf, #2a7fd0 70%, rgba(238, 243, 249, 0));
  color: #fff;
}

.login-logo,
.about-logo {
  font-size: 54px;
}

.login-title,
.about-name {
  font-size: 22px;
  font-weight: 700;
  margin-top: 6px;
}

.login-sub,
.about-ver {
  font-size: 13px;
  opacity: .88;
  margin-top: 4px;
}

.about-desc {
  font-size: 12px;
  opacity: .82;
  margin-top: 12px;
  line-height: 1.7;
}

.agree-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 4px;
}

.checkbox {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  border: 1px solid #c6ccd4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: transparent;
  flex: none;
  margin-top: 1px;
}

.checkbox.on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.agree-line a {
  color: var(--primary);
  cursor: pointer;
}

.login-tip {
  padding: 14px 6px;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.7;
}

.login-register {
  padding: 16px 4px 4px;
  color: var(--text-3);
  font-size: 14px;
  text-align: center;
}

.login-register a {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

.register-page {
  padding-top: 20px;
}

.register-intro {
  padding: 0 6px 18px;
}

.register-intro-title {
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
}

.register-intro-sub {
  margin-top: 7px;
  color: var(--text-3);
  font-size: 13px;
}

.register-card {
  margin-bottom: 0;
}

.register-note {
  padding: 4px 8px 24px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

/* ---------- 入库明细 ---------- */
.inbound-redesign {
  min-height: 100%;
  padding-bottom: 24px;
  background: #f4f6f8;
}

.inbound-hero {
  min-height: 106px;
  padding: calc(42px + env(safe-area-inset-top)) 18px 25px;
  background: linear-gradient(145deg, #2a83d2, #155e9f);
  color: #fff;
}

.inbound-hero-title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .5px;
}

.inbound-actions {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
  padding: 14px 16px 0;
}

.inbound-action {
  display: flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 20px;
  color: #3e444b;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.inbound-action.primary {
  background: #1a6fbf;
  color: #fff;
  box-shadow: 0 4px 12px rgba(26, 111, 191, .22);
}

.inbound-action.secondary {
  background: #ededee;
}

.inbound-action:active {
  opacity: .82;
}

.inbound-search {
  display: flex;
  height: 39px;
  margin: 13px 16px 0;
  padding: 0 12px;
  align-items: center;
  gap: 7px;
  border-radius: 20px;
  background: #eceef0;
}

.inbound-search span {
  color: #7e858e;
  font-size: 16px;
}

.inbound-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #33383e;
  font: inherit;
  font-size: 14px;
}

.inbound-search input::placeholder {
  color: #8f959d;
}

.inbound-category-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px 8px;
  scrollbar-width: none;
}

.inbound-category-row::-webkit-scrollbar {
  display: none;
}

.inbound-chip {
  flex: none;
  height: 29px;
  padding: 0 13px;
  border: 1px solid #eceff2;
  border-radius: 15px;
  background: #fff;
  color: #59616b;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.inbound-chip.on {
  border-color: #1a6fbf;
  background: #1a6fbf;
  color: #fff;
  font-weight: 600;
}

.inbound-summary {
  display: flex;
  min-height: 32px;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #e9f3fc;
  color: #747b84;
  font-size: 12px;
}

.inbound-summary b {
  color: #1a6fbf;
  font-weight: 600;
}

.inbound-record-list {
  padding: 12px 16px 0;
}

.inbound-batch-card {
  overflow: hidden;
  margin-bottom: 11px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 9px rgba(31, 68, 111, .05);
}

.inbound-batch-head {
  display: flex;
  width: 100%;
  min-height: 66px;
  padding: 12px 13px;
  align-items: center;
  gap: 10px;
  border: 0;
  background: #fff;
  color: #22272d;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.inbound-batch-head:active {
  background: #f8faf9;
}

.inbound-batch-main {
  flex: 1;
  min-width: 0;
}

.inbound-batch-title,
.inbound-batch-meta {
  display: block;
}

.inbound-batch-title b {
  color: #20252a;
  font-size: 15px;
  font-weight: 600;
}

.inbound-batch-title em {
  margin-left: 4px;
  overflow: hidden;
  color: #8b929b;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbound-batch-meta {
  margin-top: 5px;
  overflow: hidden;
  color: #959ca5;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbound-batch-numbers {
  flex: none;
  text-align: right;
}

.inbound-batch-numbers strong,
.inbound-batch-numbers small {
  display: block;
}

.inbound-batch-numbers strong {
  color: #1f252b;
  font-size: 18px;
  line-height: 1.2;
}

.inbound-batch-numbers small {
  margin-top: 4px;
  color: #969da6;
  font-size: 11px;
}

.inbound-batch-arrow {
  flex: none;
  width: 15px;
  color: #c1c7ce;
  font-size: 19px;
  text-align: right;
}

.inbound-batch-items {
  border-top: 1px solid #eef1f3;
  background: #fbfcfc;
}

.inbound-item-row {
  display: flex;
  padding: 11px 13px;
  gap: 10px;
}

.inbound-item-row + .inbound-item-row {
  border-top: 1px solid #f0f2f4;
}

.inbound-item-main {
  flex: 1;
  min-width: 0;
}

.inbound-item-name {
  color: #30363c;
  font-size: 14px;
  font-weight: 500;
}

.inbound-item-meta,
.inbound-item-extra {
  margin-top: 3px;
  color: #9299a2;
  font-size: 12px;
}

.inbound-item-side {
  flex: none;
  text-align: right;
}

.inbound-item-side b {
  display: block;
  color: #30363c;
  font-size: 13px;
}

.inbound-item-side button,
.inbound-batch-footer button {
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #d94f4b;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.inbound-item-side button {
  margin-top: 8px;
}

.inbound-batch-footer {
  padding: 8px 13px 10px;
  border-top: 1px solid #f0f2f4;
  text-align: right;
}

.inbound-empty {
  display: flex;
  min-height: 330px;
  align-items: flex-start;
  justify-content: center;
  padding-top: 79px;
  color: #8f969f;
  font-size: 15px;
}

/* ---------- 借用明细 ---------- */
.borrow-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 16px 0;
}

.borrow-action {
  display: flex;
  min-width: 0;
  height: 39px;
  padding: 0 6px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 5px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.borrow-action.primary {
  background: #1a6fbf;
  color: #fff;
  box-shadow: 0 4px 12px rgba(26, 111, 191, .2);
}

.borrow-action.outline {
  border: 1px solid #dfe3e8;
  background: #fff;
  color: #3d444c;
}

.borrow-action:active {
  opacity: .82;
}

.borrow-status-row {
  display: flex;
  min-width: 0;
  padding: 11px 16px 0;
  align-items: center;
  gap: 8px;
}

.borrow-status-chips {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.borrow-status-chips::-webkit-scrollbar {
  display: none;
}

.borrow-return-link {
  flex: none;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #1a6fbf;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.borrow-redesign .inbound-category-row {
  padding-top: 9px;
  padding-bottom: 8px;
}

.borrow-summary {
  display: flex;
  min-height: 32px;
  padding: 0 16px;
  align-items: center;
  gap: 22px;
  background: #e9f3fc;
  color: #7e858e;
  font-size: 12px;
}

.borrow-summary b {
  color: #1a6fbf;
}

.borrow-summary strong {
  color: #e38a16;
  font-weight: 600;
}

.borrow-summary em {
  color: #12a06b;
  font-style: normal;
  font-weight: 600;
}

.borrow-record-list {
  padding: 2px 16px 0;
}

.borrow-record-card {
  display: flex;
  min-height: 86px;
  margin-bottom: 10px;
  padding: 13px;
  align-items: center;
  gap: 10px;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 9px rgba(31, 68, 111, .05);
}

.borrow-record-main {
  flex: 1;
  min-width: 0;
}

.borrow-record-title {
  color: #20252a;
  font-size: 15px;
  font-weight: 600;
}

.borrow-status {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 400;
}

.borrow-status.active {
  background: #e9f3fc;
  color: #1a6fbf;
}

.borrow-status.pending {
  background: #fff3df;
  color: #d98512;
}

.borrow-status.returned {
  background: #e7f7f0;
  color: #109b67;
}

.borrow-record-meta,
.borrow-record-qty {
  margin-top: 4px;
  overflow: hidden;
  color: #999fa8;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.borrow-record-actions {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.borrow-record-actions button {
  min-width: 48px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.borrow-return-btn {
  background: #1a6fbf;
  color: #fff;
}

.borrow-delete-btn {
  background: transparent;
  color: #d94f4b;
}

/* ---------- 归还管理 ---------- */
.return-redesign {
  min-height: 100vh;
  padding-bottom: 24px;
  background: #f5f7f9;
}

.return-hero {
  position: relative;
  min-height: 128px;
  padding: calc(44px + env(safe-area-inset-top)) 18px 22px;
  background: linear-gradient(145deg, #2a83d2, #155e9f);
  color: #fff;
}

.return-back {
  position: absolute;
  top: calc(13px + env(safe-area-inset-top));
  left: 12px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 30px;
  line-height: 28px;
  cursor: pointer;
}

.return-title {
  margin-top: 27px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .5px;
}

.return-search {
  position: relative;
  z-index: 1;
  margin: -10px 16px 10px;
  background: #fff;
  box-shadow: 0 2px 9px rgba(31, 68, 111, .05);
}

.return-tabs {
  display: flex;
  height: 56px;
  padding: 0 18px;
  gap: 34px;
  border-bottom: 1px solid #e8ecef;
  background: #fff;
}

.return-tab {
  position: relative;
  flex: 1;
  border: 0;
  background: transparent;
  color: #989ea7;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.return-tab.on {
  color: #0ca66b;
  font-weight: 600;
}

.return-tab.on::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #0ca66b;
}

.return-list {
  padding: 2px 16px 0;
}

.return-loan-card,
.return-history-card {
  display: flex;
  min-height: 82px;
  margin-bottom: 9px;
  padding: 13px;
  align-items: center;
  gap: 10px;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 9px rgba(31, 68, 111, .05);
}

.return-loan-main {
  flex: 1;
  min-width: 0;
}

.return-loan-title {
  color: #24292f;
  font-size: 15px;
  font-weight: 600;
}

.return-loan-meta,
.return-loan-qty {
  margin-top: 4px;
  overflow: hidden;
  color: #959ca5;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.return-loan-btn {
  flex: none;
  width: 52px;
  height: 31px;
  border: 0;
  border-radius: 5px;
  background: #1a6fbf;
  color: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.return-success-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  background: #e7f7f0;
  color: #109b67;
  font-size: 11px;
  font-weight: 400;
}

.return-delete-btn {
  flex: none;
  padding: 5px 2px;
  border: 0;
  background: transparent;
  color: #d94f4b;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.return-empty {
  padding-top: 86px;
  color: #a0a6ae;
  font-size: 15px;
  text-align: center;
}

.return-empty::before {
  content: "🧹";
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

/* ---------- 借用登记 / 借用单查询 ---------- */
.borrow-add-page {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

.borrow-status-control {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.date-pick.is-empty {
  color: #b6bcc6;
}

.borrow-status-choice {
  min-width: 61px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid #e6e9ed;
  border-radius: 15px;
  background: #fff;
  color: #8c939c;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.borrow-status-choice.on {
  border-color: #1a6fbf;
  background: #1a6fbf;
  color: #fff;
  font-weight: 600;
}

.borrow-signature-card {
  padding: 10px 12px 12px;
}

.borrow-signature-wrap {
  position: relative;
  height: 126px;
  overflow: hidden;
  border: 1px dashed #d7dce2;
  border-radius: 6px;
  background: #fff;
}

.borrow-signature-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}

.borrow-signature-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #a1a7af;
  font-size: 13px;
  pointer-events: none;
}

.borrow-signature-hint span {
  font-size: 25px;
}

.borrow-signature-hint b {
  font-weight: 400;
}

.borrow-signature-hint.hidden {
  display: none;
}

.borrow-signature-clear {
  display: block;
  margin: 9px 0 0 auto;
  padding: 3px 0 3px 12px;
  border: 0;
  background: transparent;
  color: #1a6fbf;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.borrow-signature-clear:disabled {
  color: #c4cad1;
  cursor: default;
}

.borrow-signature-inline,
.borrow-signature-link {
  border: 0;
  background: transparent;
  color: #1a6fbf;
  font: inherit;
  font-size: inherit;
  cursor: pointer;
}

.borrow-signature-inline {
  padding: 0 2px;
}

.borrow-signature-link {
  flex: none;
  padding: 5px 2px;
}

.borrow-query-page {
  padding-top: 12px;
  padding-bottom: 24px;
}

.borrow-query-panel {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(31, 68, 111, .06);
}

.borrow-query-title {
  padding: 16px 17px 12px;
  color: #2c3239;
  font-size: 16px;
  font-weight: 600;
}

.borrow-query-row {
  display: flex;
  min-height: 50px;
  margin: 0 17px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf0f3;
  color: #555c65;
  font-size: 14px;
}

.borrow-query-row > span {
  flex: none;
}

.borrow-query-row i {
  margin-right: 4px;
  color: #e04f4b;
  font-style: normal;
}

.borrow-query-row b {
  color: #7e858e;
  font-size: 15px;
  font-weight: 400;
}

.borrow-query-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #555c65;
  font: inherit;
  font-size: 14px;
  text-align: right;
}

.borrow-query-row input::placeholder {
  color: #7e858e;
}

.borrow-query-actions {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 12px;
  padding: 17px;
}

.borrow-query-actions button {
  height: 40px;
  border: 0;
  border-radius: 5px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.borrow-query-reset {
  background: #f2f4f6;
  color: #6f7680;
}

.borrow-query-submit {
  background: #1a6fbf;
  color: #fff;
}

.borrow-query-result-head {
  padding: 15px 3px 8px;
  color: #7f868f;
  font-size: 13px;
}

.borrow-query-result-head b {
  color: #1a6fbf;
}

.borrow-query-results {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.borrow-query-result-card {
  display: flex;
  min-height: 74px;
  padding: 12px 14px;
  align-items: center;
  gap: 10px;
}

.borrow-query-result-card + .borrow-query-result-card {
  border-top: 1px solid #eef1f4;
}

.borrow-query-result-main {
  flex: 1;
  min-width: 0;
}

.borrow-query-empty {
  padding: 54px 12px;
  color: #9aa1aa;
  font-size: 14px;
  text-align: center;
}

/* ---------- 用户与权限管理 ---------- */
.profile-manage-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
}

.profile-manage-copy b {
  color: #20242a;
  font-size: 15px;
  font-weight: 600;
}

.profile-manage-copy small {
  color: #a0a6af;
  font-size: 11px;
  font-weight: 400;
}

.user-manage-page {
  padding-top: 14px;
  padding-bottom: 28px;
}

.user-manage-overview {
  display: flex;
  min-height: 72px;
  margin-bottom: 12px;
  padding: 14px 16px;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  background: linear-gradient(145deg, #2a83d2, #155e9f);
  color: #fff;
  box-shadow: 0 5px 16px rgba(21, 94, 159, .2);
}

.user-manage-overview b,
.user-manage-overview span {
  display: block;
}

.user-manage-overview b {
  font-size: 17px;
}

.user-manage-overview span {
  margin-top: 5px;
  color: rgba(255, 255, 255, .75);
  font-size: 12px;
}

.user-manage-overview strong {
  font-size: 32px;
  line-height: 1;
}

.user-manage-list {
  padding: 0 14px;
}

.user-manage-item {
  display: flex;
  min-height: 75px;
  padding: 12px 0;
  align-items: center;
  gap: 10px;
}

.user-manage-item + .user-manage-item {
  border-top: 1px solid #edf0f3;
}

.user-manage-avatar {
  display: flex;
  width: 38px;
  height: 38px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #8f69e8, #5d43df);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.user-manage-info {
  flex: 1;
  min-width: 0;
}

.user-manage-name {
  overflow: hidden;
  color: #282d33;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-manage-meta {
  margin-top: 4px;
  overflow: hidden;
  color: #9aa1aa;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-self-tag {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 5px;
  border-radius: 3px;
  background: #e9f3fc;
  color: #1a6fbf;
  font-size: 10px;
  font-weight: 400;
}

.user-manage-actions {
  display: flex;
  flex: none;
  width: 100px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.user-role-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.user-role-badge.admin {
  background: #e9f3fc;
  color: #1a6fbf;
}

.user-role-badge.head {
  background: #f0eeff;
  color: #6c52d9;
}

.user-role-badge.warehouse {
  background: #e7f7f0;
  color: #119b69;
}

.user-role-badge.member {
  background: #f1f3f5;
  color: #737b85;
}

.user-role-btn,
.user-remove-btn {
  padding: 1px 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.user-role-btn {
  color: #1a6fbf;
}

.user-remove-btn {
  color: #d94f4b;
}

.user-permission-guide {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #dfe9f4;
  border-radius: 9px;
  background: #f2f8fd;
  color: #6e7782;
  font-size: 12px;
  line-height: 1.9;
}

.user-permission-title {
  margin-bottom: 5px;
  color: #295a89;
  font-size: 14px;
  font-weight: 600;
}

.user-permission-guide b {
  color: #3e4853;
  font-weight: 600;
}

.user-manage-denied {
  margin-top: 24px;
  padding: 60px 16px;
  border-radius: 10px;
  background: #fff;
  color: #8d949d;
  text-align: center;
}

.doc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.9;
}

.trial-page {
  padding: 90px 30px;
  text-align: center;
}

.trial-ico {
  font-size: 60px;
}

.trial-h {
  font-size: 19px;
  font-weight: 600;
  margin: 14px 0 8px;
}

.trial-p {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 30px;
}

/* ---------- 库存 ---------- */
.stock-alert-hero {
  padding: 12px 16px 22px;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.stock-alert-page {
  padding-top: 14px;
  padding-bottom: 24px;
}

.stock-alert-summary {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px;
  color: #858c95;
  font-size: 14px;
}

.stock-alert-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stock-alert-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 68, 111, .06);
}

.stock-alert-main {
  flex: 1;
  min-width: 0;
}

.stock-alert-name {
  color: #252a31;
  font-size: 16px;
  font-weight: 600;
}

.stock-alert-name span {
  margin-left: 5px;
  color: #a0a6af;
  font-size: 13px;
  font-weight: 400;
}

.stock-alert-category {
  margin-top: 4px;
  color: #939aa3;
  font-size: 13px;
}

.stock-alert-value {
  flex: none;
  text-align: right;
}

.stock-alert-value b,
.stock-alert-value span {
  display: block;
}

.stock-alert-value b {
  color: #d54941;
  font-size: 16px;
}

.stock-alert-value span {
  margin-top: 4px;
  color: #9198a1;
  font-size: 12px;
}

.stock-alert-tip {
  margin-top: 14px;
  color: #939aa3;
  font-size: 13px;
  line-height: 1.6;
}

.stock-alert-empty {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 35px;
}

.stock-alert-ok {
  width: 78px;
  height: 78px;
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .06));
}

.stock-alert-ok-text {
  margin-top: 30px;
  color: #9299a2;
  font-size: 16px;
}

.stock-alert-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
  margin-top: 14px;
}

.stock-alert-actions.empty {
  margin-top: 72px;
}

.stock-alert-actions button {
  height: 42px;
  border: 0;
  border-radius: 5px;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.stock-alert-set {
  background: #faf6ed;
  color: #5c6470;
}

.stock-alert-view {
  background: #2f87d7;
  color: #fff;
}

.stock-alert-actions button:active {
  opacity: .8;
}

.expiry-alert-hero {
  padding: 12px 16px 22px;
  background: #f08a18;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.expiry-alert-page {
  padding-top: 12px;
  padding-bottom: 24px;
}

.expiry-settings-card {
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 68, 111, .06);
}

.expiry-settings-title {
  color: #30363e;
  font-size: 17px;
  font-weight: 600;
}

.expiry-setting-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  color: #565e68;
  font-size: 15px;
}

.expiry-stepper {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.expiry-stepper button {
  width: 35px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #f1f3f5;
  color: #6f7680;
  font: inherit;
  font-size: 20px;
  cursor: pointer;
}

.expiry-stepper button:first-child {
  border-radius: 4px 0 0 4px;
}

.expiry-stepper button:nth-of-type(2) {
  border-radius: 0 4px 4px 0;
}

.expiry-stepper input {
  width: 48px;
  height: 34px;
  padding: 0;
  border: 0;
  border-top: 1px solid #eef0f3;
  border-bottom: 1px solid #eef0f3;
  background: #fff;
  color: #df8013;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}

.expiry-stepper input::-webkit-outer-spin-button,
.expiry-stepper input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.expiry-stepper > span {
  margin-left: 7px;
  color: #848b94;
  font-size: 14px;
}

.expiry-setting-note {
  margin-top: 11px;
  color: #979da6;
  font-size: 12px;
  line-height: 1.55;
}

.expiry-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.expiry-stat-card {
  display: flex;
  min-height: 68px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: #fff;
}

.expiry-stat-card b {
  font-size: 24px;
  line-height: 1;
}

.expiry-stat-card span {
  margin-top: 7px;
  color: #8f96a0;
  font-size: 13px;
}

.expiry-stat-card.red b {
  color: #df4c46;
}

.expiry-stat-card.orange b {
  color: #e68a16;
}

.expiry-stat-card.blue b {
  color: #1d78c9;
}

.expiry-list-card,
.expiry-empty-card {
  margin-top: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 68, 111, .06);
}

.expiry-list-card {
  overflow: hidden;
}

.expiry-list-head {
  display: flex;
  justify-content: space-between;
  padding: 13px 14px;
  border-bottom: 1px solid #eef1f5;
  color: #7d848e;
  font-size: 13px;
}

.expiry-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 11px 14px;
}

.expiry-item + .expiry-item {
  border-top: 1px solid #eef1f5;
}

.expiry-main {
  flex: 1;
  min-width: 0;
}

.expiry-name {
  overflow: hidden;
  color: #2c323a;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expiry-name span {
  margin-left: 5px;
  color: #a0a6af;
  font-size: 12px;
  font-weight: 400;
}

.expiry-meta {
  margin-top: 4px;
  color: #9198a1;
  font-size: 12px;
}

.expiry-badge {
  flex: none;
  padding: 4px 7px;
  border-radius: 3px;
  font-size: 12px;
}

.expiry-badge.orange {
  background: #fff4e4;
  color: #de8310;
}

.expiry-badge.red {
  background: #fff0f0;
  color: #d34b46;
}

.expiry-empty-card {
  display: flex;
  min-height: 206px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  color: #9299a2;
  font-size: 16px;
  text-align: center;
}

.expiry-ok-icon {
  width: 61px;
  height: 61px;
}

.expiry-empty-card > div {
  margin-top: 23px;
}

.inventory-hero {
  padding: 12px 16px 22px;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.inventory-page,
.inventory-count-page {
  padding-top: 12px;
}

.inventory-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 12px 18px;
  text-align: center;
}

.inventory-calc-icon {
  display: grid;
  width: 62px;
  height: 62px;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
  place-items: center start;
  padding-left: 15px;
  border: 3px solid #111;
  border-radius: 3px;
  background: #16529b;
  box-shadow: inset 0 0 0 2px #79d5f2;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.inventory-intro-title {
  margin-top: 16px;
  color: #21262d;
  font-size: 24px;
  font-weight: 600;
}

.inventory-intro-desc {
  max-width: 370px;
  margin-top: 9px;
  color: #8c929b;
  font-size: 14px;
  line-height: 1.7;
}

.inventory-settings-card {
  padding: 0 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 68, 111, .05);
}

.inventory-setting-row {
  display: flex;
  min-height: 57px;
  align-items: center;
  gap: 12px;
  color: #3f454d;
  font-size: 15px;
}

.inventory-setting-row + .inventory-setting-row {
  border-top: 1px solid #eef1f5;
}

.inventory-setting-row > span:first-child {
  flex: none;
}

.inventory-control {
  min-width: 0;
  height: 38px;
  margin-left: auto;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: #f6f7f9;
  color: #3d444d;
  font: inherit;
  font-size: 14px;
  text-align: right;
  outline: none;
}

.inventory-date {
  width: 150px;
  background: transparent;
}

.inventory-start {
  width: 100%;
  height: 44px;
  margin-top: 14px;
  border: 0;
  border-radius: 5px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.inventory-start:active {
  opacity: .82;
}

.inventory-history-toggle {
  display: flex;
  width: 100%;
  height: 50px;
  margin-top: 18px;
  padding: 0 14px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 5px;
  background: #fff;
  color: #3c434c;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.inventory-history-arrow {
  color: #aab0b8;
  font-size: 12px;
  transition: transform .18s;
}

.inventory-history-arrow.open {
  transform: rotate(180deg);
}

.inventory-history-list {
  overflow: hidden;
  margin-top: 8px;
  border-radius: 7px;
  background: #fff;
}

.inventory-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
}

.inventory-history-item + .inventory-history-item {
  border-top: 1px solid #eef1f5;
}

.inventory-history-item > div {
  flex: 1;
}

.inventory-history-title {
  color: #3d444d;
  font-size: 14px;
  font-weight: 500;
}

.inventory-history-meta,
.inventory-history-item > span,
.inventory-history-empty {
  color: #9299a2;
  font-size: 12px;
}

.inventory-history-meta {
  margin-top: 3px;
}

.inventory-history-empty {
  padding: 18px;
  text-align: center;
}

.inventory-help {
  margin-top: 10px;
  padding: 13px 16px 15px;
  border: 1px solid #f0e0b8;
  border-radius: 6px;
  background: #fffaf1;
  color: #8d7552;
  font-size: 13px;
  line-height: 1.75;
}

.inventory-help-title {
  color: #ad6e13;
  font-weight: 600;
}

.inventory-help ul {
  margin: 7px 0 0;
  padding-left: 19px;
}

.inventory-count-page {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

.inventory-submit-bar {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 0;
  z-index: 25;
  width: 100%;
  max-width: var(--app-max-width);
  transform: translateX(-50%);
  border-top: 1px solid #e7edf4;
  background: #fff;
  box-shadow: 0 -3px 12px rgba(31, 68, 111, .08);
}

.inventory-cancel-btn {
  width: 100%;
  margin-top: 12px;
}

.filter-card {
  padding: 4px 0;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
}

.filter-row+.filter-row {
  border-top: 1px solid var(--line);
}

.filter-label {
  width: 74px;
  flex: none;
  font-size: 14px;
  color: var(--text-2);
}

.clr {
  color: var(--text-3);
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
}

.sum-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.sum-box {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
  box-shadow: var(--shadow);
}

.sum-v {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

.sum-l {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

.stock-row {
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.stock-row:active {
  background: #f2f7fc;
}

.stock-qty {
  font-size: 17px;
  font-weight: 700;
}

.stock-photo-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
}

.stock-photo-thumb {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dfe7ef;
  border-radius: 7px;
  background: #f4f7fa;
  cursor: pointer;
}

.stock-photo-thumb:active {
  border-color: var(--primary);
  opacity: .82;
}

.stock-photo-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stock-photo-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eef4fb;
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
}

.stock-edit-photos {
  margin: 4px 0 10px;
  padding: 11px;
  border: 1px solid #dfe7ef;
  border-radius: 9px;
  background: #fff;
}

.stock-edit-photos-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  color: #4e5a66;
  font-size: 13px;
}

.stock-edit-photos-head b {
  color: #84909c;
  font-size: 11px;
  font-weight: 500;
}

.stock-edit-photo-strip {
  margin-top: 0;
  overflow-x: auto;
  padding-bottom: 1px;
}

.stock-edit-photo {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
}

.stock-edit-photo-more {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.stock-param-sheet .sheet-body {
  padding: 6px 12px 12px;
  background: #f5f8fb;
}

.stock-param-sheet {
  max-height: 92%;
}

.stock-param-sheet .form-row {
  min-height: 56px;
  padding: 7px 2px;
  background: transparent;
}

.stock-param-sheet .form-row + .form-row {
  border-top-color: #e4eaf1;
}

.stock-param-sheet .f-label {
  width: 82px;
  color: #4e5a66;
}

.stock-param-tip {
  margin: 4px 0 8px;
  padding: 9px 11px;
  border-radius: 7px;
  background: #e9f3fd;
  color: #3472aa;
  font-size: 12px;
  line-height: 1.5;
}

.stock-param-row {
  cursor: text;
}

.stock-param-row:active {
  background: rgba(232, 241, 250, .72) !important;
}

.stock-param-row .f-ctrl {
  display: block;
}

.stock-param-row input.ipt,
.stock-param-row select.ipt {
  display: block;
  width: 100%;
  height: 42px;
  padding: 0 11px;
  border: 1px solid #d8e0e9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(31, 68, 111, .03);
  color: #25313d;
  font-size: 16px;
  line-height: 40px;
  text-align: left;
  -webkit-appearance: none;
}

.stock-param-row select.ipt {
  padding-right: 30px;
  background:
    linear-gradient(45deg, transparent 50%, #8793a0 50%) calc(100% - 16px) 18px / 5px 5px no-repeat,
    linear-gradient(135deg, #8793a0 50%, transparent 50%) calc(100% - 11px) 18px / 5px 5px no-repeat,
    #fff;
}

.stock-param-row input.ipt::placeholder {
  color: #a5adb7;
  font-size: 13px;
}

.stock-param-row input.ipt:focus {
  border-color: #4b96d5;
  box-shadow: 0 0 0 3px rgba(33, 126, 205, .12);
  outline: none;
}

.stock-param-sheet .sheet-foot {
  background: #fff;
}

.stock-param-sheet .sheet-foot .btn {
  border-radius: 7px;
}

.stock-param-sheet .sheet-foot .btn:disabled {
  opacity: .55;
  pointer-events: none;
}

.stock-stock-note {
  padding: 8px 2px 2px 84px;
  color: #84909c;
  font-size: 11px;
  line-height: 1.6;
}

.count-row .qty-ipt {
  width: 70px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  text-align: right;
}

/* ---------- 分类 chips ---------- */
.cat-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 4px;
  -webkit-overflow-scrolling: touch;
}

.cat-scroll::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  padding: 5px 12px;
  border-radius: 14px;
  background: #fff;
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  border: 1px solid var(--line);
}

.chip.on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.chip.add {
  color: var(--primary);
  border-color: #cfe3f7;
  background: #f2f8fe;
}

.sum-line {
  padding: 8px 4px 10px;
  font-size: 13px;
  color: var(--text-2);
}

.sum-line b {
  color: var(--primary);
  font-size: 15px;
}

/* ---------- 批次 / 记录 ---------- */
.batch+.batch {
  border-top: 6px solid var(--bg);
}

.item-row {
  background: #fafbfd;
}

.del {
  color: var(--red);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 2px;
  flex: none;
}

.fab {
  position: fixed;
  right: calc(50% - 240px + 16px);
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a6fbf, #3d8ed6);
  color: #fff;
  font-size: 28px;
  line-height: 48px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(26, 111, 191, .4);
  cursor: pointer;
  z-index: 40;
}

@media (max-width: 480px) {
  .fab {
    right: 16px;
  }
}

/* ---------- 个人信息 ---------- */
.profile-page {
  min-height: calc(100vh - var(--navbar-h));
  padding: 10px 16px 32px;
  background: #f7f8fa;
}

.profile-page-title {
  margin: 0 2px 14px;
  color: #1f2329;
  font-size: 20px;
  font-weight: 700;
}

.profile-main-card {
  margin: 0;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(31, 68, 111, .04);
}

.profile-avatar {
  display: flex;
  width: 84px;
  height: 84px;
  margin: 18px auto 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #8f69e8, #5d43df);
  cursor: pointer;
}

.profile-avatar span {
  width: 100%;
  height: 100%;
  background: inherit;
}

.profile-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-tip {
  margin: 7px 0 15px;
  color: #999fa8;
  font-size: 12px;
  text-align: center;
}

.profile-info {
  border-top: 1px solid #eef0f3;
}

.profile-info-row {
  display: flex;
  min-height: 47px;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #eef0f3;
  color: #8e949d;
  font-size: 14px;
}

.profile-info-row:last-child {
  border-bottom: 0;
}

.profile-info-row strong {
  min-width: 0;
  overflow: hidden;
  color: #33373d;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-setting-card {
  margin-top: 12px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(31, 68, 111, .04);
}

.profile-setting-head {
  display: flex;
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: #fff;
  color: #20242a;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.profile-setting-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.profile-setting-icon {
  width: 18px;
  font-size: 16px;
  text-align: center;
}

.profile-setting-arrow {
  color: #b9bfc8;
  font-size: 16px;
  transition: transform .2s ease;
}

.profile-setting-arrow.open {
  transform: rotate(180deg);
}

.profile-setting-body {
  padding: 2px 16px 15px;
  border-top: 1px solid #eef0f3;
}

.profile-field {
  display: block;
  margin-top: 11px;
}

.profile-field > span {
  display: block;
  margin-bottom: 6px;
  color: #7f858e;
  font-size: 12px;
}

.profile-field input {
  width: 100%;
  height: 39px;
  padding: 0 11px;
  border: 1px solid #e3e7ed;
  border-radius: 7px;
  outline: 0;
  background: #fafbfc;
  color: #33373d;
  font: inherit;
  font-size: 14px;
}

.profile-field input:focus {
  border-color: #79aee3;
  background: #fff;
}

.profile-save-btn {
  width: 100%;
  height: 38px;
  margin-top: 13px;
  border: 0;
  border-radius: 7px;
  background: #1a6fbf;
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.profile-save-btn:active,
.profile-setting-head:active,
.profile-avatar:active {
  opacity: .82;
}

.profile-guest-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(31, 68, 111, .04);
}

.profile-guest-card > span {
  width: 43px;
  height: 43px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #edf2f8;
  font-size: 21px;
}

.profile-guest-card > div {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.profile-guest-card b {
  color: #303943;
  font-size: 14px;
}

.profile-guest-card small {
  overflow: hidden;
  margin-top: 3px;
  color: #929ba5;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-guest-card button {
  flex: none;
  padding: 7px 12px;
  border: 0;
  border-radius: 8px;
  background: #1a6fbf;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
}

.profile-utility-card {
  overflow: hidden;
  margin-top: 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(31, 68, 111, .04);
}

.profile-utility-card button {
  width: 100%;
  min-height: 61px;
  padding: 9px 14px;
  border: 0;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.profile-utility-card button + button {
  border-top: 1px solid #eef1f5;
}

.profile-utility-card button:active {
  background: #f6f9fc;
}

.profile-utility-icon {
  width: 35px;
  height: 35px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #edf3fb;
  font-size: 17px;
}

.profile-utility-card button > span:nth-child(2) {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.profile-utility-card b {
  color: #303943;
  font-size: 14px;
  font-weight: 500;
}

.profile-utility-card small {
  overflow: hidden;
  margin-top: 3px;
  color: #969fa9;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-utility-card em {
  color: #b5bdc6;
  font-size: 19px;
  font-style: normal;
}

.profile-logout {
  display: block;
  width: 62%;
  max-width: 240px;
  height: 42px;
  margin: 29px auto 0;
  border: 1px solid #ee9a99;
  border-radius: 7px;
  background: #fff;
  color: #d94b47;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.profile-logout:active {
  background: #fff7f7;
}

/* ---------- 物资表单 ---------- */
.backup-hero {
  padding: 12px 16px 22px;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.backup-page {
  padding-top: 12px;
  padding-bottom: 24px;
}

.backup-card {
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 9px rgba(31, 68, 111, .06);
}

.backup-card-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #252a31;
  font-size: 18px;
  font-weight: 600;
}

.backup-card-title > span {
  font-size: 20px;
  line-height: 1;
}

.backup-guide-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  color: #59616b;
  font-size: 13px;
  line-height: 1.65;
}

.backup-guide-row span {
  flex: none;
}

.backup-guide-row.warning {
  color: #9a6a18;
}

.backup-last-export {
  margin-top: 8px;
  color: #9a9fa7;
  font-size: 13px;
}

.backup-main-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 15px;
}

.backup-main-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 46px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.backup-export-btn {
  background: var(--primary);
}

.backup-restore-btn {
  background: #f4a522;
}

.backup-main-actions button:active,
.backup-export-row:active,
.backup-password-btn:active {
  opacity: .78;
}

.backup-note {
  margin-top: 12px;
  color: #8f959d;
  font-size: 12px;
  line-height: 1.65;
}

.backup-card-subtitle {
  margin-top: 8px;
  color: #9298a1;
  font-size: 12px;
  line-height: 1.55;
}

.backup-export-list {
  margin-top: 12px;
}

.backup-export-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  min-height: 65px;
  margin-top: 8px;
  padding: 9px 12px;
  border: 0;
  border-radius: 7px;
  background: #f7f8fa;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.backup-export-icon {
  display: flex;
  width: 38px;
  height: 38px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 20px;
}

.backup-export-icon.blue {
  background: #e9f8f1;
}

.backup-export-icon.orange {
  background: #fff0ed;
}

.backup-export-icon.purple {
  background: #f5edfb;
}

.backup-export-icon.cyan {
  background: #eaf5fb;
}

.backup-export-icon.amber {
  background: #fff5e3;
}

.backup-export-text {
  flex: 1;
  min-width: 0;
}

.backup-export-text b,
.backup-export-text small {
  display: block;
}

.backup-export-text b {
  color: #303740;
  font-size: 16px;
  font-weight: 500;
}

.backup-export-text small {
  margin-top: 3px;
  color: #9aa0a8;
  font-size: 12px;
}

.backup-export-arrow {
  color: #bdc2ca;
  font-size: 20px;
}

.backup-password-status {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #efd69a;
  border-radius: 5px;
  background: #fffaf0;
  color: #9b6b18;
  font-size: 14px;
}

.backup-password-status.set {
  border-color: #bfe6d6;
  background: #f2fbf7;
  color: #16855d;
}

.backup-field {
  display: block;
  margin-top: 11px;
}

.backup-field span {
  display: block;
  margin-bottom: 7px;
  color: #676e77;
  font-size: 13px;
}

.backup-field input {
  width: 100%;
  height: 44px;
  padding: 0 11px;
  border: 1px solid #e8ebef;
  border-radius: 5px;
  background: #f7f8fa;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
}

.backup-field input:focus {
  border-color: #80a9d9;
  background: #fff;
}

.backup-field input::placeholder {
  color: #a6acb5;
}

.backup-password-btn {
  width: 200px;
  max-width: 72%;
  height: 44px;
  margin: 16px auto 2px;
  border: 0;
  border-radius: 5px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  display: block;
}

.export-choice-dialog {
  width: 304px;
  max-width: 84%;
}

.export-choice-dialog .dialog-body {
  padding: 24px 22px 18px;
}

.export-choice-text {
  margin-top: 10px;
  color: #555d67;
  font-size: 14px;
  line-height: 1.8;
  white-space: normal;
}

.export-choice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 18px 20px;
}

.export-choice-btn {
  height: 42px;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.export-choice-btn.text-only {
  background: #f2f3f5;
  color: #323840;
}

.export-choice-btn.with-image {
  background: #10b96b;
  color: #fff;
}

.export-choice-btn:active {
  opacity: .8;
}

.backup-storage-note {
  padding: 6px 4px 0;
  color: #9aa0a8;
  font-size: 12px;
  line-height: 1.65;
}

.batch-import-page {
  padding-top: 16px;
  padding-bottom: 24px;
}

.batch-import-label {
  margin-bottom: 10px;
  color: #727983;
  font-size: 15px;
}

.batch-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.batch-type-card {
  display: flex;
  min-height: 156px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 8px 12px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 68, 111, .05);
  cursor: pointer;
}

.batch-type-card.selected {
  border-color: #4b93df;
  background: #f8fbff;
}

.batch-type-icon {
  height: 38px;
  font-size: 32px;
  line-height: 1;
}

.batch-type-name {
  margin-top: 9px;
  color: #343a42;
  font-size: 18px;
}

.batch-template-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  margin-top: 12px;
  padding: 0 11px;
  border: 0;
  border-radius: 3px;
  background: #f1f4f7;
  color: #54708e;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.batch-template-btn span {
  font-size: 14px;
}

.batch-template-btn:active {
  background: #e8eef5;
}

.batch-upload-zone {
  display: flex;
  min-height: 184px;
  margin-top: 14px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 14px;
  border: 1.5px dashed #80a6d2;
  border-radius: 8px;
  background: #f8fbff;
  text-align: center;
  cursor: pointer;
}

.batch-upload-zone:active {
  background: #f1f7fe;
}

.batch-folder {
  font-size: 43px;
  line-height: 1;
}

.batch-upload-title {
  margin-top: 10px;
  color: var(--primary);
  font-size: 17px;
  font-weight: 500;
}

.batch-upload-sub {
  margin-top: 6px;
  color: #8f969f;
  font-size: 14px;
  line-height: 1.45;
}

.batch-file-card {
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 68, 111, .05);
}

.batch-file-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.batch-file-head > div {
  flex: 1;
  min-width: 0;
}

.batch-file-head b,
.batch-file-head span {
  display: block;
}

.batch-file-head b {
  color: #343a42;
  font-size: 15px;
}

.batch-file-head div span {
  margin-top: 3px;
  overflow: hidden;
  color: #8f969f;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-file-count {
  flex: none;
  color: var(--primary);
  font-size: 13px;
}

.batch-preview-list,
.batch-error-box,
.batch-warning-box {
  margin-top: 12px;
  border-radius: 6px;
}

.batch-error-box,
.batch-warning-box {
  padding: 10px 11px;
  font-size: 12px;
  line-height: 1.65;
}

.batch-error-box {
  background: #fff1f1;
  color: #b63f3f;
}

.batch-warning-box {
  background: #fff8e8;
  color: #8b641e;
}

.batch-error-box b,
.batch-warning-box b {
  display: block;
  margin-bottom: 4px;
}

.batch-preview-list {
  overflow: hidden;
  border: 1px solid #eef1f5;
}

.batch-preview-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  font-size: 12px;
}

.batch-preview-row + .batch-preview-row {
  border-top: 1px solid #f0f2f5;
}

.batch-preview-row span {
  flex: none;
  color: #9aa1aa;
}

.batch-preview-row b {
  min-width: 0;
  color: #4c545e;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-preview-more {
  padding: 8px 10px;
  border-top: 1px solid #f0f2f5;
  color: #939aa3;
  font-size: 12px;
  text-align: center;
}

.batch-file-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin-top: 13px;
}

.batch-file-actions .btn {
  height: 42px;
}

.batch-file-actions .btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.batch-help-box {
  margin-top: 14px;
  padding: 13px 16px 14px;
  border: 1px solid #f1dfb9;
  border-left: 3px solid #e7aa3f;
  border-radius: 7px;
  background: #fffdf8;
  color: #7d6850;
  font-size: 13px;
  line-height: 1.8;
}

.batch-help-title {
  margin-bottom: 4px;
  color: #805a17;
  font-size: 15px;
  font-weight: 600;
}

.batch-help-box ol {
  margin: 0;
  padding-left: 17px;
}

.supplier-hero {
  padding: 12px 16px 22px;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.supplier-page {
  padding-top: 12px;
  padding-bottom: 24px;
}

.supplier-toolbar {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.supplier-search {
  flex: 1;
  min-width: 0;
  height: 42px;
  border-radius: 4px;
  background: #fff;
}

.supplier-search input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.supplier-search input::placeholder {
  color: #969da6;
}

.supplier-add-btn {
  flex: none;
  width: 88px;
  border: 0;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.supplier-add-btn:active,
.supplier-actions button:active {
  opacity: .78;
}

.supplier-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.supplier-card {
  padding: 13px 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 68, 111, .05);
}

.supplier-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.supplier-name {
  flex: 1;
  min-width: 0;
  color: #292f36;
  font-size: 17px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplier-actions {
  display: flex;
  flex: none;
  gap: 12px;
}

.supplier-actions button {
  padding: 3px 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.supplier-edit {
  color: var(--primary);
}

.supplier-delete {
  color: var(--red);
}

.supplier-info-line {
  margin-top: 6px;
  color: #717983;
  font-size: 13px;
  line-height: 1.55;
  word-break: break-word;
}

.supplier-info-line span {
  color: #979ea7;
}

.supplier-no-match {
  padding: 34px 12px;
  color: #939aa3;
  font-size: 14px;
  text-align: center;
}

.supplier-empty-card {
  display: flex;
  min-height: 218px;
  margin-top: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  color: #9299a2;
  font-size: 15px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(31, 68, 111, .05);
}

.supplier-empty-icon {
  width: 67px;
  height: 67px;
  margin-bottom: 18px;
}

.supplier-form-sheet {
  max-height: 82%;
  border-radius: 18px 18px 0 0;
}

.supplier-form-title {
  flex: none;
  padding: 23px 18px 12px;
  color: #20252c;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.supplier-form-body {
  padding: 4px 16px 8px;
}

.supplier-field {
  display: block;
  margin-bottom: 16px;
}

.supplier-label {
  display: block;
  margin-bottom: 7px;
  color: #414850;
  font-size: 15px;
}

.supplier-label i {
  color: #e24c49;
  font-style: normal;
}

.supplier-input {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid #e3e7ed;
  border-radius: 5px;
  background: #f8f9fb;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
}

.supplier-input:focus {
  border-color: #80a9d9;
  background: #fff;
}

.supplier-input::placeholder {
  color: #a2a8b1;
}

.supplier-form-foot {
  flex: none;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: #fff;
}

.supplier-form-foot .btn {
  height: 46px;
  border-radius: 5px;
}

.transfer-page {
  padding-top: 14px;
  padding-bottom: 24px;
}

.transfer-page-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 2px 4px 14px;
}

.transfer-page-title {
  color: #252a31;
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.transfer-add-btn {
  height: 40px;
  min-width: 188px;
  margin-left: auto;
  padding: 0 20px;
  border: 0;
  border-radius: 20px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.transfer-add-btn:active {
  opacity: .82;
}

.transfer-empty-state {
  display: flex;
  min-height: calc(100vh - var(--navbar-h) - 74px);
  flex-direction: column;
  align-items: center;
  padding-top: 94px;
}

.transfer-empty-icon {
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 3px 2px rgba(70, 74, 80, .08));
}

.transfer-empty-text {
  margin-top: 28px;
  color: #a1a7ae;
  font-size: 16px;
}

.transfer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.transfer-record {
  overflow: hidden;
  border: 1px solid #edf0f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 9px rgba(31, 68, 111, .06);
}

.transfer-record-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 14px;
  cursor: pointer;
}

.transfer-record-head:active {
  background: #f8fafc;
}

.transfer-record-main {
  flex: 1;
  min-width: 0;
}

.transfer-route {
  color: #252a31;
  font-size: 15px;
  font-weight: 600;
}

.transfer-route span {
  margin: 0 4px;
  color: var(--primary);
}

.transfer-meta {
  margin-top: 4px;
  color: #8c939d;
  font-size: 13px;
}

.transfer-expand {
  color: #b7bdc5;
}

.transfer-record-items {
  border-top: 1px solid #eef1f5;
  background: #fafbfd;
}

.transfer-record-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}

.transfer-record-item + .transfer-record-item {
  border-top: 1px solid #eef1f5;
}

.transfer-record-item > div {
  flex: 1;
  min-width: 0;
}

.transfer-item-name {
  color: #30363e;
  font-size: 14px;
}

.transfer-item-name span {
  margin-left: 5px;
  color: #9aa1aa;
  font-size: 12px;
}

.transfer-item-category {
  margin-top: 3px;
  color: #9aa1aa;
  font-size: 12px;
}

.transfer-record-item b {
  color: var(--primary);
  font-size: 14px;
}

.transfer-form-sheet {
  height: 86%;
  max-height: 86%;
  border-radius: 20px 20px 0 0;
  background: #f8f9fb;
}

.transfer-modal-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid #eef0f3;
  background: #fff;
}

.transfer-modal-title {
  color: #252a31;
  font-size: 20px;
  font-weight: 600;
}

.transfer-modal-close {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f3f5f7;
  color: #a5abb3;
  font: inherit;
  font-size: 28px;
  font-weight: 300;
  line-height: 30px;
  cursor: pointer;
}

.transfer-form-body {
  padding: 16px 16px 12px;
  background: #f8f9fb;
}

.transfer-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  color: var(--primary);
  font-size: 15px;
  font-weight: 500;
}

.transfer-section-title::before,
.transfer-material-title::before {
  content: "";
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: var(--primary);
}

.transfer-form-field {
  display: block;
  margin-bottom: 15px;
}

.transfer-form-label {
  display: block;
  margin-bottom: 8px;
  color: #3f454d;
  font-size: 15px;
}

.transfer-form-label i,
.transfer-material-label i {
  color: #e14b4b;
  font-style: normal;
}

.transfer-form-control,
.transfer-date-input,
.transfer-material-select,
.transfer-material-input {
  width: 100%;
  height: 44px;
  padding: 0 11px;
  border: 1px solid #e7eaf0;
  border-radius: 5px;
  background: #f8f9fb;
  color: #313740;
  font: inherit;
  font-size: 15px;
  outline: none;
}

.transfer-form-control:focus,
.transfer-date-input:focus,
.transfer-material-select:focus,
.transfer-material-input:focus {
  border-color: #80a9d9;
  background: #fff;
}

.transfer-date-box {
  display: block;
}

.transfer-date-input {
  width: 160px;
  background: #fff;
}

.transfer-reason {
  min-height: 94px;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.6;
  resize: vertical;
}

.transfer-reason::placeholder,
.transfer-material-input::placeholder {
  color: #a4aab3;
}

.transfer-material-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 20px 0 10px;
  color: #737a83;
  font-size: 14px;
}

.transfer-material-title em {
  color: #d35d5d;
  font-size: 13px;
  font-style: normal;
}

.transfer-items {
  padding: 0;
}

.transfer-material-card {
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid #e8ebf0;
  border-radius: 8px;
  background: #fff;
}

.transfer-material-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  background: #f5f6f8;
  color: #626973;
  font-size: 15px;
}

.transfer-material-field {
  display: block;
  margin: 0;
  padding: 10px 12px;
  border-top: 1px solid #eef0f3;
}

.transfer-material-label {
  display: block;
  margin-bottom: 7px;
  color: #3f454d;
  font-size: 15px;
}

.transfer-material-select,
.transfer-material-input {
  height: 42px;
  background: #f8f9fb;
}

.transfer-material-pick {
  width: 100%;
  border-top: 1px solid #eef0f3;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.transfer-material-pick:active {
  background: #f7f9fc;
}

.transfer-material-value {
  display: flex;
  align-items: center;
  min-height: 22px;
  color: #a3a9b2;
  font-size: 15px;
}

.transfer-material-value.has-value {
  color: #343a43;
}

.transfer-material-value i {
  margin-left: auto;
  color: #bcc2ca;
  font-style: normal;
  font-size: 20px;
}

.transfer-item-delete {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--red);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.transfer-item-add {
  margin: 12px 0 14px;
}

.transfer-form-tip {
  padding: 0 0 6px;
  color: #9198a2;
  font-size: 12px;
  line-height: 1.6;
}

.transfer-form-foot {
  flex: none;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  background: #fff;
}

.transfer-form-foot .btn {
  height: 46px;
  border-radius: 5px;
}

.warehouse-page {
  padding-top: 14px;
  padding-bottom: 24px;
}

.warehouse-page-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 2px 4px 14px;
}

.warehouse-page-title {
  color: #252a31;
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.warehouse-add-btn {
  height: 40px;
  min-width: 180px;
  margin-left: auto;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.warehouse-add-btn:active {
  opacity: .82;
}

.warehouse-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.warehouse-card {
  padding: 14px;
  overflow: hidden;
  border: 1px solid #edf0f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 9px rgba(31, 68, 111, .06);
}

.warehouse-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.warehouse-card-name {
  flex: 1;
  min-width: 0;
  color: #252a31;
  font-size: 18px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warehouse-code {
  flex: none;
  padding: 4px 8px;
  border-radius: 3px;
  background: #f5f5f5;
  color: #9298a1;
  font-size: 13px;
}

.warehouse-description {
  display: flex;
  gap: 10px;
  min-height: 24px;
  margin-top: 10px;
  color: #555c65;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

.warehouse-description span {
  flex: none;
  color: #858c95;
}

.warehouse-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.warehouse-actions button {
  height: 33px;
  border: 0;
  border-radius: 3px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.warehouse-edit-btn {
  background: #ebf4fd;
  color: #1a6fbf;
}

.warehouse-delete-btn {
  background: #fff0f0;
  color: #d94a4a;
}

.warehouse-actions button:active {
  opacity: .72;
}

.warehouse-form-sheet {
  border-radius: 16px 16px 0 0;
}

.warehouse-sheet-head {
  padding: 22px 18px 8px;
  color: #202124;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.warehouse-form-body {
  overflow-y: auto;
  padding: 8px 18px 18px;
}

.warehouse-field {
  display: block;
  margin-top: 13px;
}

.warehouse-field-label {
  display: block;
  margin-bottom: 7px;
  color: #555b64;
  font-size: 14px;
}

.warehouse-field-label i {
  color: #e5484d;
  font-style: normal;
}

.warehouse-input {
  width: 100%;
  height: 46px;
  padding: 0 11px;
  border: 1px solid #e3e7ed;
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
}

.warehouse-input::placeholder {
  color: #a3a9b2;
}

.warehouse-input:focus {
  border-color: #77a7dc;
  box-shadow: 0 0 0 2px rgba(26, 111, 191, .1);
}

.warehouse-textarea {
  min-height: 72px;
  padding-top: 10px;
  padding-bottom: 10px;
  resize: vertical;
}

.warehouse-sheet-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 18px calc(18px + env(safe-area-inset-bottom));
}

.warehouse-sheet-foot .btn {
  height: 46px;
  border-radius: 5px;
}

.params-hero {
  padding: 12px 16px 22px;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.params-page {
  padding-top: 12px;
}

.params-card {
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 9px rgba(31, 68, 111, .06);
}

.params-card-head {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
}

.params-card-title {
  min-width: 0;
  color: #20252c;
  font-size: 18px;
  font-weight: 600;
}

.params-card-meta {
  margin-left: auto;
  color: #8a9099;
  font-size: 14px;
  white-space: nowrap;
}

.params-action {
  margin-left: 8px;
  padding: 5px 10px;
  border: 0;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
}

.params-action:active,
.params-import-btn:active {
  opacity: .78;
}

.params-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  padding: 16px;
  color: #969ca5;
  font-size: 14px;
  text-align: center;
}

.params-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 16px;
}

.params-cat-tag {
  padding: 5px 10px;
  border-radius: 4px;
  background: #f1f5fa;
  color: #52606f;
  font-size: 13px;
}

.params-search {
  margin: 0 12px 12px;
  border-radius: 5px;
  background: #f5f6f8;
}

.params-search input {
  width: 100%;
  height: 43px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.params-search input::placeholder {
  color: #a0a6ae;
}

.params-product-list {
  border-top: 1px solid #f0f2f5;
}

.params-product-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px 14px;
  cursor: pointer;
}

.params-product-row + .params-product-row {
  border-top: 1px solid #f0f2f5;
}

.params-product-row:active {
  background: #f8fafc;
}

.params-product-main {
  flex: 1;
  min-width: 0;
}

.params-product-name {
  color: #252a31;
  font-size: 15px;
  font-weight: 500;
}

.params-product-name span {
  margin-left: 5px;
  color: #a3a9b1;
  font-size: 13px;
  font-weight: 400;
}

.params-product-sub {
  margin-top: 4px;
  overflow: hidden;
  color: #8d949e;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.params-chevron,
.params-other-value i {
  color: #c4c9d0;
  font-style: normal;
}

.params-import-actions {
  display: flex;
  justify-content: flex-end;
  padding: 2px 14px 0;
}

.params-import-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  padding: 0 18px;
  border: 1.5px dashed #7fa6d3;
  border-radius: 6px;
  background: #fff;
  color: #303942;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.params-import-btn span {
  color: #305f94;
  font-size: 22px;
  line-height: 1;
}

.params-import-hint {
  padding: 12px 14px 16px;
  color: #939aa3;
  font-size: 13px;
  line-height: 1.6;
}

.params-other-row {
  display: flex;
  align-items: center;
  min-height: 57px;
  padding: 0 14px;
  border-top: 1px solid #f0f2f5;
  color: #343a42;
  font-size: 15px;
  cursor: pointer;
}

.params-other-row:active {
  background: #f8fafc;
}

.params-other-value {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: #9299a2;
  font-size: 14px;
}

.category-add-sheet {
  border-radius: 16px 16px 0 0;
}

.category-sheet-title {
  padding: 28px 18px;
  color: #202124;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.category-sheet-body {
  padding: 0 18px 30px;
}

.category-sheet-label {
  display: block;
  margin-bottom: 10px;
  color: #50545b;
  font-size: 14px;
}

.category-sheet-label span {
  margin-right: 2px;
  color: #e5484d;
}

.category-input {
  width: 100%;
  height: 52px;
  padding: 0 12px;
  border: 1px solid #e3e7ed;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.category-input::placeholder {
  color: #a1a7b0;
}

.category-input:focus {
  border-color: #77a7dc;
  box-shadow: 0 0 0 2px rgba(26, 111, 191, .1);
}

.category-sheet-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 18px calc(22px + env(safe-area-inset-bottom));
}

.category-sheet-foot .btn {
  height: 50px;
  border-radius: 5px;
}

.inbound-add-page {
  padding-bottom: calc(86px + env(safe-area-inset-bottom));
}

.inbound-submit-bar {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 0;
  z-index: 25;
  width: 100%;
  max-width: var(--app-max-width);
  transform: translateX(-50%);
  border-top: 1px solid #e7edf4;
  background: #fff;
  box-shadow: 0 -3px 12px rgba(31, 68, 111, .08);
}

.goods-section-title {
  align-items: center;
  color: #737b87;
  font-size: 14px;
}

.goods-count {
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
}

.goods-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.goods-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #edf1f6;
  border-left: 3px solid #2d7de2;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(31, 68, 111, .05);
}

.gi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 43px;
  padding: 0 14px;
  background: #f2f6fc;
}

.gi-title {
  font-size: 15px;
  font-weight: 500;
  color: #1c416c;
}

.gi-head .del {
  font-size: 12px;
}

.gi-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 55px;
  padding: 0 14px;
  background: #fff;
  border-top: 1px solid #eef1f5;
}

.gi-label {
  flex: none;
  font-size: 15px;
  color: #363c45;
}

.gi-label .req {
  margin-right: 2px;
  color: #e5484d;
}

.gi-control {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

.gi-control input {
  width: 100%;
  min-width: 0;
  padding: 10px 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  text-align: right;
}

.gi-control input::placeholder {
  color: #a2a8b2;
  opacity: 1;
}

.gi-pick,
.gi-calc,
.gi-expiry {
  margin-left: auto;
  min-width: 0;
  font-size: 15px;
  text-align: right;
  color: #a2a8b2;
}

.gi-pick.has-value,
.gi-expiry.has-value {
  color: #434b56;
}

.gi-pick i {
  margin-left: 5px;
  font-style: normal;
  color: #c0c5cc;
}

.gi-calc {
  color: var(--primary);
  font-weight: 600;
}

.gi-calc.ready {
  color: #26313d;
}

.gi-row-link {
  cursor: pointer;
}

.gi-row-link:active {
  background: #f7f9fc;
}

.gi-expiry-row {
  min-height: 50px;
  background: #f7f4ff;
}

.gi-expiry-row:active {
  background: #f2edff;
}

.add-goods-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 51px;
  margin: 1px 0 14px;
  border: 1.5px dashed #86a9d4;
  border-radius: 7px;
  background: rgba(255, 255, 255, .42);
  color: var(--primary);
  font-size: 15px;
  cursor: pointer;
  user-select: none;
}

.add-goods-btn:active {
  background: #eef5fd;
}

/* ---------- 新增入库 · 物品卡片 ---------- */
.inbound-add-v2 {
  min-height: 100%;
  padding: 10px 10px calc(88px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 100% 0, rgba(26, 111, 191, .08), transparent 28%),
    #eef3f9;
}

.ia-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ia-item-card {
  overflow: hidden;
  border: 1px solid #e5ebf2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(31, 68, 111, .07);
  scroll-margin-top: 10px;
}

.ia-item-head {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: linear-gradient(90deg, #f8fbff, #f2f7fd);
}

.ia-item-index {
  color: #203d5e;
  font-size: 15px;
  font-weight: 600;
}

.ia-item-total {
  margin-left: 7px;
  color: #86929f;
  font-size: 12px;
}

.ia-delete-item {
  height: 30px;
  padding: 0 5px;
  border: 0;
  background: transparent;
  color: #d54941;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.ia-photo-block {
  padding: 13px 14px 15px;
  border-top: 1px solid #edf1f5;
}

.ia-photo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #343d48;
  font-size: 14px;
}

.ia-photo-head > span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ia-photo-head b {
  color: #7b8795;
  font-size: 13px;
  font-weight: 500;
}

.ia-photo-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  color: #667381;
  font-size: 14px;
  font-style: normal;
}

.ia-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ia-photo-item,
.ia-photo-add {
  position: relative;
  width: 100%;
  max-width: 86px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #e1e6ec;
  border-radius: 6px;
  background: #fbfcfd;
}

.ia-photo-item {
  cursor: zoom-in;
}

.ia-photo-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ia-photo-del {
  position: absolute;
  top: 3px;
  right: 3px;
  display: flex;
  width: 21px;
  height: 21px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(22, 29, 37, .68);
  color: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.ia-photo-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-style: dashed;
  color: #9aa3ad;
  font: inherit;
  cursor: pointer;
}

.ia-photo-add:active {
  border-color: #1a6fbf;
  background: #f3f8fe;
}

.ia-photo-add > span {
  color: #7d8996;
  font-size: 27px;
  line-height: 1;
}

.ia-photo-add small {
  font-size: 11px;
}

.ia-fields {
  border-top: 1px solid #e7ecf1;
}

.ia-field {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  background: #fff;
}

.ia-field + .ia-field {
  border-top: 1px solid #eef1f5;
}

.ia-field-icon {
  display: flex;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: #eef3f8;
  color: #596775;
  font-size: 11px;
  font-weight: 600;
}

.ia-field-label {
  flex: 0 0 auto;
  color: #3e4650;
  font-size: 14px;
  white-space: nowrap;
}

.ia-field-label i {
  margin-right: 2px;
  color: #e5484d;
  font-style: normal;
}

.ia-field-main {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
}

.ia-field-main input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 0 0 4px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #26313d;
  font: inherit;
  font-size: 14px;
}

.ia-field-main input::placeholder {
  color: #a1a8b1;
  opacity: 1;
}

.ia-name-field .ia-field-main {
  position: relative;
}

.ia-name-field .ia-field-main input {
  padding-right: 39px;
}

.ia-name-count {
  position: absolute;
  right: 0;
  color: #a3abb4;
  font-size: 10px;
  pointer-events: none;
}

.ia-field-value {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #a1a8b1;
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ia-field-value.has-value {
  color: #303943;
}

.ia-field-link {
  cursor: pointer;
  user-select: none;
}

.ia-field-link:active {
  background: #f7fafd;
}

.ia-arrow {
  flex: none;
  color: #c1c7ce;
  font-size: 20px;
  line-height: 1;
}

.ia-add-inline,
.ia-clear-date {
  flex: none;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  background: #2d86d9;
  color: #fff;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.ia-add-inline:active,
.ia-clear-date:active {
  opacity: .78;
}

.ia-clear-date {
  background: #eef4fa;
  color: #2477bd;
}

.ia-quantity-field {
  gap: 9px;
}

.ia-qty-control {
  display: flex;
  height: 34px;
  margin-left: auto;
  overflow: hidden;
  border: 1px solid #dfe5ec;
  border-radius: 6px;
  background: #fff;
}

.ia-qty-control button {
  width: 34px;
  padding: 0;
  border: 0;
  background: #f4f7fa;
  color: #3d4a58;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.ia-qty-control button:active {
  background: #e9f1fa;
}

.ia-qty-control input {
  width: 58px;
  min-width: 0;
  height: 32px;
  padding: 0 3px;
  border: 0;
  border-right: 1px solid #e6ebf1;
  border-left: 1px solid #e6ebf1;
  outline: 0;
  background: #fff;
  color: #25303b;
  font: inherit;
  font-size: 14px;
  text-align: center;
  -moz-appearance: textfield;
}

.ia-qty-control input::-webkit-outer-spin-button,
.ia-qty-control input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.ia-archive-note {
  padding: 9px 13px 10px 41px;
  border-top: 1px dashed #e9edf2;
  background: #fbfcfe;
  color: #8b96a2;
  font-size: 11px;
}

.ia-add-item {
  display: flex;
  width: 100%;
  height: 51px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-top: 12px;
  border: 1px dashed #77a8d9;
  border-radius: 9px;
  background: rgba(255, 255, 255, .72);
  color: #1a70bc;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.ia-add-item > span {
  font-size: 20px;
  line-height: 1;
}

.ia-add-item:active {
  background: #e9f3fd;
}

.ia-remark-card {
  margin-top: 12px;
  padding: 13px 14px 12px;
  border: 1px solid #dfe9f2;
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 4px 13px rgba(37, 76, 112, .05);
}

.ia-remark-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.ia-remark-head > span {
  color: #40566c;
  font-size: 14px;
  font-weight: 600;
}

.ia-remark-head > small {
  overflow: hidden;
  color: #9aa7b4;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ia-remark-input-wrap {
  position: relative;
}

.ia-remark-input-wrap textarea {
  display: block;
  width: 100%;
  min-height: 86px;
  padding: 10px 11px 23px;
  resize: vertical;
  border: 1px solid #dfe6ed;
  border-radius: 9px;
  outline: 0;
  background: #f9fbfd;
  color: #2e3e50;
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
}

.ia-remark-input-wrap textarea:focus {
  border-color: #75a9dd;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(35, 126, 204, .08);
}

.ia-remark-input-wrap textarea::placeholder {
  color: #a7b1bc;
}

.ia-remark-count {
  position: absolute;
  right: 10px;
  bottom: 7px;
  color: #a7b1bc;
  font-size: 9px;
}

.ia-help-card {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #e7edf4;
  border-radius: 9px;
  background: rgba(255, 255, 255, .7);
}

.ia-help-title {
  color: #586776;
  font-size: 13px;
  font-weight: 600;
}

.ia-help-text {
  margin-top: 4px;
  color: #929ca7;
  font-size: 11px;
  line-height: 1.7;
}

.inbound-add-v2 .inbound-submit-bar {
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
}

.inbound-add-v2 .ia-submit {
  height: 48px;
  border-radius: 7px;
  background: linear-gradient(135deg, #2585d9, #1167b6);
  box-shadow: 0 3px 10px rgba(26, 111, 191, .2);
}

@media (max-width: 360px) {
  .inbound-add-v2 {
    padding-right: 8px;
    padding-left: 8px;
  }

  .ia-field {
    gap: 6px;
    padding-right: 11px;
    padding-left: 11px;
  }

  .ia-field-label {
    font-size: 13px;
  }

  .ia-add-inline {
    padding: 0 6px;
    font-size: 10px;
  }
}

/* ---------- 分段控件 ---------- */
.seg {
  display: flex;
  background: #fff;
  border-radius: 10px;
  padding: 3px;
  margin: 12px 0;
  box-shadow: var(--shadow);
}

.seg-item {
  flex: 1;
  text-align: center;
  padding: 7px 0;
  font-size: 13px;
  color: var(--text-2);
  border-radius: 8px;
  cursor: pointer;
}

.seg-item.on {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* ---------- 简易表格 ---------- */
.tb {
  padding: 4px 0;
  font-size: 12px;
}

.tb-h,
.tb-r {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr .9fr .7fr .7fr .9fr 1fr;
  gap: 4px;
  padding: 7px 12px;
  align-items: center;
}

.tb-h {
  background: #f5f8fb;
  color: var(--text-3);
  font-weight: 600;
}

.tb-r+.tb-r {
  border-top: 1px solid var(--line);
}

.tb-h span,
.tb-r span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ---------- 打印 ---------- */
.print-hero {
  padding: 12px 16px 22px;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.print-page {
  padding-top: 12px;
  padding-bottom: 24px;
}

.print-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 68, 111, .05);
}

.print-tab {
  position: relative;
  height: 44px;
  padding: 0 3px;
  border: 0;
  background: transparent;
  color: #555d66;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.print-tab.active {
  color: var(--primary);
  font-weight: 600;
}

.print-tab.active::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

.print-query-card {
  margin-top: 12px;
  padding: 14px;
}

.print-query-title {
  color: #30363e;
  font-size: 15px;
  font-weight: 500;
}

.print-date-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
}

.print-date-pill {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 7px;
  height: 43px;
  padding: 0 10px;
  border-radius: 5px;
  background: #f3f5f7;
}

.print-date-pill > span {
  flex: none;
  color: #747b84;
  font-size: 14px;
}

.print-date-pill input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #333a43;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.print-date-separator {
  color: #9299a2;
}

.print-query-btn {
  display: flex;
  width: 206px;
  max-width: 72%;
  height: 42px;
  margin: 16px auto 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 5px;
  background: #3292e5;
  color: #fff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.print-query-btn:active {
  opacity: .8;
}

.print-result {
  margin-top: 12px;
}

.print-stat-card {
  padding: 14px;
}

.print-stat-title {
  color: #313740;
  font-size: 16px;
  font-weight: 500;
}

.print-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.print-stat-box {
  display: flex;
  min-height: 76px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.print-stat-box b {
  font-size: 25px;
  line-height: 1.1;
}

.print-stat-box span {
  margin-top: 7px;
  color: #8e959e;
  font-size: 13px;
}

.print-stat-box.blue {
  background: #f1f8ff;
  color: #237dc8;
}

.print-stat-box.green {
  background: #f0fbf7;
  color: #159466;
}

.print-stat-box.red {
  background: #fff4f3;
  color: #cd4c49;
}

.print-flow-export {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 190px;
  height: 42px;
  margin: 0 0 12px;
  border: 0;
  border-radius: 5px;
  background: #3292e5;
  color: #fff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.print-flow-export:active {
  opacity: .8;
}

.print-flow-empty {
  display: flex;
  min-height: 350px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 65px;
  color: #a0a6ae;
  font-size: 15px;
}

.print-flow-empty svg {
  width: 74px;
  height: 74px;
}

.print-flow-empty div {
  margin-top: 24px;
}

.print-sheet {
  padding: 5px 12px 12px;
}

.print-flow-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 16px;
  padding: 8px 0 9px;
  color: #757d87;
  font-size: 12px;
}

.print-flow-summary b {
  color: var(--primary);
}

.print-table-wrap {
  overflow-x: auto;
  border: 1px solid #edf0f4;
  border-radius: 5px;
}

.print-flow-table {
  min-width: 660px;
  font-size: 12px;
}

.print-flow-head,
.print-flow-row {
  display: grid;
  grid-template-columns: .8fr .55fr 1.45fr .9fr .65fr .8fr 1fr 1fr;
  gap: 6px;
  align-items: center;
  padding: 8px 10px;
}

.print-flow-head {
  background: #f5f8fb;
  color: #8b939d;
  font-weight: 600;
}

.print-flow-row + .print-flow-row {
  border-top: 1px solid #eef1f5;
}

.print-flow-head span,
.print-flow-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-tag {
  display: inline-block;
  padding: 2px 5px;
  border-radius: 3px;
  font-style: normal;
  font-size: 11px;
}

.flow-tag.in {
  background: #e9f8f1;
  color: #16845c;
}

.flow-tag.out {
  background: #fff0f0;
  color: #c74949;
}

.flow-tag.borrow {
  background: #f2edfd;
  color: #7454b3;
}

.flow-tag.return {
  background: #eaf4fb;
  color: #2278b5;
}

.print-empty {
  padding: 50px 14px;
  color: #9aa0a8;
  font-size: 14px;
  text-align: center;
}

.print-doc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.print-doc-card {
  overflow: hidden;
  border: 1px solid #edf0f4;
  border-radius: 6px;
}

.print-doc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  background: #f5f8fb;
}

.print-doc-head b {
  color: #2b3139;
  font-size: 14px;
}

.print-doc-head span {
  margin-left: auto;
  color: #8c939d;
  font-size: 11px;
}

.print-doc-meta {
  padding: 8px 11px;
  color: #717983;
  font-size: 12px;
  border-bottom: 1px solid #eef1f5;
}

.print-doc-item {
  display: grid;
  grid-template-columns: 1.4fr 1fr .65fr .9fr;
  gap: 6px;
  padding: 8px 11px;
  color: #464d56;
  font-size: 12px;
}

.print-doc-item + .print-doc-item {
  border-top: 1px solid #f0f2f5;
}

.print-doc-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.print-doc-item b {
  color: var(--primary);
  font-weight: 500;
}

.print-doc-total {
  padding: 8px 11px;
  border-top: 1px solid #eef1f5;
  color: #3e454e;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

.print-actions {
  margin-top: 12px;
}

.print-title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  padding: 14px 0 4px;
}

.print-meta {
  text-align: center;
  font-size: 11px;
  color: var(--text-3);
  padding-bottom: 10px;
}

.print-foot {
  padding: 10px 14px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  border-top: 1px solid var(--line);
}

@media print {

  .phone,
  .app {
    max-width: none;
    height: auto;
    box-shadow: none;
  }

  .navbar,
  .tabbar,
  .fab,
  .bottom-bar,
  .seg,
  .print-hero,
  .print-tabs,
  .print-query-card,
  .print-actions,
  .print-flow-export,
  #overlay,
  #toast {
    display: none !important;
  }

  .view {
    overflow: visible;
    padding: 0;
  }

  body {
    background: #fff;
    display: block;
  }

  .print-page,
  .print-result {
    padding: 0;
    margin: 0;
  }

  .print-sheet {
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .print-table-wrap {
    overflow: visible;
    border: 1px solid #ddd;
  }

  .print-flow-table {
    min-width: 0;
    font-size: 9px;
  }

  .print-doc-card {
    break-inside: avoid;
  }
}

/* ---------- 重置弹层 ---------- */
.reset-warn {
  display: flex;
  gap: 10px;
  background: #fff6e8;
  margin: 12px 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}

.reset-warn>div:first-child {
  font-size: 18px;
}

.reset-select-all {
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.reset-select-all .row-title {
  color: #27313d;
  font-weight: 600;
}

.reset-option.selected {
  background: #f7fbff;
}

/* ---------- 图片附件 ---------- */
.attach-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.attach-add {
  width: 86px;
  height: 86px;
  border: 1.5px dashed #d4d9e2;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #98a0ab;
  background: #fafbfc;
  cursor: pointer;
  transition: border-color .15s;
}

.attach-add:active {
  border-color: var(--main, #1a6fbf);
}

.attach-plus {
  font-size: 26px;
  line-height: 1;
  color: #c3c9d3;
}

.attach-txt {
  font-size: 11px;
  margin-top: 5px;
}

.attach-tip {
  font-size: 12px;
  color: #a0a6b0;
  margin-top: 10px;
}

.attach-item {
  width: 86px;
  height: 86px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid #e3e6ec;
  cursor: pointer;
  flex: 0 0 auto;
}

.attach-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.attach-del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  line-height: 19px;
  text-align: center;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
}

.img-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  pointer-events: auto;
  cursor: zoom-out;
}

.img-viewer img {
  max-width: 94%;
  max-height: 94%;
  border-radius: 6px;
  cursor: zoom-out;
}

.img-viewer-close {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  right: 18px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(0, 0, 0, .38);
  color: #fff;
  font: 300 30px/40px Arial, sans-serif;
  text-align: center;
  cursor: pointer;
  z-index: 1;
}

.img-viewer-close:active {
  background: rgba(255, 255, 255, .2);
}

/* 详情弹层 */
.detail-body {
  max-height: 70vh;
  overflow: auto;
}

.detail-row {
  display: flex;
  gap: 12px;
  padding: 9px 2px;
  border-bottom: 1px solid #f0f2f5;
  font-size: 13px;
}

.detail-label {
  flex: 0 0 96px;
  color: #888;
}

.detail-value {
  flex: 1;
  word-break: break-all;
}

.detail-attach {
  padding: 10px 2px 4px;
}

.tag.pic {
  background: #eef4fb;
  color: #1a6fbf;
}

/* ---------- 设置中心 - 9 模块与配置页 ---------- */
.settings-hub-page {
  padding-bottom: 90px;
}

.settings-hub-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 2px 9px;
  color: #8391a0;
  font-size: 10px;
}

.settings-hub-summary b {
  color: #4d6378;
  font-size: 11px;
}

.settings-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.settings-module-card {
  position: relative;
  min-height: 105px;
  padding: 14px 12px;
  border: 1px solid #e2e9f0;
  border-radius: 15px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 6px 17px rgba(42, 70, 98, .06);
  display: flex;
  align-items: flex-start;
  gap: 9px;
  text-align: left;
  cursor: pointer;
}

.settings-module-card:active {
  transform: scale(.985);
  background: #f8fbfe;
}

.settings-module-no {
  position: absolute;
  top: 9px;
  right: 10px;
  color: #c0cbd5;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4px;
}

.settings-module-icon {
  width: 37px;
  height: 37px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #eaf2fc;
  font-size: 19px;
}

.settings-module-card.tone-green .settings-module-icon { background: #e9f8f1; }
.settings-module-card.tone-orange .settings-module-icon { background: #fff1e5; }
.settings-module-card.tone-purple .settings-module-icon { background: #f1edff; }
.settings-module-card.tone-red .settings-module-icon { background: #ffebea; }
.settings-module-card.tone-cyan .settings-module-icon { background: #e8f8f8; }

.settings-module-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.settings-module-copy b {
  color: #2f4256;
  font-size: 13px;
  line-height: 1.35;
}

.settings-module-copy small {
  margin-top: 5px;
  color: #91a0ae;
  font-size: 9px;
  line-height: 1.45;
}

.settings-module-card > em {
  position: absolute;
  right: 10px;
  bottom: 9px;
  color: #b5c0ca;
  font-size: 17px;
  font-style: normal;
}

.settings-module-page {
  padding-bottom: 40px;
}

.config-hero {
  min-height: 105px;
  padding: 17px;
  border-radius: 17px;
  background: linear-gradient(135deg, #41546b, #637a90);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 9px 22px rgba(44, 63, 84, .18);
}

.config-hero > span {
  width: 49px;
  height: 49px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
  font-size: 25px;
}

.config-hero small {
  color: rgba(255, 255, 255, .55);
  font-size: 8px;
  letter-spacing: 1px;
}

.config-hero h1 {
  margin: 4px 0;
  font-size: 23px;
}

.config-hero p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
}

.config-card {
  margin-top: 12px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid #e2e9f0;
  border-radius: 14px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 5px 16px rgba(43, 70, 98, .05);
}

.config-section-title {
  margin: 0 2px 8px;
  color: #35495e;
  font-size: 13px;
}

.config-switch-row,
.config-number-row,
.config-text-row,
.config-action-row {
  min-height: 56px;
  padding: 9px 2px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.config-switch-row + .config-switch-row,
.config-number-row + .config-switch-row,
.config-switch-row + .config-number-row,
.config-action-row + .config-action-row,
.config-text-row + .config-choice-row {
  border-top: 1px solid #eef2f6;
}

.config-switch-row > span,
.config-number-row > span,
.config-action-row > span {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.config-switch-row b,
.config-number-row b,
.config-action-row b {
  color: #3a4c5f;
  font-size: 12px;
}

.config-switch-row small,
.config-number-row small,
.config-action-row small {
  margin-top: 2px;
  color: #97a4b1;
  font-size: 9px;
}

.config-switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d8e0e8;
  cursor: pointer;
  transition: background .18s;
}

.config-switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(30, 54, 78, .18);
  transition: transform .18s;
}

.config-switch.on {
  background: #2f86d2;
}

.config-switch.on i {
  transform: translateX(18px);
}

.config-choice-row {
  padding: 10px 2px;
}

.config-choice-row + .config-choice-row {
  border-top: 1px solid #eef2f6;
}

.config-choice-row > b {
  display: block;
  margin-bottom: 8px;
  color: #3a4c5f;
  font-size: 12px;
}

.config-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.config-choice-group button {
  padding: 7px 10px;
  border: 1px solid #dfe7ee;
  border-radius: 8px;
  background: #f8fafc;
  color: #657588;
  font-size: 10px;
  cursor: pointer;
}

.config-choice-group button.on {
  border-color: #72a7d7;
  background: #eaf4fc;
  color: #246fae;
  font-weight: 600;
}

.config-number-row input,
.config-text-row input,
.config-text-row select {
  width: 120px;
  height: 35px;
  padding: 0 9px;
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  outline: 0;
  background: #fafcfe;
  color: #394d61;
  font: inherit;
  font-size: 12px;
  text-align: right;
}

.config-text-row > span {
  flex: none;
  color: #526477;
  font-size: 12px;
}

.config-text-row input,
.config-text-row select {
  flex: 1;
  min-width: 0;
  width: auto;
}

.config-primary-btn {
  width: 100%;
  min-height: 42px;
  margin-top: 11px;
  border: 0;
  border-radius: 10px;
  background: #247fc3;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.config-primary-btn:active,
.config-action-row button:active {
  opacity: .8;
}

.config-sort-list {
  padding: 4px 10px;
}

.config-sort-row {
  position: relative;
  min-height: 69px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.config-sort-row + .config-sort-row {
  border-top: 1px solid #eef2f6;
}

.config-sort-row.dragging {
  opacity: .45;
}

.config-drag {
  width: 17px;
  flex: none;
  color: #b5c0ca;
  font-size: 12px;
  cursor: grab;
}

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

.config-row-main b {
  overflow: hidden;
  color: #35485b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.config-row-main small {
  overflow: hidden;
  margin-top: 3px;
  color: #95a2af;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.config-mini-switch,
.category-config-toggles button,
.config-row-actions button,
.config-action-row > button {
  flex: none;
  padding: 5px 7px;
  border: 1px solid #dfe6ed;
  border-radius: 6px;
  background: #f7f9fb;
  color: #68788a;
  font-size: 9px;
  cursor: pointer;
}

.config-mini-switch.on {
  border-color: #a9d6c7;
  background: #eaf8f2;
  color: #1c9a70;
}

.config-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  width: 104px;
}

.config-row-actions button.danger {
  color: #cf514a;
}

.category-config-row {
  flex-wrap: wrap;
}

.category-config-icon {
  width: 35px;
  height: 35px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 18px;
}

.category-config-toggles {
  display: flex;
  gap: 4px;
}

.config-form-sheet {
  max-height: 86%;
}

.config-form-body {
  padding: 5px 14px calc(12px + env(safe-area-inset-bottom));
}

.config-field {
  display: block;
  padding: 9px 0;
}

.config-field > span {
  display: block;
  margin-bottom: 6px;
  color: #667789;
  font-size: 10px;
}

.config-field > input,
.config-field > textarea,
.config-color-field input {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  outline: 0;
  background: #fafcfe;
  color: #33475b;
  font: inherit;
  font-size: 13px;
}

.config-field textarea {
  min-height: 72px;
  resize: vertical;
}

.category-icon-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.category-icon-option {
  min-width: 0;
  min-height: 58px;
  padding: 6px 2px 5px;
  border: 1px solid #e1e8ef;
  border-radius: 9px;
  background: #f8fbfd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
}

.category-icon-option span {
  font-size: 21px;
  line-height: 1;
}

.category-icon-option small {
  overflow: hidden;
  width: 100%;
  color: #8e9ba8;
  font-size: 7px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-icon-option.selected {
  border-color: #62a4da;
  background: #eaf5fe;
  box-shadow: 0 0 0 2px rgba(48, 134, 205, .09);
}

.category-icon-option.selected small {
  color: #327cb7;
  font-weight: 600;
}

.config-enabled-field {
  min-height: 58px;
  margin: 7px 0;
  padding: 9px 10px;
  border: 1px solid #e2eaf1;
  border-radius: 9px;
  background: #f8fbfd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.config-enabled-field > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.config-enabled-field b {
  color: #405469;
  font-size: 12px;
}

.config-enabled-field small {
  margin-top: 2px;
  color: #95a3b0;
  font-size: 9px;
}

.config-enabled-field input {
  width: 20px;
  height: 20px;
  flex: none;
  accent-color: #2d87cf;
}

.config-color-field {
  display: flex;
  gap: 8px;
}

.config-color-field input[type=color] {
  width: 48px;
  padding: 4px;
}

.config-field-rule {
  padding: 8px 2px;
}

.config-field-rule + .config-field-rule {
  border-top: 1px solid #eef2f6;
}

.config-field-rule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.config-field-rule-head > b {
  color: #3b4e62;
  font-size: 12px;
}

.config-field-rule-head .config-switch-row {
  min-height: auto;
  padding: 0;
}

.config-field-rule-head .config-switch-row small {
  display: none;
}

.config-check-grid,
.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
}

.config-check-grid button,
.permission-grid button {
  min-height: 35px;
  padding: 6px 8px;
  border: 1px solid #dfe7ee;
  border-radius: 8px;
  background: #f8fafc;
  color: #68798b;
  font-size: 10px;
  text-align: left;
  cursor: pointer;
}

.config-check-grid button.on,
.permission-grid button.on {
  border-color: #8bbbe0;
  background: #edf7ff;
  color: #2477b7;
}

.config-check-grid i,
.permission-grid i {
  display: inline-flex;
  width: 15px;
  height: 15px;
  margin-right: 5px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 9px;
  font-style: normal;
}

.config-note {
  margin: 0 2px 3px;
  color: #93a1ae;
  font-size: 9px;
  line-height: 1.6;
}

.config-action-row > button {
  padding: 8px 11px;
  color: #327cb5;
}

.config-danger-card {
  border-color: #f1dedd;
}

.config-danger-btn {
  width: 100%;
  height: 38px;
  margin-top: 8px;
  border: 1px solid #f0c6c4;
  border-radius: 8px;
  background: #fff7f7;
  color: #c94f49;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.config-range-row {
  min-height: 63px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #eef2f6;
}

.config-range-row > span {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.config-range-row b {
  color: #3b4e62;
  font-size: 12px;
}

.config-range-row small {
  color: #91a0ae;
  font-size: 9px;
}

.config-range-row input {
  width: 150px;
  accent-color: #2f86d2;
}

.config-empty {
  padding: 35px 15px;
  color: #96a4b2;
  font-size: 11px;
  text-align: center;
}

.permission-account {
  padding: 10px 2px;
}

.permission-account + .permission-account {
  border-top: 1px solid #eef2f6;
}

.permission-account-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.permission-account-head > span {
  width: 34px;
  height: 34px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #edf3f9;
  color: #4e6c88;
  font-size: 13px;
  font-weight: 700;
}

.permission-account-head > div {
  display: flex;
  flex-direction: column;
}

.permission-account-head b {
  color: #35485b;
  font-size: 12px;
}

.permission-account-head small {
  color: #96a3b0;
  font-size: 9px;
}

.permission-grid button:disabled {
  opacity: .7;
}

.permission-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 12px;
  padding: 4px;
  border-radius: 11px;
  background: #e8eef4;
}

.permission-tabs button {
  height: 35px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #718292;
  font-size: 11px;
  cursor: pointer;
}

.permission-tabs button.on {
  background: #fff;
  color: #2679b8;
  font-weight: 600;
  box-shadow: 0 2px 7px rgba(40, 70, 98, .09);
}

.permission-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid #edf1f5;
}

.permission-section-head h2 {
  margin: 0;
  color: #34485c;
  font-size: 13px;
}

.permission-section-head p {
  margin: 3px 0 0;
  color: #94a1ae;
  font-size: 9px;
}

.permission-section-head > button {
  flex: none;
  padding: 7px 9px;
  border: 1px solid #cfe0ef;
  border-radius: 7px;
  background: #f0f7fd;
  color: #327bb5;
  font-size: 9px;
  cursor: pointer;
}

.permission-section-head > span {
  color: #8d9aa8;
  font-size: 9px;
}

.permission-account-list,
.permission-role-list {
  margin-top: 3px;
}

.permission-account {
  padding: 11px 2px;
}

.permission-account + .permission-account,
.permission-role-card + .permission-role-card {
  border-top: 1px solid #edf1f5;
}

.permission-role-select {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.permission-role-select > span {
  color: #788898;
  font-size: 9px;
}

.permission-role-select select {
  flex: 1;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #dfe7ee;
  border-radius: 7px;
  background: #f8fbfd;
  color: #45586b;
  font: inherit;
  font-size: 10px;
  outline: 0;
}

.permission-account-summary {
  margin: 6px 0 0 39px;
  color: #97a4b1;
  font-size: 8px;
}

.permission-role-card {
  min-height: 63px;
  display: flex;
  align-items: center;
  gap: 7px;
}

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

.permission-role-main b {
  color: #3a4d60;
  font-size: 12px;
}

.permission-role-main small {
  margin-top: 3px;
  color: #95a2af;
  font-size: 8px;
}

.permission-role-card button {
  padding: 6px 8px;
  border: 1px solid #d9e5ef;
  border-radius: 7px;
  background: #f5f9fd;
  color: #347bb3;
  font-size: 9px;
  cursor: pointer;
}

.permission-role-card button.danger {
  border-color: #f0d1cf;
  background: #fff7f7;
  color: #c7534d;
}

.operation-log-list {
  max-height: 520px;
  overflow-y: auto;
}

.operation-log-item {
  padding: 10px 2px;
  display: flex;
  gap: 9px;
}

.operation-log-item + .operation-log-item {
  border-top: 1px solid #edf1f5;
}

.operation-log-dot {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  flex: none;
  border-radius: 50%;
  background: #5aa4d6;
}

.operation-log-item > div {
  min-width: 0;
  flex: 1;
}

.operation-log-item b {
  color: #3d5063;
  font-size: 11px;
}

.operation-log-item small {
  display: block;
  margin-top: 3px;
  color: #99a6b2;
  font-size: 8px;
}

.operation-log-item p {
  margin: 4px 0 0;
  color: #6d7d8d;
  font-size: 9px;
  line-height: 1.45;
}

.permission-role-sheet {
  max-height: 90%;
}

.permission-role-form {
  padding: 5px 14px calc(12px + env(safe-area-inset-bottom));
}

.permission-form-title {
  margin: 12px 0 7px;
  color: #405367;
  font-size: 11px;
  font-weight: 600;
}

.permission-check-list,
.permission-warehouse-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.permission-check,
.permission-all-warehouse {
  min-height: 35px;
  padding: 6px 8px;
  border: 1px solid #dfe7ee;
  border-radius: 8px;
  background: #f8fafc;
  color: #697a8b;
  font-size: 9px;
  text-align: left;
  cursor: pointer;
}

.permission-check i,
.permission-all-warehouse i {
  display: inline-flex;
  width: 15px;
  height: 15px;
  margin-right: 5px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 8px;
  font-style: normal;
}

.permission-check.on,
.permission-all-warehouse.on {
  border-color: #8abce0;
  background: #edf7ff;
  color: #2477b6;
}

.permission-all-warehouse {
  width: 100%;
  margin-bottom: 8px;
}

.permission-warehouse-list.disabled {
  opacity: .42;
  pointer-events: none;
}

.permission-denied {
  margin-top: 14px;
  padding: 34px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #8d9ba9;
  text-align: center;
}

.permission-denied b {
  color: #526577;
  font-size: 14px;
}

.permission-denied small {
  font-size: 10px;
}

/* 库房管理浅色页 */
.warehouse-module-page {
  background:
    radial-gradient(circle at 90% 0, rgba(86, 171, 227, .13), transparent 25%),
    linear-gradient(180deg, #eff8ff 0, #f5f9fc 42%, #f1f5f9 100%);
}

.warehouse-light-hero {
  min-height: 106px;
  padding: 17px;
  border: 1px solid #dce8f2;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #f2f8fd);
  box-shadow: 0 8px 22px rgba(44, 80, 114, .07);
  display: flex;
  align-items: center;
  gap: 12px;
}

.warehouse-light-hero > span {
  width: 51px;
  height: 51px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: #eaf4fc;
  font-size: 26px;
}

.warehouse-light-hero > div {
  min-width: 0;
  flex: 1;
}

.warehouse-light-hero h1 {
  margin: 0;
  color: #263a4f;
  font-size: 24px;
  letter-spacing: -.5px;
}

.warehouse-light-hero p {
  margin: 5px 0 0;
  color: #8495a6;
  font-size: 10px;
}

.warehouse-light-hero > b {
  width: 36px;
  height: 36px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #2f86ca;
  color: #fff;
  font-size: 15px;
}

.warehouse-overview-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 3px 0;
  color: #788999;
  font-size: 9px;
}

.warehouse-overview-row span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.warehouse-overview-row i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b8c2cb;
}

.warehouse-overview-row i.on {
  background: #20b382;
}

.warehouse-overview-row em {
  margin-left: auto;
  color: #a0acb8;
  font-style: normal;
}

.warehouse-sort-list {
  padding: 5px 12px;
  border-radius: 16px;
}

.warehouse-sort-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 12px 0;
}

.warehouse-sort-row .config-drag {
  grid-column: 1;
  grid-row: 1;
}

.warehouse-sort-row .config-row-main {
  grid-column: 2;
  grid-row: 1;
}

.warehouse-status-btn {
  grid-column: 3;
  grid-row: 1;
  min-width: 46px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #d7e7e2;
  border-radius: 8px;
  background: #f6fbf9;
  color: #84928e;
  font-size: 10px;
  cursor: pointer;
}

.warehouse-status-btn.on {
  border-color: #bfe8d8;
  background: #eaf8f2;
  color: #15966f;
  font-weight: 600;
}

.warehouse-sort-row .config-row-actions {
  grid-column: 2 / 4;
  grid-row: 2;
  width: auto;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
}

.warehouse-sort-row .config-row-actions button {
  height: 28px;
  min-width: 42px;
  padding: 0 8px;
  border: 1px solid #dce5ed;
  border-radius: 7px;
  background: #f8fafc;
  color: #68798a;
  font-size: 10px;
  cursor: pointer;
}

.warehouse-sort-row .config-row-actions button:active {
  background: #edf4fa;
}

.warehouse-sort-row .config-row-actions button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.warehouse-sort-row .warehouse-icon-btn {
  min-width: 28px;
  width: 28px;
  padding: 0;
  font-size: 12px;
}

.warehouse-sort-row .warehouse-edit-btn {
  border-color: #cfe1f1 !important;
  background: #f1f8fe !important;
  color: #3478b0 !important;
}

.warehouse-sort-row .warehouse-delete-btn {
  border-color: #f0d4d2 !important;
  background: #fff8f7 !important;
  color: #c9544d !important;
}

.warehouse-shelf-sheet {
  max-height: 82%;
}

.warehouse-shelf-sheet .sheet-body {
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
  background: #f4f8fb;
}

.shelf-add-box {
  padding: 10px;
  border: 1px solid #dfe9f2;
  border-radius: 12px;
  background: #fff;
  display: flex;
  gap: 8px;
}

.shelf-add-box input {
  min-width: 0;
  flex: 1;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #dfe7ee;
  border-radius: 8px;
  outline: 0;
  background: #fafcfe;
  color: #35495d;
  font: inherit;
  font-size: 11px;
}

.shelf-add-box button {
  flex: none;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: #2f86c4;
  color: #fff;
  font-size: 10px;
  cursor: pointer;
}

.shelf-manage-list {
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid #e1e9f1;
  border-radius: 12px;
  background: #fff;
}

.shelf-manage-row {
  min-height: 58px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shelf-manage-row + .shelf-manage-row {
  border-top: 1px solid #edf1f5;
}

.shelf-manage-row > span {
  width: 34px;
  height: 34px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #edf4fa;
  font-size: 17px;
}

.shelf-manage-row > div {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.shelf-manage-row b {
  color: #3b5064;
  font-size: 11px;
}

.shelf-manage-row small {
  margin-top: 2px;
  color: #95a2ae;
  font-size: 8px;
}

.shelf-manage-row button {
  flex: none;
  padding: 5px 7px;
  border: 1px solid #dce6ee;
  border-radius: 6px;
  background: #f8fafc;
  color: #5e7487;
  font-size: 8px;
  cursor: pointer;
}

.shelf-manage-row button.danger {
  border-color: #f0d1cf;
  background: #fff7f7;
  color: #c85049;
}

.warehouse-empty-state {
  margin-top: 12px;
  padding: 48px 18px;
  border: 1px dashed #cfdfe9;
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #91a0ae;
}

.warehouse-empty-state span {
  font-size: 42px;
  filter: grayscale(.25);
}

.warehouse-empty-state b {
  margin-top: 11px;
  color: #53677a;
  font-size: 14px;
}

.warehouse-empty-state small {
  margin-top: 4px;
  font-size: 10px;
}

.warehouse-admin-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 11px;
}

.warehouse-admin-actions .config-primary-btn {
  margin-top: 0;
}

.config-secondary-btn {
  min-width: 92px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--text-2);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.config-secondary-btn b {
  margin-left: 3px;
  padding: 1px 5px;
  border-radius: 10px;
  background: #fff0ef;
  color: #c5524b;
  font-size: 8px;
}

.warehouse-recovery-card {
  margin-top: 13px;
  padding: 13px;
}

.warehouse-recovery-head,
.warehouse-manage-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.warehouse-recovery-head h2,
.warehouse-manage-title h2 {
  margin: 0;
  color: var(--text);
  font-size: 13px;
}

.warehouse-recovery-head p,
.warehouse-manage-title span {
  margin: 4px 0 0;
  color: var(--text-3);
  font-size: 8px;
}

.warehouse-recovery-head > span {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 9px;
  background: color-mix(in srgb, var(--primary) 10%, var(--card));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-style: normal;
}

.warehouse-recovery-row {
  min-height: 52px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}

.warehouse-recovery-row > div {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.warehouse-recovery-row b {
  color: var(--text);
  font-size: 10px;
}

.warehouse-recovery-row small {
  margin-top: 3px;
  color: var(--text-3);
  font-size: 8px;
}

.warehouse-recovery-row button,
.warehouse-invite-actions button,
.warehouse-member-row button,
.warehouse-danger-actions button {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  color: var(--primary);
  font: inherit;
  font-size: 8px;
  cursor: pointer;
}

.recycle-card .config-empty {
  margin-top: 9px;
}

.warehouse-manage-sheet {
  max-height: 88%;
}

.warehouse-manage-body {
  padding: 12px 13px calc(18px + env(safe-area-inset-bottom));
  background: var(--bg);
}

.warehouse-manage-summary {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  display: flex;
  align-items: center;
  gap: 10px;
}

.warehouse-manage-summary > span {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 10%, var(--card));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
}

.warehouse-manage-summary > div {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.warehouse-manage-summary b {
  color: var(--text);
  font-size: 13px;
}

.warehouse-manage-summary small {
  margin-top: 3px;
  color: var(--text-3);
  font-size: 8px;
}

.warehouse-manage-summary em {
  color: var(--primary);
  font-size: 8px;
  font-style: normal;
}

.warehouse-manage-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.warehouse-manage-grid button {
  min-height: 76px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 7px;
  text-align: left;
  cursor: pointer;
}

.warehouse-manage-grid button > span {
  grid-row: 1 / 3;
  align-self: center;
  font-size: 19px;
}

.warehouse-manage-grid b {
  font-size: 10px;
}

.warehouse-manage-grid small {
  color: var(--text-3);
  font-size: 8px;
}

.warehouse-manage-section {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
}

.warehouse-manage-title {
  align-items: flex-start;
}

.warehouse-manage-title span {
  margin-top: 1px;
  text-align: right;
}

.warehouse-invite-card {
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed color-mix(in srgb, var(--primary) 35%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 6%, var(--card));
  display: flex;
  align-items: center;
  gap: 8px;
}

.warehouse-invite-card > div {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.warehouse-invite-card small,
.warehouse-invite-card em {
  color: var(--text-3);
  font-size: 7px;
  font-style: normal;
}

.warehouse-invite-card b {
  margin: 3px 0;
  color: var(--primary);
  font-size: 16px;
  letter-spacing: 1.5px;
}

.warehouse-invite-card button {
  flex: none;
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  background: var(--button-bg);
  color: var(--button-text);
  font: inherit;
  font-size: 8px;
  cursor: pointer;
}

.warehouse-invite-actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.warehouse-invite-actions select {
  min-width: 100px;
  height: 31px;
  padding: 0 7px;
  border: 1px solid var(--input-border);
  border-radius: 7px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  font-size: 8px;
}

.warehouse-invite-actions button:first-of-type {
  border-color: transparent;
  background: var(--button-bg);
  color: var(--button-text);
}

.warehouse-invite-actions button.muted {
  margin-left: auto;
  color: var(--text-3);
}

.warehouse-member-list {
  margin-top: 7px;
}

.warehouse-member-row {
  min-height: 51px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}

.warehouse-member-row:first-child {
  border-top: 0;
}

.warehouse-member-row > span {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  background: color-mix(in srgb, var(--primary) 10%, var(--card));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.warehouse-member-row > div {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.warehouse-member-row b {
  color: var(--text);
  font-size: 10px;
}

.warehouse-member-row small {
  margin-top: 2px;
  color: var(--text-3);
  font-size: 8px;
}

.warehouse-member-row em {
  color: var(--primary);
  font-size: 8px;
  font-style: normal;
}

.warehouse-danger-section {
  border-color: color-mix(in srgb, #d4564e 28%, var(--line));
}

.warehouse-danger-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.warehouse-danger-actions button {
  min-height: 35px;
  font-size: 9px;
}

.warehouse-danger-actions button.danger {
  border-color: #efd0cd;
  background: #fff6f5;
  color: #c94d46;
}

.warehouse-move-note {
  margin-bottom: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--primary) 7%, var(--card));
  color: var(--text-2);
  font-size: 8px;
  line-height: 1.55;
}

/* 分类详情列表视图 */
.category-detail-list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e1e9f1;
  border-radius: 14px;
  background: #fff;
}

.category-detail-list-item {
  min-height: 76px;
  padding: 9px 11px;
  border: 0;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.category-detail-list-item + .category-detail-list-item {
  border-top: 1px solid #eef2f6;
}

.category-detail-list-photo {
  width: 56px;
  height: 56px;
  flex: none;
  overflow: hidden;
  border-radius: 10px;
  background: #edf2f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-detail-list-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-detail-list-photo i {
  font-size: 22px;
  font-style: normal;
}

.category-detail-list-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-detail-list-copy b {
  overflow: hidden;
  color: #2c3f53;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-detail-list-copy small {
  margin-top: 4px;
  color: #92a0ad;
  font-size: 9px;
}

.category-detail-list-item > em {
  color: #b4bec8;
  font-size: 18px;
  font-style: normal;
}

/* 导航预警红点 */
.tab-alert-dot {
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  width: 8px;
  height: 8px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: #ee4d47;
}

/* 深色主题基础覆盖 */
html[data-theme="dark"] {
  --bg: #141b23;
  --card: #202a35;
  --line: #334150;
  --text: #edf3f8;
  --text-2: #b9c6d2;
  --text-3: #8292a2;
  --shadow: 0 5px 18px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] body,
html[data-theme="dark"] .phone,
html[data-theme="dark"] .app,
html[data-theme="dark"] .view {
  background: #111820;
  color: #edf3f8;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .config-card,
html[data-theme="dark"] .settings-module-card,
html[data-theme="dark"] .sheet,
html[data-theme="dark"] .profile-setting-card,
html[data-theme="dark"] .profile-utility-card,
html[data-theme="dark"] .category-item-card,
html[data-theme="dark"] .category-detail-list,
html[data-theme="dark"] .category-detail-list-item,
html[data-theme="dark"] .item-detail-title,
html[data-theme="dark"] .item-detail-info-card,
html[data-theme="dark"] .item-detail-history,
html[data-theme="dark"] .statistics-warehouse-card,
html[data-theme="dark"] .settings-account {
  background: #202a35;
  border-color: #334150;
}

html[data-theme="dark"] .settings-page,
html[data-theme="dark"] .statistics-page,
html[data-theme="dark"] .category-detail-page,
html[data-theme="dark"] .item-detail-page,
html[data-theme="dark"] .wh-home {
  background: #141b23;
}

html[data-theme="dark"] .config-row-main b,
html[data-theme="dark"] .settings-module-copy b,
html[data-theme="dark"] .settings-section-title,
html[data-theme="dark"] .config-section-title,
html[data-theme="dark"] .config-field-rule-head > b,
html[data-theme="dark"] .category-detail-list-copy b {
  color: #dbe6ef;
}

html.reduce-motion *,
html.reduce-motion *::before,
html.reduce-motion *::after {
  animation-duration: .001ms !important;
  transition-duration: .001ms !important;
  scroll-behavior: auto !important;
}

/* ---------- 借还管理 ---------- */
.loan-item-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 5px;
  background: #fee9e7;
  color: #cf4f48;
  font-size: 9px;
  font-style: normal;
  font-weight: 500;
  vertical-align: middle;
}

.loan-page {
  min-height: 100%;
  padding: calc(14px + env(safe-area-inset-top)) 14px 90px;
  background:
    radial-gradient(circle at 90% 0, rgba(101, 160, 235, .16), transparent 25%),
    linear-gradient(180deg, #eff8ff 0, #f5f8fb 42%, #eef3f8 100%);
}

.loan-hero {
  position: relative;
  min-height: 115px;
  padding: 18px 18px 18px 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #286ba5, #4592c2 58%, #6ab9d8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(36, 92, 137, .2);
}

.loan-back {
  position: absolute;
  top: 18px;
  left: 14px;
  width: 32px;
  height: 32px;
  padding: 0 0 2px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 10px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 27px;
  font-weight: 300;
  line-height: 29px;
  cursor: pointer;
}

.loan-back:active {
  background: rgba(255, 255, 255, .24);
}

.loan-hero small {
  color: rgba(255, 255, 255, .58);
  font-size: 8px;
  letter-spacing: 1px;
}

.loan-hero h1 {
  margin: 5px 0 4px;
  font-size: 25px;
}

.loan-hero p {
  margin: 0;
  color: rgba(255, 255, 255, .75);
  font-size: 10px;
}

.loan-hero > span {
  font-size: 42px;
  filter: grayscale(1) brightness(2);
  opacity: .78;
}

.loan-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.loan-actions button {
  flex: 1;
  min-height: 40px;
  border: 1px solid #d6e4ef;
  border-radius: 10px;
  background: #fff;
  color: #47718f;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.loan-actions button.primary {
  border-color: #3187c6;
  background: #2f86c4;
  color: #fff;
  font-weight: 600;
}

.loan-search {
  height: 42px;
  margin-top: 10px;
  padding: 0 12px;
  border: 1px solid #dce7f0;
  border-radius: 11px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
}

.loan-search span {
  color: #8295a7;
  font-size: 19px;
}

.loan-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #34495e;
  font: inherit;
  font-size: 12px;
}

.loan-filters {
  display: flex;
  gap: 7px;
  margin: 10px 0;
}

.loan-filters button {
  padding: 6px 12px;
  border: 1px solid #dce6ee;
  border-radius: 999px;
  background: #fff;
  color: #748596;
  font-size: 10px;
  cursor: pointer;
}

.loan-filters button.on {
  border-color: #76add4;
  background: #eaf5fd;
  color: #2a79b3;
}

.loan-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.loan-card {
  overflow: hidden;
  border: 1px solid #e0e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(39, 72, 102, .06);
}

.loan-card-main {
  width: 100%;
  padding: 12px 13px 9px;
  border: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.loan-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.loan-card-top > b {
  color: #31475c;
  font-size: 12px;
}

.loan-status {
  flex: none;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 9px;
}

.loan-status.pending {
  background: #fff3dc;
  color: #d4881c;
}

.loan-status.returned {
  background: #e8f8f2;
  color: #14956f;
}

.loan-card-meta,
.loan-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  color: #93a0ad;
  font-size: 9px;
}

.loan-card-items {
  overflow: hidden;
  margin-top: 7px;
  color: #52667a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loan-card-actions {
  min-height: 38px;
  padding: 5px 10px;
  border-top: 1px solid #edf1f5;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.loan-card-actions button {
  padding: 5px 8px;
  border: 1px solid #dce6ee;
  border-radius: 6px;
  background: #f8fafc;
  color: #5f7385;
  font-size: 9px;
  cursor: pointer;
}

.loan-card-actions button.danger {
  border-color: #f0d1cf;
  background: #fff7f7;
  color: #c74e48;
}

.loan-empty {
  padding: 44px 16px;
  border: 1px dashed #d5e1eb;
  border-radius: 15px;
  background: rgba(255, 255, 255, .65);
  color: #92a1af;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loan-empty span {
  font-size: 37px;
}

.loan-empty b {
  margin-top: 9px;
  color: #536679;
  font-size: 13px;
}

.loan-empty small {
  margin-top: 4px;
  font-size: 9px;
}

.loan-empty.small {
  padding: 24px 12px;
}

.loan-form-page {
  min-height: 100%;
  padding: 12px 14px 90px;
  background: #f1f6fa;
}

.loan-form-card,
.loan-line-list,
.loan-detail-items,
.loan-return-history {
  overflow: hidden;
  border: 1px solid #e0e8f0;
  border-radius: 14px;
  background: #fff;
}

.loan-form-title {
  padding: 13px 14px;
  border-bottom: 1px solid #edf1f5;
  color: #34495d;
  font-size: 14px;
  font-weight: 600;
}

.loan-form-row {
  min-height: 50px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.loan-form-row + .loan-form-row {
  border-top: 1px solid #edf1f5;
}

.loan-form-row > span {
  width: 92px;
  flex: none;
  color: #687a8c;
  font-size: 11px;
}

.loan-form-row input {
  min-width: 0;
  flex: 1;
  height: 35px;
  padding: 0 9px;
  border: 1px solid #dfe7ee;
  border-radius: 7px;
  outline: 0;
  background: #fafcfe;
  color: #34495d;
  font: inherit;
  font-size: 11px;
}

.loan-form-row.textarea {
  align-items: flex-start;
}

.loan-form-row textarea {
  flex: 1;
  min-height: 72px;
  padding: 9px;
  resize: vertical;
  border: 1px solid #dfe7ee;
  border-radius: 7px;
  outline: 0;
  background: #fafcfe;
  color: #34495d;
  font: inherit;
  font-size: 11px;
}

.loan-line {
  min-height: 66px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.loan-line + .loan-line,
.loan-detail-line + .loan-detail-line {
  border-top: 1px solid #edf1f5;
}

.loan-line-image {
  width: 46px;
  height: 46px;
  flex: none;
  overflow: hidden;
  border-radius: 9px;
  background: #edf2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
}

.loan-line-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.loan-line-main b {
  overflow: hidden;
  color: #34495d;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loan-line-main small {
  margin-top: 3px;
  color: #94a1ae;
  font-size: 8px;
}

.loan-line-qty {
  width: 72px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.loan-line-qty span {
  color: #8a99a7;
  font-size: 8px;
}

.loan-line-qty input {
  width: 100%;
  height: 31px;
  border: 1px solid #dde5ec;
  border-radius: 6px;
  text-align: center;
  outline: 0;
  font: inherit;
  font-size: 11px;
}

.loan-line-remove {
  width: 24px;
  height: 24px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #feeceb;
  color: #c85049;
  cursor: pointer;
}

.loan-line-remove:disabled {
  opacity: .3;
}

.loan-add-items {
  width: 100%;
  height: 42px;
  margin-top: 9px;
  border: 1px dashed #78a9cf;
  border-radius: 10px;
  background: #f7fbff;
  color: #2e7eb8;
  font-size: 11px;
  cursor: pointer;
}

.loan-pick-sheet {
  max-height: 82%;
}

.loan-pick-search {
  padding: 8px 12px;
  border-bottom: 1px solid #edf1f5;
}

.loan-pick-search input {
  width: 100%;
  height: 37px;
  padding: 0 10px;
  border: 1px solid #dfe7ee;
  border-radius: 8px;
  outline: 0;
  background: #f8fbfd;
  font: inherit;
  font-size: 11px;
}

.loan-pick-list {
  padding: 0 12px 12px;
}

.loan-pick-row {
  width: 100%;
  min-height: 64px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  cursor: pointer;
}

.loan-pick-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.loan-pick-copy b {
  color: #35495d;
  font-size: 11px;
}

.loan-pick-copy small {
  margin-top: 3px;
  color: #95a2ae;
  font-size: 8px;
}

.loan-pick-row em {
  color: #3488bd;
  font-size: 20px;
  font-style: normal;
}

.loan-detail-page {
  min-height: 100%;
  padding: 12px 14px 34px;
  background: #f1f6fa;
}

.loan-detail-head {
  padding: 15px;
  border-radius: 15px;
  background: linear-gradient(135deg, #2a75ad, #55a4cd);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 20px rgba(42, 111, 160, .18);
}

.loan-detail-head small {
  color: rgba(255, 255, 255, .64);
  font-size: 8px;
}

.loan-detail-head h1 {
  margin: 4px 0 0;
  font-size: 18px;
}

.loan-info-card {
  overflow: hidden;
  margin-top: 11px;
  border: 1px solid #e0e8f0;
  border-radius: 13px;
  background: #fff;
}

.loan-info-card > div {
  min-height: 43px;
  padding: 8px 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.loan-info-card > div + div {
  border-top: 1px solid #edf1f5;
}

.loan-info-card span {
  width: 72px;
  flex: none;
  color: #8998a6;
  font-size: 10px;
}

.loan-info-card b {
  min-width: 0;
  flex: 1;
  color: #3b5064;
  font-size: 10px;
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

.loan-detail-line {
  min-height: 69px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.loan-detail-line > div {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.loan-detail-line b {
  color: #34495d;
  font-size: 11px;
}

.loan-detail-line small {
  margin-top: 3px;
  color: #94a1ae;
  font-size: 8px;
}

.loan-qty-info {
  flex: none;
  color: #3c5367;
  font-size: 10px;
  text-align: right;
}

.loan-qty-info small {
  display: block;
  color: #c17d25;
}

.loan-return-btn,
.loan-export-one {
  width: 100%;
  height: 40px;
  margin-top: 10px;
  border-radius: 9px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.loan-return-btn {
  border: 0;
  background: #2e86c4;
  color: #fff;
}

.loan-export-one {
  border: 1px solid #d9e5ee;
  background: #fff;
  color: #55758e;
}

.loan-return-event {
  padding: 11px 13px;
}

.loan-return-event + .loan-return-event {
  border-top: 1px solid #edf1f5;
}

.loan-return-event-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #3d5367;
  font-size: 10px;
}

.loan-return-event-head span {
  color: #8d9aa7;
  font-size: 9px;
}

.loan-return-event-item {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  padding: 7px 8px;
  border-radius: 7px;
  background: #f7f9fb;
  color: #5e7183;
  font-size: 9px;
}

.loan-return-event-item small,
.loan-return-operator {
  color: #94a1ae;
  font-size: 8px;
}

.loan-return-operator {
  display: block;
  margin-top: 6px;
}

.loan-return-sheet {
  max-height: 90%;
}

.loan-return-form {
  padding: 5px 14px calc(10px + env(safe-area-inset-bottom));
}

.loan-return-line {
  padding: 10px 0;
  border-top: 1px solid #edf1f5;
}

.loan-return-line > div:first-child {
  display: flex;
  flex-direction: column;
}

.loan-return-line b {
  color: #3b5064;
  font-size: 11px;
}

.loan-return-line small {
  margin-top: 3px;
  color: #94a1ae;
  font-size: 8px;
}

.loan-return-controls {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.loan-return-controls label {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.loan-return-controls span {
  color: #8998a6;
  font-size: 8px;
}

.loan-return-controls input,
.loan-return-controls select {
  width: 100%;
  height: 34px;
  padding: 0 7px;
  border: 1px solid #dfe7ee;
  border-radius: 7px;
  background: #fafcfe;
  color: #3c5064;
  font: inherit;
  font-size: 10px;
  outline: 0;
}

.item-detail-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin-top: 11px;
  padding: 4px;
  border-radius: 10px;
  background: #e7eef4;
}

.item-detail-tabs button {
  position: relative;
  height: 35px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #758595;
  font-size: 10px;
  cursor: pointer;
}

.item-detail-tabs button.on {
  background: #fff;
  color: #2678b5;
  font-weight: 600;
}

.item-detail-tabs i {
  display: inline-flex;
  min-width: 15px;
  height: 15px;
  margin-left: 4px;
  padding: 0 3px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e95d56;
  color: #fff;
  font-size: 8px;
  font-style: normal;
}

.item-loan-history {
  margin-top: 11px;
}

.item-loan-record {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  cursor: pointer;
}

.item-loan-record + .item-loan-record {
  border-top: 1px solid #edf1f5;
}

.item-loan-record > div {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.item-loan-record b {
  color: #3b5064;
  font-size: 10px;
}

.item-loan-record small {
  margin-top: 3px;
  color: #95a2ae;
  font-size: 8px;
}

.item-loan-record > span {
  max-width: 46%;
  overflow: hidden;
  color: #6d7d8d;
  font-size: 8px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-loan-record > em {
  color: #b5c0ca;
  font-size: 17px;
  font-style: normal;
}

/* ---------- 库室物品页 ---------- */
.warehouse-stock-page {
  min-height: 100%;
  padding: 12px 14px 34px;
  background:
    radial-gradient(circle at 92% 0, rgba(95, 164, 223, .14), transparent 24%),
    linear-gradient(180deg, #f0f8ff 0, #f5f8fb 43%, #f0f4f8 100%);
}

.warehouse-stock-head {
  min-height: 102px;
  padding: 16px;
  border: 1px solid #deebf4;
  border-radius: 17px;
  background: linear-gradient(135deg, #fff, #eef7fe);
  box-shadow: 0 7px 20px rgba(40, 77, 109, .07);
  display: flex;
  align-items: center;
  gap: 11px;
}

.warehouse-stock-head > span {
  width: 48px;
  height: 48px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #e8f3fc;
  font-size: 25px;
}

.warehouse-stock-head > div {
  min-width: 0;
  flex: 1;
}

.warehouse-stock-head small {
  color: #8d9eab;
  font-size: 8px;
  letter-spacing: .5px;
}

.warehouse-stock-head h1 {
  overflow: hidden;
  margin: 4px 0;
  color: #243a4f;
  font-size: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warehouse-stock-head p {
  overflow: hidden;
  margin: 0;
  color: #91a0ad;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warehouse-stock-head > b {
  width: 34px;
  height: 34px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #2f86c4;
  color: #fff;
  font-size: 12px;
}

.warehouse-stock-filters {
  margin-top: 10px;
  padding: 2px 13px;
  border: 1px solid #e0e9f1;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(39, 73, 104, .05);
}

.warehouse-stock-filters label {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.warehouse-stock-filters label + label {
  border-top: 1px solid #edf1f5;
}

.warehouse-stock-filters span {
  width: 66px;
  flex: none;
  color: #718293;
  font-size: 10px;
}

.warehouse-stock-filters select,
.warehouse-stock-filters input {
  min-width: 0;
  flex: 1;
  height: 34px;
  padding: 0 9px;
  border: 1px solid #dfe7ee;
  border-radius: 7px;
  outline: 0;
  background: #fafcfe;
  color: #3b5064;
  font: inherit;
  font-size: 10px;
}

.warehouse-stock-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 15px 3px 9px;
}

.warehouse-stock-title h2 {
  margin: 0;
  color: #263b50;
  font-size: 18px;
}

.warehouse-stock-title span {
  color: #8d9aa7;
  font-size: 9px;
}

.warehouse-stock-grid {
  margin-top: 0;
}

/* ---------- 主题风格选择 ---------- */
.theme-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 1px 1px 10px;
}

.theme-section-head h2 {
  margin: 0;
  color: #35495d;
  font-size: 13px;
}

.theme-section-head span {
  color: #94a1ae;
  font-size: 8px;
}

.theme-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 1px 2px 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.theme-gallery::-webkit-scrollbar {
  display: none;
}

.theme-choice {
  position: relative;
  width: 176px;
  flex: none;
  scroll-snap-align: start;
  padding: 8px;
  border: 1px solid #dfe7ee;
  border-radius: 13px;
  background: #f8fafc;
  text-align: left;
  cursor: pointer;
}

.theme-choice.selected {
  border-color: #5e9fd0;
  box-shadow: 0 0 0 2px rgba(58, 137, 198, .1);
}

.theme-preview {
  position: relative;
  display: block;
  height: 105px;
  overflow: hidden;
  padding: 24px 9px 9px;
  border-radius: 9px;
  background: var(--tp-bg);
}

.theme-preview-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 19px;
  background: var(--tp-primary);
}

.theme-preview-title {
  display: block;
  width: 52%;
  height: 8px;
  margin-bottom: 7px;
  border-radius: 4px;
  background: var(--tp-text);
  opacity: .75;
}

.theme-preview-card {
  display: flex;
  height: 34px;
  padding: 7px;
  flex-direction: column;
  gap: 4px;
  border-radius: 7px;
  background: var(--tp-card);
  box-shadow: 0 3px 8px rgba(23, 45, 66, .09);
}

.theme-preview-card b {
  display: block;
  width: 68%;
  height: 5px;
  border-radius: 3px;
  background: var(--tp-text);
  opacity: .33;
}

.theme-preview-card b:last-child {
  width: 42%;
  background: var(--tp-accent);
  opacity: .7;
}

.theme-preview-button {
  display: block;
  width: 53px;
  height: 14px;
  margin-top: 6px;
  border-radius: 4px;
  background: var(--tp-primary);
}

.theme-choice-copy {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.theme-choice-copy b {
  color: #35495d;
  font-size: 11px;
}

.theme-choice-copy small {
  margin-top: 2px;
  color: #94a1ae;
  font-size: 8px;
}

.theme-swatches {
  display: flex;
  gap: 4px;
  margin-top: 7px;
}

.theme-swatches i {
  width: 17px;
  height: 17px;
  border: 1px solid rgba(40, 56, 72, .1);
  border-radius: 5px;
}

.theme-description {
  display: block;
  min-height: 29px;
  margin-top: 7px;
  color: #7f8f9d;
  font-size: 8px;
  line-height: 1.45;
}

.theme-selected {
  position: absolute;
  top: 13px;
  right: 13px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .9);
  color: #317bb2;
  font-size: 7px;
  font-style: normal;
}

/* ---------- 五套全局主题 ---------- */
html[data-theme-style="business"][data-theme="light"] {
  --primary: #1a6fbf; --primary-dark: #155a99; --accent: #4c9be0; --accent-soft: #dcecf9;
  --bg: #edf4fb; --page-top: #f1f8ff; --page-end: #eaf1f8; --card: #fff;
  --line: #dfe8f1; --text: #1f2f40; --text-2: #586a7b; --text-3: #91a0ae;
  --button-bg: #1a6fbf; --button-text: #fff; --button-border: #1a6fbf; --button-shadow: 0 5px 13px rgba(26, 111, 191, .2);
  --input-bg: #fbfdff; --input-border: #dce6ef; --icon-filter: none;
}

html[data-theme-style="business"][data-theme="dark"] {
  --primary: #5aa8ec; --primary-dark: #367eb7; --accent: #70c4d7; --accent-soft: #19364d;
  --bg: #101923; --page-top: #121e29; --page-end: #0e161e; --card: #192634;
  --line: #2c4052; --text: #ecf5fc; --text-2: #b6c7d5; --text-3: #8094a5;
  --button-bg: #3a8fd0; --button-text: #fff; --button-border: #559fd6; --button-shadow: 0 5px 13px rgba(0, 0, 0, .25);
  --input-bg: #15222e; --input-border: #31485b; --icon-filter: saturate(.8) brightness(.92);
}

html[data-theme-style="wood"][data-theme="light"] {
  --primary: #a87248; --primary-dark: #7d5234; --accent: #d29b66; --accent-soft: #f1e1cf;
  --bg: #f7f0e6; --page-top: #fbf7f1; --page-end: #f1e7da; --card: #fffdf8;
  --line: #eadfce; --text: #43372c; --text-2: #776455; --text-3: #a08e7d;
  --button-bg: #a87248; --button-text: #fff; --button-border: #a87248; --button-shadow: 0 4px 11px rgba(138, 91, 55, .17);
  --input-bg: #fffaf4; --input-border: #e4d6c3; --icon-filter: sepia(.18) saturate(.82);
}

html[data-theme-style="wood"][data-theme="dark"] {
  --primary: #d7a675; --primary-dark: #a87549; --accent: #e5bd8d; --accent-soft: #4a3828;
  --bg: #241e19; --page-top: #2c241e; --page-end: #201a16; --card: #332a22;
  --line: #4c3d31; --text: #f7efe5; --text-2: #d1bdab; --text-3: #9c8774;
  --button-bg: #b77e4f; --button-text: #fffaf5; --button-border: #cc9461; --button-shadow: 0 4px 11px rgba(0, 0, 0, .24);
  --input-bg: #2b231d; --input-border: #4e3f32; --icon-filter: sepia(.2) saturate(.75) brightness(.94);
}

html[data-theme-style="graphite"][data-theme="light"] {
  --primary: #536273; --primary-dark: #3d4b5b; --accent: #8598aa; --accent-soft: #e1e7ed;
  --bg: #edf0f3; --page-top: #f4f6f8; --page-end: #e9edf1; --card: #fff;
  --line: #dce2e8; --text: #292f36; --text-2: #5d6873; --text-3: #929da7;
  --button-bg: #465667; --button-text: #fff; --button-border: #465667; --button-shadow: 0 4px 11px rgba(38, 48, 58, .18);
  --input-bg: #f8fafb; --input-border: #d8dfe5; --icon-filter: saturate(.55) contrast(1.03);
}

html[data-theme-style="graphite"][data-theme="dark"] {
  --primary: #8ba7c4; --primary-dark: #64819f; --accent: #6f8ba8; --accent-soft: #243240;
  --bg: #0e1116; --page-top: #141920; --page-end: #0b0e12; --card: #191e25;
  --line: #2d3641; --text: #e8edf3; --text-2: #b4c0cc; --text-3: #788795;
  --button-bg: #587b9d; --button-text: #fff; --button-border: #7896b2; --button-shadow: 0 4px 12px rgba(0, 0, 0, .3);
  --input-bg: #121820; --input-border: #34414e; --icon-filter: saturate(.45) brightness(.9);
}

html[data-theme-style="mint"][data-theme="light"] {
  --primary: #269d82; --primary-dark: #197961; --accent: #79cfb9; --accent-soft: #d8f2ea;
  --bg: #eaf8f4; --page-top: #f1fdf9; --page-end: #e3f2ed; --card: #fbfffd;
  --line: #d3ebe3; --text: #203b35; --text-2: #54746c; --text-3: #8da9a1;
  --button-bg: #269d82; --button-text: #fff; --button-border: #269d82; --button-shadow: 0 5px 13px rgba(31, 144, 116, .18);
  --input-bg: #f7fffc; --input-border: #d1e8e0; --icon-filter: saturate(.86) hue-rotate(-8deg);
}

html[data-theme-style="mint"][data-theme="dark"] {
  --primary: #62d8b7; --primary-dark: #3a9f85; --accent: #91e4ce; --accent-soft: #24463d;
  --bg: #0f1d1a; --page-top: #152824; --page-end: #0d1815; --card: #17302a;
  --line: #2c5046; --text: #e8fff8; --text-2: #b6d8ce; --text-3: #7ea79b;
  --button-bg: #2b9f82; --button-text: #fff; --button-border: #60c9ad; --button-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  --input-bg: #12231f; --input-border: #315146; --icon-filter: saturate(.8) brightness(.92);
}

html[data-theme-style="terracotta"][data-theme="light"] {
  --primary: #b45f43; --primary-dark: #88452f; --accent: #d99069; --accent-soft: #f2ded3;
  --bg: #f8eee8; --page-top: #fdf7f3; --page-end: #f2e4dc; --card: #fffaf7;
  --line: #eedbd0; --text: #4a3027; --text-2: #7e6257; --text-3: #aa9186;
  --button-bg: #fffaf7; --button-text: #b45f43; --button-border: #c9856e; --button-shadow: 0 3px 9px rgba(154, 91, 67, .12);
  --input-bg: #fff8f4; --input-border: #e8d3c8; --icon-filter: sepia(.25) saturate(.72);
}

html[data-theme-style="terracotta"][data-theme="dark"] {
  --primary: #e69572; --primary-dark: #b96548; --accent: #efb18f; --accent-soft: #53342b;
  --bg: #241715; --page-top: #30201c; --page-end: #1f1412; --card: #33221f;
  --line: #543a34; --text: #faeee9; --text-2: #d7b8ad; --text-3: #a48276;
  --button-bg: #b9684c; --button-text: #fff8f4; --button-border: #d48364; --button-shadow: 0 4px 11px rgba(0, 0, 0, .25);
  --input-bg: #2c1d19; --input-border: #553a32; --icon-filter: sepia(.2) saturate(.7) brightness(.93);
}

/* 主题包应用到全局页面与组件 */
html[data-theme-style] body,
html[data-theme-style] .phone,
html[data-theme-style] .app,
html[data-theme-style] .view {
  background: var(--bg);
  color: var(--text);
}

html[data-theme-style] .navbar {
  background: var(--primary);
}

html[data-theme-style] .tabbar {
  background: var(--card);
  border-color: var(--line);
}

html[data-theme-style] .tab-item {
  color: var(--text-3);
}

html[data-theme-style] .card,
html[data-theme-style] .config-card,
html[data-theme-style] .settings-module-card,
html[data-theme-style] .profile-setting-card,
html[data-theme-style] .profile-utility-card,
html[data-theme-style] .category-item-card,
html[data-theme-style] .category-detail-list,
html[data-theme-style] .category-detail-list-item,
html[data-theme-style] .item-detail-title,
html[data-theme-style] .item-detail-info-card,
html[data-theme-style] .item-detail-history,
html[data-theme-style] .statistics-warehouse-card,
html[data-theme-style] .settings-account,
html[data-theme-style] .loan-card,
html[data-theme-style] .loan-form-card,
html[data-theme-style] .loan-line-list,
html[data-theme-style] .loan-detail-items,
html[data-theme-style] .loan-return-history,
html[data-theme-style] .loan-info-card,
html[data-theme-style] .warehouse-stock-filters,
html[data-theme-style] .warehouse-light-hero,
html[data-theme-style] .warehouse-stock-head {
  background: var(--card);
  border-color: var(--line);
  color: var(--text);
  box-shadow: var(--shadow);
}

html[data-theme-style] .wh-home,
html[data-theme-style] .statistics-page,
html[data-theme-style] .settings-page,
html[data-theme-style] .category-detail-page,
html[data-theme-style] .item-detail-page,
html[data-theme-style] .loan-page,
html[data-theme-style] .loan-form-page,
html[data-theme-style] .loan-detail-page,
html[data-theme-style] .warehouse-stock-page {
  background:
    radial-gradient(circle at 90% 0, color-mix(in srgb, var(--accent) 15%, transparent), transparent 25%),
    linear-gradient(180deg, var(--page-top) 0, var(--bg) 44%, var(--page-end) 100%);
  color: var(--text);
}

html[data-theme-style] .wh-home-hero,
html[data-theme-style] .statistics-hero,
html[data-theme-style] .category-detail-hero,
html[data-theme-style] .loan-hero,
html[data-theme-style] .loan-detail-head,
html[data-theme-style] .settings-hero,
html[data-theme-style] .config-hero,
html[data-theme-style] .warehouse-light-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 58%, var(--accent));
}

html[data-theme-style] .warehouse-light-hero h1 {
  color: #fff;
}

html[data-theme-style] .warehouse-light-hero p {
  color: rgba(255, 255, 255, .72);
}

html[data-theme-style] .warehouse-light-hero > b {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

html[data-theme-style] .btn:not(.ghost),
html[data-theme-style] .config-primary-btn,
html[data-theme-style] .loan-actions button.primary,
html[data-theme-style] .loan-return-btn,
html[data-theme-style] .inventory-start,
html[data-theme-style] .profile-save-btn {
  background: var(--button-bg) !important;
  color: var(--button-text) !important;
  border: 1px solid var(--button-border) !important;
  box-shadow: var(--button-shadow) !important;
}

html[data-theme-style] .wh-home-search button,
html[data-theme-style] .settings-account-avatar,
html[data-theme-style] .category-inbound-btn > span {
  background: color-mix(in srgb, var(--primary) 14%, var(--card));
  color: var(--primary);
}

html[data-theme-style] .view input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
html[data-theme-style] .view select,
html[data-theme-style] .view textarea {
  background: var(--input-bg);
  border-color: var(--input-border);
  color: var(--text);
}

html[data-theme-style] .view input:focus,
html[data-theme-style] .view select:focus,
html[data-theme-style] .view textarea:focus {
  border-color: var(--primary);
}

html[data-theme-style] .row + .row,
html[data-theme-style] .form-row + .form-row,
html[data-theme-style] .config-switch-row + .config-switch-row,
html[data-theme-style] .config-choice-row + .config-choice-row,
html[data-theme-style] .loan-form-row + .loan-form-row,
html[data-theme-style] .loan-line + .loan-line {
  border-color: var(--line);
}

html[data-theme-style] .wh-category-icon,
html[data-theme-style] .category-config-icon,
html[data-theme-style] .settings-icon,
html[data-theme-style] .settings-module-icon,
html[data-theme-style] .loan-line-image,
html[data-theme-style] .warehouse-stock-head > span {
  filter: var(--icon-filter);
}

html[data-theme=dark] .theme-choice,
html[data-theme=dark] .theme-preview-card {
  border-color: var(--line);
}

html[data-theme=dark] .theme-choice {
  background: var(--card);
}

html[data-theme=dark] .theme-choice-copy b,
html[data-theme=dark] .theme-section-head h2 {
  color: var(--text);
}

html[data-theme=dark] .view h1,
html[data-theme=dark] .view h2,
html[data-theme=dark] .view h3,
html[data-theme=dark] .config-range-row b,
html[data-theme=dark] .config-switch-row b,
html[data-theme=dark] .config-number-row b,
html[data-theme=dark] .config-action-row b,
html[data-theme=dark] .config-choice-row > b,
html[data-theme=dark] .config-section-title,
html[data-theme=dark] .config-field-rule-head > b,
html[data-theme=dark] .config-text-row > span,
html[data-theme=dark] .config-field > span,
html[data-theme=dark] .permission-section-head h2,
html[data-theme=dark] .permission-role-main b,
html[data-theme=dark] .permission-account-head b,
html[data-theme=dark] .operation-log-item b,
html[data-theme=dark] .row .row-title,
html[data-theme=dark] .form-row .f-label,
html[data-theme=dark] .ia-field-label,
html[data-theme=dark] .ia-field-value,
html[data-theme=dark] .ia-item-index,
html[data-theme=dark] .ia-help-title,
html[data-theme=dark] .category-item-info b,
html[data-theme=dark] .item-detail-record b,
html[data-theme=dark] .loan-card-items,
html[data-theme=dark] .loan-line-main b,
html[data-theme=dark] .loan-detail-line b,
html[data-theme=dark] .warehouse-stock-filters span {
  color: var(--text);
}

html[data-theme=dark] .config-range-row small,
html[data-theme=dark] .config-switch-row small,
html[data-theme=dark] .config-number-row small,
html[data-theme=dark] .config-action-row small,
html[data-theme=dark] .config-note,
html[data-theme=dark] .config-field-rule-head small,
html[data-theme=dark] .permission-section-head p,
html[data-theme=dark] .permission-role-main small,
html[data-theme=dark] .permission-account-head small,
html[data-theme=dark] .permission-account-summary,
html[data-theme=dark] .operation-log-item small,
html[data-theme=dark] .operation-log-item p,
html[data-theme=dark] .row .row-sub,
html[data-theme=dark] .ia-field-label small,
html[data-theme=dark] .ia-help-text,
html[data-theme=dark] .category-item-info small,
html[data-theme=dark] .item-detail-record small,
html[data-theme=dark] .loan-card-meta,
html[data-theme=dark] .loan-card-foot,
html[data-theme=dark] .loan-line-main small,
html[data-theme=dark] .loan-detail-line small,
html[data-theme=dark] .warehouse-stock-head p,
html[data-theme=dark] .warehouse-stock-title span {
  color: var(--text-3);
}

/* ---------- 全局库房切换与选择 ---------- */
.global-warehouse-bar {
  flex: none;
  padding: 5px 12px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 94%, transparent);
}

.global-warehouse-bar[hidden] {
  display: none;
}

.global-warehouse-bar button {
  width: 100%;
  min-height: 31px;
  padding: 4px 9px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 8%, var(--card));
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  cursor: pointer;
}

.global-warehouse-bar button > span {
  font-size: 14px;
}

.global-warehouse-bar b {
  overflow: hidden;
  max-width: 42%;
  color: var(--text);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-warehouse-bar small {
  color: var(--text-3);
  font-size: 8px;
}

.global-warehouse-bar em {
  margin-left: auto;
  color: var(--primary);
  font-size: 9px;
  font-style: normal;
}

.workspace-page {
  min-height: 100%;
  padding: 14px;
  padding-bottom: 36px;
  background:
    radial-gradient(circle at 92% 0, color-mix(in srgb, var(--accent) 16%, transparent), transparent 25%),
    linear-gradient(180deg, var(--page-top), var(--bg) 48%, var(--page-end));
}

.workspace-hero {
  min-height: 110px;
  padding: 17px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 60%, var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.workspace-hero > span {
  width: 50px;
  height: 50px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, .15);
  font-size: 26px;
}

.workspace-hero small {
  color: rgba(255, 255, 255, .62);
  font-size: 8px;
  letter-spacing: 1px;
}

.workspace-hero h1 {
  margin: 4px 0;
  font-size: 23px;
}

.workspace-hero p {
  margin: 0;
  color: rgba(255, 255, 255, .74);
  font-size: 9px;
}

.workspace-section {
  margin-top: 13px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.workspace-section-head {
  display: flex;
  justify-content: space-between;
  padding: 1px 2px 8px;
}

.workspace-section-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 13px;
}

.workspace-section-head span {
  color: var(--text-3);
  font-size: 8px;
}

.workspace-list {
  display: flex;
  flex-direction: column;
}

.workspace-card {
  width: 100%;
  min-height: 63px;
  padding: 9px 2px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  cursor: pointer;
}

.workspace-list .workspace-card:first-child {
  border-top: 0;
}

.workspace-icon {
  width: 38px;
  height: 38px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 10%, var(--card));
  font-size: 19px;
}

.workspace-card > span:nth-child(2) {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.workspace-card b {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-card small {
  margin-top: 3px;
  color: var(--text-3);
  font-size: 8px;
}

.workspace-card em {
  color: var(--primary);
  font-size: 9px;
  font-style: normal;
}

.workspace-invite-input {
  display: flex;
  gap: 7px;
}

.workspace-invite-input input {
  min-width: 0;
  flex: 1;
  height: 37px;
  padding: 0 9px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  font-size: 10px;
}

.workspace-invite-input button {
  flex: none;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--button-bg);
  color: var(--button-text);
  font-size: 9px;
  cursor: pointer;
}

.workspace-tip {
  margin: 8px 2px 1px;
  color: var(--text-3);
  font-size: 8px;
  line-height: 1.5;
}
