/* 店铺规划（2026-10-17 拍板 B）：全部 .sp-* 作用域，浅色主题与全站一致，不污染其他页面。
   参照 assets/lamp-offering-styles.css 的组织方式（root/hero/tabs/table）。 */
.sp-root { width: 100%; max-width: 100%; margin: 0; padding: 0; color: #1f2937; box-sizing: border-box; }
.sp-root * { box-sizing: border-box; }
.sp-hero { display: flex; align-items: center; gap: 14px; padding: 14px 0 6px; }
.sp-hero-icon { font-size: 34px; line-height: 1; }
.sp-hero h2 { margin: 0; font-size: 21px; font-weight: 700; }
.sp-hero-sub { margin: 4px 0 0; font-size: 13px; color: #6b7280; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.sp-chip { padding: 4px 10px; font-size: 12px; border-radius: 999px; background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; }
.sp-chip-warn { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.sp-chip-ok { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.sp-chip-now { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; font-weight: 600; }
.sp-tabs { display: flex; gap: 6px; border-bottom: 1px solid #e5e7eb; margin-bottom: 12px; }
.sp-tab { padding: 8px 14px; font-size: 14px; border: none; background: none; color: #6b7280; cursor: pointer; border-bottom: 2px solid transparent; }
.sp-tab:hover { color: #111827; }
.sp-tab.active { color: #b45309; font-weight: 600; border-bottom-color: #b45309; }
.sp-note { font-size: 12px; color: #6b7280; background: #f9fafb; border-left: 3px solid #d1d5db; padding: 8px 10px; margin: 0 0 10px; line-height: 1.6; }
.sp-hint, .sp-error { padding: 18px; font-size: 13px; color: #6b7280; background: #f9fafb; border-radius: 8px; }
.sp-error { color: #b91c1c; background: #fef2f2; }

.sp-table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.sp-table th, .sp-table td { border: 1px solid #e5e7eb; padding: 8px 10px; vertical-align: top; text-align: left; }
.sp-table thead th, .sp-table > tr > th { background: #f3f4f6; font-weight: 600; }
.sp-th-key { width: 108px; background: #fafafa; font-weight: 600; color: #374151; }
.sp-table-brand .sp-th-key { width: 108px; }
.sp-body { white-space: pre-wrap; word-break: break-word; line-height: 1.7; }
.sp-empty { color: #cbd5e1; }
.sp-gap { display: inline-block; padding: 2px 8px; font-size: 12px; border-radius: 4px; background: #fef2f2; color: #b91c1c; border: 1px dashed #fca5a5; }
.sp-row-now > th, .sp-row-now > td { background: #fffbeb; }
.sp-row-now .sp-th-key { border-left: 3px solid #f59e0b; }
.sp-badge-now { display: inline-block; margin-left: 6px; padding: 1px 6px; font-size: 11px; border-radius: 999px; background: #f59e0b; color: #fff; }
.sp-pill { display: inline-block; padding: 2px 8px; font-size: 12px; border-radius: 999px; background: #f3f4f6; color: #374151; white-space: nowrap; }
.sp-pill.sp-ok { background: #ecfdf5; color: #047857; }
.sp-pill.sp-warn { background: #fff7ed; color: #c2410c; }
.sp-pill.sp-bad { background: #fef2f2; color: #b91c1c; }
.sp-gaplist { margin: 0 0 12px; padding-left: 18px; font-size: 13px; line-height: 2; color: #374151; }
@media (max-width: 900px) { .sp-table { font-size: 12px; } .sp-th-key { width: 82px; } }
/* 2026-10-18 全站统一手机适配断点（page-shell 同口径 760/480）：tabs 窄屏可横滚、chips 收紧 */
@media (max-width: 760px) {
  .sp-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .sp-tab { padding: 7px 10px; font-size: 13px; white-space: nowrap; }
  .sp-chip { font-size: 11.5px; padding: 3px 8px; }
}
@media (max-width: 480px) {
  .sp-chips { gap: 6px; }
}

/* ── 编辑态（2026-10-18）：工具条 + 格内控件，仅 .sp-* 作用域 ── */
.sp-editbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; padding: 8px 10px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; }
.sp-editbar-l { display: flex; align-items: center; gap: 8px; }
.sp-btn { padding: 6px 14px; font-size: 13px; border: 1px solid #d1d5db; background: #fff; color: #374151; border-radius: 6px; cursor: pointer; }
.sp-btn:hover { background: #f3f4f6; }
.sp-btn-save { background: #b45309; color: #fff; border-color: #b45309; font-weight: 600; }
.sp-btn-save:hover { background: #92400e; }
.sp-btn-add { color: #047857; border-color: #a7f3d0; }
.sp-edit-tip { font-size: 12px; color: #6b7280; }
.sp-edit-tip-err { color: #b91c1c; font-weight: 600; }
.sp-cell-edit { display: flex; flex-direction: column; gap: 6px; }
.sp-area { width: 100%; box-sizing: border-box; min-height: 68px; padding: 6px 8px; font-size: 13px; line-height: 1.6; font-family: inherit; color: #1f2937; border: 1px solid #cbd5e1; border-radius: 6px; resize: vertical; background: #fffef7; }
.sp-area:focus { outline: none; border-color: #b45309; background: #fff; }
.sp-area-sm { min-height: 44px; }
.sp-sel { width: 100%; padding: 5px 6px; font-size: 13px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fffef7; color: #1f2937; }
.sp-miss-lbl { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #b91c1c; cursor: pointer; }
.sp-del { margin-left: 6px; border: none; background: none; cursor: pointer; font-size: 13px; opacity: .55; padding: 0; }
.sp-del:hover { opacity: 1; }
