/* ===== 酒店房态管理系统 · 全新设计 ===== */
:root {
    --navy: #0B1F33;
    --navy-2: #102A45;
    --primary: #0F8B7E;
    --primary-dark: #0B6E63;
    --primary-soft: #E7F7F1;
    --gold: #C8A45C;
    --gold-soft: #FBF4E6;
    --bg: #F3F5F2;
    --card: #FFFFFF;
    --ink: #14211C;
    --muted: #6F7F78;
    --soft: #9AA9A2;
    --line: #E3EAE5;
    --line-soft: #EDF2EE;
    --info: #3B6FE0;
    --info-soft: #EEF3FF;
    --warn: #B45309;
    --warn-soft: #FEF3E2;
    --danger: #C53B3B;
    --danger-soft: #FDECEC;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(12, 31, 51, .03), 0 12px 30px rgba(12, 31, 51, .05);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary); }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font-family: inherit; font-size: 14px; }
code { background: #EFF3F0; padding: 2px 6px; border-radius: 5px; font-size: 12px; }
.icon { flex: none; }

/* ---------- 框架 ---------- */
.app-shell { min-height: 100vh; }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 238px;
    padding: 22px 15px 16px;
    background: linear-gradient(180deg, var(--navy) 0%, #071726 100%);
    color: #CFE0D8;
    display: flex;
    flex-direction: column;
    z-index: 50;
    overflow-y: auto;
}

.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 22px; }
.brand-mark {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--gold), #A9813A);
    color: #1A1205;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800;
    letter-spacing: .5px;
    box-shadow: 0 8px 18px rgba(200, 164, 92, .28);
    flex: none;
}
.brand-text strong { display: block; font-size: 15px; color: #fff; font-weight: 600; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-text span { display: block; color: #7F9C8F; font-size: 10px; letter-spacing: 2.4px; margin-top: 2px; }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #A9C1B6;
    font-size: 13.5px;
    transition: background .15s, color .15s;
}
.nav-item:hover { background: rgba(255,255,255,.055); color: #fff; }
.nav-item.active { background: rgba(15, 139, 126, .26); color: #fff; box-shadow: inset 0 0 0 1px rgba(64, 196, 177, .22); }
.nav-item.active .icon { color: #5FD6C5; }

.sidebar-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 4px 8px; }
.avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(145deg, #2EBFAE, var(--primary-dark));
    color: #fff; font-weight: 600; font-size: 14px;
    display: flex; align-items: center; justify-content: center; flex: none;
}
.side-user-meta { flex: 1; min-width: 0; }
.side-user-meta strong { display: block; color: #fff; font-size: 13px; font-weight: 500; }
.side-user-meta span { display: block; color: #7F9C8F; font-size: 11px; }
.side-logout { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #7F9C8F; }
.side-logout:hover { background: rgba(255,255,255,.08); color: #fff; }
.side-date { padding: 10px 8px 0; font-size: 10.5px; color: #6B8579; }

.main { margin-left: 238px; min-height: 100vh; }

.topbar {
    position: sticky; top: 0; z-index: 30;
    height: 66px;
    padding: 0 28px;
    display: flex; align-items: center; gap: 14px;
    background: rgba(243, 245, 242, .9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(227, 234, 229, .9);
}
.topbar-title h1 { font-size: 17px; font-weight: 650; letter-spacing: -.2px; }
.topbar-title span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 38px; height: 38px; border: 1px solid var(--line); background: #fff; border-radius: 10px; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; }

.content { width: 100%; max-width: none; padding: 22px 28px 56px; }

.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(5, 18, 28, .45); z-index: 45; }

/* ---------- 页头 ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -.4px; }
.page-head .sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- 卡片 / 网格 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); }
.card-head h2 { font-size: 15px; font-weight: 650; }
.card-head .sub { font-size: 11.5px; color: var(--soft); }
.card-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-body { padding: 18px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--line-soft); background: #FAFCFB; }

.grid { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-2-1 { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
.grid-1-2 { grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr); }

/* ---------- 指标卡 ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.metric { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 15px 17px; display: flex; gap: 13px; align-items: flex-start; }
.metric-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--primary-soft); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; flex: none; }
.metric-icon.blue { background: var(--info-soft); color: var(--info); }
.metric-icon.gold { background: var(--gold-soft); color: #A9813A; }
.metric-icon.red { background: var(--danger-soft); color: var(--danger); }
.metric-label { font-size: 12px; color: var(--muted); }
.metric-value { font-size: 24px; font-weight: 700; letter-spacing: -.5px; line-height: 1.3; margin-top: 2px; }
.metric-value small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 3px; }
.metric-foot { font-size: 11px; color: var(--soft); margin-top: 2px; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 37px; padding: 0 14px;
    border-radius: 9px; border: 1px solid transparent;
    background: #fff; color: var(--ink);
    font-size: 13px; font-weight: 500;
    cursor: pointer; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-soft { background: var(--primary-soft); color: var(--primary-dark); }
.btn-soft:hover { background: #D8F1E9; }
.btn-ghost { border-color: var(--line); background: #fff; color: #3D4D46; }
.btn-ghost:hover { background: #FAFCFB; border-color: #C9D8D1; }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { background: #FBDBDB; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 14px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; height: auto; color: var(--primary-dark); font-size: 12.5px; cursor: pointer; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.span-2 { grid-column: span 2; }
.field.span-3 { grid-column: span 3; }
.field > span { font-size: 12.5px; color: #3D4D46; font-weight: 500; }
.field small { font-size: 11px; color: var(--soft); }
input[type="text"], input[type="password"], input[type="number"], input[type="date"], input[type="tel"], input[type="search"], input[type="month"], select, textarea {
    width: 100%; min-height: 38px; padding: 8px 11px;
    border: 1px solid #D9E3DD; border-radius: 9px;
    background: #fff; color: var(--ink); outline: none;
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 139, 126, .12); }
textarea { resize: vertical; min-height: 76px; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }
.check-line { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: #3D4D46; cursor: pointer; }
.check-line input { margin-top: 2px; }
.form-actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.form-hint { font-size: 11.5px; color: var(--soft); }

/* ---------- 状态 ---------- */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; white-space: nowrap; line-height: 1.7; }
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.chip.success { background: var(--primary-soft); color: var(--primary-dark); }
.chip.info { background: var(--info-soft); color: var(--info); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.danger { background: var(--danger-soft); color: var(--danger); }
.chip.muted { background: #F0F3F1; color: #6B7A74; }
.chip.no-dot::before { display: none; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 6px; background: #F1F5F2; color: #4D5D55; font-size: 11.5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); display: inline-block; }

/* ---------- 提示 ---------- */
.notice { padding: 10px 13px; border-radius: 10px; font-size: 12.5px; margin-bottom: 14px; border: 1px solid transparent; }
.notice.success { background: var(--primary-soft); color: var(--primary-dark); border-color: #C7EADF; }
.notice.warn { background: var(--warn-soft); color: #8A4A08; border-color: #F6DFC2; }
.notice.danger { background: var(--danger-soft); color: #A32C2C; border-color: #F6D0D0; }
.notice.info { background: var(--info-soft); color: #2A57B8; border-color: #D6E2FF; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th { text-align: left; padding: 10px 14px; background: #F8FAF8; color: #65766E; font-size: 11.5px; font-weight: 500; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #FBFDFB; }
td .sub { display: block; font-size: 11px; color: var(--soft); margin-top: 2px; }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
td.actions { white-space: nowrap; }
.table-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ---------- 工具条 ---------- */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .spacer { flex: 1; }
.toolbar form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search-box { position: relative; }
.search-box input { padding-left: 32px; min-width: 200px; }
.search-box .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #9AA9A2; }
.segmented { display: inline-flex; background: #E9F0EC; padding: 3px; border-radius: 10px; gap: 2px; }
.segmented a, .segmented button { padding: 5px 12px; border-radius: 8px; font-size: 12.5px; color: #5D6E66; border: 0; background: transparent; cursor: pointer; }
.segmented a.active, .segmented button.active { background: #fff; color: var(--primary-dark); font-weight: 600; box-shadow: 0 1px 4px rgba(12,31,51,.08); }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- 空状态 ---------- */
.empty { padding: 40px 20px; text-align: center; color: var(--soft); }
.empty-icon { width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 14px; background: #F1F5F2; display: flex; align-items: center; justify-content: center; color: #9AA9A2; }
.empty strong { display: block; color: #46564F; font-size: 14px; font-weight: 500; margin-bottom: 3px; }
.empty span { font-size: 12px; }

/* ---------- 房态日历 ---------- */
.cal-legend { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin-bottom: 12px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.cal-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 13px; background: #fff; max-height: 660px; }
.cal-table { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: 12px; }
.cal-table th, .cal-table td { border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 0; }
.cal-table thead th { position: sticky; top: 0; z-index: 5; background: #F8FAF8; padding: 8px 3px; text-align: center; font-weight: 500; color: var(--muted); min-width: 54px; }
.cal-table thead th span { display: block; font-size: 10.5px; }
.cal-table thead th b { display: block; font-size: 14px; color: var(--ink); margin-top: 1px; }
.cal-table thead th.is-today b { color: var(--primary); }
.cal-table thead th.is-weekend b { color: var(--gold); }
.cal-table th.cal-room-col, .cal-table td.cal-room-col { position: sticky; left: 0; z-index: 3; background: #fff; min-width: 156px; max-width: 156px; padding: 9px 12px; text-align: left; vertical-align: middle; }
.cal-table thead th.cal-room-col { z-index: 7; background: #F8FAF8; }
.cal-room-no { font-size: 14px; font-weight: 650; line-height: 1.3; }
.cal-room-sub { font-size: 11px; color: var(--soft); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-room-badges { margin-top: 5px; }
.cal-room-badges .chip { padding: 1px 7px; font-size: 10px; }
.cal-day { min-width: 54px; height: 62px; vertical-align: top; }
.cal-day.is-today { background: #F2FAF7; }
.cal-day.is-past { background: #FBFCFB; }
.cal-booking { display: block; margin: 3px; min-height: 55px; border-radius: 6px; padding: 3px 5px; border: 1px solid transparent; overflow: hidden; line-height: 1.35; }
.cal-booking strong { display: block; font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-booking span { display: block; font-size: 9.5px; opacity: .82; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-booking.reserved { background: #EEF2FF; border-color: #C7D2FE; color: #3730A3; }
.cal-booking.checked_in { background: #E7F7F1; border-color: #B7E8D4; color: var(--primary-dark); }
.cal-booking.checked_out { background: #F2F4F3; border-color: #E0E6E2; color: #68766F; }
.cal-clean { display: inline-block; font-style: normal; font-size: 9px; line-height: 1.6; border-radius: 4px; padding: 0 4px; margin-top: 2px; }
.cal-clean.pending { background: #FDE9E2; color: #B54708; }
.cal-clean.done { background: #D5F3E7; color: var(--primary-dark); }
.cal-clean.reserved { background: #E0E7FF; color: #4338CA; }
.cal-cell { display: flex; align-items: center; justify-content: center; min-height: 55px; margin: 3px; border-radius: 6px; color: #C9D6D0; transition: background .12s, color .12s; }
.cal-cell:hover { background: #F2FAF7; color: var(--primary); }
.cal-plus { font-size: 18px; line-height: 1; }
.cal-tip { font-size: 11.5px; color: var(--soft); margin-top: 10px; }

/* ---------- 今日一键办理 ---------- */
.today-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.today-column { border: 1px solid var(--line-soft); border-radius: 13px; background: #FBFDFB; padding: 13px; }
.today-title { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; margin-bottom: 9px; }
.action-list { display: flex; flex-direction: column; gap: 8px; }
.action-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line-soft); border-radius: 10px; padding: 9px 11px; }
.action-main { min-width: 0; }
.action-main strong { display: block; font-size: 13px; font-weight: 600; }
.action-main span { display: block; font-size: 11.5px; color: var(--soft); margin-top: 2px; }
.action-btns { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ---------- 列车式列表 ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line-soft); }
.list-item:last-child { border-bottom: 0; }
.list-main { flex: 1; min-width: 0; }
.list-main strong { display: block; font-size: 13px; font-weight: 500; }
.list-main span { display: block; font-size: 11.5px; color: var(--soft); margin-top: 2px; }
.list-side { text-align: right; font-size: 12px; color: var(--muted); white-space: nowrap; }
.list-side strong { display: block; color: var(--ink); font-size: 13px; }

/* ---------- 房间卡片 ---------- */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 13px; }
.room-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; position: relative; box-shadow: 0 1px 2px rgba(12,31,51,.03); display: flex; flex-direction: column; gap: 9px; }
.room-card::before { content: ""; position: absolute; left: 0; top: 13px; bottom: 13px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); }
.room-card.occupied::before { background: var(--info); }
.room-card.cleaning::before { background: var(--warn); }
.room-card.maintenance::before { background: var(--danger); }
.room-card .rc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.room-no { font-size: 19px; font-weight: 700; letter-spacing: -.3px; line-height: 1.2; }
.room-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.room-price { font-size: 12px; color: var(--muted); margin-top: 2px; }
.room-price strong { color: var(--ink); }
.room-note { background: #F7FAF8; border: 1px dashed #D9E3DD; border-radius: 9px; padding: 7px 9px; font-size: 11.5px; color: var(--muted); }
.room-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }

/* ---------- 保洁卡片 ---------- */
.clean-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 13px; }
.clean-card { border: 1px solid var(--line); border-radius: 13px; padding: 14px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.clean-card .cc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.clean-card .cc-room { font-size: 17px; font-weight: 700; }
.clean-card .cc-meta { font-size: 11.5px; color: var(--muted); line-height: 1.8; }
.clean-card .cc-actions { display: flex; gap: 6px; align-items: center; }
.clean-card input { min-height: 34px; }

/* ---------- 报表条 ---------- */
.bar-list { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 62px 1fr 54px; gap: 10px; align-items: center; font-size: 11.5px; color: var(--muted); }
.bar-track { height: 8px; border-radius: 999px; background: #EDF2EF; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #35C4B1, var(--primary)); }
.bar-row .val { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- 详情 ---------- */
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.detail-item { padding: 9px 0; border-bottom: 1px dashed var(--line-soft); }
.detail-item span { display: block; font-size: 11.5px; color: var(--soft); }
.detail-item strong { font-size: 13.5px; font-weight: 500; }
.detail-amount { font-size: 30px; font-weight: 700; letter-spacing: -.6px; }
.amount-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line-soft); font-size: 13px; }
.amount-row:last-child { border-bottom: 0; }
.amount-row strong { font-weight: 600; }

/* ---------- 登录 / 安装 ---------- */
.auth-page { min-height: 100vh; display: flex; background: radial-gradient(1000px 600px at 10% 0%, #DDF3EC 0%, var(--bg) 45%, var(--bg) 100%); }
.auth-hero { flex: 1.1; padding: 60px 8vw; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(150deg, #071726 0%, #0B2D3F 55%, #0F8B7E 130%); color: #fff; position: relative; overflow: hidden; }
.auth-hero::after { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(200,164,92,.24), transparent 65%); right: -130px; bottom: -130px; }
.auth-hero .brand-mark { width: 54px; height: 54px; font-size: 24px; margin-bottom: 26px; box-shadow: 0 10px 26px rgba(200,164,92,.3); }
.auth-hero h1 { font-size: 34px; line-height: 1.3; margin-bottom: 12px; letter-spacing: -.5px; }
.auth-hero p { color: #B9D2C8; font-size: 14px; max-width: 430px; margin-bottom: 28px; }
.auth-points { display: flex; flex-direction: column; gap: 11px; }
.auth-point { display: flex; align-items: center; gap: 10px; color: #D7E7E0; font-size: 13px; }
.auth-point span { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; }
.auth-panel { width: 480px; flex: none; display: flex; align-items: center; justify-content: center; padding: 32px; }
.auth-card { width: 100%; max-width: 360px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px rgba(12,31,51,.12); padding: 32px 28px; }
.auth-card h2 { font-size: 21px; margin-bottom: 4px; }
.auth-card .sub { color: var(--muted); font-size: 12.5px; margin-bottom: 22px; }
.auth-card .field { margin-bottom: 14px; }
.auth-foot { margin-top: 18px; text-align: center; font-size: 11.5px; color: var(--soft); }

.install-page { min-height: 100vh; padding: 30px 18px; background: radial-gradient(1000px 520px at 0% 0%, #DDF3EC 0%, var(--bg) 50%); }
.install-shell { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 380px 1fr; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 26px 70px rgba(12,31,51,.1); overflow: hidden; }
.install-hero { background: linear-gradient(160deg, #071726, #0B2D3F 60%, #0F8B7E 140%); color: #fff; padding: 38px 32px; }
.install-hero .brand-mark { margin-bottom: 20px; }
.install-hero h1 { font-size: 23px; line-height: 1.35; margin-bottom: 8px; }
.install-hero p { color: #B9D2C8; font-size: 12.5px; margin-bottom: 24px; }
.install-hero ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.install-hero li { position: relative; padding-left: 18px; color: #D7E7E0; font-size: 12.5px; }
.install-hero li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); }
.install-panel { padding: 32px 36px 38px; max-height: 88vh; overflow-y: auto; }
.install-panel h2 { font-size: 21px; margin-bottom: 4px; }
.install-panel .sub { color: var(--muted); font-size: 12.5px; margin-bottom: 18px; }
.req-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 18px; }
.req-item { display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 12.5px; border-bottom: 1px solid var(--line-soft); }
.req-item:last-child { border-bottom: 0; }
.req-item b { margin-left: auto; font-weight: 500; font-size: 11.5px; color: var(--muted); }
.req-item .req-dot { width: 7px; height: 7px; border-radius: 50%; background: #B9C9C1; }
.req-item.ok .req-dot { background: var(--primary); }
.req-item.ok b { color: var(--primary-dark); }
.req-item.bad .req-dot { background: var(--danger); }
.req-item.bad b { color: var(--danger); }
.install-form h3 { font-size: 13.5px; margin: 20px 0 10px; padding-top: 15px; border-top: 1px dashed var(--line); }
.install-form h3:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.install-form .form-grid { gap: 12px; }
.install-form .btn-block { margin-top: 18px; }
.install-success { text-align: center; padding: 30px 0 10px; }
.success-ring { width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 16px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.install-success h2 { font-size: 22px; margin-bottom: 6px; }
.install-success p { color: var(--muted); font-size: 13px; margin-bottom: 18px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); transition: transform .22s ease; width: 250px; box-shadow: 20px 0 50px rgba(5,18,28,.25); }
    body.nav-open .sidebar { transform: translateX(0); }
    body.nav-open .nav-overlay { display: block; }
    .main { margin-left: 0; }
    .topbar { height: 58px; padding: 0 14px; }
    .topbar-title h1 { font-size: 15px; }
    .topbar-title span { display: none; }
    .menu-btn { display: inline-flex; }
    .content { padding: 16px 14px 48px; }
    .page-head h1 { font-size: 19px; }
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .metric { padding: 12px; gap: 9px; }
    .metric-icon { width: 34px; height: 34px; }
    .metric-value { font-size: 20px; }
    .form-grid, .form-grid.cols-3 { grid-template-columns: 1fr; }
    .field.span-2, .field.span-3 { grid-column: auto; }
    .today-actions { grid-template-columns: 1fr; gap: 12px; }
    .cal-table th.cal-room-col, .cal-table td.cal-room-col { min-width: 118px; max-width: 118px; padding: 8px; }
    .cal-day { min-width: 48px; height: 56px; }
    .cal-booking { min-height: 50px; }
    .detail-grid { grid-template-columns: 1fr; }
    .auth-hero { display: none; }
    .auth-panel { width: 100%; padding: 18px; }
    .login-page { padding: 0; }
    .install-shell { grid-template-columns: 1fr; }
    .install-panel { max-height: none; padding: 26px 22px 30px; }
    .topbar-actions .btn:last-child { display: none; }
    .page-actions { width: 100%; }
    .page-actions .btn { flex: 1; }
    .toolbar form { width: 100%; }
    .search-box { flex: 1; }
    .search-box input { min-width: 0; width: 100%; }
}

@media (max-width: 480px) {
    .metrics { grid-template-columns: 1fr 1fr; }
    .metric-value { font-size: 18px; }
    .auth-card { padding: 26px 20px; }
}
