/* ===== 全局重置 ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #4F8DF7;
  --primary-dark: #2F6FE0;
  --primary-light: #E8F1FE;
  --success: #52C41A;
  --warning: #FAAD14;
  --danger: #FF4D4F;
  --info: #36CFC9;
  --text: #1F2937;
  --text-secondary: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --bg: #F3F4F6;
  --bg-white: #FFFFFF;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 16px;
  --sidebar-w: 240px;
  --sidebar-collapsed-w: 64px;
  --header-h: 60px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ===== 布局 ===== */
.app-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #1E2A3A 0%, #2C3E50 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.3s, width 0.25s ease;
}

.sidebar-header {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-header h2 { font-size: 18px; font-weight: 600; }
.sidebar-header p { font-size: 12px; opacity: 0.6; margin-top: 4px; }

.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.sidebar-nav .nav-section { margin-bottom: 8px; }
.sidebar-nav .nav-section-title {
  font-size: 11px; color: rgba(255,255,255,0.4); padding: 8px 20px 4px;
  text-transform: uppercase; letter-spacing: 1px;
}
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; color: rgba(255,255,255,0.7); font-size: 14px;
  transition: all 0.2s; border-left: 3px solid transparent;
}
.sidebar-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar-nav a.active { background: rgba(79,141,247,0.2); color: #fff; border-left-color: var(--primary); }
.sidebar-nav a .icon { font-size: 16px; width: 20px; text-align: center; }

.sidebar-footer {
  padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px; opacity: 0.6;
}

.main-area {
  flex: 1; margin-left: var(--sidebar-w);
  display: flex; flex-direction: column; min-height: 100vh;
  transition: margin-left 0.25s ease;
}

.topbar {
  height: var(--header-h); background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; position: sticky; top: 0; z-index: 50;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-left h1 { font-size: 18px; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 16px; }

/* 侧边栏可收缩（收起后仅显示图标） */
.app-layout.collapsed .sidebar { width: var(--sidebar-collapsed-w); }
.app-layout.collapsed .main-area { margin-left: var(--sidebar-collapsed-w); }
.app-layout.collapsed .sidebar-header { padding: 16px 0; }
.app-layout.collapsed .sidebar-header h2,
.app-layout.collapsed .sidebar-header p { display: none; }
.app-layout.collapsed .sidebar-header::before { content: "🏢"; font-size: 22px; line-height: 1; }
.app-layout.collapsed .sidebar-nav a { justify-content: center; padding: 12px 0; position: relative; }
.app-layout.collapsed .sidebar-nav a .label { display: none; }
.app-layout.collapsed .sidebar-nav .nav-section-title { display: none; }
.app-layout.collapsed .sidebar-nav a .notif-badge { position: absolute; top: 4px; right: 12px; margin-left: 0; }
.app-layout.collapsed .sidebar-footer { display: none; }

.content { flex: 1; padding: 24px; }

/* ===== 公共首页（未登录） ===== */
.public-page { min-height: 100vh; }
.public-header {
  height: 64px; background: var(--bg-white); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 32px;
}
.public-header .logo { font-size: 20px; font-weight: 700; color: var(--primary); }
.public-header .logo span { color: var(--text); }
.public-header .actions { display: flex; gap: 12px; }
.public-hero {
  background: linear-gradient(135deg, #4F8DF7 0%, #36CFC9 100%);
  color: #fff; padding: 60px 32px; text-align: center;
}
.public-hero h1 { font-size: 32px; margin-bottom: 12px; }
.public-hero p { font-size: 16px; opacity: 0.9; }
.public-content { max-width: 1100px; margin: 0 auto; padding: 32px; }

/* ===== 组件 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 18px; border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s;
  white-space: nowrap; font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { opacity: 0.9; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.9; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { opacity: 0.9; }
.btn-default { background: var(--bg-white); color: var(--text); border: 1px solid var(--border); }
.btn-default:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 4px 12px; font-size: 12px; }
.btn-lg { padding: 12px 32px; font-size: 16px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.card {
  background: var(--bg-white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px;
}
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; color: var(--text); }
.form-group label .req { color: var(--danger); }
.form-control {
  width: 100%; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; font-family: inherit;
  transition: border-color 0.2s; background: var(--bg-white); color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { cursor: pointer; }

.badge {
  display: inline-block; padding: 2px 10px; border-radius: 12px;
  font-size: 12px; font-weight: 500;
}
.badge-pending { background: #FFF7E6; color: #D48806; }
.badge-approved { background: #E6FFFB; color: #08979C; }
.badge-rejected { background: #FFF1F0; color: #CF1322; }
.badge-completed { background: #F0F5FF; color: #2F54EB; }
.badge-info { background: var(--primary-light); color: var(--primary-dark); }
.badge-success { background: #F0FFE6; color: #389E0D; }
.badge-expired { background: #FFF7E6; color: #D46B08; font-weight: 600; }

/* 过期会议行高亮 */
.row-expired { background: #FFFBE6 !important; }
.row-expired:hover { background: #FFF1B8 !important; }

/* 过期步骤条 */
.step.expired { background: #FFF7E6; color: #D46B08; box-shadow: inset 0 0 0 1px #FFD591; }
.step.expired .dot { background: #FA8C16; }
.stepper-expired-banner { background: linear-gradient(135deg, #FFF7E6, #FFE7BA); border: 1px solid #FFD591; border-radius: 10px; padding: 10px 16px; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: #AD6800; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { background: var(--bg); font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.table tbody tr:hover { background: var(--primary-light); }
.table .actions-cell { white-space: nowrap; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.modal {
  background: var(--bg-white); border-radius: var(--radius-lg);
  width: 90%; max-width: 520px; max-height: 85vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  padding: 16px 24px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { font-size: 18px; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-light); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* Toast */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 12px 20px; border-radius: var(--radius); box-shadow: var(--shadow-md);
  font-size: 14px; color: #fff; animation: slideIn 0.3s ease; min-width: 200px;
}
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--primary); }
.toast-warning { background: var(--warning); }
@keyframes slideIn { from { transform: translateX(120%); } to { transform: translateX(0); } }

/* 统计卡片 */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--bg-white); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px;
}
.stat-card .stat-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; font-size: 24px;
}
.stat-card .stat-value { font-size: 24px; font-weight: 700; }
.stat-card .stat-label { font-size: 13px; color: var(--text-secondary); }

/* 会议室卡片 */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.room-card {
  background: var(--bg-white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all 0.3s; cursor: pointer; border: 2px solid transparent;
}
.room-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary); }
.room-card img { width: 100%; height: 200px; object-fit: cover; }
.room-card-body { padding: 16px; }
.room-card-body h3 { font-size: 16px; margin-bottom: 8px; }
.room-card-body .room-meta { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.room-card-body .room-services { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.room-card-body .room-services span {
  background: var(--primary-light); color: var(--primary-dark);
  padding: 2px 8px; border-radius: 10px; font-size: 12px;
}

/* 时间线 */
.timeline { list-style: none; padding-left: 0; }
.timeline-item { position: relative; padding-left: 24px; padding-bottom: 20px; border-left: 2px solid var(--border); }
.timeline-item:last-child { border-left: none; }
.timeline-item::before {
  content: ''; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--primary);
}
.timeline-item .timeline-time { font-size: 12px; color: var(--text-light); }
.timeline-item .timeline-content { font-size: 14px; margin-top: 4px; }

/* 标签页 */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab {
  padding: 8px 20px; cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; font-size: 14px; color: var(--text-secondary); transition: all 0.2s;
}
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tab:hover { color: var(--primary); }

/* 空状态 */
.empty-state { text-align: center; padding: 40px; color: var(--text-light); }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; }

/* 日历风格 */
.day-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.day-column {
  background: var(--bg-white); border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow);
}
.day-column .day-header {
  font-weight: 600; font-size: 15px; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--primary);
  display: flex; justify-content: space-between; align-items: center;
}
.day-column .day-header.today { color: var(--primary); }
.day-column .meeting-item {
  padding: 8px 12px; margin-bottom: 8px; border-radius: var(--radius-sm);
  background: var(--primary-light); font-size: 13px; border-left: 3px solid var(--primary);
}
.day-column .meeting-item .meeting-time { font-weight: 600; color: var(--primary-dark); }
.day-column .meeting-item .meeting-room { color: var(--text-secondary); }
.day-column .day-more { font-size: 12px; color: var(--text-muted); padding: 4px 12px; }
.day-column .login-mask { text-align: center; padding: 20px 12px; color: var(--text-secondary); }
.day-column .login-mask-icon { font-size: 28px; margin-bottom: 6px; }
.day-column .login-mask p { font-size: 13px; margin-bottom: 10px; }

/* ===== 大屏页面（仅近三天会议，适合投屏/电视墙） ===== */
.bigscreen {
  min-height: 100vh; color: #fff;
  background: linear-gradient(135deg, #0F2027 0%, #203A43 50%, #2C5364 100%);
  display: flex; flex-direction: column;
}
.bigscreen-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 40px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.bs-title { font-size: 30px; font-weight: 700; letter-spacing: 1px; }
.bs-clock { font-size: 26px; font-variant-numeric: tabular-nums; opacity: 0.92; }
.bs-back { color: rgba(255,255,255,0.7); font-size: 16px; text-decoration: none; padding: 6px 14px; border: 1px solid rgba(255,255,255,0.25); border-radius: 6px; }
.bs-back:hover { color: #fff; border-color: #fff; }
.bigscreen-body { flex: 1; padding: 28px 40px; overflow: auto; }
.bigscreen .day-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.bigscreen .day-column { background: rgba(255,255,255,0.08); box-shadow: none; border: 1px solid rgba(255,255,255,0.12); }
.bigscreen .day-column .day-header {
  background: rgba(255,255,255,0.12); border-bottom: none; color: #fff; border-radius: 10px 10px 0 0;
  font-size: 24px; font-weight: 700; padding: 14px 18px; margin-bottom: 0;
}
.bigscreen .day-column .day-header.today { color: #FFF566; }
.bigscreen .day-column .day-header .badge-info { background: #FFF566; color: #614700; }
.bigscreen .day-column .meeting-item {
  background: rgba(255,255,255,0.14); border-left: 4px solid #69C0FF; color: #fff;
  font-size: 17px; padding: 14px 18px; margin: 12px;
}
.bigscreen .day-column .meeting-item .meeting-time { font-size: 22px; font-weight: 700; color: #FFF566; }
.bigscreen .day-column .meeting-item .meeting-room { font-size: 20px; color: #fff; margin: 6px 0; }
.bigscreen .day-column .meeting-item .text-muted { color: rgba(255,255,255,0.65) !important; font-size: 16px; }
.bigscreen .day-column .day-more { color: rgba(255,255,255,0.6); font-size: 16px; text-align: center; padding: 8px; }
.bigscreen .empty-state { color: rgba(255,255,255,0.5); padding: 48px; font-size: 18px; }
.bigscreen .empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.bigscreen .empty-state p { color: rgba(255,255,255,0.5); font-size: 18px; }
/* 合并大屏：会议 + 公车 同屏双栏 */
.bs-panels { display: flex; gap: 28px; align-items: flex-start; }
.bs-panel { flex: 1; min-width: 0; }
.bs-panel-title { font-size: 22px; font-weight: 700; color: #FFF566; margin: 4px 0 16px; letter-spacing: 0.5px; }
@media (max-width: 1100px) {
  .bigscreen .day-columns { grid-template-columns: 1fr; }
  .bs-panels { flex-direction: column; }
}

/* 评价星星 */
.star-rating { display: inline-flex; gap: 4px; }
.star-rating .star { font-size: 24px; cursor: pointer; color: #D9D9D9; transition: color 0.2s, transform 0.1s; }
.star-rating .star.active { color: #FAAD14; }
.star-rating .star:hover { color: #FFD666; transform: scale(1.12); }
.star-rating .star.preview { color: #FFD666; }
.star-rating.lg .star { font-size: 30px; line-height: 1; }

/* ===== 评价卡片（美化） ===== */
.eval-banner { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-light), #fff); margin-bottom: 16px; }
.eval-banner-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex: 0 0 auto; }
.eval-banner-title { font-size: 17px; font-weight: 600; color: var(--text); }
.eval-banner-sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

.eval-meeting { background: var(--bg); border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; }
.eval-meta { display: flex; font-size: 13px; line-height: 1.9; }
.eval-meta-k { flex: 0 0 56px; color: var(--text-light); }
.eval-meta-v { color: var(--text); flex: 1; }

.eval-rating-block { margin-bottom: 18px; }
.eval-rating-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.eval-rating-name { flex: 0 0 84px; font-size: 14px; font-weight: 500; color: var(--text); }
.eval-rating-val { font-size: 13px; color: var(--warning); font-weight: 600; min-width: 48px; }

.eval-comment label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.eval-comment .form-control { min-height: 88px; resize: vertical; }

.eval-display-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.eval-display-k { flex: 0 0 84px; font-size: 14px; color: var(--text-secondary); }
.eval-comment-box { margin-top: 8px; padding: 10px 12px; background: var(--bg); border-radius: 8px; }
.eval-comment-box p { margin-top: 4px; color: var(--text); }
.eval-time { margin-top: 8px; font-size: 12px; }

/* 评分概览卡片 */
.eval-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.eval-stat { align-items: flex-start; }
.eval-stat-body { display: flex; flex-direction: column; }
.eval-stat-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 2px; }
.eval-stat .stat-value { font-size: 32px; line-height: 1.1; }
.eval-sub { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.eval-diff { font-size: 12px; font-weight: 600; margin-top: 6px; }
.eval-diff.up { color: var(--success); }
.eval-diff.down { color: var(--danger); }
.eval-diff.flat { color: var(--text-light); }
@media (max-width: 640px) { .eval-grid { grid-template-columns: 1fr; } }

/* 通知红点 */
.notif-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; border-radius: 9px; background: var(--danger);
  color: #fff; font-size: 11px; padding: 0 5px; margin-left: 4px;
}

/* 响应式 */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-area { margin-left: 0; }
  .app-layout.collapsed .sidebar { width: var(--sidebar-w); }
  .app-layout.collapsed .main-area { margin-left: 0; }
  .day-columns { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .room-grid { grid-template-columns: 1fr; }
}

/* 工具类 */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-secondary); }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; } .gap-16 { gap: 16px; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ===== 预约单字段配置 / 仪表盘快捷预约 ===== */
.badge-warn { background: #FFF1F0; color: #CF1322; }
.form-opt-row { transition: background .15s; }
.form-opt-row:hover { background: #f3f6fb; }

.quick-book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quick-book-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 28px 20px; border-radius: 14px; text-decoration: none;
  border: 1px solid var(--border); background: var(--bg-soft);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.quick-book-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.10); text-decoration: none; }
.quick-book-card .qb-icon { font-size: 44px; line-height: 1; margin-bottom: 10px; }
.quick-book-card .qb-title { font-size: 18px; font-weight: 700; color: var(--text); }
.quick-book-card .qb-sub { font-size: 13px; color: var(--text-secondary); margin-top: 6px; }
.quick-book-card.meeting { background: linear-gradient(135deg, #E6F0FF, #F0F5FF); border-color: #BFD4FF; }
.quick-book-card.car { background: linear-gradient(135deg, #E6FFFB, #F0FFE6); border-color: #BFF0E0; }
.quick-book-card.meeting:hover { border-color: var(--primary); }
.quick-book-card.car:hover { border-color: #13C2C2; }

@media (max-width: 560px) {
  .quick-book-grid { grid-template-columns: 1fr; }
}

/* ===== 会议进度步骤条 ===== */
.stepper { display: flex; align-items: center; flex-wrap: wrap; gap: 0; padding: 6px 2px; }
.step { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 20px; font-size: 14px; background: var(--bg-soft); color: var(--text-secondary); white-space: nowrap; }
.step .dot { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #cfd6e4; color: #fff; font-size: 12px; }
.step .step-label { font-weight: 600; }
.step small { font-size: 11px; color: var(--text-light); margin-left: 2px; }
.step.done { background: #E6F7EC; color: #1A7F37; }
.step.done .dot { background: var(--success); }
.step.current { background: #E6F0FF; color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.step.current .dot { background: var(--primary); }
.step.todo { opacity: .65; }
.step.rejected { background: #FFF1F0; color: #CF1322; }
.step.rejected .dot { background: var(--danger); }
.step-line { flex: 0 0 28px; height: 2px; background: var(--border); }
@media (max-width: 560px) { .stepper { gap: 4px; } .step { padding: 5px 8px; font-size: 12px; } .step-line { flex-basis: 14px; } }

/* ===== 会议室设备/布局 ===== */
.room-tags { font-size: 12px; color: var(--text-secondary); margin: 4px 0; }
.room-tags b { color: var(--text); font-weight: 600; }
.layout-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.layout-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.layout-row span { color: var(--text); }
.layout-row .form-control { width: 110px; margin: 0; }
@media (max-width: 560px) { .layout-editor { grid-template-columns: 1fr; } }

/* ===== 所需服务 智能多选 ===== */
.svc-chip {
  padding: 8px 16px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--bg-soft); color: var(--text); cursor: pointer; font-size: 14px;
  transition: all .15s;
}
.svc-chip:hover { border-color: var(--primary); }
.svc-chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.svc-chip.disabled { opacity: .45; cursor: not-allowed; background: var(--bg-soft); color: var(--text-secondary); border-color: var(--border); }
.svc-chip.disabled:hover { border-color: var(--border); }
.svc-sub { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.svc-sub label { font-size: 13px; color: var(--text-secondary); min-width: 150px; }

/* ===== 角色门户（端）美化 ===== */
.portal-hero {
  display: flex; align-items: center; gap: 20px;
  border-radius: var(--radius-lg); padding: 28px 28px;
  color: #fff; box-shadow: var(--shadow-md); margin-bottom: 24px;
  position: relative; overflow: hidden;
}
.portal-hero::after {
  content: ""; position: absolute; right: -50px; top: -50px;
  width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,0.12);
}
.portal-hero::before {
  content: ""; position: absolute; right: 90px; bottom: -70px;
  width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,0.08);
}
.portal-hero-icon {
  width: 72px; height: 72px; border-radius: 20px; flex: 0 0 auto;
  background: rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center;
  font-size: 38px; backdrop-filter: blur(4px); position: relative; z-index: 1;
}
.portal-hero-body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.portal-hero-pill {
  display: inline-block; font-size: 12px; padding: 3px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.22); margin-bottom: 8px; letter-spacing: .5px;
}
.portal-hero-body h1 { font-size: 24px; font-weight: 700; line-height: 1.35; }
.portal-hero-body p { font-size: 14px; opacity: 0.92; margin-top: 4px; }
.portal-hero-role {
  font-size: 13px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.2); white-space: nowrap; position: relative; z-index: 1;
}

.portal-actions {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.portal-action {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; text-decoration: none;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.portal-action::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ac, var(--primary));
}
.portal-action:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; border-color: var(--ac, var(--primary)); }
.portal-action .pa-icon { font-size: 26px; }
.portal-action .pa-title { font-size: 15px; font-weight: 700; color: var(--text); margin-top: 4px; }
.portal-action .pa-sub { font-size: 12px; color: var(--text-secondary); }

/* 卡片与统计微调（更柔和圆角与悬浮） */
.card { border-radius: var(--radius); box-shadow: var(--shadow); transition: box-shadow .25s; }
.card:hover { box-shadow: var(--shadow-md); }
.stat-card { transition: transform .25s, box-shadow .25s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ===== 移动端底部导航（APK 内使用） ===== */
.bottom-nav { display: none; }
@media (max-width: 820px) {
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: 82%; max-width: 330px; z-index: 300; transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto; box-shadow: 2px 0 16px rgba(0,0,0,.18); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 250; display: none; }
  .sidebar-overlay.show { display: block; }
  .main-area { margin-left: 0; }
  .content { padding: 16px; padding-bottom: 84px; }
  .portal-hero { padding: 20px; gap: 14px; }
  .portal-hero-icon { width: 56px; height: 56px; font-size: 30px; border-radius: 16px; }
  .portal-hero-body h1 { font-size: 20px; }
  .portal-hero-role { display: none; }
  .portal-actions { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    background: #fff; border-top: 1px solid var(--border);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
    overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .bottom-nav a {
    flex: 0 0 auto; min-width: 60px; padding: 8px 10px; text-align: center;
    color: var(--text-secondary); text-decoration: none; font-size: 11px;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    border-top: 2px solid transparent;
  }
  .bottom-nav a .bn-icon { font-size: 20px; line-height: 1; }
  .bottom-nav a.active { color: var(--primary); border-top-color: var(--primary); }
  .bottom-nav a.active .bn-icon { filter: drop-shadow(0 0 2px rgba(79,141,247,.4)); }
}

/* ===== 移动端放大：更大字号与触摸区域（UI 做大、整理） ===== */
@media (max-width: 820px) {
  body { font-size: 15px; }
  .content { padding: 18px 16px 92px; }
  .card { padding: 18px; border-radius: 12px; }
  .card-title { font-size: 17px; margin-bottom: 14px; }
  .btn { min-height: 44px; padding: 12px 18px; font-size: 15px; }
  .btn-sm { min-height: 32px; padding: 6px 12px; font-size: 13px; }
  .form-control { min-height: 46px; font-size: 16px; padding: 10px 14px; }
  textarea.form-control { min-height: 96px; }
  .form-group label { font-size: 15px; margin-bottom: 8px; }
  .table th, .table td { padding: 12px 14px; font-size: 14px; }
  .tabs { overflow-x: auto; }
  .tab { padding: 12px 18px; font-size: 15px; }
  .stat-card { padding: 16px; }
  .stat-card .stat-value { font-size: 26px; }
  .modal { width: 94%; max-height: 90vh; }
  .modal-body { padding: 20px; overflow-y: auto; }
  .modal-header, .modal-footer { padding: 14px 20px; }
  .portal-hero-body h1 { font-size: 20px; }
  .portal-action { padding: 18px; }
  .portal-action .pa-title { font-size: 16px; }
  .quick-book-card { padding: 22px 16px; }
  .quick-book-card .qb-title { font-size: 17px; }
  .eval-banner { padding: 14px; }
  .eval-banner-title { font-size: 16px; }
  .day-column .meeting-item { font-size: 14px; padding: 10px 12px; }
}

/* 底部导航触摸区域放大（图标更大、点击区更高） */
@media (max-width: 820px) {
  .bottom-nav a { min-width: 66px; padding: 11px 8px; }
  .bottom-nav a .bn-icon { font-size: 24px; }
  .bottom-nav a .bn-label { font-size: 12px; margin-top: 3px; }
  .topbar { padding: 0 14px; }
  .topbar-left h1 { font-size: 16px; }
  .sidebar-nav a { padding: 14px 20px; font-size: 15px; min-height: 46px; }
  .topbar-username { display: none; }
  .switch-mobile-btn { font-size: 13px; padding: 6px 10px; }
  .topbar-left h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 44vw; }
  .topbar-left .btn[title="返回仪表盘"] { display: none; }
}

/* ===== 移动端整体适配增强（0.2.10：表格真正可横向滚动、顶栏导航/整体App化/表单详情） ===== */
@media (max-width: 820px) {
  /* 防止整页横向滚动（仅内部表格可滚动） */
  html, body { overflow-x: hidden; }

  /* 顶栏：标题过长省略、隐藏冗余用户名与重复的首页按钮，避免拥挤 */
  .topbar { padding: 0 12px; gap: 8px; }
  .topbar-left { min-width: 0; flex: 1; overflow: hidden; }
  .topbar-left h1 { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .topbar-left a[title="返回仪表盘"] { display: none; }
  .topbar-right { gap: 12px; }
  .topbar-right .text-muted { display: none; }

  /* 内容区为底部导航留白，并避让 iPhone 安全区 */
  .content { padding: 16px 14px calc(84px + env(safe-area-inset-bottom, 0)); }

  /* 表格横向滚动 + 紧凑，避免手机上溢出错乱 */
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; }
  .table-responsive .table { display: table; min-width: 100%; }
  .table th, .table td { white-space: nowrap; padding: 10px 12px; font-size: 13px; }
  .table .actions-cell { white-space: nowrap; }
  /* 滚动提示：在可滚动区域右侧显示轻微阴影 */
  .table-responsive { position: relative; }
  .table-responsive::after {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 24px;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(0,0,0,0.04));
    pointer-events: none; opacity: 0; transition: opacity .2s;
  }
  .table-responsive.can-scroll::after { opacity: 1; }

  /* 卡片更紧凑、圆角柔和，更像原生 App */
  .card { padding: 16px; border-radius: 12px; margin-bottom: 14px; }
  .card-title { font-size: 16px; margin-bottom: 12px; }

  /* 表单字段与按钮在手机上更大、更易点按 */
  .form-control { min-height: 46px; font-size: 16px; padding: 10px 14px; }
  .form-group label { font-size: 15px; margin-bottom: 8px; }
  .btn { min-height: 46px; padding: 12px 18px; font-size: 15px; }
  .btn-sm { min-height: 34px; }
  textarea.form-control { min-height: 96px; }

  /* 底部导航：安全区避让 + 更原生观感 */
  .bottom-nav { padding-bottom: env(safe-area-inset-bottom, 0); }
  .bottom-nav a { min-width: 56px; padding: 10px 6px; }
  .bottom-nav a .bn-icon { font-size: 22px; }
  .bottom-nav a .bn-label { font-size: 11px; margin-top: 3px; }
  .bottom-nav a.active { background: var(--primary-light); border-radius: 12px 12px 0 0; }

  /* 公开页 / 登录注册在手机上更紧凑 */
  .public-header { padding: 0 16px; }
  .public-hero { padding: 40px 20px; }
  .public-hero h1 { font-size: 24px; }
  .public-content { padding: 20px 16px; }

  /* 弹窗在手机上几乎满屏、更易操作 */
  .modal { width: 94%; max-height: 88vh; }
  .modal-body { padding: 20px; }
  .modal-header, .modal-footer { padding: 14px 18px; }
}

/* 超窄屏（≤380px）进一步收敛，避免顶栏换行 */
@media (max-width: 380px) {
  .topbar-right { gap: 8px; }
  .topbar-left h1 { font-size: 15px; }
  .stats-grid { grid-template-columns: 1fr; }
  .portal-actions { grid-template-columns: 1fr; }
  .quick-book-grid { grid-template-columns: 1fr; }
}

/* ===== 下载移动端 App 页面 ===== */
.dl-wrap { max-width: 720px; margin: 0 auto; }
.dl-qr {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 16px;
}
.dl-qr-img {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.dl-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  text-align: center;
  padding: 28px 20px 24px;
}
.dl-hero-main { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 18px; }
.dl-logo { width: 64px; height: 64px; border-radius: 16px; background: #fff; padding: 6px; box-shadow: var(--shadow-md); }
.dl-hero-txt { text-align: left; }
.dl-name { font-size: 22px; font-weight: 700; }
.dl-sub { font-size: 13px; opacity: .9; margin-top: 4px; }
.dl-btn {
  display: inline-block;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform .12s ease, box-shadow .12s ease;
}
.dl-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.dl-btn:active { transform: translateY(0); }
.dl-tip { font-size: 12px; opacity: .9; margin-top: 14px; line-height: 1.6; }
.dl-feat .card-title { margin-bottom: 10px; }
.dl-feat-list { list-style: none; padding: 0; margin: 0; }
.dl-feat-list li {
  font-size: 14px;
  color: var(--text);
  padding: 9px 0 9px 4px;
  border-bottom: 1px solid var(--border);
}
.dl-feat-list li:last-child { border-bottom: none; }
.dl-log { margin-top: 4px; }
.dl-log .card-title { font-size: 16px; }
@media (max-width: 480px) {
  .dl-name { font-size: 20px; }
  .dl-logo { width: 56px; height: 56px; }
  .dl-btn { width: 100%; box-sizing: border-box; }
}

/* 预约状态总览（一般会议 / 一般公车 按状态计数） */
.ov-section { padding: 14px 0; border-bottom: 1px solid var(--border); }
.ov-section:first-child { padding-top: 2px; }
.ov-section:last-child { border-bottom: none; padding-bottom: 2px; }
.ov-label { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.ov-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ov-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.ov-chip .ov-badge { display: inline-flex; align-items: center; }
.ov-count { font-size: 18px; font-weight: 700; color: var(--text); line-height: 1; }
.ov-total { margin-left: auto; font-size: 13px; color: var(--text-muted); padding-left: 12px; }
.ov-total b { color: var(--text); font-size: 15px; }

/* ============================================================
 * 交互动画层（0.7.15）：页面进入/返回转场 + 数字滚动
 * 尊重系统「减少动态效果」偏好。
 * ============================================================ */
@keyframes pageInFwd {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pageInBack {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
#pageContent.page-enter      { animation: pageInFwd  .5s ease both; }
#pageContent.page-enter-back { animation: pageInBack .5s ease both; }

@keyframes numPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.16); }
  100% { transform: scale(1); }
}
.num-pop { animation: numPop .6s ease both; display: inline-block; transform-origin: center; }

@media (prefers-reduced-motion: reduce) {
  #pageContent.page-enter, #pageContent.page-enter-back, .num-pop { animation: none !important; }
}
@media (max-width: 480px) {
  .ov-total { margin-left: 0; padding-left: 0; width: 100%; }
}

/* ============================================================
   设计系统增强层 · 现代渐变 + 质感（v0.7.23）
   玻璃拟态 · 分层渐变 · 彩色图标徽标 · 柔和阴影 · 入场动画
   ============================================================ */
:root {
  --grad-brand: linear-gradient(135deg, #4f7bf7 0%, #2563eb 55%, #1d4ed8 100%);
  --grad-accent: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  --grad-teal: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
  --grad-green: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  --grad-orange: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  --grad-rose: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%);
  --glass: rgba(255,255,255,.72);
  --shadow-sm: 0 2px 6px rgba(30,41,59,.06), 0 1px 2px rgba(30,41,59,.04);
  --shadow-md: 0 8px 22px rgba(30,41,59,.09), 0 2px 6px rgba(30,41,59,.05);
  --shadow-lg: 0 18px 44px rgba(30,41,59,.14), 0 4px 12px rgba(30,41,59,.07);
  --hi: rgba(255,255,255,.7);
}

/* 背景极淡双色柔光 */
body {
  background:
    radial-gradient(900px 520px at 100% -8%, rgba(79,141,247,.06), transparent 60%),
    radial-gradient(700px 440px at -8% 0%, rgba(139,92,246,.05), transparent 55%),
    var(--bg);
}

/* 卡片：更柔的分层阴影 + 顶部高光描边 */
.card {
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 var(--hi), var(--shadow-md);
  border: 1px solid rgba(226,232,240,.7);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: rgba(79,141,247,.4); }

/* 玻璃卡片 */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,.5);
}

/* 彩色图标徽标 */
.ic-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 13px; flex: 0 0 auto;
  font-size: 22px; color: #fff; box-shadow: var(--shadow-sm);
}
.ic-badge.sm { width: 36px; height: 36px; border-radius: 11px; font-size: 18px; }
.ic-badge.lg { width: 54px; height: 54px; border-radius: 15px; font-size: 26px; }
.ic-badge.brand { background: var(--grad-brand); }
.ic-badge.accent { background: var(--grad-accent); }
.ic-badge.teal { background: var(--grad-teal); }
.ic-badge.green { background: var(--grad-green); }
.ic-badge.orange { background: var(--grad-orange); }
.ic-badge.rose { background: var(--grad-rose); }
.ic-badge.blue { background: linear-gradient(135deg, #60a5fa, #2563eb); }

/* 主按钮渐变 + 长投影 */
.btn-primary { background: var(--grad-brand); border-color: transparent; box-shadow: 0 6px 18px rgba(37,99,235,.3); }
.btn-primary:hover { background: linear-gradient(135deg, #1d4ed8, #1e3a8a); box-shadow: 0 8px 22px rgba(37,99,235,.36); transform: translateY(-1px); }

/* Portal hero 加网格光斑纹理 */
.portal-hero {
  background: linear-gradient(125deg, #2563eb 0%, #1e47c9 55%, #1d4ed8 100%);
  box-shadow: var(--shadow-lg);
}
.portal-hero::before {
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.18), rgba(255,255,255,0) 70%);
  width: 200px; height: 200px; right: 60px; bottom: -60px;
}

/* 统计卡图标容器上色（默认灰底 → 渐变品牌） */
.stat-card .stat-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--primary-light); color: var(--primary-dark); box-shadow: var(--shadow-sm); }

/* 状态徽标玻璃渐变 */
.badge { font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.badge-pending { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; }
.badge-approved { background: var(--grad-teal); color: #fff; }
.badge-rejected { background: var(--grad-rose); color: #fff; }
.badge-completed { background: var(--grad-brand); color: #fff; }
.badge-success { background: var(--grad-green); color: #fff; }
.badge-expired { background: linear-gradient(135deg, #fb923c, #f97316); color: #fff; }
.badge-info { background: var(--grad-brand); color: #fff; }

/* 快捷预约卡立体化 */
.quick-book-card { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.quick-book-card .qb-icon { filter: drop-shadow(0 4px 8px rgba(30,41,59,.12)); }

/* 入场动画 */
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.anim-rise { animation: riseIn .5s cubic-bezier(.22,1,.36,1) both; }
.anim-rise.d1 { animation-delay: .05s; }
.anim-rise.d2 { animation-delay: .11s; }
.anim-rise.d3 { animation-delay: .17s; }
.anim-rise.d4 { animation-delay: .23s; }
.anim-rise.d5 { animation-delay: .29s; }
.anim-rise.d6 { animation-delay: .35s; }
@keyframes popIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
.anim-pop { animation: popIn .42s cubic-bezier(.34,1.56,.64,1) both; }
@media (prefers-reduced-motion: reduce) {
  .anim-rise, .anim-pop { animation: none !important; }
}
