:root {
  --blue: #0052d9;
  --blue-2: #0b6cff;
  --blue-soft: #eaf2ff;
  --ink: #17233c;
  --ink-2: #3d4d68;
  --muted: #7b8aa5;
  --line: #e3e8f1;
  --surface: #ffffff;
  --bg: #f4f6fa;
  --green: #16835b;
  --green-soft: #e8f7f0;
  --amber: #a96b00;
  --amber-soft: #fff6df;
  --red: #d54941;
  --red-soft: #fff0ef;
  --violet: #6f42c1;
  --violet-soft: #f2edff;
  --shadow: 0 8px 28px rgba(38, 56, 88, .08);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 1120px; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
body.modal-open { overflow: hidden; }

.topbar { position: fixed; inset: 0 0 auto 0; height: 64px; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 16px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.brand-area, .topbar-actions { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(135deg, #0c69ff, #003cad); color: white; font-size: 12px; font-weight: 800; box-shadow: 0 7px 18px rgba(0,82,217,.24); }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { font-size: 15px; }
.brand-copy span { color: var(--muted); font-size: 11px; }
.icon-button { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 8px; display: inline-grid; place-items: center; color: var(--ink-2); transition: .15s; }
.icon-button:hover { background: #edf1f7; }
.icon-button.danger-text, .danger-text { color: var(--red); }
.sidebar-toggle { font-size: 18px; }
.global-search { width: 330px; height: 38px; border: 1px solid var(--line); border-radius: 9px; background: #f8fafc; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--muted); }
.global-search input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); }
.account-button { width: 36px; height: 36px; border-radius: 50%; border: 0; color: white; background: linear-gradient(135deg, #435b84, #1d2f50); font-weight: 700; }

.sidebar { position: fixed; left: 0; top: 64px; bottom: 0; width: 236px; z-index: 40; background: #fff; border-right: 1px solid var(--line); padding: 16px 12px; overflow: auto; display: flex; flex-direction: column; transition: width .2s; }
.workspace { display: flex; align-items: center; gap: 10px; padding: 7px 8px 16px; border-bottom: 1px solid #edf0f5; margin-bottom: 12px; }
.workspace-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--blue); background: var(--blue-soft); }
.workspace div { display: flex; flex-direction: column; gap: 2px; }
.workspace small { color: var(--muted); font-size: 11px; }
.nav-group-title { padding: 0 10px; margin: 14px 0 6px; color: #9aa6b8; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.nav-list { display: grid; gap: 3px; }
.nav-item { border: 0; background: transparent; height: 42px; border-radius: 9px; padding: 0 10px; display: grid; grid-template-columns: 25px 1fr auto; align-items: center; text-align: left; color: var(--ink-2); transition: .15s; }
.nav-item:hover { background: #f2f5fa; color: var(--ink); }
.nav-item.is-active { background: var(--blue-soft); color: var(--blue); }
.nav-item span { font-size: 17px; }
.nav-item b { font-size: 13.5px; font-weight: 600; }
.nav-item em { min-width: 20px; height: 19px; padding: 0 6px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #edf1f7; color: var(--muted); font-size: 10px; font-style: normal; }
.nav-item em.warn { background: var(--red-soft); color: var(--red); }
.sidebar-foot { margin-top: auto; padding-top: 18px; }
.scope-note { background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.scope-note strong { font-size: 12px; }
.scope-note p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.text-button { border: 0; background: transparent; color: var(--blue); font-size: 12px; padding: 10px; }
.sidebar-foot > .text-button { width: 100%; margin-top: 6px; }

.app-main { margin-left: 236px; padding: 92px 28px 48px; min-height: 100vh; transition: margin-left .2s; }
body.sidebar-collapsed .sidebar { width: 72px; }
body.sidebar-collapsed .sidebar .workspace div, body.sidebar-collapsed .nav-group-title, body.sidebar-collapsed .nav-item b, body.sidebar-collapsed .nav-item em, body.sidebar-collapsed .scope-note, body.sidebar-collapsed .sidebar-foot .text-button { display: none; }
body.sidebar-collapsed .nav-item { grid-template-columns: 1fr; justify-items: center; }
body.sidebar-collapsed .workspace { justify-content: center; padding-left: 0; padding-right: 0; }
body.sidebar-collapsed .app-main { margin-left: 72px; }

.button { height: 38px; border-radius: 8px; padding: 0 16px; border: 1px solid var(--line); background: white; color: var(--ink-2); font-weight: 600; transition: .15s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.button:hover { border-color: #b8c4d5; background: #fafbfd; }
.button.primary { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 5px 14px rgba(0,82,217,.14); }
.button.primary:hover { background: #0047bf; }
.button.ghost { background: #f7f9fc; }
.button.compact { height: 31px; padding: 0 11px; font-size: 12px; }
.button.danger { background: var(--red); border-color: var(--red); color: white; }
.button.danger-outline { color: var(--red); border-color: #f0b6b2; background: #fff; }
.button.block { width: 100%; margin-top: 8px; }
.link-button { border: 0; background: transparent; color: var(--blue); padding: 3px 0; font-size: 12px; display: block; }
.back-button { border: 0; background: transparent; color: var(--blue); padding: 0; margin-bottom: 10px; }

.page-head { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; margin-bottom: 22px; }
.page-head h1 { margin: 4px 0 7px; font-size: 28px; letter-spacing: -.02em; }
.page-head p { margin: 0; color: var(--muted); max-width: 760px; line-height: 1.6; }
.eyebrow { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.page-actions { display: flex; gap: 9px; }
.alignment-banner { display: flex; gap: 13px; align-items: flex-start; border: 1px solid #cfe0ff; background: #f4f8ff; border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.alignment-banner > span { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: white; font-weight: 700; }
.alignment-banner strong { display: block; font-size: 13px; }
.alignment-banner p { margin: 4px 0 0; color: #5f7190; font-size: 12px; line-height: 1.55; }

.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 17px; box-shadow: 0 3px 14px rgba(38,56,88,.035); }
.stat-card span { color: var(--muted); font-size: 11px; }
.stat-card strong { display: block; margin: 6px 0 3px; font-size: 25px; }
.stat-card small { color: #98a4b5; }
.stat-card.blue { border-top: 3px solid var(--blue); }
.stat-card.amber { border-top: 3px solid #d89924; }
.stat-card.green { border-top: 3px solid #1ba477; }
.stat-card.violet { border-top: 3px solid #7c5bd1; }

.table-card, .editor-section, .sticky-card, .tag-group, .form-config-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 18px rgba(38,56,88,.04); }
.table-tools { min-height: 58px; padding: 11px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.table-tools > div:first-child { display: flex; align-items: center; gap: 10px; }
.table-tools span { color: var(--muted); font-size: 12px; }
.filter-row { display: flex; gap: 10px; }
.inline-select { height: 34px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; padding-left: 10px; gap: 5px; background: #fafbfd; }
.inline-select span { font-size: 11px; }
.inline-select select { border: 0; outline: 0; background: transparent; color: var(--ink); padding-right: 7px; }
.field-legend { display: flex; gap: 15px; }
.field-legend span { display: flex; align-items: center; gap: 5px; }
.sync-dot, .ops-dot, .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.sync-dot { background: var(--blue); }
.ops-dot { background: #9b69d6; }
.dot.green { background: var(--green); }
.dot.gray { background: #aab4c3; }
.legend { display: flex; gap: 10px; align-items: center; }
.data-table-wrap { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 980px; }
.data-table th { padding: 12px 14px; background: #fafbfd; color: #6d7b91; font-size: 11px; font-weight: 600; text-align: left; white-space: nowrap; }
.data-table td { padding: 13px 14px; border-top: 1px solid #edf0f5; vertical-align: middle; }
.data-table tbody tr:hover { background: #fbfcfe; }
.entity-cell { display: flex; align-items: center; gap: 11px; min-width: 225px; }
.entity-cell > div:not(.letter-avatar) { min-width: 0; }
.entity-cell b { display: block; font-size: 13px; line-height: 1.35; }
.entity-cell span { color: var(--muted); font-size: 11px; display: block; margin-top: 3px; max-width: 290px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.entity-cover { width: 58px; height: 42px; object-fit: cover; border-radius: 7px; background: #edf1f6; }
.entity-avatar, .letter-avatar { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; flex: none; }
.letter-avatar { display: grid; place-items: center; background: linear-gradient(135deg,#dde8fb,#a9c4f5); color: #264a86; font-weight: 800; }
.muted-line { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.muted { color: var(--muted); }
code { background: #eef3fb; color: #345786; padding: 3px 6px; border-radius: 5px; font-size: 11px; }
.row-actions { display: flex; gap: 5px; align-items: center; white-space: nowrap; }
.status { height: 23px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 12px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.status.success { background: var(--green-soft); color: var(--green); }
.status.warning { background: var(--amber-soft); color: var(--amber); }
.status.danger { background: var(--red-soft); color: var(--red); }
.status.neutral { background: #eef1f5; color: #68758a; }
.tag-wrap, .preview-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chip { background: #eef2f7; color: #516078; border-radius: 5px; padding: 4px 7px; font-size: 10.5px; }
.tag-chip.blue { color: var(--blue); background: var(--blue-soft); }
.line-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 280px; line-height: 1.45; }
.data-table td > small { display: block; color: var(--muted); margin-top: 4px; }
.empty-state { min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); }
.empty-state > div { font-size: 34px; color: #bdc8d7; }
.empty-state h3 { color: var(--ink); margin: 10px 0 5px; }
.empty-state p { margin: 0 0 14px; }

.home-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 18px; align-items: start; }
.home-main { display: grid; gap: 16px; }
.home-side { position: sticky; top: 82px; display: grid; gap: 14px; }
.sticky-card { padding: 16px; }
.sticky-card h3 { margin: 0 0 12px; font-size: 14px; }
.sticky-card hr { border: 0; border-top: 1px solid var(--line); margin: 13px 0; }
.sticky-card > small { color: var(--muted); }
.publish-state { display: block; margin-top: 4px; color: var(--blue); }
.sticky-card > p { color: var(--muted); font-size: 11px; line-height: 1.5; }
.check-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 7px; align-items: center; padding: 8px 0; border-bottom: 1px dashed #edf0f5; }
.check-row > span { width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; }
.check-row.ok > span { background: var(--green-soft); color: var(--green); }
.check-row.bad > span { background: var(--red-soft); color: var(--red); }
.check-row b { font-size: 11.5px; }
.check-row em { font-style: normal; font-size: 10px; color: var(--muted); }
.editor-section { padding: 19px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; padding-bottom: 13px; border-bottom: 1px solid #edf0f5; }
.section-heading h2 { margin: 0; font-size: 16px; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.span-2, .span-2 { grid-column: 1 / -1; }
.field > span, .media-field > span { font-size: 11.5px; font-weight: 600; color: #4c5b71; }
.required { color: var(--red); font-style: normal; margin-left: 2px; }
.sync-badge { display: inline-flex; align-items: center; margin-left: 7px; padding: 2px 6px; border-radius: 9px; color: var(--blue); background: var(--blue-soft); font-size: 9px; font-style: normal; font-weight: 600; vertical-align: middle; }
.field input, .field textarea, .field select, .content-block textarea, .content-block input, .inline-add input { width: 100%; border: 1px solid #dce2ec; border-radius: 8px; background: #fff; color: var(--ink); padding: 9px 10px; outline: 0; transition: .15s; }
.field input, .field select { height: 38px; }
.field textarea { resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus, .content-block textarea:focus, .content-block input:focus { border-color: #7aa7ef; box-shadow: 0 0 0 3px rgba(0,82,217,.08); }
.field input[readonly] { background: #f3f5f8; color: var(--muted); }
.field small, .media-inputs small { color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.media-field { display: flex; flex-direction: column; gap: 8px; }
.media-input-row { display: flex; gap: 13px; align-items: center; }
.media-preview { width: 128px; height: 76px; border: 1px dashed #cbd5e3; background: #f5f7fa; border-radius: 9px; overflow: hidden; display: grid; place-items: center; color: var(--muted); flex: none; }
.media-preview.round { width: 76px; height: 76px; border-radius: 50%; }
.media-preview img { width: 100%; height: 100%; object-fit: cover; }
.media-inputs { flex: 1; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.media-inputs input { height: 38px; border: 1px solid #dce2ec; border-radius: 8px; padding: 0 10px; }
.media-inputs small { grid-column: 1 / -1; }
.upload-button { cursor: pointer; }
.selector-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 16px; }
.selection-box { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.selection-head { padding: 10px 11px; background: #fafbfd; display: flex; justify-content: space-between; align-items: center; }
.selection-head h3 { margin: 0; font-size: 12.5px; }
.ordered-list { padding: 6px; display: grid; gap: 4px; }
.ordered-item { min-height: 43px; display: grid; grid-template-columns: 17px 24px 1fr auto; align-items: center; gap: 7px; border: 1px solid #edf0f5; border-radius: 7px; padding: 5px 7px; }
.ordered-item .drag-handle { color: #abb6c6; }
.ordered-item > b { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 10px; }
.ordered-item p { margin: 0; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-empty { padding: 20px; text-align: center; color: var(--muted); font-size: 11px; }
.preview-card { overflow: hidden; }
.mini-home-hero { padding: 17px; border-radius: 10px; color: white; background: linear-gradient(135deg,#0d4288,#0b6cff); display: flex; flex-direction: column; gap: 5px; }
.mini-home-hero small { opacity: .8; }
.mini-home-hero b { font-size: 15px; }
.mini-home-hero p { margin: 3px 0; font-size: 10px; opacity: .85; }
.mini-home-hero span { align-self: flex-start; padding: 5px 8px; border-radius: 5px; background: white; color: var(--blue); font-size: 9px; }
.mini-section { margin-top: 14px; }
.mini-section > strong { display: block; margin-bottom: 8px; font-size: 11px; }
.mini-section > p { margin: 5px 0; padding: 6px 8px; border-radius: 5px; background: #f4f6fa; font-size: 9px; }
.mini-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }
.mini-grid div { border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.mini-grid img { width: 100%; height: 40px; object-fit: cover; }
.mini-grid span { display: block; padding: 4px; font-size: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.settings-grid { display: grid; gap: 16px; }

.news-admin-list { display: grid; }
.news-admin-row { display: grid; grid-template-columns: 74px 105px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid #edf0f5; }
.news-admin-row:first-child { border-top: 0; }
.news-admin-row.muted { opacity: .58; }
.news-order { display: flex; align-items: center; }
.news-order > b { width: 26px; height: 26px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: 11px; }
.news-order .icon-button { width: 22px; }
.news-thumb { width: 105px; height: 65px; border-radius: 8px; background: #f0f3f7; display: grid; place-items: center; color: var(--muted); font-size: 11px; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-copy > div { display: flex; gap: 7px; align-items: center; }
.news-copy h3 { margin: 6px 0 4px; font-size: 14px; }
.news-copy p { margin: 0; color: var(--ink-2); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-copy small { color: var(--muted); display: block; margin-top: 5px; }

.editor-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.editor-top h1 { margin: 0 0 5px; font-size: 25px; }
.editor-top p { margin: 0; color: var(--muted); font-size: 11px; }
.editor-actions { display: flex; gap: 8px; }
.editor-layout { display: grid; grid-template-columns: 180px minmax(0,1fr) 330px; gap: 16px; align-items: start; }
.editor-nav { position: sticky; top: 82px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 3px; }
.editor-nav > strong { padding: 5px 8px 9px; font-size: 11px; color: var(--muted); }
.editor-nav > a { text-decoration: none; color: var(--ink-2); border-radius: 7px; padding: 9px 8px; font-size: 11.5px; }
.editor-nav > a:hover { background: var(--blue-soft); color: var(--blue); }
.editor-nav-note { border-top: 1px solid var(--line); margin-top: 8px; padding: 11px 7px 4px; }
.editor-nav-note b { font-size: 10.5px; }
.editor-nav-note p { margin: 7px 0 0; color: var(--muted); font-size: 9.5px; line-height: 1.55; }
.editor-content { display: grid; gap: 15px; min-width: 0; }
.editor-preview { position: sticky; top: 82px; }
.preview-shell { background: #fff; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; box-shadow: var(--shadow); }
.preview-label { display: block; padding: 10px 13px; color: var(--muted); background: #fafbfd; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 600; }
.park-preview-cover { height: 190px; position: relative; overflow: hidden; background: linear-gradient(135deg,#dfe8f5,#8ca9d1); color: white; }
.park-preview-cover > img { width: 100%; height: 100%; object-fit: cover; }
.park-preview-cover:after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent,rgba(17,31,55,.82)); }
.park-preview-cover > span { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 5px 8px; border-radius: 5px; background: rgba(9,45,90,.85); font-size: 9px; }
.park-preview-cover > div { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 13px; }
.park-preview-cover b { font-size: 15px; }
.park-preview-cover em { margin-left: 5px; font-size: 8px; padding: 3px 5px; border-radius: 6px; background: #167b56; font-style: normal; }
.park-preview-cover p { margin: 5px 0 0; font-size: 9px; }
.opc-preview-band { height: 38px; padding: 12px; color: #a46b00; background: linear-gradient(90deg,#fff7dc,#fff); font-size: 9px; font-weight: 700; }
.opc-preview-head { padding: 13px; display: flex; gap: 10px; align-items: center; }
.opc-preview-head > img, .opc-preview-head > .letter-avatar { width: 54px; height: 54px; }
.opc-preview-head > div { min-width: 0; }
.opc-preview-head b { display: block; font-size: 13px; }
.opc-preview-head em { display: inline-block; margin-top: 3px; color: var(--green); font-size: 8px; font-style: normal; }
.opc-preview-head span { display: block; margin-top: 4px; color: var(--blue); font-size: 8px; }
.opc-preview-head p { margin: 5px 0 0; color: var(--ink-2); font-size: 9px; line-height: 1.45; }
.preview-stats { margin: 0 12px; padding: 10px 0; display: grid; grid-template-columns: repeat(2,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.preview-stats.three { grid-template-columns: repeat(3,1fr); }
.preview-stats b { text-align: center; color: var(--blue); font-size: 14px; }
.preview-stats small { display: block; margin-top: 3px; color: var(--muted); font-size: 7px; font-weight: 400; }
.preview-tags { padding: 11px 12px 5px; }
.preview-tags span { padding: 4px 6px; background: #eef2f7; color: #52617a; border-radius: 4px; font-size: 7.5px; }
.preview-cta { width: calc(100% - 24px); margin: 9px 12px 11px; height: 34px; border: 0; border-radius: 6px; background: var(--blue); color: white; font-size: 10px; font-weight: 700; }
.preview-article { padding: 13px; border-top: 10px solid var(--bg); }
.preview-article h3 { margin: 0 0 8px; font-size: 11px; }
.preview-article p { font-size: 8.5px; line-height: 1.55; color: var(--ink-2); }
.preview-article figure { margin: 8px 0; }
.preview-article figure img, .media-placeholder { width: 100%; height: 90px; object-fit: cover; border-radius: 6px; background: #f0f3f7; display: grid; place-items: center; color: var(--muted); }
.preview-article figcaption { text-align: center; color: var(--muted); font-size: 7px; margin-top: 3px; }
.price-preview { margin: 6px 12px; padding: 8px; border: 1px solid #f2cd78; background: #fff8e7; border-radius: 6px; color: #c87b00; font-size: 13px; font-weight: 700; }
.price-preview small { font-size: 8px; color: var(--muted); }
.user-preview { display: flex; gap: 12px; align-items: center; padding: 20px; }
.user-preview > img, .user-preview > .letter-avatar { width: 60px; height: 60px; }
.user-preview b { font-size: 16px; margin-right: 6px; }
.user-preview p { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.read-only-box { margin: 0 16px 16px; background: #f6f8fb; border-radius: 8px; padding: 12px; display: grid; grid-template-columns: 80px 1fr; gap: 8px; font-size: 9px; }
.read-only-box span { color: var(--muted); }

.content-toolbar { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.content-toolbar > span { margin-left: auto; color: var(--muted); font-size: 10px; }
.content-blocks { display: grid; gap: 9px; }
.content-block { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.content-block-head { height: 38px; padding: 0 10px; background: #fafbfd; display: flex; align-items: center; justify-content: space-between; }
.content-block-head > span { font-size: 11px; font-weight: 600; }
.content-block-head .icon-button { width: 27px; height: 27px; }
.content-block > textarea { border: 0; border-radius: 0; resize: vertical; min-height: 105px; }
.block-media-input { padding: 11px; display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; align-items: center; }
.block-media-placeholder { grid-row: 1 / 3; width: 130px; height: 88px; border-radius: 7px; background: #edf2f8; display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.block-media-placeholder.video { background: #e9eef8; }
.block-media-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.block-media-input label { display: grid; gap: 4px; }
.block-media-input label span { color: var(--muted); font-size: 9px; }
.works-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.work-edit-card { position: relative; border: 1px solid var(--line); border-radius: 9px; padding: 9px; display: grid; gap: 7px; }
.work-image { height: 88px; border-radius: 6px; background: #eff2f7; display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.work-image img { width: 100%; height: 100%; object-fit: cover; }
.work-edit-card label { display: grid; gap: 4px; }
.work-edit-card label span { color: var(--muted); font-size: 9px; }
.work-edit-card input { width: 100%; height: 31px; border: 1px solid var(--line); border-radius: 6px; padding: 0 7px; font-size: 10px; }
.work-delete { position: absolute; right: 3px; top: 3px; background: rgba(255,255,255,.9); }
.binding-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.binding-option { min-height: 58px; display: grid; grid-template-columns: 18px 38px 1fr; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; cursor: pointer; }
.binding-option.selected { border-color: #8ab2f2; background: #f5f9ff; }
.binding-option img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.binding-option b { display: block; font-size: 10.5px; }
.binding-option small { color: var(--muted); font-size: 9px; }
.relation-hint { margin-top: 10px; padding: 10px; border-radius: 7px; background: #f6f8fb; color: var(--muted); font-size: 11px; }
.uid-head, .uid-manager-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.uid-head b { font-size: 12px; }
.uid-head p, .uid-manager-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.uid-list { display: grid; gap: 7px; }
.uid-row { min-height: 60px; display: grid; grid-template-columns: 36px minmax(120px,.7fr) minmax(230px,1.5fr) auto auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 9px; }
.uid-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 700; }
.uid-row b, .uid-row strong { display: block; font-size: 10.5px; }
.uid-row code { display: inline-block; margin-top: 3px; }
.uid-row span:not(.status) { color: var(--muted); font-size: 9px; line-height: 1.4; }
.switch-field { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.switch-field span { display: flex; flex-direction: column; }
.switch-field b { font-size: 11px; }
.switch-field small { color: var(--muted); font-size: 9px; }

.form-config-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-config-card { padding: 18px; }
.form-card-head { display: flex; justify-content: space-between; align-items: flex-start; }
.form-card-head span:first-child { color: var(--blue); font-size: 9px; font-family: monospace; }
.form-card-head h2 { margin: 5px 0 0; font-size: 17px; }
.form-config-card > p { min-height: 42px; color: var(--muted); line-height: 1.55; font-size: 11.5px; }
.form-field-pills { min-height: 70px; display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.form-field-pills span { padding: 5px 7px; border-radius: 6px; background: #f2f5fa; color: #4f5e75; font-size: 10px; }
.form-field-pills b { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 4px; border-radius: 50%; background: #dce8fb; color: var(--blue); font-size: 8px; }
.form-card-meta { display: flex; justify-content: space-between; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.form-card-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 13px; }
.frontend-form-preview { max-width: 390px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 21px; box-shadow: var(--shadow); }
.frontend-form-preview h2 { margin: 0 0 7px; font-size: 19px; }
.frontend-form-preview > p { margin: 0 0 17px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.frontend-form-preview > div { display: grid; gap: 11px; }
.frontend-form-preview label { display: grid; gap: 6px; color: var(--ink-2); font-size: 11px; }
.frontend-form-preview input, .frontend-form-preview textarea, .frontend-form-preview select { width: 100%; border: 1px solid #dce2ec; border-radius: 7px; padding: 9px; }
.frontend-form-preview button { width: 100%; height: 40px; margin-top: 15px; border: 0; border-radius: 7px; background: var(--blue); color: white; font-weight: 700; }
.subsection-head { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 10px; }
.subsection-head h3 { margin: 0; font-size: 14px; }
.subsection-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.form-field-list { display: grid; gap: 7px; }
.form-field-row { min-height: 54px; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 9px; }
.form-field-row.disabled { opacity: .55; }
.form-field-row > b { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 9px; }
.form-field-row strong { display: block; font-size: 10.5px; }
.form-field-row span, .form-field-row small { display: block; color: var(--muted); font-size: 9px; margin-top: 3px; }

.operation-detail { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 16px; background: #f5f7fa; }
.operation-main { display: grid; gap: 12px; }
.operation-side { position: relative; }
.status-path { display: flex; align-items: center; background: white; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.status-path span { width: 94px; height: 30px; display: grid; place-items: center; border-radius: 16px; background: #edf1f6; color: var(--muted); font-size: 9.5px; }
.status-path span.done { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.status-path i { height: 2px; flex: 1; background: #dbe2ec; }
.detail-card { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 15px; }
.detail-card h3 { margin: 0 0 13px; font-size: 13px; }
.detail-card dl { display: grid; grid-template-columns: 120px 1fr; gap: 9px 12px; margin: 0; }
.detail-card dt { color: var(--muted); font-size: 10.5px; }
.detail-card dd { margin: 0; font-size: 11.5px; line-height: 1.5; }
.detail-card.danger-card { border-color: #efb6b2; background: #fffafa; }
.info-strip { display: flex; justify-content: space-between; margin-top: 12px; padding: 9px 10px; border-radius: 7px; background: #f5f7fa; }
.info-strip span { color: var(--muted); }
.note-list p { margin: 6px 0; padding: 8px 9px; border-radius: 6px; background: #f5f7fa; font-size: 10.5px; }
.inline-add { display: flex; gap: 7px; margin-top: 9px; }
.timeline { display: grid; gap: 10px; border-left: 2px solid #dce5f3; margin-left: 5px; padding-left: 15px; }
.timeline div { position: relative; }
.timeline div:before { content: ""; position: absolute; left: -21px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; }
.timeline span { color: var(--muted); font-size: 9px; }
.timeline p { margin: 3px 0 0; font-size: 11px; }
.action-panel { position: sticky; top: 0; background: white; border: 1px solid var(--line); border-radius: 10px; padding: 15px; }
.action-panel > small { display: block; color: var(--muted); margin-bottom: 7px; }
.action-panel > p { color: var(--muted); font-size: 10px; line-height: 1.55; }
.closed-note { padding: 10px; text-align: center; border-radius: 7px; background: #f3f5f8; color: var(--muted); font-size: 10px; }
.file-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.file-chips span { padding: 6px 8px; background: #eef3fb; color: #3a5c8b; border-radius: 5px; font-size: 9px; }

.tag-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.tag-group { padding: 17px; }
.tag-group-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 11px; }
.tag-group h2 { margin: 0; font-size: 15px; }
.tag-group p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.tag-editor-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-editor-list > div { display: flex; align-items: center; height: 31px; border: 1px solid var(--line); border-radius: 6px; padding-left: 9px; background: #fafbfd; }
.tag-editor-list span { font-size: 10.5px; }
.tag-editor-list .icon-button { width: 27px; height: 27px; }

.modal-mask { position: fixed; inset: 0; z-index: 100; background: rgba(18,29,48,.48); display: grid; place-items: center; padding: 30px; backdrop-filter: blur(3px); }
.modal { width: 680px; max-height: calc(100vh - 60px); background: #fff; border-radius: 15px; box-shadow: 0 24px 80px rgba(18,29,48,.25); overflow: hidden; display: flex; flex-direction: column; }
.modal.small { width: 430px; }
.modal.medium { width: 680px; }
.modal.large { width: 930px; }
.modal.xlarge { width: min(1180px, calc(100vw - 80px)); }
.modal-head { min-height: 70px; padding: 16px 19px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; }
.modal-head h2 { margin: 0 0 5px; font-size: 18px; }
.modal-head p { margin: 0; color: var(--muted); font-size: 10.5px; }
.modal-body { padding: 18px; overflow: auto; }
.modal-foot { min-height: 62px; padding: 11px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.split-modal { display: grid; grid-template-columns: minmax(0,1fr) 390px; gap: 18px; background: #f7f8fb; }
.modal-form-area, .modal-preview-area { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 15px; }
.modal-preview-area { align-self: start; position: sticky; top: 0; }
.preview-modal-body { background: #f5f7fa; }
.preview-modal-body .preview-shell { max-width: 420px; margin: 0 auto; }
.confirm-box { display: flex; align-items: flex-start; gap: 12px; padding: 13px; border-radius: 9px; background: var(--red-soft); color: var(--red); }
.confirm-box > span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: white; font-weight: 700; }
.confirm-box p { margin: 2px 0 0; color: #8e3c37; line-height: 1.5; }
.permission-box { margin-top: 15px; border: 1px solid var(--line); border-radius: 9px; padding: 12px; }
.permission-box h3 { margin: 0 0 10px; font-size: 12px; }
.permission-box label { display: inline-flex; gap: 6px; align-items: center; margin: 5px 12px 5px 0; font-size: 10.5px; }
.choice-list { display: grid; gap: 7px; }
.choice-row { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.choice-row > div { display: flex; align-items: center; gap: 10px; flex: 1; }
.choice-row img { width: 52px; height: 38px; object-fit: cover; border-radius: 5px; }
.choice-row img.round { width: 38px; border-radius: 50%; }
.choice-row b { display: block; font-size: 11px; }
.choice-row small { display: block; color: var(--muted); font-size: 9px; margin-top: 2px; }
.news-hover-preview { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #f7f9fd; }
.news-hover-preview > div { display: flex; align-items: center; gap: 9px; }
.news-hover-preview > div span { color: var(--blue); background: var(--blue-soft); padding: 4px 7px; border-radius: 4px; font-size: 10px; }
.news-hover-preview > div b { font-size: 13px; }
.news-hover-preview img { width: 100%; height: 165px; object-fit: cover; border-radius: 8px; margin-top: 13px; }
.news-hover-preview p { color: var(--muted); font-size: 11px; line-height: 1.6; }
.news-hover-preview small { color: var(--muted); }
.mapping-table { width: 100%; border-collapse: collapse; }
.mapping-table th, .mapping-table td { text-align: left; padding: 11px; border: 1px solid var(--line); font-size: 11px; }
.mapping-table th { background: #f7f9fc; color: var(--muted); }
.homepage-full-preview { background: #f4f6fa; display: grid; gap: 14px; }
.homepage-full-preview > section { background: white; border-radius: 12px; padding: 20px; }
.full-hero { color: white; background: linear-gradient(135deg,#0b3979,#0870df) !important; }
.full-hero small { opacity: .75; }
.full-hero h1 { font-size: 28px; margin: 9px 0; }
.full-hero p { opacity: .82; }
.full-hero button { border: 0; border-radius: 8px; background: white; color: var(--blue); padding: 10px 14px; font-weight: 700; }
.full-hero button span { display: block; font-size: 8px; margin-top: 3px; }
.full-hero em { display: block; margin-top: 7px; font-size: 9px; opacity: .65; }
.preview-card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.preview-card-grid article { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; padding-bottom: 9px; }
.preview-card-grid img { width: 100%; height: 110px; object-fit: cover; }
.preview-card-grid small, .preview-card-grid b, .preview-card-grid p { display: block; margin: 7px 10px 0; }
.preview-card-grid small { color: var(--blue); font-size: 9px; }
.preview-card-grid p { color: var(--muted); font-size: 9px; }
.preview-list { display: grid; gap: 6px; }
.preview-list > div { display: grid; grid-template-columns: 36px 1fr auto; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 7px; padding: 7px; }
.preview-list img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.preview-list span { color: var(--muted); font-size: 9px; }

.toast-stack { position: fixed; right: 22px; top: 76px; z-index: 150; display: grid; gap: 8px; }
.toast { width: 310px; min-height: 48px; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 35px rgba(19,33,57,.16); transform: translateX(120%); transition: .22s; }
.toast.show { transform: translateX(0); }
.toast > span { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--green); }
.toast.error > span { background: var(--red); }
.toast.warning > span { background: var(--amber); }
.toast p { margin: 0; font-size: 11.5px; line-height: 1.45; }

@media (max-width: 1350px) {
  .editor-layout { grid-template-columns: 160px minmax(0,1fr) 285px; }
  .home-layout { grid-template-columns: minmax(0,1fr) 285px; }
  .works-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* V7.2 · 前端字段与主体管理端对齐补充 */
.mini-hero-sub { display: block; margin: -1px 0 4px; color: rgba(255,255,255,.66); font-size: 8px !important; line-height: 1.45; }
.full-hero-sub { margin: -5px 0 13px; color: rgba(255,255,255,.68); font-size: 11px; }

.application-submission { display: grid; gap: 14px; }
.application-meta { display: grid; grid-template-columns: 92px minmax(0,1fr) 92px minmax(0,1fr) 92px minmax(0,1fr); align-items: center; gap: 8px 12px; padding: 12px 14px; border: 1px solid #d8e4f7; border-radius: 10px; background: #f7faff; }
.application-meta span { color: var(--muted); font-size: 10.5px; }
.application-meta b, .application-meta code { min-width: 0; overflow-wrap: anywhere; }
.submission-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.submission-fields > div { min-height: 72px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.submission-fields > div span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 7px; }
.submission-fields > div p { margin: 0; color: var(--ink); font-size: 11.5px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }

.binding-summary { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 12px; }
.binding-summary > span { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfd; color: var(--muted); font-size: 10.5px; }
.binding-summary > span b { color: var(--ink); font-size: 13px; }
.park-binding-list { display: grid; gap: 9px; }
.park-binding-row { position: relative; display: grid; grid-template-columns: minmax(190px,1.45fr) minmax(125px,.8fr) minmax(130px,.8fr) minmax(120px,.7fr) 32px; gap: 9px; align-items: end; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfd; }
.park-binding-row label { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.park-binding-row label > span { color: #536176; font-size: 10px; font-weight: 600; }
.park-binding-row input, .park-binding-row select { width: 100%; height: 36px; border: 1px solid #dce2ec; border-radius: 7px; background: white; padding: 0 9px; color: var(--ink); outline: 0; }
.park-binding-row input:focus, .park-binding-row select:focus { border-color: #7aa7ef; box-shadow: 0 0 0 3px rgba(0,82,217,.08); }
.binding-delete { align-self: end; height: 36px; }
.relation-hint { margin-top: 11px; padding: 10px 12px; border-radius: 8px; background: #f4f7fb; color: #607089; font-size: 10.5px; line-height: 1.55; }

.ledger-summary { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 10px 14px; border: 1px solid #d8e4f7; border-radius: 10px; background: linear-gradient(135deg,#f7faff,#eef5ff); margin-bottom: 10px; }
.ledger-summary span { color: var(--muted); font-size: 11px; }
.ledger-summary b { color: var(--blue); font-size: 21px; }
.ledger-table { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.ledger-head, .ledger-row { display: grid; grid-template-columns: 112px 90px minmax(180px,1fr) 82px 82px; gap: 10px; align-items: center; padding: 10px 12px; }
.ledger-head { background: #f7f9fc; color: var(--muted); font-size: 10px; font-weight: 600; }
.ledger-row { border-top: 1px solid #edf0f5; background: #fff; font-size: 10.5px; }
.ledger-row span:nth-child(3) { line-height: 1.5; overflow-wrap: anywhere; }
.ledger-row b { text-align: right; }
.ledger-row .plus { color: var(--green); }
.ledger-row .minus { color: var(--red); }

.business-state-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.business-state-grid article { min-height: 112px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfd; }
.business-state-grid article > span:first-child { display: block; margin-bottom: 9px; color: var(--muted); font-size: 10px; }
.business-state-grid article > b { display: block; font-size: 18px; }
.business-state-grid article .status { margin-bottom: 1px; }
.business-state-grid article p { margin: 8px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.55; }

.console-sync-panel { margin-top: 14px; padding: 12px; border: 1px solid #cfe0ff; border-radius: 10px; background: #f5f9ff; }
.console-sync-panel > strong { display: block; color: #315985; font-size: 10.5px; margin-bottom: 9px; }
.console-sync-panel > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.console-sync-panel > div span { min-width: 0; padding: 8px; border-radius: 7px; background: white; color: var(--muted); font-size: 8.5px; text-align: center; }
.console-sync-panel > div b { display: block; margin-top: 4px; color: var(--ink); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console-sync-panel > p { margin: 8px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }

@media (max-width: 1450px) {
  .application-meta { grid-template-columns: 82px minmax(0,1fr) 82px minmax(0,1fr); }
  .application-meta > :nth-last-child(-n+2) { grid-column: auto; }
  .park-binding-row { grid-template-columns: minmax(175px,1.35fr) minmax(120px,.8fr) minmax(125px,.8fr) minmax(105px,.7fr) 32px; }
}

/* V7.3：前端页面专属外显字段 */
.placement-override-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.placement-override-head,
.placement-context-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.placement-override-head h3,
.placement-context-head b {
  margin: 0;
  color: var(--text);
}

.placement-override-head p,
.placement-context-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.placement-override-list {
  display: grid;
  gap: 12px;
}

.placement-override-card,
.placement-context-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f9fbff;
}

.placement-override-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.placement-override-title b {
  min-width: 0;
  color: var(--text);
}

.placement-override-title small {
  flex: none;
  color: var(--muted);
}

.compact-grid {
  gap: 10px;
}

.placement-context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.placement-context-card .form-grid {
  grid-template-columns: 1fr;
}

.placement-context-card .field,
.placement-context-card .field.span-2 {
  grid-column: 1 / -1;
}

.placement-preview-panel {
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed #b7c7e8;
  border-radius: 12px;
  background: #f5f8ff;
}

.placement-preview-panel strong {
  display: block;
  margin-bottom: 7px;
  color: #1f4f9d;
}

.placement-preview-panel p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .placement-context-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .placement-override-head,
  .placement-context-head,
  .placement-override-title {
    flex-direction: column;
  }
}

/* V8.0：运营结构收敛、搜索选择、富文本与审核节点 */
.subpage-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(38, 56, 88, .04);
  overflow-x: auto;
}
.subpage-tab {
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
.subpage-tab:hover { background: #f4f7fb; color: var(--ink); }
.subpage-tab.is-active { background: var(--blue-soft); color: var(--blue); }

.selection-search,
.binding-search,
.modal-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}
.selection-search input,
.binding-search input,
.modal-search input {
  min-width: 0;
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  outline: none;
  color: var(--ink);
}
.selection-search input:focus,
.binding-search input:focus,
.modal-search input:focus { border-color: #8eb8ff; box-shadow: 0 0 0 3px rgba(0, 82, 217, .08); }
.modal-search { position: sticky; top: -1px; z-index: 2; padding: 8px; margin: -4px 0 10px; border-radius: 10px; background: rgba(255,255,255,.96); }
.modal-search span { color: var(--muted); }
.selection-count { margin-right: auto; color: var(--muted); font-size: 12px; }
.selection-count b { color: var(--blue); font-size: 14px; }
.choice-row[hidden] { display: none !important; }

.management-copy-panel {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(38, 56, 88, .04);
  overflow: hidden;
}
.management-copy-panel summary {
  min-height: 68px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}
.management-copy-panel summary::-webkit-details-marker { display: none; }
.management-copy-panel summary > div { display: flex; flex-direction: column; gap: 5px; }
.management-copy-panel summary b { color: var(--ink); font-size: 15px; }
.management-copy-panel summary span { color: var(--muted); font-size: 12px; }
.management-copy-panel[open] summary { border-bottom: 1px solid var(--line); background: #fbfcff; }
.management-copy-body { padding: 18px; }
.management-copy-actions { display: flex; justify-content: flex-end; padding-top: 14px; }

.rich-editor {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.rich-toolbar {
  min-height: 48px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  background: #f8faff;
}
.rich-toolbar .sync-badge { margin-right: 8px; }
.rich-toolbar button {
  min-width: 34px;
  height: 31px;
  padding: 0 10px;
  border: 1px solid #dce4f0;
  border-radius: 7px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12px;
}
.rich-toolbar button:hover { border-color: #9dbaf0; color: var(--blue); background: var(--blue-soft); }
.rich-editor-body {
  min-height: 310px;
  padding: 18px;
  outline: none;
  color: var(--ink);
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.rich-editor-body:empty::before { content: attr(data-placeholder); color: #a1adbf; pointer-events: none; }
.rich-editor-body h2 { margin: 20px 0 10px; font-size: 19px; }
.rich-editor-body p { margin: 8px 0; }
.rich-editor-body img { max-width: 100%; height: auto; margin: 14px auto; border-radius: 10px; }
.rich-editor > small { display: block; padding: 0 18px 14px; color: var(--muted); line-height: 1.6; }
.rich-preview-content { color: var(--ink-2); line-height: 1.75; overflow-wrap: anywhere; }
.rich-preview-content h2 { margin: 15px 0 8px; font-size: 15px; color: var(--ink); }
.rich-preview-content p { margin: 7px 0; }
.rich-preview-content img { width: 100%; height: auto; margin: 10px 0; border-radius: 8px; }

.project-editor,
.simple-binding {
  display: grid;
  gap: 14px;
}
.relation-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.relation-toolbar > div { display: flex; flex-direction: column; gap: 4px; }
.relation-toolbar b { font-size: 14px; color: var(--ink); }
.relation-toolbar span { color: var(--muted); font-size: 12px; }
.project-list { display: grid; gap: 14px; }
.project-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcff;
  overflow: hidden;
}
.project-card-head {
  min-height: 46px;
  padding: 8px 12px 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #f5f8fd;
}
.project-card-head > div { display: flex; align-items: center; gap: 2px; }
.project-fields {
  padding: 14px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
}
.project-fields > div:last-child { display: grid; gap: 10px; }
.project-fields label { display: grid; gap: 6px; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.project-fields input,
.project-fields textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 11px;
  outline: none;
  color: var(--ink);
  resize: vertical;
}
.project-fields input:focus,
.project-fields textarea:focus { border-color: #8eb8ff; box-shadow: 0 0 0 3px rgba(0, 82, 217, .08); }
.project-image-preview {
  min-height: 166px;
  display: grid;
  place-items: center;
  border: 1px dashed #cbd6e6;
  border-radius: 10px;
  background: #eef3fa;
  color: var(--muted);
  overflow: hidden;
}
.project-image-preview img { width: 100%; height: 100%; min-height: 166px; object-fit: cover; }
.project-preview { margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); }
.project-preview h3 { margin: 0 0 10px; }
.project-preview article { display: grid; grid-template-columns: 86px 1fr; gap: 10px; padding: 8px 0; }
.project-preview article img { width: 86px; height: 58px; object-fit: cover; border-radius: 7px; }
.project-preview article b { display: block; font-size: 12px; }
.project-preview article p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.bound-opc-list { display: grid; gap: 9px; }
.bound-opc-row {
  min-height: 64px;
  padding: 9px 10px 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcff;
}
.bound-opc-row .entity-cell { min-width: 0; }
.read-only-relation {
  min-height: 94px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #dce5f4;
  border-radius: 12px;
  background: #f7f9fd;
}
.read-only-relation > div { min-width: 0; display: grid; gap: 5px; }
.read-only-relation span { color: var(--muted); font-size: 12px; }
.read-only-relation b { color: var(--ink); font-size: 15px; }
.read-only-relation p { margin: 0; color: var(--muted); font-size: 12px; }

.needs-operation { background: #fffdf7; }
.needs-operation td:first-child { box-shadow: inset 3px 0 0 #efaa2c; }
.operation-needed {
  display: inline-flex;
  margin-top: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 10px;
  font-weight: 700;
}
.waiting-note,
.operation-callout,
.closed-note {
  padding: 13px;
  border: 1px solid #cbdaf4;
  border-radius: 10px;
  background: #f4f8ff;
}
.operation-callout { margin-bottom: 10px; }
.operation-callout.danger { border-color: #f0b8b4; background: var(--red-soft); }
.waiting-note b,
.operation-callout b { display: block; color: var(--ink); }
.waiting-note p,
.operation-callout p,
.closed-note { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.closed-note { margin: 0; }
.action-panel .button.block { width: 100%; margin-top: 9px; }
.operation-detail .status-path.five span { width: 90px; }
.operation-detail .status-path.six span { width: 82px; }
.operation-detail .status-path { overflow-x: auto; }
.operation-detail .status-path span { flex: 0 0 auto; }
.operation-detail .status-path i { min-width: 18px; }
.danger-card { border-color: #f0b8b4 !important; background: #fff8f7 !important; }

/* V8.1 · Yehe-style dense desktop operations shell */
:root {
  --blue: #108ee9;
  --blue-2: #49a9ee;
  --blue-soft: #e6f5ff;
  --ink: rgba(0, 0, 0, .85);
  --ink-2: rgba(0, 0, 0, .65);
  --muted: rgba(0, 0, 0, .43);
  --line: #e9e9e9;
  --bg: #fff;
  --green: #00a854;
  --amber: #ffbf00;
  --red: #f04134;
  --radius: 2px;
  --shadow: none;
}
* { letter-spacing: 0; }
body { min-width: 1180px; background: #fff; color: var(--ink); font-family: "PingFang SC", "Helvetica Neue", Arial, "Microsoft YaHei UI", sans-serif; font-size: 12px; }
.topbar { height: 50px; padding: 0 12px; background: #404040; border: 0; backdrop-filter: none; color: rgba(255,255,255,.87); }
.brand-area, .topbar-actions { gap: 10px; }
.brand-mark { width: 31px; height: 31px; border-radius: 2px; background: #108ee9; box-shadow: none; font-size: 10px; }
.brand-copy { flex-direction: row; align-items: baseline; gap: 9px; }
.brand-copy strong { font-size: 16px; font-weight: 500; color: #fff; }
.brand-copy span { color: rgba(255,255,255,.48); font-size: 11px; }
.icon-button { color: rgba(255,255,255,.78); border-radius: 2px; }
.icon-button:hover { background: #555; color: #fff; }
.sidebar-toggle { font-size: 16px; }
.environment-button { height: 26px; padding: 0 8px; border: 1px solid #666; background: transparent; border-radius: 2px; color: rgba(255,255,255,.8); font-size: 11px; }
.environment-button i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: #00a854; }
.global-search { width: 300px; height: 30px; border: 0; border-radius: 30px; background: #555; color: rgba(255,255,255,.55); padding: 0 12px; }
.global-search input { color: #fff; font-size: 12px; }
.global-search input::placeholder { color: rgba(255,255,255,.55); }
.account-button { width: auto; height: 30px; padding: 0 4px; border-radius: 0; background: transparent; color: rgba(255,255,255,.75); font-size: 12px; font-weight: 400; }
.topbar .button.ghost { border-color: #666; background: transparent; color: rgba(255,255,255,.8); }
.sidebar { top: 50px; width: 240px; padding: 0 0 14px; background: #404040; border: 0; color: rgba(255,255,255,.67); }
.workspace { height: 51px; padding: 0 16px 0 28px; margin: 0; border-bottom: 1px solid #4d4d4d; }
.workspace-icon { width: 20px; height: 20px; border-radius: 0; background: transparent; color: #fff; }
.workspace div { gap: 0; }.workspace strong { font-size: 14px; font-weight: 500; color: #fff; }.workspace small { color: rgba(255,255,255,.43); font-size: 10px; }
.nav-group-title { height: 34px; padding: 0 16px 0 28px; margin: 12px 0 0; display: flex; align-items: center; color: rgba(255,255,255,.43); font-size: 11px; font-weight: 400; letter-spacing: 0; }
.nav-list { gap: 0; }.nav-item { height: 42px; padding: 0 16px 0 28px; border-radius: 0; color: rgba(255,255,255,.67); }.nav-item:hover { background: #4d4d4d; color: #fff; }.nav-item.is-active { background: #108ee9; color: #fff; }.nav-item span { font-size: 14px; }.nav-item b { font-size: 12px; font-weight: 400; }.nav-item em { background: #555; color: rgba(255,255,255,.7); border-radius: 10px; }.nav-item em.warn { background: #77504c; color: #fff; }
.sidebar-foot { padding: 12px 16px 0 28px; }.scope-note { border: 0; border-radius: 0; padding: 10px 0; background: transparent; border-top: 1px solid #4d4d4d; }.scope-note strong { color: rgba(255,255,255,.75); }.scope-note p { color: rgba(255,255,255,.43); }.text-button { padding: 8px 0; color: #49a9ee; text-align: left; }
.app-main { margin-left: 240px; padding: 74px 24px 48px; min-height: 100vh; }.page-head { align-items: center; margin-bottom: 18px; }.page-head h1 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: 0; }.page-head p, .eyebrow { display: none; }.page-actions { gap: 8px; }
.button { height: 32px; padding: 0 13px; border-radius: 4px; border-color: #d9d9d9; color: rgba(0,0,0,.65); background: #fff; font-size: 12px; font-weight: 400; }.button.primary { border-color: #108ee9; background: #108ee9; box-shadow: none; }.button.primary:hover { background: #49a9ee; }.button.compact { height: 28px; border-radius: 4px; }.button.ghost { background: #fff; }.page-actions .button { height: 32px; }
.subpage-tabs { height: 40px; margin: 0 0 16px; padding: 0; border: 0; border-bottom: 1px solid #e9e9e9; border-radius: 0; box-shadow: none; background: transparent; gap: 24px; }.subpage-tab { position: relative; height: 40px; padding: 0; border-radius: 0; font-size: 12px; font-weight: 400; }.subpage-tab.is-active { color: #108ee9; background: transparent; }.subpage-tab.is-active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: #108ee9; }
.alignment-banner, .context-banner { min-height: 40px; margin-bottom: 16px; padding: 9px 10px; border: 1px solid #d2eafb; border-radius: 2px; background: #ecf6fd; box-shadow: none; }.alignment-banner > span { width: 20px; height: 20px; border-radius: 50%; background: #108ee9; font-size: 12px; }.alignment-banner strong { font-size: 12px; }.alignment-banner p { font-size: 12px; color: rgba(0,0,0,.65); }
.table-card, .editor-section, .sticky-card, .tag-group, .form-config-card { border: 1px solid #e9e9e9; border-radius: 2px; box-shadow: none; }.table-tools { min-height: 48px; padding: 8px 12px; }.table-tools span { font-size: 12px; }.table-card { overflow: visible; }.data-table { min-width: 980px; font-size: 12px; }.data-table th { padding: 12px 8px; background: #f7f7f7; color: rgba(0,0,0,.65); font-size: 12px; font-weight: 500; }.data-table td { min-height: 72px; padding: 16px 8px; border-top-color: #e9e9e9; }.data-table tbody tr:hover { background: #fafafa; }.data-table tbody tr.is-selected, .data-table tbody tr.selected { background: #e6f5ff; }.entity-cell { gap: 8px; }.entity-cell b { font-size: 12px; }.entity-cell span, .muted-line { font-size: 11px; }.entity-cover { border-radius: 2px; }.entity-avatar, .letter-avatar { width: 36px; height: 36px; }.letter-avatar { border-radius: 2px; background: #e6f5ff; color: #108ee9; }.row-actions { gap: 0; }.row-actions .button, .row-actions .icon-button { margin-right: 7px; }.status { min-height: 24px; height: 24px; padding: 2px 10px; border: 1px solid #e9e9e9; border-radius: 4px; background: #fafafa !important; color: rgba(0,0,0,.65) !important; font-size: 11px; font-weight: 400; }.status::before { content: ""; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #bfbfbf; }.status.success::before { background: #00a854; }.status.warning::before { background: #ffbf00; }.status.danger::before { background: #f04134; }
.editor-section { padding: 16px 20px; }.section-heading { margin-bottom: 14px; padding-bottom: 12px; }.section-heading h2 { font-size: 14px; font-weight: 500; }.section-heading p { font-size: 12px; }.field > span, .media-field > span { font-size: 12px; font-weight: 400; color: rgba(0,0,0,.85); }.field input, .field textarea, .field select, .content-block textarea, .content-block input, .inline-add input { border-color: #d9d9d9; border-radius: 4px; font-size: 12px; }.field input, .field select { height: 40px; }.field input:focus, .field textarea:focus, .field select:focus, .content-block textarea:focus, .content-block input:focus { border-color: #108ee9; box-shadow: 0 0 0 2px rgba(16,142,233,.18); }
.home-layout { grid-template-columns: minmax(0,1fr) 290px; gap: 16px; }.home-main { gap: 16px; }.home-side { top: 66px; gap: 12px; }.sticky-card { padding: 14px; }.sticky-card h3 { font-size: 14px; }.stats-row { gap: 8px; margin-bottom: 16px; }.stat-card { padding: 13px; border-radius: 2px; box-shadow: none; }.stat-card strong { font-size: 22px; }.stat-card.blue, .stat-card.amber, .stat-card.green, .stat-card.violet { border-top-width: 2px; }
.modal-mask { background: rgba(0,0,0,.45); backdrop-filter: none; }.modal, .modal.small, .modal.medium { border-radius: 2px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }.modal.medium { width: 720px; }.modal-head { min-height: 64px; padding: 18px 20px; border-bottom-color: #e9e9e9; }.modal-head h2 { font-size: 18px; font-weight: 500; }.modal-head p { font-size: 12px; }.modal-head .icon-button { color: rgba(0,0,0,.65); }.modal-body { padding: 18px 20px; }.modal-foot { min-height: 74px; padding: 16px 20px; border-top-color: #e9e9e9; }.modal-form-area, .modal-preview-area { border-radius: 2px; }.toast-stack { top: 62px; right: auto; left: 50%; transform: translateX(-50%); }.toast { width: 300px; min-height: 42px; padding: 8px 12px; border-radius: 2px; box-shadow: 0 2px 8px rgba(0,0,0,.15); transform: translateY(-120%); }.toast.show { transform: translateY(0); }
.route-footer { position: fixed; right: 0; bottom: 0; left: 240px; z-index: 45; height: 24px; padding: 0 24px; display: flex; align-items: center; gap: 6px; border-top: 1px solid #e9e9e9; background: #f3f3f3; color: rgba(0,0,0,.43); font-size: 11px; }.route-footer-right { margin-left: auto; }.module-title { height: 48px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e9e9e9; }.module-title b { font-size: 14px; font-weight: 500; }.module-title span { color: rgba(0,0,0,.43); }.context-banner { display: flex; gap: 10px; align-items: center; }.context-banner > span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #108ee9; color: #fff; font-weight: 500; }.context-banner b { font-size: 12px; }.context-banner p { margin: 2px 0 0; color: rgba(0,0,0,.65); }.version-module .data-table { min-width: 0; }.version-module .data-table td { min-height: 64px; }
body.sidebar-collapsed .sidebar { width: 60px; } body.sidebar-collapsed .app-main { margin-left: 60px; } body.sidebar-collapsed .route-footer { left: 60px; } body.sidebar-collapsed .nav-item { padding: 0; } body.sidebar-collapsed .workspace { padding: 0; }

@media (max-width: 1260px) {
  .project-fields { grid-template-columns: 145px minmax(0, 1fr); }
  .operation-detail .status-path { padding: 11px; }
}

@media (max-width: 880px) {
  .relation-toolbar,
  .bound-opc-row,
  .read-only-relation { align-items: stretch; flex-direction: column; }
  .project-fields { grid-template-columns: 1fr; }
  .project-image-preview { min-height: 190px; }
}
