/* ===== 觅邸管理小程序 v3 - 样式 ===== */
:root {
  --primary: #2C3E6B;
  --primary-light: #4A6FA5;
  --primary-bg: #EEF2FA;
  --accent: #E17055;
  --success: #00B894;
  --warning: #FDCB6E;
  --danger: #E74C3C;
  --text-main: #1A1F36;
  --text-sub: #6B7280;
  --text-hint: #9CA3AF;
  --bg-page: #F5F6FA;
  --bg-card: #FFFFFF;
  --border: #E5E7EB;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.6;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}

/* ===== 登录页 ===== */
.login-page {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 48px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}
.login-header .logo {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 3px;
}
.login-header .subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  margin-top: 6px;
}

.port-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin-bottom: 20px;
}

.port-card {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-md);
  padding: 18px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border-top: 3px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.port-card:active { transform: scale(0.96); }

.port-card .port-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin: 0 auto 8px;
}
.port-card .port-name {
  font-size: 14px; font-weight: 700;
  color: var(--text-main);
}
.port-card .port-desc {
  font-size: 10px; color: var(--text-hint);
  margin-top: 3px; line-height: 1.3;
}

.login-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.login-card h3 {
  font-size: 17px; font-weight: 700;
  margin-bottom: 8px;
}

.login-card p {
  font-size: 12px; color: var(--text-sub);
  margin-bottom: 14px; line-height: 1.5;
}

.login-card input,
.login-card select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.login-card input:focus { border-color: var(--primary); }

.login-card button {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.2s;
}
.login-card button:active { transform: scale(0.98); }

.login-card .hint {
  font-size: 11px;
  color: var(--text-hint);
  margin-top: 12px;
  text-align: center;
}

/* ===== App主框架 ===== */
#app { min-height: 100vh; }

.app-header {
  background: var(--primary);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}

.app-header .header-title {
  font-size: 17px; font-weight: 700;
}

.app-header .header-user {
  font-size: 12px;
  opacity: 0.9;
  cursor: pointer;
  display: flex; align-items: center; gap: 4px;
}
.app-header .header-user span {
  background: rgba(255,255,255,0.15);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
}

.page {
  padding: 12px;
  padding-bottom: 80px;
}

/* ===== 底部导航 ===== */
.tab-bar {
  position: fixed;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: #fff;
  display: flex;
  border-top: 1px solid var(--border);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

.tab-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 8px 0 6px;
  cursor: pointer;
  color: var(--text-hint);
  transition: color 0.2s;
  gap: 2px;
}
.tab-item.active { color: var(--primary); }
.tab-item span:first-child { font-size: 22px; line-height: 1; }
.tab-item span:last-child { font-size: 10px; }

/* ===== 通用卡片/区块 ===== */
.section-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.section-title {
  font-size: 15px; font-weight: 700;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 4px;
}

.sub-title {
  font-size: 13px; font-weight: 600;
  color: var(--text-sub);
  margin: 12px 0 6px;
}

/* 进度条 */
.progress-bar {
  width: 100%; height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0;
}
.progress-bar .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  border-radius: 4px;
  transition: width 0.3s;
}

/* 空状态 */
.empty {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-hint);
  font-size: 13px;
}

/* Tab切换 */
.sub-tabs {
  display: flex;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 12px;
  gap: 0;
}
.sub-tab {
  flex: 1;
  text-align: center;
  padding: 8px;
  font-size: 13px;
  color: var(--text-sub);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.sub-tab.active {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.sub-tabs.four .sub-tab { font-size: 12px; padding: 8px 4px; }

/* ===== 客户端 ===== */
.client-project-card {
  margin-bottom: 12px;
}
.client-project-card .project-name {
  font-size: 18px; font-weight: 800;
  margin-bottom: 4px;
}
.client-project-card .project-meta {
  font-size: 12px; color: var(--text-sub);
  margin-bottom: 4px;
}

/* 阶段时间线 */
.stage-timeline {
  display: flex; flex-direction: column;
  gap: 0;
  padding: 4px 0;
}
.stage-node {
  display: flex; gap: 12px;
  padding: 8px 0;
  position: relative;
}
.stage-node::before {
  content: '';
  position: absolute;
  left: 5px; top: 22px; bottom: -8px;
  width: 2px;
  background: var(--border);
}
.stage-node:last-child::before { display: none; }

.stage-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  margin-top: 4px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--border);
  z-index: 1;
}
.stage-node.active .stage-dot {
  background: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.stage-info { flex: 1; }
.stage-label { font-size: 13px; font-weight: 600; }
.stage-time { font-size: 12px; color: var(--text-sub); margin-top: 2px; }
.stage-rate {
  font-size: 12px; font-weight: 700;
  color: var(--success);
  margin-top: 2px;
}
.stage-rate.warn { color: var(--danger); }

/* 延迟备注 */
.delay-note {
  font-size: 12px;
  color: var(--danger);
  background: #FEF2F2;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-top: 8px;
  line-height: 1.5;
}

/* 每日照片 */
.daily-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.photo-card {
  text-align: center;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
}
.photo-placeholder {
  font-size: 28px;
  margin-bottom: 4px;
}
.photo-date {
  font-size: 10px;
  color: var(--text-hint);
}
.photo-desc {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 2px;
  line-height: 1.3;
}
.more-link {
  text-align: center;
  color: var(--primary);
  font-size: 12px;
  padding: 8px;
  cursor: pointer;
  grid-column: 1 / -1;
}

/* 变更/反馈/待办列表 */
.issue-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.issue-item:last-child { border-bottom: none; }
.issue-title { font-size: 13px; font-weight: 600; }
.issue-desc { font-size: 12px; color: var(--text-sub); margin-top: 4px; line-height: 1.5; }
.issue-status { font-size: 11px; color: var(--text-hint); margin-top: 4px; }

/* 验收标准列表 */
.standard-list { display: flex; flex-direction: column; gap: 8px; }

.standard-group {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.standard-header {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  background: var(--bg-page);
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: background 0.15s;
}
.standard-header:active { background: var(--primary-bg); }
.standard-header::after {
  content: '▾';
  margin-left: auto;
  font-size: 12px;
  color: var(--text-hint);
  transition: transform 0.2s;
}
.standard-header.show::after { transform: rotate(180deg); }

.standard-body {
  display: none;
  padding: 0 14px;
}
.standard-body.show { display: block; }

.standard-row {
  display: flex; gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.standard-row:first-child { border-top: none; }

.standard-row .code,
.check-standard .code {
  font-size: 10px; font-weight: 800;
  background: var(--primary-bg);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  height: fit-content;
  min-width: 36px;
  text-align: center;
}

.standard-row .content { flex: 1; }
.standard-row .item,
.check-standard .item {
  font-size: 13px; font-weight: 600;
  margin-bottom: 4px;
}
.standard-row .criteria,
.check-standard .criteria {
  font-size: 12px; color: var(--text-sub);
  line-height: 1.5;
}
.standard-row .acceptance {
  font-size: 11px; color: var(--text-hint);
  background: var(--bg-page);
  padding: 6px 8px;
  border-radius: 6px;
  margin-top: 4px;
}

/* 文件列表 */
.file-list { display: flex; flex-direction: column; gap: 8px; }
.file-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
}
.file-icon { font-size: 20px; }
.file-info { flex: 1; }
.file-name { font-size: 13px; font-weight: 600; }
.file-meta { font-size: 11px; color: var(--text-hint); }

/* 反馈列表 */
.feedback-list { display: flex; flex-direction: column; gap: 8px; }
.feedback-item {
  padding: 12px;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
}
.feedback-title { font-size: 13px; font-weight: 600; }
.feedback-content { font-size: 12px; color: var(--text-sub); margin: 4px 0; line-height: 1.5; }
.feedback-status { font-size: 11px; color: var(--text-hint); }

/* 表单元素（客户端反馈/模态框） */
.section-card textarea,
.section-card input,
.section-card select,
.modal-content textarea,
.modal-content input,
.modal-content select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  margin-bottom: 10px;
  resize: vertical;
}
.section-card textarea:focus,
.section-card input:focus,
.modal-content textarea:focus,
.modal-content input:focus,
.modal-content select:focus {
  border-color: var(--primary);
}

.section-card label,
.modal-content label {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  margin-top: 6px;
}

.section-card button,
.modal-content button {
  cursor: pointer;
  transition: all 0.15s;
}

/* ===== 员工端 ===== */
.role-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 14px;
  border-left: 4px solid var(--border);
}

.role-card .role-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.role-card .role-info { flex: 1; }
.role-card .role-name { font-size: 16px; font-weight: 700; }
.role-card .role-desc { font-size: 12px; color: var(--text-sub); margin-top: 2px; }

/* 快捷操作 */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.quick-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.2s;
}
.quick-btn:active {
  transform: scale(0.96);
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary);
}

/* 过滤器 */
.filter-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.filter-item {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-sub);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.filter-item.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* 任务列表 */
.task-list { display: flex; flex-direction: column; gap: 8px; }

.task-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--border);
}
.task-card.done { opacity: 0.55; }
.task-card .task-header {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 6px;
}
.task-priority {
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
}
.task-priority.高 { background: #FEE2E2; color: #DC2626; }
.task-priority.中 { background: #FEF3C7; color: #D97706; }
.task-priority.低 { background: #DBEAFE; color: #2563EB; }
.task-status {
  font-size: 11px; font-weight: 600;
  color: var(--text-hint);
  margin-left: auto;
}
.task-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.task-meta { font-size: 11px; color: var(--text-hint); margin-bottom: 4px; }
.task-desc { font-size: 12px; color: var(--text-sub); line-height: 1.5; margin-bottom: 8px; }
.task-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.btn-small {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  transition: all 0.15s;
}
.btn-small:active { transform: scale(0.95); }
.btn-small.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

/* 标准标签 */
.standard-badges {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.standard-badge {
  font-size: 11px; font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-page);
  color: var(--text-sub);
  border: 1px solid var(--border);
}

/* 生产项 */
.prod-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.prod-item:last-child { border-bottom: none; }
.prod-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.prod-meta { font-size: 12px; color: var(--text-sub); margin-bottom: 4px; }

.time-row {
  display: flex; gap: 16px;
  font-size: 12px; color: var(--text-sub);
  flex-wrap: wrap;
}
.time-row .warn { color: var(--danger); font-weight: 700; }

.eng-flag {
  font-size: 12px;
  color: var(--danger);
  background: #FEF2F2;
  padding: 6px 10px;
  border-radius: 6px;
  margin-top: 6px;
}

/* ===== 模态框 ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal.show { display: flex; }

.modal-content {
  background: #fff;
  width: 100%; max-width: 430px;
  border-radius: 20px 20px 0 0;
  padding: 20px 20px 32px;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-content h3 {
  font-size: 17px; font-weight: 700;
  margin-bottom: 4px;
}

.modal-actions {
  display: flex; gap: 10px; margin-top: 16px;
}
.modal-actions button {
  flex: 1; padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  border: none;
}
.modal-actions .btn-cancel {
  background: var(--bg-page); color: var(--text-sub);
}
.modal-actions .btn-submit {
  background: var(--primary); color: #fff;
}

/* 上传区域 */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 24px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-page);
  margin-bottom: 10px;
}
.upload-area:active { background: var(--primary-bg); border-color: var(--primary); }

/* 质量检查结果 */
.check-result {
  font-size: 20px; font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}
.check-message {
  font-size: 13px; color: var(--text-sub);
  text-align: center;
  margin-bottom: 14px;
  line-height: 1.6;
}
.check-standards { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.check-standard {
  display: flex; gap: 10px;
  padding: 10px;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
}

/* 改革/创新卡片 */
.improvement-card {
  padding: 14px;
  background: var(--bg-page);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}
.imp-type { font-size: 11px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.imp-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.imp-desc { font-size: 12px; color: var(--text-sub); line-height: 1.5; margin-bottom: 6px; }
.imp-meta { font-size: 11px; color: var(--text-hint); margin-bottom: 8px; }

/* ===== 全景/概览 ===== */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.summary-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.summary-item.urgent .num { color: var(--danger); }
.summary-item .num { font-size: 28px; font-weight: 800; color: var(--primary); }
.summary-item .label { font-size: 12px; color: var(--text-sub); margin-top: 4px; }

.overview-card {
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 8px;
}
.overview-title {
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 4px;
}
.stage-tag {
  font-size: 10px; font-weight: 600;
  background: var(--primary-bg);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
}
.overview-meta {
  font-size: 11px; color: var(--text-hint);
  margin-bottom: 6px;
}

/* ===== 管理端 ===== */
.people-card {
  padding: 14px;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.people-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.people-name span { font-size: 11px; font-weight: 600; color: var(--primary); margin-left: 6px; }
.people-meta { font-size: 12px; color: var(--text-sub); line-height: 1.5; }

/* 图表 */
.chart-bars {
  display: flex; flex-direction: column;
  gap: 8px;
}
.chart-bar-row {
  display: flex; align-items: center; gap: 10px;
}
.chart-label {
  width: 80px;
  font-size: 12px; color: var(--text-sub);
  flex-shrink: 0;
}
.chart-bar {
  flex: 1; height: 20px;
  background: var(--bg-page);
  border-radius: 4px;
  overflow: hidden;
}
.chart-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  border-radius: 4px;
  transition: width 0.4s;
  min-width: 2px;
}
.chart-num {
  font-size: 13px; font-weight: 700;
  color: var(--primary);
  min-width: 20px; text-align: right;
}

.daily-summary {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 2;
}
.daily-summary .row {
  display: flex; justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.daily-summary .row:last-child { border-bottom: none; }
.daily-summary .row .val { font-weight: 700; color: var(--text-main); }

/* ===== AI问答 ===== */
.qa-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.qa-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }

.qa-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 14px;
}
.qa-tag {
  padding: 6px 12px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 12px;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.15s;
}
.qa-tag:active {
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary);
}

.qa-chat {
  display: flex; flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
}

.chat-user, .chat-ai {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-user {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-ai {
  align-self: flex-start;
  background: var(--bg-page);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
}

.qa-input-row {
  display: flex; gap: 8px;
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 8px;
}
.qa-input-row input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  outline: none;
}
.qa-input-row input:focus { border-color: var(--primary); }
.qa-input-row button {
  padding: 8px 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  z-index: 300;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  text-align: center;
  max-width: 280px;
}
.toast.show { opacity: 1; }

/* ===== 第7轮新增样式 ===== */

/* 统计小卡片行 */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.stat-mini {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 12px 4px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.15s;
}
.stat-mini:active { transform: scale(0.96); }
.stat-mini-num {
  font-size: 18px; font-weight: 800;
  color: var(--primary);
}
.stat-mini-num.warn { color: var(--danger); }
.stat-mini-label {
  font-size: 10px; color: var(--text-sub);
  margin-top: 2px;
}

/* 5列子tab */
.sub-tabs.five { display: flex; }
.sub-tabs.five .sub-tab { font-size: 11px; padding: 8px 2px; }

/* 全宽按钮 */
.btn-full {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 4px;
}
.btn-full:active { transform: scale(0.98); }

/* 自动工时显示 */
.auto-hours {
  padding: 12px 14px;
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 10px;
}

/* 附加价值说明 */
.value-explanation {
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 14px;
}
.value-formula {
  font-size: 13px; font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.value-desc {
  font-size: 12px; color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 6px;
}
.value-note {
  font-size: 11px; color: var(--danger);
  line-height: 1.5;
}

/* 我的附加价值卡片 */
.my-value-card {
  background: linear-gradient(135deg, var(--primary-bg) 0%, #fff 100%);
  border: 1px solid var(--primary-bg);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}
.my-value-rank {
  font-size: 14px; font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.my-value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.my-value-grid > div {
  display: flex; flex-direction: column;
  gap: 2px;
}
.my-value-grid strong {
  font-size: 20px; font-weight: 800;
  color: var(--text-main);
}
.my-value-grid span {
  font-size: 11px; color: var(--text-sub);
}

/* 排名列表 */
.ranking-list {
  display: flex; flex-direction: column;
  gap: 6px;
}
.ranking-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.ranking-row.me {
  background: var(--primary-bg);
  border: 1px solid var(--primary-light);
}
.rank-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-sub);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rank-num.top {
  background: var(--warning);
  color: #fff;
}
.rank-info { flex: 1; }
.rank-name {
  font-size: 13px; font-weight: 600;
}
.rank-role {
  font-size: 10px; color: var(--text-hint);
  margin-left: 4px;
}
.rank-detail {
  font-size: 11px; color: var(--text-sub);
  margin-top: 2px;
}
.rank-value {
  font-size: 16px; font-weight: 800;
  color: var(--primary);
}

/* 绩效摘要 */
.perf-summary {
  text-align: center;
  padding: 20px;
  background: var(--bg-page);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}
.perf-score {
  font-size: 40px; font-weight: 800;
  color: var(--success);
  line-height: 1;
}
.perf-score.warn { color: var(--danger); }
.perf-label {
  font-size: 12px; color: var(--text-sub);
  margin-top: 6px;
}

/* 绩效规则 */
.perf-rules {
  display: flex; flex-direction: column;
  gap: 6px;
}
.perf-rule-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  font-size: 12px;
}
.perf-rule-type {
  font-weight: 700; color: var(--primary);
  min-width: 60px;
}
.perf-rule-score {
  font-weight: 700;
  min-width: 40px;
}
.perf-rule-desc {
  color: var(--text-sub);
  flex: 1;
}

/* 绩效卡片 */
.perf-card {
  padding: 12px;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.perf-card-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 600;
  margin-bottom: 4px;
}
.perf-card-score {
  font-weight: 800;
  color: var(--success);
}
.perf-card-score.warn { color: var(--danger); }
.perf-card-meta {
  font-size: 11px; color: var(--text-hint);
  margin-bottom: 4px;
}
.perf-card-note {
  font-size: 12px; color: var(--text-sub);
  line-height: 1.5;
}

/* 加班卡片 */
.ot-card {
  padding: 12px;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.ot-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.ot-project {
  font-size: 13px; font-weight: 600;
}
.ot-status {
  font-size: 11px; font-weight: 700;
}
.ot-time {
  font-size: 12px; color: var(--text-sub);
  margin-bottom: 4px;
}
.ot-desc {
  font-size: 12px; color: var(--text-sub);
  line-height: 1.5;
  margin-bottom: 6px;
}

/* 报销卡片 */
.ex-card {
  padding: 12px;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.ex-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 600;
  margin-bottom: 4px;
}
.ex-amount {
  font-size: 16px; font-weight: 800;
  color: var(--accent);
}
.ex-meta {
  font-size: 11px; color: var(--text-hint);
  margin-bottom: 4px;
}
.ex-desc {
  font-size: 12px; color: var(--text-sub);
  line-height: 1.5;
}

/* 认领卡片 */
.claim-card {
  padding: 14px;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.claim-card.done { opacity: 0.6; }
.claim-title {
  font-size: 14px; font-weight: 600;
  margin-bottom: 4px;
}
.claim-meta {
  font-size: 11px; color: var(--text-hint);
  margin-bottom: 4px;
}
.claim-desc {
  font-size: 12px; color: var(--text-sub);
  line-height: 1.5;
  margin-bottom: 6px;
}
.claim-by {
  font-size: 11px; color: var(--text-hint);
  margin-bottom: 6px;
}

/* 指派卡片 */
.assign-card {
  padding: 14px;
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

/* 审批卡片 */
.approve-card {
  padding: 14px;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  border-left: 3px solid var(--warning);
}
.approve-card.done {
  border-left-color: var(--success);
  opacity: 0.7;
}
.approve-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 600;
  margin-bottom: 4px;
}
.approve-status {
  font-size: 11px; font-weight: 700;
}
.approve-amount {
  font-size: 16px; font-weight: 800;
  color: var(--accent);
}
.approve-time {
  font-size: 12px; color: var(--text-sub);
  margin-bottom: 4px;
}
.approve-desc {
  font-size: 12px; color: var(--text-sub);
  line-height: 1.5;
  margin-bottom: 6px;
}
.approve-flow {
  font-size: 11px; color: var(--text-hint);
  margin-bottom: 8px;
  padding: 6px 8px;
  background: #fff;
  border-radius: 4px;
}
.approve-actions {
  display: flex; gap: 8px;
}

/* 审批按钮 */
.btn-small.btn-approve {
  background: var(--success);
  color: #fff;
  flex: 1;
}
.btn-small.btn-reject {
  background: #fff;
  color: var(--danger);
  border: 1px solid var(--danger);
  flex: 1;
}

/* 薪酬卡片 */
.salary-card {
  padding: 14px;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.salary-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; font-weight: 600;
  margin-bottom: 8px;
}
.salary-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-sub);
}

/* 提示文本 */
.hint {
  font-size: 11px;
  color: var(--text-hint);
  line-height: 1.5;
}

/* quick-actions 4列 */
.quick-actions {
  grid-template-columns: repeat(4, 1fr);
}

/* ===== 第8轮新增：合同/利润/核算样式 ===== */

/* 合同信息 */
.contract-info { display:flex; flex-direction:column; gap:6px; }
.contract-info .info-row { display:flex; justify-content:space-between; align-items:center; padding:6px 0; border-bottom:1px solid var(--border-light); font-size:13px; }
.contract-info .info-row:last-child { border-bottom:none; }
.contract-info .info-row span:first-child { color:var(--text-hint); }
.contract-info .info-row span:last-child { font-weight:600; }
.status-badge { padding:2px 10px; border-radius:10px; background:#E8F5E9; color:#2E7D32; font-size:12px; }
.status-badge.pending { background:#FFF3E0; color:#E65100; }

/* 合同阶段 */
.contract-stage { background:var(--bg-card); border-radius:8px; padding:12px; margin:8px 0; border-left:3px solid var(--primary-light); }
.contract-stage.compact { padding:8px 12px; display:flex; align-items:center; gap:8px; }
.stage-header { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.stage-num { width:24px; height:24px; border-radius:50%; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; flex-shrink:0; }
.stage-name { font-weight:600; font-size:14px; flex:1; }
.stage-duration { font-size:12px; color:var(--primary); background:var(--primary-bg); padding:2px 8px; border-radius:10px; white-space:nowrap; }
.stage-deliverables { margin:8px 0; }
.deliverable-label, .detail-label { font-size:12px; color:var(--text-hint); margin-bottom:4px; }
.deliverable-item { font-size:13px; padding:3px 0; padding-left:8px; }
.stage-details { margin:8px 0; padding-top:8px; border-top:1px dashed var(--border-light); }
.detail-item { font-size:12px; color:var(--text-secondary); padding:2px 0; padding-left:12px; }
.stage-confirm { font-size:12px; color:#2E7D32; background:#E8F5E9; padding:4px 8px; border-radius:4px; margin-top:4px; }
.contract-fee-rule { font-size:12px; color:#E65100; background:#FFF3E0; padding:6px 10px; border-radius:4px; margin:6px 0; }
.contract-type-badge { display:inline-block; font-size:12px; color:var(--primary); background:var(--primary-bg); padding:2px 10px; border-radius:10px; margin-bottom:6px; }
.stage-deliverable-count { font-size:11px; color:var(--text-hint); margin-left:auto; }

/* 付款进度 */
.payment-list { display:flex; flex-direction:column; gap:4px; }
.payment-list-title, .deliverables-title, .attach-title { font-weight:600; font-size:13px; margin-bottom:6px; }
.payment-row { display:flex; align-items:center; gap:6px; padding:8px 10px; border-radius:6px; font-size:13px; }
.payment-row.paid { background:#E8F5E9; }
.payment-row.unpaid { background:#F5F5F5; }
.payment-status { font-size:14px; }
.payment-name { flex:1; font-weight:500; }
.payment-progress { font-size:12px; color:var(--text-hint); }
.payment-ratio { font-weight:700; color:var(--primary); font-size:13px; }
.payment-trigger { font-size:11px; color:var(--text-hint); width:100%; margin-top:2px; }
.wet-work-note { font-size:12px; color:var(--text-hint); padding:6px 10px; background:#FFFDE7; border-radius:4px; margin-top:6px; }

/* 验收阶段 */
.acceptance-row { padding:10px; border-bottom:1px solid var(--border-light); }
.acceptance-row:last-child { border-bottom:none; }
.acceptance-name { font-weight:600; font-size:13px; margin-bottom:4px; }
.acceptance-desc { font-size:12px; color:var(--text-secondary); margin-bottom:2px; }
.acceptance-notice { font-size:11px; color:var(--text-hint); }

/* 质量标准 */
.quality-item { font-size:13px; padding:4px 0; }

/* 变更规则 */
.change-rules { margin-top:8px; padding:10px; background:#F5F5F5; border-radius:6px; }
.rules-title { font-weight:600; font-size:13px; margin-bottom:4px; }
.rule-item { font-size:12px; color:var(--text-secondary); padding:2px 0; padding-left:8px; }

/* 合同附件 */
.attachments-list { margin-top:8px; }
.attach-item { font-size:12px; padding:3px 0; color:var(--text-secondary); }

/* 供应商标准 */
.supplier-note { font-size:12px; color:var(--text-hint); margin-bottom:8px; }
.supplier-standards-list { display:flex; flex-direction:column; gap:6px; }
.supplier-standard-card { background:var(--bg-card); border-radius:8px; border:1px solid var(--border-light); overflow:hidden; }
.supplier-header { display:flex; align-items:center; gap:8px; padding:10px 12px; cursor:pointer; }
.supplier-icon { font-size:16px; }
.supplier-name { flex:1; font-weight:500; font-size:13px; }
.supplier-arrow { font-size:10px; color:var(--text-hint); }
.supplier-detail { padding:0 12px 10px; }
.detail-section { margin-bottom:8px; }
.detail-section-title { font-size:12px; font-weight:600; margin-bottom:4px; padding:2px 6px; border-radius:3px; }
.detail-section-title:first-child { background:#E3F2FD; color:#1565C0; }
.detail-section-title:last-child { background:#FFF3E0; color:#E65100; }
.standard-line { font-size:12px; padding:3px 0; padding-left:8px; color:var(--text-secondary); line-height:1.5; }
.standard-line.internal { color:#E65100; }

/* 角色横幅 */
.role-banner { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:8px 12px; background:var(--bg-card); border-radius:8px; margin-bottom:8px; }
.role-badge { padding:3px 10px; border-radius:12px; font-size:12px; font-weight:600; }
.vis-desc { font-size:11px; color:var(--text-hint); flex:1; min-width:200px; }

/* 利润看板 */
.profit-note { font-size:12px; color:var(--text-hint); margin-bottom:8px; }
.profit-list { display:flex; flex-direction:column; gap:8px; }
.profit-card { background:var(--bg-card); border-radius:8px; padding:12px; border-left:3px solid var(--primary-light); }
.profit-project { font-weight:600; font-size:14px; margin-bottom:2px; }
.profit-status { font-size:11px; color:var(--text-hint); margin-bottom:8px; }
.profit-amounts { display:flex; gap:12px; margin-bottom:8px; flex-wrap:wrap; }
.amount-item { display:flex; flex-direction:column; gap:2px; }
.amt-label { font-size:11px; color:var(--text-hint); }
.amt-value { font-size:13px; font-weight:600; }
.profit-summary { display:flex; justify-content:space-between; align-items:center; padding:8px 12px; border-radius:6px; }
.profit-summary.positive { background:#E8F5E9; }
.profit-summary.negative { background:#FFEBEE; }
.profit-amount { font-size:16px; font-weight:700; color:#2E7D32; }
.profit-summary.negative .profit-amount { color:#C62828; }
.profit-rate { font-size:13px; font-weight:600; color:var(--text-secondary); }

/* 供应链利润表 */
.supplier-profit-header { display:grid; grid-template-columns: 1.2fr 1fr 1fr 1fr 0.8fr 0.8fr; gap:4px; padding:8px 6px; font-size:11px; font-weight:600; color:var(--text-hint); border-bottom:2px solid var(--primary); }
.supplier-profit-row { display:grid; grid-template-columns: 1.2fr 1fr 1fr 1fr 0.8fr 0.8fr; gap:4px; padding:8px 6px; font-size:12px; border-bottom:1px solid var(--border-light); align-items:center; }
.sp-name { font-weight:500; }
.sp-quote, .sp-cost { color:var(--text-secondary); }
.sp-profit.pos { color:#2E7D32; font-weight:600; }
.sp-profit.neg { color:#C62828; font-weight:600; }
.sp-rate { font-size:11px; }
.sp-count { font-size:11px; color:var(--text-hint); }

/* 核算规则 */
.accounting-rules { display:flex; flex-direction:column; gap:8px; margin-bottom:12px; }
.rule-block { padding:10px; background:var(--bg-card); border-radius:6px; border-left:3px solid var(--primary); }
.rule-title { font-weight:600; font-size:13px; margin-bottom:4px; }
.rule-formula { font-size:13px; color:var(--primary); font-weight:500; line-height:1.5; }
.accounting-defs { display:flex; flex-direction:column; gap:4px; margin-bottom:12px; }
.def-item { display:flex; gap:8px; font-size:12px; padding:4px 0; border-bottom:1px dashed var(--border-light); }
.def-label { font-weight:600; color:var(--text-secondary); min-width:40px; }
.def-value { color:var(--text-hint); flex:1; }
.pending-info { padding:10px; background:#FFF3E0; border-radius:6px; border:1px solid #FFE0B2; }
.pending-title { font-size:12px; font-weight:600; color:#E65100; margin-bottom:4px; }
.pending-item { font-size:12px; color:#E65100; padding:2px 0; padding-left:8px; }

/* 部门收入比例 */
.dept-ratios { display:flex; flex-direction:column; gap:4px; margin-bottom:8px; }
.dept-ratio-row { display:flex; justify-content:space-between; align-items:center; padding:6px 10px; background:var(--bg-card); border-radius:4px; }
.dept-name { font-size:13px; font-weight:500; }
.dept-ratio { font-size:13px; font-weight:600; color:var(--primary); }
.dept-note { font-size:12px; color:var(--text-hint); padding:6px 10px; background:#FFFDE7; border-radius:4px; }

/* === 第9轮新增：合同成果明细 === */
.modal-large { max-width:400px; max-height:85vh; overflow-y:auto; }
.contract-deliverables { background:#f0f4ff; border:1px solid #d0d8f0; border-radius:8px; padding:10px; margin-bottom:12px; }
.cd-title { font-size:14px; font-weight:600; color:#2c3e50; margin-bottom:6px; }
.cd-section { font-size:12px; color:#34495e; margin-bottom:4px; line-height:1.5; }
.cd-details { padding-left:8px; }
.cd-detail-item { font-size:12px; color:#555; padding:2px 0; }
.cd-confirm { background:#fff9e6; padding:4px 8px; border-radius:4px; margin-top:4px; }
.confirm-flow-info { background:#e8f5e9; padding:8px 10px; border-radius:6px; font-size:12px; color:#2e7d32; margin-top:8px; line-height:1.5; }
.select-input { width:100%; padding:8px 10px; border:1px solid var(--border); border-radius:6px; font-size:13px; margin-bottom:10px; }

/* === 岗位工作内容 === */
.work-content-list { display:flex; flex-direction:column; gap:6px; }
.work-content-item { display:flex; align-items:center; gap:8px; padding:6px 10px; background:var(--bg-card); border-radius:6px; font-size:12px; }
.work-type { font-weight:600; color:var(--primary); white-space:nowrap; padding:2px 6px; background:var(--primary-alpha); border-radius:3px; }
.work-desc { color:var(--text-secondary); }

/* === 成果确认卡片 === */
.confirm-card { background:#fff; border:1px solid var(--border); border-radius:8px; padding:12px; margin-bottom:10px; }
.confirm-title { font-size:14px; font-weight:600; color:var(--text-primary); margin-bottom:4px; }
.confirm-step { font-size:12px; color:var(--primary); margin-bottom:4px; }
.confirm-desc { font-size:12px; color:var(--text-secondary); margin-bottom:4px; line-height:1.5; }
.confirm-amount { font-size:14px; font-weight:600; color:#E65100; margin-bottom:4px; }
.confirm-meta { font-size:11px; color:var(--text-hint); margin-bottom:8px; }
.confirm-actions { display:flex; gap:8px; }
.btn-approve { background:#00B894; color:#fff; border:none; }
.btn-reject { background:#E74C3C; color:#fff; border:none; }

/* === 数字看板 === */
.dashboard-card { background:#fff; border:1px solid var(--border); border-radius:8px; padding:12px; margin-bottom:10px; }
.dashboard-title { font-size:14px; font-weight:600; margin-bottom:8px; display:flex; align-items:center; gap:6px; }

/* === 4阶段进度对比 === */
.stage-comparison { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.stage-bar { background:var(--bg-card); border-radius:6px; padding:8px; }
.stage-bar-header { display:flex; justify-content:space-between; align-items:center; font-size:12px; font-weight:500; margin-bottom:4px; }
.stage-bar-meta { display:flex; justify-content:space-between; font-size:10px; color:var(--text-hint); margin-top:2px; }
.milestone-list { margin-top:4px; }
.milestone-item { font-size:10px; color:var(--text-hint); padding:1px 0; }

/* === 问答区域（数字看板内）=== */
.qa-quick-tags { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.qa-tag { font-size:11px; padding:4px 10px; background:var(--primary-alpha); color:var(--primary); border-radius:12px; cursor:pointer; }
.qa-chat { max-height:200px; overflow-y:auto; margin-bottom:8px; }
.qa-input-bar { display:flex; gap:6px; }
.qa-input-bar input { flex:1; padding:8px 10px; border:1px solid var(--border); border-radius:6px; font-size:13px; }
.qa-input-bar button { padding:8px 16px; background:var(--primary); color:#fff; border:none; border-radius:6px; font-size:13px; cursor:pointer; }

/* === 项目选择列表 === */
.project-select-list { display:flex; flex-direction:column; gap:6px; }
.project-select-item { display:flex; justify-content:space-between; align-items:center; padding:10px 12px; background:var(--bg-card); border-radius:6px; cursor:pointer; }
.project-select-item:hover { background:var(--primary-alpha); }
.ps-name { font-size:14px; font-weight:500; }
.ps-stage { font-size:11px; color:var(--text-hint); }

/* === 第10轮新增：供应商标准完整版 === */
.supplier-section { margin-bottom:12px; padding-bottom:10px; border-bottom:1px solid var(--border); }
.supplier-section:last-child { border-bottom:none; }
.supplier-section-title { font-size:13px; font-weight:600; color:var(--primary); margin-bottom:4px; }
.supplier-section-content { font-size:12px; color:var(--text-main); line-height:1.6; }

/* === 第10轮新增：标准建议流程 === */
.modal-flow-info { background:var(--primary-alpha); padding:8px 12px; border-radius:6px; margin:8px 0; }
.flow-step { font-size:12px; color:var(--primary); font-weight:500; }
.suggestion-list-mini { margin:8px 0; }
.suggestion-mini-item { display:flex; align-items:center; gap:8px; padding:6px 0; font-size:12px; border-bottom:1px solid var(--border); }
.sug-status-badge { padding:2px 8px; border-radius:10px; font-size:11px; font-weight:500; white-space:nowrap; }
.status-待商务审核 { background:#FEF3C7; color:#92400E; }
.status-待CEO确认 { background:#DBEAFE; color:#1E40AF; }
.status-已通过 { background:#D1FAE5; color:#065F46; }
.status-已驳回 { background:#FEE2E2; color:#991B1B; }
.sug-time { margin-left:auto; color:var(--text-hint); font-size:11px; }

.suggestion-review-card { background:var(--bg-card); border:1px solid var(--border); border-radius:8px; padding:12px; margin-bottom:10px; }
.sug-review-header { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.sug-review-header .sug-supplier { font-size:14px; font-weight:600; }
.sug-review-header .sug-type { font-size:12px; color:var(--text-hint); }
.sug-review-meta { font-size:11px; color:var(--text-hint); margin-bottom:4px; }
.sug-review-section { font-size:12px; color:var(--primary); margin-bottom:4px; }
.sug-review-content { font-size:13px; color:var(--text-main); line-height:1.5; margin-bottom:6px; }
.sug-review-reason { font-size:12px; color:var(--text-hint); font-style:italic; margin-bottom:6px; }
.sug-review-actions { display:flex; gap:8px; margin-top:8px; }
.sug-review-actions button { padding:6px 16px; border:none; border-radius:6px; font-size:12px; cursor:pointer; }

/* === 第10轮新增：合同模板管理 === */
.contract-template-list { display:flex; flex-direction:column; gap:8px; }
.contract-template-card { background:var(--bg-card); border:1px solid var(--border); border-radius:8px; padding:12px; cursor:pointer; transition:border-color 0.2s; }
.contract-template-card:hover { border-color:var(--primary); }
.ct-header { display:flex; align-items:center; gap:10px; }
.ct-icon { font-size:24px; }
.ct-info { flex:1; }
.ct-name { font-size:14px; font-weight:600; }
.ct-desc { font-size:11px; color:var(--text-hint); }
.ct-arrow { color:var(--text-hint); }

.contract-template-desc { font-size:12px; color:var(--text-hint); margin-bottom:10px; }
.contract-template-sections { max-height:400px; overflow-y:auto; }
.ct-section { margin-bottom:12px; padding-bottom:10px; border-bottom:1px solid var(--border); }
.ct-section:last-child { border-bottom:none; }
.ct-section-title { font-size:13px; font-weight:600; color:var(--primary); margin-bottom:4px; }
.ct-section-content { font-size:12px; color:var(--text-main); line-height:1.6; }

.contract-draft-card { background:var(--bg-card); border:1px solid var(--border); border-radius:8px; padding:12px; margin-bottom:8px; }
.cd-header { display:flex; align-items:center; gap:8px; margin-bottom:4px; }
.cd-status { padding:2px 8px; border-radius:10px; font-size:11px; font-weight:500; }
.status-编辑中 { background:#E0E7FF; color:#3730A3; }
.status-待审核 { background:#FEF3C7; color:#92400E; }
.status-已审核 { background:#D1FAE5; color:#065F46; }
.status-已提交 { background:#DBEAFE; color:#1E40AF; }
.status-已退回 { background:#FEE2E2; color:#991B1B; }
.cd-name { font-size:14px; font-weight:600; }
.cd-meta { font-size:11px; color:var(--text-hint); }
.cd-project { font-size:12px; color:var(--text-sub); margin-top:2px; }
.cd-actions { display:flex; gap:6px; margin-top:8px; }
.btn-sm { padding:4px 10px; border:none; border-radius:4px; font-size:11px; cursor:pointer; }
.btn-edit { background:#E0E7FF; color:#3730A3; }
.btn-submit { background:#DBEAFE; color:#1E40AF; }
.btn-delete { background:#FEE2E2; color:#991B1B; }
.btn-add-section { background:var(--bg-card); border:1px dashed var(--border); color:var(--text-hint); padding:6px 12px; border-radius:6px; font-size:12px; cursor:pointer; margin-bottom:8px; }
.section-title-input { font-size:12px; }

/* === sub-tabs five === */
.sub-tabs.five { display:grid; grid-template-columns:repeat(5,1fr); }

/* === 第11轮：智能粘贴 + 试用期 === */
.trial-banner { background:#fff3cd; color:#856404; font-size:12px; text-align:center; padding:6px 10px; border-radius:8px; margin-bottom:10px; border:1px solid #ffeaa7; }
.smart-paste-modal { max-width:400px; }
.smart-paste-area { width:100%; min-height:120px; border:1px solid var(--border); border-radius:8px; padding:10px; font-size:13px; resize:vertical; font-family:inherit; }
.smart-paste-area:focus { outline:none; border-color:var(--primary); }
.smart-result-section { max-height:300px; overflow-y:auto; }
.smart-result-block { margin-bottom:12px; }
.smart-result-label { font-size:12px; color:var(--text-hint); margin-bottom:6px; }
.smart-tags { display:flex; flex-wrap:wrap; gap:6px; }
.smart-tag-item { display:inline-flex; align-items:center; gap:4px; padding:3px 8px; border-radius:12px; font-size:12px; }
.smart-tag-project { background:#dfe6e9; color:#2d3436; }
.smart-tag-person { background:#a29bfe20; color:#6c5ce7; }
.smart-tag-stage { background:#55efc420; color:#00b894; }
.smart-tag-x { cursor:pointer; color:#999; font-size:14px; }
.smart-tag-x:hover { color:#e17055; }
.smart-status-big { display:inline-block; padding:4px 14px; border-radius:14px; font-size:14px; font-weight:600; }
.smart-status-已完成 { background:#00b89420; color:#00b894; }
.smart-status-进行中 { background:#0984e320; color:#0984e3; }
.smart-status-待开始 { background:#fdcb6e20; color:#d4a017; }
.smart-status-有问题 { background:#e1705520; color:#e17055; }
.smart-task-preview-list { display:flex; flex-direction:column; gap:8px; }
.smart-task-preview { background:var(--bg-card); border:1px solid var(--border); border-radius:8px; padding:8px 10px; }
.smart-task-preview-desc { font-size:13px; margin-bottom:4px; }
.smart-task-preview-meta { display:flex; flex-wrap:wrap; gap:4px; }
.smart-tag-mini { font-size:11px; padding:1px 6px; border-radius:8px; background:#dfe6e9; color:#2d3436; }
.smart-tag-unassigned { background:#e1705520; color:#e17055; }

.smart-task-list { display:flex; flex-direction:column; gap:8px; }
.smart-task-card { background:var(--bg-card); border:1px solid var(--border); border-left:3px solid #e17055; border-radius:8px; padding:10px; }
.smart-task-header { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-bottom:6px; }
.smart-status-tag { font-size:11px; padding:1px 8px; border-radius:8px; }
.smart-project-tag { font-size:11px; color:var(--text-hint); }
.smart-from { font-size:11px; color:var(--text-hint); margin-left:auto; }
.smart-task-desc { font-size:13px; line-height:1.5; }
.smart-task-meta { font-size:11px; color:var(--text-hint); margin-top:4px; }
.trial-edit-hint { background:#fff3cd; color:#856404; font-size:12px; padding:4px 8px; border-radius:6px; margin-bottom:10px; }

/* === 第12轮：设计成果清单与报价标准 === */
.deliverable-checklist { margin:8px 0; }
.deliverable-item { border:1px solid #e0e0e0; border-radius:8px; padding:10px; margin-bottom:8px; background:#fafafa; }
.deliverable-item.required { border-left:3px solid #e74c3c; }
.deliverable-item .di-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:4px; }
.di-name { font-size:13px; font-weight:500; }
.di-format { font-size:11px; color:var(--text-hint); }
.di-desc { font-size:11px; color:#666; line-height:1.4; margin-bottom:6px; }
.di-upload { margin-top:6px; }
.di-uploaded { background:#d4edda; color:#155724; padding:4px 8px; border-radius:4px; font-size:12px; margin-bottom:4px; display:flex; justify-content:space-between; align-items:center; }
.di-pending { background:#cce5ff; color:#004085; padding:4px 8px; border-radius:4px; font-size:12px; margin-bottom:4px; }
.req-flag { background:#e74c3c; color:#fff; font-size:10px; padding:1px 5px; border-radius:3px; margin-right:4px; }
.opt-flag { background:#6c757d; color:#fff; font-size:10px; padding:1px 5px; border-radius:3px; margin-right:4px; }
.btn-upload-small { background:var(--primary); color:#fff; border:none; padding:4px 12px; border-radius:4px; font-size:12px; cursor:pointer; }
.btn-tiny { background:#e74c3c; color:#fff; border:none; padding:2px 8px; border-radius:3px; font-size:11px; cursor:pointer; }
.cd-desc { font-size:12px; color:#666; margin:4px 0; }
.cd-warn { background:#fff3cd; color:#856404; padding:4px 8px; border-radius:4px; font-size:12px; margin:4px 0; }
.cd-info { background:#e7f3ff; color:#004085; padding:4px 8px; border-radius:4px; font-size:12px; margin:4px 0; }

/* 成果状态列表 */
.deliverable-status-list { }
.ds-project { border:1px solid #e0e0e0; border-radius:8px; padding:10px; margin-bottom:10px; }
.ds-project-name { font-size:14px; font-weight:600; margin-bottom:6px; }
.ds-stage { display:flex; align-items:center; gap:6px; padding:4px 0; font-size:12px; border-bottom:1px solid #f0f0f0; flex-wrap:wrap; }
.ds-stage.complete { background:#f0fff0; border-radius:4px; padding:4px 6px; }
.ds-icon { font-size:14px; }
.ds-name { min-width:140px; }
.ds-status { font-size:11px; color:var(--text-hint); }
.ds-detail { font-size:11px; color:var(--primary); cursor:pointer; margin-left:auto; }
.ds-items { width:100%; margin-top:4px; padding-left:20px; }
.ds-item { font-size:11px; padding:2px 0; color:#666; }
.ds-item.done { color:#155724; }
.ds-item.req { font-weight:500; }
.ds-uploader { color:var(--text-hint); margin-left:8px; }

/* 报价标准弹窗 */
.quote-brand { border:1px solid #e0e0e0; border-radius:8px; padding:12px; margin-bottom:12px; }
.qb-title { font-size:15px; font-weight:600; color:var(--primary); margin-bottom:4px; }
.qb-desc { font-size:12px; color:#666; margin-bottom:6px; }
.qb-render, .qb-soft { font-size:12px; color:#555; margin-bottom:4px; }
.qb-spaces { display:flex; flex-direction:column; gap:8px; margin-top:8px; }
.qb-space { background:#f8f9fa; border-radius:6px; padding:8px; }
.qbs-type { font-size:13px; font-weight:600; }
.qbs-unit { font-size:11px; color:var(--text-hint); font-weight:400; }
.qbs-note { font-size:11px; color:#888; margin:2px 0 4px; }
.qbs-tiers { display:flex; flex-wrap:wrap; gap:4px; }
.qbs-tier { background:#fff; border:1px solid #e0e0e0; border-radius:4px; padding:2px 8px; font-size:11px; }
.quote-note { background:#e7f3ff; color:#004085; padding:8px 12px; border-radius:6px; font-size:12px; margin-bottom:12px; }

/* ===== 第13轮：6业务阶段+子阶段明细样式 ===== */
.biz-stage-timeline { display:flex; flex-direction:column; gap:0; }
.biz-stage-timeline.compact { gap:0; }
.biz-stage-node { 
  border-left:3px solid #e0e0e0; 
  padding:10px 0 10px 14px; 
  margin-left:6px; 
  position:relative;
  transition: all 0.2s;
}
.biz-stage-node.complete { border-left-color:var(--success); }
.biz-stage-node.current { border-left-color:var(--primary-light); background:linear-gradient(90deg, rgba(74,111,165,0.05), transparent); }
.biz-stage-node.pending { border-left-color:#e0e0e0; opacity:0.7; }
.biz-stage-node.confirming { border-left:3px solid #d63031; background:linear-gradient(90deg, rgba(214,48,49,0.10), transparent); animation: stageConfirmPulse 1.6s ease-in-out infinite; }
.biz-stage-node.confirming .biz-stage-name { color:#d63031; font-weight:700; }
.biz-stage-node.confirming::before { background:#d63031; box-shadow:0 0 0 3px rgba(214,48,49,0.18); }
@keyframes stageConfirmPulse { 0%,100% { background:linear-gradient(90deg, rgba(214,48,49,0.10), transparent); } 50% { background:linear-gradient(90deg, rgba(214,48,49,0.20), transparent); } }
.biz-stage-node::before {
  content:''; position:absolute; left:-7px; top:14px; width:11px; height:11px; border-radius:50%;
  background:#e0e0e0; border:2px solid #fff;
}
.biz-stage-node.complete::before { background:var(--success); }
.biz-stage-node.current::before { background:var(--primary-light); box-shadow:0 0 0 3px rgba(74,111,165,0.2); }
.biz-stage-header { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.biz-stage-icon { font-size:16px; }
.biz-stage-name { font-size:14px; font-weight:600; color:var(--text-main); }
.biz-stage-badge { font-size:11px; padding:1px 8px; border-radius:10px; font-weight:500; }
.biz-stage-badge.complete { background:#e6f9f0; color:var(--success); }
.biz-stage-badge.current { background:#e8effa; color:var(--primary-light); }
.biz-stage-badge.pending { background:#f0f0f0; color:var(--text-hint); }
.biz-stage-time { font-size:11px; color:var(--text-sub); margin-top:3px; padding-left:22px; }
.biz-substages { display:flex; flex-direction:column; gap:3px; margin-top:6px; padding-left:22px; }
.biz-substage { 
  display:flex; align-items:flex-start; gap:5px; 
  font-size:12px; padding:3px 0;
  border-radius:4px;
}
.biz-substage .ss-icon { flex-shrink:0; }
.biz-substage .ss-name { font-weight:500; color:var(--text-main); }
.biz-substage .ss-desc { color:var(--text-hint); font-size:11px; }
.biz-substage.done { color:var(--success); }
.biz-substage.done .ss-name { color:var(--success); }
.biz-substage.current { background:#e8effa; padding:3px 6px; }
.biz-substage.current .ss-name { color:var(--primary-light); }
.biz-substage.pending { opacity:0.6; }
/* 紧凑模式（生产端） */
.biz-stage-timeline.compact .biz-stage-node { padding:6px 0 6px 12px; }
.biz-stage-timeline.compact .biz-substages { flex-direction:row; flex-wrap:wrap; gap:4px; padding-left:22px; }
.biz-substage-tag {
  display:inline-flex; align-items:center; gap:2px;
  font-size:11px; padding:2px 8px; border-radius:10px;
  background:#f5f6fa; color:var(--text-sub);
}
.biz-substage-tag.done { background:#e6f9f0; color:var(--success); }
.biz-substage-tag.current { background:#e8effa; color:var(--primary-light); font-weight:600; }
.biz-substage-tag.pending { background:#f5f6fa; color:var(--text-hint); }
/* 选择框样式 */
.select-input { 
  width:100%; padding:8px 10px; border:1px solid var(--border); 
  border-radius:var(--radius-sm); font-size:13px; background:#fff; 
  margin-bottom:8px;
}

/* ============ 第15轮：收入看板 ============ */
.income-dashboard { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.income-item { text-align:center; padding:10px 6px; background:#f5f6fa; border-radius:8px; cursor:pointer; transition:transform 0.15s; }
.income-item:active { transform:scale(0.96); }
.income-num { font-size:16px; font-weight:700; color:var(--primary); margin-bottom:2px; }
.income-num.warn { color:var(--danger); }
.income-label { font-size:10px; color:var(--text-hint); }
.pending-note { margin-top:8px; font-size:11px; color:var(--warning); text-align:center; }

/* ============ 第15轮：协助工作卡片 ============ */
.task-card.assist { border-left:3px solid #00B894; }
.assist-role-tag { font-size:10px; padding:2px 6px; border-radius:4px; background:#00B89420; color:#00B894; }
.task-collab { font-size:11px; color:#636e72; margin-top:4px; padding:3px 6px; background:#f5f6fa; border-radius:4px; }

/* ============ 第15轮：6个子tab ============ */
.sub-tabs.six { display:flex; }
.sub-tabs.six .sub-tab { flex:1; min-width:0; font-size:12px; padding:8px 2px; }

/* ============ 第15轮：协作人复选框 ============ */
.collab-checkboxes { max-height:120px; overflow-y:auto; border:1px solid var(--border); border-radius:6px; padding:6px; margin-bottom:8px; }
.collab-check { display:flex; align-items:center; gap:4px; font-size:12px; padding:3px 0; cursor:pointer; }
.collab-check input { width:auto; margin-right:4px; }

/* ============ 第15轮：绩效加/减分 ============ */
.bonus-deduction-summary { display:flex; gap:12px; margin-top:12px; }
.bonus-item { flex:1; text-align:center; padding:10px; border-radius:8px; }
.bonus-item:nth-child(1) { background:#00B89415; }
.bonus-item:nth-child(2) { background:#E1705515; }
.bonus-num { font-size:20px; font-weight:700; }
.bonus-num.plus { color:#00B894; }
.bonus-num.minus { color:#E17055; }
.bonus-label { font-size:11px; color:var(--text-hint); margin-top:2px; }
.perf-rank-badge { margin-top:6px; font-size:12px; color:var(--primary); background:#e8effa; padding:4px 10px; border-radius:12px; display:inline-block; }

.perf-card.bonus { border-left:3px solid #00B894; }
.perf-card.deduction { border-left:3px solid #E17055; }
.perf-card-score.plus { color:#00B894; font-weight:700; }
.perf-card-score.minus { color:#E17055; font-weight:700; }

.perf-rule-row.plus { background:#00B89408; }
.perf-rule-row.minus { background:#E1705508; }
.perf-rule-score.plus { color:#00B894; }
.perf-rule-score.minus { color:#E17055; }

/* ============ 第15轮：趋势图 ============ */
.trend-chart { display:flex; align-items:flex-end; gap:8px; height:120px; padding:10px 4px; overflow-x:auto; }
.trend-bar-item { display:flex; flex-direction:column; align-items:center; min-width:40px; height:100%; justify-content:flex-end; }
.trend-bar-fill { width:24px; min-height:4px; border-radius:4px 4px 0 0; transition:height 0.3s; }
.trend-bar-label { font-size:10px; color:var(--text-hint); margin-top:4px; }
.trend-bar-score { font-size:11px; font-weight:600; color:var(--text-main); }

/* ============ 第15轮：附加值明细 ============ */
.value-detail-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.value-detail-item { padding:10px; background:#f5f6fa; border-radius:8px; text-align:center; }
.vd-label { font-size:11px; color:var(--text-hint); margin-bottom:4px; }
.vd-num { font-size:16px; font-weight:700; color:var(--primary); }

.income-records { margin-top:12px; }
.section-subtitle { font-size:12px; font-weight:600; color:var(--text-sub); margin-bottom:6px; }
.income-record-row { display:flex; justify-content:space-between; align-items:center; padding:6px 8px; border-bottom:1px solid var(--border); font-size:12px; }
.ir-date { color:var(--text-hint); width:80px; }
.ir-source { flex:1; color:var(--text-sub); }
.ir-amount { font-weight:600; color:var(--primary); }

/* ============ 第15轮：奖章 ============ */
.medal-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.medal-card { padding:12px 8px; border-radius:10px; border:1px solid; text-align:center; }
.medal-icon { font-size:28px; margin-bottom:4px; }
.medal-name { font-size:13px; font-weight:600; color:var(--text-main); }
.medal-count { font-size:18px; font-weight:700; color:var(--primary); margin:2px 0; }
.medal-desc { font-size:10px; color:var(--text-hint); line-height:1.3; }

.award-record-card { display:flex; gap:10px; padding:10px; background:#f5f6fa; border-radius:8px; margin-bottom:8px; }
.award-medal-icon { font-size:28px; flex-shrink:0; }
.award-info { flex:1; }
.award-name { font-size:13px; font-weight:600; color:var(--text-main); }
.award-reason { font-size:12px; color:var(--text-sub); margin-top:2px; }
.award-meta { font-size:11px; color:var(--text-hint); margin-top:2px; }

.award-pending-note { background:#fff3cd; color:#856404; padding:8px 12px; border-radius:6px; font-size:12px; margin-bottom:10px; }
.medal-type-list { }
.medal-type-row { display:flex; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid var(--border); font-size:12px; }
.medal-type-icon { font-size:20px; width:28px; text-align:center; }
.medal-type-name { font-weight:600; min-width:80px; }
.medal-type-desc { flex:1; color:var(--text-sub); }
.medal-type-status { font-size:10px; color:var(--warning); background:#fff3cd; padding:2px 6px; border-radius:4px; }

/* ===== 验收单样式 (Task #70) ===== */
.acceptance-summary { margin-top:8px; }
.acceptance-stats { display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; font-size:12px; }
.acceptance-stats .stat-item { background:var(--bg-card); padding:4px 10px; border-radius:4px; color:var(--text-sub); }
.acceptance-form-row { transition:background 0.2s; }
.acceptance-form-row:hover { background:#f8f9fa; }
.modal-header { display:flex; justify-content:space-between; align-items:center; padding:12px 16px; border-bottom:1px solid var(--border); }
.modal-header h3 { font-size:16px; margin:0; }
.modal-close { background:none; border:none; font-size:24px; cursor:pointer; color:var(--text-sub); padding:0; line-height:1; }
.modal-body { padding:12px 16px; }
.modal-footer { padding:10px 16px; border-top:1px solid var(--border); display:flex; justify-content:flex-end; gap:8px; }

/* ===== 设计问卷样式 (Task #71) ===== */
.questionnaire-item { border-radius:6px; transition:background 0.2s; }

/* ===== 问卷iframe弹窗样式 ===== */
.modal-iframe { max-width:420px; width:92%; max-height:90vh; height:90vh; display:flex; flex-direction:column; background:#fff; border-radius:10px; overflow:hidden; padding:0; }
.modal-iframe-header { display:flex; justify-content:space-between; align-items:center; padding:12px 16px; border-bottom:1px solid var(--border); background:var(--bg-card); }
.modal-iframe-header h3 { font-size:15px; margin:0; flex:1; }
.modal-close-btn { background:none; border:none; font-size:18px; color:#999; cursor:pointer; padding:4px 8px; border-radius:4px; }
.modal-close-btn:hover { background:#f0f0f0; color:#333; }
.modal-iframe-body { flex:1; overflow:hidden; position:relative; }
.questionnaire-iframe { width:100%; height:100%; border:none; display:block; }
.modal-iframe-footer { padding:12px 16px; border-top:1px solid var(--border); background:var(--bg-card); }

/* ===== 概算单样式 (Task #71) ===== */
.be-category { margin-bottom:10px; }
.be-item-row { font-size:12px; }
.be-item-row:hover { background:#f8f9fa; }

/* ===== 问题反馈样式 (v20) ===== */
.issue-list { display:flex; flex-direction:column; gap:4px; }
.issue-row { display:flex; align-items:center; gap:8px; padding:8px 10px; border:1px solid #eee; border-radius:6px; cursor:pointer; font-size:13px; transition:background 0.2s; }
.issue-row:hover { background:#f8f9fa; }
.issue-status-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.issue-title-text { flex:1; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.issue-proj-tag { font-size:11px; color:#636e72; background:#f0f0f0; padding:2px 6px; border-radius:4px; }
.issue-status-tag { font-size:11px; font-weight:600; }
.badge-warn { display:inline-block; background:#e17055; color:#fff; font-size:10px; padding:2px 8px; border-radius:10px; margin-left:6px; vertical-align:middle; }
.issue-detail-row { padding:4px 0; font-size:13px; border-bottom:1px solid #f5f5f5; }
.detail-label { color:#636e72; font-weight:500; }
.btn-delete { color:#e74c3c !important; border-color:#e74c3c40 !important; }
.btn-delete:hover { background:#e74c3c10 !important; }

/* ===== 并行进度样式 (v20) ===== */
.parallel-stage-list { display:flex; flex-direction:column; gap:6px; margin-bottom:12px; }
.parallel-stage-item { padding:8px 10px; border:1px solid #eee; border-radius:6px; }
.parallel-stage-item.current { background:#e8f5e9; border-color:#27ae6040; }
.checkbox-label { display:flex; align-items:center; gap:6px; cursor:pointer; font-size:13px; }
.checkbox-label input[type="checkbox"] { width:16px; height:16px; }
.ps-icon { font-size:16px; }
.ps-tag { font-size:10px; color:#27ae60; background:#27ae6015; padding:1px 6px; border-radius:4px; margin-left:4px; }
.parallel-substage-select { margin-top:4px; }
.parallel-info { padding:4px 0; margin-bottom:4px; }
.parallel-tag { display:inline-block; font-size:11px; color:#6c5ce7; background:#6c5ce715; padding:2px 8px; border-radius:4px; margin-right:4px; }

/* ===== 业主端快捷操作 (v20) ===== */
.client-project-card .quick-actions { margin-bottom:12px; }

/* ===== 业主端首页待办汇总样式 ===== */
.client-todo-summary { background:linear-gradient(135deg, #667eea 0%, #764ba2 100%); color:#fff; border:none; }
.client-todo-summary .section-title { color:#fff; font-size:15px; }
.todo-summary-list { display:flex; flex-direction:column; gap:6px; }
.todo-summary-item { display:flex; align-items:center; gap:10px; padding:10px 12px; background:rgba(255,255,255,0.15); border-radius:8px; cursor:pointer; transition:background 0.2s; }
.todo-summary-item:hover { background:rgba(255,255,255,0.25); }
.todo-summary-item .todo-icon { font-size:18px; flex-shrink:0; }
.todo-summary-item .todo-label { flex:1; font-size:13px; font-weight:500; }
.todo-summary-item .todo-badge { font-size:11px; padding:2px 8px; border-radius:10px; color:#fff; font-weight:600; min-width:20px; text-align:center; }
.todo-summary-item .todo-badge-todo { background:rgba(255,255,255,0.3); }
.todo-summary-item .todo-arrow { font-size:16px; opacity:0.6; }
.todo-empty { text-align:center; padding:16px; font-size:14px; opacity:0.9; }

@keyframes highlightFlash {
  0% { background-color: rgba(255,235,59,0.3); }
  50% { background-color: rgba(255,235,59,0.15); }
  100% { background-color: transparent; }
}

/* ===== v21: 可滚动子标签 ===== */
.scroll-tabs { display:flex; overflow-x:auto; white-space:nowrap; -webkit-overflow-scrolling:touch; gap:0; padding:0 12px; scrollbar-width:none; }
.scroll-tabs::-webkit-scrollbar { display:none; }
.scroll-tabs .sub-tab { flex-shrink:0; padding:8px 14px; }

/* ===== v22: 我的页子标签换行布局（避免第 7 个页签被横滑挤出屏幕）===== */
.wrap-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  overflow: visible;
  white-space: normal;
}
.wrap-tabs .sub-tab {
  flex: 1 1 28%;
  min-width: 84px;
  padding: 8px 6px;
  font-size: 12px;
  white-space: nowrap;
}
.wrap-tabs .sub-tab.active { background: #fff; }

/* ===== v21: 紧急任务样式 ===== */
.claim-card.urgent { border:2px solid #e74c3c; background:#fff5f5; animation:pulseRed 2s infinite; }
@keyframes pulseRed { 0%,100% { box-shadow:0 0 0 rgba(231,76,60,0); } 50% { box-shadow:0 0 8px rgba(231,76,60,0.3); } }
.reg-card.urgent { border:2px solid #e74c3c; background:#fff5f5; }

/* ===== v21: 制度板块样式 ===== */
.reg-card { padding:12px; border:1px solid #eee; border-radius:8px; margin-bottom:8px; cursor:pointer; transition:background 0.2s; }
.reg-card:hover { background:#f8f9fa; }
.reg-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.reg-cat { font-size:11px; padding:2px 8px; border-radius:4px; font-weight:500; }
.reg-status { font-size:12px; font-weight:600; }
.reg-title { font-size:14px; font-weight:600; margin-bottom:4px; }
.reg-meta { font-size:12px; color:#636e72; margin-bottom:4px; }
.reg-desc { font-size:12px; color:#636e72; line-height:1.5; }
.reg-actions { display:flex; gap:6px; margin-top:8px; flex-wrap:wrap; }
.reg-detail-meta { display:flex; gap:8px; align-items:center; margin-bottom:12px; flex-wrap:wrap; }
.reg-detail-info { background:#f8f9fa; padding:12px; border-radius:8px; margin-bottom:12px; font-size:13px; line-height:2; }
.reg-detail-desc { background:#fff8e1; padding:10px; border-radius:8px; margin-bottom:12px; font-size:13px; line-height:1.6; }
.reg-detail-content { font-size:13px; line-height:1.8; white-space:pre-wrap; padding:12px; background:#f5f6fa; border-radius:8px; }
.reg-read-confirm { margin-top:12px; }

/* ===== v21: 觅邸文化板块样式 ===== */
.culture-hero { background:linear-gradient(135deg, #2C3E6B 0%, #4A6FA5 100%); color:#fff; text-align:center; padding:24px 16px; }
.culture-slogan { font-size:20px; font-weight:700; margin-bottom:10px; letter-spacing:2px; }
.culture-story { font-size:13px; line-height:1.8; opacity:0.9; }
.culture-vision, .culture-mission { font-size:15px; font-weight:500; color:#2C3E6B; padding:8px 0; }
.culture-values { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.culture-value-card { background:#f8f9fa; border-radius:8px; padding:12px; text-align:center; }
.culture-value-icon { font-size:28px; margin-bottom:6px; }
.culture-value-title { font-size:13px; font-weight:600; margin-bottom:4px; color:#2C3E6B; }
.culture-value-desc { font-size:11px; color:#636e72; line-height:1.5; }
.culture-reading-hint { text-align:center; padding:8px 0; }
.culture-reading-hint p { font-size:13px; color:#636e72; margin-bottom:6px; }

/* ===== v21: 每日学习读书板块样式 ===== */
.reading-best-card { background:linear-gradient(135deg, #fffcf0 0%, #fff8e1 100%); border:1px solid #F39C1240; border-radius:8px; padding:12px; }
.reading-best-title { font-size:15px; font-weight:700; color:#F39C12; margin-bottom:4px; }
.reading-best-meta { font-size:12px; color:#636e72; margin-bottom:6px; }
.reading-best-content { font-size:13px; line-height:1.6; color:#1A1F36; margin-bottom:6px; }
.reading-best-votes { font-size:13px; font-weight:600; color:#F39C12; }
.reading-share-card { border:1px solid #eee; border-radius:8px; padding:12px; margin-bottom:8px; }
.reading-share-title { font-size:14px; font-weight:600; margin-bottom:4px; }
.reading-share-meta { font-size:12px; color:#636e72; margin-bottom:4px; }
.reading-share-content { font-size:13px; color:#1A1F36; line-height:1.6; margin-bottom:6px; }
.reading-share-actions { display:flex; gap:6px; flex-wrap:wrap; }
.reading-share-full { font-size:13px; line-height:1.8; white-space:pre-wrap; padding:12px; background:#f5f6fa; border-radius:8px; }
.reading-book-card { border:1px solid #eee; border-radius:8px; padding:12px; margin-bottom:8px; cursor:pointer; transition:background 0.2s; }
.reading-book-card:hover { background:#f8f9fa; }
.reading-book-title { font-size:14px; font-weight:600; margin-bottom:4px; }
.reading-book-meta { font-size:12px; color:#636e72; margin-bottom:4px; }
.reading-book-desc { font-size:12px; color:#636e72; line-height:1.5; }
.reading-plan { background:#f8f9fa; border-radius:8px; padding:12px; margin-top:8px; }
.reading-plan-item { display:flex; justify-content:space-between; align-items:center; padding:4px 8px; font-size:13px; border-radius:4px; }
.reading-plan-item.current { background:#fff8e1; font-weight:600; }
.reading-plan-item.done { opacity:0.5; }
.btn-voted { opacity:0.6; cursor:default !important; }
.form-hint { font-size:12px; color:#636e72; padding:8px 0; line-height:1.5; }

/* ============ 任务效能看板样式 ============ */
.task-urgent-border { border-left:3px solid #d63031 !important; }
.eff-trend-chart { display:flex; align-items:flex-end; gap:4px; height:140px; padding:10px 4px; overflow-x:auto; }
.eff-trend-col { display:flex; flex-direction:column; align-items:center; flex:1; min-width:36px; height:100%; justify-content:flex-end; }
.eff-trend-bar { width:100%; max-width:32px; border-radius:4px 4px 0 0; position:relative; min-height:8px; transition:height 0.3s; }
.eff-trend-val { position:absolute; top:-16px; left:50%; transform:translateX(-50%); font-size:10px; color:#636e72; white-space:nowrap; }
.eff-trend-label { font-size:10px; color:#636e72; margin-top:4px; white-space:nowrap; }
.eff-rank-item { display:flex; align-items:center; gap:8px; padding:8px 4px; border-bottom:1px solid #f0f0f0; cursor:pointer; }
.eff-rank-item:active { background:#f5f6fa; }
.eff-rank-pos { width:24px; height:24px; border-radius:50%; background:#dfe6e9; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; color:#636e72; flex-shrink:0; }
.eff-rank-item:nth-child(1) .eff-rank-pos { background:#ffd700; color:#fff; }
.eff-rank-item:nth-child(2) .eff-rank-pos { background:#c0c0c0; color:#fff; }
.eff-rank-item:nth-child(3) .eff-rank-pos { background:#cd7f32; color:#fff; }
.eff-rank-info { flex:1; min-width:0; }
.eff-rank-name { font-size:13px; font-weight:500; margin-bottom:3px; }
.eff-rank-bar-bg { height:6px; background:#f0f0f0; border-radius:3px; overflow:hidden; }
.eff-rank-bar-fill { height:100%; border-radius:3px; transition:width 0.3s; }
.eff-rank-stats { display:flex; gap:6px; font-size:11px; flex-shrink:0; }
.eff-task-item { display:flex; align-items:flex-start; gap:8px; padding:6px 4px; border-bottom:1px solid #f5f5f5; }
.eff-task-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; margin-top:5px; }
.btn-tiny { font-size:11px; padding:2px 8px; border:1px solid #dfe6e9; border-radius:4px; background:#fff; color:#636e72; cursor:pointer; }
.btn-tiny:active { background:#f5f6fa; }

/* ============ 正式报价单（业主端只读） ============ */
.fq-wrap { border-top: 3px solid #0984e3; }
.fq-readonly-tag { float:right; font-size:11px; font-weight:400; color:#d63031; background:#fdeaea; padding:2px 8px; border-radius:10px; }
.fq-meta { font-size:11px; color:#888; margin-bottom:10px; line-height:1.6; }
.fq-summary { background:#f8fbff; border:1px solid #d6e8fb; border-radius:10px; padding:10px; margin-bottom:12px; }
.fq-top-row { display:flex; align-items:center; gap:8px; padding:6px 0; border-bottom:0.5px solid #e8f1fc; }
.fq-top-idx { width:20px; height:20px; border-radius:50%; background:#0984e3; color:#fff; font-size:11px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.fq-top-info { flex:1; min-width:0; }
.fq-top-name { font-size:13px; color:#2d3436; font-weight:500; }
.fq-top-remark { font-size:10.5px; color:#a0a8b0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fq-top-amt { font-size:13px; font-weight:600; color:#0984e3; flex-shrink:0; }
.fq-total-row { display:flex; justify-content:space-between; align-items:center; padding:10px 4px 2px; font-size:13px; color:#2d3436; font-weight:500; }
.fq-total-row b { font-size:19px; color:#d63031; font-weight:700; }
.fq-tabs { display:flex; gap:4px; margin-bottom:8px; flex-wrap:wrap; }
.fq-tab { font-size:12px; padding:5px 10px; border-radius:14px; background:#f1f3f5; color:#636e72; cursor:pointer; }
.fq-tab.active { background:#0984e3; color:#fff; font-weight:500; }
.fq-pane { display:none; }
.fq-pane.active { display:block; }
.fq-sec-title { font-size:13px; font-weight:600; color:#0984e3; padding:10px 2px 4px; }
.fq-block { border:0.5px solid #e5e9ef; border-radius:8px; margin-bottom:6px; overflow:hidden; }
.fq-block-head { display:flex; justify-content:space-between; align-items:center; padding:9px 10px; background:#fafbfc; font-size:12.5px; color:#2d3436; font-weight:500; cursor:pointer; }
.fq-cat-head { background:#f4f8fd; }
.fq-block-head.open { background:#eef4fb; }
.fq-block-right { display:flex; align-items:center; gap:8px; }
.fq-block-right b { font-size:12.5px; color:#0984e3; }
.fq-arrow { font-style:normal; font-size:11px; color:#b2bec3; transition:transform .15s; }
.fq-block-head.open .fq-arrow { transform:rotate(90deg); }
.fq-block-body { padding:2px 10px 8px; }
.fq-item { padding:6px 0; border-bottom:0.5px solid #f4f6f8; }
.fq-item:last-child { border-bottom:none; }
.fq-item-main { display:flex; align-items:baseline; gap:6px; }
.fq-no { font-size:10px; color:#b2bec3; flex-shrink:0; width:16px; }
.fq-name { flex:1; font-size:12.5px; color:#2d3436; line-height:1.45; word-break:break-all; }
.fq-scheme { font-style:normal; color:#0984e3; background:#e9f3fd; border-radius:4px; padding:0 4px; margin-right:4px; font-size:11px; }
.fq-qty { font-size:11px; color:#636e72; flex-shrink:0; }
.fq-total { font-size:12px; color:#2d3436; font-weight:600; flex-shrink:0; }
.fq-item-sub { margin:3px 0 0 22px; display:flex; flex-wrap:wrap; gap:4px 12px; font-size:10.5px; color:#8a94a0; }
.fq-remark { max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fq-craft { width:100%; font-size:10.5px; color:#9aa4af; line-height:1.55; background:#fafbfc; border-radius:6px; padding:5px 7px; margin-top:2px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.fq-subtotal-row { display:flex; justify-content:space-between; padding:7px 2px 0; margin-top:4px; border-top:1px dashed #dfe6e9; font-size:12px; color:#636e72; }
.fq-subtotal-row b { color:#0984e3; font-size:13px; }
.fq-fee-row { display:flex; justify-content:space-between; align-items:center; padding:6px 2px; font-size:12px; color:#2d3436; border-bottom:0.5px solid #f4f6f8; }
.fq-fee-note { font-style:normal; font-size:10.5px; color:#a0a8b0; }
.fq-fee-row b { color:#2d3436; }
.fq-grand-row { display:flex; justify-content:space-between; align-items:center; margin-top:8px; padding:10px; background:#fff8f0; border:1px solid #f5dcb8; border-radius:8px; font-size:12.5px; color:#2d3436; font-weight:500; }
.fq-grand-row b { font-size:16px; color:#e17055; }
.fq-diff-row { display:flex; justify-content:space-between; align-items:center; margin-top:8px; padding:10px; background:#fdeaea; border:1px solid #f5c2c2; border-radius:8px; font-size:12.5px; color:#2d3436; font-weight:500; }
.fq-diff-row b { font-size:16px; color:#d63031; }
.fq-notes { padding:4px 2px; }
.fq-note { font-size:11.5px; color:#636e72; line-height:1.7; padding:3px 0; border-bottom:0.5px dashed #f0f2f4; }
.fq-footer { margin-top:10px; padding-top:8px; border-top:1px solid #f0f2f4; font-size:10.5px; color:#b2bec3; text-align:center; }

/* ============================================================
   v22 桌面自适应（≥900px）· 左侧栏 + 宽内容区
   纯追加：不改任何既有规则；仅在 body.has-tabbar 时启用侧栏，
   登录页 / 访客预览页不受影响。
   ============================================================ */
@media (min-width: 900px) {
  body { max-width: none; }

  /* --- 侧栏：复用底部 tab-bar 的同一份 DOM（bindTabs 已按 .tab-item 绑定） --- */
  body.has-tabbar .tab-bar {
    position: fixed; top: 0; bottom: 0; left: 0; right: auto;
    transform: none; width: 224px; max-width: 224px;
    flex-direction: column; justify-content: flex-start; gap: 4px;
    padding: 14px 12px; border-top: none;
    border-right: 1px solid var(--border); overflow-y: auto;
  }
  body.has-tabbar .tab-bar::before {
    content: "觅邸管理"; display: block; font-size: 15px; font-weight: 800;
    color: var(--primary); padding: 4px 10px 14px; letter-spacing: 1px;
  }
  body.has-tabbar .tab-item {
    flex: none; flex-direction: row; justify-content: flex-start;
    gap: 10px; padding: 11px 14px; border-radius: 10px;
  }
  body.has-tabbar .tab-item span:first-child { font-size: 18px; }
  body.has-tabbar .tab-item span:last-child  { font-size: 13px; }
  body.has-tabbar .tab-item:hover { background: #f6f8fc; }
  body.has-tabbar .tab-item.active { background: #eef2ff; }

  /* --- 内容区 --- */
  body.has-tabbar #app { margin-left: 224px; }
  body.has-tabbar .app-header { padding: 14px 28px; }
  body.has-tabbar .page { max-width: 1180px; margin: 0 auto; padding: 20px 28px 40px; }

  /* --- 登录 / 访客页：无侧栏，宽版居中 --- */
  body:not(.has-tabbar) .login-page { padding: 68px 24px 48px; }
  body:not(.has-tabbar) .login-page > * { width: 100%; max-width: 860px; margin-left: auto; margin-right: auto; }

  /* --- 模态框：底部弹层 → 居中窗口 --- */
  .modal { align-items: center; padding: 24px; }
  .modal-content { max-width: 760px; border-radius: 16px; max-height: 86vh; }
  .modal-iframe { max-width: 1120px; width: 86vw; height: 86vh; border-radius: 14px; max-height: 86vh; }

  /* --- 云同步角标：避开标题栏 --- */
  #cloudSyncBadge { top: auto; bottom: 14px; right: 16px; }

  /* --- 固定列数栅格放宽 --- */
  .quick-actions { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .daily-photos  { grid-template-columns: repeat(4, 1fr); }
  .summary-grid  { grid-template-columns: repeat(4, 1fr); }
  .stats-row     { grid-template-columns: repeat(4, 1fr); }
  .my-value-grid { grid-template-columns: repeat(4, 1fr); }
  .value-detail-grid { grid-template-columns: repeat(4, 1fr); }
  .medal-grid    { grid-template-columns: repeat(4, 1fr); }
  .culture-values { grid-template-columns: repeat(4, 1fr); }
  .sub-tabs.five { display: grid; grid-template-columns: repeat(5, 1fr); }
}

/* ===== 嵌入页（核算表 / 个人成长）===== */
.page-embed .embed-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff; border-radius: 10px; padding: 10px 14px; margin-bottom: 10px;
  box-shadow: var(--shadow-sm); }
.page-embed .embed-title { font-size: 14px; font-weight: 700; color: var(--text-main); }
.page-embed .embed-badge { font-size: 11px; padding: 2px 9px; border-radius: 10px;
  background: #e7f5ff; color: #1971c2; }
.page-embed .embed-hint { font-size: 11px; color: var(--text-hint); }
.page-embed .embed-frame { display: block; width: 100%; height: calc(100vh - 210px); border: 0;
  border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); }
@supports (height: 100dvh) { .page-embed .embed-frame { height: calc(100dvh - 210px); } }
@media (min-width: 900px) {
  .page-embed .embed-bar { padding: 12px 18px; }
  .page-embed .embed-frame { height: calc(100vh - 180px); }
  @supports (height: 100dvh) { .page-embed .embed-frame { height: calc(100dvh - 180px); } }
}

/* ===== 个人成长 · 个人全景档案 iframe ===== */
.hr-pano-wrap { margin-top: 10px; }
.hr-pano-frame { display: block; width: 100%; height: 78vh; min-height: 540px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff; }
@media (min-width: 900px) { .hr-pano-frame { height: 82vh; min-height: 620px; } }

/* ===== 我的 · 绩效评估 iframe（页内内嵌 HR 人才发展系统）===== */
.embed-mini { background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.embed-mini-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px; border-bottom: 1px solid var(--border); background: #fcfcfd; }
.embed-mini-title { font-size: 13.5px; font-weight: 700; color: var(--text-main); }
.embed-mini-hint { font-size: 11px; color: var(--text-hint); }
.embed-mini-link { margin-left: auto; font-size: 11.5px; color: #0984e3; text-decoration: none; }
.embed-mini .embed-badge { font-size: 11px; padding: 2px 9px; border-radius: 10px;
  background: #e7f5ff; color: #1971c2; }
.hr-perf-frame { display: block; width: 100%; height: calc(100vh - 265px); min-height: 560px;
  border: 0; background: #fff; }
@media (min-width: 900px) {
  .embed-mini-bar { padding: 12px 16px; }
  .hr-perf-frame { height: calc(100vh - 215px); min-height: 640px; }
}
