/* ============================================
   浸想经管 - 全局样式
   深蓝色主色调 · 手机端优先 · PC端友好
   ============================================ */

/* ---------- 设计变量 ---------- */
:root {
  --c-primary: #1B3A6B;
  --c-primary-light: #2E5A9C;
  --c-primary-lighter: #E8F0FB;
  --c-success: #16A34A;
  --c-success-bg: #DCFCE7;
  --c-warning: #F59E0B;
  --c-warning-bg: #FEF3C7;
  --c-danger: #DC2626;
  --c-danger-bg: #FEE2E2;
  --c-info: #0EA5E9;
  --c-info-bg: #E0F2FE;
  --c-neutral: #64748B;
  --c-neutral-bg: #F1F5F9;
  --c-bg: #F5F7FA;
  --c-card: #FFFFFF;
  --c-text: #1E293B;
  --c-text-secondary: #64748B;
  --c-border: #E2E8F0;
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-tag: 4px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-nav: 0 -1px 4px rgba(0,0,0,0.06);
  --max-width: 480px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
* { -webkit-tap-highlight-color: transparent; }

html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

input, textarea, button { font-family: inherit; font-size: inherit; }
input:focus, textarea:focus { outline: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: var(--c-primary-light); text-decoration: none; }

/* ---------- 通用布局 ---------- */
#app {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--c-bg);
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.page {
  min-height: 100vh;
  padding-bottom: 60px;
}
.page.no-tab { padding-bottom: 0; }
.page-pad { padding: 0 16px; }

/* PC端适配 */
@media (min-width: 768px) {
  :root { --max-width: 520px; }
}

/* ---------- 顶部导航栏 ---------- */
.app-bar {
  height: 52px;
  background: var(--c-primary);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 12px;
}
.app-bar-title {
  font-size: 18px;
  font-weight: 700;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-bar-back {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 20px;
  border-radius: var(--radius-btn);
  transition: background 0.2s;
}
.app-bar-back:active { background: rgba(255,255,255,0.15); }
.app-bar-action {
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-btn);
  transition: background 0.2s;
}
.app-bar-action:active { background: rgba(255,255,255,0.15); }

/* 代理登录提示条 */
.proxy-bar {
  background: var(--c-warning);
  color: #fff;
  padding: 8px 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.proxy-bar button {
  background: rgba(255,255,255,0.25);
  border: none;
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  font-size: 12px;
}

/* ---------- 底部Tab栏 ---------- */
.bottom-tabs {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: 56px;
  background: #fff;
  display: flex;
  box-shadow: var(--shadow-nav);
  z-index: 99;
}
.bottom-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  color: var(--c-neutral);
  font-size: 11px;
  transition: color 0.2s;
}
.bottom-tab.active { color: var(--c-primary); font-weight: 600; }
.bottom-tab-icon { font-size: 22px; line-height: 1; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--c-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 16px;
  margin-bottom: 12px;
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title-text { display: flex; align-items: center; gap: 6px; }

/* ---------- 按钮 ---------- */
.btn {
  height: 44px;
  border: none;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 20px;
  transition: opacity 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.97); }
.btn-block { width: 100%; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-success { background: var(--c-success); color: #fff; }
.btn-danger { background: var(--c-danger); color: #fff; }
.btn-outline {
  background: #fff;
  color: var(--c-primary);
  border: 1.5px solid var(--c-primary);
}
.btn-ghost {
  background: transparent;
  color: var(--c-primary-light);
  border: none;
}
.btn-sm { height: 32px; font-size: 13px; padding: 0 12px; }
.btn-xs { height: 28px; font-size: 12px; padding: 0 10px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-group { display: flex; gap: 8px; }
.btn-group .btn { flex: 1; }

/* ---------- 表单元素 ---------- */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 8px;
}
.form-label .req { color: var(--c-danger); margin-left: 2px; }
.form-input {
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-btn);
  padding: 0 12px;
  font-size: 14px;
  background: #fff;
  color: var(--c-text);
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--c-primary); }
.form-input::placeholder { color: #94A3B8; }

textarea.form-input {
  height: auto;
  min-height: 80px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.5;
}

.form-hint {
  font-size: 12px;
  color: var(--c-text-secondary);
  margin-top: 4px;
}

/* ---------- 状态标签 ---------- */
.status-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-tag);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.status-draft { background: var(--c-neutral-bg); color: var(--c-neutral); }
.status-pending { background: var(--c-warning-bg); color: var(--c-warning); }
.status-approved { background: var(--c-success-bg); color: var(--c-success); }
.status-rejected { background: var(--c-danger-bg); color: var(--c-danger); }
.status-paying { background: var(--c-info-bg); color: var(--c-info); }
.status-done { background: var(--c-success-bg); color: var(--c-success); }
.status-signing { background: var(--c-warning-bg); color: var(--c-warning); }
.status-info { background: var(--c-info-bg); color: var(--c-info); }

/* ---------- 选择器触发器（替代下拉框） ---------- */
.picker-trigger {
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-btn);
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}
.picker-trigger:active { border-color: var(--c-primary); }
.picker-trigger .label { font-size: 14px; color: var(--c-text); }
.picker-trigger .placeholder { font-size: 14px; color: #94A3B8; }
.picker-trigger .arrow { color: var(--c-text-secondary); font-size: 14px; }
.picker-trigger.selected { border-color: var(--c-primary); background: var(--c-primary-lighter); }

/* ---------- TagPicker 标签选择器 ---------- */
.tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-item {
  padding: 6px 16px;
  border: 1.5px solid var(--c-border);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  background: #fff;
  color: var(--c-text);
  transition: all 0.2s;
  user-select: none;
}
.tag-item.active {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.tag-item:active { transform: scale(0.95); }

/* ---------- CardPicker 卡片选择器 ---------- */
.card-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.card-item {
  border: 2px solid var(--c-border);
  border-radius: var(--radius-btn);
  padding: 12px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  background: #fff;
  position: relative;
}
.card-item.active {
  border-color: var(--c-primary);
  background: var(--c-primary-lighter);
}
.card-item.active::after {
  content: '✓';
  position: absolute;
  top: 4px;
  right: 6px;
  color: var(--c-primary);
  font-weight: 700;
  font-size: 14px;
}
.card-item-icon { font-size: 28px; margin-bottom: 4px; }
.card-item-title { font-size: 13px; font-weight: 600; }
.card-item-sub { font-size: 11px; color: var(--c-text-secondary); margin-top: 2px; }

/* ---------- SheetPicker 弹窗 ---------- */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.sheet-panel {
  width: 100%;
  max-width: var(--max-width);
  background: #fff;
  border-radius: 16px 16px 0 0;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.25s ease;
}
.sheet-header {
  padding: 16px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sheet-title { font-size: 16px; font-weight: 600; }
.sheet-close {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--c-text-secondary);
  border-radius: 50%;
}
.sheet-close:active { background: var(--c-neutral-bg); }
.sheet-search {
  padding: 8px 16px;
  border-bottom: 1px solid var(--c-border);
}
.sheet-search input {
  width: 100%;
  height: 36px;
  background: var(--c-bg);
  border: none;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
}
.sheet-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.sheet-option {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.sheet-option:active { background: var(--c-bg); }
.sheet-option.selected { background: var(--c-primary-lighter); }
.sheet-option-icon { font-size: 20px; width: 28px; text-align: center; }
.sheet-option-text { flex: 1; }
.sheet-option-title { font-size: 14px; font-weight: 500; }
.sheet-option-sub { font-size: 12px; color: var(--c-text-secondary); margin-top: 2px; }
.sheet-option-check { color: var(--c-primary); font-weight: 700; }
.sheet-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--c-border);
  display: flex;
  gap: 8px;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes modalIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

/* ---------- 列表项 ---------- */
.list-item {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: transform 0.1s;
}
.list-item:active { transform: scale(0.98); }
.list-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.list-item-title { font-size: 15px; font-weight: 600; }
.list-item-sub { font-size: 13px; color: var(--c-text-secondary); margin-top: 4px; }
.list-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--c-text-secondary);
  margin-top: 8px;
}

/* ---------- 概览统计卡片 ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.stat-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.1s;
}
.stat-card:active { transform: scale(0.96); }
.stat-num { font-size: 24px; font-weight: 700; color: var(--c-primary); }
.stat-label { font-size: 12px; color: var(--c-text-secondary); margin-top: 2px; }

/* ---------- 快捷操作网格 ---------- */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.quick-item {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 14px 6px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.1s;
}
.quick-item:active { transform: scale(0.95); }
.quick-icon { font-size: 28px; margin-bottom: 4px; }
.quick-text { font-size: 11px; color: var(--c-text); }

/* ---------- 审批流转记录 ---------- */
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.flow-step {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  position: relative;
}
.flow-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: var(--c-border);
}
.flow-step.done:not(:last-child)::before { background: var(--c-success); }
.flow-step-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  z-index: 1;
}
.flow-step.done .flow-step-icon { background: var(--c-success); color: #fff; }
.flow-step.pending .flow-step-icon { background: var(--c-warning); color: #fff; }
.flow-step.todo .flow-step-icon { background: var(--c-neutral-bg); color: var(--c-neutral); border: 2px solid var(--c-border); }
.flow-step-content { flex: 1; padding-top: 2px; }
.flow-step-title { font-size: 13px; font-weight: 500; }
.flow-step-time { font-size: 12px; color: var(--c-text-secondary); margin-top: 2px; }

/* ---------- AI重复检测弹窗 ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.modal-panel {
  background: #fff;
  border-radius: 16px;
  max-width: 400px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  animation: modalIn 0.25s ease;
}
.modal-header {
  padding: 16px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
}
.modal-body { padding: 16px; }
.modal-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--c-border);
  display: flex;
  gap: 8px;
}

/* AI警告卡片 */
.ai-warn-card {
  background: var(--c-warning-bg);
  border: 1px solid var(--c-warning);
  border-radius: var(--radius-card);
  padding: 12px;
  margin-bottom: 12px;
}
.ai-warn-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-warning);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}
.ai-compare-box {
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  font-size: 13px;
}
.ai-compare-box .label { font-size: 11px; color: var(--c-text-secondary); margin-bottom: 4px; }
.ai-similarity {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-warning);
  text-align: center;
  margin: 8px 0;
}

/* ---------- 通用工具类 ---------- */
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 4px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-secondary { color: var(--c-text-secondary); }
.text-primary { color: var(--c-primary); }
.text-success { color: var(--c-success); }
.text-danger { color: var(--c-danger); }
.text-warning { color: var(--c-warning); }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.w-full { width: 100%; }
.hidden { display: none; }

/* ---------- 空状态 ---------- */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--c-text-secondary);
}
.empty-state-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.empty-state-text { font-size: 14px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 999;
  animation: fadeIn 0.2s ease;
  max-width: 80%;
  text-align: center;
}

/* ---------- 登录页 ---------- */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-logo {
  font-size: 48px;
  margin-bottom: 8px;
}
.login-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.login-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
}
.login-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.login-card .form-input {
  border: none;
  border-bottom: 2px solid var(--c-border);
  border-radius: 0;
  height: 48px;
  font-size: 16px;
}
.login-card .form-input:focus { border-bottom-color: var(--c-primary); }

/* ---------- 表单详情行 ---------- */
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--c-border);
  gap: 12px;
}
.detail-row:last-child { border-bottom: none; }
.detail-label { font-size: 13px; color: var(--c-text-secondary); white-space: nowrap; flex-shrink: 0; }
.detail-value { font-size: 14px; font-weight: 500; text-align: right; word-break: break-all; }

/* ---------- 附件上传 ---------- */
.upload-box {
  width: 80px; height: 80px;
  border: 2px dashed var(--c-border);
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--c-text-secondary);
  cursor: pointer;
  background: var(--c-bg);
}
.upload-box:active { border-color: var(--c-primary); }
.upload-preview {
  width: 80px; height: 80px;
  border-radius: var(--radius-btn);
  object-fit: cover;
  position: relative;
}
.upload-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 绩效得分项 ---------- */
.score-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
}
.score-item .icon { width: 20px; text-align: center; }
.score-item .desc { flex: 1; }
.score-item .score { font-weight: 600; }
.score-positive { color: var(--c-success); }
.score-negative { color: var(--c-danger); }

/* ---------- 趋势图占位 ---------- */
.chart-placeholder {
  height: 120px;
  background: linear-gradient(180deg, var(--c-primary-lighter) 0%, #fff 100%);
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 12px;
  gap: 4px;
}
.chart-bar {
  flex: 1;
  background: var(--c-primary);
  border-radius: 4px 4px 0 0;
  min-height: 20px;
  opacity: 0.8;
  position: relative;
}
.chart-bar::after {
  content: attr(data-label);
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--c-text-secondary);
  white-space: nowrap;
}

/* ---------- 利润表 ---------- */
.profit-table { width: 100%; font-size: 13px; }
.profit-table tr { border-bottom: 1px solid var(--c-border); }
.profit-table td { padding: 8px 0; }
.profit-table .indent { padding-left: 20px; color: var(--c-text-secondary); }
.profit-table .amount { text-align: right; font-weight: 500; }
.profit-table .total-row { font-weight: 700; font-size: 14px; }
.profit-table .total-row td { padding: 10px 0; border-top: 2px solid var(--c-primary); }

/* ---------- 确认弹窗 ---------- */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.15s ease;
}
.confirm-panel {
  background: #fff;
  border-radius: 16px;
  max-width: 340px;
  width: 100%;
  padding: 24px;
  text-align: center;
  animation: modalIn 0.2s ease;
}
.confirm-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.confirm-msg { font-size: 14px; color: var(--c-text-secondary); margin-bottom: 20px; }
.confirm-actions { display: flex; gap: 8px; }
.confirm-actions .btn { flex: 1; }

/* ---------- 角色徽章 ---------- */
.role-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: var(--radius-tag);
  font-size: 11px;
  font-weight: 500;
}
.role-supervisor { background: #EDE9FE; color: #7C3AED; }
.role-gm { background: var(--c-primary-lighter); color: var(--c-primary); }
.role-purchaser { background: #FED7AA; color: #C2410C; }
.role-site { background: var(--c-success-bg); color: var(--c-success); }
.role-account { background: var(--c-info-bg); color: var(--c-info); }
.role-finance { background: #FCE7F3; color: #BE185D; }
.role-investor { background: #FEF3C7; color: #B45309; }

/* ---------- 搜索栏 ---------- */
.search-bar {
  padding: 8px 16px;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
}
.search-bar input {
  width: 100%;
  height: 36px;
  background: var(--c-bg);
  border: none;
  border-radius: 18px;
  padding: 0 16px;
  font-size: 14px;
}

/* ---------- Tab切换 ---------- */
.tab-bar {
  display: flex;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-item {
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--c-text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.tab-item.active {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
  font-weight: 600;
}

/* ---------- 进度条 ---------- */
.progress-bar {
  height: 4px;
  background: var(--c-border);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--c-primary);
  border-radius: 2px;
  transition: width 0.3s;
}

/* ---------- 项目切换器 ---------- */
.project-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255,255,255,0.15);
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
}
