/* 大B端专用样式 */
:root {
  --b2b-primary: #1a3a6e;
  --b2b-dark:    #0d2147;
  --b2b-accent:  #0088d1;
  --b2b-soft:    #e0f3ff;
}

/* ── 基础页面框架 ── */
.mp-page { min-height: 100vh; max-width: 420px; margin: 0 auto; background: var(--color-bg); display: flex; flex-direction: column; box-shadow: 0 0 40px rgba(0,0,0,0.12); }
.mp-header { padding: 12px 16px; background: linear-gradient(135deg, var(--b2b-primary) 0%, var(--b2b-dark) 100%); color: #fff; font-weight: 600; font-size: 17px; text-align: center; position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; }
.mp-header .back { font-size: 20px; cursor: pointer; opacity: 0.8; text-decoration: none; color: #fff; }
.mp-header .title { flex: 1; text-align: center; }
.mp-header .right-action { font-size: 13px; color: rgba(255,255,255,0.85); cursor: pointer; }
.mp-content { flex: 1; padding: 16px; overflow-y: auto; }

/* ── 卡片 ── */
.card { background: #fff; border-radius: 14px; border: 1px solid var(--color-border); padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.card-title { font-size: 15px; font-weight: 600; color: #1f2937; margin: 0 0 10px; display: flex; align-items: center; justify-content: space-between; }
.card-title .more { font-size: 12px; color: var(--b2b-accent); font-weight: 400; }

/* ── 统计格 ── */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.stat-cell { background: #fff; border-radius: 12px; padding: 14px; text-align: center; border: 1px solid var(--color-border); }
.stat-cell .val { font-size: 26px; font-weight: 700; color: var(--b2b-primary); line-height: 1; }
.stat-cell .lbl { font-size: 11px; color: var(--color-muted); margin-top: 4px; }
.stat-cell.accent .val { color: var(--b2b-accent); }
.stat-cell.success .val { color: var(--color-success); }
.stat-cell.warn .val { color: var(--color-warning); }

/* ── 状态标签 ── */
.tag { display: inline-flex; align-items: center; font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 500; }
.tag-blue  { background: var(--b2b-soft); color: var(--b2b-accent); }
.tag-green { background: var(--color-success-soft); color: var(--color-success); }
.tag-warn  { background: var(--color-warning-soft); color: var(--color-warning); }
.tag-gray  { background: #f3f4f6; color: var(--color-muted); }
.tag-red   { background: var(--color-danger-soft); color: var(--color-danger); }
.tag-gold  { background: var(--color-accent-soft); color: #8a5a00; }

/* ── 列表项 ── */
.list-item { display: flex; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #f3f4f6; gap: 12px; }
.list-item:last-child { border-bottom: none; padding-bottom: 0; }
.li-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; background: var(--b2b-soft); }
.li-body { flex: 1; min-width: 0; }
.li-title { font-size: 14px; font-weight: 500; color: #1f2937; margin-bottom: 4px; }
.li-sub   { font-size: 12px; color: var(--color-muted); }
.li-right { text-align: right; flex-shrink: 0; }
.li-amt   { font-size: 15px; font-weight: 600; color: var(--b2b-primary); }
.li-date  { font-size: 11px; color: var(--color-muted); }

/* ── 按钮 ── */
.btn-primary { display: block; width: 100%; padding: 13px; border: none; border-radius: 12px; background: linear-gradient(135deg, var(--b2b-primary), var(--b2b-dark)); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { display: inline-block; padding: 9px 16px; border-radius: 10px; border: 1.5px solid var(--b2b-primary); background: #fff; color: var(--b2b-primary); font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; }
.btn-sm { display: inline-block; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--color-border); background: #fff; font-size: 12px; color: #374151; cursor: pointer; }

/* ── 表单 ── */
.form-group { margin-bottom: 14px; }
.form-label { font-size: 13px; color: #374151; margin-bottom: 6px; display: block; font-weight: 500; }
.form-input { width: 100%; padding: 10px 12px; border: 1.5px solid var(--color-border); border-radius: 10px; font-size: 14px; outline: none; font-family: inherit; box-sizing: border-box; }
.form-input:focus { border-color: var(--b2b-accent); }
.form-select { width: 100%; padding: 10px 12px; border: 1.5px solid var(--color-border); border-radius: 10px; font-size: 14px; background: #fff; outline: none; font-family: inherit; }

/* ── TabBar ── */
.tabbar { display: flex; border-top: 1px solid var(--color-border); background: #fff; padding: 6px 0 max(10px, env(safe-area-inset-bottom)); }
.tabbar a { flex: 1; text-align: center; font-size: 10px; color: var(--color-muted); padding: 4px; text-decoration: none; }
.tabbar a.active { color: var(--b2b-primary); font-weight: 600; }
.tabbar .ti { font-size: 20px; display: block; margin-bottom: 2px; }

/* ── 日历 ── */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-head { font-size: 11px; color: var(--color-muted); text-align: center; padding: 4px 0; }
.cal-day { font-size: 12px; text-align: center; padding: 6px 2px; border-radius: 8px; cursor: pointer; transition: background 0.12s; }
.cal-day:hover { background: var(--b2b-soft); }
.cal-day.today { background: var(--b2b-primary); color: #fff; font-weight: 700; }
.cal-day.has-task { position: relative; }
.cal-day.has-task::after { content: ''; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--b2b-accent); margin: 2px auto 0; }
.cal-day.done::after { background: var(--color-success); }
.cal-day.partial::after { background: var(--color-accent); }
.cal-day.empty { color: #d1d5db; }

/* ── 进度条 ── */
.progress-bar { height: 6px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--b2b-accent), var(--b2b-primary)); transition: width 0.3s; }

/* ── 步骤流程 ── */
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: flex; gap: 12px; padding-bottom: 16px; position: relative; }
.step:last-child { padding-bottom: 0; }
.step-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--b2b-soft); border: 2px solid var(--b2b-accent); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--b2b-accent); flex-shrink: 0; z-index: 1; }
.step-dot.done { background: var(--color-success); border-color: var(--color-success); color: #fff; }
.step-dot.active { background: var(--b2b-primary); border-color: var(--b2b-primary); color: #fff; }
.step::before { content: ''; position: absolute; left: 13px; top: 28px; width: 2px; height: calc(100% - 28px); background: #e5e7eb; }
.step:last-child::before { display: none; }
.step-body { flex: 1; }
.step-title { font-size: 13px; font-weight: 500; color: #1f2937; margin-bottom: 2px; }
.step-sub { font-size: 12px; color: var(--color-muted); }

/* ── 角色标记 ── */
.role-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--b2b-soft); color: var(--b2b-primary); font-weight: 600; }
.role-badge.director { background: #fff8e1; color: #856404; }

/* ── 空状态 ── */
.empty-state { text-align: center; padding: 40px 20px; color: var(--color-muted); }
.empty-state .ei { font-size: 40px; margin-bottom: 10px; }
.empty-state p { font-size: 14px; margin: 0; }
