/* =============================================================================
   懒洋洋房源 · 样式表
   设计基调：暖白背景 + 青绿主色 + 暖橙价格，圆角柔和、阴影轻盈
   本文件按「基础 → 布局 → 组件 → 页面 → 响应式」组织，类名与模板保持一致
   ========================================================================== */

:root {
  /* 底色与文字 */
  --bg: #f7f6f3;
  --card: #ffffff;
  --ink: #1f2a37;
  --ink-2: #3b4757;
  --muted: #6b7280;
  --line: #eae6e0;
  --line-strong: #dad4ca;

  /* 主色（青绿） */
  --brand: #0f766e;
  --brand-2: #0d9488;
  --brand-dark: #115e59;
  --brand-soft: #ecf8f6;
  --brand-ring: rgba(15, 118, 110, .18);

  /* 强调色（价格 / 重点） */
  --accent: #e8590c;
  --accent-soft: #fff5ee;

  /* 语义色 */
  --ok-bg: #e8f7ee;   --ok-fg: #17663a;
  --warn-bg: #fdf3e3; --warn-fg: #92400e;
  --danger-bg: #fdeceb; --danger-fg: #b42318;
  --busy-bg: #e9f1ff; --busy-fg: #1d4ed8;

  /* 圆角与阴影 */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 26px -14px rgba(16, 24, 40, .22);
  --shadow-lg: 0 18px 44px -22px rgba(16, 24, 40, .30);
  --shadow-hover: 0 2px 6px rgba(16, 24, 40, .06), 0 18px 38px -18px rgba(16, 24, 40, .26);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; }
::selection { background: var(--brand-soft); color: var(--brand-dark); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

a { color: var(--brand); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 2px; }
code {
  background: #f3f1ed; color: var(--ink-2);
  padding: 1px 6px; border-radius: 6px; font-size: 12.5px;
  font-family: "Cascadia Mono", Consolas, "Courier New", monospace;
}
img { max-width: 100%; }

/* 工具类 */
.muted { color: var(--muted); }
.mono { font-family: "Cascadia Mono", Consolas, "Courier New", monospace; letter-spacing: .2px; font-variant-numeric: tabular-nums; }
.wrap { word-break: break-all; }
.block-sm { display: block; font-size: 12px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.emphasis { color: var(--brand-dark); font-weight: 700; font-variant-numeric: tabular-nums; }
.emphasis-input { font-weight: 700; color: var(--brand-dark); background: var(--brand-soft); }
.req { color: var(--danger-fg); }
.link { font-size: 13px; font-weight: 500; }
.hint { color: var(--muted); font-size: 11.5px; }

/* =============================================================== 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1320px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(140deg, #10b3a3, var(--brand) 55%, var(--brand-dark));
  color: #fff; font-size: 20px; line-height: 1;
  box-shadow: 0 6px 16px -6px rgba(15, 118, 110, .55);
}
.brand-text strong { display: block; font-size: 16px; font-weight: 700; letter-spacing: .4px; line-height: 1.25; }
.brand-text small { color: var(--muted); font-size: 11px; letter-spacing: .3px; }

.mainnav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.navitem {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  color: var(--ink-2); font-weight: 600; font-size: 13.5px;
  transition: background .16s, color .16s;
}
.navitem:hover { background: #f4f2ee; color: var(--ink); text-decoration: none; }
.navitem.active {
  background: linear-gradient(135deg, var(--brand-soft), #e3f5f1);
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .14);
}
.navicon { font-size: 15px; line-height: 1; }

.topbar-right { display: flex; align-items: center; gap: 10px; }
.who { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.who em { font-style: normal; color: var(--muted); font-size: 11.5px; margin-left: 6px; }
.inline-form { display: inline; margin: 0; }

/* =============================================================== 布局 */
.container { max-width: 1320px; margin: 0 auto; padding: 24px 20px 64px; }
.footer { max-width: 1320px; margin: 0 auto; padding: 0 20px 32px; color: var(--muted); font-size: 12px; }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.page-head h1 {
  margin: 0; font-size: 23px; font-weight: 700; letter-spacing: .3px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.page-head .sub { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.head-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-sm);
  padding: 18px;
  margin-bottom: 18px;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.card-head h2 { margin: 0; font-size: 15.5px; font-weight: 700; letter-spacing: .2px; }
.card > .card-head:not(:first-child) { margin-top: 22px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.detail-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-items: start; }

/* =============================================================== 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.stat-card {
  position: relative; overflow: hidden;
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 17px 18px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.stat-card::after {
  content: ""; position: absolute; right: -30px; top: -34px;
  width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 118, 110, .10), transparent 70%);
  pointer-events: none;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.stat-icon {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  font-size: 21px; border-radius: 12px; background: var(--brand-soft);
}
.stat-label { color: var(--muted); font-size: 12.5px; letter-spacing: .2px; }
.stat-value {
  font-size: 25px; font-weight: 700; letter-spacing: .4px; line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.stat-foot { color: var(--muted); font-size: 12px; }

/* 条形图 / 趋势图 */
.bars { display: grid; gap: 11px; }
.bar-row { display: grid; grid-template-columns: 88px 1fr 48px; align-items: center; gap: 10px; }
.bar-name { color: var(--ink-2); font-size: 13px; }
.bar-track { background: #f1efeb; border-radius: var(--radius-pill); height: 9px; overflow: hidden; }
.bar-fill {
  height: 100%; border-radius: var(--radius-pill); min-width: 4px;
  background: linear-gradient(90deg, var(--brand-2), var(--brand));
  transition: width .4s ease;
}
.bar-fill.alt { background: linear-gradient(90deg, #b8c0cc, #8b95a5); }
.bar-value { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

.trend { display: flex; align-items: flex-end; gap: 10px; height: 152px; padding: 8px 4px 0; }
.trend-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; }
.trend-bar {
  width: 100%; max-width: 46px; height: 120px;
  background: #f1efeb; border-radius: 10px 10px 5px 5px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.trend-paid {
  width: 100%; min-height: 3px; border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #34d399, #0f766e);
}
.trend-label { font-size: 11.5px; color: var(--muted); }

.mini-list { margin-top: 18px; }
.mini-list h3 { font-size: 13.5px; margin: 0 0 8px; font-weight: 700; }
.mini-list ul { list-style: none; margin: 0; padding: 0; }
.mini-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px;
}
.mini-list li:last-child { border-bottom: 0; }
.mini-list li .muted { flex: 1; font-size: 12px; }
.mini-list li strong { font-variant-numeric: tabular-nums; color: var(--accent); }

/* =============================================================== 表单 */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.field .hint { color: var(--muted); font-size: 11.5px; }

input, select, textarea {
  font: inherit; color: var(--ink);
  padding: 9px 11px; width: 100%; min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
input:hover, select:hover, textarea:hover { border-color: #c9c2b8; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand-2);
  box-shadow: 0 0 0 3.5px var(--brand-ring);
}
input[readonly] { background: #faf9f7; color: var(--ink-2); }
input::placeholder, textarea::placeholder { color: #a3a8b0; }
textarea { resize: vertical; min-height: 74px; }
input[type="file"] { padding: 7px 10px; background: #fdfcfa; cursor: pointer; }
input[type="file"]::file-selector-button {
  font: inherit; margin-right: 10px; padding: 5px 10px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: #fff; color: var(--ink-2); cursor: pointer;
}
input[type="checkbox"] { width: auto; accent-color: var(--brand); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 15px 16px; }
.filter-bar .field { flex: 1 1 170px; }
.filter-bar .field-sm { flex: 0 1 130px; }
.filter-bar .field-actions { flex: 0 0 auto; flex-direction: row; gap: 8px; }

.form-grid { display: grid; gap: 4px; }
.form-grid.compact { padding: 0; }
.form-section { border-top: 1px dashed var(--line); padding-top: 16px; margin-top: 12px; }
.form-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.form-section h2 {
  font-size: 14px; margin: 0 0 12px; font-weight: 700;
  color: var(--brand-dark); display: flex; align-items: center; gap: 7px;
}
.form-section h2::before {
  content: ""; width: 4px; height: 15px; border-radius: 3px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand-dark));
}
.row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
.row .field { flex: 1 1 200px; }
.row .field-wide { flex: 1 1 100%; }
.form-actions { display: flex; gap: 10px; padding-top: 10px; flex-wrap: wrap; align-items: center; }

.photo-manage { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.photo-item { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #faf9f7; }
.photo-item img { width: 100%; height: 120px; object-fit: cover; display: block; }
.photo-item figcaption { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 9px; font-size: 11.5px; }
.photo-item figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 导入页 */
.dropzone {
  position: relative; text-align: center;
  border: 2px dashed var(--line-strong); border-radius: var(--radius);
  background: #fbfaf8; padding: 22px 16px;
  transition: border-color .16s, background .16s;
}
.dropzone.hover { border-color: var(--brand-2); background: var(--brand-soft); }
.dropzone-icon { font-size: 30px; }
.dropzone-title { margin: 7px 0 4px; font-weight: 600; font-size: 13.5px; }
.dropzone input[type="file"] { margin-top: 10px; }
.check-line { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 13px; color: var(--ink-2); }
.check-line input[type="checkbox"] { width: auto; }
.csv-header { background: #f6f4f1; border-radius: 9px; padding: 9px 11px; font-size: 12px; }
.tips { margin: 10px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 12.5px; }
.tips li { margin-bottom: 5px; }
.stat-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.confirm-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; position: sticky; top: 68px; z-index: 20;
  border-left: 4px solid var(--brand);
}
.confirm-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.import-table td { font-size: 12.8px; vertical-align: top; }
.import-table .note-cell { color: var(--muted); max-width: 320px; }
.import-table tr.row-error { background: #fff7f6; }
.import-table tr.row-error:hover { background: #fdeceb; }

/* =============================================================== 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink-2);
  font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer;
  white-space: nowrap; text-decoration: none;
  transition: background .16s, border-color .16s, color .16s, box-shadow .16s, transform .06s;
}
.btn:hover { background: #faf9f7; border-color: #c9c2b8; color: var(--ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 16px -8px rgba(15, 118, 110, .7);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #12a496, var(--brand-dark));
  border-color: transparent; color: #fff; text-decoration: none;
  box-shadow: 0 10px 22px -10px rgba(15, 118, 110, .8);
}
.btn-danger { color: var(--danger-fg); border-color: #f3c9c5; background: #fffafa; }
.btn-danger:hover { background: var(--danger-bg); border-color: #eeb4ae; color: var(--danger-fg); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: #f2f0ec; border-color: transparent; color: var(--ink); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn.disabled, .btn:disabled { opacity: .45; pointer-events: none; }

/* =============================================================== 标签 */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; background: #f2f0ec; color: var(--ink-2);
  white-space: nowrap;
}
.tag::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; opacity: .75; flex: none;
}
.tag.ok { background: var(--ok-bg); color: var(--ok-fg); }
.tag.warn { background: var(--warn-bg); color: var(--warn-fg); }
.tag.danger { background: var(--danger-bg); color: var(--danger-fg); }
.tag.busy { background: var(--busy-bg); color: var(--busy-fg); }
.tag.muted { background: #f2f0ec; color: var(--muted); }

.progress { height: 5px; background: #f1efeb; border-radius: var(--radius-pill); margin-top: 6px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, #34d399, var(--brand)); }

/* 提示条 */
.alert { padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 13.5px; border: 1px solid transparent; }
.alert-danger { background: var(--danger-bg); color: var(--danger-fg); border-color: #f6cdc9; }
.alert-warn { background: var(--warn-bg); color: var(--warn-fg); border-color: #f6dcb0; }
.alert-ok { background: var(--ok-bg); color: var(--ok-fg); border-color: #bce7cd; }

.toast {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; margin-bottom: 16px;
  border-radius: var(--radius-sm); border: 1px solid;
  background: var(--ok-bg); color: var(--ok-fg); border-color: #bce7cd;
  font-size: 13.5px; box-shadow: var(--shadow-sm);
}
.toast-warn { background: var(--warn-bg); color: var(--warn-fg); border-color: #f6dcb0; }
.toast-close { background: none; border: 0; font-size: 18px; line-height: 1; cursor: pointer; color: inherit; opacity: .7; }
.toast-close:hover { opacity: 1; }

/* =============================================================== 表格 */
.table-wrap { overflow-x: auto; border-radius: 12px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
th, td { padding: 11px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
th {
  background: #faf9f7; color: var(--muted);
  font-size: 12px; font-weight: 700; letter-spacing: .3px;
  white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
th:first-child { border-top-left-radius: 12px; }
th:last-child { border-top-right-radius: 12px; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #fbfaf8; }
tbody tr:last-child td { border-bottom: 0; }
td .cell-main { margin-right: 6px; }
td, .table-wrap td { font-variant-numeric: tabular-nums; }

/* =============================================================== 键值 / 描述 */
.kv { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.kv > div { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { flex: 0 0 96px; color: var(--muted); font-size: 12.5px; }
.kv dd { margin: 0; flex: 1; word-break: break-word; }
.desc {
  background: #faf9f7; border-left: 3px solid var(--brand);
  padding: 11px 13px; border-radius: 0 10px 10px 0;
  color: var(--ink-2); margin: 12px 0 0; font-size: 13px;
}

/* =============================================================== 房源卡 */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; margin-bottom: 12px; }
.room-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.room-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.room-thumb { position: relative; display: block; height: 178px; background: linear-gradient(135deg, #eeece8, #ddd8d0); overflow: hidden; }
.room-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.room-card:hover .room-thumb img { transform: scale(1.04); }
.thumb-placeholder { display: grid; place-items: center; height: 100%; font-size: 40px; opacity: .5; }
.thumb-tag { position: absolute; left: 10px; top: 10px; box-shadow: 0 2px 8px rgba(16, 24, 40, .18); }
.photo-count {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(20, 26, 33, .62); color: #fff; font-size: 11.5px;
  padding: 3px 9px; border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}
.room-body { padding: 15px 16px 13px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.room-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.room-title a { font-size: 16.5px; font-weight: 700; color: var(--ink); }
.room-title a:hover { color: var(--brand-dark); text-decoration: none; }
.room-price { color: var(--accent); font-weight: 700; font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.room-price em { font-style: normal; font-weight: 400; font-size: 11.5px; color: var(--muted); }
.room-loc { margin: 0; color: var(--muted); font-size: 12.5px; }
.room-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; font-size: 12.5px; color: var(--ink-2); }
.room-tenant { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.room-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 9px; border-top: 1px dashed var(--line); }

/* =============================================================== 相册 */
.gallery-main {
  position: relative; border-radius: 12px; overflow: hidden;
  background: #f1efeb; aspect-ratio: 16 / 10; display: grid; place-items: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.gallery-empty { display: grid; gap: 6px; place-items: center; color: var(--muted); font-size: 15px; }
.gallery-empty span { font-size: 12px; }

.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.thumb {
  position: relative; width: 90px; height: 68px; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer; background: #f1efeb;
  transition: border-color .15s, transform .15s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { transform: translateY(-1px); }
.thumb.current { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.thumb-badge {
  position: absolute; left: 4px; top: 4px; background: var(--brand); color: #fff;
  font-size: 10px; padding: 1px 6px; border-radius: 5px;
}
.thumb-tools {
  position: absolute; inset: auto 0 0 0; display: flex; justify-content: flex-end; gap: 4px;
  padding: 4px; opacity: 0; transition: opacity .16s;
  background: linear-gradient(transparent, rgba(0, 0, 0, .5));
}
.thumb:hover .thumb-tools { opacity: 1; }
.mini-btn {
  border: 0; border-radius: 6px; width: 21px; height: 21px; line-height: 1;
  background: rgba(255, 255, 255, .92); cursor: pointer; font-size: 11px; padding: 0;
  transition: background .15s;
}
.mini-btn:hover { background: #fff; }
.mini-btn.danger { color: var(--danger-fg); }

.viewer { position: fixed; inset: 0; z-index: 100; background: rgba(10, 14, 20, .93); display: grid; place-items: center; }
.viewer[hidden] { display: none; }
.viewer img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.viewer-close, .viewer-nav {
  position: absolute; border: 0; background: rgba(255, 255, 255, .16); color: #fff;
  cursor: pointer; border-radius: 50%; font-size: 26px; line-height: 1;
  width: 46px; height: 46px; display: grid; place-items: center;
  transition: background .15s;
}
.viewer-close:hover, .viewer-nav:hover { background: rgba(255, 255, 255, .3); }
.viewer-close { top: 22px; right: 26px; }
.viewer-nav.prev { left: 26px; top: 50%; transform: translateY(-50%); }
.viewer-nav.next { right: 26px; top: 50%; transform: translateY(-50%); }

/* =============================================================== 分页 */
.pager { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0 22px; }
.pager-btn {
  padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 9px;
  background: #fff; font-size: 13px; color: var(--ink-2); transition: background .15s, border-color .15s;
}
.pager-btn:hover { background: var(--brand-soft); border-color: var(--brand-2); color: var(--brand-dark); text-decoration: none; }
.pager-btn.disabled { opacity: .4; pointer-events: none; }
.pager-info { color: var(--muted); font-size: 12.5px; }

/* =============================================================== 空态 */
.empty {
  text-align: center; padding: 52px 20px;
  background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius);
}
.empty-icon { font-size: 40px; line-height: 1; }
.empty h3 { margin: 12px 0 6px; font-size: 16px; }
.empty p { margin: 0 0 16px; color: var(--muted); font-size: 13px; }

/* =============================================================== 登录 */
.login-body {
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(13, 148, 136, .28), transparent 60%),
    radial-gradient(700px 420px at 100% 100%, rgba(232, 89, 12, .16), transparent 62%),
    linear-gradient(160deg, #0d3d3a, #10403c 45%, #0a2e2b);
  min-height: 100vh;
}
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.login-card {
  width: 100%; max-width: 430px; background: #fff; border-radius: 20px;
  padding: 32px 30px; box-shadow: 0 30px 70px -20px rgba(2, 20, 18, .55);
  border: 1px solid rgba(255, 255, 255, .5);
}
.login-brand { display: flex; gap: 13px; align-items: center; margin-bottom: 22px; }
.login-brand .brand-mark { width: 46px; height: 46px; font-size: 23px; border-radius: 15px; }
.login-brand h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.login-brand p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; }
.login-form { display: grid; gap: 13px; }
.login-form .btn-block { margin-top: 4px; padding: 11px 15px; font-size: 14.5px; }
.register-form { margin-top: 22px; border-top: 1px dashed var(--line); padding-top: 18px; }
.register-form h2 { font-size: 14px; margin: 0 0 6px; color: var(--brand-dark); }
.login-foot { margin: 18px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.login-guest { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); display: grid; gap: 9px; }
.login-guest > span { color: var(--muted); font-size: 12.5px; text-align: center; }
.login-guest .muted { margin: 0; font-size: 11.5px; text-align: center; }

/* =============================================================== 游客展示页 */
.guest-body { background: #f7f6f3; }
.guest-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.guest-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.guest-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; }
.guest-brand { display: flex; align-items: center; gap: 11px; color: var(--ink); min-width: 0; }
.guest-brand:hover { text-decoration: none; color: var(--ink); }
.guest-brand-text strong { display: block; font-size: 17px; font-weight: 700; letter-spacing: .5px; line-height: 1.25; }
.guest-brand-text small { display: block; color: var(--muted); font-size: 11.5px; }
.guest-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.guest-wechat { font-size: 12px; }
.guest-login-link { color: var(--muted); font-size: 12.5px; text-decoration: none; }
.guest-login-link:hover { color: var(--brand); text-decoration: underline; }

.guest-main { padding: 0 0 44px; }
.guest-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #0b5d57 0%, #0f766e 45%, #12a496 100%);
  padding: 44px 0 40px; margin-bottom: 22px;
}
.guest-hero::before,
.guest-hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.guest-hero::before {
  width: 420px; height: 420px; right: -110px; top: -190px;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 68%);
}
.guest-hero::after {
  width: 300px; height: 300px; left: -120px; bottom: -170px;
  background: radial-gradient(circle, rgba(232, 89, 12, .34), transparent 66%);
}
.guest-hero > * { position: relative; z-index: 1; }
.guest-hero h1 {
  margin: 0 0 10px; font-size: 30px; font-weight: 700;
  letter-spacing: 1px; line-height: 1.3;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .18);
}
.guest-hero-sub { margin: 0 0 16px; font-size: 14.5px; opacity: .95; max-width: 720px; }
.guest-hero-stats { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.guest-hero-stats > span {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 7px 14px; border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}
.guest-hero-stats strong { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }
.guest-hero-stats a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.guest-filter {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
  padding: 15px 16px; margin-top: -6px;
}
.guest-filter .field { flex: 1 1 150px; }
.guest-filter .field-sm { flex: 0 1 120px; }
.guest-filter .field-actions { flex: 0 0 auto; flex-direction: row; gap: 8px; }

.guest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(312px, 1fr)); gap: 20px; margin-bottom: 8px; }
.guest-card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.guest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #d7d0c6; }
.guest-card-thumb { position: relative; display: block; height: 196px; background: linear-gradient(135deg, #eeece8, #ddd8d0); overflow: hidden; }
.guest-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.guest-card:hover .guest-card-thumb img { transform: scale(1.05); }
.guest-flag { position: absolute; left: 11px; top: 11px; box-shadow: 0 2px 10px rgba(16, 24, 40, .2); }
.guest-card-body { padding: 15px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.guest-card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.guest-card-title a { font-size: 17px; font-weight: 700; color: var(--ink); }
.guest-card-title a:hover { color: var(--brand-dark); text-decoration: none; }
.guest-price { color: var(--accent); font-weight: 700; font-size: 17px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.guest-price em, .guest-price-big em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted); }
.guest-price-big { color: var(--accent); font-weight: 700; font-size: 28px; font-variant-numeric: tabular-nums; }
.guest-card-loc { margin: 0; color: var(--muted); font-size: 13px; }
.guest-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; font-size: 13px; color: var(--ink-2); }
.guest-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.guest-tags li {
  font-size: 11.5px; color: var(--brand-dark); background: var(--brand-soft);
  border: 1px solid rgba(15, 118, 110, .12);
  border-radius: 7px; padding: 2px 9px;
}
.guest-card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 11px; border-top: 1px dashed var(--line); }

.guest-detail-wrap { padding-top: 20px; }
.guest-back { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 14px; font-size: 13px; color: var(--muted); text-decoration: none; }
.guest-back:hover { color: var(--brand); text-decoration: none; }
.guest-detail-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.guest-detail-head h2 { margin: 9px 0 4px; font-size: 23px; letter-spacing: .3px; }
.guest-price-row {
  display: flex; align-items: baseline; gap: 14px;
  padding: 13px 0; margin-bottom: 4px;
  border-bottom: 1px dashed var(--line);
}
.guest-contact-box {
  margin-top: 18px; padding: 16px;
  background: linear-gradient(150deg, var(--brand-soft), #f4fbf9);
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 13px;
}
.guest-contact-box h3 { margin: 0 0 9px; font-size: 14px; color: var(--brand-dark); }
.guest-contact-box p { margin: 0 0 7px; font-size: 13.5px; }
.guest-contact-box .btn-block { margin-top: 10px; }
.guest-phone { font-weight: 700; font-size: 18px; color: var(--brand-dark); letter-spacing: .6px; font-variant-numeric: tabular-nums; }
.guest-detail-note { margin: 18px 0 0; font-size: 12px; }

.guest-footer { background: #fff; border-top: 1px solid var(--line); padding: 26px 0 34px; font-size: 13px; }
.guest-footer-title { margin: 0 0 7px; font-weight: 700; font-size: 15px; }
.guest-footer p { margin: 0 0 7px; }
.guest-footer a { color: var(--brand); }

/* =============================================================== 滚动条 */
.table-wrap::-webkit-scrollbar, .mainnav::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-thumb, .mainnav::-webkit-scrollbar-thumb { background: #d8d2c8; border-radius: 8px; }
.table-wrap::-webkit-scrollbar-track, .mainnav::-webkit-scrollbar-track { background: transparent; }

/* =============================================================== 响应式 */
@media (max-width: 1080px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .detail-grid, .guest-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar-inner { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .mainnav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .navitem { padding: 7px 12px; font-size: 13px; }
  .stat-grid { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; }
  .page-head h1 { font-size: 20px; }
  .room-grid { grid-template-columns: 1fr; }
  .kv dt { flex-basis: 78px; }
  .confirm-bar { position: static; }
  .container { padding: 18px 16px 56px; }
  .guest-bar { flex-wrap: wrap; padding: 11px 16px; }
  .guest-hero { padding: 34px 0 30px; }
  .guest-hero h1 { font-size: 23px; }
  .guest-grid { grid-template-columns: 1fr; }
  .guest-filter .field, .guest-filter .field-sm { flex: 1 1 100%; }
  .viewer-nav { width: 40px; height: 40px; font-size: 22px; }
  .viewer-nav.prev { left: 10px; }
  .viewer-nav.next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
