:root {
  /* 白色简洁主题令牌（对齐 prototype/admin-redesign 设计稿） */
  --ink: #1a1a1a;
  --muted: #6b7280;
  --faint: #9ca3af;
  --line: #e5e7eb;
  --soft: #fafafa;
  --paper: #ffffff;
  --brand: #2563eb;
  --brand-strong: #1d4ed8;
  --brand-soft: #eff6ff;
  --accent: #d97732;
  --ok: #16a34a;
  --warn: #b56a06;
  --danger: #dc2626;
  --info: #2563eb;
  /* 中性灰阶 */
  --gray-50: #fafafa;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #cfd7e0;
  --gray-400: #9aa7b4;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  /* 圆角统一 8px */
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 8px;
  /* 阴影分级（白色主题只保留极浅阴影；--shadow 保留为 --shadow-lg 的别名，兼容旧引用） */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
  --shadow: var(--shadow-lg);
  /* 统一过渡时长 */
  --transition: 0.18s ease;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease, background-color 0.12s ease;
  user-select: none;
}

button:hover {
  filter: brightness(1.03);
}

button:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.16);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  filter: grayscale(0.18);
}

button:focus-visible {
  outline: 3px solid rgba(14, 107, 99, 0.28);
  outline-offset: 2px;
}

.shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 0 28px;
  color: #fff;
  background: #10212e;
  box-shadow: 0 2px 8px rgba(5, 12, 20, 0.16);
}

.admin-topbar {
  background: #111827;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.brand-link {
  cursor: pointer;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  color: #10212e;
  background: #72d6c8;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav button,
.ghost-btn {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  color: #dbe8ef;
  background: rgba(255, 255, 255, 0.08);
}

.nav button.active,
.primary-btn {
  color: #fff;
  background: var(--brand);
}

.top-user {
  color: #dbe8ef;
  font-weight: 700;
}

.primary-btn,
.secondary-btn,
.danger-btn,
.text-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(10, 20, 30, 0.08);
}

.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  text-decoration: none;
}

.secondary-btn {
  color: var(--brand-strong);
  background: #dcefeb;
}

.danger-btn {
  color: #fff;
  background: var(--danger);
}

.text-btn {
  color: var(--brand);
  background: transparent;
}

.small-btn {
  min-height: 32px;
  padding: 0 12px;
  font-size: 14px;
}

.layout {
  display: grid;
  grid-template-columns: 176px 1fr;
  min-height: calc(100vh - 68px);
}

.sidebar {
  padding: 22px 14px;
  background: #152c3a;
  color: #dbe8ef;
}

.side-title {
  margin: 0 10px 14px;
  color: #92a9b8;
  font-size: 12px;
  font-weight: 800;
}

.side-nav {
  display: grid;
  gap: 4px;
}

.side-nav button {
  position: relative;
  width: 100%;
  min-height: 40px;
  padding: 0 12px 0 18px;
  border-radius: var(--radius-md);
  color: #c3d2dd;
  text-align: left;
  background: transparent;
  transition: background-color var(--transition), color var(--transition);
}

.side-nav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.side-nav button.active {
  color: #fff;
  background: rgba(114, 214, 200, 0.16);
}

/* 当前菜单项左侧品牌色指示条 */
.side-nav button.active::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 2px;
  background: #72d6c8;
}

.content {
  padding: 24px 28px 40px;
}

.hero {
  min-height: 500px;
  padding: 84px 28px 120px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 20, 31, 0.84), rgba(8, 20, 31, 0.36) 56%, rgba(8, 20, 31, 0.1)),
    url("./assets/hotel-hero.png") center / cover;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto 14px;
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  max-width: 760px;
  margin: 0 auto 26px;
  color: #d9e7eb;
  font-size: 17px;
}

.hero-search-wrap {
  margin-top: 76px;
}

.search-dock {
  position: relative;
  z-index: 12;
  max-width: 1320px;
  margin: -170px auto 0;
  padding: 0 28px;
}

.search-dock .search-panel {
  max-width: none;
}

.banner-dots {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.banner-dots button {
  width: 34px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  color: transparent;
  background: rgba(255, 255, 255, 0.42);
}

.banner-dots button.active {
  background: #72d6c8;
}

.search-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr repeat(4, minmax(130px, 1fr)) auto;
  gap: 12px;
  max-width: 1180px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.enhanced-search {
  grid-template-columns: minmax(220px, 1.4fr) minmax(220px, 1fr) minmax(160px, 0.8fr) minmax(150px, 0.7fr) auto;
}

.destination-field,
.date-field,
.guest-field {
  position: relative;
}

.suggest-panel,
.floating-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  min-width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.suggest-scrim {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: transparent;
}

.suggest-panel {
  z-index: 45;
}

.suggest-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #667085;
  background: #eef2f5;
  font-size: 18px;
  font-weight: 900;
}

.suggest-panel:empty {
  display: none;
}

.suggest-title {
  margin: 8px 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.suggest-panel button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 9px;
  border-radius: 6px;
  color: var(--ink);
  text-align: left;
  background: #fff;
}

.suggest-panel button:hover {
  background: #eef7f5;
}

.suggest-panel button span,
.suggest-empty {
  color: var(--muted);
  font-size: 12px;
}

.select-like,
.date-range-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
}

.date-range-btn {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
}

.date-picker-pop {
  width: min(560px, calc(100vw - 32px));
}

.date-picker-scrim {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: transparent;
}

.date-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.month-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.month-box h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.week-grid,
.day-grid {
  display: grid;
  grid-template-columns: repeat(7, 32px);
  gap: 3px;
}

.week-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.day-grid button,
.day-grid span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 30px;
  border-radius: 6px;
  color: var(--ink);
  background: #f7f9fb;
}

.day-grid button.selected {
  color: #fff;
  background: var(--brand);
}

.day-grid button.disabled {
  color: #b8c0c8;
  background: #eef1f4;
  cursor: not-allowed;
}

.guest-picker {
  min-width: 280px;
}

.picker-scrim {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: transparent;
}

.picker-title {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.select-like {
  color: var(--ink);
  font-weight: 700;
  text-align: left;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 80;
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  box-shadow: var(--shadow);
  font-weight: 800;
}

.large-textarea {
  min-height: 220px;
}

.stepper-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.stepper-row div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stepper-row button {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  color: var(--brand-strong);
  background: #dcefeb;
  font-weight: 900;
}

.child-ages {
  display: grid;
  gap: 8px;
  padding: 10px 0;
}

.child-ages label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
}

.field textarea {
  min-height: 84px;
  padding: 10px;
  resize: vertical;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.page-head h1,
.page-head h2 {
  margin: 0 0 8px;
}

.page-head p,
.muted {
  margin: 0;
  color: var(--muted);
}

.panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(24, 36, 48, 0.06);
}

.filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  align-items: end;
}

.grid {
  display: grid;
  gap: 16px;
}

.hotel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hotel-card,
.room-card,
.order-card,
.setting-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.hotel-card img {
  width: 100%;
  height: 162px;
  object-fit: cover;
  display: block;
}

.clickable-card {
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.clickable-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(24, 36, 48, 0.12);
}

.list-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.list-head,
.list-row {
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
}

.list-head {
  color: var(--muted);
  background: #f2f5f7;
  font-size: 12px;
  font-weight: 800;
}

.list-row {
  border-top: 1px solid var(--line);
  background: #fff;
}

.bulk-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 700;
}

.page-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-jump input {
  width: 72px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.hotel-list .list-head,
.hotel-list-row {
  grid-template-columns: minmax(280px, 1.5fr) minmax(150px, 0.7fr) minmax(220px, 1fr) minmax(210px, auto);
}

.visit-list {
  margin-top: 16px;
}

.visit-list .list-head,
.visit-list-row {
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 0.9fr) minmax(100px, 0.5fr) minmax(80px, 0.4fr) minmax(140px, 0.8fr) minmax(110px, 0.6fr);
  align-items: center;
}

.visit-customer {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.visit-customer small {
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visit-pages {
  color: var(--muted);
  font-size: 12px;
}

.tag-pc {
  background: #e8f0fe;
  color: #1a56d6;
}

.tag-mobile {
  background: #e6f7ee;
  color: #12805c;
}

.tag-guest {
  background: #f1f3f5;
  color: #868e96;
}

.tag-online {
  background: #fff3e6;
  color: #e8590c;
}

.tag-online::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: #2f9e44;
  animation: online-blink 1.6s ease-in-out infinite;
}

@keyframes online-blink {
  50% { opacity: 0.25; }
}

.stat-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat-chip {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, #f6f9ff 0%, #fdfefe 100%);
}

.stat-chip small {
  color: var(--muted);
  font-size: 12px;
}

.stat-chip strong {
  color: var(--brand-strong);
  font-size: 24px;
  line-height: 1.1;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.pager button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.customer-filters {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) auto auto;
}

.timing-stage-list {
  margin-top: 16px;
}

.timing-stage-list .list-head,
.timing-stage-row {
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.6fr) minmax(280px, 1.6fr);
}

.timing-record-list {
  margin-top: 16px;
}

.timing-record-list .list-head,
.timing-record-row {
  grid-template-columns: minmax(150px, 0.9fr) minmax(130px, 1fr) minmax(64px, 0.4fr) minmax(64px, 0.4fr) minmax(90px, 0.5fr) minmax(100px, 0.6fr) minmax(100px, 0.6fr) minmax(72px, 0.4fr);
}

.dashboard-filter {
  grid-template-columns: minmax(180px, 260px) auto;
  justify-content: start;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.metric-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 40, 80, 0.05);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #4f7cff, #37b6a5);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 40, 80, 0.08);
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric-card strong {
  color: var(--brand-strong);
  font-size: 30px;
  line-height: 1;
}

.metric-card small {
  color: var(--muted);
}

.trend-panel {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
}

.trend-panel h3 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--brand-strong);
}

.trend-chart {
  display: block;
  width: 100%;
  height: auto;
}

.dashboard-compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.dashboard-compare div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: #eaf5f2;
}

.dashboard-compare span,
.dashboard-compare small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-compare strong {
  color: var(--brand-strong);
  font-size: 22px;
}

.hotel-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.hotel-mini input[type="checkbox"] {
  flex: 0 0 auto;
}

.hotel-mini img {
  width: 76px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
}

.hotel-mini div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.hotel-mini span {
  color: var(--muted);
  font-size: 13px;
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.meta-list {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.detail-hero img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
}

.room-group {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 2.6fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.room-group + .room-group {
  margin-top: 12px;
}

.room-name-cell {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  background: #f7f9fb;
  border-right: 1px solid var(--line);
}

.room-name-cell span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.rate-lines {
  min-width: 0;
}

.rate-head,
.rate-line {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(120px, 0.9fr) minmax(110px, 0.8fr) minmax(150px, 1fr) minmax(90px, 0.7fr) minmax(70px, 0.5fr) minmax(90px, 0.7fr) minmax(150px, auto);
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
}

.consumer-rate-lines .rate-head,
.consumer-rate-lines .rate-line {
  grid-template-columns: minmax(130px, 1fr) minmax(120px, 0.9fr) minmax(150px, 1fr) minmax(100px, 0.7fr) minmax(90px, 0.7fr) minmax(110px, auto);
}

.rate-head {
  color: var(--muted);
  background: #fbfcfd;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
}

.rate-line {
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.rate-line:last-of-type {
  border-bottom: 0;
}

.price {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}

.tag,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #eef4f6;
  color: #31515f;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}

.hotel-stars {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
}

.hotel-stars .star-icons {
  color: #c9a063;
  font-size: 13px;
  letter-spacing: 1px;
}

.hotel-stars .level-tag {
  font-size: 11px;
  color: #c9a063;
  border: 1px solid #c9a063;
  border-radius: 3px;
  padding: 0 5px;
  line-height: 16px;
}

.status.paid,
.status.confirmed,
.status.done {
  color: #0d5e42;
  background: #dff4ea;
}

.status.pending,
.status.talk {
  color: #875100;
  background: #fff0d8;
}

.status.after {
  color: #8a1f17;
  background: #ffe3df;
}

.split {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 18px;
  align-items: start;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(112px, 1fr));
  gap: 10px;
}

.calendar-cell {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.calendar-cell label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.calendar-cell input {
  width: 100%;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: #10212e;
}

.login-panel {
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
}

.login-panel h1,
.login-panel h2 {
  margin: 0;
}

.login-brand {
  color: var(--ink);
}

.form-error {
  margin: 0;
  color: var(--danger);
  font-weight: 700;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 15, 23, 0.56);
}

.modal-panel {
  box-shadow: var(--shadow);
}

.batch-adjust-panel {
  width: min(460px, 100%);
}

.count-result {
  align-self: end;
  padding: 10px 12px;
  border: 1px solid #cde6df;
  border-radius: 8px;
  color: var(--brand-strong);
  background: #effaf6;
  font-weight: 800;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tabs button {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 6px;
  color: var(--brand-strong);
  background: #dcefeb;
  font-weight: 800;
}

.tabs button.active {
  color: #fff;
  background: var(--brand);
}

.coupon-grid,
.supplier-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.coupon-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px dashed #caa06f;
  border-radius: 8px;
  color: #5a3b11;
  background: #fff7e8;
}

.coupon-card span {
  color: #7b5b2a;
}

.profile-panel {
  margin-top: 16px;
}

.center-account-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.consumer-shell {
  padding-bottom: 0;
}

.consumer-bottom-tabs {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 80;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  padding: 7px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(122, 214, 204, 0.36);
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(13, 43, 54, 0.14);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.consumer-bottom-tabs button {
  min-height: 48px;
  border: 0;
  border-radius: 15px;
  background: #f4faf9;
  color: #3d5561;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
}

.consumer-bottom-tabs button span {
  display: block;
  margin-bottom: 2px;
  color: #67bdb5;
  font-size: 17px;
  line-height: 1;
}

.consumer-bottom-tabs button.active {
  background: linear-gradient(180deg, #dff7f3, #c9f0ea);
  color: #0f5f58;
  box-shadow: inset 0 0 0 1px rgba(15, 95, 88, 0.08);
}

.consumer-bottom-tabs button.active span {
  color: #0f766d;
}

.avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #7dd6cc;
  color: #0e2532;
  font-size: 28px;
  font-weight: 900;
}

.center-module {
  display: grid;
  gap: 14px;
}

.hotel-intro-text.clamped {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.room-thumb {
  display: block;
  width: 140px;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  margin-top: 10px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 20, 31, 0.72);
}

.gallery-box {
  position: relative;
  width: min(880px, 96vw);
  max-height: 92vh;
  padding: 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.gallery-box img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  background: #f4f7f8;
  border-radius: 8px;
}

.gallery-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #0e2532;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.gallery-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.update-progress {
  display: inline-block;
  margin-top: 6px;
  color: var(--primary);
  font-weight: 800;
}

.supplier-log-table details {
  max-width: 260px;
}

.supplier-log-table pre {
  white-space: pre-wrap;
  word-break: break-word;
}

.center-account-panel h2,
.service-panel h2 {
  margin: 0 0 8px;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--brand-strong);
  background: #dcefeb;
  font-size: 12px;
  vertical-align: middle;
}

.profile-name {
  margin: 6px 0 0;
  font-weight: 800;
}

.profile-actions {
  justify-content: flex-end;
}

.center-profile-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.center-tabs {
  flex-wrap: wrap;
}

.service-panel {
  display: grid;
  gap: 14px;
}

.svc-hero {
  text-align: center;
}

.svc-hero h2 {
  margin: 0 0 6px;
}

.svc-call {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border: 1px solid #eef0f4;
  border-radius: 12px;
  background: #f8fafc;
  text-decoration: none;
  color: inherit;
}

.svc-call-text {
  flex: 1;
  display: grid;
  gap: 3px;
}

.svc-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-strong);
  letter-spacing: 1px;
}

.svc-tip {
  font-size: 12px;
  color: #999;
}

.svc-chev {
  font-size: 22px;
  color: #c8ccd4;
}

.guests-panel {
  display: grid;
  gap: 14px;
}

.guest-list {
  display: grid;
  gap: 12px;
}

.guest-card {
  border: 1px solid #eef0f4;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.gc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.gc-name {
  font-size: 16px;
  font-weight: 700;
}

.gc-tag {
  font-size: 11px;
  color: var(--brand-strong);
  background: #dcefeb;
  padding: 2px 8px;
  border-radius: 999px;
}

.gc-line {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}

.gc-ops {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f5f6f8;
}

.gc-ops .danger {
  color: #f53f3f;
}

.guest-add-form {
  display: grid;
  gap: 10px;
  border-top: 1px dashed #dfe4ec;
  padding-top: 14px;
}

.order-notice {
  margin-top: 16px;
}

.price-filter {
  grid-template-columns: repeat(6, minmax(130px, 1fr)) auto;
}

.manage-range-note {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--brand);
  border-radius: 6px;
  background: #edf8f5;
  color: #49625c;
  font-size: 13px;
}

.price-manage-groups {
  display: grid;
  gap: 12px;
}

.price-manage-lines {
  overflow-x: auto;
}

.price-manage-lines .rate-head,
.price-manage-lines .rate-line {
  grid-template-columns: minmax(120px, 1fr) minmax(90px, 0.7fr) minmax(100px, 0.8fr) minmax(110px, 0.9fr) 92px 92px 90px;
  min-width: 860px;
}

.price-manage-lines .rate-line input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.price-manage-lines .actions {
  min-width: 0;
}

.price-manage-lines .actions .secondary-btn {
  width: 100%;
  min-width: 0;
  padding: 0 10px;
  white-space: nowrap;
}

.booking-date-summary {
  display: grid;
  gap: 10px;
  margin: 8px 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.price-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(130px, 0.8fr) minmax(110px, 0.7fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr);
  gap: 10px;
  align-items: center;
  min-width: 760px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.compact-price-row {
  grid-template-columns: minmax(180px, 1.3fr) minmax(120px, 0.8fr) minmax(170px, 0.9fr) minmax(110px, 0.7fr) minmax(110px, 0.7fr) minmax(110px, auto);
}

.price-row input {
  width: 100%;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.price-head-row {
  border-top: 0;
  color: var(--muted);
  background: #f2f5f7;
  font-size: 12px;
  font-weight: 800;
}

.banner-editor-list {
  display: grid;
  gap: 14px;
}

.banner-editor {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.banner-editor img {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  object-fit: cover;
}

.banner-fields {
  display: grid;
  gap: 12px;
}

.banner-interval {
  max-width: 260px;
  margin-bottom: 14px;
}

.file-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
}

.file-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.banner-search-form,
.hot-hotel-filter {
  grid-template-columns: minmax(260px, 1fr) auto;
  margin-top: 16px;
}

.image-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.image-result {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  background: #fff;
}

.image-result img {
  width: 100%;
  height: 110px;
  border-radius: 6px;
  object-fit: cover;
}

.hot-hotel-list {
  display: grid;
  gap: 10px;
}

.check-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.check-row input {
  margin-top: 4px;
}

.hot-hotel-config-row {
  align-items: center;
}

.hot-hotel-config-row .checkbox-line {
  margin: 0;
}

.hot-sort-field {
  margin-left: auto;
  min-width: 110px;
}

.hot-sort-field input {
  width: 100%;
}

.hot-theme-field {
  min-width: 140px;
}

.hot-theme-field select {
  width: 100%;
}

.hot-theme-admin {
  margin-bottom: 16px;
}

.hot-theme-filters {
  flex: 1;
  grid-template-columns: 1fr 90px 100px auto;
  align-items: end;
}

.demand-list {
  display: grid;
  gap: 12px;
}

.demand-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.demand-item p {
  margin: 0;
  color: var(--muted);
}

.demand-detail pre {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.7;
  font: inherit;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.summary-line:last-child {
  border-bottom: 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-size: 12px;
}

.empty {
  padding: 34px;
  color: var(--muted);
  text-align: center;
}

.home-section {
  max-width: 1180px;
  margin: 132px auto 0;
  padding: 0 28px 38px;
}

.home-section h2 {
  margin: 0 0 14px;
}

.notice {
  padding: 12px 14px;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  color: #25434e;
  background: #e7f4f1;
}

.checkbox-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
}

.checkbox-line input {
  margin-top: 4px;
}

.compact-head {
  align-items: center;
  margin-bottom: 14px;
}

.supplier-staging-list .list-head,
.supplier-staging-row {
  grid-template-columns: minmax(280px, 1.6fr) minmax(160px, 0.7fr) minmax(150px, 0.55fr) minmax(220px, 0.8fr);
}

.supplier-staging-row .actions {
  align-items: center;
  justify-content: flex-end;
}

.staging-actions {
  align-items: end;
  justify-content: flex-start;
  margin: 14px 0;
}

.mini-field {
  display: grid;
  gap: 5px;
  min-width: 86px;
  color: var(--muted);
  font-size: 12px;
}

.mini-field input {
  width: 86px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.hotel-wizard {
  display: grid;
  gap: 18px;
}

.staging-refresh-form {
  grid-template-columns: minmax(180px, 0.75fr) minmax(180px, 0.75fr) minmax(220px, 1fr) minmax(150px, 0.65fr) minmax(150px, 0.65fr) auto;
}

.supplier-query-status {
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
  padding: 14px 16px;
  border: 1px solid #cfe6df;
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: #effaf6;
}

.supplier-query-status.failed {
  border-color: #f1c5c5;
  border-left-color: #b23b3b;
  background: #fff4f4;
}

.supplier-query-status.success {
  border-color: #cfe6df;
  background: #edf8f4;
}

.supplier-query-status .status-title {
  font-weight: 900;
  color: var(--ink);
}

.batch-import-progress {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
  padding: 12px 14px;
  border: 1px solid #cfe6df;
  border-radius: 8px;
  background: #f6fbf9;
}

.batch-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
}

.batch-progress-head span {
  color: var(--muted);
  font-size: 13px;
}

.batch-progress-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfece8;
}

.batch-progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 0.2s ease;
}

.status-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-steps span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.status-steps span.active {
  background: var(--brand);
  color: #fff;
}

.room-edit-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.room-edit-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(110px, 0.7fr) minmax(100px, 0.65fr) minmax(100px, 0.65fr) minmax(160px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfc;
}

.wizard-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.wizard-step:last-child {
  border-bottom: 0;
}

.wizard-step h3 {
  margin: 0 0 12px;
}

.step-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-weight: 900;
}

.mini-table {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mini-table .summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f9fbfc;
}

.add-price-table {
  overflow-x: auto;
  margin-top: 14px;
}

.add-price-table .price-row {
  grid-template-columns: minmax(150px, 0.75fr) repeat(7, minmax(108px, 1fr));
  min-width: 920px;
}

.add-price-head span {
  font-weight: 900;
}

.add-price-row span {
  display: grid;
  gap: 6px;
}

.add-price-row .add-price-cell {
  align-content: start;
}

.add-price-row input {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
}

@media (max-width: 980px) {
  .layout,
  .split,
  .banner-editor,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .filters,
  .staging-refresh-form,
  .search-panel,
  .enhanced-search,
  .hotel-grid,
  .coupon-grid,
  .supplier-grid,
  .room-group,
  .hotel-list .list-head,
  .hotel-list-row,
  .supplier-staging-list .list-head,
  .supplier-staging-row,
  .rate-head,
  .rate-line,
  .consumer-rate-lines .rate-head,
  .consumer-rate-lines .rate-line,
  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .room-edit-row {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .dashboard-compare,
  .stat-chips,
  .visit-list .list-head,
  .visit-list-row,
  .timing-stage-list .list-head,
  .timing-stage-row,
  .timing-record-list .list-head,
  .timing-record-row {
    grid-template-columns: 1fr;
  }

  .price-filter {
    grid-template-columns: 1fr;
  }

  .banner-search-form,
  .hot-hotel-filter,
  .image-result-grid {
    grid-template-columns: 1fr;
  }

  .month-pair {
    grid-template-columns: 1fr;
  }

  .room-name-cell {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .wizard-step {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 14px;
    color: #182834;
  }

  .consumer-shell {
    padding-bottom: 82px;
  }

  .consumer-bottom-tabs {
    display: grid;
  }

  .topbar:not(.admin-topbar) .nav {
    display: none;
  }

  .topbar {
    position: sticky;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    min-height: auto;
    padding: 10px 14px;
  }

  .brand {
    width: 100%;
    justify-content: flex-start;
    font-size: 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .nav button,
  .ghost-btn,
  .top-user {
    width: 100%;
    min-height: 42px;
    padding: 0 8px;
    border-radius: 8px;
    text-align: center;
  }

  .top-user {
    display: grid;
    place-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.08);
  }

  .content,
  .home-section {
    padding: 14px;
  }

  .home-section {
    margin-top: 24px;
  }

  .hero {
    min-height: 360px;
    padding: 36px 14px 84px;
    background-position: center;
  }

  .hero-inner {
    text-align: left;
  }

  .hero-search-wrap {
    margin-top: 34px;
  }

  .search-dock {
    margin-top: -72px;
    padding: 0 12px;
  }

  .hero h1 {
    font-size: 26px;
    line-height: 1.12;
  }

  .hero p {
    font-size: 13px;
  }

  .search-panel,
  .enhanced-search {
    gap: 9px;
    padding: 12px;
    border-radius: 12px;
  }

  .search-panel .primary-btn,
  .enhanced-search .primary-btn {
    min-height: 46px;
    width: 100%;
  }

  .field input,
  .field select,
  .field textarea,
  .select-like,
  .date-range-btn {
    min-height: 42px;
    border-radius: 10px;
    font-size: 14px;
  }

  .field label {
    font-size: 12px;
    color: #5f7280;
  }

  .suggest-panel,
  .floating-panel {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    min-width: 0;
    max-height: 68vh;
    overflow: auto;
    border-radius: 12px;
  }

  .destination-field .suggest-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: auto;
    bottom: auto;
    left: 0;
    width: 100%;
    max-height: 42vh;
    border-radius: 10px;
  }

  .date-picker-pop {
    width: auto;
  }

  .month-pair {
    gap: 14px;
  }

  .week-grid,
  .day-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .day-grid button,
  .day-grid span {
    width: 100%;
    height: 36px;
  }

  .page-head {
    display: grid;
    gap: 12px;
  }

  .page-head h1 {
    font-size: 22px;
    line-height: 1.18;
  }

  .page-head p,
  .meta-list,
  .muted {
    font-size: 13px;
  }

  .hotel-grid {
    grid-template-columns: 1fr;
  }

  .hotel-card img {
    height: 172px;
  }

  .card-body {
    padding: 14px;
  }

  .card-body h3 {
    font-size: 17px;
    line-height: 1.28;
  }

  .primary-btn,
  .secondary-btn,
  .danger-btn,
  .text-btn {
    font-size: 14px;
  }

  .detail-hero img {
    height: 190px;
  }

  .detail-filters {
    grid-template-columns: 1fr;
  }

  .room-group {
    border-radius: 10px;
  }

  .room-name-cell {
    padding: 12px;
  }

  .rate-head {
    display: none;
  }

  .rate-line,
  .consumer-rate-lines .rate-line {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    font-size: 14px;
  }

  .rate-line > span,
  .rate-line > strong {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
  }

  .consumer-rate-lines .rate-line > span:nth-child(1)::before {
    content: "套餐";
    color: var(--muted);
    font-weight: 800;
  }

  .consumer-rate-lines .rate-line > span:nth-child(2)::before {
    content: "床早";
    color: var(--muted);
    font-weight: 800;
  }

  .consumer-rate-lines .rate-line > span:nth-child(3)::before {
    content: "取消";
    color: var(--muted);
    font-weight: 800;
  }

  .consumer-rate-lines .rate-line > strong::before {
    content: "价格";
    color: var(--muted);
    font-size: 13px;
  }

  .consumer-rate-lines .rate-line > span:nth-child(5)::before {
    content: "预订状态";
    color: var(--muted);
    font-weight: 800;
  }

  .rate-line .actions {
    margin-top: 8px;
  }

  .rate-line .actions button {
    width: 100%;
    min-height: 44px;
  }

  .split {
    gap: 14px;
  }

  .panel {
    padding: 16px;
    border-radius: 10px;
  }

  .booking-date-summary {
    grid-template-columns: 1fr;
  }

  .center-account-panel,
  .center-profile-form {
    grid-template-columns: 1fr;
  }

  .center-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .center-tabs button {
    padding: 0 8px;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    transform: none;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .nav {
    grid-template-columns: 1fr 1fr;
  }

  .top-user {
    grid-column: 1 / -1;
  }

  .hero {
    min-height: 360px;
  }

  .hero h1 {
    font-size: 28px;
  }
}

.share-modal {
  width: min(420px, 100%);
  padding: 24px;
  border-radius: 12px;
  background: var(--paper);
}

.share-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.share-head h3 {
  margin: 0;
  font-size: 18px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 20px;
  line-height: 1;
}

.icon-btn:hover {
  background: var(--soft);
}

.share-body {
  display: grid;
  gap: 16px;
  text-align: center;
}

.share-hotel-name {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.share-qr img {
  width: 200px;
  height: 200px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.share-url-row {
  display: flex;
  gap: 8px;
}

.share-url-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  font-size: 13px;
}

.share-tip {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- AI助手 ---------- */
.ai-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin-bottom: 14px;
}

.ai-sub-title {
  margin: 18px 0 10px;
}

.ai-topk-field {
  max-width: 220px;
  margin-top: 10px;
}

.ai-config-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.ai-config-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.ai-config-card.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.ai-config-card p {
  margin: 6px 0 0;
  word-break: break-all;
}

.ai-config-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ai-active-tag {
  padding: 2px 8px;
  border-radius: 10px;
  color: #fff;
  background: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.ai-test-result {
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  word-break: break-all;
}

.ai-test-result.ok {
  color: #0f7b4d;
  background: #e9f9ef;
  border-color: #b8e8c9;
}

.ai-test-result.fail {
  color: var(--danger);
  background: #fdeeee;
  border-color: #f3c2cb;
}

.ai-kb-upload {
  grid-template-columns: minmax(180px, 260px) auto;
  justify-content: start;
  margin-top: 14px;
}

.ai-kb-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 10px;
  color: var(--brand-strong);
  background: #dcefeb;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ai-doc-status {
  font-weight: 700;
  white-space: nowrap;
}

.ai-doc-status.ok {
  color: #0f7b4d;
}

.ai-doc-status.doing {
  color: #d08a00;
}

.ai-doc-status.fail {
  color: var(--danger);
}

.ai-kb-ops {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .ai-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 整体视觉升级（通用组件美化，只追加/覆盖样式，类名不变） ---------- */

/* 按钮：hover 微上浮 + 轻阴影，active 回落 */
.primary-btn,
.secondary-btn,
.danger-btn {
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition), background-color var(--transition);
}

.primary-btn:hover,
.secondary-btn:hover,
.danger-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.primary-btn:active,
.secondary-btn:active,
.danger-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* 表单控件：统一高度 / 圆角 / 品牌色 focus 描边环 */
.field input,
.field select,
.field textarea {
  min-height: 36px;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field textarea {
  min-height: 84px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 107, 99, 0.15);
}

/* 卡片面板：大圆角 + 轻阴影 */
.panel {
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

/* 表格：浅灰表头 + 斑马纹 + 行 hover */
.table th {
  font-weight: 800;
  background: var(--gray-50);
}

.table tbody tr {
  transition: background-color var(--transition);
}

.table tbody tr:nth-child(even) {
  background: #fafbfc;
}

.table tbody tr:hover {
  background: #eef6f4;
}

/* 标签页：下划线式现代 tab */
.tabs {
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.tabs button {
  margin-bottom: -1px;
  padding: 0 14px;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
}

.tabs button:hover {
  color: var(--brand);
  background: transparent;
  filter: none;
}

.tabs button.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  background: transparent;
}

/* 弹窗：遮罩模糊 + 入场动画 */
.modal-backdrop {
  background: rgba(7, 15, 23, 0.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: modal-fade-in var(--transition);
}

.modal-panel {
  border-radius: var(--radius-lg);
  animation: modal-pop-in 0.22s ease;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-pop-in {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* 指标卡：保留顶部渐变条，阴影接入分级令牌 */
.metric-card {
  box-shadow: var(--shadow-sm);
}

.metric-card:hover {
  box-shadow: var(--shadow-md);
}

/* ---------- 全局交互工具（toast 类型 / 加载 / 空态 / 确认弹窗 / 气泡 / 条形图） ---------- */

/* 带类型的 toast：左侧色点，成功绿 / 错误红 / 信息蓝；不传类型时维持默认样式 */
.toast.success,
.toast.error,
.toast.info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.success {
  background: var(--ok);
}

.toast.error {
  background: var(--danger);
}

.toast.info {
  background: var(--info);
}

.toast.success::before,
.toast.error::before,
.toast.info::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}

/* 加载旋转圆环（品牌色） */
.spinner {
  display: inline-block;
  flex: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(14, 107, 99, 0.18);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 居中加载块：旋转圆环 + 文案 */
.loading-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 34px 16px;
  color: var(--muted);
  font-size: 14px;
}

/* 骨架屏：灰色呼吸动画块，使用时自行给定宽高 */
.skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 37%, var(--gray-100) 63%);
  background-size: 400% 100%;
  animation: skeleton-breathe 1.4s ease infinite;
}

@keyframes skeleton-breathe {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

/* 统一空态：居中图标 + 文案 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 38px 24px;
  color: var(--muted);
  text-align: center;
}

.empty-state-icon {
  display: inline-flex;
  color: var(--gray-400);
}

/* Promise 化确认弹窗（配合 confirmDialog()，基于 .modal-panel） */
.confirm-dialog {
  display: grid;
  gap: 10px;
  width: min(420px, 100%);
}

.confirm-dialog-title {
  margin: 0;
  font-size: 16px;
}

.confirm-dialog-message {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.7;
  white-space: pre-line;
  word-break: break-word;
}

.confirm-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

/* 危险操作确认：主按钮标红 */
.confirm-dialog.danger .confirm-dialog-actions .primary-btn {
  background: var(--danger);
}

/* 聊天气泡：用户右侧品牌色底白字，助手左侧白底卡片 */
.chat-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  line-height: 1.6;
  word-break: break-word;
  white-space: pre-wrap;
  box-shadow: var(--shadow-sm);
}

.chat-bubble.user {
  margin-left: auto;
  color: #fff;
  background: var(--brand);
  border-bottom-right-radius: var(--radius-sm);
}

.chat-bubble.assistant {
  margin-right: auto;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: var(--radius-sm);
}

/* 看板分组标题 */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 14px;
  color: var(--gray-700);
  font-size: 15px;
  font-weight: 800;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--brand);
}

/* 横向条形图：标签 + 品牌色渐变填充条 + 数值，宽度用内联 style 百分比 */
.bar-row {
  display: grid;
  grid-template-columns: minmax(90px, 140px) 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  font-size: 13px;
}

.bar-row .bar-label {
  overflow: hidden;
  color: var(--gray-700);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-row .bar-track {
  height: 10px;
  border-radius: 5px;
  background: var(--gray-100);
  overflow: hidden;
}

.bar-row .bar-fill {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--brand), #37b6a5);
  transition: width 0.4s ease;
}

.bar-row .bar-value {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- 知识天地 / 看板 / 模型管理（任务一~三模块改造新增类） ---------- */

/* 拖拽上传区：虚线边框，拖入或悬停时品牌色高亮 */
.drop-zone {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 12px 0 16px;
  padding: 26px 18px;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  text-align: center;
  transition: border-color var(--transition), background-color var(--transition);
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.drop-zone p {
  margin: 0;
}

/* Agent 创建/编辑表单卡与草案卡（原内联样式抽类，视觉对齐 .ai-config-card） */
.agent-form-card {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.agent-draft-filters {
  grid-template-columns: 1fr auto auto;
  align-items: end;
}

.agent-draft-card {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.agent-draft-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.agent-draft-note {
  margin: 0 0 8px;
}

.agent-draft-card textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.6;
}

.agent-draft-card textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 107, 99, 0.15);
}

.agent-draft-actions {
  margin-top: 10px;
}

/* 知识天地对话视图：消息区内部滚动，输入栏吸底 */
.chat-panel {
  display: flex;
  flex-direction: column;
  height: max(420px, calc(100vh - 260px));
  padding: 0;
  overflow: hidden;
}

.chat-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 16px 18px;
}

.chat-input-bar {
  display: flex;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: var(--gray-50);
}

.chat-input-bar input {
  flex: 1;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.chat-input-bar input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 107, 99, 0.15);
}

.chat-input-bar button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 气泡内的参考来源行 */
.chat-bubble-refs {
  margin-top: 6px;
  font-size: 12px;
  color: var(--gray-400);
}

/* spinner 变体：小号 / 深色按钮上的浅色 */
.spinner.sm {
  width: 14px;
  height: 14px;
}

.spinner.light {
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}

/* AI 规划入口分享弹层（.modal-backdrop 体系，原内联样式抽类） */
.share-entry-panel {
  display: grid;
  gap: 10px;
  width: 340px;
  text-align: center;
}

.share-entry-panel h3 {
  margin: 0;
  font-size: 16px;
}

.share-entry-tip {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.share-entry-qr {
  display: flex;
  justify-content: center;
}

.share-entry-label {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

.share-entry-input {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.share-entry-link {
  margin: 0;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--gray-600);
  background: var(--gray-100);
  font-size: 12px;
  text-align: left;
  word-break: break-all;
}

/* 看板条形图下方口径说明 */
.bar-note {
  margin: 10px 0 0;
  font-size: 12px;
}

/* 模型管理：卡片内表单控件间距与本地/API 对比区 */
.ai-config-card .field {
  margin-top: 10px;
}

.ai-config-card .actions {
  margin-top: 12px;
}

.model-hub-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.model-hub-compare h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.model-hub-compare ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
}

.model-hub-hint {
  margin: 10px 0 0;
  font-size: 13px;
}

.model-hub-hint code {
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  font-size: 12px;
}

/* ---------- 白色简洁主题（对齐 prototype/admin-redesign 设计稿，类名不变，后加载覆盖） ---------- */

/* 焦点环 / 输入描边环：青绿 → 蓝 */
button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.25);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.agent-draft-card textarea:focus,
.chat-input-bar input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* 顶部栏：白底 56px + 底细边框 */
.topbar {
  min-height: 56px;
  padding: 0 24px;
  color: var(--ink);
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.admin-topbar {
  background: #fff;
}

.brand-mark {
  color: #fff;
  background: var(--brand);
}

.nav button,
.ghost-btn {
  color: var(--muted);
  background: transparent;
}

.nav button:hover {
  color: var(--ink);
  background: var(--soft);
}

.top-user {
  color: var(--ink);
}

/* 侧边导航：白底 + 右侧细边框；active = 浅蓝底 + 蓝字 + 蓝色左 3px 条 */
.sidebar {
  padding: 14px 0;
  color: var(--muted);
  background: #fff;
  border-right: 1px solid var(--line);
}

.side-title {
  margin: 0 12px 10px;
  color: var(--faint);
}

.side-nav {
  gap: 0;
}

/* 侧栏收窄至 176px 后，按钮左右内边距同步压缩，保证 5-6 字菜单不换行 */
.side-nav button {
  min-height: 38px;
  padding: 0 10px 0 13px;
  border-left: 3px solid transparent;
  border-radius: 0;
  color: var(--muted);
}

.side-nav button:hover {
  color: var(--ink);
  background: var(--soft);
}

.side-nav button.active {
  color: var(--brand);
  background: var(--brand-soft);
  border-left-color: var(--brand);
  font-weight: 600;
}

/* 旧的 ::before 指示条已由 border-left 替代 */
.side-nav button.active::before {
  content: none;
}

/* 内容区：按设计稿收窄并居中 */
.content {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 24px 40px;
}

/* 按钮：主蓝底白字 / 次白底灰边框 / 危险红；去掉上浮与重阴影 */
.primary-btn,
.secondary-btn,
.danger-btn,
.text-btn {
  min-height: 36px;
  border-radius: var(--radius);
  box-shadow: none;
  font-weight: 600;
}

.primary-btn {
  color: #fff;
  background: var(--brand);
}

.primary-btn:hover {
  background: var(--brand-strong);
  transform: none;
  box-shadow: none;
}

.secondary-btn {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.secondary-btn:hover {
  color: var(--brand);
  border-color: var(--brand);
  transform: none;
  box-shadow: none;
}

.danger-btn {
  color: #fff;
  background: var(--danger);
}

.danger-btn:hover {
  transform: none;
  box-shadow: none;
  filter: brightness(0.94);
}

.text-btn {
  color: var(--brand);
  background: transparent;
  box-shadow: none;
}

.primary-btn:active,
.secondary-btn:active,
.danger-btn:active {
  transform: none;
  box-shadow: none;
}

/* 面板/卡片：白底细边框 8px 圆角 + 极浅阴影 */
.panel,
.metric-card,
.hotel-card,
.room-card,
.order-card,
.setting-card,
.ai-config-card,
.trend-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.metric-card:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

/* metric-card 顶部渐变条 → 纯蓝 3px 条 */
.metric-card::before {
  background: var(--brand);
}

.metric-card strong {
  color: var(--ink);
  font-size: 26px;
}

/* 表格：浅灰表头、去斑马纹、行 hover 浅灰 */
.table th {
  color: var(--muted);
  font-weight: 600;
  background: var(--soft);
}

.table td {
  border-bottom-color: #f3f4f6;
}

.table tbody tr:nth-child(even) {
  background: transparent;
}

.table tbody tr:hover {
  background: var(--soft);
}

/* tabs：hover 主文字色、active 蓝色下划线（--brand 已换蓝，自动生效） */
.tabs button:hover {
  color: var(--ink);
}

/* 青绿杂项 → 蓝色系 */
.stepper-row button,
.ai-kb-tag {
  color: var(--brand);
  background: var(--brand-soft);
}

.count-result {
  border-color: #bfdbfe;
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.notice {
  border-left-color: var(--brand);
  color: var(--gray-600);
  background: var(--brand-soft);
}

.login-badge,
.gc-tag {
  color: var(--brand);
  background: var(--brand-soft);
}

.supplier-query-status {
  border-color: #bfdbfe;
  background: var(--brand-soft);
}

.ai-test-result.ok {
  color: var(--ok);
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.ai-test-result.fail {
  color: var(--danger);
  background: #fef2f2;
  border-color: #fecaca;
}

.ai-doc-status.ok {
  color: var(--ok);
}

/* 登录页：白色简洁风 */
.login-shell {
  background: var(--soft);
}

.login-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* 聊天气泡：用户浅蓝底深字，助手白底卡片 */
.chat-bubble.user {
  color: var(--ink);
  background: var(--brand-soft);
  border: 1px solid #dbeafe;
}

.chat-bubble.assistant {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

/* 条形图：蓝色渐变填充条（对齐设计稿） */
.bar-row .bar-track {
  height: 20px;
  background: var(--soft);
}

.bar-row .bar-fill {
  background: linear-gradient(90deg, #93c5fd, #2563eb);
}

.bar-row + .bar-row {
  border-top: 1px dashed #f1f3f5;
}

/* spinner 描边随主色 */
.spinner {
  border-color: rgba(37, 99, 235, 0.15);
  border-top-color: var(--brand);
}

/* 拖拽上传区 hover/拖入高亮随主色（--brand-soft 已为浅蓝） */
.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

/* 移动端汉堡按钮：默认隐藏，仅 ≤768px 显示 */
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius);
  color: var(--ink);
  background: transparent;
  font-size: 18px;
}

.hamburger:active {
  background: var(--soft);
}

.drawer-mask {
  display: none;
}

/* ---------- 移动端响应式（≤768px：抽屉导航 + 单列布局 + 触控目标 ≥40px） ---------- */
@media (max-width: 768px) {
  /* 汉堡按钮仅移动端可见 */
  .hamburger {
    display: inline-flex;
  }

  .topbar {
    min-height: 52px;
    padding: 0 14px;
    gap: 10px;
  }

  .topbar .brand span:last-child {
    font-size: 14px;
  }

  /* 布局壳由左右栅格改为单列 */
  .layout {
    display: block;
    min-height: auto;
  }

  /* 侧边导航改固定抽屉：默认隐藏，.open 滑出 */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 60;
    width: 260px;
    padding-top: 12px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow-lg);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .side-nav button {
    min-height: 44px;
  }

  /* 深色遮罩：点遮罩收起抽屉 */
  .drawer-mask {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .drawer-mask.open {
    opacity: 1;
    pointer-events: auto;
  }

  .content {
    max-width: none;
    padding: 16px;
  }

  /* 页头标题缩小 */
  .page-head h1 {
    font-size: 20px;
  }

  .page-head {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
  }

  /* 多列栅格收窄：筛选双列、指标双列、表单/卡片单列 */
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-filter,
  .ai-kb-upload {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-card strong {
    font-size: 20px;
  }

  .ai-form-grid,
  .coupon-grid,
  .supplier-grid,
  .hotel-grid,
  .model-hub-compare,
  .agent-draft-filters {
    grid-template-columns: 1fr;
  }

  /* 表格包横向滚动，不逐表改卡片 */
  .table {
    display: block;
    overflow-x: auto;
  }

  /* 触控目标 ≥40px */
  .primary-btn,
  .secondary-btn,
  .danger-btn,
  .text-btn,
  .nav button,
  .ghost-btn,
  .tabs button {
    min-height: 40px;
  }

  .field input,
  .field select {
    min-height: 40px;
  }

  /* 对话视图窄屏自适应 */
  .chat-panel {
    height: calc(100vh - 190px);
  }

  .chat-bubble {
    max-width: 82%;
  }

  /* 看板条形图窄屏：压缩标签列 */
  .bar-row {
    grid-template-columns: 64px 1fr auto;
    gap: 8px;
  }

  .bar-row .bar-track {
    height: 14px;
  }

  /* 登录页移动端适配 */
  .login-shell {
    padding: 16px;
  }

  .login-panel {
    width: 100%;
  }

  /* 弹窗窄屏边距 */
  .modal-backdrop {
    padding: 14px;
  }
}

/* C 端 banner 圆点随主色换蓝（共享样式文件，避免青绿残留） */
.banner-dots button.active {
  background: var(--brand);
}

/* ============ 知识天地 · Agent 思考过程展示 ============ */
.kl-msg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.think-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: fit-content;
  padding: 7px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  font-size: 12px;
  color: var(--muted);
}

.think-step {
  color: var(--faint);
  transition: color 0.2s;
}

.think-step.doing {
  color: var(--brand);
  font-weight: 600;
}

.think-step.done {
  color: var(--ok);
}

.think-steps-arrow {
  color: #d4d7dc;
}

.spinner.sm {
  width: 10px;
  height: 10px;
  border-width: 1.5px;
  vertical-align: -1px;
}

.think-panel {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 12.5px;
  overflow: hidden;
}

.think-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.think-head:hover {
  color: var(--brand);
}

.think-chev {
  font-size: 11px;
  color: var(--faint);
  transition: transform 0.18s;
}

.think-panel.open .think-chev {
  transform: rotate(90deg);
}

.think-body {
  display: none;
  max-width: 560px;
  padding: 10px 14px;
  border-top: 1px dashed var(--line);
  background: var(--soft);
  color: var(--faint);
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.think-panel.open .think-body {
  display: block;
}

/* ============ 知识天地 · 语音录入知识库 ============ */
.voice-card .notice {
  margin-bottom: 14px;
}

.voice-main {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.voice-mic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
  background: var(--brand);
  font-size: 26px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transition: transform 0.15s, background 0.2s;
}

.voice-mic:hover {
  transform: scale(1.05);
}

.voice-mic.recording {
  background: var(--danger);
  animation: voice-mic-pulse 1.4s ease-out infinite;
}

@keyframes voice-mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.35); }
  50% { box-shadow: 0 0 0 14px rgba(220, 38, 38, 0); }
}

.voice-side {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.voice-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 30px;
}

.voice-wave i {
  width: 3px;
  border-radius: 2px;
  background: var(--danger);
  animation: voice-wave 1s ease-in-out infinite;
}

.voice-wave i:nth-child(1) { height: 9px; animation-delay: 0s; }
.voice-wave i:nth-child(2) { height: 18px; animation-delay: 0.12s; }
.voice-wave i:nth-child(3) { height: 27px; animation-delay: 0.24s; }
.voice-wave i:nth-child(4) { height: 14px; animation-delay: 0.36s; }
.voice-wave i:nth-child(5) { height: 23px; animation-delay: 0.48s; }
.voice-wave i:nth-child(6) { height: 11px; animation-delay: 0.6s; }
.voice-wave i:nth-child(7) { height: 19px; animation-delay: 0.72s; }

@keyframes voice-wave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.voice-time {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.voice-preview {
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  font-size: 13px;
  line-height: 1.7;
  word-break: break-word;
}

.voice-interim {
  color: var(--faint);
}

.voice-confirm-card {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  background: #f8fbff;
}

.voice-confirm-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
}

.voice-confirm-card textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13.5px;
  font-family: inherit;
  line-height: 1.8;
  resize: vertical;
}

.voice-confirm-card textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.voice-env-hint {
  margin: 14px 0 0;
  font-size: 12px;
}

@media (max-width: 768px) {
  .voice-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .voice-side {
    justify-items: center;
  }
}

/* ============ 语音录入修复：显式结束按钮 / 服务异常提示 / 预览占位 ============ */
.voice-stop-btn {
  min-height: 44px;
  padding: 0 22px;
  border: 1.5px solid var(--danger);
  border-radius: var(--radius);
  background: #fff;
  color: var(--danger);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.voice-stop-btn:hover {
  background: var(--danger);
  color: #fff;
}

.voice-warn {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  background: #fffbeb;
  color: #b45309;
  font-size: 12.5px;
  line-height: 1.7;
}

.voice-preview-placeholder {
  color: var(--faint);
}
