:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --border: #e5eaf2;
  --text: #172033;
  --text-muted: #758195;
  --brand: #4f7cff;
  --brand-dark: #365fd6;
  --brand-soft: #edf3ff;
  --danger: #df5151;
  --radius: 12px;
  --shadow-sm: 0 4px 16px rgba(32, 56, 100, .05);
  --shadow-md: 0 14px 40px rgba(32, 56, 100, .10);
}

* { box-sizing: border-box; }
html { min-width: 320px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
a { color: var(--brand-dark); text-decoration: none; }
.muted { color: var(--text-muted); }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.empty { text-align: center; color: var(--text-muted); padding: 32px 0; }
::selection { background: #dce7ff; color: #244aa9; }

/* 登录 */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(79, 124, 255, .12), transparent 32%),
    radial-gradient(circle at 88% 82%, rgba(76, 201, 240, .12), transparent 30%),
    linear-gradient(135deg, #f5f8ff 0%, #edf3fb 100%);
}
.login-wrap::before {
  content: ""; position: absolute; width: 420px; height: 420px; left: -180px; bottom: -220px;
  border: 1px solid rgba(79, 124, 255, .14); border-radius: 50%; box-shadow: 0 0 0 70px rgba(79, 124, 255, .025), 0 0 0 140px rgba(79, 124, 255, .02);
}
.login-card {
  position: relative; z-index: 1; width: min(960px, 100%); min-height: 600px;
  display: grid; grid-template-columns: 1.08fr .92fr; overflow: hidden;
  background: var(--surface); border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 28px; box-shadow: 0 30px 90px rgba(39, 66, 117, .16);
}
.login-showcase {
  position: relative; overflow: hidden; padding: 42px 46px 36px; color: #fff;
  display: flex; flex-direction: column;
  background: linear-gradient(145deg, #162c59 0%, #2859b8 54%, #4f7cff 100%);
}
.login-showcase::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 42px 42px; mask-image: linear-gradient(to bottom right, #000, transparent 75%);
}
.login-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.orb-one { width: 300px; height: 300px; right: -130px; top: -90px; background: rgba(255,255,255,.08); box-shadow: 0 0 0 46px rgba(255,255,255,.025); }
.orb-two { width: 190px; height: 190px; left: -90px; bottom: 40px; border: 36px solid rgba(125,211,252,.10); }
.login-logo { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; letter-spacing: 1px; }
.login-logo-mark {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(255,255,255,.17); border: 1px solid rgba(255,255,255,.25);
  font-size: 28px; font-weight: 300; line-height: 1; backdrop-filter: blur(8px);
}
.login-showcase-body { position: relative; z-index: 1; margin: auto 0; padding: 36px 0 24px; }
.login-badge { display: inline-flex; padding: 6px 11px; border: 1px solid rgba(255,255,255,.22); border-radius: 20px; color: #dbe9ff; font-size: 10px; letter-spacing: 1.8px; }
.login-showcase h1 { margin: 22px 0 18px; font-size: 38px; line-height: 1.38; letter-spacing: 2px; font-weight: 650; }
.login-showcase-body p { max-width: 340px; margin: 0; color: rgba(231,240,255,.78); font-size: 14px; line-height: 1.9; }
.login-features { position: relative; z-index: 1; list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 13px; }
.login-features li { display: flex; align-items: center; gap: 11px; color: rgba(244,248,255,.88); font-size: 13px; }
.login-features i { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2); position: relative; }
.login-features i::after { content: ""; position: absolute; width: 6px; height: 3px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg); left: 5px; top: 5px; }
.login-showcase-foot { position: relative; z-index: 1; color: rgba(222,234,255,.48); font-size: 11px; letter-spacing: 4px; }
.login-form { padding: 58px 52px 34px; display: flex; flex-direction: column; justify-content: center; background: rgba(255,255,255,.98); }
.login-form-head { margin-bottom: 34px; }
.login-eyebrow { color: var(--brand); font-size: 10px; font-weight: 700; letter-spacing: 2.4px; margin-bottom: 12px; }
.login-title { font-size: 30px; line-height: 1.25; font-weight: 700; letter-spacing: 1px; color: #15213a; }
.login-sub { color: var(--text-muted); margin-top: 10px; font-size: 13px; }
.login-field { margin-bottom: 20px; }
.login-field > span { color: #46536a; font-size: 13px; font-weight: 500; margin-bottom: 9px; }
.login-input-wrap { position: relative; }
.login-input-wrap svg { position: absolute; width: 19px; height: 19px; left: 15px; top: 50%; transform: translateY(-50%); color: #9aa7bb; pointer-events: none; transition: color .2s; }
.login-input-wrap input {
  width: 100%; height: 50px; padding: 0 16px 0 46px; border: 1px solid #dfe6f0; border-radius: 12px;
  background: #f8faff; color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.login-input-wrap input::placeholder { color: #a6b0c0; }
.login-input-wrap input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(79,124,255,.10); }
.login-input-wrap:focus-within svg { color: var(--brand); }
.login-submit { height: 50px !important; margin-top: 10px !important; border-radius: 12px !important; justify-content: space-between !important; padding: 0 20px !important; font-size: 14px !important; letter-spacing: 1px; box-shadow: 0 10px 24px rgba(79,124,255,.24); }
.login-btn-arrow { font-size: 21px; font-weight: 300; transition: transform .2s; }
.login-submit:hover .login-btn-arrow { transform: translateX(4px); }
.login-tip { color: #c74444; background: #fff3f3; border: 1px solid #ffe0e0; border-radius: 9px; padding: 9px 12px; font-size: 12px; margin: 14px 0 0; text-align: center; }
.login-footer { margin-top: 34px; text-align: center; color: #b0b8c6; font-size: 11px; letter-spacing: 1px; }

/* 布局 */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 232px; flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  background: linear-gradient(180deg, #15213a 0%, #111a2e 100%);
  color: #fff; box-shadow: 8px 0 30px rgba(19, 31, 55, .06); z-index: 30;
}
.brand { display: flex; align-items: center; gap: 12px; height: 78px; padding: 0 22px; font-weight: 600; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.07); letter-spacing: .5px; }
.brand-dot { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(145deg, #6d95ff, #4f7cff); box-shadow: 0 8px 20px rgba(79,124,255,.3); position: relative; flex-shrink: 0; }
.brand-dot::before, .brand-dot::after { content: ""; position: absolute; background: #fff; border-radius: 2px; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.brand-dot::before { width: 14px; height: 3px; }
.brand-dot::after { width: 3px; height: 14px; }
.sidebar nav { padding: 22px 14px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 11px;
  color: #aeb9ce; margin-bottom: 6px; font-size: 14px; border: 1px solid transparent;
  transition: color .2s, background .2s, transform .2s;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; transform: translateX(2px); }
.nav-item.active { background: linear-gradient(100deg, rgba(79,124,255,.28), rgba(79,124,255,.12)); border-color: rgba(121,157,255,.18); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 #6f96ff; }
.nav-icon { display: inline-flex; justify-content: center; width: 20px; flex-shrink: 0; opacity: .9; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  min-height: 76px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 12px 30px;
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px);
}
.topbar h1 { font-size: 20px; margin: 0; font-weight: 650; letter-spacing: .5px; }
.topbar h1::before { content: ""; display: inline-block; width: 4px; height: 18px; border-radius: 4px; background: var(--brand); margin-right: 11px; vertical-align: -3px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-right .muted { padding: 7px 12px; background: #f5f7fb; border: 1px solid #edf0f5; border-radius: 20px; color: #66748b; font-size: 12px; }
.content { padding: 26px 30px 40px; width: 100%; max-width: 1600px; margin: 0 auto; }

/* 组件 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: #445067;
  cursor: pointer; font-size: 13px; font-weight: 500;
  transition: transform .18s, box-shadow .18s, border-color .18s, background .18s;
}
.btn:hover { border-color: #cbd5e5; background: #fbfcff; box-shadow: 0 5px 14px rgba(32,56,100,.07); transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:focus-visible { outline: 3px solid rgba(79,124,255,.18); outline-offset: 2px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { background: linear-gradient(135deg, #628aff, #4673ef); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(79,124,255,.18); }
.btn-primary:hover { background: linear-gradient(135deg, #557ff5, #365fd6); border-color: transparent; box-shadow: 0 8px 20px rgba(79,124,255,.26); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-muted); box-shadow: none; }
.btn-ghost:hover { color: var(--brand-dark); background: var(--brand-soft); border-color: transparent; box-shadow: none; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; margin-top: 18px; }

.input {
  height: 38px; padding: 0 12px; border: 1px solid #dfe5ee; border-radius: 9px;
  background: #fbfcfe; color: var(--text); font-size: 13px; font-family: inherit; width: 100%;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.input.sm { height: 32px; }
.input:hover { border-color: #cbd5e4; }
textarea.input { height: auto; padding: 10px 12px; line-height: 1.7; resize: vertical; }
.input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(79,124,255,.10); }
.input::placeholder { color: #abb4c2; }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 7px; color: #647188; font-size: 12px; }
.field small { display: block; margin-top: 5px; }

.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .input { width: 190px; }
.hint { background: #fffaf0; border: 1px solid #f8e6bc; color: #946514; padding: 10px 13px; border-radius: 10px; font-size: 12px; margin-bottom: 14px; line-height: 1.6; }

.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.table th, .table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid #edf0f5; font-size: 13px; vertical-align: middle; }
.table th { background: #f8fafc; color: #738095; font-weight: 500; white-space: nowrap; font-size: 12px; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: #fafcff; }
.table tr:last-child td { border-bottom: none; }
.table .ops a { margin-right: 10px; }
.table .ops a.danger { color: var(--danger); }
.content-cell { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stars { color: #f5a623; }

.tag { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 7px; font-size: 11px; font-weight: 500; }
.tag-on { background: #eaf8f0; color: #27845a; }
.tag-off { background: #f0f2f5; color: #778294; }
.tag-warn { background: #fff5df; color: #a26a14; }

.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #f3f4f6; }
.avatar.lg { width: 56px; height: 56px; }
.dep-icon { width: 32px; height: 32px; border-radius: 6px; object-fit: contain; background: #f3f4f6; }
.dep-icon.lg { width: 56px; height: 56px; }
.dept-img-title { font-size: 13px; font-weight: 600; margin: 14px 0 4px; }
.dept-size-row { display: flex; flex-wrap: wrap; gap: 20px; }
.dept-img-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-top: 1px dashed var(--border);
}
.dept-img-name { width: 120px; font-size: 13px; flex-shrink: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dept-img-row .input { flex: 1; min-width: 0; }
.dept-img-row input[type=file] { width: 140px; font-size: 12px; flex-shrink: 0; }

.pager { display: flex; align-items: center; gap: 12px; margin-top: 14px; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.panel-title { font-weight: 650; margin-bottom: 18px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.panel-title::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.stat-card::after { content: ""; position: absolute; width: 72px; height: 72px; right: -25px; top: -25px; border-radius: 50%; background: var(--brand-soft); }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-value { position: relative; z-index: 1; font-size: 30px; line-height: 1.2; font-weight: 700; color: #1c2b49; letter-spacing: -.5px; }
.stat-label { color: var(--text-muted); font-size: 12px; margin-top: 9px; }

.trend { display: flex; align-items: flex-end; gap: 14px; height: 180px; padding: 14px 8px 4px; background: linear-gradient(180deg, #fbfcff, #fff); border-radius: 12px; }
.trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.trend-bar { width: 100%; max-width: 42px; background: linear-gradient(180deg, #7da0ff, #4f7cff); border-radius: 7px 7px 3px 3px; min-height: 3px; transition: height .25s; box-shadow: 0 5px 12px rgba(79,124,255,.15); }
.trend-value { font-size: 12px; margin-top: 8px; color: #46546d; font-weight: 500; }
.trend-date { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

.config-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.upload-row { display: flex; align-items: center; gap: 12px; }

/* 弹窗 */
.modal { position: fixed; inset: 0; background: rgba(15, 26, 46, .52); backdrop-filter: blur(5px); display: flex; align-items: flex-start; justify-content: center; padding: 60px 16px; overflow-y: auto; z-index: 50; }
.modal-card { width: 520px; background: var(--surface); border-radius: 18px; max-width: 100%; box-shadow: 0 28px 80px rgba(10,25,55,.24); overflow: hidden; }
.modal-card.wide { width: 620px; }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--border); font-weight: 650; font-size: 15px; background: #fbfcfe; }
.modal-body { padding: 22px; max-height: 65vh; overflow-y: auto; }
.modal-foot { padding: 15px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; background: #fbfcfe; }

.detail { display: grid; grid-template-columns: 90px 1fr; gap: 12px; margin: 0; }
.detail dt { color: var(--text-muted); font-size: 13px; }
.detail dd { margin: 0; font-size: 13px; }

.toast {
  position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%);
  background: rgba(20, 32, 55, .94); color: #fff; padding: 12px 22px; border-radius: 12px;
  font-size: 13px; z-index: 99; box-shadow: 0 12px 34px rgba(15,26,46,.24); backdrop-filter: blur(10px);
}

/* 页面设置（首页装修） */
.page-editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.module-list { min-width: 0; }
.module-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  margin-bottom: 16px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.module-head {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px;
  border-bottom: 1px solid var(--border); background: #f9fbff;
  border-radius: 16px 16px 0 0;
}
.drag-handle { color: #96a2b6; cursor: move; letter-spacing: 2px; }
.module-name { font-weight: 650; flex: 1; color: #33415a; }
.module-ops { display: flex; gap: 12px; font-size: 12px; }
.module-ops a { transition: color .15s; }
.module-ops a:hover { color: var(--brand); }
.module-ops .danger { color: var(--danger); }
.module-body { padding: 18px; }
.module-foot { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.field.inline { display: flex; align-items: center; gap: 8px; margin: 0; }
.field.inline > span { margin: 0; white-space: nowrap; }
.field.inline .input { width: 90px; }
.sub-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 10px;
  border: 1px dashed var(--border); border-radius: 8px; margin-bottom: 10px;
}
.sub-main { flex: 1; min-width: 0; }
.sub-main .input { margin-bottom: 8px; }
.sub-item > .danger { font-size: 12px; white-space: nowrap; color: var(--danger); }
.sub-item input[type=file] { width: 150px; font-size: 12px; }
.thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; background: #f3f4f6; flex-shrink: 0; }
.thumb-empty { display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
  border: 1px solid var(--border); border-radius: 14px; font-size: 12px;
  background: #fff; cursor: pointer;
}
.add-modules { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* 底部导航栏设置 */
.tab-colors { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }
.tab-colors input[type=color] { width: 34px; height: 28px; border: none; background: none; padding: 0; cursor: pointer; }
.tab-item { border-top: 1px dashed var(--border); padding: 8px 0; }
.tab-row { display: flex; align-items: center; gap: 10px; padding-bottom: 6px; }
.tab-link-row { display: flex; align-items: center; gap: 10px; }
.tab-link { flex: 1; max-width: 420px; font-size: 12px; }
.tab-page-name { width: 44px; font-size: 13px; color: var(--text-muted); flex-shrink: 0; }
.tab-text { width: 90px; flex-shrink: 0; }
.tab-icon-box { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.tab-icon-box img { width: 28px; height: 28px; object-fit: contain; background: #f3f4f6; border-radius: 4px; }
.tab-icon-box input[type=file] { width: 96px; font-size: 11px; }
.tab-icon-empty {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: #f3f4f6; border-radius: 4px; font-size: 10px; color: #9ca3af;
}
.tab-add {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px;
  padding: 10px; border: 1px dashed #c7d7f0; border-radius: 8px; background: #f7faff;
}
.tab-add-btn { border-color: #4c8bf5; color: #2f6fe0; }
.tab-add-done { margin-top: 12px; font-size: 12px; color: #9ca3af; }

/* 手机预览 */
.page-preview { position: sticky; top: 76px; }
.pv-phone {
  width: 320px; background: #fff; border: 1px solid var(--border); border-radius: 22px;
  overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  display: flex; flex-direction: column;
}
.pv-title-bar { text-align: center; font-size: 12px; color: var(--text-muted); padding: 10px; border-bottom: 1px solid var(--border); background: #fafafa; }
.pv-body { padding: 12px; background: #f5f6fa; min-height: 420px; max-height: 70vh; overflow-y: auto; }
.pv-search { background: #fff; border-radius: 16px; padding: 8px 12px; color: #9ca3af; font-size: 12px; margin-bottom: 10px; }
.pv-banner {
  height: 110px; border-radius: 12px; margin-bottom: 10px;
  background: linear-gradient(135deg, #93c5fd, #60a5fa);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.pv-notice {
  background: #fff8e8; color: #a26a1b; font-size: 11px; border-radius: 8px;
  padding: 8px 10px; margin-bottom: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.pv-depts { display: flex; flex-wrap: wrap; background: #fff; border-radius: 12px; padding: 10px; margin-bottom: 10px; }
.pv-dept { width: 25%; text-align: center; font-size: 11px; padding: 6px 0; color: #374151; display: flex; flex-direction: column; align-items: center; }
.pv-dept-icon {
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: #eef1f5; border-radius: 6px; margin-bottom: 4px; flex-shrink: 0;
}
.pv-dept-icon img { width: 100%; height: 100%; object-fit: contain; }
.pv-actions { display: flex; gap: 8px; margin-bottom: 10px; }
.pv-action { flex: 1; border-radius: 10px; padding: 10px; color: #fff; display: flex; flex-direction: column; gap: 4px; }
.pv-action small { opacity: .9; font-size: 10px; }
.pv-blue { background: linear-gradient(135deg, #5b93f6, #4c8bf5); }
.pv-green { background: linear-gradient(135deg, #5fc9a5, #43b58a); }
.pv-orange { background: linear-gradient(135deg, #f7b267, #ef8f3c); }
.pv-purple { background: linear-gradient(135deg, #a78bfa, #8b5cf6); }
.pv-doctors { background: #fff; border-radius: 12px; padding: 10px; }
.pv-section-title { font-weight: 600; font-size: 12px; margin-bottom: 8px; }
.pv-doctor { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px dashed #e5e7eb; }
.pv-avatar { width: 30px; height: 30px; border-radius: 50%; background: #e5e7eb; flex-shrink: 0; }
.pv-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pv-lines i { display: block; height: 7px; background: #eef1f5; border-radius: 4px; }
.pv-lines i:first-child { width: 60%; }
.pv-empty { text-align: center; color: #9ca3af; font-size: 12px; padding: 30px 0; }
.pv-tabbar { display: flex; border-top: 1px solid var(--border); padding: 6px 4px 8px; }
.pv-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; }
.pv-tab img { width: 22px; height: 22px; object-fit: contain; }
.pv-tab-dot { width: 18px; height: 18px; border-radius: 4px; background: #e5e7eb; display: block; }
.pv-tab em { font-style: normal; }

@media (max-width: 1100px) {
  .page-editor { grid-template-columns: 1fr; }
  .page-preview { display: none; }
  .content { padding: 22px; }
  .login-card { width: min(880px, 100%); }
  .login-showcase { padding: 36px; }
  .login-form { padding: 46px 38px 30px; }
}

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .config-grid { grid-template-columns: 1fr; }
  .sidebar { width: 76px; }
  .brand { padding: 0; justify-content: center; }
  .brand span:last-child { display: none; }
  .sidebar nav { padding: 20px 10px; }
  .nav-item { font-size: 0; justify-content: center; padding: 13px 0; gap: 0; }
  .nav-icon { font-size: 17px; }
  .topbar { padding: 12px 20px; }
  .topbar-right .muted { display: none; }
}

@media (max-width: 820px) {
  .login-wrap { padding: 24px; }
  .login-card { display: block; width: min(450px, 100%); min-height: 0; border-radius: 24px; }
  .login-showcase { display: none; }
  .login-form { padding: 46px 40px 32px; }
  .topbar { flex-wrap: wrap; gap: 10px; }
  .topbar h1 { font-size: 18px; }
  .content { padding: 18px 14px 30px; }
  .tab-link-row { align-items: flex-start; flex-wrap: wrap; }
  .tab-link { min-width: 240px; }
}

@media (max-width: 520px) {
  .login-wrap { padding: 14px; }
  .login-form { padding: 36px 24px 26px; }
  .login-title { font-size: 26px; }
  .login-form-head { margin-bottom: 28px; }
  .stat-grid { grid-template-columns: 1fr; gap: 12px; }
  .topbar-right .btn { padding: 0 9px; font-size: 12px; }
  .row2 { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
}

/* 医生预约页装修 */
.dp-title-input { width: 220px; }
.dp-textarea { width: 100%; min-height: 90px; resize: vertical; font-family: inherit; line-height: 1.6; }
.dp-field-card {
  border: 1px dashed var(--border); border-radius: 10px; padding: 12px;
  margin: 10px 0; background: #fafbfd;
}
.dp-field-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.dp-field-index { font-size: 12px; color: var(--text-muted); }
.dp-field-head .module-ops { margin-left: auto; }

/* 预约页手机预览 */
.dp-pv-body { background: #fff; padding: 18px 16px 30px; }
.dp-pv-title { text-align: center; font-size: 18px; font-weight: 700; color: #111; margin-bottom: 16px; }
.dp-pv-specialty { font-size: 12px; color: #333; line-height: 1.75; margin-bottom: 16px; }
.dp-pv-intro { margin-top: 8px; color: #666; }
.dp-pv-label { font-size: 12px; color: #333; margin-bottom: 8px; }
.dp-pv-richtext { font-size: 12px; line-height: 1.7; color: #444; margin-bottom: 14px; }
.dp-pv-richtext b { display: block; margin-bottom: 4px; }
.dp-pv-slots { margin-bottom: 14px; }
.dp-pv-slot-row { display: flex; gap: 8px; }
.dp-pv-slot-row span {
  flex: 1; text-align: center; border: 1px solid #e5e7eb; border-radius: 6px;
  padding: 6px 0; font-size: 11px; color: #333;
}
.dp-pv-form { margin-top: 8px; }
.dp-pv-field { margin-bottom: 14px; }
.dp-pv-field-label { font-size: 12px; color: #222; margin-bottom: 6px; font-weight: 600; }
.dp-pv-field-label i { color: #e23d3d; font-style: normal; margin-right: 2px; }
.dp-pv-input {
  border: 1px solid #d9dde3; border-radius: 6px; height: 36px;
  display: flex; align-items: center; padding: 0 10px; color: #b0b6bf; font-size: 11px;
}
.dp-pv-input.long { height: 64px; align-items: flex-start; padding-top: 8px; }
.dp-pv-submit {
  margin-top: 18px; height: 38px; border-radius: 6px; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
}
.dp-pv-faq { border-top: 1px solid #f0f0f0; padding-top: 12px; margin-top: 12px; }
.dp-pv-faq-item { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: #666; margin-bottom: 8px; }
.dp-pv-faq-item b { color: #333; }
.dp-pv-contact { font-size: 11px; color: #555; line-height: 1.8; border-top: 1px solid #f0f0f0; padding-top: 10px; margin-top: 10px; }
.dp-pv-footer { text-align: center; font-size: 10px; color: #9ca3af; margin-top: 14px; }
.dp-pv-header-img { width: 100%; border-radius: 8px; margin-bottom: 10px; display: block; }

/* 富文本介绍编辑器 */
.rt-toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.rt-toolbar button {
  border: 1px solid var(--border); background: #fff; border-radius: 6px;
  padding: 4px 10px; cursor: pointer; font-size: 12px; color: #333;
}
.rt-toolbar button:hover { background: #f5f7fa; }
.rt-upload {
  position: relative; overflow: hidden; border: 1px solid var(--border);
  background: #fff; border-radius: 6px; padding: 4px 10px; font-size: 12px;
  color: #333; cursor: pointer;
}
.rt-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rt-editor {
  min-height: 120px; border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; background: #fff; font-size: 13px; line-height: 1.7;
  outline: none; overflow: auto;
}
.rt-editor:focus { border-color: #4C8BF5; }
.rt-editor img { max-width: 100%; height: auto; }
.dp-pv-rich { line-height: 1.7; }
.dp-pv-rich img { max-width: 100%; height: auto; }
