.pj-split { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; min-width: 0; margin-top: 18px; }
.pj-list { display: grid; gap: 22px; position: sticky; top: 16px; min-width: 0; }
.pj-group { display: grid; gap: 2px; }
.pj-group h3 { margin: 0 0 6px; padding: 0 12px; font-family: var(--font-serif); font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--text-3); }
.pj-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 9px 12px; border: 0; border-radius: 10px; background: transparent; color: inherit; text-align: left; cursor: pointer; box-shadow: none; transition: background .15s; }
.pj-item:hover { background: rgba(255, 255, 255, .04); }
.pj-item.is-on { background: rgba(255, 255, 255, .07); box-shadow: inset 2px 0 0 var(--accent); }
.pj-item.is-off .pj-item-main b { color: var(--text-3); }
.pj-item-main { display: grid; gap: 3px; min-width: 0; }
.pj-item-main b { overflow: hidden; font-size: 15px; font-weight: 700; color: var(--text-1); text-overflow: ellipsis; white-space: nowrap; }
.pj-item-main small { font-size: 12px; color: var(--text-3); }
.pj-item-end { display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: 13px; color: var(--text-2); }
.pj-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.pj-detail { display: grid; gap: 20px; min-width: 0; padding: 22px 24px 24px; border-radius: var(--r-lg); background: var(--bg-surface); box-shadow: var(--highlight), 0 0 0 1px var(--hairline); }
.pj-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; }
.pj-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
.pj-title h3 { margin: 0; font-family: var(--font-serif); font-size: 24px; font-weight: 700; letter-spacing: .03em; color: var(--text-1); }
.pj-title > span:not(.rep-badge) { font-size: 13px; color: var(--text-3); }
.pj-listed { display: inline-flex; align-items: center; gap: 10px; flex: none; font-size: 13px; color: var(--text-2); }
.pj-back { justify-self: start; }

.pj-sw { position: relative; flex: none; width: 42px; min-width: 42px; height: 24px; min-height: 0; padding: 0; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .16); box-shadow: none; cursor: pointer; transition: background .18s; }
.pj-sw i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .18s; }
.pj-sw[aria-checked="true"] { background: var(--accent); }
.pj-sw[aria-checked="true"] i { transform: translateX(18px); }

.pj-scroll { overflow-x: auto; overscroll-behavior-x: contain; min-width: 0; scrollbar-width: thin; }
.pj-table { min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.pj-table th, .pj-table td { padding: 0; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.pj-table tbody tr:last-child > * { border-bottom: 0; }
.pj-table th button, .pj-td button { display: block; width: 100%; min-width: 58px; min-height: 44px; padding: 7px 8px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pj-table thead th button { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.pj-table tbody th button { font-weight: 600; color: var(--text-1); }
.pj-corner { position: sticky; left: 0; z-index: 2; padding: 7px 10px !important; background: #1f1920; font-size: 12.5px; font-weight: 600; color: var(--text-3); text-align: left; }
.pj-corner small { margin-left: 3px; font-weight: 400; color: var(--text-3); }
.pj-table tbody th { position: sticky; left: 0; z-index: 1; background: #1f1920; }
.pj-td b { display: block; font-size: 14px; font-weight: 600; color: var(--text-1); }
.pj-td small { display: block; margin-top: 1px; font-size: 11.5px; color: var(--text-3); }
.pj-none { font-size: 12px; color: var(--text-4); }
.pj-td button:hover, .pj-table th button:hover { background: rgba(255, 255, 255, .05); }
.pj-table th.is-picked button, .pj-td.is-picked button { background: rgba(244, 143, 177, .1); }
.pj-td.is-changed b { color: var(--accent); }
.pj-td.is-bad b { color: var(--down, #f4707f); }
.pj-td.is-bad button { box-shadow: inset 0 0 0 1px var(--down, #f4707f); }
.pj-td.is-edit { padding: 4px; }
.pj-td.is-edit input { width: 66px; height: 36px; min-height: 36px; padding: 0 8px; font-size: 14px; }

.pj-batch { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pj-batch strong { margin-right: 6px; font-size: 13px; color: var(--text-1); }
.pj-batch .dp-yuan { width: 86px; }
.pj-batch input { height: 32px; min-height: 32px; }

.pj-plain { display: grid; }
.pj-plain-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; border-bottom: 1px solid var(--hairline); }
.pj-plain-row:last-child { border-bottom: 0; }
.pj-plain-row > span { min-width: 0; font-size: 15px; font-weight: 600; color: var(--text-1); }
.pj-plain-price { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.pj-plain-price .dp-yuan { width: 112px; }
.pj-plain-price input { height: 36px; min-height: 36px; font-size: 15px; }
.pj-plain-price small { font-size: 12px; color: var(--text-3); }

.pj-save { position: sticky; bottom: 12px; z-index: 3; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 8px 10px 8px 14px; border-radius: 12px; background: #2b2129; box-shadow: 0 0 0 1px var(--hairline), 0 10px 24px rgba(0, 0, 0, .4); }
.pj-save > span { margin-right: auto; font-size: 13px; color: var(--text-2); }
.pj-save b { color: var(--accent); }
.pj-save.is-flat { position: static; padding: 0; background: none; box-shadow: none; }

.pj-rules h4, .pj-log h4 { margin: 0 0 4px; font-family: var(--font-serif); font-size: 15px; font-weight: 700; color: var(--text-1); }
.pj-rules, .pj-log { display: grid; }
.pj-rule { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; min-height: 50px; padding: 7px 0; border-bottom: 1px solid var(--hairline); }
.pj-rule:last-child { border-bottom: 0; }
.pj-rule > span { font-size: 14px; color: var(--text-2); }
.pj-rule > div { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; min-width: 0; }
.pj-rule select, .pj-rule input:not([type="datetime-local"]) { width: 180px; height: 38px; min-height: 38px; padding-top: 0; padding-bottom: 0; line-height: 1.4; }
.pj-seg { display: inline-flex; padding: 2px; border-radius: 9px; background: rgba(255, 255, 255, .06); }
.pj-seg button { min-height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; box-shadow: none; color: var(--text-2); font-size: 13px; cursor: pointer; }
.pj-seg button[aria-pressed="true"] { background: rgba(255, 255, 255, .14); color: var(--text-1); font-weight: 600; }
.pj-dates { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--text-3); }
.pj-dates input { height: 34px; min-height: 34px; font-size: 13px; }

.pj-log-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 12px; padding: 9px 0; font-size: 13px; color: var(--text-3); border-bottom: 1px solid var(--hairline); }
.pj-log-row:last-child { border-bottom: 0; }
.pj-log-row p { margin: 0; color: var(--text-1); }
.pj-empty { margin: 4px 0 0; font-size: 13px; color: var(--text-3); }

.pj-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pj-modes button { display: grid; gap: 5px; align-content: start; min-height: 88px; padding: 13px 14px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--hairline); color: inherit; text-align: left; cursor: pointer; }
.pj-modes b { font-size: 15px; font-weight: 700; color: var(--text-1); }
.pj-modes small { font-size: 12.5px; line-height: 1.5; color: var(--text-2); white-space: normal; }
.pj-modes button[aria-checked="true"] { background: rgba(244, 143, 177, .1); box-shadow: inset 0 0 0 1.5px var(--accent); }
.pj-tags { margin-top: 26px; }

@media (max-width: 1000px) { .pj-split { grid-template-columns: 240px minmax(0, 1fr); gap: 16px; } }
@media (max-width: 760px) {
  .pj-split { grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
  .pj-list { position: static; }
  .pj-page.is-detail .pj-list, .pj-page.is-detail .pj-tags, .pj-page.is-detail .pg-tabs, .pj-page.is-detail .xy-lead-stats { display: none; }
  .pj-page:not(.is-detail) .pj-detail { display: none; }
  .pj-detail { padding: 14px 14px 18px; gap: 16px; }
  .pj-title h3 { font-size: 21px; }
  .pj-modes { grid-template-columns: minmax(0, 1fr); }
  .pj-modes button { min-height: 0; }
  .pj-rule select, .pj-rule input:not([type="datetime-local"]) { width: 150px; }
  .pj-save { bottom: 74px; }
  .pj-log-row { grid-template-columns: auto minmax(0, 1fr); }
  .pj-log-row p { grid-column: 1 / -1; }
}

/* 正式版比预览多的部分 */
.pj-dot[hidden], .pj-save[hidden] { display: none; }
.pj-dot { display: inline-block; }
.pj-cell { display: block; min-width: 58px; min-height: 44px; padding: 7px 8px; }
.pj-table thead th .pj-cell { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.pj-table tbody th .pj-cell { font-weight: 600; color: var(--text-1); }
.pj-td.is-edit { display: table-cell; padding: 6px; vertical-align: top; }
.pj-td.is-edit label { display: grid; gap: 2px; font-size: 11.5px; color: var(--text-3); }
.pj-td.is-edit label + label { margin-top: 4px; }
.pj-td.is-edit input { width: 96px; height: 32px; min-height: 32px; font-size: 13px; }
.pj-grow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pj-grow select { width: auto; height: 32px; min-height: 32px; padding-top: 0; padding-bottom: 0; font-size: 13px; line-height: 1.4; }
.pj-batch-name { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.pj-batch-name input { width: 120px; }
.pj-danger { color: var(--down, #f4707f); }
.pj-x { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; min-height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: var(--text-3); cursor: pointer; }
.pj-x:hover { color: var(--down, #f4707f); background: rgba(255, 255, 255, .06); }
.pj-x svg { width: 14px; height: 14px; }
.pj-x-space { width: 28px; }
.pj-plain-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 150px) 150px; align-items: center; justify-content: stretch; }
.pj-plain.is-edit .pj-plain-row { grid-template-columns: minmax(0, 1fr) minmax(0, 150px) 150px 28px; }
.pj-plain-row.is-head { min-height: 32px; font-size: 12.5px; }
.pj-plain-row.is-head > span { font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.pj-plain-row > b { font-size: 15px; font-weight: 600; color: var(--text-1); }
.pj-field { display: block; min-width: 0; }
.pj-field small { display: none; margin-bottom: 3px; font-size: 12px; color: var(--text-3); }
.pj-field input { width: 100%; height: 36px; min-height: 36px; font-size: 14px; }
.pj-plain-row input.is-changed { color: var(--accent); }
.pj-plain-row input.is-bad, .pj-td input.is-bad { color: var(--down, #f4707f); border-color: var(--down, #f4707f); }
.pj-plain-price .num { font-size: 15px; font-weight: 600; color: var(--text-1); }
.pj-rule.is-wide { align-items: flex-start; flex-wrap: nowrap; }
.pj-rule.is-wide > div { flex: 1; justify-content: flex-end; font-size: 13.5px; color: var(--text-1); text-align: right; }
.pj-rule > div { font-size: 14px; color: var(--text-1); }
.pj-rule textarea { width: min(100%, 360px); min-height: 60px; font-size: 13.5px; line-height: 1.5; }
.pj-rule .ghost.mini[disabled] { opacity: .4; cursor: default; }
.pj-remove { display: flex; justify-content: flex-end; }
.pj-cats-open { justify-self: start; margin-left: 4px; }
.pj-cats { display: grid; gap: 8px; }
.pj-cat { display: flex; align-items: center; gap: 8px; max-width: 320px; }
.pj-cat input { flex: 1; min-width: 0; height: 36px; min-height: 36px; }
.pj-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pj-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--hairline); font-size: 13px; color: var(--text-1); }
.pj-chip b { font-size: 13px; color: var(--accent); }
.pj-chip small { font-size: 11.5px; color: var(--text-3); }
.pj-tag-list { display: grid; gap: 8px; }
.pj-tag { display: grid; grid-template-columns: minmax(0, 1fr) 110px 90px 28px; gap: 8px; align-items: center; max-width: 520px; }
.pj-tag input, .pj-tag select { width: 100%; height: 34px; min-height: 34px; padding-top: 0; padding-bottom: 0; line-height: 1.4; }
.pj-tags .pj-grow, .pj-tags .pj-save { margin-top: 10px; }

/* 平板和手机都是先看列表、点进去看详情：左右分栏时价格表太窄 */
@media (max-width: 900px) {
  .pj-split { grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
  .pj-list { position: static; }
  .pj-page.is-detail .pj-list, .pj-page.is-detail .pj-tags, .pj-page.is-detail .pg-tabs, .pj-page.is-detail .xy-lead-stats { display: none; }
  .pj-page:not(.is-detail) .pj-detail { display: none; }
}
@media (max-width: 760px) {
  .pj-plain-row, .pj-plain.is-edit .pj-plain-row { grid-template-columns: minmax(0, 1fr) 132px; gap: 6px 10px; padding: 8px 0; }
  .pj-plain.is-edit .pj-plain-row { grid-template-columns: minmax(0, 1fr) 132px 28px; }
  .pj-plain-row.is-head { display: none; }
  .pj-field.is-name { grid-column: 1 / -1; }
  .pj-field small { display: block; }
  .pj-plain-row > .pj-plain-price, .pj-plain-row > .pj-x { align-self: end; }
  .pj-plain-row > .pj-x { margin-bottom: 4px; }
  .pj-plain:not(.is-edit) .pj-plain-row > b { grid-column: 1 / -1; }
  .pj-plain:not(.is-edit) .pj-plain-price { justify-self: end; }
  .pj-plain-price .dp-yuan { width: 88px; }
  .pj-tag { grid-template-columns: minmax(0, 1fr) 84px 72px 28px; gap: 6px; }
}
