/* ========== 商务风全局样式 ========== */
:root {
  --bg-primary: #0a1628;
  --bg-secondary: #0f1f3a;
  --bg-card: #ffffff;
  --bg-card-dark: #142340;
  --bg-elevated: #1a2c4e;
  --border: #e5e9f0;
  --border-dark: #243a66;
  --text-primary: #1a2540;
  --text-secondary: #5a6a85;
  --text-muted: #8995ad;
  --text-light: #c8d3e0;
  --gold: #c9a55c;
  --gold-light: #e0c084;
  --gold-dark: #a08540;
  --accent: #2563eb;
  --success: #16a34a;
  --warning: #ea8c0d;
  --danger: #dc2626;
  --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.06);
  --shadow: 0 4px 16px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 12px 40px rgba(10, 22, 40, 0.15);
  --radius: 8px;
  --radius-lg: 12px;
}

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

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: #f4f6fa;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.2s ease;
}

input, select, textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 165, 92, 0.15);
}

textarea { resize: vertical; min-height: 80px; }

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: #fff;
  letter-spacing: 0.3px;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff;
}
.btn-primary:hover { background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%); }

.btn-accent {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: #fff;
}

.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--text-muted); }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ========== 登录页 ========== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at top right, rgba(201, 165, 92, 0.08), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(37, 99, 235, 0.06), transparent 50%),
    linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 165, 92, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 165, 92, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.login-container {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.login-brand {
  text-align: center;
  margin-bottom: 36px;
}
.login-brand .logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(201, 165, 92, 0.35);
}
.login-brand h1 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.login-brand .subtitle {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.login-form .form-group {
  margin-bottom: 18px;
}
.login-form label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}
.login-form input {
  padding: 12px 16px;
  font-size: 15px;
}

.login-tip {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.alert {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
}
.alert-error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; }
.alert.hidden { display: none; }

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

.sidebar {
  width: 240px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  padding: 0;
  flex-shrink: 0;
}

.sidebar-brand {
  padding: 24px 22px;
  border-bottom: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-brand .logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(201, 165, 92, 0.3);
}
.sidebar-brand .name { font-size: 15px; font-weight: 600; color: #fff; letter-spacing: 1px; }
.sidebar-brand .name small { display: block; font-size: 10px; color: var(--gold-light); letter-spacing: 2px; margin-top: 2px; font-weight: 400; }

.sidebar-nav {
  flex: 1;
  padding: 18px 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--radius);
  color: var(--text-light);
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 4px;
  transition: all 0.2s;
  user-select: none;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav-item.active {
  background: linear-gradient(90deg, rgba(201, 165, 92, 0.18), rgba(201, 165, 92, 0.04));
  color: var(--gold-light);
  border-left: 3px solid var(--gold);
  padding-left: 13px;
}
.nav-item .icon { width: 18px; text-align: center; }

.sidebar-footer {
  padding: 16px 18px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-info .name { font-size: 13px; color: #fff; font-weight: 500; }
.user-info .role { font-size: 11px; color: var(--text-muted); }
.btn-logout {
  background: transparent;
  color: var(--text-muted);
  font-size: 16px;
  padding: 6px 8px;
  border-radius: 6px;
}
.btn-logout:hover { background: rgba(255,255,255,0.08); color: #fff; }

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.topbar {
  height: 64px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  box-shadow: var(--shadow-sm);
}
.topbar h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.topbar h2 .accent { color: var(--gold); margin-right: 8px; }

.topbar-actions { display: flex; align-items: center; gap: 16px; }

.week-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.week-selector input {
  width: 130px;
  padding: 7px 10px;
  font-size: 13px;
}

.content {
  flex: 1;
  padding: 28px;
  overflow-y: auto;
  background: #f4f6fa;
}

/* ========== 卡片 ========== */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.card-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.card-header h3 .badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  background: #eef2ff;
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  margin-left: 8px;
  vertical-align: middle;
}

/* ========== 统计概览 ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.stat-card {
  background: #fff;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--gold);
}
.stat-card.accent::before { background: var(--accent); }
.stat-card.success::before { background: var(--success); }
.stat-card.warning::before { background: var(--warning); }
.stat-card .label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.stat-card .value {
  font-size: 30px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.stat-card .value small {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
}

/* ========== 表单 ========== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.checkbox-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 50px;
}
.checkbox-list label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  margin: 0;
}
.checkbox-list label:hover { border-color: var(--gold); }
.checkbox-list input[type="checkbox"] { width: auto; margin: 0; accent-color: var(--gold); }
.checkbox-list label.checked {
  background: rgba(201, 165, 92, 0.1);
  border-color: var(--gold);
  color: var(--gold-dark);
}

/* ========== 任务卡片 ========== */
.task-list { display: flex; flex-direction: column; gap: 14px; }

.task-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: all 0.2s;
  position: relative;
}
.task-card:hover { box-shadow: var(--shadow); border-color: #d4dce8; }
.task-card.completed { background: #fafbfc; }
.task-card.completed .task-title { text-decoration: line-through; color: var(--text-muted); }

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 12px;
}
.task-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}
.task-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.priority-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.priority-high { background: #fee2e2; color: var(--danger); }
.priority-normal { background: #dbeafe; color: var(--accent); }
.priority-low { background: #f1f5f9; color: var(--text-secondary); }

.task-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.task-assignees {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.assignee-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  background: #f1f5f9;
  font-size: 12px;
  color: var(--text-secondary);
}
.assignee-chip.done {
  background: #dcfce7;
  color: var(--success);
}
.assignee-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}
.assignee-chip.done .dot { background: var(--success); }

.task-actions {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  margin-top: 4px;
}

.task-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 3px;
  transition: width 0.3s;
}

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty .icon { font-size: 40px; margin-bottom: 10px; opacity: 0.4; }

/* ========== 表格 ========== */
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}
.table tr:hover td { background: #fafbfc; }

/* ========== Tab ========== */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  background: #fff;
  padding: 0 8px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.tab {
  padding: 14px 22px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  font-weight: 500;
}
.tab:hover { color: var(--text-primary); }
.tab.active {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ========== 模态框 ========== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 22, 40, 0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}
.modal-overlay.hidden { display: none; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 520px;
  width: calc(100% - 40px);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--text-primary);
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* Toast */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--text-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  z-index: 2000;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* Employee progress card */
.emp-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.emp-progress .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-elevated));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}
.emp-progress .info { flex: 1; }
.emp-progress .info .name { font-size: 14px; font-weight: 600; }
.emp-progress .info .meta { font-size: 12px; color: var(--text-muted); }
.emp-progress .bar { width: 220px; }
.emp-progress .pct { font-size: 16px; font-weight: 600; color: var(--gold-dark); min-width: 50px; text-align: right; }

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
  body { font-size: 13px; }

  /* 整体布局：竖向 */
  .app { flex-direction: column; min-height: 100vh; }

  /* 侧边栏 → 顶部 brand bar + 底部导航 */
  .sidebar {
    width: 100%;
    flex-direction: row;
    height: 56px;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  .sidebar-brand {
    flex: 1;
    padding: 0 14px;
    border-bottom: none;
    border-right: 1px solid var(--border-dark);
    gap: 10px;
  }
  .sidebar-brand .logo { width: 32px; height: 32px; font-size: 15px; border-radius: 8px; }
  .sidebar-brand .name { font-size: 14px; }
  .sidebar-brand .name small { display: none; }

  .sidebar-nav { display: none; }

  .sidebar-footer {
    padding: 0 12px;
    border-top: none;
    gap: 8px;
  }
  .user-avatar { width: 30px; height: 30px; font-size: 12px; }
  .user-info .name { font-size: 12px; }
  .user-info .role { display: none; }

  /* 底部 Tab Bar */
  .mobile-tabbar {
    display: flex !important;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: #fff;
    border-top: 1px solid var(--border);
    z-index: 100;
    box-shadow: 0 -2px 12px rgba(10, 22, 40, 0.08);
  }
  .mobile-tabbar .nav-item {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 6px 0 !important;
    margin: 0;
    border-radius: 0;
    border-left: none !important;
    color: var(--text-muted);
    font-size: 11px;
    background: transparent;
  }
  .mobile-tabbar .nav-item .icon { font-size: 18px; }
  .mobile-tabbar .nav-item.active {
    background: transparent;
    color: var(--gold-dark);
    border-bottom: none;
    padding-left: 0 !important;
  }
  .mobile-tabbar .nav-item.active .icon { transform: scale(1.1); }

  /* Topbar 适配 */
  .topbar {
    flex-direction: column;
    height: auto;
    padding: 12px 16px;
    gap: 10px;
    align-items: stretch;
  }
  .topbar h2 { font-size: 16px; }
  .topbar-actions { width: 100%; }
  .week-selector { width: 100%; justify-content: space-between; }
  .week-selector input { flex: 1; max-width: 180px; }

  /* 内容区 */
  .content { padding: 14px; padding-bottom: 80px; /* 留出底栏空间 */ }

  /* 卡片紧凑 */
  .card { padding: 16px; margin-bottom: 14px; border-radius: 10px; }
  .card-header { margin-bottom: 14px; padding-bottom: 10px; }
  .card-header h3 { font-size: 15px; }

  /* 概览卡 2 列 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
  }
  .stat-card { padding: 14px 14px; border-radius: 10px; }
  .stat-card .value { font-size: 22px; }
  .stat-card .label { font-size: 11px; letter-spacing: 0.5px; }

  /* 表单 */
  .form-row { grid-template-columns: 1fr; gap: 0; }
  input, select, textarea { padding: 11px 13px; font-size: 15px; /* 防 iOS 自动缩放 */ }
  .btn { padding: 11px 18px; font-size: 14px; }
  .btn-block, .login-form button { width: 100%; }
  form .btn-primary { width: 100%; }

  /* 任务卡 */
  .task-card { padding: 14px 14px; }
  .task-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .task-meta { width: 100%; }
  .task-actions { flex-wrap: wrap; }
  .task-actions .btn { flex: 1; min-width: 120px; }

  /* 员工表格 → 卡片化 */
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 12px 14px;
  }
  .table tr:hover td { background: transparent; }
  .table td {
    border-bottom: none;
    padding: 4px 0;
    font-size: 13px;
  }
  .table td:nth-child(1) { font-size: 15px; padding-bottom: 6px; }
  .table td:nth-child(2)::before { content: "用户名："; color: var(--text-muted); }
  .table td:nth-child(3)::before { content: "添加时间："; color: var(--text-muted); }
  .table td:last-child {
    text-align: left !important;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    display: flex;
    gap: 8px;
  }
  .table td:last-child .btn { flex: 1; }

  /* 完成总览 */
  .emp-progress { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .emp-progress .info { flex-basis: calc(100% - 60px); }
  .emp-progress .bar { width: 100%; order: 3; flex: 1 0 calc(100% - 60px); }
  .emp-progress .pct { order: 2; }

  /* 模态框 */
  .modal {
    padding: 20px 18px;
    border-radius: 14px 14px 0 0;
    max-width: 100%;
    width: 100%;
    max-height: 95vh;
    margin: 0;
    align-self: flex-end;
  }
  .modal-overlay { align-items: flex-end; }
  .modal-actions { flex-direction: column-reverse; gap: 8px; }
  .modal-actions .btn { width: 100%; }

  /* Toast */
  .toast { left: 16px; right: 16px; top: 12px; text-align: center; }

  /* 登录页 */
  .login-container { padding: 32px 24px; }
  .login-brand h1 { font-size: 19px; }
}

/* 桌面端隐藏移动 tab bar */
.mobile-tabbar { display: none; }
