/* ========================
   海内云健运营管理系统 - 样式
   明亮现代风 / 年轻 SaaS 主题
   ======================== */

:root {
  /* 明亮现代风 / 年轻 SaaS 主题 */
  --bg-base: #f4f6fb;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f1f5f9;
  --bg-elevated: #eef2f7;
  --bg-card: #ffffff;
  --bg-hover: #f1f5f9;
  --border-color: #e6eaf1;
  --border-light: rgba(15, 23, 42, 0.06);
  --border: #e6eaf1;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --accent-primary: #14b8a6;
  --accent: #14b8a6;
  --accent-gradient: linear-gradient(135deg, #2dd4bf 0%, #6366f1 100%);
  --accent-primary-dim: rgba(20, 184, 166, 0.12);
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-amber: #f59e0b;
  --accent-green: #10b981;
  --accent-red: #f43f5e;
  --accent-pink: #ec4899;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04), 0 1px 3px rgba(15,23,42,0.06);
  --shadow-md: 0 4px 12px rgba(15,23,42,0.06), 0 2px 4px rgba(15,23,42,0.04);
  --shadow-lg: 0 12px 32px rgba(15,23,42,0.10), 0 4px 8px rgba(15,23,42,0.05);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
}

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

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 12px; }

/* ======================== 登录页 ======================== */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(ellipse at 50% 30%, rgba(45, 212, 191, 0.08) 0%, transparent 60%),
              var(--bg-base);
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 16px;
}

.login-logo h1 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.login-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-base);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 24px;
}

.login-tab {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}

.login-tab.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
  padding: 12px;
  background: var(--bg-base);
  border-radius: var(--radius-sm);
}

/* ======================== 表单 ======================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.form-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-input {
  padding: 9px 12px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font);
  transition: border-color 0.2s;
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-dim);
}

.form-input::placeholder { color: var(--text-muted); }

.form-input-sm {
  padding: 6px 10px;
  font-size: 13px;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: var(--font);
}

.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-row .form-group { min-width: 120px; }
.flex-1 { flex: 1; min-width: 120px; }
.flex-2 { flex: 2; min-width: 180px; }

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

/* ======================== 按钮 ======================== */
.btn {
  padding: 9px 16px;
  border: 1px solid var(--border-color);
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn:hover { background: var(--bg-surface-hover); border-color: var(--border-color); transform: translateY(-1px); }

.btn-primary {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}
.btn-primary:hover { filter: brightness(1.06); border-color: transparent; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(99, 102, 241, 0.32); }

.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--bg-surface-hover); }

.btn-block { width: 100%; justify-content: center; }

.btn-sm { padding: 5px 10px; font-size: 12px; }

.btn-icon { padding: 5px 8px; font-size: 14px; line-height: 1; }

.btn-danger-text { color: var(--accent-red); border-color: transparent; }
.btn-danger-text:hover { background: rgba(239, 68, 68, 0.1); }

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

.sidebar {
  width: 240px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-logo-title { font-size: 15px; font-weight: 600; }
.sidebar-logo-sub { font-size: 11px; color: var(--text-muted); }

.sidebar-nav {
  flex: 1;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: all 0.15s;
}

.nav-item:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
.nav-item.active { background: var(--accent-primary-dim); color: var(--accent-primary); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent-primary); }
.nav-icon { font-size: 16px; width: 20px; text-align: center; }

.main-content {
  flex: 1;
  margin-left: 240px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-title { font-size: 18px; font-weight: 600; }

.topbar-right { display: flex; align-items: center; gap: 12px; }

.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.user-role {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-base);
  padding: 2px 6px;
  border-radius: 4px;
}

.user-name { font-weight: 500; }

.content-area {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ======================== 统计卡片 ======================== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.stat-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.stat-value { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ======================== 面板 ======================== */
.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
}

.panel-header h3 { font-size: 15px; font-weight: 600; }
.panel-actions { display: flex; gap: 8px; }
.panel-header-actions { display: flex; gap: 8px; align-items: center; }
.panel-body { padding: 20px; }

/* ======================== 图表 ======================== */
.chart-container { position: relative; padding: 16px; }
.chart-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .chart-grid-2 { grid-template-columns: 1fr; }
}

/* ======================== 表格 ======================== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  padding: 10px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
}

.data-table tbody tr:hover { background: var(--bg-surface-hover); }
.data-table .total-row { font-weight: 600; background: var(--bg-base); }

/* ======================== 徽章 ======================== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.badge-success { background: rgba(34, 197, 94, 0.15); color: var(--accent-green); }
.badge-info { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.badge-muted { background: rgba(110, 118, 129, 0.15); color: var(--text-muted); }

/* 进度徽章 */
.progress-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 6px;
}
.progress-high { background: rgba(34, 197, 94, 0.15); color: var(--accent-green); }
.progress-mid { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.progress-low { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }

/* 变化标签 */
.change-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
}
.change-up { color: var(--accent-green); background: rgba(34, 197, 94, 0.1); }
.change-down { color: var(--accent-red); background: rgba(239, 68, 68, 0.1); }
.change-neutral { color: var(--text-muted); }

/* ======================== 单位卡片 ======================== */
.unit-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  padding: 20px;
}

.unit-card {
  background: var(--bg-base);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.unit-card:hover { border-color: var(--accent-primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.unit-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.unit-card-name { font-size: 15px; font-weight: 600; }
.unit-card-type { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }

.unit-card-stats {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 10px;
}

.mini-stat { display: flex; flex-direction: column; gap: 2px; }
.mini-stat-label { font-size: 11px; color: var(--text-muted); }
.mini-stat-value { font-size: 16px; font-weight: 600; }

.unit-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.link-text { color: var(--accent-primary); font-weight: 500; }

/* ======================== 进度条 ======================== */
.stage-item { margin-bottom: 16px; }
.stage-item:last-child { margin-bottom: 0; }

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

.stage-name { font-size: 13px; font-weight: 500; }
.stage-right { display: flex; align-items: center; gap: 4px; }

.progress-bar {
  height: 8px;
  background: var(--bg-base);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), #14b8a6);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.stage-note { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ======================== 数据录入 ======================== */
.entry-builder { display: flex; flex-direction: column; gap: 16px; }

.entry-unit-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

/* 数据录入筛选卡片（与搜索页 filter-bar 一致的简洁风格） */
.entry-filter {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}
.entry-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.entry-filter-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}
.entry-filter-icon { font-size: 16px; line-height: 1; }
.entry-filter-hint {
  font-size: 12px;
  color: var(--text-muted);
}
.entry-filter .filter-bar { align-items: flex-end; }
.entry-filter .form-group { min-width: 200px; }

.media-row, .live-row, .stage-row {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-light);
}
.media-row:last-child, .live-row:last-child, .stage-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.media-row .form-input,
.live-row .form-input,
.stage-row .form-input,
.ecommerce-row .form-input { margin-top: 0; }

.form-section-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

.row-header {
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.row-header-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.4;
}
.row-header .form-group { margin-bottom: 0; }

.row-action-col {
  flex: 0 0 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-row .form-row,
.live-row .form-row,
.stage-row .form-row {
  align-items: flex-end;
}

/* ======================== 筛选栏 ======================== */
.filter-bar {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-bar .form-group { min-width: 140px; }

/* ======================== 报告选择器 ======================== */
.report-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

/* ======================== 空状态 ======================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}

.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { margin-bottom: 16px; }

/* ======================== 数据词典 ======================== */
.dict-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.dict-tab {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}
.dict-tab:hover { color: var(--text-primary); background: var(--bg-hover); }
.dict-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.dict-field-list { display: flex; flex-direction: column; gap: 12px; }
.dict-field-row {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
}
.dict-field-index {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dict-field-body { flex: 1; }
.dict-field-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.dict-field-actions .btn-icon { width: 28px; height: 28px; padding: 0; font-size: 14px; }

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid;
}
.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}

/* ======================== Toast ======================== */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform 0.3s ease;
  max-width: 360px;
}

.toast.show { transform: translateX(0); }

.toast-success { background: rgba(34, 197, 94, 0.95); color: #fff; }
.toast-error { background: rgba(239, 68, 68, 0.95); color: #fff; }
.toast-warning { background: rgba(245, 158, 11, 0.95); color: #fff; }
.toast-info { background: rgba(59, 130, 246, 0.95); color: #fff; }

/* ======================== 弹窗 ======================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 { font-size: 16px; }

.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
}

/* ======================== 分析报告 ======================== */
.work-summary, .work-plan {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-primary);
}

.insight-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  border-left: 3px solid;
}

.insight-item:last-child { margin-bottom: 0; }

.insight-positive { background: rgba(34, 197, 94, 0.08); border-color: var(--accent-green); }
.insight-warning { background: rgba(245, 158, 11, 0.08); border-color: var(--accent-amber); }
.insight-info { background: rgba(59, 130, 246, 0.08); border-color: var(--accent-blue); }
.insight-suggestion { background: rgba(168, 85, 247, 0.08); border-color: var(--accent-purple); }

.insight-icon { font-size: 20px; flex-shrink: 0; }
.insight-title { font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.insight-text { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

.kpi-rate { font-weight: 700; font-size: 15px; color: var(--accent-primary); }

.access-code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--bg-base);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--accent-amber);
  border: 1px solid var(--border-light);
}

/* ======================== 数据管理 ======================== */
.data-mgmt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}
.data-mgmt-row:last-child { border-bottom: none; }
.data-mgmt-title { font-weight: 500; margin-bottom: 2px; }

/* ======================== 周报管理 ======================== */
.position-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent-primary);
  white-space: nowrap;
}

.position-icon {
  margin-right: 4px;
}

.staff-form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.staff-form-grid .form-group {
  min-width: 140px;
}

.staff-form-grid .form-group.full-row {
  flex-basis: 100%;
  min-width: 100%;
}

.staff-report-card {
  margin-bottom: 0;
}

.staff-report-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.staff-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.staff-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.staff-stat-label {
  font-size: 11px;
  color: var(--text-muted);
}

.staff-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.staff-text-block {
  margin-bottom: 14px;
}

.staff-text-block:last-child {
  margin-bottom: 0;
}

.staff-text-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.staff-text-content {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-primary);
  padding: 10px 14px;
  background: var(--bg-base);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-primary);
}

.staff-progress-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.staff-progress-item {
  padding: 10px 14px;
  background: var(--bg-base);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-blue);
}

.staff-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.staff-progress-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.staff-progress-note {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.staff-report-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

/* ======================== 分析报告免责声明 ======================== */
.report-disclaimer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--accent-amber);
  border-left: 4px solid var(--accent-amber);
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.08);
  font-size: 13px;
  line-height: 1.5;
}
.report-disclaimer-icon {
  flex-shrink: 0;
  font-size: 18px;
}
.report-disclaimer-text {
  color: var(--text-primary);
  font-weight: 500;
}

/* ======================== 分析报告 Tab ======================== */
.report-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.report-tab {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}
.report-tab:hover { color: var(--text-primary); background: var(--bg-hover); }
.report-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* 团队汇总表格 */
.team-summary-table th { font-size: 12px; }
.team-summary-table .team-total {
  font-weight: 700;
  background: var(--bg-surface-hover);
}
.team-summary-table .team-total td { border-top: 2px solid var(--border-color); }

/* ======================== 响应式 ======================== */
@media (max-width: 768px) {
  .sidebar { width: 60px; }
  .sidebar-logo-text, .nav-item span:not(.nav-icon) { display: none; }
  .main-content { margin-left: 60px; }
  .content-area { padding: 16px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .form-row { flex-direction: column; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .modal-box { max-width: 100%; }
  .confidentiality-modal { max-width: 92% !important; }
  .share-platforms { flex-direction: column; }
}

/* ======================== 转发分享 ======================== */
.share-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

/* 保密提醒弹窗 */
.confidentiality-overlay {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.confidentiality-modal {
  max-width: 460px;
  overflow: hidden;
  animation: confidentialitySlideIn 0.3s ease;
}
@keyframes confidentialitySlideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.confidentiality-header {
  text-align: center;
  padding: 28px 20px 16px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-bottom: 3px solid #f59e0b;
}
.confidentiality-header h3 {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #78350f;
}
.confidentiality-icon {
  font-size: 40px;
  line-height: 1;
}

.confidentiality-body {
  padding: 24px 28px;
}
.confidentiality-main-text {
  font-size: 15px;
  font-weight: 600;
  color: #78350f;
  line-height: 1.7;
  text-align: center;
}
.confidentiality-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #d1d5db, transparent);
  margin: 16px 0;
}
.confidentiality-rules {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.confidentiality-rule-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.rule-icon {
  color: #f59e0b;
  font-weight: 700;
  flex-shrink: 0;
}
.confidentiality-confirm-text {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

.confidentiality-footer {
  display: flex;
  gap: 12px;
  padding: 0 28px 24px;
  justify-content: center;
}
.confidentiality-footer .btn {
  min-width: 130px;
  justify-content: center;
}

/* 分享弹窗 */
.share-link-input {
  font-family: monospace;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-base);
}
.share-instructions {
  margin-bottom: 8px;
}
.share-tip {
  font-size: 14px;
  color: var(--text-secondary);
}
.share-platforms {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.share-wechat-btn {
  background: #07c160 !important;
  color: #fff !important;
  border: none !important;
}
.share-wechat-btn:hover { opacity: 0.9; }
.share-wecom-btn {
  background: #3370ff !important;
  color: #fff !important;
  border: none !important;
}
.share-wecom-btn:hover { opacity: 0.9; }
.share-icon { margin-right: 4px; }
.share-reminder {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.share-reminder-icon { font-size: 14px; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 0 20px 16px;
  gap: 8px;
}

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

/* ======================== 登录页-注册入口 ======================== */
.login-register-link {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.login-register-link a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  margin-left: 4px;
}
.login-register-link a:hover { text-decoration: underline; }

/* ======================== 注册弹窗 ======================== */
.modal-register { max-width: 520px; }
.modal-close-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.modal-close-btn:hover { color: var(--text-primary); }

/* ======================== Badge 补充 ======================== */
.badge-danger { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }

/* ======================== 按钮 补充 ======================== */
.btn-danger {
  background: var(--accent-red);
  color: #fff;
  border: 1px solid var(--accent-red);
}
.btn-danger:hover { opacity: 0.9; }

/* ======================== 注册审核面板 ======================== */
.reg-stats {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-secondary);
}
.reg-stat-item { margin-left: 12px; }
.reg-stat-item:first-child { margin-left: 0; }
.reg-stat-num { font-weight: 700; font-size: 14px; }
.reg-stat-pending { color: var(--accent-amber); }
.reg-stat-approved { color: var(--accent-green); }
.reg-stat-rejected { color: var(--accent-red); }

.reg-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
  padding-bottom: 0;
}
.reg-tab {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  font-family: var(--font);
  margin-bottom: -1px;
}
.reg-tab:hover { color: var(--text-primary); }
.reg-tab.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
  font-weight: 500;
}

.reg-list { display: flex; flex-direction: column; gap: 12px; }

.reg-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.reg-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}
.reg-card-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.reg-card-name { font-weight: 600; font-size: 14px; color: var(--text-primary); }
.reg-card-meta { font-size: 12px; color: var(--text-muted); }
.reg-card-actions { display: flex; gap: 8px; }
.reg-card-body {
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.reg-field {
  display: flex;
  gap: 8px;
  font-size: 13px;
  align-items: baseline;
}
.reg-field-label {
  color: var(--text-muted);
  min-width: 60px;
  flex-shrink: 0;
}
.reg-reject-reason {
  grid-column: 1 / -1;
  color: var(--accent-red);
}

