/* 服装使用管理系统 · 极简样式 v0.2 */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #f4f6f9;
  color: #2c3e50;
}
a { color: #2c6fbb; text-decoration: none; }

/* 顶栏 */
.topbar {
  display: flex; align-items: center; gap: 24px;
  background: #1f3a5f; color: #fff; padding: 0 24px; height: 54px;
}
.topbar .brand { font-weight: bold; font-size: 17px; white-space: nowrap; }
.topbar .nav { display: flex; gap: 4px; flex-wrap: wrap; }
.topbar .nav a { color: #cfd8e6; padding: 6px 10px; border-radius: 4px; font-size: 14px; }
.topbar .nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.topbar .user { margin-left: auto; font-size: 13px; color: #b9c7da; display: flex; align-items: center; gap: 10px; }
.topbar .user .btn-outline {
  border: 1px solid #7d95b3; color: #dfe7f0; padding: 3px 10px; border-radius: 4px; font-size: 12px;
}
.topbar .user .btn-outline:hover { background: rgba(255,255,255,.15); }

/* 主体容器 */
.container { max-width: 1100px; margin: 20px auto; padding: 0 16px; min-height: 70vh; }
.footer { text-align: center; color: #97a3b2; font-size: 12px; padding: 18px 0; }

/* 卡片导航 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-top: 18px; }
.card {
  display: block; background: #fff; border: 1px solid #e3e8ef; border-radius: 8px;
  padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.card:hover { border-color: #2c6fbb; box-shadow: 0 2px 8px rgba(44,111,187,.15); }
.card h3 { margin: 0 0 6px; font-size: 16px; color: #1f3a5f; }
.card p { margin: 0; color: #6b7683; font-size: 13px; }

/* 表格 */
table.data { width: 100%; border-collapse: collapse; background: #fff; margin-top: 12px; }
table.data th, table.data td { border: 1px solid #e3e8ef; padding: 8px 10px; font-size: 14px; text-align: left; }
table.data th { background: #eef2f7; white-space: nowrap; }
table.data tr:nth-child(even) { background: #fafbfd; }

/* 按钮 */
.btn-primary {
  background: #2c6fbb; color: #fff; border: 0; padding: 8px 18px; border-radius: 4px; cursor: pointer; font-size: 14px;
}
.btn-primary:hover { background: #245c9e; }
.btn-block { width: 100%; }
.btn-danger { background: #c0392b; color: #fff; border: 0; padding: 5px 12px; border-radius: 4px; cursor: pointer; font-size: 13px; }
.btn-ok { background: #27ae60; color: #fff; border: 0; padding: 5px 12px; border-radius: 4px; cursor: pointer; font-size: 13px; }
.btn-mini { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 13px; border: 1px solid #c9d4e0; color: #33475c; background: #fff; }
a.btn-mini:hover { border-color: #2c6fbb; color: #2c6fbb; }

/* 徽标 / 状态色 */
.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.tag-pending  { background: #fef3c7; color: #92600a; }
.tag-approved { background: #dbeafe; color: #1d4ed8; }
.tag-rejected { background: #fee2e2; color: #b91c1c; }
.tag-borrowed { background: #dcfce7; color: #15803d; }
.tag-returned { background: #e5e7eb; color: #374151; }
.tag-overdue  { background: #f97316; color: #fff; }
.tag-off      { background: #e5e7eb; color: #6b7280; }
.tag-instock  { background: #dcfce7; color: #15803d; }
.tag-repair   { background: #ffedd5; color: #c2410c; }
.tag-shipped  { background: #e0f2fe; color: #0369a1; }
.order-link   { color: #2c6fbb; font-weight: 600; text-decoration: underline; }

/* 表单 */
form label { display: block; margin: 12px 0 4px; font-size: 14px; color: #44525f; }
input[type=text], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=email], select, textarea {
  width: 100%; max-width: 420px; padding: 9px 12px; border: 1px solid #c9d4e0; border-radius: 6px; font-size: 14px;
  box-sizing: border-box; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 70px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #2c6fbb; box-shadow: 0 0 0 3px rgba(44,111,187,.12); }
input::placeholder, textarea::placeholder { color: #a5b1c0; }
form.inline { display: inline; }

/* 登录/注册卡片输入框统一铺满 */
.login-box form input[type=text],
.login-box form input[type=tel],
.login-box form input[type=password],
.login-box form input[type=number],
.login-box form select,
.login-box form textarea { width: 100%; max-width: none; }
.login-box form label { margin: 14px 0 6px; }

/* 提示条 */
.flash { background: #d1fae5; color: #065f46; padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
.error-box { background: #fee2e2; color: #991b1b; padding: 10px 14px; border-radius: 6px; margin-bottom: 12px; font-size: 14px; }
.muted { color: #6b7683; }
.small { font-size: 12px; }

/* 工具条 */
.toolbar { display: flex; gap: 10px; align-items: center; margin: 14px 0; flex-wrap: wrap; }
.pagination { margin-top: 14px; font-size: 13px; color: #44525f; }
.pagination a { margin: 0 3px; }

/* 登录页 */
.login-body { display: flex; justify-content: center; align-items: center; min-height: 100vh; }
.login-box {
  background: #fff; width: 360px; padding: 30px; border-radius: 10px;
  box-shadow: 0 6px 24px rgba(31,58,95,.12); border: 1px solid #e3e8ef;
}
.login-box h1 { font-size: 22px; margin: 0 0 4px; color: #1f3a5f; text-align: center; }
.login-box p.muted { text-align: center; }
.login-box .btn-primary { margin-top: 18px; }

/* ============ V2 布局：顶栏 + 左侧导航 + 内容区 ============ */
.layout { display: flex; align-items: stretch; min-height: calc(100vh - 54px); }

/* 左侧导航（放大版：更宽的选项框） */
.sidebar {
  width: 250px; flex: 0 0 250px;
  background: #fff; border-right: 1px solid #e3e8ef;
  padding: 16px 0 30px;
}
.side-group { font-size: 13px; color: #97a3b2; padding: 8px 26px 10px; letter-spacing: 1px; }
.sidebar .nav-link {
  display: block; margin: 6px 14px; padding: 13px 18px;
  color: #2f4057; font-size: 15px; font-weight: 500;
  border-radius: 10px; text-decoration: none;
}
.sidebar .nav-link:hover { background: #eef3f9; }
.sidebar .nav-link.active {
  background: #1f5aa5; color: #fff; font-weight: 600;
  box-shadow: 0 2px 6px rgba(31,90,165,.25);
}

/* 内容区（原来是 .container，在布局里改为弹性伸展） */
.layout .container { flex: 1; padding: 20px 26px 40px; max-width: none; }

/* 顶栏微调 */
.topnav a { font-size: 14px; }

/* ============ 首页公告板 ============ */
.announce-panel {
  background: #fff; border: 1px solid #e3e8ef; border-radius: 10px;
  margin: 18px 0 6px; box-shadow: 0 1px 3px rgba(0,0,0,.04); overflow: hidden;
}
.announce-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px; background: #f7fafd; border-bottom: 1px solid #eef2f7;
  font-weight: 600; color: #1f3a5f; font-size: 15px;
}
.announce-list { padding: 4px 0; }
.announce-item { padding: 12px 18px; border-bottom: 1px dashed #eef2f7; position: relative; }
.announce-item:last-of-type { border-bottom: none; }
.announce-item.a-hidden { background: #fafafa; opacity: .75; }
.announce-item .a-title { font-weight: 600; color: #1f3a5f; margin-bottom: 4px; }
.announce-item .a-content { color: #3c4a5a; font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.announce-item .a-meta { margin-top: 6px; font-size: 12px; color: #97a3b2; }
.announce-item .a-ops {
  float: right; margin-left: 12px; display: flex; gap: 6px; align-items: center;
}
.announce-pub { padding: 12px 18px; border-top: 1px solid #eef2f7; background: #fbfcfe; }

/* 表格行内表单控件（如用户管理/服装操作列） */
table.data form.inline select { width: auto; display: inline-block; max-width: 130px; margin-right: 2px; }
table.data form.inline .btn-mini, table.data form.inline .btn-danger, table.data form.inline .btn-ok { margin-right: 2px; }
td .btn-mini, td .btn-danger, td .btn-ok { margin: 1px 2px 1px 0; }

/* 服装参考资料图 */
.ref-td { white-space: nowrap; }
.ref-thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; border: 1px solid #e3e8ef; margin: 1px 3px 1px 0; vertical-align: middle; }
.ref-thumb:hover { border-color: #2c6fbb; box-shadow: 0 0 0 2px rgba(44,111,187,.15); }
.ref-form { display: flex; gap: 22px; flex-wrap: wrap; }
.ref-form > div { flex: 1; min-width: 280px; }
.ref-preview { display: block; margin: 4px 0; }
.ref-preview img { max-width: 240px; max-height: 200px; border-radius: 8px; border: 1px solid #e3e8ef; object-fit: contain; }

/* 公告标题/摘要/详情链接 */
.announce-item .a-title a { color: #1f3a5f; text-decoration: none; }
.announce-item .a-title a:hover { color: #2c6fbb; text-decoration: underline; }
.announce-item .a-view { color: #2c6fbb; font-size: 13px; white-space: nowrap; }
.announce-item .a-view:hover { text-decoration: underline; }

/* 管理员发布区（大文本域、支持换行） */
.announce-pub .pub-title-row { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.announce-pub .pub-title-row input[type=text] { flex: 1; max-width: none; }
.announce-pub textarea {
  width: 100%; max-width: none; box-sizing: border-box;
  font-family: inherit; font-size: 14px; line-height: 1.7;
}

/* 公告详情页 */
.ann-view {
  background: #fff; border: 1px solid #e3e8ef; border-radius: 10px;
  padding: 24px 30px; max-width: 860px; box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.ann-view h1 { margin: 0 0 6px; font-size: 22px; color: #1f3a5f; }
.ann-view-meta { font-size: 13px; color: #97a3b2; padding-bottom: 12px; border-bottom: 1px solid #eef2f7; margin-bottom: 16px; }
.ann-view-content {
  font-size: 15px; color: #2f4057; line-height: 2; white-space: pre-wrap; word-break: break-word;
}
.ann-view-actions { margin-top: 26px; padding-top: 16px; border-top: 1px solid #eef2f7; display: flex; gap: 10px; align-items: center; }

/* ============ 用户/游客浏览：淘宝式网格 ============ */
.shop-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px; margin-top: 6px;
}
.shop-card {
  display: block; background: #fff; border: 1px solid #e6ebf1; border-radius: 10px;
  overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: box-shadow .15s ease, transform .15s ease;
}
.shop-card:hover { box-shadow: 0 6px 18px rgba(44,111,187,.16); transform: translateY(-2px); border-color: #2c6fbb; }
.shop-img { position: relative; width: 100%; height: 190px; background: #f2f4f7; display: flex; align-items: center; justify-content: center; }
.shop-img img { width: 100%; height: 100%; object-fit: cover; }
.shop-none { color: #aab4c0; font-size: 13px; user-select: none; }
.shop-info { padding: 10px 12px 12px; }
.shop-name { font-weight: 600; color: #1f3a5f; font-size: 15px; margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-meta { font-size: 12px; color: #97a3b2; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; min-height: 20px; margin-bottom: 8px; }
.shop-foot { display: flex; justify-content: space-between; align-items: center; }
.shop-avail { font-size: 13px; color: #15803d; font-weight: 600; }
.shop-avail.none { color: #c0392b; }
.shop-btn { font-size: 13px; color: #2c6fbb; border: 1px solid #2c6fbb; border-radius: 14px; padding: 3px 10px; }
.shop-card:hover .shop-btn { background: #2c6fbb; color: #fff; }

/* ---------- 图片上传预览（v4.6）---------- */
.upload-preview {
  display: block;
  margin-top: 6px;
}
.upload-thumb {
  display: inline-block;
  margin: 4px 8px 0 0;
  vertical-align: top;
  text-align: center;
}
.upload-thumb img {
  display: block;
  max-width: 110px;
  max-height: 110px;
  border: 1px solid #d9e1ea;
  border-radius: 6px;
  background: #fff;
  object-fit: cover;
}
.upload-thumb span {
  display: block;
  max-width: 110px;
  margin-top: 2px;
  word-break: break-all;
  font-size: 11px;
}

/* ---------- 多图展示（v4.7）---------- */
.ref-preview-box {
  display: block;
  margin-top: 4px;
}
.ref-item {
  display: inline-block;
  position: relative;
  margin: 4px 10px 4px 0;
  text-align: center;
  vertical-align: top;
}
.ref-item img {
  display: block;
  max-width: 120px;
  max-height: 120px;
  border: 1px solid #d9e1ea;
  border-radius: 6px;
  background: #fff;
  object-fit: cover;
}
.ref-item .tag {
  display: inline-block;
  margin-top: 2px;
  font-size: 10px;
}
.ref-item form {
  display: inline-block;
}

/* ---------- 浏览卡片：尺码 / 鞋 / 道具 标签（v4.8）---------- */
.shop-ip {
  font-size: 12px;
  color: #8a94a6;
  margin-bottom: 6px;
}
.shop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}
.tag-size {
  background: #eef4ff;
  color: #2b5fd9;
  border: 1px solid #d3e0fb;
}
.tag-shoes {
  background: #eefaf3;
  color: #15803d;
  border: 1px solid #cdeedd;
}
.tag-props {
  background: #fdf3ff;
  color: #8b34b8;
  border: 1px solid #eed4f7;
}

/* =====================================================================
 * v4.9 视觉升级 + 移动端适配
 * 说明：本段是「增强层」，统一提升质感；不改动上方既有规则的主体逻辑。
 *       颜色/圆角/阴影集中在这里，日后调风格只改这一段即可。
 * ===================================================================== */

:root {
  --c-primary: #2f6fed;
  --c-primary-dark: #1f56c4;
  --c-primary-soft: #eaf1ff;
  --c-ink: #1b2536;
  --c-ink-2: #48566b;
  --c-ink-3: #8a94a6;
  --c-line: #e5e9f0;
  --c-line-soft: #f0f3f8;
  --c-bg: #f5f7fb;
  --c-surface: #ffffff;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(21, 40, 74, .05), 0 1px 3px rgba(21, 40, 74, .04);
  --sh-2: 0 4px 14px rgba(21, 40, 74, .08);
  --sh-3: 0 10px 30px rgba(21, 40, 74, .12);
}

body {
  background:
    radial-gradient(1100px 520px at 12% -10%, #eef4ff 0%, rgba(238, 244, 255, 0) 60%),
    var(--c-bg);
  color: var(--c-ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ---------- 顶栏：更沉稳的深色玻璃质感 ---------- */
.topbar {
  height: auto;
  min-height: 58px;
  padding: 10px 22px;
  background: linear-gradient(96deg, #16273f 0%, #1d3a63 55%, #22507f 100%);
  box-shadow: 0 2px 12px rgba(16, 30, 52, .18);
}
.topbar .brand { font-size: 17px; letter-spacing: .3px; }
.topbar .nav a { border-radius: var(--r-pill); padding: 6px 14px; }
.topbar .user { gap: 12px; }
.topbar .user .btn-outline { border-radius: var(--r-pill); padding: 5px 14px; }

/* ---------- 左侧导航 ---------- */
.sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border-right: 1px solid var(--c-line);
}
.side-group {
  font-size: 11.5px;
  letter-spacing: 1.4px;
  color: var(--c-ink-3);
  text-transform: uppercase;
}
.sidebar .nav-link {
  margin: 4px 12px;
  padding: 12px 16px;
  font-size: 14.5px;
  border-radius: var(--r-md);
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.sidebar .nav-link:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.sidebar .nav-link.active {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  box-shadow: 0 4px 14px rgba(47, 111, 237, .32);
}

/* ---------- 内容区与标题层级 ---------- */
.layout .container { padding: 24px 30px 48px; }
.container > h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .2px;
  margin: 0 0 4px;
  color: var(--c-ink);
}
.container > h3 {
  font-size: 16.5px;
  font-weight: 650;
  color: var(--c-ink);
  margin: 24px 0 10px;
}
.container > h2 + p.muted { margin-top: 2px; }

/* ---------- 表格：去掉竖线，改为清爽的横向分隔 ---------- */
table.data {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-1);
  border: 1px solid var(--c-line);
}
table.data th, table.data td { border: 0; border-bottom: 1px solid var(--c-line-soft); padding: 11px 14px; }
table.data th {
  background: #f7f9fc;
  color: var(--c-ink-2);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .3px;
}
table.data tbody tr:nth-child(even) { background: #fcfdff; }
table.data tbody tr:hover { background: var(--c-primary-soft); }
table.data tr:last-child td { border-bottom: 0; }

/* ---------- 表单控件：更大点击区域 + 更清晰的聚焦态 ---------- */
input[type=text], input[type=tel], input[type=password], input[type=number],
input[type=date], input[type=email], input[type=file], select, textarea {
  border: 1px solid #dbe2ec;
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 14.5px;
  color: var(--c-ink);
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(47, 111, 237, .14);
}
form label { font-weight: 500; color: var(--c-ink-2); }

/* ---------- 按钮：统一高度与质感 ---------- */
.btn-primary, .btn-ok, .btn-danger, .btn-mini {
  border-radius: var(--r-sm);
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(47, 111, 237, .26);
}
.btn-primary:hover { box-shadow: 0 6px 18px rgba(47, 111, 237, .34); transform: translateY(-1px); }
.btn-ok, .btn-danger { padding: 8px 15px; font-weight: 550; }
.btn-mini { padding: 6px 13px; border-color: #d3dbe7; color: var(--c-ink-2); }
.btn-mini:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-soft); }
.btn-primary:active, .btn-ok:active, .btn-danger:active, .btn-mini:active { transform: translateY(0) scale(.985); }

/* ---------- 卡片（首页快捷入口）---------- */
.card {
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: #c9dbff; }
.card h3 { font-size: 15.5px; }

/* ---------- 浏览网格（用户/游客）---------- */
.shop-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--sh-1);
  border: 1px solid var(--c-line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.shop-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: #c9dbff; }
.shop-img { height: 200px; background: linear-gradient(180deg, #f7f9fc 0%, #eef2f8 100%); }
.shop-name { font-size: 15.5px; letter-spacing: .2px; }
.shop-ip { color: var(--c-ink-3); }
.tag { border-radius: var(--r-pill); padding: 3px 10px; font-size: 11.5px; font-weight: 550; letter-spacing: .2px; }

/* ---------- 公告板 ---------- */
.announce-panel { border-radius: var(--r-lg); box-shadow: var(--sh-1); border: 1px solid var(--c-line); overflow: hidden; }
.announce-head { background: linear-gradient(180deg, #fbfcfe, #f5f8fd); font-weight: 650; }
.announce-item:hover { background: #fcfdff; }

/* ---------- 提示条 ---------- */
.flash {
  border-radius: var(--r-md);
  border-left: 4px solid #10b981;
  box-shadow: var(--sh-1);
  font-size: 14px;
}
.error-box {
  border-radius: var(--r-md);
  border-left: 4px solid #e11d48;
  box-shadow: var(--sh-1);
  font-size: 14px;
}

/* ---------- 登录 / 注册 ---------- */
.login-body {
  background:
    radial-gradient(900px 500px at 15% 5%, #e8f0ff 0%, rgba(232, 240, 255, 0) 62%),
    linear-gradient(160deg, #f6f8fc 0%, #eef2f9 100%);
  padding: 24px 16px;
}
.login-box {
  border-radius: 20px;
  box-shadow: var(--sh-3);
  border: 1px solid var(--c-line);
  background: #fff;
  padding: 30px 28px !important;
}
.login-box h1 { font-size: 23px; letter-spacing: .4px; }

/* =====================================================================
 * 移动端适配（≤900px 平板 / ≤560px 手机）
 * 要点：侧栏改为横向可滑动导航条、表格横向滚动、触控区≥44px、避免 iOS 缩放
 * ===================================================================== */
@media (max-width: 900px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 14px;
  }
  .topbar .brand { font-size: 16px; }
  .topbar .nav { justify-content: flex-start; }
  .topbar .user {
    margin-left: 0;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }

  /* 侧栏 → 横向滚动导航条（吸顶，便于单手切换） */
  .layout { flex-direction: column; min-height: auto; }
  .sidebar {
    width: 100%;
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--c-line);
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sidebar::-webkit-scrollbar { display: none; }
  .sidebar .side-group { display: none; }
  .sidebar .nav-link {
    flex: 0 0 auto;
    margin: 0;
    padding: 10px 15px;
    font-size: 14px;
    white-space: nowrap;
    background: #f5f7fb;
    border-radius: var(--r-pill);
  }
  .sidebar .nav-link.active { background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark)); }
  .layout .container { padding: 16px 14px 44px; }

  /* 表格：外层横向滚动，避免撑破页面 */
  .container table.data { display: block; overflow-x: auto; white-space: nowrap; }
  table.data th, table.data td { padding: 10px 10px; font-size: 13.5px; }

  .toolbar { gap: 8px; }
  .toolbar input[type=text], .toolbar select { max-width: none !important; flex: 1 1 150px; }

  /* 表单在窄屏占满宽度 */
  input[type=text], input[type=tel], input[type=password], input[type=number],
  input[type=date], input[type=email], select, textarea { max-width: none !important; }

  /* 触控友好：所有按钮不小于 40px 高 */
  .btn-primary, .btn-ok, .btn-danger, .btn-mini { min-height: 40px; }
  .sidebar .nav-link { min-height: 42px; }

  .cards { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
  .ref-form > div { min-width: 100%; }
}

@media (max-width: 560px) {
  .layout .container { padding: 14px 12px 40px; }
  .container > h2 { font-size: 18.5px; }
  .container > h3 { font-size: 15.5px; }

  .cards { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .shop-img { height: 140px; }
  .shop-info { padding: 8px 10px 10px; }
  .shop-name { font-size: 14px; }
  .shop-btn { padding: 3px 9px; font-size: 12px; }
  .shop-avail { font-size: 12px; }

  /* 登录/注册卡片铺满 */
  .login-box { padding: 22px 18px !important; width: 100% !important; }
  .login-box h1 { font-size: 20px; }

  /* 提示条更紧凑 */
  .flash, .error-box { padding: 10px 12px; font-size: 13.5px; }
}

/* ---------- 触屏设备：去掉 hover 造成的"粘滞"高亮 ---------- */
@media (hover: none) {
  .card:hover, .shop-card:hover, .btn-primary:hover { transform: none; }
}

/* ---------- 浏览卡片：假发标签（v4.14）---------- */
.tag-wigs {
  background: #fff5e8;
  color: #b45309;
  border: 1px solid #f6dcbb;
}

/* ---------- 分页条（v4.21）---------- */
.pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; margin: 18px 0 6px; padding: 12px 14px;
  background: #fff; border: 1px solid #e6ebf1; border-radius: 10px;
}
.pager-info { font-size: 13px; color: #5a6b7d; }
.pager-info b { color: #1f3b57; }
.pager-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pager-links .btn-mini { min-width: 34px; text-align: center; }
.pager-links .pager-current {
  background: #1f4e9c; color: #fff; border-color: #1f4e9c; font-weight: 600; cursor: default;
}
.pager-links .pager-disabled { opacity: .45; cursor: not-allowed; }
.pager-gap { font-size: 13px; color: #8a97a6; padding: 0 2px; }
@media (max-width: 560px) {
  .pager { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; }
  .pager-info { text-align: center; }
  .pager-links { justify-content: center; }
  .pager-links .btn-mini { min-width: 30px; padding: 3px 7px; font-size: 12px; }
}

/* ============================================================
   v4.22 浏览卡片适度放大 + 分页条贴底（仅桌面端生效，手机端保持原样）
   —— 追加在文件末尾，用媒体查询限定 >=561px，避免影响移动端
   ============================================================ */
@media (min-width: 561px) {
  /* 1) 卡片放大：列数减少 → 每张更宽更高 */
  .shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 10px;
  }
  .shop-img  { height: 225px; }
  .shop-info { padding: 12px 14px 14px; }
  .shop-name { font-size: 15.8px; margin-bottom: 5px; }
  .shop-ip   { font-size: 12.5px; }
  .shop-avail { font-size: 13px; }
  .shop-btn  { font-size: 13px; padding: 5px 12px; }
  .tag       { font-size: 11.8px; padding: 3px 10px; }
}

/* 2) 浏览页容器：让分页条贴在内容区底部，而不是浮在屏幕中间 */
.browse-page {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 170px);   /* 扣除顶栏 + 页脚，剩余高度用于撑开 */
}
.browse-page > .pager { margin-top: auto; }

/* 分页条本身再美一点：更宽松的间距 + 更明显的当前页 */
.browse-page > .pager {
  margin-bottom: 4px;
  box-shadow: 0 1px 3px rgba(31, 58, 95, .05);
}
.pager-current { box-shadow: 0 2px 6px rgba(31, 78, 156, .28); }

@media (max-width: 560px) {
  .browse-page { min-height: auto; }
  .browse-page > .pager { margin-top: 14px; }
}

/* ============================================================
   v4.23 明确的列数控制：一行 6 个 × 3 行 = 每页 18 款
   （用固定列数代替 auto-fill，保证桌面端整整齐齐、不留半行）
   ============================================================ */
@media (min-width: 1560px) {
  .shop-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 1200px) and (max-width: 1559px) {
  .shop-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .shop-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 561px) and (max-width: 899px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   v4.24 用户管理：注册邀请码卡片 + 筛选栏
   ============================================================ */
.invite-box {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
  padding: 16px 20px; margin: 10px 0 4px;
  background: linear-gradient(135deg, #eef4ff 0%, #f7fbff 100%);
  border: 1px solid #cfe0f7; border-radius: 12px;
}
.invite-main { min-width: 240px; }
.invite-label { font-size: 13px; color: #476284; font-weight: 600; letter-spacing: .5px; }
.invite-code {
  font-size: 30px; font-weight: 700; letter-spacing: 8px; color: #1f4e9c;
  font-family: 'Consolas', 'Menlo', monospace; line-height: 1.25; margin: 2px 0 4px;
}
.invite-hint { font-size: 12.5px; color: #6b7f96; }
.invite-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.invite-input-label { font-size: 13px; color: #476284; display: flex; flex-direction: column; gap: 5px; }
.invite-input-label input { width: 150px; }

.user-filter {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
  padding: 12px 16px; margin: 8px 0 12px;
  background: #fff; border: 1px solid #e6ebf1; border-radius: 10px;
}
.user-filter label { font-size: 13px; color: #476284; display: flex; flex-direction: column; gap: 5px; margin: 0; }
.user-filter select { min-width: 150px; }
.user-filter .user-filter-q input { width: 240px; max-width: 100%; }

@media (max-width: 640px) {
  .invite-box { flex-direction: column; align-items: stretch; }
  .invite-code { font-size: 26px; letter-spacing: 6px; }
  .invite-form { flex-direction: column; align-items: stretch; }
  .invite-input-label input { width: 100%; }
  .user-filter { flex-direction: column; align-items: stretch; }
  .user-filter .user-filter-q input { width: 100%; }
}

/* ============================================================
   v4.25 顶栏品牌（左上角系统名称）放大 + 手机端同步优化
   ============================================================ */

/* ---- 桌面/平板：品牌字号放大，视觉重心更明确 ---- */
.topbar .brand {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: .8px;
  line-height: 1.15;
}
.topbar .brand a {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  transition: opacity .16s ease;
}
.topbar .brand a:hover { opacity: .88; }
/* 品牌与导航之间给一点呼吸空间 */
.topbar { gap: 26px; }

/* ---- 手机端（≤900px）：品牌更大更醒目，独占一行 ---- */
@media (max-width: 900px) {
  .topbar {
    gap: 6px;
    padding: 12px 14px 10px;
  }
  .topbar .brand {
    font-size: 21px;
    letter-spacing: .5px;
    text-align: left;
    padding-bottom: 2px;
  }
  /* 首页导航紧随品牌下方，按钮更容易点 */
  .topbar .nav { gap: 6px; }
  .topbar .nav a {
    font-size: 14px;
    padding: 7px 14px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
  .topbar .user {
    font-size: 13px;
    padding-top: 8px;
  }
}

/* ---- 小屏手机（≤560px）：再放大一点，保证远距离可读 ---- */
@media (max-width: 560px) {
  .topbar .brand { font-size: 22px; letter-spacing: .4px; }
  .topbar .user span { font-size: 12.5px; }
}

/* ============================================================
   v4.26 浏览卡片图片：锁定宽高比，随浏览器缩放不再"变形"
   ------------------------------------------------------------
   问题：旧写法用固定像素高度（190 / 200 / 225px）+ 宽度自适应，
        容器比例会随窗口宽度变化（宽屏近方形、窄屏变竖长），
        配合 object-fit:cover 时可见裁切范围剧烈变化，
        观感上就是"图片比例在变"。
   修正：用 aspect-ratio 把画布比例锁死，宽度怎么变都等比缩放；
        图片继续 cover 裁切，保证不拉伸变形。
   ============================================================ */
.shop-img {
  height: auto;                 /* 覆盖此前所有固定高度 */
  aspect-ratio: 4 / 5;          /* 桌面：竖版 4:5，贴合服装人设图 */
}
.shop-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;            /* 填满画布、绝不拉伸 */
  object-position: center top;  /* 优先保留上半身/主体，避免裁掉头部 */
}

/* 手机端改方形：一行 2 个时卡片不至于过高，观感更紧凑 */
@media (max-width: 560px) {
  .shop-img { aspect-ratio: 1 / 1; }
}

/* 极老浏览器兜底：不支持 aspect-ratio 时退回固定高度（比例仍基本稳定） */
@supports not (aspect-ratio: 4 / 5) {
  .shop-img { height: 225px; }
}
@media (max-width: 560px) {
  @supports not (aspect-ratio: 1 / 1) {
    .shop-img { height: 150px; }
  }
}

/* ============================================================
   v4.27 浏览卡片整体收紧（全屏不再显得过大）
   ------------------------------------------------------------
   上一版用 4:5 竖版锁比例后，全屏 6 列时图片高度达 315px，视觉偏大。
   调整：
     1) 桌面改「方形 1:1」—— 比例仍然锁死（不变形），但高度降约 20%；
     2) 超宽屏(≥1800px)多给一列，避免卡片被拉到过宽；
     3) 间距与信息区留白略收紧，整体更紧凑。
   ============================================================ */
@media (min-width: 561px) {
  .shop-img  { aspect-ratio: 1 / 1; }      /* 方形：比 4/5 矮，仍等比不变形 */
  .shop-grid { gap: 16px; }
  .shop-info { padding: 10px 12px 12px; }
  .shop-name { font-size: 15px; margin-bottom: 4px; }
}

/* 超宽屏多一列：1920 下卡片从 252px 收到约 216px */
@media (min-width: 1800px) {
  .shop-grid { grid-template-columns: repeat(7, 1fr); }
}

/* ============================================================
   v4.28 表单页居中 + 响应式排版
   ------------------------------------------------------------
   适用：借用申请(borrow/apply.php)、新增服装入库(clothes/add.php)
   问题：原来表单只有 max-width、没有 margin:auto，全部挤在左边。
   方案：外层 .form-page 居中列（标题/提示/表单同一列），
        表单本身用 .form-card 统一卡片样式；手机端铺满并放大控件。
   ============================================================ */
.form-page {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;                 /* 关键：水平居中 */
  padding: 2px 0 10px;
}
.form-page > h2 {
  text-align: center;
  margin: 0 0 14px;
}
/* 借用申请页顶部那条「返回 + 所属IP」工具栏，居中排布 */
.form-page > .toolbar {
  justify-content: center;
  margin: 0 0 14px;
  text-align: center;
}

/* 表单卡片 */
.form-card {
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 12px;
  padding: 22px 24px 20px;
  box-shadow: 0 1px 3px rgba(31, 58, 95, .06);
}
.form-card > label { display: block; margin-bottom: 16px; }
.form-card > label:last-of-type { margin-bottom: 4px; }

/* 按钮区：与字段区用虚线分隔，居中偏左对齐 */
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed #e6ebf1;
}

/* ---------- 手机端（≤640px）：铺满、放大触控区 ---------- */
@media (max-width: 640px) {
  .form-page {
    max-width: 100%;
    padding: 0;
  }
  .form-page > h2 {
    font-size: 18px;
    text-align: left;              /* 手机上标题左对齐更省空间 */
    margin-bottom: 12px;
  }
  .form-page > .toolbar {
    justify-content: flex-start;
    text-align: left;
  }
  .form-card {
    padding: 16px 14px 14px;
    border-radius: 10px;
  }
  .form-card > label { margin-bottom: 14px; }
  /* iOS Safari 输入框字号 <16px 会自动放大页面，这里统一 16px 规避 */
  .form-card input[type="text"],
  .form-card input[type="tel"],
  .form-card input[type="date"],
  .form-card input[type="number"],
  .form-card input[type="password"],
  .form-card select,
  .form-card textarea {
    font-size: 16px;
    min-height: 42px;
  }
  /* 按钮改为整行堆叠，拇指更好点 */
  .form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
  }
  .form-actions .btn-primary,
  .form-actions .btn-mini {
    width: 100%;
    text-align: center;
    padding: 11px 14px;
    font-size: 15px;
  }
}

/* ============================================================
   v4.29 表单页增强：多卡片间距 + 表单内分区
   ------------------------------------------------------------
   用于 clothes/edit.php（4 个独立卡片堆叠）与 clothes/add.php
   （新增时可选上传参考资料图，需要一个视觉分区）。
   ============================================================ */
.form-page > .form-card + .form-card { margin-top: 18px; }
.form-page > .form-card { margin-bottom: 0; }

/* 表单内的分区块（虚线分隔，避免与字段混淆） */
.form-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #e6ebf1;
}
.form-section-title {
  font-weight: 600;
  color: #1f3a5f;
  font-size: 15px;
  margin-bottom: 6px;
}
/* 分区内的参考图网格在手机上单列 */
@media (max-width: 640px) {
  .form-section { margin-top: 16px; padding-top: 14px; }
  .form-page > .form-card + .form-card { margin-top: 14px; }
}

/* ============================================================
   v4.30 上传缩略图：右上角「✕ 移除」按钮
   ------------------------------------------------------------
   背景：原生 <input type="file"> 选中后没有取消按钮，
        选错图片只能刷新页面。现在每张缩略图可单独移除。
   ============================================================ */
.upload-thumb {
  position: relative;          /* 作为 ✕ 按钮的定位父级 */
}

.upload-thumb-del {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(220, 53, 69, .95);
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .12s ease, background .12s ease;
  z-index: 2;
}
.upload-thumb-del:hover {
  background: #c82333;
  transform: scale(1.15);
}
.upload-thumb-del:active { transform: scale(.95); }

/* 手机端把 ✕ 做得更大更好点 */
@media (max-width: 640px) {
  .upload-thumb-del {
    width: 26px;
    height: 26px;
    line-height: 26px;
    font-size: 14px;
    top: -8px;
    right: -8px;
  }
}

/* ============================================================
   v4.37-A 待发货卡片：紧凑排版（原来一张卡片过高一屏放不下几条）
   ------------------------------------------------------------
   结构：.lend-card > .lend-head（头部）+ .lend-meta（地址/达人）
                        + .lend-act（① / ② / ③ 各一行动作）
   ============================================================ */
.lend-card {
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.lend-card:hover { border-color: #cfdcec; box-shadow: 0 2px 10px rgba(31, 58, 95, .06); }

/* 头部：单号 + 谁借了什么 + 预计日期，一行内 */
.lend-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.lend-no {
  font-family: 'Consolas', 'Menlo', monospace;
  font-size: 12.5px;
  color: #5a6b7d;
  background: #f2f5f9;
  border-radius: 5px;
  padding: 2px 7px;
  letter-spacing: .3px;
}
.lend-title { font-size: 14.5px; color: #1f3a5f; }
.lend-title b { color: #14335c; }

/* 地址 / 达人：一行、超长省略 */
.lend-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 6px;
  font-size: 12.5px;
  color: #5a6b7d;
}
.lend-addr {
  display: inline-block;
  max-width: 560px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

/* 动作行：① / ② / ③ */
.lend-act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #eef2f7;
}
.lend-step {
  flex: 0 0 auto;
  width: 20px; height: 20px; line-height: 20px;
  text-align: center; border-radius: 50%;
  background: #eef4ff; color: #1f4e9c;
  font-size: 12px; font-weight: 700;
}
.lend-step-muted { background: #f3f4f6; color: #8a97a6; }
.lend-sel   { min-width: 170px; }
.lend-input { width: 170px; }



.lend-holder { font-size: 13px; color: #5a6b7d; }
.btn-chain {
  background: #fff8e6; border-color: #e0a83a; color: #8a5a00; cursor: pointer;
}
.btn-chain:hover { background: #fdefd0; }
.btn-cancel { cursor: pointer; }
.lend-note { font-size: 12.5px; color: #8a97a6; }

@media (max-width: 640px) {
  .lend-card { padding: 10px 12px; }
  .lend-act { gap: 6px; }
  .lend-sel, .lend-input { width: 100%; min-width: 0; }
  
  .lend-act .btn-ok, .lend-act .btn-mini { width: 100%; }
  .lend-addr { max-width: 100%; }
}

/* ============================================================
   v4.37-B 服装档案表：可折叠的附加列（默认收件地址 / 审批人）
   ------------------------------------------------------------
   默认隐藏，点「展开更多信息」显示；状态存 localStorage，刷新后保持。
   ============================================================ */
table.data .col-extra { display: none; }
table.data.show-extra .col-extra { display: table-cell; }

.addr-cell {
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  font-size: 12.5px;
  color: #47576a;
}

/* ============================================================
   v4.38 待发货卡片：① 行改为「字段一行 + 凭证图独立一行」
   ------------------------------------------------------------
   修正 v4.37 的错误：上一版把原生 file input 设为 display:none，
   导致「拖入文件」失效（元素不渲染就没有落点）。现在恢复原生文件框，
   点选 / 拖入 / Ctrl+V 粘贴 三种方式都可用。
   ============================================================ */
.lend-act-main { align-items: center; }
.lend-act-main .lend-sel   { flex: 0 1 200px; }
.lend-act-main .lend-input { flex: 0 1 180px; }
.lend-act-main .btn-ok     { flex: 0 0 auto; }

/* 凭证图区（v4.39）：提示 + 选择文件 + 缩略图（横向）排在同一行，窄屏自动换行 */
.lend-upload {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 4px 0 0;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px dashed #cfd8e6;
  border-radius: 8px;
  transition: border-color .15s ease, background .15s ease;
}
.lend-upload:hover { border-color: #2f6fed; background: #f4f8ff; }
/* 拖拽悬停高亮 */
.lend-upload.is-drag { border-color: #2f6fed; background: #eaf2ff; border-style: solid; }
.lend-upload-tip { flex: 0 0 auto; font-size: 12.5px; color: #5a6b7d; white-space: nowrap; }
/* 原生文件框：正常显示（关键！这样才能拖入） */
.lend-upload input[type=file] { flex: 0 1 240px; font-size: 13px; }

/* 预览缩略图：跟在按钮右侧，横向排列；说明文字自动换到下一行 */
.lend-preview {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 160px;
}
.lend-preview > div { flex: 1 1 100%; }   /* 「已选择 N 张…」说明独占一行 */
.lend-preview .upload-thumb { margin: 0; } /* 已有 gap，去掉额外外边距 */

/* 备注 / 实际使用人：超长省略 */
.lend-remark {
  display: inline-block;
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  color: #47576a;
}

@media (max-width: 640px) {
  .lend-act-main .lend-sel,
  .lend-act-main .lend-input,
  .lend-act-main .btn-ok { flex: 1 1 100%; width: 100%; }
  .lend-remark { max-width: 100%; }
}

/* ============================================================
   v4.43 可视等级标签
   ------------------------------------------------------------
   · 文案：「游客不可见」→「仅用户可见」
   · 配色：两种等级的底色按需求对调
       全可见      → 橙（原「游客不可见」的配色）
       仅用户可见  → 绿（原「全可见」的配色）
   独立成自己的类，避免以后改 .tag-instock / .tag-repair 时被牵连。
   ============================================================ */
.tag-view-all  { background: #ffedd5; color: #c2410c; }   /* 全可见（含游客） */
.tag-view-user { background: #dcfce7; color: #15803d; }   /* 仅用户可见（游客看不到） */

/* ============================================================
   v4.43 服装档案表：整行可点击进入编辑
   ------------------------------------------------------------
   点击「服装名称」仍进单品管理；点其它空白处进编辑页。
   行内的链接/按钮/表单不会被劫持（JS 里已排除）。
   ============================================================ */
table.data tr.row-link { cursor: pointer; }
table.data tr.row-link:hover { background: #f6fafd; }
table.data tr.row-link:hover td { background: #f6fafd; }

/* ============================================================
   v4.44 服装档案表：「默认收件地址」「审批人」两列字号收小
   ------------------------------------------------------------
   这两列是展开后才看的辅助信息，字号比正文小一档更清爽，
   同时把标签内边距收紧，避免列被撑宽。
   ============================================================ */
table.data td.col-extra      { font-size: 11px; line-height: 1.55; }
table.data td.col-extra .addr-cell { font-size: 11px; max-width: 200px; }
table.data td.col-extra .tag { font-size: 10px; padding: 1px 6px; letter-spacing: 0; }
table.data td.col-extra .muted,
table.data td.col-extra .muted.small { font-size: 10.5px; }
/* 表头也同步略小，和内容更协调 */
table.data th.col-extra      { font-size: 11.5px; }

/* ============================================================
   v4.45 服装档案表：「备注」列字号收小 + 长文本自动换行
   ------------------------------------------------------------
   .container table.data 默认带 white-space:nowrap（防止表格被压扁），
   备注常常是一段话，会撑出很宽的横向滚动条。
   这里只对备注列放行换行，并限制最大宽度，长文本折行显示。
   ============================================================ */
table.data td.remark-cell {
  font-size: 11px;
  line-height: 1.55;
  color: #4b5a6b;
  white-space: normal;          /* 覆盖表格的 nowrap */
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 140px;
  max-width: 240px;
}

/* ============================================================
   v4.47 在借 / 待收货 卡片
   ------------------------------------------------------------
   信息分组：头部（单号/谁借了什么/尺码/单品/状态）
             → 关键信息（实际借用人/已借出天数/预计使用）
             → 时间线（发货或转交 / 下一站 / 已寄回）
             → 备注
             → 操作（登记归还）
   逾期卡片用橙色描边 + 淡橙底，一眼能挑出来。
   ============================================================ */
.borrow-card {
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.borrow-card:hover { border-color: #cfdcec; box-shadow: 0 2px 10px rgba(31, 58, 95, .06); }
.borrow-card.is-overdue { border-color: #f97316; background: #fffdfa; }
.borrow-card.is-overdue:hover { box-shadow: 0 2px 10px rgba(249, 115, 22, .12); }

/* 头部 */
.borrow-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.borrow-no {
  font-family: 'Consolas', 'Menlo', monospace;
  font-size: 12.5px;
  color: #5a6b7d;
  background: #f2f5f9;
  border-radius: 5px;
  padding: 2px 7px;
  letter-spacing: .3px;
}
.borrow-title { font-size: 14.5px; color: #1f3a5f; }
.borrow-title b { color: #14335c; }

/* 元信息行：两行（关键信息 / 时间线），超长自动折行 */
.borrow-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 7px;
  font-size: 12.5px;
  color: #5a6b7d;
  line-height: 1.6;
}
.borrow-meta > span { min-width: 0; }

/* 备注：标签固定，正文可折行 */
.borrow-remark {
  display: flex;
  gap: 6px;
  margin-top: 7px;
  padding: 6px 10px;
  background: #f8fafc;
  border-radius: 7px;
  font-size: 12.5px;
  color: #47576a;
  line-height: 1.6;
}
.borrow-remark-label { flex: 0 0 auto; color: #5a6b7d; }
.borrow-remark-text  { flex: 1 1 auto; min-width: 0; word-break: break-word; overflow-wrap: anywhere; }

/* 操作行 */
.borrow-act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed #eef2f7;
}
.borrow-act-label { font-size: 13px; font-weight: 600; color: #1f3a5f; }
.borrow-radio {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 13px;
  font-weight: normal;
  cursor: pointer;
}
.borrow-radio input[type=radio] { width: auto; margin: 0; }

@media (max-width: 640px) {
  .borrow-card { padding: 10px 12px; }
  .borrow-meta { gap: 3px 12px; font-size: 12px; }
  .borrow-remark { flex-direction: column; gap: 2px; }
  .borrow-act > .btn-ok { width: 100%; }
}

/* ============================================================
   v4.50 筛选项里的窄下拉（在借列表的「全部状态 / 只看逾期」）
   ------------------------------------------------------------
   .toolbar select 默认 flex: 1 1 150px 会被拉得很宽，
   这里给这类"选项少"的下拉固定成窄宽度，位置在 IP 下拉之后。
   ============================================================ */
.toolbar select.bf-narrow {
  flex: 0 0 auto !important;
  width: 118px !important;
  min-width: 118px !important;
  max-width: 118px !important;
}
@media (max-width: 640px) {
  .toolbar select.bf-narrow { width: 100% !important; max-width: 100% !important; }
}

/* ============================================================
   v4.51 ICP 备案号（工信部要求：页脚展示 + 链接 beian.miit.gov.cn）
   ------------------------------------------------------------
   · 页脚：应用名 · 备案号（浅灰小字，不抢眼但清晰可读）
   · 登录/注册页：卡片下方居中单独一行
   ============================================================ */
.footer-name { color: #97a3b2; }
.footer-dot  { color: #c8d2de; margin: 0 6px; }
.footer .icp-link,
.login-icp .icp-link {
  color: #97a3b2;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .2px;
}
.footer .icp-link:hover,
.login-icp .icp-link:hover {
  color: #2f6fed;
  text-decoration: underline;
}
.login-icp {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: #97a3b2;
}
.login-icp .icp-link { color: #8b98a8; }

/* ============================================================
   v4.52 修正登录/注册页备案号排版
   ------------------------------------------------------------
   问题：.login-body 是 flex 横排（justify-content:center），
         备案号作为第二个 flex 子项被排到了登录卡片**右边**。
   做法：让备案号脱离 flex 流（position:fixed），固定贴在页面最下方居中；
         body 加 padding-bottom，避免小屏时卡片盖住备案号。
   ============================================================ */
.login-body {
  flex-direction: column;      /* 万一没生效 fixed，也保证是纵向排列 */
  padding-bottom: 72px;        /* 给底部备案号留出空间 */
}
.login-icp {
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 14px;
  margin: 0 !important;
  padding: 0 16px;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: #97a3b2;
  z-index: 5;
}
.login-icp .icp-link {
  color: #8b98a8;
  text-decoration: none;
}
.login-icp .icp-link:hover {
  color: #2f6fed;
  text-decoration: underline;
}
