/* ===== 设计系统：山林绿 + 暖金（2027 现代版） ===== */
:root {
  /* 背景与表面 —— 更通透的层次 */
  --bg: #f4f6f3;
  --surface: #ffffff;
  --surface-2: #f1f3ef;
  --surface-tint: #f7f9f6;
  --ink: #16201b;
  --secondary: #475569;
  --muted: #8a94a0;
  --border: #e7eae6;
  --border-strong: #d7dcd6;

  /* 品牌色：更鲜活的森林绿 + 暖金 */
  --forest: #0a8f63;
  --forest-2: #25c08a;
  --forest-deep: #065f46;
  --forest-soft: rgba(10,143,99,0.10);
  --forest-soft-2: rgba(10,143,99,0.16);
  --accent: #c08a4e;
  --accent-2: #e0b074;
  --accent-light: rgba(192,138,78,0.14);

  /* 语义色 */
  --danger: #ef4444;
  --danger-soft: rgba(239,68,68,0.10);
  --warning: #f59e0b;
  --info: #3b82f6;

  /* 品牌渐变 */
  --grad-brand: linear-gradient(135deg, #065f46 0%, #0a8f63 55%, #25c08a 100%);
  --grad-gold: linear-gradient(135deg, #f6e27a, #c08a4e);
  --grad-primary-btn: linear-gradient(135deg, #0a8f63, #14b87d);

  /* 阴影：Soft UI —— 柔和但有深度 */
  --shadow-xs: 0 1px 2px rgba(16,32,27,0.04);
  --shadow-sm: 0 2px 8px rgba(16,32,27,0.05), 0 1px 3px rgba(16,32,27,0.03);
  --shadow: 0 10px 28px rgba(16,32,27,0.07), 0 4px 12px rgba(16,32,27,0.04);
  --shadow-lg: 0 24px 50px rgba(16,32,27,0.10);
  --shadow-brand: 0 10px 24px rgba(10,143,99,0.22);

  /* 圆角 */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 999px;

  /* 动效 */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.22s;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== 登录页 ===== */
.login-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #92400e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.login-screen.hidden { display: none; }
.login-card {
  width: 100%;
  max-width: 380px;
  background: rgba(255,255,255,0.96);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(10px);
}
.login-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest), var(--forest-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  margin: 0 auto 16px;
  box-shadow: 0 8px 20px rgba(4,120,87,0.25);
}
.login-title { font-size: 24px; font-weight: 800; margin: 0 0 4px; color: var(--ink); }
.login-sub { font-size: 13px; color: var(--muted); margin: 0 0 24px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-form input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  background: var(--surface);
}
.login-submit {
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--forest), var(--forest-2));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(4,120,87,0.22);
}
.login-error { color: var(--danger); font-size: 12px; min-height: 18px; }
.login-hint { font-size: 11px; color: var(--muted); margin-top: 16px; }

/* ===== 顶栏 ===== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(135deg, #064e3b, #065f46, #075d3e);
  background-size: 200% 200%;
  animation: headerShift 18s ease infinite;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 24px rgba(4,120,87,0.15);
  overflow: hidden;
}
.app-header::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 20% 50%, rgba(196,154,108,0.10) 0%, transparent 35%),
              radial-gradient(circle at 80% 50%, rgba(246,226,122,0.08) 0%, transparent 35%);
  animation: headerGlow 12s ease-in-out infinite;
  pointer-events: none;
}
@keyframes headerShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes headerGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -10px); }
}
.brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f6e27a, #c49a6c);
  color: #3e2723;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(196,154,108,0.35);
  position: relative;
  animation: logoFloat 4s ease-in-out infinite;
}
.logo::before, .logo::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(246,226,122,0.5);
  animation: logoRing 3s linear infinite;
}
.logo::after {
  inset: -10px;
  border-color: rgba(196,154,108,0.25);
  animation: logoRing 3s linear infinite 1.5s;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.04); }
}
@keyframes logoRing {
  0% { transform: rotate(0deg) scale(1); opacity: 1; }
  100% { transform: rotate(360deg) scale(1); opacity: 0.3; }
}
.brand-text { position: relative; z-index: 1; }
.brand-text h1 {
  margin: 0;
  font-size: 18px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff 0%, #f6e27a 30%, #c49a6c 50%, #f6e27a 70%, #ffffff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShine 6s linear infinite;
}
@keyframes titleShine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.subtitle {
  margin: 0;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  animation: subtitleFade 4s ease-in-out infinite;
}
@keyframes subtitleFade {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
.logout-btn {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
}
.logout-btn:hover { background: rgba(255,255,255,0.2); }

/* ===== 主内容 ===== */
.main-content { padding: 16px 16px 32px; }
.tab-panel { display: none; animation: fadeIn 0.35s ease; }
.tab-panel.active { display: block; }

/* ===== 通用卡片 ===== */
.section-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 18px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.section-title-row h3 { margin: 0; font-size: 16px; }
.section-badge {
  font-size: 11px;
  color: var(--forest);
  background: var(--forest-soft);
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
}

/* ===== 欢迎卡 ===== */
.welcome-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 22px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #1f2937 0%, #064e3b 60%, #92400e 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.welcome-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 2px solid rgba(196,154,108,0.25);
  animation: ringRotate 12s linear infinite;
}
@keyframes ringRotate { 100% { transform: rotate(360deg); } }
.welcome-card h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.date-text { font-size: 13px; color: rgba(255,255,255,0.75); margin: 0 0 12px; }

/* ===== 天气 ===== */
.weather-widget { position: relative; z-index: 1; margin-top: 14px; }

/* ===== 实时动态滚动条 ===== */
.live-ticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  margin: 10px 0 12px;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.ticker-icon {
  font-size: 10px;
  animation: tickerDot 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes tickerDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.ticker-text {
  font-size: 12px;
  color: #fff;
  font-weight: 600;
  overflow: hidden;
  position: relative;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
}
.ticker-text.live .ticker-track {
  animation: tickerScrollX 22s linear infinite;
}
.ticker-text:hover .ticker-track {
  animation-play-state: paused;
}
@keyframes tickerScrollX {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-msg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 32px;
  white-space: nowrap;
}


.weather-now { display: flex; align-items: center; gap: 12px; }
.weather-emoji { font-size: 36px; }
.weather-info { flex: 1; }
.weather-temp { font-size: 28px; font-weight: 800; }
.weather-cond { font-size: 12px; color: rgba(255,255,255,0.75); }
.weather-loc { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.weather-forecast { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; }
.wf-item {
  background: rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 8px 10px;
  min-width: 58px;
  text-align: center;
}
.wf-label { display: block; font-size: 10px; color: rgba(255,255,255,0.65); }
.wf-emoji { display: block; font-size: 18px; margin: 2px 0; }
.wf-temp { display: block; font-size: 11px; }
.weather-loading { color: rgba(255,255,255,0.6); font-size: 12px; }

/* ===== 概览统计 ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 16px 12px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-value { font-size: 24px; font-weight: 800; color: var(--ink); }
.stat-label { font-size: 11px; color: var(--muted); margin-top: 4px; font-weight: 600; }
.stat-card.profit .stat-value { color: var(--forest); }
.stat-card.loss .stat-value { color: var(--danger); }
.stat-card.cost .stat-value { color: var(--accent); }

/* ===== 打扫概览卡片 ===== */
.clean-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.2s;
  margin-bottom: 14px;
}
.clean-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.clean-banner.warn { border-color: rgba(245,158,11,0.45); background: linear-gradient(135deg, #fff8ec, #ffeccd); }
.clean-banner.ok { border-color: rgba(16,185,129,0.4); background: linear-gradient(135deg, #eef7f0, #dcf0e4); }
.clean-banner.advance { border-color: rgba(37,99,235,0.4); background: linear-gradient(135deg, #eef3ff, #dbe7ff); }
.cb-icon { font-size: 30px; }
.cb-text { flex: 1; min-width: 0; }
.cb-text b { display: block; font-size: 15px; color: var(--ink); }
.cb-text span { font-size: 12px; color: var(--muted); }
.cb-arrow { font-size: 22px; color: var(--muted); }

/* ===== 今日待处理（首页置顶） ===== */
.todo-summary {
  margin-bottom: 14px;
  padding: 16px 16px 14px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.2s, border-color 0.2s;
}
.todo-summary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.todo-summary.has-urgent { border-color: rgba(245,158,11,0.5); background: linear-gradient(135deg, rgba(245,158,11,0.08), var(--surface)); }
.todo-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.todo-title { font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: 0.3px; }
.todo-sub { font-size: 12px; color: var(--muted); }
.todo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.todo-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 6px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid transparent;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}
.todo-cell.warn { background: rgba(245,158,11,0.14); border-color: rgba(245,158,11,0.4); }
.todo-cell.advance { background: rgba(37,99,235,0.12); border-color: rgba(37,99,235,0.4); }
.todo-cell.info { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.35); }
.todo-cell.occupancy { background: var(--surface-2); }
.todo-icon { font-size: 20px; line-height: 1; }
.todo-num { font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1; }
.todo-num small { font-size: 13px; font-weight: 600; color: var(--muted); }
.todo-cell.warn .todo-num { color: #d97706; }
.todo-cell.advance .todo-num { color: #2563eb; }
.todo-cell.info .todo-num { color: #0d9488; }
.todo-label { font-size: 11px; color: var(--muted); }
@media (max-width: 480px) {
  .todo-grid { grid-template-columns: repeat(3, 1fr); }
  .todo-cell.occupancy { grid-column: span 3; flex-direction: row; justify-content: center; gap: 8px; }
}

/* ===== 房间利润列表 ===== */
.room-profit-list { display: flex; flex-direction: column; gap: 10px; }
.rp-name { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.rp-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.rp-profit { font-size: 18px; font-weight: 800; margin-top: 4px; }
.rp-profit.pos { color: var(--forest); }
.rp-profit.neg { color: var(--danger); }
.rp-margin { font-size: 12px; color: var(--muted); margin-left: 4px; }
.loss-tag, .ok-tag, .idle-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
}
.loss-tag { background: rgba(239,68,68,0.12); color: #b91c1c; }
.ok-tag { background: var(--forest-soft); color: var(--forest); }
.idle-tag { background: var(--surface-2); color: var(--muted); }

/* =====  upcoming / 待入住退房 ===== */
.upcoming-list { display: flex; flex-direction: column; gap: 10px; }
.upcoming-group-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  margin: 6px 0 2px;
}
.upcoming-item {
  display: flex;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.upcoming-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  background: var(--forest-soft);
  border-radius: 12px;
  padding: 6px;
}
.upcoming-date .day { font-size: 20px; font-weight: 800; color: var(--forest); }
.upcoming-date .month { font-size: 10px; color: var(--forest); }
.upcoming-info { flex: 1; }
.upcoming-info .guest { font-weight: 700; }
.upcoming-info .meta { font-size: 12px; color: var(--muted); }

/* ===== 渠道分布条 ===== */
.channel-bars { display: flex; flex-direction: column; gap: 10px; }
.channel-bar { display: flex; align-items: center; gap: 10px; }
.channel-bar-name { font-size: 12px; font-weight: 700; min-width: 60px; }
.channel-bar-track { flex: 1; height: 8px; background: var(--surface-2); border-radius: 10px; overflow: hidden; }
.channel-bar-fill { height: 100%; border-radius: 10px; transition: width 0.6s ease; }
.channel-bar-count { font-size: 12px; font-weight: 700; min-width: 24px; text-align: right; }

/* ===== 小红书攻略 ===== */
.xhs-feed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.xhs-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}
.xhs-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.xhs-cover {
  height: 90px;
  background: linear-gradient(135deg, #f6e27a, #c49a6c, #047857);
  position: relative;
}
.xhs-cover.cover-gold { background: linear-gradient(135deg, #f6e27a, #c49a6c); }
.xhs-emoji { position: absolute; bottom: 8px; left: 10px; font-size: 26px; }
.xhs-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,0.9);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
}
.xhs-body { padding: 12px; }
.xhs-title { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.xhs-sub { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.xhs-tags { font-size: 11px; color: #ff2e51; margin-bottom: 10px; }
.xhs-full { display: none; margin-top: 10px; }
.xhs-pre {
  margin: 0;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.6;
  color: var(--secondary);
  white-space: pre-wrap;
  background: var(--surface-2);
  padding: 10px;
  border-radius: 10px;
}
.xhs-full.open { display: block; }
.xhs-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.xhs-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
}
.xhs-actions { display: flex; gap: 8px; }
.xhs-toggle, .xhs-copy {
  border: none;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}
.xhs-copy { background: #ff2e51; color: #fff; }

/* ===== 完整攻略折叠区 ===== */
.guide-full { margin-top: 14px; }
.guide-full summary {
  font-size: 13px;
  font-weight: 700;
  color: var(--forest);
  cursor: pointer;
  padding: 8px 0;
}
.guide-full-body {
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.7;
  background: var(--surface-2);
  padding: 14px;
  border-radius: var(--radius);
}

/* ===== 快捷按钮 ===== */
.quick-actions {
  position: fixed;
  right: 18px;
  bottom: 22px;
  display: flex;
  gap: 10px;
  z-index: 30;
}
.quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
.quick-btn .icon { font-size: 18px; }
.quick-btn:first-child { background: linear-gradient(135deg, var(--forest), var(--forest-2)); }
.quick-btn:last-child { background: linear-gradient(135deg, var(--accent), #f6e27a); color: #3e2723; }

/* ===== 日历 ===== */
.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.icon-btn {
  width: 34px; height: 34px;
  border: none;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}
.month-box { text-align: center; }
.month-box span:first-child { font-size: 18px; font-weight: 800; }
.year-label { font-size: 12px; color: var(--muted); margin-left: 4px; }
.room-filter { margin-bottom: 12px; }
.calendar-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.day-cell {
  min-height: 78px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 6px 5px 8px;
  background: var(--surface-2);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
@media (hover: hover) { .day-cell:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); } }
.day-cell:active { transform: scale(0.97); }
.day-cell.today { border-color: var(--forest); box-shadow: 0 0 0 2px var(--forest-soft-2); }
.day-cell.weekend { background: rgba(196,154,108,0.10); }
.day-cell.other-month { color: var(--muted); opacity: 0.45; background: transparent; }
.day-cell.occupied { background: var(--surface); border-color: var(--border); }
/* 占用左侧色条（替代整块背景，更精致） */
.day-occupied {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  z-index: 2;
}
.day-num { font-size: 12px; font-weight: 700; color: var(--ink); z-index: 1; line-height: 1.2; }
.day-price { font-size: 10px; color: var(--forest); font-weight: 700; margin-top: 1px; z-index: 1; }
/* 渠道/房间标签：房间名优先，清晰可读 */
.day-channel-tags {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
  z-index: 1;
}
.day-channel-tag {
  font-size: 9.5px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 5px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.day-channel-tag .dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin-right: 3px; vertical-align: middle; }
.day-channel-tag .dct-room { font-weight: 800; }
.day-channel-tag .dct-ch { font-weight: 600; opacity: 0.85; }
.day-channel-tag.more { background: rgba(0,0,0,0.06); color: var(--muted); align-self: flex-start; }
/* 状态徽章：推到格子底部 */
.day-occ-tag {
  margin-top: auto;
  align-self: flex-start;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
  z-index: 1;
}
.day-occ-tag.full { background: var(--danger); color: #fff; }
.day-occ-tag.high { background: var(--forest); color: #fff; }
.day-occ-tag.partial { background: var(--warning); color: #fff; }
.day-occ-tag.empty { background: rgba(0,0,0,0.06); color: var(--muted); }
.day-status-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  display: flex;
  z-index: 2;
}
.day-status-segment { height: 100%; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ===== 订单 ===== */
.orders-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.search-box { flex: 1; }
.search-box input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  background: var(--surface);
}
.fab-btn {
  width: 42px; height: 42px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--forest), var(--forest-2));
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(4,120,87,0.22);
}
.card-list { display: flex; flex-direction: column; gap: 12px; }
.order-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 16px;
  border-left: 4px solid;
  border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}
.order-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.order-room { font-size: 15px; font-weight: 800; }
.order-channel {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  padding: 3px 8px;
  border-radius: 10px;
}
.order-clean-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  color: #b45309;
  background: rgba(245,158,11,0.14);
}
.order-clean-badge.done { color: var(--forest); background: var(--forest-soft); }
.order-clean-badge.advance { color: #1d4ed8; background: rgba(37,99,235,0.14); }
.order-status {
  font-size: 12px;
  font-weight: 700;
  color: var(--forest);
}
.cleaning-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
  margin-left: 6px;
}
.cleaning-done { background: var(--forest-soft); color: var(--forest); }
.cleaning-pending { background: rgba(245,158,11,0.12); color: var(--warning); }
.order-body { font-size: 13px; color: var(--secondary); }
.order-dates { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.order-guest { font-weight: 700; }
.order-phone { color: var(--muted); font-size: 12px; }
.order-note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.order-price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--forest);
  background: var(--forest-soft);
  padding: 4px 10px;
  border-radius: 10px;
}
.order-price.actual { background: rgba(10,143,99,0.14); color: var(--forest-deep); }
.order-price .order-est {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: line-through;
}
.order-actions { display: flex; gap: 8px; margin-top: 12px; }
.order-actions button {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 12px;
  cursor: pointer;
}

/* ===== 打扫 ===== */
.clean-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--forest-soft), rgba(196,154,108,0.08));
  border-radius: var(--radius-xl);
  padding: 18px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}
.clean-hero-icon { font-size: 38px; }
.clean-hero-text h2 { margin: 0 0 4px; font-size: 18px; }
.clean-hero-text p { margin: 0; font-size: 12px; color: var(--muted); }
.clean-view-toggle {
  display: inline-flex;
  background: var(--surface-2);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 14px;
}
.cvt-btn {
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.cvt-btn.active { background: var(--surface); color: var(--forest); box-shadow: var(--shadow-sm); }
.clean-summary { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.clean-summary-pill {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.clean-summary-pill.warn { border-color: rgba(245,158,11,0.45); background: #fff8ec; }
.clean-summary-pill.advance { border-color: rgba(37,99,235,0.4); background: #eef3ff; }
.clean-summary-pill.ok { border-color: rgba(16,185,129,0.4); background: #eef7f0; }
.cs-num { font-size: 22px; font-weight: 800; }
.cs-label { font-size: 12px; color: var(--muted); }
.clean-list { display: flex; flex-direction: column; gap: 12px; }
.clean-date-group {
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.clean-date-group.today { border-color: rgba(196,154,108,0.55); }
.clean-date-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.cdh-left { display: flex; align-items: baseline; gap: 8px; }
.cdh-day { font-size: 26px; font-weight: 800; color: var(--forest); }
.cdh-month { font-size: 12px; color: var(--muted); }
.cdh-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}
.cdh-tag.pending { background: rgba(245,158,11,0.12); color: #b45309; }
.cdh-tag.done { background: var(--forest-soft); color: var(--forest); }
.cdh-tag.up { background: rgba(100,116,139,0.12); color: #64748b; }
.clean-items { padding: 10px 12px; }
/* 打扫分区标题 */
.clean-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; color: var(--ink);
  margin: 18px 4px 8px;
}
.clean-section-title:first-child { margin-top: 0; }
.cst-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--forest); }
.cst-dot.pending { background: #f59e0b; }
.cst-dot.done { background: #10b981; }
.cst-dot.up { background: #94a3b8; }
.cst-dot.advance { background: #2563eb; }
.clean-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.clean-item:last-child { border-bottom: none; }
.clean-item-main { flex: 1 1 auto; min-width: 0; margin-right: 8px; }
.clean-room { font-weight: 700; }
.clean-meta { font-size: 12px; color: var(--muted); }
.clean-ch { font-weight: 700; }
.clean-toggle {
  padding: 6px 12px;
  border-radius: 10px;
  border: none;
  background: rgba(245,158,11,0.12);
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.clean-toggle.done { background: var(--forest-soft); color: var(--forest); }
.clean-toggle.advance { background: rgba(37,99,235,0.12); color: #1d4ed8; }
.clean-toggle.disabled { background: rgba(100,116,139,0.1); color: #94a3b8; cursor: not-allowed; }
.clean-item.upcoming { opacity: 0.72; background: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(100,116,139,0.045) 8px, rgba(100,116,139,0.045) 16px); }
.clean-item.advance { border-left-width: 4px; }

/* 打扫进度 */
.clean-progress {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 16px 18px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}
.cp-head { display: flex; justify-content: space-between; margin-bottom: 10px; }
.cp-head span:first-child { font-size: 13px; color: var(--muted); font-weight: 600; }
.cp-pct { font-size: 18px; font-weight: 800; color: var(--forest); }
.cp-track { height: 10px; background: var(--surface-2); border-radius: 10px; overflow: hidden; }
.cp-fill { height: 100%; background: linear-gradient(90deg, var(--forest-2), var(--forest)); border-radius: 10px; }
.clean-pills { display: flex; gap: 10px; margin-bottom: 16px; }

/* 周视图 */
.clean-week-group {
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.clean-week-group.current { border-color: rgba(196,154,108,0.55); }
.clean-week-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--forest-soft);
  border-bottom: 1px solid var(--border);
}
.cwh-left { display: flex; flex-direction: column; gap: 2px; }
.cwh-range { font-size: 16px; font-weight: 800; }
.cwh-sub { font-size: 12px; color: var(--muted); }
.cwh-pct { font-size: 20px; font-weight: 800; color: var(--forest); }

/* ===== 价格（原有列表视图） ===== */
.price-list { display: flex; flex-direction: column; gap: 14px; }
.price-room-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.price-room-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
}
.price-channel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}
.price-channel-row:last-child { border-bottom: none; }
.price-channel-row:hover { background: var(--surface-2); }
.price-channel-name { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.price-channel-values { display: flex; gap: 10px; }
.price-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface-2);
  padding: 6px 10px;
  border-radius: 10px;
  min-width: 56px;
}
.price-tag span:first-child { font-size: 10px; color: var(--muted); }
.price-tag span:last-child { font-size: 13px; font-weight: 700; }

/* ===== 设置 ===== */
.settings-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.settings-header h3 { margin: 0; font-size: 15px; }
.sound-setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.sound-setting:last-child { border-bottom: none; }
.sound-setting button {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 12px;
  cursor: pointer;
}
.settings-list { display: flex; flex-direction: column; gap: 10px; }
.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
}
.settings-item-name { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.settings-item-meta { font-size: 12px; color: var(--muted); }
.settings-item-actions button {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  cursor: pointer;
}
.room-cost-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  background: var(--forest-soft);
  color: var(--forest);
  font-weight: 700;
}
.room-cost-tag.empty { background: var(--surface-2); color: var(--muted); }

/* ===== 通用表单与按钮 ===== */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}
.form-field span { font-size: 12px; font-weight: 600; color: var(--secondary); }
.form-field input,
.form-field textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 14px;
  color: var(--ink);
}
.form-field select {
  border: 1px solid var(--border);
  border-radius: 10px;
  background-color: var(--surface-2);
  font-size: 14px;
  color: var(--ink);
}

/* iOS 风格下拉选择 */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  min-height: 44px;
  padding: 10px 38px 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: all .15s ease;
  cursor: pointer;
}
select:focus {
  outline: none;
  border-color: var(--forest-2);
  box-shadow: 0 0 0 3px var(--forest-soft);
}
select:disabled {
  opacity: .55;
  cursor: not-allowed;
  background-color: var(--surface-2);
}

/* 房间筛选器 */
.room-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.room-filter label {
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  white-space: nowrap;
}
.room-filter select { flex: 1; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.btn-primary {
  padding: 10px 18px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--forest), var(--forest-2));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(4,120,87,0.18);
}
.btn-outline {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--secondary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.btn-danger {
  padding: 10px 18px;
  border: none;
  border-radius: 12px;
  background: rgba(239,68,68,0.12);
  color: var(--danger);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.text-btn {
  background: transparent;
  border: none;
  color: var(--forest);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* ===== 弹窗 ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal.show { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
}
.modal-sheet {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.modal-header h3 { margin: 0; font-size: 17px; }
.close-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
}
.price-modal-subtitle { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.cost-hint {
  padding: 10px;
  border-radius: 10px;
  font-size: 12px;
  margin-bottom: 10px;
}
.cost-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
}
.cost-total-value { font-size: 16px; font-weight: 800; color: var(--accent); }

/* ===== 日订单弹窗 ===== */
.day-modal-content { display: flex; flex-direction: column; gap: 12px; }
.day-order-item {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 14px;
  border-left: 3px solid;
}
.day-order-room {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.day-order-channel {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}
.day-order-status { font-size: 12px; font-weight: 700; }
.day-order-info { font-size: 13px; color: var(--secondary); }
.day-order-dates { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ===== 空状态/提示 ===== */
.empty-tip { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 0; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  z-index: 200;
  transition: all 0.3s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.show.success { background: var(--forest); }
.toast.show.error { background: var(--danger); }
.toast.show.warning { background: var(--warning); }

/* ===== 订单弹窗：晚数摘要 ===== */
.nights-summary { display: none; padding: 10px 14px; border-radius: 10px; background: var(--forest-soft); color: var(--forest); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.nights-summary.show { display: block; }

/* ===== 攻略卡 / 设置表单 ===== */
.guide-card { border: 1px solid rgba(196,154,108,0.25); }
.settings-form { display: flex; flex-direction: column; gap: 4px; }

/* ===== 动画 ===== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeIn 0.45s ease both; }


/* ===== 价格页增强（保留并合并） ===== */
.price-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(196,154,108,0.08));
  border: 1px solid var(--border);
}
.price-hero-text h2 { margin: 0 0 4px; font-size: 20px; }
.price-hero-text p { margin: 0; font-size: 13px; color: var(--muted); }
.batch-price-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 12px; font-weight: 700; white-space: nowrap; }
.batch-price-btn .batch-icon { font-size: 16px; }
.price-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.price-view-toggle { display: inline-flex; background: var(--surface-2); border-radius: 14px; padding: 4px; gap: 4px; }
.pvt-btn { border: none; background: transparent; padding: 8px 18px; border-radius: 11px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.pvt-btn.active { background: var(--surface); color: var(--forest); box-shadow: var(--shadow-sm); }
.price-legend { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); }
.price-legend .pl-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; }
.price-legend .pl-dot.lowest { background: #52c41a; }
.price-legend .pl-dot.highest { background: #ff4d4f; }
.price-legend .pl-dot.profit { background: linear-gradient(135deg, var(--forest), var(--accent)); }

.price-compare-card { background: var(--surface); border-radius: var(--radius-xl); padding: 16px; margin-bottom: 14px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform 0.18s, box-shadow 0.2s; }
.price-compare-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.price-compare-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.price-compare-title { font-size: 17px; font-weight: 800; }
.price-compare-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.price-compare-sub b { color: var(--accent); font-weight: 700; }
.price-compare-table-wrap { overflow-x: auto; }
.price-compare-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.price-compare-table th { text-align: left; padding: 10px 8px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.price-compare-table td { padding: 12px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; cursor: pointer; }
.price-compare-table tr:hover td { background: rgba(16,185,129,0.04); }
.price-compare-table tr:last-child td { border-bottom: none; }
.price-compare-table .channel-cell { display: flex; align-items: center; gap: 8px; font-weight: 700; min-width: 100px; }
.price-cell { font-weight: 700; white-space: nowrap; }
.price-cell.zero { color: var(--muted); }
.price-cell.lowest { color: #52c41a; background: rgba(82,196,26,0.08); border-radius: 8px; }
.price-cell.highest { color: #ff4d4f; background: rgba(255,77,79,0.06); border-radius: 8px; }
.profit-pill { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 10px; font-size: 10px; font-weight: 700; background: rgba(16,185,129,0.12); color: #047857; }
.profit-cell { white-space: nowrap; }
.avg-profit { display: inline-block; padding: 4px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; background: var(--forest-soft); color: var(--forest); }
.no-cost { color: var(--muted); }
.price-tag .profit-tag { display: block; font-size: 10px; color: var(--forest); font-weight: 700; margin-top: 2px; font-style: normal; }
.price-room-cost { font-size: 12px; color: var(--muted); font-weight: 600; }

/* 批量调价 */
.modal-lg { max-width: 680px; }
.batch-section { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px dashed var(--border); }
.batch-section:last-of-type { border-bottom: none; }
.batch-section h4 { font-size: 14px; font-weight: 700; margin: 0 0 12px; }
.batch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.batch-field { display: flex; flex-direction: column; gap: 6px; }
.batch-field span { font-size: 12px; font-weight: 600; }
.batch-field select { padding: 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--ink); font-size: 13px; min-height: 90px; }
.batch-field select option { padding: 5px; }
.batch-field small { font-size: 11px; color: var(--muted); }
.batch-mode-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.batch-mode { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; font-size: 13px; font-weight: 600; }
.batch-mode:has(input:checked) { border-color: var(--forest); background: rgba(16,185,129,0.08); color: var(--forest); }
.batch-mode input { accent-color: var(--forest); }
.batch-field input[type="number"] { padding: 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--ink); font-size: 14px; }
.batch-summary { background: var(--forest-soft); color: var(--forest); padding: 12px 14px; border-radius: 12px; font-size: 13px; font-weight: 600; margin: 14px 0; }

/* ===== 房间管理大卡片 ===== */
.room-card {
  display: flex;
  align-items: stretch;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.room-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--forest), var(--forest-2));
  opacity: 0.85;
}
.room-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.room-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--forest-soft), rgba(196,154,108,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  align-self: flex-start;
}
.room-card-body { flex: 1; min-width: 0; }
.room-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.room-card-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}
.room-card-cost {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}
.cost-label { font-size: 10px; color: var(--muted); font-weight: 600; }
.cost-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}
.cost-value.empty { font-size: 11px; color: var(--muted); font-weight: 600; }
.room-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.rc-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 10px;
}
.rc-tag.tag-bed { background: var(--surface-2); color: var(--secondary); }
.rc-tag.tag-cap { background: rgba(196,154,108,0.12); color: var(--accent); }
.room-card-cost-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cost-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 10px;
  background: var(--forest-soft);
  font-size: 11px;
  font-weight: 600;
  color: var(--forest);
  border: 1px solid rgba(16,185,129,0.15);
}
.cp-icon { font-size: 12px; }
.cp-label { opacity: 0.85; }
.cp-value { font-weight: 800; }
.rc-empty-tip {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}
.room-card-actions {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
}
.btn-edit {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-edit:hover { background: var(--forest); color: #fff; border-color: var(--forest); }

/* ===== 房间物品清单 ===== */
.items-toggle-btn {
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(196,154,108,0.3);
  background: rgba(196,154,108,0.08);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.items-toggle-btn:hover { background: var(--accent); color: #fff; }
.room-items-panel {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.items-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.items-progress {
  font-size: 11px;
  color: var(--forest);
  background: var(--forest-soft);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
}
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.item-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 10px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  min-height: 48px;
}
.item-chip:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.item-chip.checked {
  background: var(--forest-soft);
  border-color: rgba(16,185,129,0.3);
  opacity: 0.7;
}
.item-chip.checked .item-name { text-decoration: line-through; color: var(--muted); }
.item-chip.skipped {
  background: rgba(148,163,184,0.08);
  border-style: dashed;
  opacity: 0.65;
  cursor: default;
}
.item-chip.skipped .item-name { color: var(--muted); }
.item-icon { font-size: 18px; }
.item-name { font-size: 13px; font-weight: 600; color: var(--ink); flex: 1; }
.item-qty { font-size: 11px; color: var(--muted); font-weight: 700; }
.item-check { font-size: 16px; color: var(--muted); }
.item-chip.checked .item-check { color: var(--forest); font-weight: 800; }
.item-chip.essential {
  border-color: rgba(239,68,68,0.4);
  background: rgba(239,68,68,0.05);
}
.item-chip.essential .item-check { color: #ef4444; }
.item-chip.select {
  border-color: rgba(250,173,20,0.4);
  background: rgba(250,173,20,0.05);
}
.item-chip.select .item-check { color: #faad14; }

/* 手机端：两列大按钮，优先拇指点击 */
@media (max-width: 480px) {
  .items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .item-chip {
    padding: 14px 12px;
    min-height: 54px;
    border-radius: 14px;
    gap: 8px;
  }
  .item-icon { font-size: 20px; }
  .item-name { font-size: 14px; }
  .item-qty { font-size: 12px; }
  .item-check { font-size: 18px; }
  .room-items-panel {
    padding: 14px;
    margin-top: 12px;
  }
  .items-panel-head {
    font-size: 15px;
  }
}

/* 超小屏：单列，避免文字换行 */
@media (max-width: 360px) {
  .items-grid {
    grid-template-columns: 1fr;
  }
}
.items-loading { text-align: center; font-size: 12px; color: var(--muted); padding: 10px; }
.items-empty {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 16px;
  background: var(--surface);
  border-radius: 10px;
}
.items-section { margin-bottom: 10px; }
.items-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.items-section-label.done { color: var(--forest); }
.items-section-label.skipped { color: var(--muted); }
.items-section-label.essential { color: #ef4444; }
.items-section-label.select { color: #faad14; }
.items-category-group { margin-bottom: 10px; }
.items-category-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--forest-deep);
  background: var(--forest-soft);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.items-actions { margin-top: 10px; text-align: right; }
.btn-reset {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--secondary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.btn-reset:hover { background: var(--surface-2); }

/* ===== 房间物品配置弹窗 ===== */
.btn-items-config {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  margin-left: 8px;
  transition: all 0.15s;
}
.btn-items-config:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.room-actions-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.config-intro {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--forest-soft);
  color: var(--forest);
  font-size: 13px;
  margin-bottom: 14px;
}
.config-intro strong { color: var(--ink); font-weight: 800; }
.config-intro .legend-e { color: #ef4444; font-weight: 700; }
.config-intro .legend-s { color: #faad14; font-weight: 700; }
.config-category-group { margin-bottom: 14px; }
.config-category-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--forest-deep);
  background: var(--forest-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.config-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.config-item-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  user-select: none;
  transition: all 0.15s;
}
.config-item-card:hover { background: var(--surface-2); }
.config-item-card.essential-on {
  border-color: rgba(239,68,68,0.4);
  background: rgba(239,68,68,0.06);
}
.config-item-card.restock-off {
  opacity: 0.55;
  border-style: dashed;
}
.ci-enable { display: inline-flex; align-items: center; }
.ci-enable input[type="checkbox"] { margin: 0; accent-color: var(--forest); width: 18px; height: 18px; }
.config-item-card .item-name { flex: 1; font-weight: 600; }
.config-item-card .item-qty { font-size: 10px; color: var(--muted); font-weight: 700; }
.ci-essential {
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.ci-essential.on {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.5);
  color: #ef4444;
}
.item-del {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.item-del:hover { color: var(--danger); }
.config-add {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface-2);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.config-add input {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: var(--surface);
}
.config-add input[type="text"] { flex: 1; min-width: 120px; }
.config-add input[type="number"] { width: 70px; }
.config-add input[type="text"][id="newItemIcon"] { flex: 0; width: 60px; text-align: center; }
.config-add select { width: 90px; font-size: 13px; padding: 8px 24px 8px 10px; background-position: right 6px center; background-size: 14px; }
.config-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.config-actions button { flex: 1 1 auto; min-width: 90px; }

/* ===== 每间房利润大卡片 ===== */
.profit-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.profit-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
}
.profit-card.profit::before { background: linear-gradient(180deg, var(--forest), var(--forest-2)); }
.profit-card.loss::before { background: linear-gradient(180deg, #ef4444, #f97316); }
.profit-card.idle::before { background: var(--muted); }
.profit-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.profit-card.profit:hover { box-shadow: 0 8px 24px rgba(16,185,129,0.15); }
.profit-card.loss:hover { box-shadow: 0 8px 24px rgba(239,68,68,0.15); }

.profit-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.profit-card.profit .profit-card-icon { background: var(--forest-soft); }
.profit-card.loss .profit-card-icon { background: rgba(239,68,68,0.10); }
.profit-card.idle .profit-card-icon { background: var(--surface-2); opacity: 0.6; }

.profit-card-body { flex: 1; min-width: 0; }
.profit-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.profit-card-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}
.profit-card-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
}
.profit-card-badge.profit { background: var(--forest-soft); color: var(--forest); }
.profit-card-badge.loss { background: rgba(239,68,68,0.12); color: #b91c1c; }
.profit-card-badge.idle { background: var(--surface-2); color: var(--muted); }

.profit-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.pm-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: var(--secondary);
  font-weight: 600;
}
.pm-icon { font-style: normal; margin-right: 1px; opacity: 0.8; }

.profit-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profit-progress-wrap.idle {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}
.profit-progress-track {
  flex: 1;
  height: 6px;
  background: var(--surface-2);
  border-radius: 10px;
  overflow: hidden;
}
.profit-progress-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.16,1,0.3,1);
}
.profit-progress-fill.profit { background: linear-gradient(90deg, var(--forest-2), var(--forest)); }
.profit-progress-fill.loss { background: linear-gradient(90deg, #f97316, #ef4444); }
.profit-progress-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--secondary);
  white-space: nowrap;
}

.profit-card-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  min-width: 86px;
}
.amount-currency {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1;
}
.amount-value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  font-feature-settings: 'tnum';
}
.amount-value.profit { color: var(--forest); }
.amount-value.loss { color: #ef4444; }
.amount-value.idle { color: var(--muted); }

/* ============================================================
   2027 现代重设计 · 手机优先 App 体验
   风格：Bento 模块化卡片 + Soft UI 柔和层次
   ============================================================ */

/* ---------- 全局质感升级（桌面 / 移动通用） ---------- */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.1px;
}
h1, h2, h3, .stat-value, .amount-value, .day-num, .room-card-name, .section-card h3 {
  font-family: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.amount-value, .stat-value, .day-num, .price-value, .cdh-day, .cdh-count {
  font-feature-settings: 'tnum' 1;
  font-variant-numeric: tabular-nums;
}
/* 统一容器：居中对齐 + 足够底部留白，防止被固定导航遮挡 */
#app { max-width: 920px; margin: 0 auto; padding-bottom: 96px; }

/* 卡片：Bento / Soft UI */
.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
@media (hover: hover) {
  .section-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
}
.section-card h3 { margin: 0 0 14px; font-size: 17px; font-weight: 700; color: var(--ink); }
.card-list, .clean-list, .price-list { display: flex; flex-direction: column; gap: 12px; }

/* 按钮：44px+ 触摸目标、品牌渐变 */
.btn-primary, .login-submit, .batch-price-btn, .fab-btn, .cvt-btn.active, .pvt-btn.active {
  min-height: 46px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), filter var(--dur) var(--ease);
  cursor: pointer;
}
.btn-primary:active, .login-submit:active, .batch-price-btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--grad-primary-btn);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-outline {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.btn-outline:hover { border-color: var(--forest); color: var(--forest); background: var(--forest-soft); }
.btn-outline:active { transform: scale(0.97); }

/* 统计卡：Bento 磁贴 */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
@media (hover: hover) { .stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); } }
.stat-card::after {
  content: ''; position: absolute; right: -20px; top: -20px;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--forest-soft); opacity: 0.7;
}
.stat-value { font-size: 28px; font-weight: 800; color: var(--ink); position: relative; z-index: 1; }
.stat-value .unit { font-size: 14px; font-weight: 700; color: var(--muted); margin-left: 2px; }
.stat-label { font-size: 13px; color: var(--secondary); margin-top: 4px; position: relative; z-index: 1; }
.stat-icon { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; background: var(--forest-soft); margin-bottom: 10px; position: relative; z-index: 1; }

/* 房间卡 / 订单卡 现代化 */
.room-card, .order-card, .clean-card, .price-room-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
@media (hover: hover) { .room-card:hover, .order-card:hover, .clean-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); } }
.room-card { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.room-card-icon {
  width: 52px; height: 52px; border-radius: 16px; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-gold); flex-shrink: 0; box-shadow: var(--shadow-sm);
}
.room-card-name { font-size: 17px; font-weight: 700; color: var(--ink); }
.order-room { font-size: 16px; font-weight: 700; color: var(--ink); }
.order-actions button, .room-card-actions button, .clean-toggle {
  min-height: 44px; border-radius: 12px; font-weight: 600; cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.order-actions button:active, .room-card-actions button:active { transform: scale(0.97); }

/* 快捷操作：浮动圆形 */
.quick-actions { z-index: 90; }
.quick-btn {
  width: 58px; height: 58px; border-radius: 50%; padding: 0; justify-content: center;
  box-shadow: var(--shadow-lg); border: none; cursor: pointer;
  background: var(--grad-primary-btn); color: #fff;
  transition: transform var(--dur) var(--ease);
}
.quick-btn:active { transform: scale(0.92); }
.quick-btn span:last-child { display: none; }
.quick-btn .icon { font-size: 24px; }

/* 日历卡片 */
.calendar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.day-cell {
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
@media (hover: hover) { .day-cell:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); } }
.day-cell.today { border-color: var(--forest); box-shadow: 0 0 0 2px var(--forest-soft-2); }
.day-num { font-weight: 700; color: var(--ink); }
.day-price { color: var(--forest); font-weight: 600; }
.day-channel-tag {
  background: var(--forest-soft) !important;
  color: var(--forest) !important;
  border: 1px solid var(--forest-soft-2) !important;
  font-weight: 600;
}
.day-channel-tag .dct-room { color: var(--forest-deep); font-weight: 800; }

/* 弹窗：圆角 sheet + 顶部把手 */
.modal-sheet {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
@media (max-width: 768px) {
  .modal-sheet { width: 94%; max-height: 90vh; padding: 22px 18px; border-radius: var(--radius-xl); }
}
.modal-header h3 { font-family: "Outfit", "PingFang SC", sans-serif; }

/* ============================================================
   iOS 风格底部标签栏（Apple-like）
   全屏固定底部（真实 App 手感）；#app 预留 padding 防遮挡
   ============================================================ */
.app-tab-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 64px;
  padding: 0 6px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 -4px 24px rgba(16, 32, 27, 0.06);
  z-index: 100;
}
.app-tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  height: 52px;
  padding: 4px 2px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.app-tab-item:active { transform: scale(0.92); }
.app-tab-item.active { color: var(--forest); }
.app-tab-icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
  transition: transform var(--dur) var(--ease);
}
.app-tab-item.active .app-tab-icon { transform: translateY(-1px); }
.app-tab-label { line-height: 1.1; white-space: nowrap; }

/* 顶部品牌栏在导航独立后微调 */
.app-header { box-shadow: 0 6px 20px rgba(6, 95, 70, 0.12); }

/* ============================================================
   响应式：手机优先三档
   ============================================================ */

/* ---------- 中等屏（≤768px） ---------- */
@media (max-width: 768px) {
  .main-content { padding: 14px 14px 30px; }
  .app-header { padding: 14px 16px; }
  .brand-text h1 { font-size: 17px; }
  .subtitle { font-size: 10px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .room-card { flex-wrap: wrap; }
  .room-card-actions { width: 100%; justify-content: flex-end; }
  .profit-card { flex-wrap: wrap; padding: 16px; }
  .profit-card-amount { width: 100%; flex-direction: row; align-items: baseline; gap: 6px; justify-content: flex-end; }
  .amount-currency { font-size: 14px; }
  .amount-value { font-size: 22px; }
  .price-hero { flex-direction: column; align-items: stretch; padding: 18px; }
  .batch-price-btn { width: 100%; justify-content: center; }
  .price-toolbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .batch-grid { grid-template-columns: 1fr; }
  .price-channel-values { gap: 8px; }
  .price-tag { min-width: 56px; padding: 7px 8px; }
  .price-compare-table th, .price-compare-table td { padding: 11px 7px; font-size: 12px; }
  .xhs-feed { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .quick-actions { right: 14px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); flex-direction: column; }
}

/* ---------- 手机屏（≤480px） ---------- */
@media (max-width: 480px) {
  .main-content { padding: 12px; }
  .section-card { padding: 16px; margin-bottom: 12px; border-radius: var(--radius-lg); }
  .welcome-card { padding: 20px; border-radius: var(--radius-lg); }
  .welcome-card h2 { font-size: 20px; }
  .weather-temp { font-size: 26px; }
  .calendar-toolbar { margin-bottom: 12px; }
  .room-filter { display: flex; align-items: center; gap: 10px; }
  .room-filter label { font-size: 12px; font-weight: 600; color: var(--secondary); white-space: nowrap; }
  .room-filter select { flex: 1; }
  .calendar-card { padding: 12px; }
  .calendar-weekdays { font-size: 11px; margin-bottom: 8px; }
  .calendar-days { gap: 5px; }
  .day-cell {
    aspect-ratio: auto;
    min-height: 70px;
    border-radius: 12px;
    padding: 6px 3px;
    justify-content: flex-start;
  }
  .day-cell.today { border-width: 2px; }
  .day-num { font-size: 13px; margin-bottom: 3px; }
  .day-price { font-size: 10px; }
  .day-channel-tags {
    position: static;
    margin-top: 3px;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
  }
  .day-channel-tag {
    font-size: 10px; line-height: 1.3; padding: 2px 4px;
    white-space: normal; text-align: center; overflow: visible; text-overflow: clip;
  }
  .day-occ-tag { position: static; margin-top: 3px; font-size: 9px; padding: 1px 6px; display: inline-block; }
  .orders-header { margin-bottom: 12px; }
  .order-card { padding: 15px; }
  .order-room { font-size: 15px; }
  .order-actions { flex-wrap: wrap; }
  .order-actions button { flex: 1 1 40%; }
  .clean-hero { padding: 18px; border-radius: var(--radius-lg); }
  .clean-summary-pill { flex: 1 1 30%; justify-content: center; }
  .clean-item { padding: 14px 10px; gap: 8px; border-radius: 12px; }
  .clean-toggle { width: 92px; text-align: center; }
  .cdh-day { font-size: 24px; }
  .price-compare-table { font-size: 12px; }
  .price-compare-table th, .price-compare-table td { padding: 9px 6px; }
  .settings-card { padding: 16px; border-radius: var(--radius-lg); }
  .sound-setting { flex-wrap: wrap; gap: 6px; }
  .stat-card { padding: 16px; border-radius: var(--radius-lg); }
  .stat-value { font-size: 25px; }
  .room-card-icon { width: 48px; height: 48px; font-size: 24px; border-radius: 14px; }
}

/* ---------- 小屏（≤360px） ---------- */
@media (max-width: 360px) {
  .app-tab-item { height: 48px; }
  .app-tab-label { font-size: 9px; }
  .app-tab-icon { width: 22px; height: 22px; }
  .day-cell { min-height: 64px; }
  .day-channel-tag { font-size: 9px; }
  .stat-value { font-size: 22px; }
  .room-card-name { font-size: 15px; }
  .order-actions button { flex: 1 1 100%; }
}

/* 尊重无障碍：减少动效 */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
