/* ============================================================
   11娱乐+ PC 后台管理 · 深色简约·电青（Clean Dark · Electric Cyan）
   设计系统来源：design-system/11娱乐+/MASTER.md
   - 主色电青 #22D3EE 仅用于 CTA / 选中态 / 数值，克制点缀
   - 玫红 #F43F5E 仅用于警示语义（危险操作 / 待办告警）
   - 禁霓虹发光、禁大面积渐变、禁高饱和金/紫作主色
   - 大留白 + 细边框 + 极简卡片，杜绝「AI 感」
   ============================================================ */
:root {
  --bg: #0B0B0F;
  --side: #0E0E14;
  --card: #15151C;
  --card-2: #1A1A24;
  --border: #23232E;
  --border-soft: #1C1C26;
  --cyan: #22D3EE;
  --cyan-light: #67E8F9;
  --cyan-deep: #0E7490;
  --cyan-tint: rgba(34, 211, 238, .12);
  --text: #E2E8F0;
  --text-2: #CBD5E1;
  --muted: #94A3B8;
  --faint: #64748B;
  --green: #34D399;
  --green-tint: rgba(52, 211, 153, .12);
  --rose: #F43F5E;
  --rose-tint: rgba(244, 63, 94, .12);
  --amber: #FBBF24;              /* 语义警示（待确认/维护），非主题色 */
  --amber-tint: rgba(251, 191, 36, .12);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .28);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg); color: var(--text); font-size: 14px;
  font-family: var(--font); -webkit-font-smoothing: antialiased; line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 通用按钮 ---------- */
.btn {
  background: var(--cyan); color: #04242E; border: none; border-radius: var(--radius-sm);
  padding: 9px 18px; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: background .18s ease, transform .06s ease, box-shadow .18s ease;
  box-shadow: 0 2px 10px rgba(34, 211, 238, .18);
}
.btn:hover { background: var(--cyan-light); box-shadow: 0 3px 14px rgba(34, 211, 238, .3); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 2px;
}
.btn.ghost { background: transparent; color: var(--cyan); border: 1px solid rgba(34, 211, 238, .4); box-shadow: none; }
.btn.ghost:hover { background: var(--cyan-tint); box-shadow: none; }
.btn.ghost.ok { color: var(--green); border-color: rgba(52, 211, 153, .4); }
.btn.ghost.ok:hover { background: var(--green-tint); }
.btn.ghost.warn { color: var(--rose); border-color: rgba(244, 63, 94, .45); }
.btn.ghost.warn:hover { background: var(--rose-tint); }
.btn.danger { background: var(--rose-tint); color: #FCA5A5; border: 1px solid rgba(244, 63, 94, .45); box-shadow: none; }
.btn.danger:hover { background: rgba(244, 63, 94, .2); box-shadow: none; }
.alert { padding: 11px 13px; border-radius: 9px; font-size: 13px; line-height: 1.6; margin-bottom: 12px; }
.alert.danger { background: var(--rose-tint); border: 1px solid rgba(244, 63, 94, .4); color: #FCA5A5; }
.btn.mini { padding: 5px 11px; font-size: 12px; border-radius: 7px; }

/* ---------- 徽章 ---------- */
.badge { font-size: 12px; padding: 4px 12px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.badge.ok { color: var(--green); border-color: rgba(52, 211, 153, .45); background: var(--green-tint); }
.badge.err { color: #FCA5A5; border-color: rgba(244, 63, 94, .5); background: var(--rose-tint); }
.badge.wait { color: var(--muted); border-color: var(--border); }
.st { font-size: 11px; padding: 2px 10px; border-radius: 999px; white-space: nowrap; display: inline-block; }
.st.available, .st.active, .st.success, .st.wx { color: var(--green); border: 1px solid rgba(52, 211, 153, .4); background: var(--green-tint); }
.st.booked, .st.reserved, .st.staff { color: var(--cyan); border: 1px solid rgba(34, 211, 238, .4); background: var(--cyan-tint); }
.st.occupied, .st.cancelled, .st.failed, .st.completed, .st.no, .st.demo { color: var(--muted); border: 1px solid var(--border); background: rgba(148, 163, 184, .08); }
.st.maintenance, .st.pending { color: var(--amber); border: 1px solid rgba(251, 191, 36, .4); background: var(--amber-tint); }
.st.checked_out { color: #FCA5A5; border: 1px solid rgba(244, 63, 94, .5); background: var(--rose-tint); }
.st.yes { color: var(--green); border: 1px solid rgba(52, 211, 153, .4); background: var(--green-tint); }
.st.owner { color: var(--cyan-light); border: 1px solid rgba(103, 232, 249, .5); background: var(--cyan-tint); }

/* ============================================================
   登录页
   ============================================================ */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1100px 560px at 18% -12%, rgba(34, 211, 238, .1), transparent 60%),
    radial-gradient(800px 520px at 92% 112%, rgba(94, 234, 212, .07), transparent 55%),
    var(--bg);
  padding: 20px;
}
.login-card {
  width: 372px; max-width: 100%; background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 44px 36px; display: flex; flex-direction: column; gap: 15px;
  box-shadow: var(--shadow-lg);
}
.login-logo { font-size: 30px; font-weight: 900; letter-spacing: 2px; text-align: center; color: var(--text); }
.login-logo span { color: var(--cyan-light); }
.login-sub { color: var(--muted); font-size: 13px; text-align: center; margin-bottom: 8px; letter-spacing: 3px; }
.login-card input {
  background: #10101A; border: 1px solid var(--border); color: var(--text); border-radius: 11px;
  padding: 13px 15px; font-size: 14px; width: 100%; transition: border-color .18s ease, box-shadow .18s ease;
}
.login-card input::placeholder { color: var(--faint); }
.login-card input:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(34, 211, 238, .15); }
.login-err { color: #FCA5A5; font-size: 12px; min-height: 16px; text-align: center; }
.login-btn { padding: 14px; font-size: 15px; letter-spacing: 6px; border-radius: 11px; }
.login-hint { color: var(--muted); font-size: 12px; text-align: center; }
.login-hint code { color: var(--text-2); background: #10101A; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--border-soft); }
.login-forgot { margin: 0 0 2px; text-align: right; }
.login-forgot a { color: var(--muted); font-size: 13px; text-decoration: none; transition: color .15s ease; }
.login-forgot a:hover { color: var(--cyan-light); }
.hint { color: var(--faint); font-size: 12px; line-height: 1.6; margin: 2px 0 4px; }
.hint.ok-hint { color: var(--green); }

/* ============================================================
   后台布局
   ============================================================ */
.app { display: flex; min-height: 100vh; }
.side {
  width: 224px; flex-shrink: 0; background: var(--side); border-right: 1px solid var(--border-soft);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.brand { padding: 22px 22px 16px; font-size: 20px; font-weight: 900; letter-spacing: 1px; }
.brand span { color: var(--cyan-light); }
.brand em { display: block; font-style: normal; color: var(--faint); font-size: 11px; font-weight: 600; margin-top: 3px; letter-spacing: 2px; }
#nav { flex: 1; padding: 8px 12px; overflow-y: auto; }
#nav a {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px;
  color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 2px; transition: background .16s ease, color .16s ease;
}
#nav a i { width: 6px; height: 6px; border-radius: 50%; background: #2A2A38; transition: background .16s ease, box-shadow .16s ease; }
#nav a:hover { color: var(--text); background: rgba(35, 35, 46, .6); }
#nav a.active { color: var(--cyan-light); background: var(--cyan-tint); }
#nav a.active i { background: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .18); }
#nav a.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 0 3px 3px 0; background: var(--cyan);
}
.side-foot { padding: 14px 14px 16px; border-top: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 8px; }
.side-user { color: var(--text-2); font-size: 12px; font-weight: 700; padding: 0 4px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 30px; border-bottom: 1px solid var(--border-soft); position: sticky; top: 0;
  background: rgba(11, 11, 15, .8); backdrop-filter: blur(8px); z-index: 10;
}
.topbar h1 { font-size: 18px; font-weight: 800; letter-spacing: .5px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.view { padding: 26px 30px 48px; max-width: 1240px; width: 100%; }

/* ---------- 卡片 / 表格 ---------- */
.card { background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.view-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.view-head h2 { font-size: 16px; font-weight: 800; letter-spacing: .5px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: 12px; white-space: nowrap; letter-spacing: .5px; }
td { color: var(--text-2); }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background .14s ease; }
tbody tr:hover td { background: rgba(35, 35, 46, .4); }
.amt { color: var(--cyan-light); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sub { color: var(--faint); font-size: 11px; margin-top: 2px; }
.act { white-space: nowrap; text-align: right; }
.act .btn { margin-left: 6px; }
.thumb { width: 60px; height: 34px; object-fit: cover; border-radius: 7px; border: 1px solid var(--border); display: block; }
.empty { color: var(--muted); font-size: 13px; padding: 28px 0; text-align: center; }
.err-text { color: #FCA5A5; }
.link { color: var(--cyan); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; color: var(--cyan-light); }
.occ { color: var(--text); font-weight: 700; white-space: nowrap; }
.sum-bar { padding: 14px 20px; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; gap: 6px; padding: 14px 2px 0; flex-wrap: wrap; }
.pager-info { color: var(--muted); font-size: 12px; margin-right: auto; }
.pager-prev, .pager-next { white-space: nowrap; }
.pager-num { min-width: 32px; text-align: center; color: var(--text-2); }
.pager-num.active { background: var(--cyan-tint); color: var(--cyan-light); border-color: rgba(34, 211, 238, .5); font-weight: 700; }
.pager-dot { color: var(--faint); font-size: 12px; padding: 0 2px; }
.sum-bar .chips { margin: -1px 0; }
.sum-bar .empty { padding: 10px 0; font-size: 12px; }

/* ---------- 数据概览 ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 20px; transition: border-color .16s ease; }
.stat .k { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 1px; }
.stat .v { font-size: 28px; font-weight: 900; margin-top: 10px; color: var(--cyan-light); letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.stat .v.green { color: var(--green); }
.stat .v.rose { color: #FCA5A5; }
.stat .v.ok { color: var(--green); }
.stat .sub { margin-top: 5px; }
/* 数据概览：分组布局 */
.stats-block { margin-bottom: 18px; display: flex; flex-direction: column; gap: 20px; }
.stat-group { display: flex; flex-direction: column; gap: 12px; }
.sg-title { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 2px; }
.sg-title::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--cyan); }
.sg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.stat-link { display: block; text-decoration: none; }
.stat-link:hover { border-color: rgba(34, 211, 238, .45); }

/* 数据概览：待办 / 快捷入口 / 快速搜索 */
.todo { display: flex; gap: 12px; margin-bottom: 16px; }
.todo-item { flex: 1; display: flex; align-items: baseline; gap: 10px; padding: 15px 18px; background: var(--card); border: 1px solid var(--border-soft); border-radius: 12px; color: var(--text); text-decoration: none; transition: border-color .16s ease, background .16s ease; }
.todo-item:hover { border-color: rgba(34, 211, 238, .4); background: var(--card-2); }
.todo-item b { font-size: 15px; white-space: nowrap; }
.todo-item span { color: var(--muted); font-size: 12px; }
.todo-item.warn { border-color: rgba(244, 63, 94, .4); }
.todo-item.warn b { color: #FCA5A5; }
.todo-item.ok b { color: var(--green); }
.quick-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.qa { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; background: var(--card); border: 1px solid var(--border-soft); border-radius: 10px; color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; transition: border-color .16s ease, color .16s ease; }
.qa:hover { border-color: var(--cyan); color: var(--cyan-light); }
.qa:active { transform: translateY(1px); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head .card-t { margin-bottom: 0; }
.list-search { background: #10101A; border: 1px solid var(--border); color: var(--text); border-radius: 9px; padding: 9px 13px; font-size: 13px; width: 230px; transition: border-color .16s ease, box-shadow .16s ease; }
.list-search::placeholder { color: var(--faint); }
.list-search:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(34, 211, 238, .14); }
.filter-row { display: flex; gap: 8px; margin-bottom: 14px; }
.flt { padding: 8px 17px; background: var(--card); border: 1px solid var(--border-soft); border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .16s ease; }
.flt:hover { color: var(--text); border-color: var(--border); }
.flt.active { color: var(--cyan-light); border-color: rgba(34, 211, 238, .5); background: var(--cyan-tint); }
.date-row { align-items: center; flex-wrap: wrap; }
.date-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.date-sep { color: var(--faint); }
.date-in { background: #10101A; border: 1px solid var(--border); color: var(--text); border-radius: 9px; padding: 7px 11px; font-size: 13px; color-scheme: dark; transition: border-color .16s ease, box-shadow .16s ease; }
.date-in:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(34, 211, 238, .14); }
.qs { position: relative; }
.qs input { width: 100%; background: #10101A; border: 1px solid var(--border); color: var(--text); border-radius: 11px; padding: 12px 15px; font-size: 14px; transition: border-color .16s ease, box-shadow .16s ease; }
.qs input::placeholder { color: var(--faint); }
.qs input:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(34, 211, 238, .14); }
.qs-res { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--card); border: 1px solid var(--border); border-radius: 12px; z-index: 20; max-height: 320px; overflow-y: auto; box-shadow: var(--shadow-md); }
.qs-h { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 1px; padding: 11px 15px 5px; }
.qs-i { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 15px; color: var(--text); text-decoration: none; font-size: 13px; transition: background .14s ease; }
.qs-i:hover { background: rgba(35, 35, 46, .5); }
.qs-i span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.qs-empty { padding: 15px; color: var(--muted); font-size: 13px; }
.amt.neg { color: #FCA5A5; }
.card-t { font-size: 15px; font-weight: 700; margin-bottom: 12px; letter-spacing: .3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 12px; color: var(--text-2); background: #10101A; border: 1px solid var(--border-soft); border-radius: 999px; padding: 7px 15px; }
.chip b { color: var(--cyan-light); font-variant-numeric: tabular-nums; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 980px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- 表单（弹窗 / 内联） ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--muted); font-size: 12px; font-weight: 600; }
.field label b { color: #FCA5A5; margin-left: 2px; }
.field input, .field select, .field textarea {
  background: #10101A; border: 1px solid var(--border); color: var(--text); border-radius: 10px;
  padding: 10px 13px; font-size: 13px; width: 100%; transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { resize: vertical; min-height: 76px; font-family: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(34, 211, 238, .14); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field select option { background: var(--card); color: var(--text); }
.field .hint { color: var(--faint); font-size: 11px; }
.check-row { flex-direction: row; align-items: center; gap: 8px; }
.check-row input { width: auto; accent-color: var(--cyan); }

/* ---------- 弹窗 ---------- */
.modal { position: fixed; inset: 0; background: rgba(4, 5, 9, .68); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal-card {
  width: 620px; max-width: 100%; max-height: 92vh; overflow-y: auto; background: var(--card);
  border: 1px solid var(--border); border-radius: 16px; padding: 24px;
  box-shadow: var(--shadow-lg);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head h3 { font-size: 16px; font-weight: 800; letter-spacing: .5px; }
.modal-head .x { background: none; border: none; color: var(--muted); font-size: 22px; cursor: pointer; line-height: 1; padding: 2px 7px; border-radius: 7px; transition: background .14s ease, color .14s ease; }
.modal-head .x:hover { color: var(--text); background: var(--border-soft); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(10px);
  background: var(--card-2); border: 1px solid var(--border); color: var(--text); padding: 12px 22px;
  border-radius: 11px; font-size: 13px; z-index: 99; opacity: 0; transition: opacity .2s ease, transform .2s ease;
  pointer-events: none; box-shadow: var(--shadow-md);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { border-color: rgba(244, 63, 94, .5); color: #FCA5A5; }

/* ---------- 房态日历（7天时间轴） ---------- */
.cal-range { font-size: 13px; color: var(--muted); }
.cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 12px 20px; }
.cal-legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); }
.cal-legend-item.sub { color: var(--muted); }
.cal-key { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.cal-key.day { background: var(--cyan); }
.cal-key.hourly { background: #60A5FA; }
.cal-key.pending { background: transparent; border: 1px dashed var(--faint); }
.cal-key.checked_out { background: var(--rose); }
.cal-card { padding: 0; overflow-x: auto; }
.cal-grid { min-width: 780px; }
.cal-head-row { display: flex; border-bottom: 1px solid var(--border-soft); background: rgba(21, 21, 28, .6); }
.cal-room-head { width: 180px; flex-shrink: 0; padding: 10px 15px; font-size: 12px; color: var(--muted); font-weight: 700; }
.cal-day-head { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 4px; font-size: 13px; color: var(--text-2); border-left: 1px solid var(--border-soft); }
.cal-day-head .sub { font-size: 12px; }
.cal-day-head.today { background: var(--cyan-tint); color: var(--cyan-light); }
.cal-row { display: flex; border-bottom: 1px solid var(--border-soft); }
.cal-row:last-child { border-bottom: none; }
.cal-room-cell { width: 180px; flex-shrink: 0; padding: 10px 15px; font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.5; }
.cal-room-cell .sub { font-size: 11px; color: var(--faint); font-weight: 400; }
.cal-timeline {
  flex: 1; position: relative;
  background-image: repeating-linear-gradient(to right, rgba(35, 35, 46, .5) 0px, rgba(35, 35, 46, .5) 1px, transparent 1px, transparent calc(100% / 7));
}
.cal-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--cyan); opacity: .7; z-index: 1; }
.cal-bar {
  position: absolute; height: 20px; border-radius: 5px; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap;
  cursor: pointer; z-index: 2; transition: filter .14s ease, box-shadow .14s ease;
}
.cal-bar.day { background: var(--cyan); color: #04242E; }
.cal-bar.hourly { background: #60A5FA; color: #0B1B2E; }
.cal-bar.pending { opacity: .55; border: 1px dashed var(--faint); }
.cal-bar.checked_out { background: var(--rose); color: #FFF; border: 1px dashed rgba(244, 63, 94, .6); }
.cal-bar:hover { filter: brightness(1.12); box-shadow: 0 0 0 2px rgba(34, 211, 238, .3); }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .app { flex-direction: column; }
  .side { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .brand { padding: 12px 16px; }
  #nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 10px; order: 3; width: 100%; }
  #nav a { margin: 0; }
  .side-foot { border-top: none; padding: 8px 12px; flex-direction: row; align-items: center; }
  .view { padding: 16px; }
  .topbar { padding: 14px 16px; }
}

/* 尊重系统减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
