/* =========================================================================
 * style.css — 仓储货物进出管理系统 · H5 移动端样式
 * ========================================================================= */
:root {
  --primary: #3b5bdb;
  --primary-d: #2f49b0;
  --primary-grad: linear-gradient(135deg, #4263eb 0%, #5f3dc4 100%);
  --in: #2f9e44;       /* 入库 绿 */
  --in-bg: #ebfbee;
  --out: #e8590c;      /* 出库 橙 */
  --out-bg: #fff4e6;
  --ok: #2f9e44;
  --low: #f08c00;
  --danger: #e03131;
  --bg: #f1f3f6;
  --card: #ffffff;
  --line: #eceef1;
  --t1: #1f2733;       /* 主文字 */
  --t2: #6b7785;       /* 次文字 */
  --t3: #9aa4b0;       /* 占位 */
  --radius: 14px;
  --shadow: 0 2px 12px rgba(33, 43, 66, 0.06);
  --shadow-lg: 0 8px 28px rgba(33, 43, 66, 0.16);
  --nav-h: 58px;
  --header-h: 56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--t1);
  background: #c9ced6;
  font-size: 14px;
  line-height: 1.5;
}

/* 手机外壳：桌面浏览器下居中显示为竖屏 */
.app {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

/* ------------------------------ 顶部栏 ------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #fff;
  background: var(--primary-grad);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .5px;
}
.header .h-action {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .16);
  padding: 5px 10px;
  border-radius: 20px;
  cursor: pointer;
}
.header .h-action:active { background: rgba(255, 255, 255, .28); }
.header .h-back {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex; align-items: center;
  font-size: 14px; font-weight: 500;
  cursor: pointer; opacity: .95;
}

/* ------------------------------ 视图容器 ------------------------------ */
.views { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px)); }
.view { display: none; padding: 14px 14px 24px; }
.view.active { display: block; animation: fade .22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 18px 2px 10px;
  font-size: 15px; font-weight: 600; color: var(--t1);
}
.section-title .more { font-size: 12px; font-weight: 500; color: var(--primary); cursor: pointer; }
.section-title .bar { display: flex; align-items: center; gap: 7px; }
.section-title .bar::before { content: ""; width: 4px; height: 14px; border-radius: 3px; background: var(--primary); }

/* ------------------------------ 通用卡片 ------------------------------ */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ------------------------------ 首页 · 概览大卡 ------------------------------ */
.overview {
  background: var(--primary-grad);
  border-radius: 18px;
  padding: 18px 18px 16px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.overview .ov-label { font-size: 12.5px; opacity: .9; }
.overview .ov-value { font-size: 30px; font-weight: 700; margin: 4px 0 2px; letter-spacing: .5px; }
.overview .ov-value small { font-size: 14px; font-weight: 500; opacity: .85; margin-left: 4px; }
.overview .ov-sub { font-size: 12px; opacity: .82; }
.overview .ov-split {
  display: flex; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.overview .ov-split > div { flex: 1; }
.overview .ov-split .s-num { font-size: 19px; font-weight: 700; }
.overview .ov-split .s-num.in  { color: #b2f2bb; }
.overview .ov-split .s-num.out { color: #ffd8a8; }
.overview .ov-split .s-lbl { font-size: 11.5px; opacity: .85; margin-top: 1px; }

/* 指标小卡（2列） */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.stat {
  background: var(--card); border-radius: var(--radius);
  padding: 13px 14px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 11px;
}
.stat .ic {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.stat .ic svg { width: 20px; height: 20px; }
.stat .s-num { font-size: 19px; font-weight: 700; color: var(--t1); line-height: 1.1; }
.stat .s-lbl { font-size: 12px; color: var(--t2); margin-top: 2px; }
.ic.blue   { background: #e7f5ff; color: #1c7ed6; }
.ic.green  { background: var(--in-bg); color: var(--in); }
.ic.orange { background: var(--out-bg); color: var(--out); }
.ic.red    { background: #fff0f0; color: var(--danger); }
.ic.violet { background: #f3f0ff; color: #6741d9; }

/* 快捷操作 */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.quick .q {
  background: var(--card); border-radius: var(--radius); padding: 14px 4px 11px;
  text-align: center; box-shadow: var(--shadow); cursor: pointer;
}
.quick .q:active { transform: scale(.96); }
.quick .q .qic {
  width: 42px; height: 42px; border-radius: 13px; margin: 0 auto 7px;
  display: flex; align-items: center; justify-content: center;
}
.quick .q .qic svg { width: 22px; height: 22px; }
.quick .q span { font-size: 12.5px; color: var(--t1); }

/* ------------------------------ 列表行（货品/流水通用） ------------------------------ */
.list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.row {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 14px; border-bottom: 1px solid var(--line); cursor: pointer;
}
.row:last-child { border-bottom: none; }
.row:active { background: #fafbfc; }
.row .avatar {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #fff;
}
.row .main { flex: 1; min-width: 0; }
.row .r-title {
  font-size: 14.5px; font-weight: 600; color: var(--t1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.row .r-sub { font-size: 12px; color: var(--t2); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; }
.row .r-sub .sku { color: var(--t3); }
.row .right { text-align: right; flex: none; }
.row .r-stock { font-size: 16px; font-weight: 700; }
.row .r-unit { font-size: 11px; color: var(--t2); font-weight: 500; }

/* 状态徽标 */
.badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 20px; line-height: 1.5;
}
.badge.ok  { color: var(--ok);  background: var(--in-bg); }
.badge.low { color: var(--low); background: #fff4e0; }
.badge.out { color: var(--danger); background: #fff0f0; }
.badge.in  { color: var(--in);  background: var(--in-bg); }
.badge.outflow { color: var(--out); background: var(--out-bg); }

/* 流水行的进出箭头 */
.tx-tag {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.tx-tag.in  { background: var(--in-bg);  color: var(--in); }
.tx-tag.out { background: var(--out-bg); color: var(--out); }
.tx-qty { font-size: 16px; font-weight: 700; }
.tx-qty.in  { color: var(--in); }
.tx-qty.out { color: var(--out); }

/* ------------------------------ 搜索 / 筛选 ------------------------------ */
.search {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 12px; padding: 9px 13px;
  box-shadow: var(--shadow); margin-bottom: 12px;
}
.search svg { width: 17px; height: 17px; color: var(--t3); flex: none; }
.search input { border: none; outline: none; flex: 1; font-size: 14px; background: transparent; color: var(--t1); }
.search input::placeholder { color: var(--t3); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 4px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; font-size: 13px; padding: 6px 14px; border-radius: 20px;
  background: #fff; color: var(--t2); cursor: pointer; border: 1px solid transparent;
  box-shadow: var(--shadow); white-space: nowrap;
}
.chip.active { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(59, 91, 219, .35); }

.list-count { font-size: 12px; color: var(--t2); margin: 2px 2px 9px; }

/* ------------------------------ 表单 ------------------------------ */
.form-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 14px; }
.field { padding: 13px 0; border-bottom: 1px solid var(--line); }
.field:last-child { border-bottom: none; }
.field > label { display: block; font-size: 12.5px; color: var(--t2); margin-bottom: 7px; }
.field > label .req { color: var(--danger); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; border: none; outline: none; font-size: 15px; color: var(--t1);
  background: transparent; font-family: inherit;
}
.field select { appearance: none; -webkit-appearance: none; background: transparent; }
.field textarea { resize: none; min-height: 40px; }
.field .with-arrow { position: relative; }
.field .with-arrow::after {
  content: ""; position: absolute; right: 2px; top: 7px;
  width: 8px; height: 8px; border-right: 1.6px solid var(--t3);
  border-bottom: 1.6px solid var(--t3); transform: rotate(45deg);
}

/* 数量步进器 */
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line);
  background: #f7f8fa; font-size: 20px; color: var(--primary); cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.stepper button:active { background: #eef0f4; }
.stepper input { text-align: center; font-size: 18px; font-weight: 700; flex: 1; }
.stepper .unit { font-size: 13px; color: var(--t2); flex: none; }

/* 选中货品的库存提示条 */
.stock-hint {
  display: flex; align-items: center; justify-content: space-between;
  background: #f7f8fa; border-radius: 10px; padding: 10px 12px;
  margin: 12px 0 2px; font-size: 12.5px; color: var(--t2);
}
.stock-hint b { color: var(--t1); font-size: 15px; }

/* 提交按钮 */
.submit-btn {
  width: 100%; margin-top: 16px; padding: 14px; border: none; border-radius: 13px;
  font-size: 16px; font-weight: 600; color: #fff; cursor: pointer; letter-spacing: 1px;
  box-shadow: var(--shadow-lg);
}
.submit-btn:active { opacity: .92; transform: translateY(1px); }
.submit-btn.in  { background: linear-gradient(135deg, #37b24d, #2f9e44); }
.submit-btn.out { background: linear-gradient(135deg, #f76707, #e8590c); }

.form-tip { font-size: 12px; color: var(--t3); text-align: center; margin-top: 12px; }

/* ------------------------------ 底部导航 ------------------------------ */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px); border-top: 1px solid var(--line); z-index: 40;
}
.tabbar .tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--t3); cursor: pointer; font-size: 11px;
}
.tabbar .tab svg { width: 23px; height: 23px; }
.tabbar .tab.active { color: var(--primary); }
.tabbar .tab.active span { font-weight: 600; }

/* ------------------------------ 弹层 / 详情 ------------------------------ */
.mask {
  position: fixed; inset: 0; background: rgba(20, 26, 38, .45);
  z-index: 50; display: none; align-items: flex-end; justify-content: center;
}
.mask.show { display: flex; animation: fade .2s ease; }
.sheet {
  width: 100%; max-width: 430px; background: #fff;
  border-radius: 20px 20px 0 0; padding: 6px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  max-height: 82vh; overflow-y: auto; animation: slideUp .26s cubic-bezier(.2, .8, .3, 1);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
.sheet .grip { width: 38px; height: 4px; border-radius: 4px; background: #e2e5ea; margin: 8px auto 14px; }
.sheet h3 { font-size: 17px; margin-bottom: 3px; }
.sheet .sub { font-size: 12.5px; color: var(--t2); margin-bottom: 16px; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; margin-bottom: 8px; }
.detail-grid .d-item { background: #f7f8fa; border-radius: 11px; padding: 11px 12px; }
.detail-grid .d-item.full { grid-column: 1 / -1; }
.detail-grid .d-lbl { font-size: 11.5px; color: var(--t2); }
.detail-grid .d-val { font-size: 15px; font-weight: 600; color: var(--t1); margin-top: 3px; }
.detail-grid .d-val.big { font-size: 20px; }

.sheet-actions { display: flex; gap: 10px; margin-top: 16px; }
.sheet-actions button {
  flex: 1; padding: 12px; border: none; border-radius: 12px; font-size: 15px;
  font-weight: 600; cursor: pointer;
}
.sheet-actions .b-in  { background: var(--in-bg);  color: var(--in); }
.sheet-actions .b-out { background: var(--out-bg); color: var(--out); }

/* 弹层内的迷你流水 */
.mini-tx { margin-top: 6px; }
.mini-tx .mt-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid var(--line); font-size: 13px;
}
.mini-tx .mt-row:last-child { border-bottom: none; }
.mini-tx .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.mini-tx .dot.in { background: var(--in); }
.mini-tx .dot.out { background: var(--out); }
.mini-tx .mt-time { color: var(--t3); font-size: 11.5px; }

/* ------------------------------ 空状态 ------------------------------ */
.empty { text-align: center; padding: 50px 20px; color: var(--t3); }
.empty svg { width: 56px; height: 56px; opacity: .5; margin-bottom: 12px; }
.empty p { font-size: 13.5px; }

/* ------------------------------ Toast ------------------------------ */
.toast {
  position: fixed; left: 50%; top: 38%; transform: translateX(-50%); z-index: 80;
  background: rgba(28, 33, 45, .92); color: #fff; padding: 12px 20px;
  border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease; max-width: 80%; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }
.toast.ok::before  { content: "✓ "; color: #69db7c; font-weight: 700; }
.toast.err::before { content: "✕ "; color: #ff8787; font-weight: 700; }

/* ------------------------------ 顶栏头像 ------------------------------ */
.h-avatar {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, .6);
}
.h-avatar .ha-dot {
  width: 26px; height: 26px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}

/* ------------------------------ 登录页 ------------------------------ */
.login-screen {
  position: absolute; inset: 0; z-index: 60; overflow-y: auto;
  background: linear-gradient(160deg, #4263eb 0%, #5f3dc4 52%, #3b2c8f 100%);
  display: flex; flex-direction: column; padding: 0 26px;
}
.login-screen.hidden { display: none; }
.login-brand { text-align: center; color: #fff; margin-top: 78px; margin-bottom: 30px; }
.login-brand .logo {
  width: 66px; height: 66px; border-radius: 19px; margin: 0 auto 16px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.login-brand .logo svg { width: 36px; height: 36px; color: #fff; }
.login-brand h1 { font-size: 23px; font-weight: 700; letter-spacing: 2px; }
.login-brand p { font-size: 13px; opacity: .8; margin-top: 7px; letter-spacing: 1px; }

.login-card {
  background: #fff; border-radius: 18px; padding: 22px 20px 24px;
  box-shadow: 0 16px 40px rgba(20, 20, 60, .24);
}
.login-card .l-field {
  display: flex; align-items: center; gap: 10px;
  border: 1.4px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 14px; transition: border-color .18s;
}
.login-card .l-field.focus { border-color: var(--primary); }
.login-card .l-field svg { width: 18px; height: 18px; color: var(--t3); flex: none; }
.login-card .l-field input {
  border: none; outline: none; flex: 1; font-size: 15px; background: transparent; color: var(--t1);
}
.login-card .l-eye { color: var(--t3); cursor: pointer; font-size: 12px; flex: none; user-select: none; }
.login-btn {
  width: 100%; margin-top: 6px; padding: 13px; border: none; border-radius: 12px;
  font-size: 16px; font-weight: 600; color: #fff; letter-spacing: 4px; cursor: pointer;
  background: var(--primary-grad); box-shadow: 0 8px 20px rgba(66, 99, 235, .4);
}
.login-btn:active { opacity: .92; transform: translateY(1px); }


/* ------------------------------ 个人中心弹层 ------------------------------ */
.profile-head { display: flex; align-items: center; gap: 14px; padding: 6px 0 18px; }
.profile-head .p-av {
  width: 56px; height: 56px; border-radius: 16px; color: #fff; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700;
}
.profile-head .p-name { font-size: 19px; font-weight: 700; }
.profile-head .p-meta { font-size: 12.5px; color: var(--t2); margin-top: 4px; }
.profile-head .p-role {
  display: inline-block; font-size: 11px; font-weight: 600; color: var(--primary);
  background: #eef1fd; padding: 2px 9px; border-radius: 20px; margin-top: 7px;
}
.profile-stat { display: flex; background: #f7f8fa; border-radius: 13px; padding: 14px 0; margin-bottom: 16px; }
.profile-stat > div { flex: 1; text-align: center; position: relative; }
.profile-stat > div + div::before {
  content: ""; position: absolute; left: 0; top: 18%; height: 64%; width: 1px; background: var(--line);
}
.profile-stat .ps-num { font-size: 20px; font-weight: 700; }
.profile-stat .ps-lbl { font-size: 11.5px; color: var(--t2); margin-top: 3px; }
.profile-menu { border-radius: 13px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 18px; }
.profile-menu .pm {
  display: flex; align-items: center; gap: 11px; padding: 14px 14px;
  border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14.5px; color: var(--t1);
}
.profile-menu .pm:last-child { border-bottom: none; }
.profile-menu .pm:active { background: #fafbfc; }
.profile-menu .pm svg { width: 19px; height: 19px; color: var(--t2); flex: none; }
.profile-menu .pm .pm-arrow { margin-left: auto; color: var(--t3); }
.logout-btn {
  width: 100%; padding: 13px; border: 1px solid #ffd7d7; border-radius: 12px;
  font-size: 15px; font-weight: 600; color: var(--danger); background: #fff5f5; cursor: pointer;
}
.logout-btn:active { background: #ffe9e9; }

/* 登录页 · 站点下拉 */
.login-card .l-field select {
  border: none; outline: none; flex: 1; font-size: 15px; color: var(--t1);
  background: transparent; font-family: inherit;
  appearance: none; -webkit-appearance: none;
}
.login-card .l-caret { color: var(--t3); font-size: 12px; flex: none; pointer-events: none; }

/* 首页 · 当前站点条 */
.site-bar {
  display: flex; align-items: center; gap: 11px;
  background: #fff; border-radius: 14px; padding: 11px 14px;
  box-shadow: var(--shadow); margin-bottom: 10px; cursor: pointer;
}
.site-bar:active { background: #fafbfc; }
.site-bar .sb-ic {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: #eef1fd; color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.site-bar .sb-ic svg { width: 18px; height: 18px; }
.site-bar .sb-main { flex: 1; min-width: 0; }
.site-bar .sb-name { font-size: 14.5px; font-weight: 600; color: var(--t1); }
.site-bar .sb-city { font-size: 11.5px; color: var(--t2); margin-top: 1px; }
.site-bar .sb-switch { font-size: 12.5px; color: var(--primary); font-weight: 500; flex: none; }

/* 站点切换弹层 · 列表 */
.site-list { margin-top: 6px; }
.site-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 12px;
  border: 1.4px solid var(--line); border-radius: 12px; margin-bottom: 10px; cursor: pointer;
}
.site-item:active { background: #fafbfc; }
.site-item.on { border-color: var(--primary); background: #f5f7ff; }
.site-item .si-ic {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: #eef1fd; color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.site-item .si-ic svg { width: 19px; height: 19px; }
.site-item .si-main { flex: 1; }
.site-item .si-name { font-size: 15px; font-weight: 600; color: var(--t1); }
.site-item .si-city { font-size: 12px; color: var(--t2); margin-top: 2px; }
.site-item .si-check { color: var(--primary); font-weight: 700; font-size: 18px; flex: none; }

/* ------------------------------ 骨架屏 / 加载 ------------------------------ */
.skeleton { position: relative; overflow: hidden; background: #e7eaf0; }
.skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .62), transparent);
  animation: shimmer 1.25s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

.sk-row { display: flex; align-items: center; gap: 11px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.sk-row:last-child { border-bottom: none; }
.sk-av { width: 42px; height: 42px; border-radius: 11px; flex: none; }
.sk-main { flex: 1; }
.sk-l1 { height: 13px; width: 60%; border-radius: 5px; margin-bottom: 9px; }
.sk-l2 { height: 11px; width: 38%; border-radius: 5px; }
.sk-r { width: 46px; height: 22px; border-radius: 6px; flex: none; }
.sk-sitebar { height: 54px; border-radius: 14px; margin-bottom: 10px; }
.sk-big { height: 150px; border-radius: 18px; }
.sk-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.sk-stat { height: 64px; border-radius: 14px; }
.sk-sec { height: 15px; width: 32%; border-radius: 5px; margin: 20px 2px 12px; }
.sk-search { height: 38px; border-radius: 12px; margin-bottom: 12px; }
.sk-chips { display: flex; gap: 8px; margin-bottom: 12px; }
.sk-chip { width: 60px; height: 32px; border-radius: 20px; flex: none; }
.sk-field { height: 36px; border-radius: 7px; margin: 15px 0; }
.sk-btn { height: 48px; border-radius: 13px; margin-top: 16px; }

/* 按钮加载转圈 */
.spinner {
  display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.login-btn.loading, .submit-btn.loading { opacity: .9; cursor: default; }

/* 库存进度条 */
.stock-bar { height: 5px; border-radius: 4px; background: #eef0f4; overflow: hidden; margin-top: 6px; }
.stock-bar i { display: block; height: 100%; border-radius: 4px; }
.stock-bar i.ok  { background: var(--ok); }
.stock-bar i.low { background: var(--low); }
.stock-bar i.out { background: var(--danger); }
