/* ==========================================
   会议室预约系统 - 完整样式
   ========================================== */

/* 系统字体栈 - 优先使用系统字体，无需加载外部字体 */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
  --primary: #6366F1;
  --primary-light: #818CF8;
  --primary-lighter: #E0E7FF;
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;
  --bg-page: linear-gradient(135deg, #F8FAFC 0%, #F0FDF4 50%, #F5F3FF 100%);
  --bg-card: rgba(255, 255, 255, 0.95);
  --text-heading: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.06);
  --shadow-primary: 0 4px 14px rgba(99,102,241,0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
}

/* 深色模式 */
.dark-mode {
  --slate-50: #0F172A;
  --slate-100: #1E293B;
  --slate-200: #334155;
  --slate-300: #475569;
  --slate-400: #64748B;
  --slate-500: #94A3B8;
  --slate-600: #CBD5E1;
  --slate-700: #E2E8F0;
  --slate-800: #F1F5F9;
  --slate-900: #F8FAFC;
  --bg-page: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #334155 100%);
  --bg-card: rgba(30, 41, 59, 0.95);
  --text-heading: #F8FAFC;
  --text-body: #E2E8F0;
  --text-muted: #94A3B8;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  background-attachment: fixed;
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
}

.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

/* 导航 */
.top-nav {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226,232,240,0.6);
  padding: 16px 24px;
  position: sticky; top: 0; z-index: 100;
}

.dark-mode .top-nav {
  background: rgba(15,23,42,0.85);
  border-bottom: 1px solid rgba(51,65,85,0.6);
}

.nav-inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 12px; }

.brand-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: var(--shadow-primary);
  overflow: hidden;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.brand-text { font-size: 18px; font-weight: 700; color: var(--text-heading); letter-spacing: -0.02em; }
.nav-menu { display: flex; gap: 8px; background: var(--slate-100); padding: 4px; border-radius: 12px; align-items: center; }

.nav-item {
  padding: 8px 20px; font-size: 14px; font-weight: 500;
  color: var(--text-muted); border-radius: 10px;
  border: none; background: transparent; cursor: pointer; transition: all 0.2s;
}
.nav-item:hover { color: var(--text-body); }
.nav-item.active { background: white; color: var(--primary); box-shadow: var(--shadow-sm); }

.dark-mode .nav-item.active { background: var(--slate-800); }

/* 用户信息 */
.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.dark-mode .user-info {
  background: var(--slate-800);
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
}
.user-role {
  font-size: 12px;
  padding: 2px 8px;
  background: var(--primary-lighter);
  color: var(--primary);
  border-radius: 12px;
}

/* 主内容 */
.main-wrapper {
  flex: 1; max-width: 1500px; width: 100%; margin: 0 auto;
  padding: 24px; display: flex; flex-direction: column; gap: 20px;
}

@media (max-width: 1024px) {
  .main-wrapper { padding: 12px; gap: 12px; }
}

/* 顶部概览与筛选 */
.top-bar {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 10px;
  background: var(--bg-card);
  border: 1px solid rgba(226,232,240,0.6);
  border-radius: var(--radius-xl);
  padding: 12px 18px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.dark-mode .top-bar {
  border: 1px solid rgba(51,65,85,0.6);
}

.top-bar-label {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  white-space: nowrap;
  margin-right: 2px;
}

.overview-bar {
  display: flex; flex-wrap: nowrap; gap: 8px;
}

.overview-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: 7px 14px;
  min-width: auto;
}

.dark-mode .overview-pill {
  border: 1px solid rgba(51,65,85,0.6);
  background: rgba(51,65,85,0.3);
}

.overview-pill .pill-value {
  font-size: 18px; font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1;
}

.overview-pill .pill-label {
  font-size: 13px; font-weight: 500; color: var(--text-muted);
}

.filter-pills {
  display: flex; flex-wrap: nowrap; gap: 8px;
}

.filter-pills .tag {
  padding: 7px 14px; font-size: 13px;
}

@media (max-width: 1024px) {
  .top-bar { flex-wrap: wrap; flex-direction: column; align-items: flex-start; gap: 12px; padding: 12px 14px; }
  .top-bar-label { margin-right: 0; }
  .overview-bar { flex-wrap: wrap; gap: 8px; width: 100%; }
  .overview-pill { padding: 10px 14px; min-width: auto; flex: 1; }
  .overview-pill .pill-value { font-size: 20px; }
  .overview-pill .pill-label { font-size: 12px; }
  .filter-pills { flex-wrap: wrap; }
  .filter-pills .tag { padding: 6px 12px; font-size: 12px; }
}

.sidebar { display: none; }

/* 卡片 */
.card {
  background: var(--bg-card); border-radius: var(--radius-xl);
  border: 1px solid rgba(226,232,240,0.6); box-shadow: var(--shadow-sm); overflow: hidden;
}

.dark-mode .card {
  border: 1px solid rgba(51,65,85,0.6);
}

.card-header {
  padding: 20px 20px 16px; border-bottom: 1px solid rgba(226,232,240,0.6);
  display: flex; align-items: center; justify-content: space-between;
}

.dark-mode .card-header {
  border-bottom: 1px solid rgba(51,65,85,0.6);
}

.card-title { font-size: 16px; font-weight: 600; color: var(--text-heading); }
.card-body { padding: 20px; }

/* 折叠功能 */
.stats-card, .filter-card { transition: all 0.3s ease; }
.stats-card.collapsed, .filter-card.collapsed {
  background: transparent; border: none; box-shadow: none;
}
.stats-card.collapsed .card-header, .filter-card.collapsed .card-header {
  border-bottom: none; padding-bottom: 20px;
}
.stats-card.collapsed .stats-body, .filter-card.collapsed .filter-body { display: none; }

.toggle-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; font-size: 13px; font-weight: 500;
  color: var(--text-muted); background: var(--slate-100);
  border: none; border-radius: 20px; cursor: pointer; transition: all 0.2s;
}
.toggle-btn:hover { background: var(--slate-200); color: var(--text-body); }
.toggle-btn svg { transition: transform 0.3s; width: 16px; height: 16px; }
.stats-card.collapsed .toggle-btn svg, .filter-card.collapsed .toggle-btn svg { transform: rotate(180deg); }

/* 统计卡片 */
.stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat-mini {
  background: var(--slate-50); border-radius: var(--radius-lg); padding: 20px 16px;
  text-align: center; border: 1px solid rgba(226,232,240,0.6);
}
.stat-mini-value {
  font-size: 28px; font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1; margin-bottom: 6px;
}
.stat-mini-label { font-size: 12px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; }

/* 筛选 */
.filter-group { margin-bottom: 20px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase;
}
.filter-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.duration-semantic-row {
  flex: 0 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.filter-tag {
  padding: 8px 14px; font-size: 13px; font-weight: 500; font-family: inherit;
  color: var(--text-muted); background: var(--slate-50);
  border: 1px solid var(--slate-200); border-radius: 20px;
  cursor: pointer; transition: all 0.2s; user-select: none;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
}
.filter-tag:hover {
  border-color: var(--primary-light); color: var(--primary); background: var(--primary-lighter);
}
.filter-tag.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: var(--primary); color: white; box-shadow: var(--shadow-primary);
}
.tag {
  padding: 8px 14px; font-size: 13px; font-weight: 500;
  color: var(--text-muted); background: var(--slate-50);
  border: 1px solid var(--slate-200); border-radius: 20px;
  cursor: pointer; transition: all 0.2s; user-select: none;
}
.tag:hover { border-color: var(--primary-light); color: var(--primary); background: var(--primary-lighter); }
.tag.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: var(--primary); color: white; box-shadow: var(--shadow-primary);
}

/* 内容区 */
.content-area { display: flex; flex-direction: column; gap: 20px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.date-picker {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card); padding: 6px; border-radius: var(--radius-lg);
  border: 1px solid rgba(226,232,240,0.6); box-shadow: var(--shadow-sm);
}

.weekday-display {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  padding: 8px 12px;
  background: var(--primary-lighter);
  border-radius: var(--radius-md);
  margin-left: 4px;
}

.dark-mode .date-picker {
  border: 1px solid rgba(51,65,85,0.6);
}

.date-nav-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; border-radius: 10px;
  font-size: 18px; color: var(--text-muted); cursor: pointer; transition: all 0.2s;
}
.date-nav-btn:hover { background: var(--slate-100); color: var(--text-body); }
.date-input { padding: 8px 16px; font-size: 15px; font-weight: 600; color: var(--text-heading); background: transparent; border: none; cursor: pointer; }
.toolbar-actions { display: flex; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; font-size: 14px; font-weight: 500;
  border-radius: 10px; border: none; cursor: pointer; transition: all 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; box-shadow: var(--shadow-primary);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,0.4); }
.btn-secondary { background: var(--slate-100); color: var(--text-body); }
.btn-secondary:hover { background: var(--slate-200); }
.btn-danger { background: #FEE2E2; color: #DC2626; }
.btn-danger:hover { background: #FECACA; }

.dark-mode .btn-secondary { background: var(--slate-800); color: var(--text-body); }
.dark-mode .btn-secondary:hover { background: var(--slate-700); }
.dark-mode .btn-danger { background: rgba(220,38,38,0.2); }
.dark-mode .btn-danger:hover { background: rgba(220,38,38,0.3); }

/* 时间轴 */
.timeline-wrapper {
  background: var(--bg-card); border-radius: var(--radius-xl);
  border: 1px solid rgba(226,232,240,0.6); box-shadow: var(--shadow-sm); overflow: hidden;
}

.dark-mode .timeline-wrapper {
  border: 1px solid rgba(51,65,85,0.6);
}

.timeline-scroll { max-height: 520px; overflow-y: auto; }
.timeline-header {
  display: flex; border-bottom: 1px solid rgba(226,232,240,0.6);
  background: linear-gradient(180deg, #F8FAFC, #F1F5F9);
  position: sticky; top: 0; z-index: 20;
}

.dark-mode .timeline-header {
  border-bottom: 1px solid rgba(51,65,85,0.6);
  background: linear-gradient(180deg, #1E293B, #0F172A);
}

.timeline-room-col {
  width: 140px; flex-shrink: 0; padding: 14px 16px;
  font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase;
  border-right: 1px solid rgba(226,232,240,0.6); display: flex; align-items: center;
}

.dark-mode .timeline-room-col {
  border-right: 1px solid rgba(51,65,85,0.6);
}

.timeline-hours-header { 
  flex: 1; 
  display: grid;
  /* 9格对应9小时，每格1小时 */
  grid-template-columns: repeat(9, 1fr);
  position: relative;
}

/* 时间标签 */
.timeline-hour-label {
  text-align: left;
  padding-left: 4px;
  font-size: 12px; 
  font-weight: 600;
  color: var(--text-muted); 
  padding: 14px 0;
  border-right: 1px solid #E2E8F0;
}

.timeline-hour-label:last-child { 
  border-right: none; 
}

.dark-mode .timeline-hour-label {
  border-right: 1px solid #334155;
}

.dark-mode .timeline-hour-label:last-child {
  border-right: none;
}

/* 移除标签中间的分隔线 */
.timeline-hour-label::after {
  content: none;
}
.timeline-body { overflow-y: visible; }
.timeline-row {
  display: flex; border-bottom: 1px solid rgba(226,232,240,0.4); min-height: 56px;
}

.dark-mode .timeline-row {
  border-bottom: 1px solid rgba(51,65,85,0.4);
}

.timeline-row:last-child { border-bottom: none; }
.timeline-row:nth-child(even) { background: rgba(248,250,252,0.4); }
.timeline-room-name {
  width: 140px; flex-shrink: 0; padding: 12px 16px;
  background: linear-gradient(180deg, #F8FAFC, #F1F5F9);
  border-right: 1px solid rgba(226,232,240,0.6);
  display: flex; flex-direction: column; justify-content: center;
  position: sticky; left: 0; z-index: 10;
}

.dark-mode .timeline-room-name {
  background: linear-gradient(180deg, #1E293B, #0F172A);
  border-right: 1px solid rgba(51,65,85,0.6);
}

.room-name-text { font-size: 13px; font-weight: 600; color: var(--text-heading); line-height: 1.3; }
.room-capacity-text { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.timeline-slots {
  flex: 1; position: relative; cursor: pointer;
  /* 移除重复背景网格，改用JS动态绘制 */
}

.dark-mode .timeline-slots {
  /* 移除重复背景网格 */
}

/* 半小时细线已移除 */
.timeline-slots::before { content: none; }

.timeline-slots {
  flex: 1; 
  position: relative; 
  cursor: pointer;
  /* 移除grid布局，改用百分比定位 */
}

/* 9格网格线 - 简单可靠 */
.timeline-slots::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* 10条线对应9格：每格11.11% */
  background: repeating-linear-gradient(
    90deg,
    #E2E8F0 0px,
    #E2E8F0 1px,
    transparent 1px,
    transparent calc(100% / 9)
  );
  pointer-events: none;
  z-index: 1;
}

.dark-mode .timeline-slots::before {
  background: repeating-linear-gradient(
    90deg,
    #334155 0px,
    #334155 1px,
    transparent 1px,
    transparent calc(100% / 9)
  );
}
    #334155 calc(200% / 9),
    transparent calc(200% / 9),
    transparent calc(300% / 9 - 1px),
    #334155 calc(300% / 9 - 1px),
    #334155 calc(300% / 9),
    transparent calc(300% / 9),
    transparent calc(400% / 9 - 1px),
    #334155 calc(400% / 9 - 1px),
    #334155 calc(400% / 9),
    transparent calc(400% / 9),
    transparent calc(500% / 9 - 1px),
    #334155 calc(500% / 9 - 1px),
    #334155 calc(500% / 9),
    transparent calc(500% / 9),
    transparent calc(600% / 9 - 1px),
    #334155 calc(600% / 9 - 1px),
    #334155 calc(600% / 9),
    transparent calc(600% / 9),
    transparent calc(700% / 9 - 1px),
    #334155 calc(700% / 9 - 1px),
    #334155 calc(700% / 9),
    transparent calc(700% / 9),
    transparent calc(800% / 9 - 1px),
    #334155 calc(800% / 9 - 1px),
    #334155 calc(800% / 9),
    transparent calc(800% / 9),
    transparent calc(100% - 1px),
    #334155 calc(100% - 1px),
    #334155 100%
  );
}

/* 预约块 - 绝对定位 */
.booking-block {
  position: absolute; 
  top: 6px; 
  bottom: 6px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 8px; 
  padding: 4px 8px; 
  color: white;
  cursor: pointer; 
  transition: all 0.2s;
  display: flex;
  flex-direction: column; 
  justify-content: center;
  box-shadow: 0 2px 8px rgba(99,102,241,0.25);
  overflow: hidden; 
  min-width: 20px; 
  z-index: 5;
}

.booking-block {
  position: absolute; top: 6px; bottom: 6px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 8px; padding: 4px 8px; color: white;
  cursor: pointer; transition: all 0.2s;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: 0 2px 8px rgba(99,102,241,0.25);
  overflow: hidden; min-width: 20px; z-index: 5;
}
.booking-block:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 6px 16px rgba(99,102,241,0.35); z-index: 10;
}
.booking-block.recurring {
  background: linear-gradient(135deg, #F59E0B, #FBBF24);
  box-shadow: 0 2px 8px rgba(245,158,11,0.25);
}
.booking-block.mine {
  background: linear-gradient(135deg, #D8B4FE, #C4B5FD);
  color: #581C87;
  box-shadow: 0 2px 8px rgba(168,85,247,0.25);
}
.booking-block.others {
  background: linear-gradient(135deg, #7C3AED, #6D28D9);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(124,58,237,0.35);
}
.booking-block-time { font-size: 9px; font-weight: 600; opacity: 0.9; margin-bottom: 1px; white-space: nowrap; }
.booking-block-title { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.booking-block-user { font-size: 9px; opacity: 0.85; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.booking-tooltip {
  position: fixed;
  z-index: 1000;
  background: rgba(30, 41, 59, 0.95);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  pointer-events: none;
  max-width: 260px;
  backdrop-filter: blur(6px);
  transition: opacity 0.15s ease;
}
.booking-tooltip .tooltip-room { font-weight: 700; font-size: 14px; margin-bottom: 4px; color: #C4B5FD; }
.booking-tooltip .tooltip-time { opacity: 0.9; margin-bottom: 4px; }
.booking-tooltip .tooltip-booker { font-weight: 600; margin-bottom: 2px; }
.booking-tooltip .tooltip-title { opacity: 0.85; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.booking-tooltip .tooltip-meta { font-size: 12px; opacity: 0.7; margin-top: 4px; }

.legend-bar {
  display: flex; align-items: center; justify-content: center; gap: 32px;
  padding: 16px; background: linear-gradient(180deg, #F8FAFC, #F1F5F9);
  border-top: 1px solid rgba(226,232,240,0.6);
}

.dark-mode .legend-bar {
  background: linear-gradient(180deg, #1E293B, #0F172A);
  border-top: 1px solid rgba(51,65,85,0.6);
}

.legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.legend-dot.available { background: var(--slate-200); }
.legend-dot.booked { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.legend-dot.recurring { background: linear-gradient(135deg, #F59E0B, #FBBF24); }

/* 弹窗 */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.5);
  backdrop-filter: blur(4px); z-index: 1000;
  display: none; align-items: flex-end; justify-content: center;
}
@media (min-width: 768px) { .modal-overlay { align-items: center; } }
.modal-overlay.active { display: flex; }

.modal {
  background: var(--bg-card); width: 100%; max-height: 85vh;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  box-shadow: var(--shadow-lg); overflow: hidden; animation: slideUp 0.3s ease;
  display: flex; flex-direction: column;
}
@media (min-width: 768px) {
  .modal { width: 480px; border-radius: var(--radius-2xl); max-height: 85vh; animation: scaleIn 0.2s ease; }
  .modal.compact { width: 440px; border-radius: var(--radius-2xl); max-height: none; animation: scaleIn 0.2s ease; }
  .modal.compact .modal-header { padding: 12px 20px; }
  .modal.compact .modal-body { padding: 12px 20px; overflow-y: visible; max-height: none; }
  .modal.compact .modal-footer { padding: 10px 20px; }
  .modal.compact .form-group { margin-bottom: 8px; }
  .modal.compact .form-label { margin-bottom: 3px; font-size: 13px; }
  .modal.compact .form-input, .modal.compact .form-select { padding: 7px 12px; font-size: 14px; }
  .modal.compact .form-row { gap: 8px; }
  .modal.compact .switch-group { padding: 6px 0; }
  .modal.compact .checkbox-group { gap: 5px; }
  .modal.compact .checkbox-item { padding: 5px 10px; font-size: 13px; }
}
@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes scaleIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid rgba(226,232,240,0.6);
}

.dark-mode .modal-header {
  border-bottom: 1px solid rgba(51,65,85,0.6);
}

.modal-title { font-size: 18px; font-weight: 700; color: var(--text-heading); }
.modal-close {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: var(--slate-100); border: none; border-radius: 50%;
  font-size: 18px; color: var(--text-muted); cursor: pointer; transition: all 0.2s;
}
.modal-close:hover { background: var(--slate-200); color: var(--text-body); }
.modal-body { padding: 24px; overflow-y: auto; max-height: calc(85vh - 160px); }
@media (min-width: 768px) { .modal-body { max-height: calc(80vh - 140px); } }
.modal-footer { display: flex; gap: 12px; padding: 16px 24px; border-top: 1px solid rgba(226,232,240,0.6); background: var(--slate-50); }

.dark-mode .modal-footer {
  border-top: 1px solid rgba(51,65,85,0.6);
  background: var(--slate-800);
}

.modal-footer .btn { flex: 1; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text-heading); margin-bottom: 8px; }
.form-input, .form-select {
  width: 100%; padding: 12px 16px; font-size: 15px; font-family: inherit;
  color: var(--text-body); background: var(--slate-50); border: 1px solid var(--slate-200);
  border-radius: var(--radius-md); transition: all 0.2s;
  appearance: none; /* 统一浏览器默认外观 */
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* 为 select 添加下拉箭头 */
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='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: 16px;
  padding-right: 40px; /* 为箭头留出空间 */
}

/* 深色模式下拉箭头 */
.dark-mode .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.form-input:focus, .form-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); background: white; }
.form-input[readonly] { background: var(--slate-100); cursor: default; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.dark-mode .form-input, .dark-mode .form-select {
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  color: var(--text-body);
}

.dark-mode .form-input:focus, .dark-mode .form-select:focus {
  background: var(--slate-900);
}

.switch-group { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; cursor: pointer; }
.switch-label { font-size: 15px; font-weight: 500; color: var(--text-heading); }
.switch { width: 48px; height: 28px; background: var(--slate-300); border-radius: 14px; position: relative; transition: background 0.2s; }
.switch.active { background: var(--primary); }
.switch-thumb { width: 24px; height: 24px; background: white; border-radius: 50%; position: absolute; top: 2px; left: 2px; transition: transform 0.2s; box-shadow: var(--shadow-sm); }
.switch.active .switch-thumb { transform: translateX(20px); }

.checkbox-group { display: flex; flex-wrap: wrap; gap: 8px; }
.checkbox-item { padding: 8px 16px; font-size: 14px; font-weight: 500; color: var(--text-muted); background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 20px; cursor: pointer; transition: all 0.2s; }
.checkbox-item:hover { border-color: var(--primary-light); color: var(--primary); }
.checkbox-item.active { background: var(--primary); border-color: var(--primary); color: white; }

.detail-list { display: flex; flex-direction: column; gap: 4px; }
.detail-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(226,232,240,0.6); }

.dark-mode .detail-item {
  border-bottom: 1px solid rgba(51,65,85,0.6);
}

.detail-item:last-child { border-bottom: none; }
.detail-label { font-size: 14px; color: var(--text-muted); }
.detail-value { font-size: 14px; font-weight: 600; color: var(--text-heading); }

.tab-nav { display: flex; gap: 4px; padding: 4px; background: var(--slate-100); border-radius: var(--radius-lg); margin-bottom: 20px; }

.dark-mode .tab-nav {
  background: var(--slate-800);
}

.tab-item { flex: 1; padding: 10px 16px; font-size: 14px; font-weight: 500; color: var(--text-muted); background: transparent; border: none; border-radius: 10px; cursor: pointer; transition: all 0.2s; }
.tab-item:hover { color: var(--text-body); }
.tab-item.active { background: white; color: var(--primary); box-shadow: var(--shadow-sm); }

.dark-mode .tab-item.active { background: var(--slate-700); }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-box { background: linear-gradient(135deg, var(--slate-50), white); border-radius: var(--radius-lg); padding: 20px; text-align: center; border: 1px solid rgba(226,232,240,0.6); }

.dark-mode .stat-box {
  background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
  border: 1px solid rgba(51,65,85,0.6);
}

.stat-number { font-size: 28px; font-weight: 700; background: linear-gradient(135deg, var(--primary), var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; margin-bottom: 4px; }
.stat-label-text { font-size: 12px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; }

.chart-box { background: linear-gradient(135deg, var(--slate-50), white); border-radius: var(--radius-lg); padding: 20px; border: 1px solid rgba(226,232,240,0.6); }

.dark-mode .chart-box {
  background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
  border: 1px solid rgba(51,65,85,0.6);
}

.chart-title { font-size: 14px; font-weight: 600; color: var(--text-heading); margin-bottom: 16px; }
.chart-bars { display: flex; align-items: flex-end; justify-content: space-around; height: 120px; gap: 12px; }
.chart-bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.chart-bar-fill { width: 100%; max-width: 28px; background: linear-gradient(180deg, var(--primary), var(--primary-light)); border-radius: 6px 6px 0 0; min-height: 4px; transition: height 0.4s ease; }
.chart-bar-label { font-size: 11px; font-weight: 500; color: var(--text-muted); }

.rank-list { display: flex; flex-direction: column; gap: 8px; }
.history-date-group { display: flex; flex-direction: column; gap: 8px; }
.history-date-title {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  padding: 4px 2px; margin-top: 4px;
}
.rank-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(135deg, var(--slate-50), white); border-radius: var(--radius-lg); border: 1px solid rgba(226,232,240,0.6); }

.dark-mode .rank-row {
  background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
  border: 1px solid rgba(51,65,85,0.6);
}

.rank-num { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; border-radius: 50%; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.rank-row:nth-child(1) .rank-num { background: linear-gradient(135deg, #F59E0B, #D97706); }
.rank-row:nth-child(2) .rank-num { background: linear-gradient(135deg, #9CA3AF, #6B7280); }
.rank-row:nth-child(3) .rank-num { background: linear-gradient(135deg, #B45309, #92400E); }
.rank-info { flex: 1; min-width: 0; }
.rank-name { font-size: 14px; font-weight: 600; color: var(--text-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-count { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--slate-800); color: white; padding: 14px 28px; border-radius: 50px; font-size: 14px; font-weight: 500; z-index: 10000; opacity: 0; transition: all 0.3s ease; box-shadow: var(--shadow-lg); }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

.dark-mode .toast {
  background: var(--slate-100);
  color: var(--slate-900);
}

.bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-top: 1px solid rgba(226,232,240,0.6); padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); z-index: 100; }
@media (max-width: 1024px) { .bottom-nav { display: flex; } .main-wrapper { padding-bottom: 80px; } }

.dark-mode .bottom-nav {
  background: rgba(15,23,42,0.95);
  border-top: 1px solid rgba(51,65,85,0.6);
}

.bottom-nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; background: transparent; border: none; color: var(--text-muted); font-size: 11px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-icon { font-size: 22px; }

.mobile-filter-btn { display: none; position: fixed; bottom: 90px; right: 16px; width: 48px; height: 48px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; border: none; border-radius: 50%; font-size: 20px; cursor: pointer; box-shadow: var(--shadow-primary); z-index: 99; transition: all 0.2s; }
@media (max-width: 1024px) { .mobile-filter-btn { display: flex; align-items: center; justify-content: center; bottom: 86px; } }
.mobile-filter-btn:hover { transform: scale(1.05); }

/* 移动端紧凑优化 */
@media (max-width: 640px) {
  .toolbar { gap: 10px; padding: 10px 12px; }
  .toolbar-actions .btn { padding: 8px 12px; font-size: 13px; }
  .date-nav-btn { width: 32px; height: 32px; font-size: 16px; }
  .date-input { padding: 6px 8px; font-size: 13px; }
  .timeline-room-col { width: 100px; padding: 10px 8px; font-size: 11px; }
  .timeline-room-name { width: 100px; padding: 10px 8px; }
  .room-name-text { font-size: 12px; }
  .room-capacity-text { font-size: 10px; }
}

.empty-state { text-align: center; padding: 40px 20px; }
.empty-state p { color: var(--text-muted); font-size: 14px; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-400); }

/* 深色模式滚动条 */
.dark-mode ::-webkit-scrollbar-thumb { background: var(--slate-600); }
.dark-mode ::-webkit-scrollbar-thumb:hover { background: var(--slate-500); }

/* 批量选择 */
.booking-checkbox {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  z-index: 10;
}

.batch-actions {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 1000;
  border: 1px solid var(--slate-200);
}

.dark-mode .batch-actions {
  border-color: var(--slate-700);
}

.batch-actions .selected-count {
  font-weight: 600;
  color: var(--primary);
}

/* 热力图 */
.heatmap-container {
  padding: 20px;
  overflow-x: auto;
}

.heatmap-grid {
  display: grid;
  gap: 2px;
  min-width: 800px;
}

.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: all 0.2s;
  cursor: pointer;
}

.heatmap-cell:hover {
  transform: scale(1.1);
  z-index: 10;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.heatmap-cell.free {
  background: #10B981;
}

.heatmap-cell.occupied {
  background: #EF4444;
}

.heatmap-legend {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  justify-content: center;
}

.heatmap-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.heatmap-legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

/* 日历视图 */
.calendar-view {
  padding: 20px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.dark-mode .calendar-grid {
  background: var(--slate-700);
}

.calendar-day-header {
  background: var(--bg-card);
  padding: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

.calendar-day {
  background: var(--bg-card);
  min-height: 100px;
  padding: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.calendar-day:hover {
  background: var(--primary-lighter);
}

.calendar-day.other-month {
  color: var(--text-muted);
  background: var(--slate-50);
}

.dark-mode .calendar-day.other-month {
  background: var(--slate-800);
}

.calendar-day-number {
  font-weight: 600;
  margin-bottom: 4px;
}

.calendar-day-bookings {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calendar-booking-dot {
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

/* 搜索框 */
.search-box {
  position: relative;
  margin-bottom: 16px;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  font-size: 14px;
  background: var(--bg-card);
  color: var(--text-body);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* 推荐结果 */
.recommend-list {
  max-height: 300px;
  overflow-y: auto;
}

.recommend-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--slate-100);
  cursor: pointer;
  transition: background 0.2s;
}

.recommend-item:hover {
  background: var(--primary-lighter);
}

.recommend-item:last-child {
  border-bottom: none;
}

.recommend-time {
  font-weight: 600;
  color: var(--primary);
}

.recommend-room {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Loading 动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.dark-mode .loading-overlay {
    background: rgba(15,23,42,0.9);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--slate-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* 移动端时间轴优化 */
@media (max-width: 768px) {
    .timeline-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .timeline-header,
    .timeline-row {
        min-width: 800px;
    }
    
    .timeline-room-name {
        position: sticky;
        left: 0;
        background: var(--bg-card);
        z-index: 10;
        box-shadow: 2px 0 8px rgba(0,0,0,0.05);
    }
    
    .dark-mode .timeline-room-name {
        background: var(--bg-card);
        box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    }
}

/* 引导提示 */
.tour-highlight {
    position: relative;
    z-index: 10002;
    box-shadow: 0 0 0 4px var(--primary), 0 0 20px rgba(139,92,246,0.4);
    border-radius: var(--radius-md);
    animation: pulse-highlight 2s ease-in-out infinite;
}

@keyframes pulse-highlight {
    0%, 100% { box-shadow: 0 0 0 4px var(--primary), 0 0 20px rgba(139,92,246,0.4); }
    50% { box-shadow: 0 0 0 6px var(--primary), 0 0 30px rgba(139,92,246,0.6); }
}

.tour-tooltip {
    position: absolute;
    background: var(--slate-800);
    color: white;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    max-width: 280px;
    z-index: 10003;
    box-shadow: var(--shadow-lg);
}

.tour-tooltip::before {
    content: '';
    position: absolute;
    border: 8px solid transparent;
}

.tour-tooltip.top::before {
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: var(--slate-800);
}

.tour-tooltip.bottom::before {
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: var(--slate-800);
}

.tour-tooltip .tour-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
}

.tour-tooltip .tour-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    justify-content: flex-end;
}

.tour-tooltip button {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.tour-tooltip .tour-skip {
    background: transparent;
    color: var(--slate-400);
}

.tour-tooltip .tour-skip:hover {
    color: white;
}

.tour-tooltip .tour-next {
    background: var(--primary);
    color: white;
}

.tour-tooltip .tour-next:hover {
    background: var(--primary-light);
}

.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10001;
}

/* 更换会议室选择列表 */
.room-select-list {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.room-select-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148,163,184,0.3);
    background: var(--bg-card);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.room-select-item:hover:not(.disabled) {
    background: rgba(139, 92, 246, 0.08);
    border-color: var(--primary);
}
.room-select-item.selected {
    background: rgba(139, 92, 246, 0.12);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}
.room-select-item.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: transparent;
}
.room-select-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-heading);
}
.room-select-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}
.room-select-status {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}
.room-select-item.selected .room-select-status {
    color: var(--primary);
    font-weight: 500;
}

/* ========== 单行工具栏（新增） ========== */
.toolbar-single {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.nav-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--slate-200);
    background: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 16px;
    color: var(--text-muted);
    transition: all 0.15s;
}

.nav-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.date-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-input-sm {
    padding: 4px 8px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    color: var(--text-heading);
    background: white;
    width: 110px;
    cursor: pointer;
}

.weekday-badge {
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-lighter);
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

.divider {
    color: var(--slate-300);
    font-size: 14px;
    user-select: none;
    flex-shrink: 0;
}

.mode-pill {
    display: flex;
    background: var(--slate-100);
    border-radius: 16px;
    padding: 2px;
    flex-shrink: 0;
}

.pill-btn {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    background: transparent;
    border-radius: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.pill-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.view-tabs {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.tab-btn {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
    min-width: 28px;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.action-group {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.action-btn {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--slate-200);
    background: white;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 768px) {
    .toolbar-single {
        padding: 10px 12px;
        gap: 8px;
    }
    .weekday-badge { display: none; }
    .divider { font-size: 10px; }
    .pill-btn { padding: 4px 10px; font-size: 11px; }
    .tab-btn { padding: 4px 8px; font-size: 11px; }
    .action-btn { padding: 4px 10px; font-size: 11px; }
}

/* 通知中心样式 */
.notif-badge {
  position: absolute; top: 2px; right: 2px;
  background: #ef4444; color: #fff; font-size: 10px;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; padding: 0 4px;
}
.notif-panel {
  position: absolute; top: 64px; right: 24px; width: 360px; max-height: 480px;
  background: var(--bg-card); border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  z-index: 55; display: flex; flex-direction: column; overflow: hidden;
}
.notif-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--slate-200);
  font-weight: 600; font-size: 14px;
}
.notif-list { flex: 1; overflow-y: auto; padding: 8px; }
.notif-item {
  padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 6px;
  cursor: pointer; transition: background 0.2s; font-size: 13px;
  border-left: 3px solid transparent;
}
.notif-item:hover { background: var(--slate-100); }
.notif-item.unread { background: var(--primary-lighter); border-left-color: var(--primary); }
.notif-item .notif-title { font-weight: 600; margin-bottom: 2px; }
.notif-item .notif-msg { color: var(--text-muted); font-size: 12px; }
.notif-item .notif-time { color: var(--slate-400); font-size: 11px; margin-top: 4px; }

/* 移动端通知 */
.m-notifbtn {
  position: relative; font-size: 20px; padding: 4px 8px;
}
.m-notifbadge {
  position: absolute; top: 0; right: 0;
  background: #ef4444; color: #fff; font-size: 9px;
  min-width: 14px; height: 14px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}
