/* ---------- 详情页编辑器（嵌在平台外壳的内容区里） ---------- */
.editor { display: grid; grid-template-rows: auto auto 1fr; height: 100%; min-height: 0; background: var(--ui-bg); }
.ed-toolbar {
  display: flex; gap: 8px; align-items: center; padding: 8px 16px; flex-wrap: wrap;
  background: var(--ui-panel); border-bottom: 1px solid var(--ui-line);
}
.ed-toolbar .crumb { font-size: 14px; display: flex; gap: 6px; align-items: center; min-width: 0; }
.ed-toolbar .crumb a { color: var(--ui-muted); }
.ed-toolbar .crumb b { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-toolbar .meta { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--ui-muted); }
.ed-toolbar .meta select, .ed-toolbar select { width: auto; font-size: 12px; padding: 3px 6px; }
.ed-toolbar .spacer { flex: 1; }
.ed-toolbar .status { color: var(--ui-muted); font-size: 12px; }
.jobbar { font-size: 13px; padding: 0 16px; }
.jobbar:empty { display: none; }
.jobbar.run, .jobbar.bad { padding: 8px 16px; }
.jobbar.run { background: #EEF3EF; color: var(--ui-ok); }
.jobbar.bad { background: #FDECEC; color: var(--ui-bad); }

.ed-main { display: grid; grid-template-columns: 420px 1fr; min-height: 0; }
.side { background: var(--ui-panel); border-right: 1px solid var(--ui-line); display: flex; flex-direction: column; min-height: 0; }
.tabs { display: flex; border-bottom: 1px solid var(--ui-line); }
.tabs button { flex: 1; border: 0; border-radius: 0; padding: 10px; border-bottom: 2px solid transparent; }
.tabs button.on { border-bottom-color: var(--ui-accent); font-weight: 600; }
.panel { overflow: auto; padding: 12px 16px 40px; flex: 1; }

.editor .card { border: 1px solid var(--ui-line); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; background: var(--ui-panel); }
.editor .card h3 { font-size: 14px; margin: 0 0 6px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.editor .card h3 small { font-weight: 400; color: var(--ui-muted); }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.thumbs img { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; border: 2px solid transparent; cursor: pointer; }
.thumbs img.on { border-color: var(--ui-accent); }

.fact { display: grid; grid-template-columns: 76px 1fr; gap: 2px 8px; padding: 6px 0; border-bottom: 1px dashed var(--ui-line); }
.fact:last-child { border-bottom: 0; }
.fact b { font-weight: 600; }
.fact .src { grid-column: 2; color: var(--ui-muted); font-size: 12px; }
.badge { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 10px; background: #EEF3EF; color: var(--ui-ok); }
.badge.warn { background: #FDF3E7; color: var(--ui-warn); }
.badge.bad { background: #FDECEC; color: var(--ui-bad); }

.check { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--ui-line); }
.check .ico { width: 18px; flex: 0 0 18px; font-weight: 700; }
.check.ok .ico { color: var(--ui-ok); }
.check.warn .ico { color: var(--ui-warn); }
.check.bad .ico { color: var(--ui-bad); }

.stage { overflow: auto; padding: 24px; min-height: 0; }
.stage-inner { width: 790px; margin: 0 auto; }
.part-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--ui-muted); margin: 18px 0 6px; }
.stage.seamless .part-label { display: none; }
.stage .sx-part { outline: 1px solid transparent; transition: outline-color .15s; }
.stage:not(.seamless) .sx-part:hover { outline-color: var(--ui-accent); }
.stage [data-field] { cursor: pointer; }
.flash { animation: flash 1.2s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px #F59E0B; } 100% { box-shadow: 0 0 0 3px transparent; } }

/* 手机：只看预览和下载，不编辑 */
.mobile-note { display: none; }
@media (max-width: 767px) {
  .editor .side, .ed-toolbar .ed-edit-only { display: none; }
  .ed-main { grid-template-columns: 1fr; }
  .mobile-note { display: block; margin: 0; padding: 10px 16px; background: #FDF3E7; color: var(--ui-warn); font-size: 13px; }
  .stage { padding: 8px 0; overflow-x: hidden; }
  .part-label { padding: 0 12px; }  /* 790px 预览的缩放由 detail.js 按屏宽设置 zoom */
  .part-label a { display: none; }
}
@media (min-width: 768px) and (max-width: 1180px) {
  .ed-main { grid-template-columns: 360px 1fr; }
  .stage { padding: 12px; }
}

/* ---------- 商详模板（导出内容），宽 790px ---------- */
.sx-part {
  background: var(--bg); color: var(--text); position: relative; overflow: hidden;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased; letter-spacing: .01em;
}
.sx-part * { margin: 0; }
.sx-pad { padding: 72px 56px 64px; }
.sx-pad.sx-tight { padding-top: 0; padding-bottom: 40px; }
.sx-hero .sx-pad:first-child { padding-top: 40px; padding-bottom: 40px; }
.sx-center { text-align: center; }

.sx-topbar {
  display: flex; justify-content: space-between; font-size: 20px; font-weight: 600; color: var(--accent);
  padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 40px;
}
.sx-topbar span:last-child { font-weight: 400; color: var(--muted); }
.sx-eyebrow { font-size: 20px; color: var(--accent); letter-spacing: .12em; margin: 24px 0 28px; }
.sx-hero-title { font-size: 60px; line-height: 1.25; font-weight: 700; letter-spacing: .04em; }
.sx-rule { width: 64px; height: 2px; background: var(--accent); margin: 28px auto 24px; }
.sx-hero-sub { font-size: 28px; color: var(--accent); margin-top: 14px; }
.sx-center .sx-hero-sub { color: var(--muted); margin-top: 0; }
.sx-hero-spec { font-size: 22px; color: var(--muted); margin-top: 12px; }
.sx-hero-card {
  margin: 0 56px 24px; background: var(--surface); border-radius: 16px; padding: 48px;
  aspect-ratio: 1 / 1; display: grid; place-items: center;
}
.sx-hero-card img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sx-hero-blend { padding: 0 56px 32px; background: var(--bg); }
.sx-hero-blend img {
  width: 100%; display: block; mix-blend-mode: multiply;
  /* 白底照片与页面底色有 1–3 级色差，边缘羽化避免出现浅色方框 */
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 78%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 78%, transparent 100%);
}

.sx-eyebrow-row {
  font-size: 20px; font-weight: 600; color: var(--accent);
  padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 36px;
}
.sx-title { font-size: 46px; line-height: 1.3; font-weight: 700; }
.sx-body { font-size: 24px; line-height: 1.75; color: var(--muted); margin: 14px 0 36px; }
.sx-figure { width: 100%; border-radius: 12px; overflow: hidden; background: var(--surface); }
.sx-figure img { width: 100%; height: 100%; display: block; }
.sx-empty {
  width: 100%; height: 100%; display: grid; place-content: center; text-align: center;
  color: var(--muted); font-size: 22px; border: 2px dashed var(--line); border-radius: 12px;
}
.sx-empty small { font-size: 16px; }
.sx-note { font-size: 16px; color: var(--muted); margin-top: 14px; opacity: .85; }
.sx-tags {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 36px;
  border-top: 1px solid var(--line); padding-top: 24px;
}
.sx-tags span { font-size: 24px; color: var(--accent); text-align: center; }
.sx-tags span + span { border-left: 1px solid var(--line); }

.sx-info-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 28px 0 8px; }
.sx-info-name { font-size: 28px; font-weight: 600; }
.sx-info-sub { font-size: 20px; color: var(--accent); margin-top: 8px; }
.sx-info-thumb { width: 168px; height: 168px; border-radius: 12px; background: var(--surface); padding: 12px; flex: 0 0 auto; }
.sx-info-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; mix-blend-mode: multiply; }
.sx-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.sx-table th, .sx-table td { font-size: 22px; text-align: left; padding: 22px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.sx-table th { width: 200px; font-weight: 400; color: var(--muted); }
.sx-table td { line-height: 1.6; }
.sx-tips { margin-top: 36px; background: var(--surface); border-radius: 12px; padding: 24px 28px; }
.sx-tips-h { font-size: 20px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.sx-tips p { font-size: 20px; line-height: 1.7; color: var(--muted); }
.sx-tips p + p { margin-top: 6px; }
.sx-foot { margin-top: 32px; }
