:root {
  --ink: #1a1a1a;
  --muted: #8a9099;
  --accent: #0d8b8b;
  --brand: #8b1e2d;
  --bg: #f4f5f7;
  --line: #eceef1;
  --card: #fff;
  --warm-bg: #f7f3eb;
  --warm-chip: #efe6d6;
  --warm-ink: #2c2118;
  --warm-muted: #8b7355;
  --warm-btn: #8b4513;
  --warm-body: #4a3b2f;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
button { border: 0; cursor: pointer; font: inherit; background: none; }
input, select {
  font: inherit;
  border: 0;
  outline: none;
  width: 100%;
  background: transparent;
}

#app { min-height: 100vh; }
.view {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 12px 88px;
  min-height: 100vh;
}
.view.theme-warm { background: var(--warm-bg); }
.view.theme-cool { background: var(--bg); }
.view.hide-tab { padding-bottom: 24px; }

/* —— Tab bar（对齐小程序） —— */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0);
  max-width: 720px;
  margin: 0 auto;
}
.tab {
  flex: 1;
  text-align: center;
  padding: 12px 0 10px;
  color: #8a8a8a;
  font-size: 12px;
}
.tab.active { color: var(--accent); font-weight: 600; }
.tab-icon { display: block; }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 15px;
  cursor: pointer;
  border: 0;
}
.btn.block { width: 100%; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.ghost { background: #fff; color: #333; }
.btn.danger { background: #fee2e2; color: #b91c1c; }
.btn.warm { background: var(--warm-btn); color: #fff; border-radius: 8px; }
.btn.warm-ghost {
  background: transparent;
  border: 1px solid var(--warm-btn);
  color: var(--warm-btn);
  border-radius: 8px;
}
.actions { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.actions .btn { flex: 1; min-width: 120px; }

/* —— Home / cool cards —— */
.hero-card, .stats, .navs, .tl-card, .auc-row, .profile, .menu, .auth-form {
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(20, 30, 40, 0.04);
}
.hero-card { padding: 16px; }
.hero-top { display: flex; justify-content: space-between; align-items: center; }
.brand-mark {
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--brand);
  font-weight: 700;
}
.loc { font-size: 12px; color: #9aa0a6; }
.headline { display: block; margin-top: 10px; font-size: 20px; font-weight: 700; line-height: 1.35; }
.search {
  margin-top: 12px; background: #f0f1f3; border-radius: 999px;
  display: flex; align-items: center; padding: 4px; cursor: pointer;
}
.search-btn { background: #1f1f1f; color: #fff; font-size: 12px; padding: 8px 14px; border-radius: 999px; }
.search-ph { margin-left: 10px; font-size: 12px; color: #9aa0a6; }

.stats { margin-top: 10px; display: flex; align-items: center; padding: 14px 6px; }
.stat { flex: 1; text-align: center; }
.stat-num { display: block; font-size: 22px; font-weight: 700; color: var(--accent); }
.stat-label { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.stat-line { width: 1px; height: 28px; background: var(--line); }

.banner-wrap {
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.banner-track {
  display: flex;
  transition: transform 0.35s ease;
}
.banner-item {
  min-width: 100%;
  height: 150px;
  position: relative;
  color: #fff;
  padding: 16px;
  overflow: hidden;
  background: #8b1e2d;
}
.banner-item.bg1 { background: linear-gradient(110deg, #8b1e2d, #4a1018); }
.banner-item.bg2 { background: linear-gradient(110deg, #0d6b6b, #084040); }
.banner-item.bg3 { background: linear-gradient(110deg, #8b4513, #3d2b1f); }
.banner-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.banner-mask {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.4), rgba(0,0,0,.05));
}
.banner-tag {
  position: relative; z-index: 2;
  display: inline-block; background: rgba(255,255,255,.92); color: var(--brand);
  font-size: 11px; padding: 3px 10px; border-radius: 999px;
}
.banner-title {
  position: relative; z-index: 2;
  display: block; margin-top: 12px; font-size: 22px; font-weight: 700;
}
.banner-sub {
  position: relative; z-index: 2;
  display: block; margin-top: 6px; font-size: 12px; opacity: .92;
}
.banner-glyph {
  position: absolute; right: 10px; bottom: -16px; font-size: 96px;
  opacity: .16; font-weight: 700; line-height: 1; z-index: 1;
}
.banner-dots {
  position: absolute; left: 0; right: 0; bottom: 8px;
  display: flex; justify-content: center; gap: 6px; z-index: 3;
}
.banner-dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(0,0,0,.25); display: block;
}
.banner-dots i.on { background: #222; }

.navs { margin-top: 12px; display: flex; justify-content: space-between; padding: 14px 8px 12px; }
.nav { width: 25%; text-align: center; cursor: pointer; }
.nav-icon {
  width: 44px; height: 44px; border-radius: 12px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; font-weight: 700;
}
.nav-name { display: block; margin-top: 6px; font-size: 12px; color: #333; }

.section { margin-top: 20px; }
.section-hd { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 10px; }
.eyebrow { display: block; font-size: 10px; color: var(--brand); letter-spacing: 1px; font-weight: 600; }
.section-title { display: block; margin-top: 2px; font-size: 18px; font-weight: 700; }
.more { font-size: 13px; color: var(--accent); cursor: pointer; }

.tl-item { display: flex; gap: 10px; cursor: pointer; }
.tl-left { width: 44px; display: flex; flex-direction: column; align-items: center; }
.tl-dot {
  width: 42px; height: 42px; border-radius: 50%; background: #2c2c2c; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.tl-day { font-size: 14px; font-weight: 700; line-height: 1.1; }
.tl-mon { font-size: 10px; opacity: .85; }
.tl-line { width: 1px; flex: 1; min-height: 20px; background: #d8dce2; margin: 4px 0; }
.tl-card { flex: 1; padding: 12px; margin-bottom: 10px; }
.tl-card-top { display: flex; justify-content: space-between; gap: 8px; }
.tl-title { font-size: 15px; font-weight: 700; }
.tl-badge {
  font-size: 11px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; height: fit-content;
}
.badge-open { background: #fde8ec; color: #b4233d; }
.badge-soon { background: #fdecea; color: #d64545; }
.badge-hot { background: #e6f7f5; color: #0d8b8b; }
.tl-place, .tl-desc { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.tl-desc { margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #a0a6ad; }

.cat-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.cat {
  width: 90px; height: 90px; border-radius: 12px; flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer;
}
.cat-char { font-size: 32px; font-weight: 700; line-height: 1; }
.cat-name { margin-top: 4px; font-size: 11px; color: #666; }

.auc-row { padding: 12px; margin-top: 8px; cursor: pointer; }
.auc-title { display: block; font-size: 15px; font-weight: 600; }
.auc-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }

.empty, .empty-card {
  background: #fff; border-radius: 12px; padding: 28px 16px;
  color: #999; font-size: 14px; text-align: center; margin-top: 8px;
}
.theme-warm .empty, .theme-warm .empty-card { background: transparent; color: var(--warm-muted); }
.error { color: #a33; padding: 8px 0; font-size: 13px; }
.muted { color: var(--muted); font-size: 13px; }
.toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%);
  background: rgba(0,0,0,.78); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-size: 13px; z-index: 50; max-width: 80%; text-align: center;
}

/* —— Warm list pages —— */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip {
  background: var(--warm-chip); color: #3d2b1f;
  padding: 8px 14px; font-size: 13px; border-radius: 4px; border: 0; cursor: pointer;
}
.chip select {
  background: transparent; color: inherit; appearance: none; cursor: pointer;
}
.warm-card {
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  cursor: pointer;
}
.warm-card .title { display: block; font-size: 16px; color: var(--warm-ink); font-weight: 600; }
.warm-card .meta { display: block; margin-top: 6px; font-size: 13px; color: var(--warm-muted); }

.cover-swiper {
  width: calc(100% + 24px); margin: -12px -12px 0;
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0;
}
.cover-swiper .cover { flex: 0 0 100%; width: 100%; margin: 0; }
.cover {
  width: calc(100% + 24px); margin: -12px -12px 0;
  height: 180px; background: #d9cbb8; object-fit: cover; display: block;
}
.detail-body { padding: 16px 0; }
.detail-title { font-size: 22px; color: var(--warm-ink); font-weight: 700; display: block; }
.detail-meta { display: block; margin-top: 8px; color: var(--warm-muted); font-size: 14px; }
.detail-desc { display: block; margin-top: 14px; color: var(--warm-body); font-size: 15px; line-height: 1.6; }
.preview { padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.preview .sub { display: block; color: var(--warm-muted); font-size: 13px; margin-top: 4px; }
.warm-section-title { font-size: 17px; color: #3d2b1f; font-weight: 700; margin-top: 20px; display: block; }

.floor-title { margin: 14px 0 8px; font-weight: 600; color: #3d2b1f; }
.room-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.room {
  background: var(--warm-chip); padding: 10px 6px; text-align: center;
  font-size: 12px; cursor: pointer; border-radius: 4px; color: #3d2b1f;
}
.room.ok { outline: 1px solid var(--warm-btn); }
.room.busy { opacity: .45; cursor: not-allowed; }
.room.reserved { background: #e8d5b5; }
.room .no { font-size: 14px; font-weight: 600; display: block; }
.room .price { color: var(--warm-btn); display: block; margin-top: 2px; }

/* —— Auth —— */
.auth-hero { margin: 24px 8px 20px; }
.auth-hero .brand-mark { font-size: 28px; letter-spacing: 0.12em; }
.auth-hero .sub { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }
.auth-form { padding: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
  background: #f4f5f7; border-radius: 10px; padding: 12px 14px; font-size: 15px;
}
.auth-links { margin-top: 14px; text-align: center; color: var(--accent); font-size: 13px; cursor: pointer; }
.oauth { margin-top: 48px; text-align: center; padding-bottom: 20px; }
.oauth-title { display: block; color: #b0b6bd; font-size: 12px; margin-bottom: 14px; }
.wx-icon {
  width: 44px; height: 44px; border-radius: 50%; background: #07c160; color: #fff;
  font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.oauth-tip { display: block; margin-top: 12px; color: #b0b6bd; font-size: 11px; }

/* —— Mine —— */
.profile {
  padding: 18px 14px; display: flex; align-items: center; gap: 12px; cursor: pointer;
}
.avatar {
  width: 52px; height: 52px; border-radius: 50%; background: #eceef1;
  display: flex; align-items: center; justify-content: center;
  color: #8a9099; font-weight: 700; font-size: 18px; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.info { flex: 1; }
.name { display: block; font-size: 18px; font-weight: 700; }
.role { display: block; margin-top: 4px; color: var(--accent); font-size: 13px; }
.phone { display: block; margin-top: 2px; color: #9aa0a6; font-size: 12px; }
.mine-actions { margin: 12px 0; display: flex; gap: 10px; }
.mine-actions .btn { flex: 1; }
.menu { overflow: hidden; }
.menu .item {
  display: block; padding: 16px 14px; border-bottom: 1px solid #f0f1f3;
  font-size: 15px; color: var(--ink); cursor: pointer;
}
.menu .item:last-child { border-bottom: none; }

/* —— Org —— */
.org-hint { color: var(--warm-muted); font-size: 13px; margin: 8px 0 16px; }
.org-card {
  padding: 14px; background: var(--warm-chip); border-radius: 8px;
  display: flex; flex-direction: column; gap: 10px; margin-top: 12px;
}
.stats-row {
  display: flex; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.06);
  color: var(--warm-ink); font-size: 14px;
}
.stats-row span:last-child { font-weight: 600; color: var(--warm-btn); }

/* —— Share —— */
.share-page {
  min-height: calc(100vh - 24px);
  margin: -12px;
  padding: 48px 24px;
  background: linear-gradient(180deg, #efe6d6, #f7f3eb);
}
.share-brand {
  font-size: 28px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  color: #3d2b1f;
  display: block;
}
.share-title { display: block; margin-top: 24px; font-size: 22px; font-weight: 700; color: var(--warm-ink); }
.share-meta { display: block; margin: 12px 0 28px; color: var(--warm-muted); font-size: 14px; }

.create-form .field { margin-bottom: 14px; }
.create-form label { display: block; font-size: 12px; color: var(--warm-muted); margin-bottom: 6px; }
.create-form input, .create-form select, .create-form textarea {
  width: 100%; padding: 10px 12px; border: 0; border-radius: 8px;
  background: var(--warm-chip); color: var(--warm-ink); font: inherit;
}
.create-form textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.region-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip {
  padding: 6px 12px; border-radius: 999px; background: var(--warm-chip);
  color: var(--warm-muted); font-size: 13px; cursor: pointer;
}
.cat-chip.on { background: var(--warm-btn); color: #fff; }
.cover-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.cover-thumb { position: relative; width: 72px; height: 72px; }
.cover-thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: #d9cbb8; }
.cover-thumb button {
  position: absolute; right: -6px; top: -6px; width: 20px; height: 20px;
  border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; font-size: 12px;
}

@media (max-width: 480px) {
  .room-grid { grid-template-columns: repeat(3, 1fr); }
  .region-row { grid-template-columns: 1fr; }
}
