* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; display: flex; min-height: 100vh; background: #f0f2f5; color: #333; }

.sidebar { width: 200px; background: #1a1a2e; color: #fff; padding: 20px 0; flex-shrink: 0; position: fixed; height: 100vh; }
.sidebar-title { padding: 0 20px 20px; font-size: 18px; font-weight: 700; border-bottom: 1px solid #333; margin-bottom: 10px; }
.nav-item { display: block; padding: 12px 20px; color: #aaa; text-decoration: none; transition: all .2s; font-size: 14px; }
.nav-item:hover, .nav-item.active { color: #fff; background: #16213e; }

.content { flex: 1; padding: 24px; overflow-y: auto; margin-left: 200px; }

.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.page-header h2 { font-size: 20px; font-weight: 600; }

.stats-bar { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.stat-card { background: #fff; border-radius: 8px; padding: 14px 20px; min-width: 130px; box-shadow: 0 1px 3px rgba(0,0,0,.08); cursor: pointer; transition: all .2s; border: 2px solid transparent; }
.stat-card:hover { border-color: #4361ee; }
.stat-card.active { border-color: #4361ee; background: #f0f4ff; }
.stat-card .label { font-size: 12px; color: #888; }
.stat-card .value { font-size: 24px; font-weight: 700; margin-top: 4px; }

.toolbar { display: flex; gap: 8px; margin-bottom: 16px; align-items: center; flex-wrap: wrap; }

.btn { padding: 7px 14px; border: none; border-radius: 6px; cursor: pointer; font-size: 13px; transition: all .2s; display: inline-flex; align-items: center; gap: 5px; }
.btn-primary { background: #4361ee; color: #fff; }
.btn-primary:hover { background: #3a56d4; }
.btn-success { background: #2ec4b6; color: #fff; }
.btn-success:hover { background: #25a99d; }
.btn-danger { background: #e63946; color: #fff; }
.btn-danger:hover { background: #cc2f3b; }
.btn-secondary { background: #e9ecef; color: #555; }
.btn-secondary:hover { background: #dee2e6; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-warn { background: #f59e0b; color: #fff; }
.btn-warn:hover { background: #d97706; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* 审核卡片 */
.review-cards { display: flex; flex-direction: column; gap: 16px; }
.review-card { background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.08); overflow: hidden; transition: all .3s; }
.review-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,.12); }
.review-card-focused { box-shadow: 0 0 0 2px #4361ee, 0 3px 12px rgba(67,97,238,.2); }

.review-card-header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: #fafbfc; border-bottom: 1px solid #f0f0f0; }
.review-card-header input[type="checkbox"] { cursor: pointer; width: 16px; height: 16px; }
.review-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.review-badge.multi { background: #fee2e2; color: #dc2626; border: 2px solid #f87171; }
.review-badge.single { background: #f3e8ff; color: #7c3aed; }
.review-title { font-size: 14px; font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.review-card-body { display: flex; gap: 16px; padding: 16px 18px; }
.review-cover { width: 120px; height: 90px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: #f3f4f6; display: flex; align-items: center; justify-content: center; }
.review-cover img { width: 100%; height: 100%; object-fit: cover; }
.review-cover-placeholder { color: #ccc; font-size: 28px; }
.review-info { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.review-field { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.5; }
.review-label { color: #888; white-space: nowrap; min-width: 40px; flex-shrink: 0; }
.review-links { display: flex; flex-wrap: wrap; gap: 6px; }
.review-link-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; background: #f0f4ff; border: 1px solid #c7d2fe; border-radius: 4px; font-size: 12px; color: #4361ee; text-decoration: none; white-space: nowrap; }
.review-link-chip:hover { background: #e0e7ff; }
.review-link { color: #4361ee; text-decoration: none; word-break: break-all; }
.review-link:hover { text-decoration: underline; }

.source-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.source-badge.ok { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.source-badge.warn { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.source-badge.danger { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.review-actions { display: flex; gap: 8px; padding: 10px 18px; border-top: 1px solid #f0f0f0; background: #fafbfc; flex-wrap: wrap; }

.review-intake-mode-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.review-intake-mode { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #e0e7ff; color: #3730a3; }
.review-intake-mode.disabled { background: #e5e7eb; color: #6b7280; }
.review-intake-form { display: grid; gap: 8px; margin-bottom: 16px; }
.review-intake-form label { font-size: 12px; font-weight: 700; color: #475569; }
.review-intake-form input { width: 100%; padding: 10px 12px; border: 1px solid #d9d9d9; border-radius: 8px; font-size: 13px; }
.review-intake-form input:focus { outline: none; border-color: #4361ee; box-shadow: 0 0 0 3px rgba(67,97,238,.12); }
.review-intake-tip { font-size: 12px; color: #64748b; }
.review-intake-preview { border: 1px solid #dbeafe; border-radius: 12px; background: linear-gradient(135deg, #eff6ff, #f8fbff); padding: 16px; }
.review-intake-preview.danger { border-color: #fecaca; background: #fff1f2; }
.review-intake-preview-title { font-size: 14px; font-weight: 700; color: #0f172a; margin-bottom: 10px; }
.review-intake-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.review-intake-grid div { background: rgba(255,255,255,.72); border: 1px solid rgba(148,163,184,.22); border-radius: 10px; padding: 10px 12px; }
.review-intake-grid span { display: block; font-size: 11px; color: #64748b; margin-bottom: 4px; }
.review-intake-grid strong { font-size: 14px; color: #0f172a; }
.review-intake-preview-copy { font-size: 13px; color: #334155; line-height: 1.7; }
.review-intake-preview-note { margin-top: 12px; font-size: 12px; color: #1d4ed8; }
.review-intake-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.review-intake-steps span { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.86); border: 1px solid rgba(148,163,184,.18); font-size: 12px; color: #334155; }

/* 拆分审核 */
.review-split { padding: 0 18px 14px; }
.review-split-head { font-size: 12px; color: #888; margin-bottom: 8px; padding-top: 8px; border-top: 1px dashed #e5e7eb; }
.review-entry { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 6px; padding: 12px; margin-bottom: 8px; }
.review-entry-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.review-entry-title { font-size: 13px; font-weight: 600; }
.review-entry-meta { font-size: 11px; color: #999; }
.review-entry-fields { display: flex; flex-direction: column; gap: 4px; }
.review-entry-actions { display: flex; gap: 6px; margin-top: 8px; }
.review-note { color: #e63946; font-style: italic; }

/* 分页 */
.review-pagination { display: flex; gap: 10px; margin-top: 20px; align-items: center; justify-content: center; padding: 16px; }

/* 表格通用 */
.table-wrap { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #f0f0f0; }
th { background: #fafafa; font-weight: 600; color: #666; }
tr:hover { background: #f8f9ff; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal { background: #fff; border-radius: 10px; padding: 24px; min-width: 420px; max-width: 90vw; box-shadow: 0 8px 30px rgba(0,0,0,.15); }
.modal h3 { margin-bottom: 16px; font-size: 16px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; color: #666; margin-bottom: 4px; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 8px 10px; border: 1px solid #d9d9d9; border-radius: 6px; font-size: 13px; }
.form-group textarea { min-height: 60px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: #4361ee; box-shadow: 0 0 0 2px rgba(67,97,238,.15); }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }

/* Toast */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 10px 18px; border-radius: 6px; font-size: 13px; color: #fff; animation: toastIn .3s; }
.toast.success { background: #2ec4b6; }
.toast.error { background: #e63946; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

.empty-state { text-align: center; padding: 60px 20px; color: #999; }
.loading { text-align: center; padding: 40px; color: #999; }

/* 数据源管理 */
.source-card { background: #fff; border-radius: 8px; padding: 16px 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); display: flex; align-items: center; gap: 16px; }
.source-card .source-info { flex: 1; }
.source-card .source-name { font-size: 15px; font-weight: 600; }
.source-card .source-meta { font-size: 12px; color: #888; margin-top: 4px; }
.source-card .source-url { font-size: 12px; color: #4361ee; word-break: break-all; margin-top: 4px; }
.source-card .source-stats { display: flex; gap: 12px; font-size: 12px; color: #666; }
.source-card .source-actions { display: flex; gap: 6px; }
.source-list { display: flex; flex-direction: column; gap: 12px; }
.source-status { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.source-status.on { background: #2ec4b6; }
.source-status.off { background: #ccc; }

/* 内容分发 */
.dist-hero { background: linear-gradient(135deg, #0f172a, #1d4ed8); color: #fff; border-radius: 12px; padding: 24px; margin-bottom: 20px; box-shadow: 0 6px 20px rgba(15,23,42,.2); }
.dist-kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; margin-bottom: 8px; }
.dist-hero h3 { font-size: 22px; margin-bottom: 8px; }
.dist-hero p { color: rgba(255,255,255,.82); line-height: 1.6; max-width: 860px; }

.dist-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 20px; }
.dist-stat-card { background: #fff; border-radius: 10px; padding: 16px 18px; box-shadow: 0 1px 4px rgba(0,0,0,.08); border: 2px solid transparent; cursor: pointer; transition: all .2s; }
.dist-stat-card:hover { border-color: #93c5fd; transform: translateY(-1px); }
.dist-stat-card.active { border-color: #2563eb; background: #eff6ff; }
.dist-stat-title { font-size: 13px; color: #64748b; }
.dist-stat-value { font-size: 28px; font-weight: 700; margin: 6px 0; color: #0f172a; }
.dist-stat-meta { font-size: 12px; color: #64748b; line-height: 1.5; }

.dist-panel { background: #fff; border-radius: 12px; padding: 18px; box-shadow: 0 1px 4px rgba(0,0,0,.08); margin-bottom: 20px; }
.dist-batch-bar { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.dist-capacity-summary { margin: -4px 0 16px; padding: 12px 14px; border-radius: 10px; background: #f8fafc; border: 1px solid #dbe4f0; }
.dist-capacity-summary.is-ok { background: #f0fdf4; border-color: #86efac; }
.dist-capacity-summary.is-warn { background: #fffbeb; border-color: #fcd34d; }
.dist-capacity-summary.is-danger { background: #fef2f2; border-color: #fca5a5; }
.dist-capacity-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dist-capacity-chip { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid #dbe4f0; color: #334155; font-size: 12px; font-weight: 600; }
.dist-capacity-chip.is-ok { color: #166534; border-color: #86efac; background: #f0fdf4; }
.dist-capacity-chip.is-warn { color: #92400e; border-color: #fcd34d; background: #fffbeb; }
.dist-capacity-chip.is-danger { color: #b91c1c; border-color: #fca5a5; background: #fef2f2; }
.dist-capacity-note { margin-top: 10px; font-size: 12px; color: #64748b; line-height: 1.6; }
.dist-card-list { display: flex; flex-direction: column; gap: 14px; }
.dist-card { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; background: #fcfcfd; }
.dist-card-head { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-bottom: 1px solid #eef2f7; background: #fff; }
.dist-check { padding-top: 4px; }
.dist-card-title-wrap { flex: 1; min-width: 0; }
.dist-card-title-wrap h3 { font-size: 15px; line-height: 1.5; margin-bottom: 6px; word-break: break-word; }
.dist-card-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: #64748b; }
.dist-card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.dist-field { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
.dist-label { min-width: 40px; color: #64748b; flex-shrink: 0; }
.dist-pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.dist-card-actions { padding: 12px 16px; background: #fff; border-top: 1px solid #eef2f7; display: flex; gap: 8px; flex-wrap: wrap; }
.dist-pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; border: 1px solid transparent; }
.dist-pill.empty { background: #f8fafc; color: #64748b; border-color: #cbd5e1; }
.dist-pill.pending { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.dist-pill.done { background: #dcfce7; color: #166534; border-color: #86efac; }
.dist-pill.failed { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.dist-platform-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: #e0e7ff; color: #3730a3; font-size: 11px; font-weight: 700; }
.dist-table-title { font-weight: 600; color: #111827; }
.dist-table-sub { font-size: 12px; color: #64748b; margin-top: 3px; }

@media (max-width: 900px) {
  .dist-batch-bar { align-items: stretch; }
  .dist-card-head { flex-wrap: wrap; }
}

/* 项目中心 */
.pc-hero { background: linear-gradient(135deg, #101828, #1d4ed8); color: #fff; border-radius: 12px; padding: 24px; margin-bottom: 20px; box-shadow: 0 6px 20px rgba(15,23,42,.18); }
.pc-kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .78; margin-bottom: 8px; }
.pc-hero h3 { font-size: 22px; margin-bottom: 8px; }
.pc-hero p { color: rgba(255,255,255,.84); line-height: 1.6; max-width: 900px; }
.pc-group { margin-bottom: 24px; }
.pc-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pc-group-head h3 { font-size: 18px; color: #0f172a; }
.pc-group-head span { font-size: 12px; color: #64748b; }
.pc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pc-card { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 8px 24px rgba(15,23,42,.08); border: 1px solid #e5e7eb; position: relative; overflow: hidden; }
.pc-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--pc-accent, #2563eb); }
.pc-card.is-placeholder { opacity: .88; }
.pc-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pc-card-head h3 { font-size: 17px; color: #0f172a; margin-bottom: 4px; }
.pc-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: #ede9fe; color: #6d28d9; font-size: 11px; font-weight: 700; }
.pc-card-desc { font-size: 13px; line-height: 1.7; color: #475569; min-height: 66px; margin-bottom: 14px; }
.pc-card-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.pc-mini-stat { border: 1px solid #dbe4f0; border-radius: 12px; padding: 10px 12px; background: #f8fafc; }
.pc-mini-stat span { display: block; font-size: 12px; color: #64748b; margin-bottom: 6px; }
.pc-mini-stat strong { font-size: 27px; color: #0f172a; line-height: 1; }
.pc-mini-stat.big strong { font-size: 30px; }
.pc-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pc-alert { font-size: 13px; color: #64748b; }
.pc-alert.has-alert { color: #e11d48; font-weight: 700; }
.pc-breadcrumb { font-size: 12px; color: #64748b; margin-top: 4px; }
.pc-detail-top { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; margin-bottom: 22px; }
.pc-detail-main { background: linear-gradient(135deg, #fff, #eff6ff); border-radius: 16px; padding: 22px; border: 1px solid #dbeafe; box-shadow: 0 8px 20px rgba(37,99,235,.08); }
.pc-detail-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #1d4ed8; margin-bottom: 8px; }
.pc-detail-main h3 { font-size: 24px; margin-bottom: 8px; color: #0f172a; }
.pc-detail-main p { color: #475569; line-height: 1.7; margin-bottom: 14px; }
.pc-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: #e2e8f0; color: #334155; font-size: 12px; }
.pc-batch-tag { gap: 8px; padding-right: 6px; background: #dbeafe; color: #1e3a8a; }
.pc-batch-id { font-size: 12px; color: #0f172a; letter-spacing: .02em; }
.pc-copy-btn { border: 0; border-radius: 999px; background: #2563eb; color: #fff; font-size: 11px; font-weight: 700; padding: 5px 10px; cursor: pointer; }
.pc-copy-btn:hover { background: #1d4ed8; }
.pc-detail-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pc-stage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pc-stage { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 16px; box-shadow: 0 4px 12px rgba(15,23,42,.05); }
.pc-stage.running { border-color: #93c5fd; background: #eff6ff; }
.pc-stage.ready { border-color: #86efac; background: #f0fdf4; }
.pc-stage.warn { border-color: #fca5a5; background: #fef2f2; }
.pc-stage-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pc-stage-head h4 { font-size: 15px; color: #0f172a; }
.pc-stage-badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; background: #e2e8f0; color: #334155; font-size: 11px; font-weight: 700; }
.pc-stage-summary { font-size: 20px; font-weight: 700; color: #111827; margin-bottom: 8px; }
.pc-stage-hint { font-size: 12px; color: #64748b; line-height: 1.6; }
.pc-stage-progress-wrap { margin: 12px 0 10px; }
.pc-stage-progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 12px; color: #64748b; }
.pc-stage-current { margin-top: 10px; font-size: 13px; color: #0f172a; font-weight: 600; }
.pc-stage-live-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 12px; color: #334155; }
.pc-stage-activity { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pc-stage-chip { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.78); border: 1px solid rgba(148,163,184,.25); font-size: 12px; color: #334155; }
.pc-primary-summary { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; margin-bottom: 22px; }
.pc-primary-card { background: linear-gradient(135deg, #fff, #eff6ff); border-radius: 16px; padding: 22px; border: 1px solid #dbeafe; box-shadow: 0 8px 20px rgba(37,99,235,.08); }
.pc-primary-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #1d4ed8; margin-bottom: 8px; }
.pc-primary-card h3 { font-size: 24px; margin-bottom: 8px; color: #0f172a; }
.pc-primary-card p { color: #475569; line-height: 1.7; margin-bottom: 14px; }
.pc-primary-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pc-primary-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pc-summary-note { grid-column: 1 / -1; font-size: 13px; color: #64748b; padding: 2px 4px; }
.pc-meter { position: relative; height: 10px; border-radius: 999px; background: rgba(148,163,184,.18); overflow: hidden; }
.pc-meter-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #0ea5e9, #2563eb); transition: width .45s ease; }
.pc-meter.is-animated .pc-meter-fill { background-image: linear-gradient(90deg, #0ea5e9, #2563eb, #0ea5e9); background-size: 200% 100%; animation: pc-meter-slide 1.2s linear infinite; }
.pc-progress-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.pc-progress-step { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; font-size: 13px; color: #475569; }
.pc-progress-copy { display: flex; flex-direction: column; gap: 2px; }
.pc-progress-step small { display: block; margin-top: 4px; font-size: 11px; color: #64748b; }
.pc-progress-step.running { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
.pc-progress-step.ready { background: #f0fdf4; border-color: #86efac; color: #166534; }
.pc-progress-step.warn { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }
.pc-progress-dot { width: 10px; height: 10px; border-radius: 999px; background: currentColor; flex-shrink: 0; }
.pc-live-board { margin-bottom: 22px; padding: 18px 20px; border-radius: 16px; border: 1px solid #bfdbfe; background: linear-gradient(135deg, #eff6ff, #f8fbff 65%); box-shadow: 0 8px 24px rgba(37,99,235,.08); }
.pc-live-board.ready { border-color: #86efac; background: linear-gradient(135deg, #f0fdf4, #f8fffb 65%); }
.pc-live-board.warn { border-color: #fca5a5; background: linear-gradient(135deg, #fef2f2, #fff7f7 65%); }
.pc-live-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pc-live-head h3 { margin: 4px 0 0; font-size: 24px; color: #0f172a; }
.pc-live-detail { font-size: 14px; color: #334155; margin-bottom: 14px; line-height: 1.7; }
.pc-live-progress { margin-bottom: 12px; }
.pc-live-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: #334155; margin-top: 10px; }
.pc-split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.pc-note-list { display: flex; flex-direction: column; gap: 10px; }
.pc-note-item { padding: 12px 14px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; color: #334155; line-height: 1.7; font-size: 13px; }

@keyframes pc-meter-slide {
  0% { background-position: 0 0; }
  100% { background-position: 200% 0; }
}

@media (max-width: 1200px) {
  .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-progress-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .pc-grid { grid-template-columns: 1fr; }
  .pc-detail-top { grid-template-columns: 1fr; }
  .pc-stage-grid { grid-template-columns: 1fr; }
  .pc-card-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-primary-summary { grid-template-columns: 1fr; }
  .pc-progress-strip { grid-template-columns: 1fr; }
  .pc-split-grid { grid-template-columns: 1fr; }
}

/* ===== BOYSKK 項目頁面 ===== */
.bk-hero { background: linear-gradient(135deg, #1a1a2e 0%, #e11d48 100%); color: #fff; border-radius: 12px; padding: 28px 32px; margin-bottom: 20px; }
.bk-hero h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.bk-hero p { font-size: 13px; opacity: .85; }

.bk-stats-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.bk-stat-chip { background: #fff; border-radius: 20px; padding: 8px 16px; cursor: pointer; transition: all .2s; border: 2px solid transparent; display: flex; align-items: center; gap: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.bk-stat-chip:hover { border-color: #e11d48; }
.bk-stat-chip.active { border-color: #e11d48; background: #fff1f2; }
.bk-stat-label { font-size: 13px; color: #555; }
.bk-stat-count { font-size: 15px; font-weight: 700; color: #e11d48; }

.bk-toolbar { display: flex; gap: 8px; margin-bottom: 16px; align-items: center; }
.bk-toolbar input[type="text"] { padding: 7px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; width: 280px; }

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

.bk-post-card { background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.08); overflow: hidden; transition: all .2s; }
.bk-post-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.12); }

.bk-post-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 14px 18px; background: #fafbfc; border-bottom: 1px solid #f0f0f0; }
.bk-post-title-wrap { flex: 1; min-width: 0; }
.bk-post-title-wrap h3 { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-post-meta { display: flex; gap: 10px; margin-top: 4px; font-size: 12px; color: #888; flex-wrap: wrap; }

.bk-status-badge { padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.status-new { background: #e0f2fe; color: #0369a1; }
.status-cover { background: #fef3c7; color: #92400e; }
.status-reviewed { background: #d1fae5; color: #065f46; }
.status-img { background: #ede9fe; color: #5b21b6; }
.status-links { background: #dbeafe; color: #1e40af; }
.status-publishing { background: #fef9c3; color: #854d0e; }
.status-published { background: #bbf7d0; color: #166534; }
.status-failed { background: #fee2e2; color: #dc2626; }

.bk-post-body { padding: 12px 18px; }
.bk-field { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.bk-label { color: #888; min-width: 50px; flex-shrink: 0; }
.bk-error { color: #dc2626; }

.bk-links-row { display: flex; gap: 6px; flex-wrap: wrap; }
.bk-link-chip { padding: 2px 8px; border-radius: 10px; font-size: 12px; background: #f3f4f6; }
.bk-link-chip.success { background: #d1fae5; }
.bk-link-chip.failed { background: #fee2e2; }
.bk-link-chip.uploading { background: #fef3c7; }

.bk-post-actions { display: flex; gap: 6px; padding: 10px 18px; border-top: 1px solid #f0f0f0; }

/* 編輯面板 */
.bk-edit-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.4); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.bk-edit-panel { background: #fff; border-radius: 12px; width: 520px; max-height: 85vh; overflow-y: auto; box-shadow: 0 8px 30px rgba(0,0,0,.2); }
.bk-edit-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #eee; }
.bk-edit-header h3 { font-size: 16px; font-weight: 600; }
.bk-edit-body { padding: 20px; }
.bk-edit-body label { display: block; font-size: 13px; color: #555; margin-bottom: 4px; margin-top: 12px; }
.bk-edit-body label:first-child { margin-top: 0; }
.bk-edit-body input[type="text"], .bk-edit-body select { width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; }
.bk-edit-footer { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid #eee; }
