* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
:root{
  --primary:#1c4e80; --primary-dark:#143a60; --primary-light:#eaf1f8; --primary-soft:#f3f7fb;
  --bg:#f4f6f9; --card:#ffffff;
  --text:#1f2937; --muted:#6b7280; --line:#e3e8ef; --danger:#dc2626; --warn:#c2701a;
  --ok:#0f8a5f; --radius:12px;
  /* 两条通道主题色：领用=蓝，外借=琥珀橙 */
  --borrow:#d97706; --borrow-dark:#b45309; --borrow-light:#fff2e0; --borrow-soft:#fffaf3;
  --apply-grad:linear-gradient(135deg,#2b65a5 0%,#1c4e80 100%);
  --borrow-grad:linear-gradient(135deg,#f0a13f 0%,#d97706 100%);
}
body{ font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  background:var(--bg); color:var(--text); font-size:15px; line-height:1.5; padding-bottom:130px; }
.topbar{ background:var(--card); padding:14px 16px; position:sticky; top:0; z-index:20;
  box-shadow:0 2px 12px rgba(16,42,67,.06); text-align:center; }
.brand{ font-size:16px; font-weight:600; color:var(--text); }
/* App 式底部标签栏 */
.tabbar{ position:fixed; bottom:0; left:0; right:0; z-index:30; background:var(--card);
  display:flex; border-top:1px solid var(--line); box-shadow:0 -2px 12px rgba(16,42,67,.06);
  padding-bottom:env(safe-area-inset-bottom); max-width:760px; margin:0 auto; }
.tabbar a{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:3px; padding:7px 0 6px; color:var(--muted); text-decoration:none; font-size:10.5px; white-space:nowrap; }
.tabbar a .ti{ font-size:20px; line-height:1; }
.tabbar a{ position:relative; }
.tabbar a.active{ color:var(--primary); font-weight:600; }
.tabbar a.active::before{ content:''; position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:30px; height:3px; border-radius:0 0 4px 4px; background:var(--apply-grad); }
.tabbar a.active .ti{ background:var(--primary-light); border-radius:12px; padding:4px 12px; }
main{ padding:16px; max-width:760px; margin:0 auto; }
.card{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding:18px; margin-bottom:14px; box-shadow:0 1px 3px rgba(16,42,67,.05); }
.hint{ font-size:13px; color:var(--muted); }

/* 分类胶囊 */
.cats{ display:flex; gap:10px; overflow-x:auto; padding:2px 0 6px; margin-bottom:6px; }
.cat{ flex:0 0 auto; padding:9px 16px; border-radius:999px; background:var(--card);
  border:1px solid var(--line); font-size:14px; font-weight:500; cursor:pointer; color:var(--text); }
.cat.active{ background:var(--apply-grad); color:#fff; border-color:transparent;
  box-shadow:0 3px 10px rgba(28,78,128,.18); }

/* 图标墙 */
.grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.item{ position:relative; background:var(--card); border:2px solid transparent; border-radius:var(--radius);
  padding:14px 8px; text-align:center; cursor:pointer; min-height:120px; }
.item.selected{ border-color:var(--primary); background:var(--primary-soft); }
.item .icon{ width:56px; height:56px; margin:0 auto 8px; border-radius:14px; display:flex;
  align-items:center; justify-content:center; font-size:30px; background:var(--primary-light); }
.item .name{ font-size:13px; font-weight:600; line-height:1.3; min-height:20px;
  display:flex; align-items:center; justify-content:center; }
.item .spec{ font-size:11px; color:var(--muted); line-height:1.3; min-height:28px;
  display:flex; align-items:center; justify-content:center; margin-top:2px; }
.item .stock{ font-size:12px; font-weight:500; color:var(--ok); margin-top:2px; }
.item .stock.low{ color:var(--warn); font-weight:600; }
.item .stock.out{ color:var(--danger); font-weight:600; }
.item.out{ opacity:.55; background:#f7f8fa; }
.item.big .icon{ font-size:30px; }
.item .badge{ position:absolute; top:6px; right:6px; background:var(--primary); color:#fff;
  border-radius:999px; min-width:20px; height:20px; line-height:20px; font-size:12px; padding:0 5px; }

/* 底部申领栏（旧版，保留兼容） */
.bottombar{ position:fixed; bottom:0; left:0; right:0; background:var(--card); z-index:30;
  padding:12px 16px; box-shadow:0 -3px 14px rgba(16,42,67,.08); display:none; }
.bottombar.show{ display:flex; align-items:center; gap:12px; }
.bottombar .sum{ flex:1; font-size:14px; }
.bottombar .sum b{ color:var(--primary); font-size:17px; }

/* 页面标题 */
.page-title{ font-size:20px; font-weight:600; margin-bottom:2px; }
.back-link{ display:inline-flex; align-items:center; gap:4px; background:var(--primary-light);
  border:1px solid var(--line); color:var(--primary); font-size:14px; font-weight:500;
  padding:7px 12px; border-radius:9px; margin-bottom:12px; cursor:pointer; }
.back-link:active{ background:var(--primary-soft); }

/* 物品搜索框 */
.search-box{ display:flex; align-items:center; gap:8px; background:var(--card);
  border:1px solid var(--line); border-radius:12px; padding:0 12px; margin-bottom:10px; }
.search-box:focus-within{ border-color:var(--primary); box-shadow:0 0 0 3px var(--primary-soft); }
.search-ico{ font-size:16px; flex:0 0 auto; }
.search-box input{ flex:1; min-width:0; border:none; outline:none; background:transparent;
  font-size:15px; padding:12px 0; color:var(--text); }
.search-box input::placeholder{ color:var(--muted); }
.search-box input::-webkit-search-cancel-button{ display:none; }
.search-clear{ flex:0 0 auto; border:none; background:var(--primary-soft); color:var(--muted);
  width:24px; height:24px; border-radius:50%; font-size:12px; cursor:pointer; line-height:1; }
.search-tip{ font-size:13px; color:var(--primary); margin:-2px 0 12px; font-weight:500; }
.search-empty{ grid-column:1/-1; text-align:center; padding:24px 0; }

/* 单位标签：和数量分开，避免「11」+「200ml」误读成「11200ml」 */
.unit-tag{ display:inline-block; margin-left:5px; padding:1px 7px; border-radius:6px;
  background:var(--primary-light); color:var(--primary); font-size:11px; font-weight:600;
  line-height:1.5; white-space:nowrap; vertical-align:middle; }
.unit-tag:empty{ display:none; }

/* 申领完成：拍照强制提醒 */
.must-tip{ background:#fff7ed; border:1px solid #fbd9a8; border-left:4px solid var(--warn);
  border-radius:11px; padding:12px 14px; margin-top:14px; text-align:left; }
.must-tip-title{ font-size:14px; font-weight:700; color:var(--warn); }
.must-tip-body{ font-size:13px; color:var(--text); line-height:1.6; margin-top:4px; }
.must-tip-body b{ color:var(--danger); font-weight:700; }

/* 一级：分类大图标卡片 */
.cat-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.cat-card{ border-radius:18px; padding:24px 14px; text-align:center; cursor:pointer;
  border:2px solid transparent; transition:transform .1s; }
.cat-card:active{ transform:scale(.96); border-color:var(--primary); }
.cat-card-icon{ font-size:52px; line-height:1.2; }
.cat-card-name{ font-size:17px; font-weight:600; margin-top:10px; }
.cat-card-count{ font-size:12px; color:var(--muted); margin-top:4px; }

/* 物品页顶部：返回靠左 + 视图切换靠右 */
.item-topbar{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; }
.item-topbar .back-link{ margin-bottom:0; flex:0 0 auto; }
.item-topbar .view-switch{ margin-bottom:0; flex:0 0 auto; }

/* 视图切换（格子/列表） */
.view-switch{ display:inline-flex; gap:4px; background:var(--primary-soft); border:1px solid var(--line);
  border-radius:10px; padding:3px; margin-bottom:14px; }
.vs-btn{ border:none; background:none; color:var(--muted); font-size:13px; font-weight:500;
  padding:7px 16px; border-radius:8px; cursor:pointer; }
.vs-btn.on{ background:var(--primary); color:#fff; font-weight:600; }

/* 二级：物品格子排列（默认，一排3个） */
.item-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
@media(max-width:360px){ .item-grid{ gap:7px; } }
.grid-item{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding:14px 8px; text-align:center; box-shadow:0 1px 3px rgba(16,42,67,.05); }
.grid-item.out{ opacity:.55; background:#f7f8fa; }
.grid-icon{ width:52px; height:52px; margin:0 auto 8px; border-radius:12px; display:flex;
  align-items:center; justify-content:center; font-size:28px; background:var(--primary-light); }
.grid-name{ font-size:13px; font-weight:600; line-height:1.35; min-height:18px;
  display:flex; align-items:center; justify-content:center; flex-wrap:wrap; }
.grid-name .spec-badge{ margin:2px 0 0; }
.grid-spec{ font-size:11px; color:var(--muted); line-height:1.3; min-height:28px;
  display:flex; align-items:center; justify-content:center; margin-top:2px;
  overflow:hidden; text-overflow:ellipsis; }
.grid-stock{ font-size:12px; font-weight:500; color:var(--ok); margin-top:3px; }
.grid-stock.low{ color:var(--warn); font-weight:600; }
.grid-stock.out{ color:var(--danger); font-weight:600; }
.grid-action{ margin-top:10px; display:flex; justify-content:center; }
.grid-action .add-btn{ width:34px; height:34px; font-size:21px; }
.grid-action .add-ctrl{ gap:7px; }
.grid-action .add-ctrl button{ width:34px; height:34px; font-size:19px; }
@media(max-width:400px){
  .grid-item{ padding:12px 5px; }
  .grid-icon{ width:44px; height:44px; font-size:24px; border-radius:10px; }
  .grid-name{ font-size:12px; }
  .grid-spec{ font-size:10px; }
  .grid-stock{ font-size:11px; }
  .grid-action .add-btn{ width:30px; height:30px; font-size:18px; }
  .grid-action .add-ctrl{ gap:4px; }
  .grid-action .add-ctrl button{ width:30px; height:30px; font-size:17px; }
  .grid-action .add-ctrl .qty{ font-size:14px; }
}
.grid-action .out-tag{ margin:auto; }

/* 二级：物品购物列表 */
.shop-list{ display:flex; flex-direction:column; gap:10px; }
.shop-item{ display:flex; align-items:center; gap:12px; background:var(--card);
  border-radius:14px; padding:12px; }
.shop-item.out{ opacity:.6; }
.shop-icon{ width:52px; height:52px; flex:0 0 auto; border-radius:12px; background:var(--primary-light);
  display:flex; align-items:center; justify-content:center; font-size:30px; }
.shop-info{ flex:1; min-width:0; }
.shop-name{ font-size:15px; font-weight:600; line-height:1.3; }
.shop-spec{ font-size:12px; color:var(--muted); margin-top:2px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.shop-stock{ font-size:12px; color:var(--ok); margin-top:3px; }
.shop-stock.low{ color:var(--warn); font-weight:600; }
.shop-stock.out{ color:var(--danger); font-weight:600; }
.shop-action{ flex:0 0 auto; }
.add-btn{ width:36px; height:36px; display:flex; align-items:center; justify-content:center;
  border:none; background:var(--primary); color:#fff; font-size:22px; font-weight:500;
  line-height:1; padding:0; border-radius:50%; cursor:pointer; }
.add-btn:disabled{ background:#d8d6e2; cursor:not-allowed; }
.add-ctrl{ display:flex; align-items:center; gap:9px; }
.add-ctrl button{ width:36px; height:36px; border-radius:50%; border:1px solid var(--line);
  background:#fff; font-size:21px; line-height:1; cursor:pointer; }
.add-ctrl .minus{ color:var(--muted); }
.add-ctrl .plus{ background:var(--primary); color:#fff; border-color:var(--primary); }
.add-ctrl .qty{ min-width:22px; text-align:center; font-size:17px; font-weight:600; }
.out-tag{ font-size:13px; color:var(--danger); font-weight:600; }
.spec-badge{ display:inline-block; font-size:11px; font-weight:600; line-height:1.5;
  padding:1px 6px; margin-left:4px; border-radius:5px; vertical-align:middle;
  color:var(--primary); background:var(--primary-light); white-space:nowrap; }

/* 申请篮底部栏 */
.cartbar{ position:fixed; bottom:62px; left:0; right:0; background:var(--card); z-index:31;
  padding:12px 16px; box-shadow:0 -3px 14px rgba(16,42,67,.08); display:none;
  align-items:center; gap:12px; max-width:760px; margin:0 auto; }
.cartbar.show{ display:flex; }
.cartbar.hide{ display:none !important; }
.cart-info{ flex:1; display:flex; align-items:center; gap:8px; background:none; border:none;
  padding:0; cursor:pointer; font-size:15px; color:var(--text); }
.cart-icon{ font-size:26px; }
.cart-text b{ color:var(--primary); font-size:19px; }
.cart-chevron{ color:var(--muted); font-size:14px; margin-left:2px; }

/* 结算清单行 */
.checkout-row{ display:flex; justify-content:space-between; align-items:center;
  padding:11px 0; border-bottom:1px solid var(--line); font-size:14px; }
.checkout-row:last-child{ border-bottom:none; }
.checkout-row b{ color:var(--primary); }

/* 申请篮内移除按钮 */
.remove-btn{ border:none; background:none; color:var(--danger); font-size:12px;
  cursor:pointer; padding:6px 0 6px 8px; white-space:nowrap; }

/* 逐物品拍照 */
.photo-item-list{ display:flex; flex-direction:column; gap:12px; }
.photo-item{ background:#f6f8fb; border:1px solid var(--line); border-radius:12px; padding:12px; }
.photo-item-head{ display:flex; justify-content:space-between; align-items:center; gap:10px; }
.photo-item-head .n{ font-size:14px; font-weight:600; }
.photo-item-head .u{ font-size:12px; color:var(--muted); margin-top:2px; }
.shot-tag{ font-size:12px; color:var(--muted); background:#eef1f5; padding:3px 10px; border-radius:999px; white-space:nowrap; }
.shot-tag.ok{ color:var(--ok); background:#e4f4ec; font-weight:600; }
.photo-item-body{ margin-top:10px; }
.photo-item-body .photo-thumb{ width:88px; height:88px; }
.shot-actions{ display:flex; gap:8px; margin-top:8px; }
.shot-btn{ flex:1; border:1px solid var(--primary); background:var(--primary); color:#fff;
  border-radius:10px; padding:10px 8px; font-size:13px; font-weight:600; cursor:pointer; }
.shot-btn.alt{ background:#fff; color:var(--primary); }

/* 公示墙逐样照片条 */
.photo-strip{ display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.photo-strip .photo-thumb{ width:56px; height:56px; margin-top:0; }
.btn{ border:none; border-radius:12px; padding:13px 22px; font-size:15px; font-weight:600;
  cursor:pointer; background:var(--apply-grad); color:#fff;
  box-shadow:0 4px 12px rgba(28,78,128,.20);
  transition:transform .12s ease, box-shadow .12s ease; }
.btn:active{ background:var(--primary-dark); transform:translateY(1px);
  box-shadow:0 2px 6px rgba(28,78,128,.18); }
.btn.block{ width:100%; }
.btn.ghost{ background:var(--primary-light); color:var(--primary); box-shadow:none; }
.btn.ghost:active{ background:var(--primary-light); }
.btn.danger{ background:#fdecec; color:var(--danger); box-shadow:none; }
.btn.sm{ padding:8px 12px; font-size:13px; border-radius:9px; }
/* 外借通道专用：琥珀橙，与领用的蓝一眼区分 */
.btn.borrow{ background:var(--borrow-grad); box-shadow:0 4px 12px rgba(217,119,6,.24); }
.btn.borrow:active{ background:var(--borrow-dark); box-shadow:0 2px 6px rgba(217,119,6,.2); }
.btn.ghost.borrow{ background:var(--borrow-light); color:var(--borrow-dark); box-shadow:none; }

/* 表单 */
.field{ margin-bottom:14px; }
.field label{ display:block; font-size:13px; color:var(--muted); margin-bottom:6px; }
.field input{ width:100%; padding:13px 14px; border:1px solid var(--line); border-radius:11px;
  font-size:16px; background:#fff; color:var(--text); }
.field input:focus{ outline:none; border-color:var(--primary); }
.field select{ width:100%; padding:13px 14px; border:1px solid var(--line); border-radius:11px;
  font-size:16px; background:#fff; color:var(--text); }
.field select:focus{ outline:none; border-color:var(--primary); }
.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{ padding:8px 14px; border-radius:999px; background:var(--primary-light); color:var(--primary);
  font-size:13px; cursor:pointer; font-weight:500; }

/* 数量步进器 */
.qty-row{ display:flex; align-items:center; justify-content:space-between; padding:12px 0;
  border-bottom:1px solid var(--line); }
.qty-row:last-child{ border-bottom:none; }
.qty-row .info{ flex:1; }
.qty-row .info .n{ font-weight:500; }
.qty-row .info .u{ font-size:12px; color:var(--muted); }
.stepper{ display:flex; align-items:center; gap:14px; }
.stepper button{ width:40px; height:40px; border-radius:50%; border:1px solid var(--line);
  background:#fff; font-size:22px; color:var(--primary); cursor:pointer; line-height:1; }
.stepper .v{ min-width:30px; text-align:center; font-size:18px; font-weight:600; }

/* 列表 */
.list-row{ padding:14px 0; border-bottom:1px solid var(--line); }
.list-row:last-child{ border-bottom:none; }
.row-head{ display:flex; justify-content:space-between; align-items:center; gap:10px; }
.row-title{ font-weight:600; font-size:15px; }
.meta{ font-size:12px; color:var(--muted); margin-top:4px; }
.tag{ font-size:12px; padding:3px 10px; border-radius:999px; white-space:nowrap; }
.tag.pending{ background:#fdf1e3; color:var(--warn); }
.tag.done{ background:#e4f4ec; color:var(--ok); }
.items-line{ font-size:13px; color:var(--text); margin-top:8px; }
.photo-thumb{ width:64px; height:64px; object-fit:cover; border-radius:10px; margin-top:8px; border:1px solid var(--line); }

/* 统计卡 */
.stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.stat{ background:var(--primary-soft); border:1px solid var(--line); border-radius:12px; padding:14px; }
.stat .k{ font-size:12px; color:var(--muted); }
.stat .v{ font-size:22px; font-weight:600; margin-top:4px; }
.bar-row{ display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.bar-row .label{ width:100px; font-size:13px; flex:0 0 auto; }
.bar-wrap{ flex:1; background:var(--primary-light); border-radius:999px; height:14px; overflow:hidden; }
.bar{ height:100%; background:var(--primary); border-radius:999px; }
.bar-row .num{ width:44px; text-align:right; font-size:13px; color:var(--muted); }

/* 表格 */
table{ width:100%; border-collapse:collapse; font-size:13px; }
th,td{ text-align:left; padding:10px 8px; border-bottom:1px solid var(--line); }
th{ color:var(--muted); font-weight:500; font-size:12px; }
.tbl-wrap{ overflow-x:auto; }
.low-stock{ color:var(--danger); font-weight:600; }

/* 进度步骤 */
.steps{ display:flex; gap:6px; margin-bottom:16px; }
.step{ flex:1; text-align:center; font-size:12px; color:var(--muted); padding:8px 4px;
  background:var(--card); border-radius:10px; }
.step.on{ background:var(--apply-grad); color:#fff; font-weight:600; }

/* 弹层 */
.overlay{ position:fixed; inset:0; background:rgba(15,30,50,.5); z-index:50; display:none;
  align-items:flex-end; justify-content:center; }
.overlay.show{ display:flex; }
.sheet{ background:var(--card); width:100%; max-width:760px; border-radius:20px 20px 0 0;
  padding:22px 18px 28px; max-height:88vh; overflow-y:auto; }
.sheet h2{ font-size:18px; margin-bottom:6px; }
.upload-box{ border:2px dashed var(--line); border-radius:14px; padding:28px 16px; text-align:center;
  cursor:pointer; background:#f6f8fb; }
.upload-box .cam{ font-size:36px; }
.upload-box p{ margin-top:6px; color:var(--muted); font-size:13px; }
.preview{ width:100%; border-radius:12px; margin-top:12px; display:none; }

/* 首页 Hero 与入口 */
.hero{ background:linear-gradient(135deg,#143a60,#1c4e80 60%,#2a68a3); color:#fff; border-radius:16px;
  padding:24px 20px; margin-bottom:14px; }
.hero-title{ font-size:24px; font-weight:600; }
.hero-sub{ font-size:13px; opacity:.85; margin-top:4px; }
.hero-stats{ display:flex; gap:32px; margin-top:18px; }
.hero-stats div{ display:flex; flex-direction:column; }
.hero-stats b{ font-size:26px; font-weight:600; line-height:1.2; }
.hero-stats span{ font-size:12px; opacity:.85; }
.entry-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:14px; }
@media(max-width:480px){ .entry-grid{ grid-template-columns:repeat(3,1fr); gap:8px; } }
.entry{ background:var(--card); border-radius:var(--radius); padding:16px 10px; text-decoration:none;
  color:var(--text); border:1px solid var(--line); text-align:center; }
.entry.primary{ background:var(--primary); border-color:var(--primary); color:#fff; }
.entry-icon{ font-size:28px; }
.entry-label{ font-size:14px; font-weight:600; margin-top:6px; white-space:nowrap; }
.entry-desc{ font-size:11px; opacity:.7; margin-top:2px; white-space:nowrap; }
.section-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.person{ display:flex; align-items:center; gap:10px; }
.avatar{ width:38px; height:38px; border-radius:50%; background:var(--primary-light); color:var(--primary);
  display:flex; align-items:center; justify-content:center; font-weight:600; font-size:15px;
  flex:0 0 auto; position:relative; overflow:hidden; }
/* 首页公示：有企微头像就盖在姓氏圆圈上，加载失败回退姓氏 */
.avatar img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  border-radius:50%; display:block; }
.avatar.no-img img{ display:none; }
.tag.cancelled{ background:#eef1f5; color:var(--muted); }
.tag.reviewing{ background:#fdf1e3; color:var(--warn); font-variant-numeric:tabular-nums; }
/* 提交后 10 分钟系统审核倒计时 */
.review-box{ margin:6px auto 0; padding:16px 12px; border-radius:12px;
  background:var(--primary-soft); border:1px solid var(--line); }
.review-box.passed{ background:#e4f4ec; border-color:#bfe6d3; }
.review-num{ font-size:34px; font-weight:700; letter-spacing:2px; color:var(--primary);
  font-variant-numeric:tabular-nums; }
.review-box.passed .review-num{ font-size:22px; letter-spacing:0; color:var(--ok); }
.review-hint{ font-size:12px; color:var(--muted); margin-top:4px; }
.btn:disabled{ opacity:.55; cursor:not-allowed; }
.row-actions{ display:flex; gap:8px; margin-top:10px; }

.toast{ position:fixed; left:50%; bottom:100px; transform:translateX(-50%) translateY(20px);
  background:#1f2937; color:#fff; padding:12px 20px; border-radius:12px; font-size:14px;
  z-index:99; opacity:0; pointer-events:none; transition:.25s; max-width:88%; text-align:center; }
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }
.hidden{ display:none !important; }

/* 领物确认：自动识别的身份条 */
.who-bar{ display:flex; align-items:center; gap:9px; }
.who-ava{ width:30px; height:30px; border-radius:50%; object-fit:cover; flex:0 0 auto; background:var(--primary-light); }
.who-ava-emoji{ font-size:15px; flex:0 0 auto; }
.who-bar>span{ font-size:13px; line-height:1.4; }
/* 头像：全局锁死尺寸，避免企微原图（640px）撑满页面 */
.who-avatar-img{ width:42px; height:42px; border-radius:50%; object-fit:cover;
  flex:0 0 auto; display:block; max-width:42px; max-height:42px; }
.who-avatar img{ width:100%; height:100%; border-radius:50%; object-fit:cover; display:block; }
.who-avatar{ width:42px; height:42px; border-radius:50%; background:var(--primary-light); color:var(--primary);
  display:flex; align-items:center; justify-content:center; font-weight:600; font-size:16px;
  flex:0 0 auto; overflow:hidden; }
.who-info{ flex:1; min-width:0; }
.who-name{ font-size:15px; font-weight:600; }
.who-sub{ font-size:12px; color:var(--muted); margin-top:2px; }
.who-switch{ border:1px solid var(--line); background:#fff; color:var(--muted); border-radius:8px;
  font-size:12px; padding:7px 11px; cursor:pointer; flex:0 0 auto; }

/* 领物确认：拍照进度提示（拍齐自动完成，无需确认按钮） */
.photo-progress{ margin-top:14px; padding:11px 12px; border-radius:10px; background:var(--primary-soft);
  color:var(--primary); font-size:13px; text-align:center; font-weight:500; }

/* 我的申请：每样物品的拍照留痕（带物品名标签） */
.photo-cell{ display:flex; flex-direction:column; align-items:center; gap:4px; }
.photo-cell .photo-thumb{ margin-top:0; }
.photo-label{ font-size:11px; color:var(--muted); max-width:64px; overflow:hidden;
  text-overflow:ellipsis; white-space:nowrap; text-align:center; }

/* 首页：申领 TOP10（物品排行 + 领取人头像队列） */
.top-item{ padding:12px 0; border-bottom:1px solid var(--line); }
.top-item:last-child{ border-bottom:none; }
.top-item-head{ display:flex; align-items:center; gap:9px; }
.rank-medal{ font-size:20px; line-height:1; flex:0 0 auto; width:26px; text-align:center; }
.rank-medal em{ font-style:normal; font-size:14px; font-weight:700; color:var(--muted); }
.top-item-name{ flex:1; min-width:0; font-size:15px; font-weight:600;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.top-item-total{ font-size:13px; font-weight:600; color:var(--primary); white-space:nowrap; }
/* 领取人：左大圆头像 + 右上姓名 + 右下数量，无外框自然排列 */
.receiver-list{ margin-top:10px; display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; }
.receiver-chip{ display:flex; align-items:center; gap:7px; min-width:0; }
.receiver-chip .avatar{ width:38px; height:38px; font-size:15px; flex:0 0 auto; }
.receiver-info{ display:flex; flex-direction:column; min-width:0; line-height:1.25; }
.receiver-chip-name{ max-width:82px; font-size:12px; font-weight:600; color:var(--text);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.receiver-chip-qty{ font-size:11px; font-weight:600; color:var(--primary); white-space:nowrap; }
.receiver-empty{ width:100%; padding:4px 0; }
@media(max-width:350px){ .receiver-chip .avatar{ width:34px; height:34px; font-size:14px; }
  .receiver-chip-name{ max-width:66px; } }

/* 申领公示台：自动滚动 */
.scroll-viewport{ height:300px; overflow:hidden; position:relative;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 16px,#000 calc(100% - 16px),transparent 100%);
  mask-image:linear-gradient(to bottom,transparent 0,#000 16px,#000 calc(100% - 16px),transparent 100%); }
.scroll-track{ will-change:transform; }
.done-time{ font-size:16px; font-weight:700; color:var(--primary); margin-top:3px; letter-spacing:.2px; }
@media(max-width:480px){ .scroll-viewport{ height:280px; } .done-time{ font-size:15px; } }

/* 更多/收起 折叠按钮 */
.more-toggle{ display:inline-flex; align-items:center; gap:5px; margin-top:8px; padding:5px 12px;
  border:1px solid var(--line); background:var(--primary-soft); color:var(--primary);
  border-radius:999px; font-size:12px; font-weight:600; cursor:pointer; }
.more-toggle:hover{ border-color:var(--primary); background:var(--primary-light); }
.more-toggle .arrow{ font-size:11px; line-height:1; }
.done-detail{ animation:fadeIn .18s ease; }

/* 公示台详情弹窗 */
.sheet.detail-sheet{ border-radius:18px; padding:20px 18px 26px; }
.detail-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.detail-close{ border:none; background:var(--primary-soft); color:var(--muted); width:30px; height:30px;
  border-radius:50%; font-size:14px; cursor:pointer; }
.detail-person{ display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.detail-person .avatar{ width:44px; height:44px; font-size:18px; flex:0 0 auto; }
.detail-person .tag{ margin-left:auto; }
.detail-name{ font-size:16px; font-weight:600; }
.detail-time{ font-size:13px; color:var(--muted); margin-top:2px; }
.detail-sub{ font-size:13px; font-weight:600; color:var(--primary); margin:14px 0 8px; }
.detail-item{ display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:10px 12px; background:var(--primary-soft); border-radius:9px; margin-bottom:6px; }
.detail-item-name{ font-size:14px; color:var(--text); }
.detail-item b{ font-size:15px; color:var(--primary); font-weight:700; white-space:nowrap; }
.detail-order{ text-align:center; font-size:12px; color:var(--muted); margin-top:16px; }
.top-more{ width:100%; justify-content:center; margin-top:10px; }
@keyframes fadeIn{ from{ opacity:0; transform:translateY(-3px); } to{ opacity:1; transform:translateY(0); } }

/* 申领用途：图标单选 */
.purpose-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.purpose-btn{ border:2px solid var(--line); background:#fff; border-radius:13px; padding:13px 8px;
  font-size:14px; font-weight:600; color:var(--text); cursor:pointer;
  display:flex; flex-direction:column; align-items:center; gap:6px; }
.purpose-btn:active{ transform:scale(.97); }
.purpose-btn.on{ border-color:var(--primary); background:var(--primary-soft); color:var(--primary); }
.purpose-icon{ font-size:28px; line-height:1.1; }
@media(min-width:560px){ .purpose-grid{ grid-template-columns:repeat(4,1fr); } }

/* ===== 工具外借 ===== */
.borrow-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.borrow-tool{ background:var(--card); border:1px solid var(--line); border-radius:12px;
  padding:12px 8px; text-align:center; display:flex; flex-direction:column; align-items:center; }
.borrow-tool.out{ opacity:.6; }
.bt-icon{ width:48px; height:48px; border-radius:14px; background:var(--primary-soft,#eaf1f8);
  display:flex; align-items:center; justify-content:center; font-size:26px; margin-bottom:8px; }
.bt-name{ font-size:13px; font-weight:600; line-height:1.3; min-height:34px; }
.bt-stock{ font-size:11px; color:var(--muted); margin:4px 0; }
.bt-holders{ width:100%; margin:6px 0; }
.holder-chip{ font-size:11px; color:var(--primary); background:var(--primary-soft,#eaf1f8);
  border-radius:8px; padding:3px 6px; margin-top:3px; line-height:1.3; }
.bt-action{ margin-top:auto; padding-top:8px; }
.bt-action .add-btn{ margin:0 auto; }
.bt-action .add-ctrl{ justify-content:center; gap:5px; }
.bt-action .add-ctrl button{ width:30px; height:30px; font-size:17px; }
.bt-action .add-ctrl .qty{ font-size:14px; }
.borrow-cart{ min-height:20px; }
.cart-row{ display:flex; justify-content:space-between; align-items:center; gap:10px;
  padding:8px 0; border-bottom:1px solid var(--line); font-size:14px; }
.cart-row-name{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cart-del{ border:none; background:none; color:var(--muted); font-size:12px; padding:4px 2px; cursor:pointer; }
.borrow-form{ margin-top:14px; }
.borrow-form label{ display:block; font-size:13px; color:var(--muted); margin:10px 0 5px; }
.borrow-form input{ width:100%; padding:12px 14px; border:1px solid var(--line);
  border-radius:11px; font-size:15px; }
.return-btn{ margin-top:10px; background:var(--apply-grad); }
@media(max-width:400px){ .borrow-grid{ gap:7px; } .borrow-tool{ padding:10px 5px; } .bt-icon{ width:40px; height:40px; font-size:22px; } }

/* ===== 我要申领：领用(蓝) / 外借(橙) 双通道 ===== */
.channel-bar{ display:flex; gap:10px; margin-bottom:14px; }
.ch-btn{ --ch:var(--primary); --ch-dark:var(--primary-dark); --ch-light:var(--primary-light);
  flex:1; display:flex; align-items:center; gap:9px; min-width:0;
  padding:11px 10px; border:1.5px solid var(--line); border-radius:13px;
  background:var(--card); text-decoration:none; color:var(--text);
  transition:transform .15s ease, box-shadow .15s ease; }
.ch-btn:active{ transform:scale(.98); }
.ch-btn.ch-apply{ --ch:var(--primary); --ch-dark:var(--primary-dark); --ch-light:var(--primary-light);
  border-color:#c3d8ee; background:var(--primary-soft); }
.ch-btn.ch-borrow{ --ch:var(--borrow); --ch-dark:var(--borrow-dark); --ch-light:var(--borrow-light);
  border-color:#f0d2a6; background:var(--borrow-soft); }
.ch-ico{ width:38px; height:38px; flex:none; border-radius:12px;
  display:flex; align-items:center; justify-content:center; font-size:21px;
  background:var(--ch-light); }
.ch-txt{ min-width:0; }
.ch-txt b{ display:block; font-size:15px; font-weight:600; color:var(--ch); }
.ch-txt small{ display:block; font-size:11px; color:var(--muted); margin-top:2px; white-space:nowrap; }
.ch-btn.on{ border-color:var(--ch); background:var(--ch);
  box-shadow:0 5px 14px rgba(16,42,67,.14); }
.ch-btn.on .ch-ico{ background:rgba(255,255,255,.22); }
.ch-btn.on .ch-txt b{ color:#fff; }
.ch-btn.on .ch-txt small{ color:#fff; opacity:.85; }

/* 外借页整体橙色点缀：加号、工具图标、购物车数字 */
body.theme-borrow .add-btn{ background:var(--borrow-grad); }
body.theme-borrow .add-btn:disabled{ background:#d8d6e2; }
body.theme-borrow .bt-icon{ background:var(--borrow-soft); }
body.theme-borrow .holder-chip{ color:var(--borrow-dark); background:var(--borrow-light); }
body.theme-borrow .cart-text b{ color:var(--borrow); }

/* ===== 我的申领：我的申领 / 我的借物 子页签 ===== */
.sub-tabs{ display:flex; gap:8px; margin-bottom:14px; }
.sub-tab{ flex:1; padding:11px 8px; border:1px solid var(--line); border-radius:11px;
  background:var(--card); color:var(--muted); font-size:14px; text-align:center; cursor:pointer; }
.sub-tab.on{ border-color:transparent; background:var(--apply-grad); color:#fff; font-weight:600;
  box-shadow:0 3px 10px rgba(28,78,128,.18); }
.sub-tab.sub-borrow.on{ background:var(--borrow-grad); box-shadow:0 3px 10px rgba(217,119,6,.22); }
.sub-tab.on .tab-badge{ background:rgba(255,255,255,.30); color:#fff; }
.tab-badge{ display:inline-block; min-width:18px; height:18px; line-height:18px; padding:0 5px;
  margin-left:5px; border-radius:9px; background:var(--danger); color:#fff;
  font-size:11px; font-weight:600; text-align:center; vertical-align:1px; }
/* 申领记录里的审核状态说明：待审核 → 审核通过 → 才出现领物按钮 */
.status-note{ margin-top:8px; padding:8px 10px; border-radius:8px; font-size:12px; line-height:1.6; }
.status-note.wait{ background:#fdf1e3; color:var(--warn); }
.status-note.pass{ background:#e4f4ec; color:var(--ok); }

/* 企微身份识别条 */
.who-bar{ max-width:720px; margin:10px auto 0; padding:9px 14px; border-radius:11px;
  background:var(--primary-light); color:var(--primary); font-size:13px;
  border:1px solid var(--primary); }
.who-bar b{ font-weight:600; }
