/* =====================================================================
   LIBRA · 高校图书馆智慧化服务系统
   设计系统：暗色知识空间，冷蓝主色 + 紫/绿/琥珀语义色
   与 Figma 高保真稿保持一致的间距、圆角、描边与字号层级
   ===================================================================== */

:root {
  /* 底色与表面 */
  --bg: #0a0e13;
  --bg-deep: #070a0e;
  --glow: #101b30;
  --surface: #0f151e;
  --surface-2: #131b26;
  --surface-3: #17202d;
  --card-a: #111925;
  --card-b: #0e151e;
  --row: #111a26;
  --row-hover: #18212f;
  --menu-bg: #111a27;
  --menu-hover: #18222f;
  --nav-active: #1a2537;
  --nav-active-line: #223048;
  --input: #101823;
  --chip-bg: #151e2b;
  --btn-bg: #1a2534;
  --track: #1b2534;
  /* 描边 */
  --line: #1d2634;
  --line-soft: #171f2b;
  --line-strong: #24324a;
  --line-hover: #33455f;
  /* 文字 */
  --text: #e9eef8;
  --text-2: #b9c3d3;
  --muted: #8a96a8;
  --faint: #5b6779;
  /* 品牌与语义色 */
  --blue: #5b7cfa;
  --blue-strong: #4a6cf4;
  --blue-soft: rgba(91, 124, 250, 0.14);
  --purple: #8b5cf6;
  --purple-soft: rgba(139, 92, 246, 0.14);
  --green: #35d6a4;
  --green-soft: rgba(53, 214, 164, 0.12);
  --amber: #f0b64b;
  --amber-soft: rgba(240, 182, 75, 0.12);
  --red: #f2707f;
  --red-soft: rgba(242, 112, 127, 0.12);
  --pink: #f472b6;
  /* 语义色的「可读文字」版本（浅色主题下需要更深的同色相） */
  --blue-ink: #7d9bff;
  --green-ink: #4fe0b4;
  --amber-ink: #ffd08a;
  --red-ink: #ff9ba6;
  --purple-ink: #c4b1ff;
  /* 效果 */
  --glass: rgba(12, 17, 24, 0.92);
  --sidebar-a: rgba(15, 21, 30, 0.65);
  --sidebar-b: rgba(10, 14, 19, 0.2);
  --scroll-thumb: #223042;
  --tint-1: rgba(255, 255, 255, 0.025);
  --tint-2: rgba(255, 255, 255, 0.035);
  --overlay: rgba(4, 7, 11, 0.68);
  /* 工作台「当前座位」横幅（深色为蓝色玻璃条，浅色为淡蓝提示条） */
  --seat-banner-bg: linear-gradient(90deg, rgba(38, 54, 79, 0.35), rgba(17, 25, 37, 0.9));
  --seat-banner-line: #26364f;
  --seat-pill-bg: #1b2a44;
  --seat-pill-ink: #8fb0ff;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  --shadow-pop: 0 24px 60px rgba(0, 0, 0, 0.55);
  --radius-lg: 18px;
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --topbar-h: 72px;
  --sidebar-w: 216px;
  /* 桌面端内容容器：随视口变宽，避免 1920/2K 下两侧大片留白 */
  --page-max: 1240px;
  --page-pad-x: 34px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 78% -10%, var(--glow) 0%, transparent 55%), var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(91, 124, 250, 0.35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------------------------------------------ 布局 */
.app { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 26px;
  padding: 0 28px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 168px; }
.brand-dot {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(150deg, #7f9dff, #4a6cf4 70%);
  box-shadow: 0 6px 18px rgba(74, 108, 244, 0.45);
  position: relative;
}
.brand-dot::after {
  content: ""; position: absolute; inset: 9px; border-radius: 50%;
  background: var(--bg-deep);
}
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: 0.12em; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav a {
  padding: 8px 15px; border-radius: 9px; color: var(--muted);
  font-size: 13px; transition: 0.18s; white-space: nowrap;
}
.nav a:hover { color: var(--text-2); background: var(--tint-2); }
.nav a.active { color: var(--text); background: var(--nav-active); box-shadow: inset 0 0 0 1px var(--line-strong); }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.search-box {
  display: flex; align-items: center; gap: 9px;
  width: 290px; height: 38px; padding: 0 13px;
  background: var(--input); border: 1px solid var(--line-strong); border-radius: 10px;
  color: var(--faint);
}
.search-box input {
  flex: 1; background: none; border: 0; outline: none; color: var(--text); font-size: 12.5px;
}
.search-box input::placeholder { color: #55617200; color: var(--line-hover); }
.kbd { font-size: 11px; color: var(--line-hover); border: 1px solid var(--line-strong); border-radius: 5px; padding: 1px 5px; }

/* 检索联想 / 历史下拉（suggest.js） */
.suggest-host { position: relative; }
.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 80;
  min-width: 260px; max-width: 460px; max-height: 360px; overflow-y: auto;
  padding: 6px;
  background: var(--menu-bg); border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: var(--shadow-pop);
}
.suggest[hidden] { display: none; }
.sg-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px 6px; color: var(--faint); font-size: 10.5px; letter-spacing: 0.08em;
}
.sg-clear { background: none; border: 0; color: var(--faint); font-size: 10.5px; cursor: pointer; }
.sg-clear:hover { color: #ff9aa5; }
.sg-tip { font-size: 10px; }
.sg-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 10px; border: 0; border-radius: 8px; background: none;
  color: var(--text); font-size: 12.5px; text-align: left; transition: 0.14s;
}
.sg-item:hover, .sg-item.active { background: var(--menu-hover); color: #fff; }
.sg-ico { color: var(--faint); display: inline-flex; flex: none; }
.sg-main { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-main b { font-weight: 550; }
.sg-main em { font-style: normal; color: var(--faint); font-size: 11px; margin-left: 8px; }

.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--input); border: 1px solid transparent; color: var(--muted);
  position: relative; transition: 0.18s;
}
.icon-btn:hover { color: var(--text); border-color: var(--nav-active); }
.dot-red {
  position: absolute; top: 7px; right: 8px; width: 7px; height: 7px;
  background: #ff5f6d; border-radius: 50%; box-shadow: 0 0 0 2px var(--input);
}
.user-chip { display: flex; align-items: center; gap: 9px; padding-left: 10px; border-left: 1px solid var(--row); position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 9px; padding: 4px 6px 4px 4px;
  background: none; border: 0; border-radius: 10px; color: inherit; cursor: pointer; transition: 0.16s;
}
.user-btn:hover { background: var(--tint-2); }
.user-caret {
  width: 0; height: 0; margin-left: 3px;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--line-hover);
  transition: transform 0.18s;
}
.user-btn[aria-expanded='true'] .user-caret { transform: rotate(180deg); border-top-color: var(--text-2); }
.user-menu {
  position: absolute; right: 0; top: calc(100% + 12px); width: 218px;
  background: var(--menu-bg); border: 1px solid var(--line-strong); border-radius: 13px; padding: 7px;
  box-shadow: var(--shadow-pop);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98);
  transition: 0.16s ease; z-index: 70;
}
.user-menu.open { opacity: 1; visibility: visible; transform: none; }
.user-menu-head { padding: 9px 10px 11px; border-bottom: 1px solid var(--line-strong); margin-bottom: 6px; }
.user-menu-head b { display: block; font-size: 13px; color: var(--text); }
.user-menu-head span { display: block; font-size: 10.5px; color: var(--faint); margin-top: 3px; }
.user-menu a, .user-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 10px; border: 0; border-radius: 8px; background: none;
  color: var(--text-2); font-size: 12.5px; text-align: left; transition: 0.14s;
}
.user-menu a:hover, .user-menu button:hover { background: var(--menu-hover); color: #fff; }
.user-menu a svg, .user-menu button svg { opacity: 0.82; flex: none; }
.user-menu .danger { color: #ff9aa5; }
.user-menu .danger:hover { background: #2a1a22; color: #ffb3bc; }
.user-menu-sep { height: 1px; background: var(--line-strong); margin: 6px 4px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(145deg, #9b7bff, #6d5bf6);
  box-shadow: 0 4px 14px rgba(109, 91, 246, 0.35);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-meta { line-height: 1.3; }
.user-meta b { font-size: 12.5px; font-weight: 600; display: block; }
.user-meta span { font-size: 10.5px; color: var(--faint); }

.shell { display: flex; min-height: calc(100vh - var(--topbar-h)); }
.sidebar {
  width: var(--sidebar-w); flex: none;
  padding: 26px 14px 20px;
  border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(180deg, var(--sidebar-a), var(--sidebar-b));
}
.side-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  color: var(--muted); font-size: 13px; position: relative; transition: 0.16s;
}
.side-item svg { width: 16px; height: 16px; opacity: 0.85; }
.side-item:hover { color: var(--text-2); background: var(--tint-1); }
.side-item.active { color: #e7eeff; background: var(--row-hover); box-shadow: inset 0 0 0 1px var(--nav-active-line); }
.side-item.active::before {
  content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 16px; border-radius: 0 3px 3px 0; background: var(--blue);
}
.side-item .badge-count { margin-left: auto; }
.side-card {
  margin-top: auto; padding: 14px 15px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px;
}
.side-card span { font-size: 11px; color: var(--muted); }
.side-card b { display: block; font-size: 17px; margin-top: 2px; color: #ffd9a0; font-weight: 600; letter-spacing: 0.02em; }
.drawer-study { margin: 0 6px 10px; padding: 11px 13px; }
.drawer-study b { font-size: 15px; }

.main { flex: 1; min-width: 0; padding: 30px var(--page-pad-x) 56px; }
.page { max-width: var(--page-max); margin: 0 auto; animation: fade 0.28s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 页脚（仅配置了备案号/版权时出现） */
.page-foot {
  max-width: var(--page-max);
  margin: 30px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--faint);
}
.page-foot a { color: var(--muted); text-decoration: none; }
.page-foot a:hover { color: var(--text-2); text-decoration: underline; }

/* ------------------------------------------------------------------ 标题 */
.eyebrow {
  font-size: 11px; letter-spacing: 0.16em; font-weight: 600;
  color: var(--blue); text-transform: uppercase;
}
.page-head { margin-bottom: 24px; }
.page-head h1 { margin: 6px 0 6px; font-size: 30px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; }
.page-head p { margin: 0; color: var(--muted); font-size: 12.5px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.crumb { font-size: 12px; color: var(--faint); margin-bottom: 10px; }
.crumb a:hover { color: var(--blue); }

/* ------------------------------------------------------------------ 通用块 */
.card {
  background: linear-gradient(180deg, var(--card-a), var(--card-b));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card.tight { padding: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h3 { margin: 0; font-size: 14.5px; font-weight: 600; }
.card-head .hint { font-size: 11.5px; color: var(--faint); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 11.5px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* ------------------------------------------------------------------ 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 18px; border-radius: 9px;
  border: 1px solid var(--line-strong); background: var(--btn-bg); color: var(--text-2);
  font-size: 12.5px; font-weight: 500; transition: 0.16s; white-space: nowrap;
}
.btn:hover { border-color: var(--line-hover); color: #fff; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn svg { width: 15px; height: 15px; }
.btn-primary {
  background: linear-gradient(180deg, #6788ff, #4a6cf4);
  border-color: #6788ff; color: #fff;
  box-shadow: 0 8px 22px rgba(74, 108, 244, 0.3);
}
.btn-primary:hover { background: linear-gradient(180deg, #7b98ff, #5474f7); border-color: #7b98ff; }
.btn-ghost { background: transparent; border-color: var(--line-strong); }
.btn-dark { background: var(--menu-hover); border-color: var(--nav-active-line); }
.btn-purple { background: #2a2140; border-color: #453466; color: #c9b6ff; }
.btn-danger { background: #2a1a22; border-color: #4a2833; color: #ff9aa5; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 11.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.link { color: var(--blue); font-size: 12px; }
.link:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ 徽章/标签 */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px; font-size: 11px; line-height: 1.6;
  background: var(--line-soft); color: var(--text-2); border: 1px solid var(--nav-active);
}
.badge.green { color: #6ff0c8; background: var(--green-soft); border-color: rgba(53, 214, 164, 0.28); }
.badge.amber { color: #ffd08a; background: var(--amber-soft); border-color: rgba(240, 182, 75, 0.3); }
.badge.red { color: #ff9ba6; background: var(--red-soft); border-color: rgba(242, 112, 127, 0.3); }
.badge.purple { color: #c4b1ff; background: var(--purple-soft); border-color: rgba(139, 92, 246, 0.3); }
.badge.blue { color: #a9bcff; background: var(--blue-soft); border-color: rgba(91, 124, 250, 0.3); }
.badge.plain { background: var(--row); }
.badge-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  display: inline-grid; place-items: center; background: var(--line-strong); color: var(--muted);
  font-size: 10.5px; font-weight: 600;
}
.badge-count.active { background: #4a6cf4; color: #fff; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 14px; border-radius: 999px;
  background: var(--chip-bg); border: 1px solid var(--line); color: var(--muted); font-size: 12px;
}
.chip.active { background: var(--line-strong); border-color: var(--line-hover); color: var(--text); }
.chip:hover { border-color: var(--line-hover); }

/* ------------------------------------------------------------------ 数据卡 */
.stat { padding: 18px 20px; }
.stat label { font-size: 11.5px; color: var(--muted); display: block; }
.stat .value { font-size: 32px; line-height: 1.25; font-weight: 650; letter-spacing: -0.02em; margin-top: 4px; }
.stat .value small { font-size: 14px; font-weight: 500; color: var(--text-2); margin-left: 3px; }
.stat .foot { font-size: 11px; color: var(--faint); margin-top: 6px; }
.stat .value.green { color: #4fe0b4; }
.stat .value.amber { color: #f4c46e; }
.stat .value.red { color: #ff8b96; }
.stat .value.blue { color: #7d9bff; }
.stat .value.purple { color: #b79bff; }
.stat .value.pink { color: #ff9ecb; }

/* ------------------------------------------------------------------ 表单 */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 11.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 13px;
  background: var(--input); border: 1px solid var(--line); border-radius: 9px;
  color: var(--text); outline: none; transition: 0.16s;
}
.textarea { height: auto; min-height: 96px; padding: 11px 13px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--line-hover); box-shadow: 0 0 0 3px rgba(91, 124, 250, 0.12); }
.input::placeholder, .textarea::placeholder { color: var(--line-hover); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%), linear-gradient(135deg, var(--faint) 50%, transparent 50%); background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.switch {
  width: 40px; height: 22px; border-radius: 999px; background: var(--line-strong);
  position: relative; border: 0; transition: 0.2s; flex: none;
}
.switch::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  background: var(--faint); top: 3px; left: 3px; transition: 0.2s;
}
.switch.on { background: rgba(91, 124, 250, 0.55); }
.switch.on::after { left: 21px; background: #fff; }
.check {
  width: 17px; height: 17px; border-radius: 5px; border: 1px solid var(--line-strong);
  background: var(--input); display: inline-grid; place-items: center; flex: none; transition: 0.15s;
}
.check.on { background: var(--blue); border-color: var(--blue); }
.check.on::after { content: ""; width: 8px; height: 4px; border-left: 1.6px solid #fff; border-bottom: 1.6px solid #fff; transform: rotate(-45deg) translateY(-1px); }
.radio { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-grid; place-items: center; }
.radio.on { border-color: var(--blue); }
.radio.on::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }

/* ------------------------------------------------------------------ 表格 */
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 11px; font-weight: 500; color: var(--faint);
  padding: 0 14px 12px; white-space: nowrap;
}
.table td { padding: 13px 14px; font-size: 12.5px; border-top: 1px solid var(--line-soft); color: var(--text-2); }
.table tbody tr { transition: 0.15s; }
.table tbody tr:hover { background: var(--tint-1); }
.table td b { color: var(--text); font-weight: 550; }
.table .actions { text-align: right; }
.table-wrap { overflow-x: auto; }

/* ------------------------------------------------------------------ 顶部标签页 */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--input); border: 1px solid var(--track); border-radius: 11px; }
.tabs button {
  height: 30px; padding: 0 14px; border-radius: 8px; border: 0; background: none;
  color: var(--muted); font-size: 12px; transition: 0.16s;
}
.tabs button.active { background: #4a6cf4; color: #fff; box-shadow: 0 4px 12px rgba(74, 108, 244, 0.28); }
.tabs.plain button.active { background: var(--chip-bg); color: var(--text); box-shadow: none; }

/* ------------------------------------------------------------------ 座位地图 */
.seatmap {
  background:
    linear-gradient(180deg, rgba(19, 27, 38, 0.6), rgba(13, 19, 27, 0.9));
  border: 1px solid var(--line); border-radius: 14px; padding: 22px;
}
.zone-row { display: flex; gap: 18px; justify-content: center; margin-bottom: 26px; }
.zone-block {
  flex: 1; max-width: 220px; height: 62px; border-radius: 10px;
  display: grid; place-items: center; font-size: 11.5px; color: var(--muted);
  background: var(--chip-bg); border: 1px solid var(--line);
}
.seat-grid { display: grid; gap: 7px; justify-content: center; }
.seat {
  height: 26px; border-radius: 5px; display: grid; place-items: center;
  font-size: 9.5px; font-weight: 500;
  background: var(--chip-bg); color: var(--faint); border: 1px solid transparent;
  transition: 0.12s; cursor: default;
}
.seat.free { background: #123a2f; color: #4fe0b4; border-color: #1d5544; }
.seat.occupied { background: var(--nav-active); color: var(--faint); border-color: var(--line-strong); }
.seat.release { background: #3a2f16; color: #f4c46e; border-color: #5d4a20; }
.seat.mine { background: linear-gradient(180deg, #8f6cf7, #6f4fe0); color: #fff; border-color: #a98cff; box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.25); }
.seat.maintain { background: #2a2028; color: #8a7080; border-color: #3a2b34; }
.seat.pick { outline: 2px solid #9fb6ff; outline-offset: 1px; }
.seat:hover:not(.occupied) { transform: translateY(-2px); }
.legend { display: flex; gap: 18px; justify-content: center; margin-top: 20px; font-size: 11px; color: var(--muted); }
.legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }

/* ------------------------------------------------------------------ 计时环 */
.ring { position: relative; width: 210px; height: 210px; margin: 6px auto; }
.ring svg { transform: rotate(-90deg); }
.ring .ring-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .ring-text b { font-size: 30px; font-weight: 650; letter-spacing: 0.01em; }
.ring .ring-text span { font-size: 11.5px; color: var(--muted); }

/* ------------------------------------------------------------------ 图书 */
.book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.book-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.book-main { display: flex; gap: 14px; }
.cover {
  width: 74px; height: 104px; border-radius: 7px; flex: none; position: relative;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45); overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 9px;
}
.cover::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: rgba(255, 255, 255, 0.16);
}
.cover span { font-size: 10px; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.9); font-weight: 600; }
.cover.blue { background: linear-gradient(155deg, #4d6fd8, var(--line-hover)); }
.cover.purple { background: linear-gradient(155deg, #8a5cf0, #5c3aa8); }
.cover.green { background: linear-gradient(155deg, #2fa885, #1c6d58); }
.cover.orange { background: linear-gradient(155deg, #c07a44, #8a5127); }
.cover.large { width: 100%; height: 100%; border-radius: 12px; padding: 20px; }
.cover.large span { font-size: 12px; }

/* 本地生成的 SVG 书封：直接铺满原有封面盒，不再需要内边距与伪元素书脊 */
.cover.cover-face { display: block; padding: 0; }
.cover.cover-face.large { padding: 0; }
.cover-face text { font-family: var(--font); }
.book-title { font-size: 14px; font-weight: 600; margin: 0 0 3px; }
.book-author { font-size: 11.5px; color: var(--muted); }
.book-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line-soft); padding-top: 11px; font-size: 11px; color: var(--faint); }
.book-hit em { font-style: normal; color: var(--faint); }

/* ------------------------------------------------------------------ 时间轴 */
.timeline { position: relative; padding: 26px 10px 8px; }
.timeline::before { content: ""; position: absolute; left: 6%; right: 6%; top: 62px; height: 1px; background: var(--nav-active); }
.timeline-row { display: flex; justify-content: space-between; position: relative; }
.tl-item { flex: 1; text-align: center; position: relative; }
.tl-item .date { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.tl-item .dot { width: 12px; height: 12px; border-radius: 50%; margin: 14px auto 10px; box-shadow: 0 0 0 4px var(--bg); }
.tl-item .name { font-size: 11.5px; color: var(--text-2); }

/* ------------------------------------------------------------------ 图表 */
.chart { width: 100%; display: block; }
.bars { display: flex; align-items: flex-end; gap: 14px; height: 190px; padding: 10px 4px 0; }
.bars .bar { flex: 1; border-radius: 6px 6px 3px 3px; min-height: 8px; position: relative; transition: 0.3s; }
.bars .bar:hover { filter: brightness(1.15); }
.bars .bar span { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--faint); }
.heatmap { display: grid; grid-template-columns: repeat(8, 1fr); gap: 7px; }
.heatmap i { aspect-ratio: 1; border-radius: 4px; background: #4a6cf4; display: block; }

/* ------------------------------------------------------------------ 二维码 */
/* 真实二维码（SVG，本地生成）：白底 + 静区，保证手机可扫 */
.qrcode {
  display: block;
  width: 168px;
  height: 168px;
  margin: 14px auto 16px;
  padding: 10px;
  background: #f7f9ff;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}
.qr-fallback {
  width: 168px; height: 168px; margin: 14px auto 16px;
  display: grid; place-items: center;
  background: var(--input); border: 1px dashed var(--line-strong); border-radius: 12px;
  color: var(--faint); font-size: 12px;
}

/* ------------------------------------------------------------------ 提示/空态 */
.empty { text-align: center; padding: 42px 20px; color: var(--faint); }
.empty b { display: block; color: var(--text-2); font-size: 14px; margin-bottom: 6px; font-weight: 550; }
.note {
  padding: 13px 15px; border-radius: 11px; font-size: 11.5px; line-height: 1.65;
  background: rgba(139, 92, 246, 0.09); border: 1px solid rgba(139, 92, 246, 0.22); color: #c9bcf0;
}
.note.amber { background: var(--amber-soft); border-color: rgba(240, 182, 75, 0.25); color: #f3cf92; }
.note.blue { background: var(--blue-soft); border-color: rgba(91, 124, 250, 0.25); color: #b9caff; }
.note b { color: #e6dcff; }
.note .t { font-weight: 600; margin-bottom: 4px; color: #d9cdfb; }

/* 书猫 */
.cat {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  background: var(--purple-soft); border: 1.5px solid var(--line-hover); color: var(--purple-ink);
  font-size: 15px; font-weight: 600; box-shadow: 0 0 0 6px rgba(107, 79, 208, 0.08);
}
.cat.sm { width: 46px; height: 46px; font-size: 12px; box-shadow: 0 0 0 4px rgba(107, 79, 208, 0.07); }

/* 工作台的「图书馆的一天」卡片 */
.story-card { background: var(--row); border-color: var(--line-soft); cursor: pointer; }
.story-time { color: var(--faint); font-variant-numeric: tabular-nums; }
.story-bar { height: 5px; border-radius: 4px; background: var(--track); margin-top: 12px; overflow: hidden; }

/* 工作台「当前座位」横幅 */
.dash-seat-banner { border-color: var(--seat-banner-line); background: var(--seat-banner-bg); }
.dash-seat-icon {
  width: 40px;
  height: 40px;
  background: var(--seat-pill-bg);
  color: var(--seat-pill-ink);
  box-shadow: none;
}

/* 分栏内容 */
.split { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; align-items: start; }
.split.wide { grid-template-columns: minmax(0, 1fr) 330px; }
.split.third { grid-template-columns: minmax(0, 1fr) 360px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.list-item {
  padding: 10px 13px; border-radius: 9px; color: var(--muted); font-size: 12.5px;
  display: flex; align-items: center; gap: 9px; cursor: pointer; transition: 0.15s;
}
.list-item:hover { background: var(--tint-1); color: var(--text-2); }
.list-item.active { background: var(--chip-bg); color: #dfe8ff; box-shadow: inset 0 0 0 1px var(--line-strong); }

/* 时间选择网格 */
.slot-grid { display: grid; gap: 6px; font-size: 10.5px; }
.slot {
  height: 34px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface-2);
  display: grid; place-items: center; color: var(--faint); font-size: 10.5px; transition: 0.12s;
}
.slot.free:hover { border-color: #4a6cf4; color: #cfdcff; }
.slot.booked { background: #2a2418; border-color: #51401f; color: #b99a5f; }
.slot.mine { background: #2b2547; border-color: #6c55c9; color: #c9b6ff; }
.slot.picked { background: #4a6cf4; border-color: #7d9bff; color: #fff; }
.slot.disabled { opacity: 0.35; }

/* 头像上传 */
.avatar-upload { display: flex; align-items: center; gap: 16px; }
.avatar-upload .avatar { width: 64px; height: 64px; font-size: 22px; }

/* Toast / Modal */
.toast-wrap { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 240px; max-width: 360px; padding: 12px 15px; border-radius: 10px;
  background: var(--row); border: 1px solid var(--line-strong); color: var(--text-2);
  box-shadow: var(--shadow); font-size: 12.5px; display: flex; gap: 9px; align-items: flex-start;
  animation: slidein 0.24s ease;
}
.toast.success { border-color: rgba(53, 214, 164, 0.35); }
.toast.error { border-color: rgba(242, 112, 127, 0.35); }
.toast i { width: 6px; height: 6px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--blue); }
.toast.success i { background: var(--green); }
.toast.error i { background: var(--red); }
@keyframes slidein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.modal-mask {
  position: fixed; inset: 0; background: var(--overlay); z-index: 90;
  display: grid; place-items: center; padding: 20px; backdrop-filter: blur(3px);
}
.modal {
  width: 100%; max-width: 460px; background: var(--card-b); border: 1px solid var(--line-strong);
  border-radius: 16px; padding: 22px; box-shadow: var(--shadow); animation: fade 0.2s ease;
}
.modal h3 { margin: 0 0 6px; font-size: 16px; }
.modal p { margin: 0; color: var(--muted); font-size: 12.5px; }

/* 登录页 */
.auth {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr 0.95fr;
  background: radial-gradient(900px 600px at 20% 15%, var(--chip-bg) 0%, transparent 60%), var(--bg-deep);
}
.auth-left { padding: 64px 70px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--row); }
.auth-brand { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; letter-spacing: 0.14em; }
.auth-hero h2 { font-size: 42px; line-height: 1.25; margin: 0 0 18px; letter-spacing: -0.02em; }
.auth-hero p { color: var(--muted); font-size: 13.5px; max-width: 460px; }
.auth-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.auth-point { padding: 16px; border-radius: 13px; background: rgba(19, 27, 38, 0.7); border: 1px solid var(--line); }
.auth-point b { display: block; font-size: 22px; margin-bottom: 4px; }
.auth-point span { font-size: 11px; color: var(--faint); }
.auth-right { display: grid; place-items: center; padding: 40px; }
.auth-card { width: 100%; max-width: 380px; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 42px; }
.pw-eye {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
}
.pw-eye:hover { background: var(--tint-1); color: var(--text); }
.pw-count { color: var(--faint); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.pw-rules { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; }
.pw-rules span { color: var(--faint); font-size: 10.5px; line-height: 1.5; }
.pw-rules span::before { content: "○ "; }
.pw-rules span.ok { color: var(--green); }
.pw-rules span.ok::before { content: "✓ "; }
.field-hint.ok { color: var(--green); }
.field-hint.err { color: var(--red); }
.pw-limit { color: var(--amber); }
.auth-card .btn:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-mini-stats { display: none; }
@media (max-width: 900px) {
  .auth-mini-stats { display: flex; gap: 10px; margin: 0 0 18px; }
  .auth-mini-stats div {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--input);
  }
  .auth-mini-stats b { display: block; font-size: 18px; color: var(--text); }
  .auth-mini-stats span { font-size: 10.5px; color: var(--faint); }
}

.auth-section {
  margin: 10px 0 -2px;
  color: var(--faint);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) {
  .auth-row { grid-template-columns: 1fr; }
}

.auth-card h3 { font-size: 24px; margin: 0 0 6px; }
.auth-card .sub { color: var(--muted); font-size: 12.5px; margin-bottom: 26px; }
.auth-switch { text-align: center; font-size: 12px; color: var(--faint); margin-top: 20px; }
.auth-switch a { color: var(--blue); }

/* 忘记密码 / 重置密码 */
.field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.field-hint { margin-top: 6px; color: var(--faint); font-size: 10.5px; line-height: 1.5; }
.auth-forgot { font-size: 11.5px; color: var(--blue); }
.auth-forgot:hover { color: #9db4ff; text-decoration: underline; }
.auth-success,
.auth-warn-icon { text-align: left; }
.auth-success-icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--green-soft); color: var(--green);
  border: 1px solid rgba(53, 214, 164, 0.32);
}
.auth-warn-icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--amber-soft); color: var(--amber);
  border: 1px solid rgba(240, 182, 75, 0.32);
}
.auth-card .auth-success h3 { margin-bottom: 6px; }
.auth-card .auth-success .sub,
.auth-card .auth-warn-icon ~ .sub { margin-bottom: 18px; }

/* 404 页 */
.err-card { display: flex; align-items: center; gap: 26px; padding: 34px; }
.err-orb {
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; font-weight: 600; flex: none; letter-spacing: 0.04em;
}
.err-orb.purple { background: #211a38; color: #b79bff; border: 1px solid #3d2f60; }
.err-orb.amber { background: #2b2416; color: #f0c56f; border: 1px solid #4d3d1f; }
.err-orb.red { background: #2b1a20; color: #ff9aa5; border: 1px solid #4d2833; }
.err-orb.blue { background: var(--chip-bg); color: #8fb4ff; border: 1px solid var(--line-hover); }

/* ------------------------------------------------------------------ 移动端抽屉 */
.menu-btn { display: none; }
.drawer,
.drawer-mask { display: none; }

/* 工作台：主次分栏 + 5 段时间叙事（移动端改为横向滑动） */
.dash-split { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
.dash-split > .card { display: flex; flex-direction: column; }
.dash-quick-foot { margin-top: auto; padding-top: 20px; }
.story-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.dash-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ------------------------------------------------------------------ 宽屏（≥1600 / ≥1920 / ≥2200） */
@media (max-width: 1180px) {
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1600px) {
  :root {
    --page-max: 1460px;
    --page-pad-x: 44px;
    --sidebar-w: 228px;
  }
  .book-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1920px) {
  :root {
    --page-max: 1620px;
    --page-pad-x: 52px;
  }
  .page-head h1 { font-size: 32px; }
  .card { padding: 22px; }
  .stat { padding: 20px 22px; }
  .card.tight { padding: 18px; }
  .stat .value { font-size: 38px; }
}
@media (min-width: 2200px) {
  :root {
    --page-max: 1780px;
    --page-pad-x: 64px;
  }
  .book-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}


/* 响应式 */
@media (max-width: 1180px) {
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split.wide, .split.third { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    margin-right: -2px;
    color: var(--text-2);
  }
  .menu-btn:hover { color: #fff; }
  .topbar { padding: 0 12px; gap: 10px; }
  .nav { display: none; }
  .search-box { width: 150px; }
  .sidebar { display: none; }
  .main { padding: 20px 16px 40px; }
  .g2, .g3, .g5, .g4 { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-left { display: none; }

  /* 工作台：分栏堆叠，叙事改横向滑动 */
  .dash-split { grid-template-columns: 1fr; }
  .story-grid {
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }
  .story-grid > * { scroll-snap-align: start; }

  /* 遮罩 + 抽屉 */
  .drawer-mask {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--overlay);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  body.drawer-open .drawer-mask { opacity: 1; pointer-events: auto; }
  .drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 95;
    width: 84%;
    max-width: 328px;
    padding: 14px 12px 18px;
    background: linear-gradient(180deg, var(--card-b), var(--bg-deep));
    border-right: 1px solid var(--line);
    /* 关闭时关掉投影并隐藏，否则 off-canvas 抽屉的阴影会在浅色模式左边缘留一条黑边 */
    box-shadow: none;
    visibility: hidden;
    transform: translateX(-102%);
    transition: transform 0.24s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0.24s;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .drawer.open {
    transform: none;
    visibility: visible;
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.55);
  }
  body.drawer-open { overflow: hidden; }
  .drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 6px 12px;
    border-bottom: 1px solid var(--line-soft);
  }
  .drawer-head .brand { min-width: 0; }
  .drawer-close { color: var(--muted); }
  .drawer-user {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 8px 12px;
  }
  .drawer-user .user-meta b { font-size: 13.5px; }
  .drawer-search {
    width: 100%;
    margin: 0 0 8px;
    height: 40px;
    flex: none;
  }
  .drawer-nav { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
  .drawer-title {
    padding: 12px 14px 6px;
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
  }
  .drawer-nav .side-item { padding: 12px 14px; font-size: 14px; }
  .drawer-nav .side-item svg { width: 18px; height: 18px; }
  .drawer-links {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .drawer-links a,
  .drawer-links button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--text-2);
    font-size: 13px;
    text-align: left;
  }
  .drawer-links a:hover,
  .drawer-links button:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
  .drawer-links .danger { color: #ff9aa5; }
}
@media (max-width: 560px) {
  .topbar { padding: 0 10px; gap: 8px; }
  .brand { min-width: 0; gap: 8px; }
  .brand-name { font-size: 15px; letter-spacing: 0.08em; }
  /* 顶栏放不下搜索/账号文字时隐藏，抽屉里仍保留完整搜索与账号信息 */
  .topbar .search-box { display: none; }
  .kbd { display: none; }
  .topbar .user-meta { display: none; }
  .user-chip { padding-left: 6px; }
  .page-head h1 { font-size: 22px; }
  .page-head p { font-size: 12px; }
  .head-row { align-items: flex-start; }
}

/* ---- 手机端增强（≤560）：统计卡两列、弹窗满宽、表格紧凑、筛选折叠 ---- */
.m-filter-toggle { display: none; }

@media (max-width: 560px) {
  .grid.g3, .grid.g4, .grid.g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid.g3 > :last-child:nth-child(odd),
  .grid.g5 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stat { padding: 14px 14px 12px; }
  .stat .value { font-size: 24px; }
  .stat .value small { font-size: 12px; }
  .stat .foot { font-size: 10.5px; line-height: 1.55; }
  .card { padding: 16px; }
  .card.tight { padding: 13px; }
  .main { padding: 16px 12px 36px; }
  .page-head { margin-bottom: 16px; }
  .head-row { flex-wrap: wrap; gap: 10px; }
  .head-row .row { flex-wrap: wrap; }
  .modal-mask { padding: 10px; align-items: start; overflow-y: auto; }
  .modal { max-width: none; margin: 14px 0; padding: 18px 16px; }
  .table th, .table td { padding: 9px 10px; font-size: 12px; }
  .table th { font-size: 10.5px; }
  .table .actions .btn { min-width: 0; padding: 5px 9px; }
  .table-wrap { -webkit-overflow-scrolling: touch; }

  /* 手机端表格：不强制换行，列多时横向滑动；隐藏次要列，保留关键信息与操作 */
  .card { min-width: 0; }
  .row { flex-wrap: wrap; }
  .table th.actions, .table td.actions { position: sticky; right: 0; background: var(--card-b); box-shadow: -10px 0 12px -12px rgba(0,0,0,.45); }
  .table-wrap { min-width: 0; max-width: 100%; }
  .grid > *, .split > *, [class*="layout"] > * { min-width: 0; }
  .table th, .table td { white-space: nowrap; }
  .table .actions { background: var(--card-b); }
  .lib-loans td:first-child { white-space: normal; min-width: 132px; }
  .lib-loans th:nth-child(2), .lib-loans td:nth-child(2),
  .lib-loans th:nth-child(4), .lib-loans td:nth-child(4) { display: none; }
  .bk-table th:nth-child(3), .bk-table td:nth-child(3),
  .bk-table th:nth-child(4), .bk-table td:nth-child(4),
  .bk-table th:nth-child(7), .bk-table td:nth-child(7) { display: none; }
  .adm-logs th:nth-child(3), .adm-logs td:nth-child(3),
  .adm-logs th:nth-child(5), .adm-logs td:nth-child(5) { display: none; }
  .adm-logs td:nth-child(6) { white-space: normal; min-width: 180px; }
  .adm-readers-table th:nth-child(3), .adm-readers-table td:nth-child(3) { display: none; }
  .bk-toolbar > .row { min-width: 0 !important; width: 100%; flex-wrap: wrap; }
  .bk-toolbar .bk-search { flex: 1 1 100%; width: 100%; }
  .bk-toolbar .select { width: 100% !important; }
  .adm-readers-table .actions { width: 74px; min-width: 74px; padding-left: 4px; padding-right: 4px; }
  .adm-readers-table .actions .btn { padding: 3px 5px; font-size: 11px; }
  .bk-toolbar > .row > svg:first-child { display: none; }
  .set-profile-grid, .set-password-grid { grid-template-columns: 1fr; }
  .set-profile-grid .input, .set-password-grid .input { width: 100%; }
  .set-panel { padding: 16px; }

  /* 筛选面板在小屏默认折叠，点“展开”再显示，避免首屏被筛选项占满 */
  .m-filter-toggle { display: inline-flex; }
  .seat-filter .filter-body, .cat-filter .filter-body { display: none; }
  .seat-filter.is-open .filter-body, .cat-filter.is-open .filter-body { display: block; }
  .seat-filter .card-head, .cat-filter .card-head { margin-bottom: 0; }
  .seat-filter.is-open .card-head, .cat-filter.is-open .card-head { margin-bottom: 16px; }

  .set-nav { scrollbar-width: none; }
  .set-nav::-webkit-scrollbar { display: none; }
}

.scroll-hint { display: none; }
@media (max-width: 900px) {
  .scroll-hint {
    display: block;
    margin: -2px 0 10px;
    color: var(--faint);
    font-size: 11px;
    letter-spacing: 0.02em;
  }
}
