/* ==========================================================
   企易建站 —— 控制台样式（会员后台 / 编辑器 / 管理后台 / 登录页 / 收银台）
   商务蓝 B 端风格
   ========================================================== */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --dark: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f5f7fb;
  --white: #fff;
  --success: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(15, 23, 42, .08);
  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); color: var(--text); background: var(--soft); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
[v-cloak] { display: none !important; }

/* ============ 按钮 / 表单 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 8px; padding: 9px 18px;
  font-size: 14px; font-family: inherit; cursor: pointer; transition: all .18s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 6px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.form-label { display: block; font-size: 13.5px; color: var(--muted); margin: 14px 0 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 13px; font-size: 14px; font-family: inherit; outline: none;
  background: #fff; color: var(--text); transition: border-color .18s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.form-textarea { resize: vertical; min-height: 96px; line-height: 1.8; }
.form-hint { font-size: 12.5px; color: #94a3b8; margin-top: 6px; }
.input-group { display: flex; gap: 10px; }
.input-group .form-input { flex: 1; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.check input { width: 15px; height: 15px; accent-color: var(--primary); }
.switch { position: relative; display: inline-block; width: 42px; height: 23px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cbd5e1; border-radius: 20px; transition: .2s; cursor: pointer; }
.switch span::before { content: ''; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::before { transform: translateX(19px); }

/* ============ 布局骨架 ============ */
.app-shell { display: flex; min-height: 100vh; }
.app-side {
  width: 228px; flex: 0 0 228px; background: var(--dark); color: #cbd5e1;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.app-brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 18px; color: #fff; font-weight: 700; font-size: 17px; }
.app-brand .mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.app-nav { flex: 1; overflow-y: auto; padding: 6px 10px 20px; }
.app-nav-title { font-size: 11.5px; letter-spacing: 1px; color: #64748b; padding: 16px 12px 8px; }
.app-nav-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; border-radius: 8px; font-size: 14px; cursor: pointer; transition: .15s; margin-bottom: 2px;
}
.app-nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.app-nav-item.is-active { background: var(--primary); color: #fff; }
.app-nav-item .badge { background: var(--danger); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 10px; }
.app-nav-item.is-active .badge { background: rgba(255, 255, 255, .3); }
.app-side-foot { padding: 14px 18px; border-top: 1px solid #1e293b; font-size: 12.5px; color: #64748b; }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-top {
  height: 62px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 20;
}
.app-top h1 { font-size: 17px; color: var(--dark); }
.app-top-actions { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); }
.app-content { padding: 24px; flex: 1; }

.user-chip { display: flex; align-items: center; gap: 9px; }
.user-chip .avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
}

/* ============ 卡片 / 表格 ============ */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-head h2 { font-size: 16px; color: var(--dark); }
.panel-head .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.stat .label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat .value { font-size: 26px; font-weight: 700; color: var(--dark); margin-top: 8px; line-height: 1.2; }
.stat .value small { font-size: 14px; font-weight: 500; color: var(--muted); }
.stat .trend { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.stat.is-primary { background: linear-gradient(135deg, #2563eb, #3b82f6); border-color: transparent; color: #fff; }
.stat.is-primary .label, .stat.is-primary .value, .stat.is-primary .trend { color: #fff; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
table.data th {
  text-align: left; padding: 12px 12px; color: var(--muted); font-weight: 600;
  background: var(--soft); border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: 13px 12px; border-bottom: 1px solid var(--line); color: var(--text); vertical-align: middle; }
table.data tbody tr:hover { background: #fafbfe; }
table.data .actions { display: flex; gap: 8px; flex-wrap: wrap; }
table.data .empty-row { text-align: center; color: var(--muted); padding: 40px 0; }

.tag { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 10px; line-height: 1.7; }
.tag-blue { background: var(--primary-light); color: var(--primary); }
.tag-green { background: #ecfdf5; color: var(--success); }
.tag-orange { background: #fffbeb; color: var(--warn); }
.tag-red { background: #fef2f2; color: var(--danger); }
.tag-gray { background: #f1f5f9; color: var(--muted); }

.pager { display: flex; gap: 6px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.pager button {
  min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--line); background: #fff;
  border-radius: 6px; cursor: pointer; font-size: 13px; font-family: inherit;
}
.pager button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pager button.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager button:disabled { opacity: .5; cursor: not-allowed; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .form-input, .toolbar .form-select { width: auto; min-width: 160px; }
.toolbar .spacer { flex: 1; }

/* ============ 空状态 / 加载 ============ */
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty .icon { font-size: 40px; opacity: .45; margin-bottom: 12px; }
.loading { text-align: center; padding: 48px; color: var(--muted); font-size: 14px; }
.spinner {
  width: 22px; height: 22px; border: 2.5px solid var(--line); border-top-color: var(--primary);
  border-radius: 50%; animation: spin .7s linear infinite; margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ 弹窗 ============ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .48); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: #fff; border-radius: 14px; width: 100%; max-width: 620px;
  max-height: 88vh; overflow-y: auto; box-shadow: 0 30px 70px rgba(15, 23, 42, .3);
}
.modal.is-wide { max-width: 900px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16.5px; color: var(--dark); }
.modal-head .close { border: 0; background: none; font-size: 22px; color: #94a3b8; cursor: pointer; line-height: 1; }
.modal-body { padding: 22px 24px; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

/* ============ 提示 ============ */
.toast-wrap { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 11px 20px;
  box-shadow: var(--shadow); font-size: 14px; min-width: 200px; text-align: center;
}
.toast.ok { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }
.toast.err { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.toast.info { border-color: #c7dbff; background: var(--primary-light); color: #1d4ed8; }

/* ============ 登录页 ============ */
.plain-body { background: var(--soft); min-height: 100vh; }
.auth-wrap { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; }
.auth-side {
  background: linear-gradient(150deg, #1e3a8a, #2563eb 60%, #3b82f6);
  color: #fff; padding: 58px 56px; display: flex; flex-direction: column;
}
.auth-side h1 { font-size: 32px; line-height: 1.4; margin: 22px 0 26px; letter-spacing: -.5px; }
.auth-points { display: flex; flex-direction: column; gap: 14px; }
.auth-points li { font-size: 15px; color: rgba(255, 255, 255, .9); padding-left: 26px; position: relative; }
.auth-points li::before { content: '✓'; position: absolute; left: 0; color: #fff; opacity: .75; }
.auth-foot { margin-top: auto; font-size: 13px; color: rgba(255, 255, 255, .6); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 16px; padding: 34px 32px; box-shadow: var(--shadow); }
.auth-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.auth-tabs button {
  border: 0; background: none; font-family: inherit; font-size: 15.5px; color: var(--muted);
  padding: 0 0 12px; cursor: pointer; position: relative;
}
.auth-tabs button.is-active { color: var(--primary); font-weight: 600; }
.auth-tabs button.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--primary); border-radius: 2px;
}
.auth-form { padding-top: 6px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 18px; font-size: 13.5px; color: var(--muted); }
.auth-row a { color: var(--primary); }
.auth-msg { margin-top: 16px; font-size: 13.5px; padding: 10px 14px; border-radius: 8px; }
.auth-msg.err { background: #fef2f2; color: #b91c1c; }
.auth-msg.ok { background: #f0fdf4; color: #15803d; }
.auth-back { display: flex; gap: 12px; justify-content: center; margin-top: 24px; font-size: 13px; color: var(--muted); }
.auth-back a:hover { color: var(--primary); }

/* ============ 收银台 ============ */
.pay-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 30px 20px; }
.pay-card { width: 100%; max-width: 480px; background: #fff; border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.pay-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.pay-logo {
  width: 44px; height: 44px; border-radius: 12px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700;
}
.pay-head h1 { font-size: 19px; color: var(--dark); }
.pay-head p { font-size: 13px; color: var(--muted); }
.pay-amount {
  background: var(--primary-light); border-radius: 12px; padding: 20px; text-align: center; margin-bottom: 22px;
}
.pay-amount span { font-size: 13.5px; color: var(--muted); display: block; margin-bottom: 6px; }
.pay-amount strong { font-size: 32px; color: var(--primary); }
.pay-info { margin-bottom: 22px; }
.pay-info li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.pay-info li span { color: var(--muted); }
.pay-foot { text-align: center; margin-top: 18px; font-size: 13.5px; }
.pay-foot a { color: var(--primary); }
.notice-bar {
  background: var(--primary-light); border: 1px solid #c7dbff; color: #1e40af;
  padding: 13px 16px; border-radius: 9px; font-size: 13.5px; line-height: 1.8;
}

/* ============ 站点卡片（会员后台） ============ */
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.site-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s; }
.site-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.site-thumb {
  height: 132px; background: linear-gradient(135deg, #eff6ff, #dbeafe);
  display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 30px; position: relative;
}
.site-thumb img { width: 100%; height: 100%; object-fit: cover; }
.site-body { padding: 16px 18px 18px; }
.site-body h3 { font-size: 16px; color: var(--dark); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.site-meta { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; margin-bottom: 14px; }
.site-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============ 素材库 ============ */
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.asset-item { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; position: relative; }
.asset-item img { width: 100%; height: 118px; object-fit: cover; }
.asset-item .name { font-size: 12px; color: var(--muted); padding: 8px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-item .del {
  position: absolute; top: 8px; right: 8px; background: rgba(15, 23, 42, .68); color: #fff;
  border: 0; border-radius: 6px; padding: 3px 9px; font-size: 12px; cursor: pointer;
}
.upload-box {
  border: 1.5px dashed #cbd5e1; border-radius: 9px; padding: 26px; text-align: center;
  color: var(--muted); font-size: 13.5px; cursor: pointer; transition: .2s; background: #fff;
}
.upload-box:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ============ 编辑器 ============ */
.ed-shell { display: flex; flex-direction: column; height: 100vh; background: #eef1f6; }
.ed-top {
  height: 58px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 16px; flex-wrap: nowrap; overflow-x: auto;
}
.ed-top .title { font-size: 15px; font-weight: 600; color: var(--dark); white-space: nowrap; }
.ed-top .spacer { flex: 1; }
.ed-device { display: flex; background: var(--soft); border-radius: 8px; padding: 3px; }
.ed-device button {
  border: 0; background: none; font-family: inherit; font-size: 13px; padding: 6px 14px; border-radius: 6px;
  cursor: pointer; color: var(--muted);
}
.ed-device button.is-active { background: #fff; color: var(--primary); font-weight: 600; box-shadow: 0 1px 3px rgba(15, 23, 42, .1); }
.ed-body { flex: 1; display: flex; min-height: 0; }
.ed-left, .ed-right { width: 268px; flex: 0 0 268px; background: #fff; overflow-y: auto; }
.ed-left { border-right: 1px solid var(--line); }
.ed-right { border-left: 1px solid var(--line); }
.ed-center { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ed-canvas-wrap { flex: 1; overflow-y: auto; padding: 22px; display: flex; justify-content: center; }
.ed-canvas {
  width: 100%; max-width: 1100px; background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 6px 22px rgba(15, 23, 42, .1); min-height: 400px; transition: max-width .25s;
}
.ed-canvas.is-mobile { max-width: 390px; }
.ed-block { position: relative; }
.ed-block::after {
  content: ''; position: absolute; inset: 0; border: 1px solid transparent; pointer-events: none; transition: border-color .15s;
}
.ed-block:hover::after { border-color: #93c5fd; }
.ed-block.is-selected::after { border: 1.5px solid var(--primary); }
.ed-block-tools {
  position: absolute; top: 6px; right: 6px; z-index: 5; display: none; gap: 4px;
  background: var(--primary); border-radius: 6px; padding: 3px;
}
.ed-block:hover .ed-block-tools, .ed-block.is-selected .ed-block-tools { display: flex; }
.ed-block-tools button {
  border: 0; background: none; color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 4px; cursor: pointer;
}
.ed-block-tools button:hover { background: rgba(255, 255, 255, .22); }
.ed-drag-handle {
  position: absolute; top: 6px; left: -1px; z-index: 5; background: var(--primary); color: #fff;
  border: 0; border-radius: 0 6px 6px 0; padding: 4px 8px; cursor: grab; display: none; font-size: 12px;
}
.ed-block:hover .ed-drag-handle { display: block; }
.ed-block.is-dragover { box-shadow: inset 0 3px 0 var(--primary); }
.ed-empty { padding: 70px 20px; text-align: center; color: var(--muted); font-size: 14px; }

.ed-panel-title {
  font-size: 12.5px; letter-spacing: .6px; color: var(--muted); padding: 15px 16px 9px;
  text-transform: uppercase; font-weight: 600;
}
.palette { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 12px 16px; }
.palette-item {
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 8px; text-align: center;
  font-size: 12.5px; color: var(--text); cursor: grab; background: #fff; transition: .18s;
}
.palette-item:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.palette-item .ico { display: block; font-size: 17px; margin-bottom: 5px; color: var(--primary); }

.page-list { padding: 0 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.page-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 11px; border-radius: 7px; font-size: 13.5px; cursor: pointer; border: 1px solid transparent;
}
.page-item:hover { background: var(--soft); }
.page-item.is-active { background: var(--primary-light); border-color: #c7dbff; color: var(--primary); font-weight: 600; }
.page-item .ops { display: flex; gap: 4px; opacity: 0; transition: .15s; }
.page-item:hover .ops { opacity: 1; }
.page-item .ops button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 12px; padding: 2px 4px; }
.page-item .ops button:hover { color: var(--primary); }

.field-row { padding: 9px 16px 0; }
.field-row label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.field-row input, .field-row textarea, .field-row select {
  width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px;
  font-size: 13px; font-family: inherit; outline: none;
}
.field-row input:focus, .field-row textarea:focus, .field-row select:focus { border-color: var(--primary); }
.field-row textarea { min-height: 76px; resize: vertical; line-height: 1.7; }
.field-group { border: 1px solid var(--line); border-radius: 8px; margin: 10px 12px 0; padding: 12px; }
.field-group > h4 { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.item-block { border: 1px dashed var(--line); border-radius: 7px; padding: 10px; margin-bottom: 9px; background: #fafbfe; }
.item-block .head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; }
.item-block .head button { border: 0; background: none; color: var(--danger); cursor: pointer; font-size: 12px; }

/* ============ 图表（纯 CSS 柱状） ============ */
.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 180px; padding: 12px 4px 0; }
.chart-bars .bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart-bars .bar { width: 100%; max-width: 34px; background: linear-gradient(180deg, #60a5fa, var(--primary)); border-radius: 4px 4px 0 0; transition: height .3s; }
.chart-bars .bar-label { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* ============ 响应式 ============ */
/* 移动端侧栏开关：桌面隐藏，≤860px 显示（console/admin 通用） */
.app-side-toggle { display: none; }

/* ============ 轻量富文本编辑器 ============ */
.rich-editor { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.rich-editor .re-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.rich-editor .re-btn { border: 1px solid transparent; background: none; border-radius: 6px; padding: 4px 9px; font-size: 13px; color: var(--ink); cursor: pointer; }
.rich-editor .re-btn:hover { background: var(--primary-light); color: var(--primary); }
.rich-editor .re-view { min-height: 180px; max-height: 420px; overflow: auto; padding: 14px 16px; font-size: 14.5px; line-height: 1.8; outline: none; }
.rich-editor .re-view:empty::before { content: attr(data-placeholder); color: #94a3b8; }
.rich-editor .re-view h2 { font-size: 19px; margin: 14px 0 8px; }
.rich-editor .re-view h3 { font-size: 16px; margin: 12px 0 6px; }
.rich-editor .re-view p { margin: 8px 0; }
.rich-editor .re-view ul, .rich-editor .re-view ol { padding-left: 24px; margin: 8px 0; }
.rich-editor .re-view blockquote { margin: 10px 0; padding: 8px 14px; background: #f1f5f9; border-left: 3px solid var(--primary); border-radius: 6px; }
.rich-editor .re-view img { max-width: 100%; border-radius: 8px; }
/* 富文本只读展示（审核详情弹窗等） */
.rich-preview { font-size: 14.5px; line-height: 1.85; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; max-height: 320px; overflow: auto; background: #fff; }
.rich-preview:empty { display: none; }
.rich-preview h2 { font-size: 18px; margin: 12px 0 8px; }
.rich-preview h3 { font-size: 15.5px; margin: 10px 0 6px; }
.rich-preview p { margin: 8px 0; }
.rich-preview ul, .rich-preview ol { padding-left: 24px; margin: 8px 0; }
.rich-preview blockquote { margin: 10px 0; padding: 8px 14px; background: #f1f5f9; border-left: 3px solid var(--primary); border-radius: 6px; }
.rich-preview img { max-width: 100%; border-radius: 8px; }

@media (max-width: 1024px) {
  .ed-left, .ed-right { width: 232px; flex: 0 0 232px; }
}
@media (max-width: 860px) {
  .app-side { position: fixed; left: -228px; z-index: 60; transition: left .25s; }
  .app-side.is-open { left: 0; }
  .app-side-toggle { display: inline-block; }
  .app-content { padding: 16px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-card { max-width: 100%; }
  .ed-body { flex-direction: column; }
  .ed-left, .ed-right { width: 100%; flex: 0 0 auto; max-height: 42vh; border: 0; border-top: 1px solid var(--line); }
  .ed-canvas-wrap { padding: 12px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr; }
  .site-grid { grid-template-columns: 1fr; }
  .toolbar .form-input, .toolbar .form-select { min-width: 0; width: 100%; }
}
