:root {
  --primary: #5b68f6;
  --primary-strong: #4655ec;
  --primary-soft: #eef1ff;
  --primary-line: #dfe4ff;
  --bg: #f6f7fb;
  --panel: #ffffff;
  --panel-soft: #fafbfe;
  --text: #202842;
  --text-strong: #111a35;
  --muted: #7d879f;
  --muted-2: #a2abc0;
  --line: #e8ebf2;
  --line-strong: #dfe3ec;
  --green: #20b982;
  --green-soft: #eaf9f3;
  --red: #ef5b68;
  --red-soft: #fff0f2;
  --yellow: #edae38;
  --yellow-soft: #fff7e8;
  --sidebar-width: 218px;
  --topbar-height: 62px;
  --tabbar-height: 46px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 8px 28px rgba(43, 55, 89, .055);
  --shadow-hover: 0 14px 34px rgba(43, 55, 89, .095);
}

html[data-theme="dark"] {
  --bg: #10131b;
  --panel: #181d28;
  --panel-soft: #141923;
  --text: #dbe1ee;
  --text-strong: #f4f7ff;
  --muted: #929db2;
  --muted-2: #69748a;
  --line: #2a3140;
  --line-strong: #343d4f;
  --primary-soft: rgba(91, 104, 246, .14);
  --primary-line: rgba(91, 104, 246, .28);
  --green-soft: rgba(32, 185, 130, .13);
  --red-soft: rgba(239, 91, 104, .13);
  --yellow-soft: rgba(237, 174, 56, .12);
  --shadow: 0 8px 28px rgba(0, 0, 0, .18);
  --shadow-hover: 0 14px 34px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }

/* 登录页 */
.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 16% 20%, rgba(91, 104, 246, .16), transparent 30%),
    radial-gradient(circle at 82% 76%, rgba(139, 96, 246, .13), transparent 34%),
    #f7f8fc;
}
html[data-theme="dark"] .login-view { background: #10131b; }
.login-shell {
  width: min(940px, 100%);
  min-height: 540px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  overflow: hidden;
  border: 1px solid rgba(222, 226, 238, .9);
  border-radius: 24px;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 28px 90px rgba(51, 61, 101, .17);
}
html[data-theme="dark"] .login-shell { background: #181d28; border-color: #2a3140; }
.login-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #5163f5 0%, #6674ff 46%, #7c5ce7 100%);
}
.login-intro::before,
.login-intro::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
}
.login-intro::before { width: 320px; height: 320px; right: -160px; top: -115px; }
.login-intro::after { width: 220px; height: 220px; left: -100px; bottom: -90px; }
.login-mark {
  position: relative;
  z-index: 2;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 20px;
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
  backdrop-filter: blur(10px);
  font-size: 28px;
  font-weight: 800;
}
.login-copy { position: relative; z-index: 2; }
.login-copy .eyebrow { margin: 0 0 12px; font-size: 11px; letter-spacing: .22em; opacity: .78; }
.login-copy h1 { margin: 0; font-size: 34px; letter-spacing: -.03em; }
.login-copy > p:last-child { max-width: 380px; margin: 20px 0 0; line-height: 1.9; color: rgba(255, 255, 255, .78); }
.login-orbit { position: absolute; border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; }
.orbit-one { width: 180px; height: 180px; right: 42px; bottom: 38px; }
.orbit-two { width: 115px; height: 115px; right: 75px; bottom: 72px; }
.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px 52px;
  background: var(--panel);
}
.login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; }
.login-brand h2 { margin: 0; font-size: 24px; color: var(--text-strong); }
.login-brand p { margin: 7px 0 0; font-size: 13px; color: var(--muted); }
.brand-logo {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, #5267f7, #7258ed);
  box-shadow: 0 10px 24px rgba(91, 104, 246, .25);
  font-size: 21px;
  font-weight: 800;
}
.brand-logo.small { width: 36px; height: 36px; border-radius: 11px; font-size: 16px; box-shadow: none; }
.login-card label { display: block; margin-bottom: 17px; font-size: 13px; color: var(--text); font-weight: 650; }
.login-card input {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 8px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: 0;
  color: var(--text);
  background: var(--panel-soft);
  transition: .18s;
}
.login-card input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91, 104, 246, .1); }
.login-foot { margin-top: 19px; text-align: center; color: var(--muted-2); font-size: 11px; }
.form-error { min-height: 18px; margin-top: 12px; color: var(--red); font-size: 12px; }

/* 管理框架 */
.app { min-height: 100vh; }
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  backdrop-filter: blur(14px);
}
.top-brand {
  width: var(--sidebar-width);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
  padding: 0 20px;
  border-right: 1px solid var(--line);
  transition: width .2s ease;
}
.top-brand-copy { min-width: 0; }
.top-brand-copy b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-strong); font-size: 15px; }
.top-brand-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.top-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
  margin-left: 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  transition: .18s;
}
.top-icon:hover { color: var(--primary); background: var(--primary-soft); }
.top-dot { margin: 0 10px; color: var(--muted-2); }
.top-workspace { color: var(--muted); font-size: 13px; }
.top-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; padding-right: 16px; }
.top-search {
  width: 190px;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  margin-right: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--panel-soft);
}
.top-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 12px; }
.top-search kbd { padding: 2px 5px; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--muted-2); background: var(--panel); font-size: 9px; white-space: nowrap; }
.admin-chip { display: flex; align-items: center; gap: 8px; margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--line); }
.admin-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg, #5267f7, #7658eb); font-size: 12px; font-weight: 700; }
.admin-name { max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 12px; }

.sidebar {
  position: fixed;
  inset: var(--topbar-height) auto 0 0;
  z-index: 30;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 14px 10px 12px;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: var(--panel);
  transition: width .2s ease, transform .2s ease;
}
.side-title { padding: 7px 12px 10px; color: var(--muted-2); font-size: 10px; letter-spacing: .16em; }
nav { display: flex; flex-direction: column; gap: 3px; }
nav button {
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: #59637a;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: .16s;
}
html[data-theme="dark"] nav button { color: #aeb8cb; }
nav button i { width: 24px; display: inline-grid; place-items: center; flex: none; margin-right: 8px; color: #77829b; font-style: normal; font-size: 15px; }
nav button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
nav button:hover { color: var(--primary); background: var(--panel-soft); }
nav button.active { color: var(--primary); background: var(--primary-soft); font-weight: 650; }
nav button.active::before { content: ""; position: absolute; left: 0; width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--primary); }
nav button.active i { color: var(--primary); }
.side-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 14px 10px 2px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.side-foot > div { display: flex; align-items: center; gap: 6px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.side-foot button { border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; }
.side-foot button:hover { color: var(--red); }

.main {
  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding-top: var(--topbar-height);
  transition: width .2s ease, margin-left .2s ease;
}
.tab-strip {
  position: sticky;
  top: var(--topbar-height);
  z-index: 18;
  min-height: var(--tabbar-height);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 95%, transparent);
  backdrop-filter: blur(12px);
}
.tab-bar { display: flex; align-items: center; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tab-bar::-webkit-scrollbar { display: none; }
.page-tab {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: var(--panel);
  cursor: pointer;
  font-size: 11px;
  transition: .16s;
}
.page-tab:hover { color: var(--primary); border-color: var(--primary-line); }
.page-tab.active { color: var(--primary); border-color: var(--primary-line); background: var(--primary-soft); }
.page-tab .tab-home { font-size: 12px; }
.page-tab .tab-close { width: 15px; height: 15px; display: grid; place-items: center; border-radius: 4px; color: var(--muted-2); font-size: 12px; }
.page-tab .tab-close:hover { color: var(--red); background: var(--red-soft); }
.tab-tools { display: flex; align-items: center; margin-left: auto; flex: none; }
.api-state { padding: 6px 10px; border-radius: 999px; color: #11805a; background: var(--green-soft); font-size: 11px; }

.page-header {
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 26px 17px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.breadcrumb { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--muted-2); font-size: 10px; }
.breadcrumb b { color: var(--line-strong); }
.page-header h2 { margin: 0; color: var(--text-strong); font-size: 22px; letter-spacing: -.02em; }
.page-header p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.content { padding: 20px 26px 32px; }

/* 收起侧栏 */
.app.sidebar-collapsed .top-brand { width: 72px; padding: 0 18px; }
.app.sidebar-collapsed .top-brand-copy { display: none; }
.app.sidebar-collapsed .sidebar { width: 72px; padding-left: 8px; padding-right: 8px; }
.app.sidebar-collapsed .side-title,
.app.sidebar-collapsed nav button span,
.app.sidebar-collapsed .side-foot span:not(.status-dot),
.app.sidebar-collapsed .side-foot button { display: none; }
.app.sidebar-collapsed nav button { justify-content: center; padding: 0; }
.app.sidebar-collapsed nav button i { width: 40px; margin: 0; }
.app.sidebar-collapsed .side-foot { justify-content: center; }
.app.sidebar-collapsed .main { width: calc(100% - 72px); margin-left: 72px; }

/* 通用组件 */
.icon-btn, .btn {
  height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: #505b73;
  background: var(--panel);
  cursor: pointer;
  transition: .16s;
}
html[data-theme="dark"] .icon-btn,
html[data-theme="dark"] .btn { color: #b5bfd2; }
.icon-btn:hover, .btn:hover { color: var(--primary); border-color: var(--primary-line); background: var(--primary-soft); }
.btn.primary { border-color: var(--primary); color: #fff; background: var(--primary); box-shadow: 0 5px 14px rgba(91, 104, 246, .18); }
.btn.primary:hover { border-color: var(--primary-strong); color: #fff; background: var(--primary-strong); }
.btn.danger { color: var(--red); border-color: #ffd6da; background: var(--red-soft); }
.btn.success { color: #11805a; border-color: #ccefe2; background: var(--green-soft); }
.btn.warning { color: #ba7b15; border-color: #f8dfad; background: var(--yellow-soft); }
.btn.small { height: 29px; padding: 0 9px; margin: 1px; font-size: 11px; }
.btn.wide, .wide { width: 100%; height: 45px; }
.mobile-menu { display: none; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat {
  position: relative;
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: .18s;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.stat-main { position: relative; z-index: 2; }
.stat-label { color: var(--muted); font-size: 13px; }
.stat-value { display: block; margin-top: 10px; color: var(--text-strong); font-size: 29px; line-height: 1; }
.stat-note { display: block; margin-top: 11px; color: var(--green); font-size: 10px; }
.stat-icon {
  position: absolute;
  top: 24px;
  right: 22px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 21px;
}
.stat::after { content: ""; position: absolute; right: -38px; bottom: -55px; width: 125px; height: 125px; border-radius: 50%; background: rgba(91, 104, 246, .025); }

.panel {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.panel:first-child { margin-top: 0; }
.panel-head {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.panel-head h3 { margin: 0; color: var(--text-strong); font-size: 15px; }
.card-body { padding: 18px; }
.tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tools input,
.tools select,
.form-grid input,
.form-grid select,
.form-grid textarea {
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: 0;
  color: var(--text);
  background: var(--panel-soft);
  transition: .16s;
}
.tools input { min-width: 205px; }
.tools input:focus,
.tools select:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91, 104, 246, .09); }
.table-wrap { overflow: auto; }
table { width: 100%; min-width: 820px; border-collapse: collapse; }
th, td { padding: 12px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 12px; }
th { color: var(--muted); background: var(--panel-soft); font-size: 11px; font-weight: 650; white-space: nowrap; }
td { color: var(--text); }
tbody tr { transition: .14s; }
tbody tr:hover { background: color-mix(in srgb, var(--primary-soft) 42%, transparent); }
tbody tr:last-child td { border-bottom: 0; }
.muted { color: var(--muted); font-size: 11px; }
.clamp { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { padding: 52px; color: var(--muted); text-align: center; }
.tag { display: inline-block; padding: 4px 8px; border-radius: 999px; color: #667188; background: #eff2f7; font-size: 10px; white-space: nowrap; }
.tag.high, .tag.danger, .tag.rejected, .tag.disabled, .tag.removed { color: #dd4654; background: var(--red-soft); }
.tag.medium, .tag.warning, .tag.pending, .tag.processing { color: #c58415; background: var(--yellow-soft); }
.tag.low, .tag.success, .tag.approved, .tag.enabled, .tag.resolved { color: #11805a; background: var(--green-soft); }
.tag.unknown, .tag.system { color: #667188; background: #eff2f7; }
html[data-theme="dark"] .tag.unknown,
html[data-theme="dark"] .tag.system,
html[data-theme="dark"] .tag { background: #242c3a; color: #aab5c9; }

.split { display: grid; grid-template-columns: 1.12fr .88fr; gap: 18px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail-item { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-soft); }
.detail-item span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.detail-item b { color: var(--text-strong); font-size: 12px; }
.detail-content { margin-top: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; line-height: 1.8; white-space: pre-wrap; background: var(--panel-soft); }
.image-list { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.image-list img { width: 130px; height: 100px; border: 1px solid var(--line); border-radius: 9px; object-fit: cover; cursor: pointer; }
.notice { margin-bottom: 15px; padding: 13px 15px; border: 1px solid var(--primary-line); border-radius: 10px; color: #415fbd; background: var(--primary-soft); font-size: 12px; line-height: 1.7; }
html[data-theme="dark"] .notice { color: #aeb7ff; }
.code { padding: 2px 6px; border-radius: 5px; color: var(--primary); background: var(--primary-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.chart-placeholder {
  height: 260px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin: 18px 0 5px;
  padding: 24px 26px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(to top, transparent 24%, var(--line) 25%, transparent 26%, transparent 49%, var(--line) 50%, transparent 51%, transparent 74%, var(--line) 75%, transparent 76%),
    var(--panel-soft);
}
.bar { position: relative; flex: 1; min-height: 24px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #7fa0ff, #6177f5); box-shadow: 0 6px 14px rgba(91, 104, 246, .13); }
.bar span { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); color: var(--muted); font-size: 9px; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }
.pagination span { color: var(--muted); font-size: 11px; }
.account-box { max-width: 720px; }
.small-note { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.checkbox-line { display: flex !important; align-items: center; gap: 8px; }
.checkbox-line input { width: auto; height: auto; margin: 0; }

/* 表单与弹窗 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label { color: #5c667d; font-size: 11px; font-weight: 650; }
html[data-theme="dark"] .form-grid label { color: #aeb8cb; }
.form-grid input, .form-grid select, .form-grid textarea { display: block; width: 100%; margin-top: 7px; }
.form-grid textarea { height: 100px; padding: 10px; resize: vertical; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.toast {
  position: fixed;
  top: 76px;
  right: 22px;
  z-index: 100;
  max-width: 420px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  color: #fff;
  background: #20283c;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .2);
  opacity: 0;
  transform: translateY(-75px);
  transition: .24s;
}
.toast.show { opacity: 1; transform: none; }
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; }
.modal-mask { position: absolute; inset: 0; background: rgba(15, 20, 33, .48); backdrop-filter: blur(3px); }
.modal-card { position: relative; width: min(760px, 100%); max-height: 92vh; overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: 0 28px 90px rgba(0, 0, 0, .24); }
.modal-card.large { width: min(960px, 100%); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 16px 19px; border-bottom: 1px solid var(--line); background: var(--panel); }
.modal-head h3 { margin: 0; color: var(--text-strong); font-size: 15px; }
.modal-head button { width: 30px; height: 30px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; font-size: 21px; }
.modal-head button:hover { color: var(--red); background: var(--red-soft); }
.modal-body { padding: 19px; }

/* 响应式 */
@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .top-search { width: 155px; }
}

@media (max-width: 820px) {
  :root { --topbar-height: 58px; }
  .top-brand { width: auto; min-width: 0; padding: 0 12px; border-right: 0; }
  .top-brand-copy span, .top-workspace, .top-dot, .top-search, .admin-name { display: none; }
  .top-icon { margin-left: 2px; }
  .top-actions { padding-right: 8px; }
  .sidebar { width: 218px; transform: translateX(-100%); box-shadow: 14px 0 42px rgba(0, 0, 0, .12); }
  .sidebar.open { transform: none; }
  .main, .app.sidebar-collapsed .main { width: 100%; margin-left: 0; }
  .app.sidebar-collapsed .top-brand { width: auto; padding: 0 12px; }
  .app.sidebar-collapsed .top-brand-copy { display: block; }
  .app.sidebar-collapsed .sidebar { width: 218px; }
  .app.sidebar-collapsed .side-title,
  .app.sidebar-collapsed nav button span,
  .app.sidebar-collapsed .side-foot span:not(.status-dot),
  .app.sidebar-collapsed .side-foot button { display: initial; }
  .app.sidebar-collapsed nav button { justify-content: flex-start; padding: 0 12px; }
  .app.sidebar-collapsed nav button i { width: 24px; margin-right: 8px; }
  .app.sidebar-collapsed .side-foot { justify-content: space-between; }
  .tab-strip { padding-left: 12px; padding-right: 12px; }
  .api-state { display: none; }
  .page-header { min-height: 94px; padding: 17px 16px; }
  .page-header h2 { font-size: 19px; }
  .content { padding: 14px 14px 26px; }
  .panel-head { align-items: flex-start; flex-direction: column; }
  .tools { width: 100%; }
  .tools input, .tools select { min-width: 0; flex: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .top-brand-copy b { max-width: 125px; }
  .admin-chip { display: none; }
  .stats { grid-template-columns: 1fr; gap: 12px; }
  .stat { min-height: 124px; }
  .header-actions { display: none; }
  .page-header { min-height: 86px; }
  .breadcrumb { display: none; }
  .login-view { padding: 0; }
  .login-shell { min-height: 100vh; grid-template-columns: 1fr; border: 0; border-radius: 0; }
  .login-intro { display: none; }
  .login-card { padding: 38px 24px; }
  .modal { padding: 8px; }
  .modal-body { padding: 15px; }
}

/* v1.4.0：清晰紧凑管理后台与系统更新页 */
:root {
  --bg: #f7f8fa;
  --panel-soft: #fafbfc;
  --line: #e7eaf0;
  --line-strong: #dde2ea;
  --shadow: none;
  --shadow-hover: none;
  --radius: 9px;
  --radius-lg: 11px;
}
.topbar { background: rgba(255,255,255,.98); backdrop-filter: none; }
.top-brand { padding-left: 18px; }
.sidebar { padding-top: 10px; }
.side-title { display: none; }
nav { gap: 1px; }
nav button { height: 42px; border-radius: 7px; }
nav button.active::before { display: none; }
.tab-strip { padding: 7px 18px; background: rgba(255,255,255,.98); backdrop-filter: none; }
.page-tab { height: 34px; border-radius: 7px; }
.page-header { min-height: 86px; padding: 15px 24px 14px; }
.breadcrumb { display: none; }
.page-header h2 { font-size: 20px; }
.page-header p { margin-top: 5px; }
.content { padding: 18px 24px 28px; }
.stat { min-height: 124px; padding: 18px 20px; border-radius: 11px; box-shadow: none; }
.stat:hover { transform: none; box-shadow: none; border-color: #dce1ea; }
.stat-icon { top: 26px; right: 20px; width: 48px; height: 48px; border-radius: 12px; }
.stat::after { display: none; }
.panel { margin-top: 16px; border-radius: 11px; box-shadow: none; }
.panel-head { min-height: 56px; }

.update-shell {
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.update-banner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid #9ce9d7;
  border-radius: 10px;
  background: #eafbf6;
}
.update-banner.update-new { border-color: #a8c4ff; background: #eef4ff; }
.update-banner.update-warning { border-color: #f4d18b; background: #fff9ea; }
.update-banner-main { display: flex; align-items: center; gap: 15px; min-width: 0; }
.update-banner-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  color: #fff;
  background: #16c79a;
  font-size: 18px;
  font-weight: 800;
}
.update-new .update-banner-icon { background: var(--primary); }
.update-warning .update-banner-icon { background: #e7a42f; }
.update-banner h3 { margin: 0; color: #10ad87; font-size: 17px; }
.update-new h3 { color: var(--primary); }
.update-warning h3 { color: #bd7c14; }
.update-banner p { max-width: 920px; margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.update-banner-action { flex: none; }
.update-banner-action .btn { min-width: 180px; }
.update-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 18px 0 0;
  padding: 12px 2px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.update-meta b { color: var(--text); font-weight: 600; }
.update-section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 22px 0 14px; }
.update-section-title h3 { margin: 0; color: var(--text-strong); font-size: 17px; }
.update-section-title span { color: var(--muted); font-size: 11px; }
.update-records { display: grid; gap: 12px; }
.update-record {
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel);
}
.update-record.current { border-color: #cbd8ff; background: #fcfdff; }
.update-record-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.update-record-head > div { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.version-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #cfd5df;
  border-radius: 6px;
  color: #697386;
  background: #fff;
  font-size: 11px;
  font-weight: 650;
}
.version-badge.current { color: #d58b0b; border-color: #ffd78f; background: #fffaf0; }
.version-badge.muted { color: var(--muted); background: var(--panel-soft); }
.record-time { color: var(--muted); font-size: 11px; }
.record-note { margin: 13px 0 12px; color: #596277; font-size: 12px; line-height: 1.75; white-space: pre-wrap; }
.record-sha { margin: -3px 0 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.update-record .btn { height: 34px; }
.btn:disabled { opacity: .52; cursor: not-allowed; }
html[data-theme="dark"] .update-shell,
html[data-theme="dark"] .update-record { background: var(--panel); }
html[data-theme="dark"] .update-banner { background: rgba(22,199,154,.11); }
html[data-theme="dark"] .update-banner.update-new { background: rgba(91,104,246,.13); }
html[data-theme="dark"] .update-banner.update-warning { background: rgba(231,164,47,.12); }

@media (max-width: 820px) {
  .update-shell { padding: 14px; }
  .update-banner { align-items: flex-start; flex-direction: column; padding: 16px; }
  .update-banner-action, .update-banner-action .btn { width: 100%; }
  .update-section-title { align-items: flex-start; flex-direction: column; gap: 6px; }
  .update-meta { align-items: flex-start; flex-direction: column; gap: 7px; }
}


/* v1.4.1：提升文字清晰度与对比度 */
:root {
  --bg: #f5f7fb;
  --panel-soft: #f8fafc;
  --text: #25304a;
  --text-strong: #111b35;
  --muted: #5d6880;
  --muted-2: #8a94a9;
  --line: #dfe5ef;
  --line-strong: #d3dbe7;
}
body {
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
}
.top-brand-copy b { font-size: 16px; font-weight: 700; }
.top-brand-copy span { font-size: 11px; color: var(--muted); }
.top-workspace { color: var(--text); font-size: 14px; font-weight: 600; }
.top-search input { font-size: 13px; color: var(--text-strong); }
.admin-name { color: var(--text-strong); font-size: 13px; font-weight: 600; }
nav button { color: #4a556d; font-weight: 500; }
nav button i { color: #6a7690; }
nav button span { font-size: 14px; }
.page-tab { color: #5c6780; font-size: 12px; font-weight: 500; }
.page-tab.active { font-weight: 700; }
.api-state { font-size: 12px; font-weight: 700; }
.page-header h2 { font-size: 21px; font-weight: 800; letter-spacing: -.025em; }
.page-header p { font-size: 13px; color: var(--muted); }
.icon-btn, .btn { color: #47536b; font-size: 13px; font-weight: 600; }
.stat-label { color: #58637b; font-size: 14px; font-weight: 600; }
.stat-value { font-size: 31px; font-weight: 800; }
.stat-note { font-size: 12px; font-weight: 600; }
.panel-head h3 { font-size: 17px; font-weight: 800; }
.tools input, .tools select, .form-grid input, .form-grid select, .form-grid textarea { color: var(--text-strong); font-size: 13px; }
th, td { font-size: 13px; }
th { color: #5a6680; font-size: 12px; font-weight: 700; }
td { color: var(--text-strong); }
.muted { color: var(--muted); font-size: 12px; }
.tag { font-size: 11px; font-weight: 700; }
.detail-item span { font-size: 11px; color: #667188; }
.detail-item b { font-size: 13px; font-weight: 700; }
.notice { color: #2f4fb0; font-size: 13px; font-weight: 500; }
.small-note { font-size: 11px; }
.update-banner h3 { font-size: 18px; font-weight: 800; }
.update-banner p { color: #5d6880; font-size: 13px; font-weight: 500; }
.update-meta { color: #667188; font-size: 12px; }
.update-meta b { color: var(--text-strong); font-weight: 700; }
.update-section-title h3 { font-size: 18px; font-weight: 800; }
.update-section-title span { font-size: 12px; }
.version-badge { font-size: 12px; font-weight: 700; }
.record-time { font-size: 12px; color: #6b7690; font-weight: 600; }
.record-note { color: #4c576e; font-size: 13px; font-weight: 500; }
.record-sha { font-size: 11px; color: #7c879d; }
.update-record .btn { font-size: 13px; font-weight: 700; }
.side-foot, .side-foot button, .breadcrumb { font-size: 12px; }
@media (max-width: 820px) {
  .page-header h2 { font-size: 20px; }
}


/* v1.4.3：系统设置保存状态 */
#settingsForm .form-actions { align-items: center; }
#settingsForm button[type="submit"] { min-width: 104px; }
#settingsForm button[type="submit"]:disabled { opacity: .72; cursor: wait; }


/* v1.5.4 管理员菜单与分类系统设置 */
.admin-menu-wrap { position: relative; margin-left: 8px; }
.admin-chip {
  position: relative; min-height: 42px; margin: 0; padding: 4px 7px 4px 10px;
  border: 0; border-left: 1px solid var(--line); border-radius: 0;
  color: var(--text); background: transparent; cursor: pointer;
}
.admin-chip:hover, .admin-chip[aria-expanded="true"] { background: var(--primary-soft); border-radius: 10px; border-left-color: transparent; }
.admin-arrow { color: var(--muted-2); font-size: 13px; transition: transform .18s; }
.admin-chip[aria-expanded="true"] .admin-arrow { transform: rotate(180deg); }
.admin-menu {
  position: absolute; z-index: 80; top: calc(100% + 9px); right: 0; width: 270px;
  padding: 8px; border: 1px solid var(--line); border-radius: 13px;
  background: var(--panel); box-shadow: 0 20px 55px rgba(32, 42, 76, .18);
}
.admin-menu::before { content: ""; position: absolute; top: -6px; right: 26px; width: 10px; height: 10px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); background: var(--panel); transform: rotate(45deg); }
.admin-menu button { position: relative; z-index: 1; width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px; border: 0; border-radius: 9px; color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.admin-menu button:hover { background: var(--panel-soft); }
.admin-menu button > span { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border-radius: 10px; color: var(--primary); background: var(--primary-soft); font-size: 16px; }
.admin-menu button b, .admin-menu button small { display: block; }
.admin-menu button b { color: var(--text-strong); font-size: 13px; }
.admin-menu button small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.admin-menu button.danger > span { color: var(--red); background: var(--red-soft); }
.admin-menu button.danger:hover b { color: var(--red); }
.side-foot-label { color: var(--muted-2); font-size: 10px; }

.settings-shell { max-width: 1320px; margin: 0 auto; }
.settings-tabs { position: sticky; top: calc(var(--topbar-height) + var(--tabbar-height) + 6px); z-index: 8; display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--panel) 94%, transparent); backdrop-filter: blur(12px); }
.settings-tabs button { min-width: 110px; height: 38px; padding: 0 16px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; font-weight: 650; }
.settings-tabs button:hover { color: var(--primary); background: var(--panel-soft); }
.settings-tabs button.active { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-strong)); box-shadow: 0 8px 20px rgba(91, 104, 246, .20); }
.settings-section { display: none; }
.settings-section.active { display: block; }
.settings-card { margin: 0 0 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); box-shadow: var(--shadow); }
.settings-card-head { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 19px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--panel-soft)); }
.settings-card-head h3 { margin: 0; color: var(--text-strong); font-size: 15px; }
.settings-card-head p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.settings-card-body { padding: 19px; }
.settings-savebar { position: sticky; bottom: 12px; z-index: 9; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 13px 16px; border: 1px solid var(--primary-line); border-radius: 12px; background: color-mix(in srgb, var(--panel) 94%, transparent); box-shadow: 0 14px 38px rgba(33, 47, 96, .13); backdrop-filter: blur(14px); }
.settings-savebar .btn { min-width: 190px; }

.review-mode-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-soft); }
.review-mode-copy { min-width: 0; }
.review-mode-copy b, .review-mode-copy span, .review-mode-copy small { display: block; }
.review-mode-copy b { color: var(--text-strong); font-size: 14px; }
.review-mode-copy span { margin-top: 7px; color: var(--primary); font-size: 12px; font-weight: 700; }
.review-mode-copy small { max-width: 760px; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.switch-control { position: relative; width: 54px; height: 30px; flex: none; cursor: pointer; }
.switch-control input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.switch-slider { position: absolute; inset: 0; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel); transition: .2s ease; box-shadow: inset 0 1px 3px rgba(24, 38, 70, .08); }
.switch-slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 7px rgba(25, 38, 68, .22); transition: .2s ease; }
.switch-control input:checked + .switch-slider { border-color: var(--primary); background: linear-gradient(135deg, var(--primary), var(--primary-strong)); }
.switch-control input:checked + .switch-slider::after { transform: translateX(24px); }

.config-list { display: grid; gap: 12px; margin-bottom: 14px; }
.config-row { border: 1px solid var(--line); border-radius: 11px; background: var(--panel-soft); }
.config-row-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 8px 13px; border-bottom: 1px solid var(--line); }
.config-row-head b { color: var(--text-strong); font-size: 12px; }
.config-remove { padding: 5px 9px; border: 0; border-radius: 7px; color: var(--red); background: var(--red-soft); cursor: pointer; font-size: 10px; }
.config-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 13px; }
.config-grid label { color: #5c667d; font-size: 11px; font-weight: 650; }
html[data-theme="dark"] .config-grid label { color: #aeb8cb; }
.config-grid input, .config-grid select { display: block; width: 100%; height: 40px; margin-top: 7px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 8px; outline: 0; color: var(--text); background: var(--panel); }
.config-grid input:focus, .config-grid select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91, 104, 246, .09); }
.config-grid .full { grid-column: 1 / -1; }
.config-empty { padding: 26px 16px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--muted); background: var(--panel-soft); text-align: center; font-size: 12px; }

@media (max-width: 820px) {
  .admin-chip { display: flex; padding-left: 7px; border-left: 0; }
  .admin-name, .admin-arrow { display: none; }
  .admin-menu { position: fixed; top: 58px; right: 10px; width: min(290px, calc(100vw - 20px)); }
  .settings-tabs { top: calc(var(--topbar-height) + var(--tabbar-height)); overflow-x: auto; flex-wrap: nowrap; }
  .settings-tabs button { flex: none; }
  .config-grid { grid-template-columns: 1fr; }
  .config-grid .full { grid-column: auto; }
  .settings-savebar { align-items: stretch; flex-direction: column; bottom: 8px; }
  .settings-savebar .btn { width: 100%; min-width: 0; }
  .review-mode-row { align-items: flex-start; padding: 16px; }
}
.user-cell{display:flex;align-items:center;gap:9px}.user-cell img{width:32px;height:32px;border-radius:10px;object-fit:cover;background:var(--panel-soft);border:1px solid var(--line)}
.qa-admin-stack{display:grid;gap:18px}

/* v1.5.70 后台导航分类与前台可视化装修 */
.nav-group { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.nav-group:last-child { margin-bottom: 0; }
.nav-group-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; padding: 5px 12px 4px; color: var(--muted-2); }
.nav-group-title span { font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.nav-group-title small { font-size: 9px; font-weight: 500; white-space: nowrap; opacity: .72; }
.app.sidebar-collapsed .nav-group { margin-bottom: 7px; }
.app.sidebar-collapsed .nav-group-title { display: none; }

.frontui-shell { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 18px; }
.frontui-editor { min-width: 0; }
.frontui-intro { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding: 17px 18px; border: 1px solid var(--primary-line); border-radius: 13px; background: linear-gradient(135deg, var(--primary-soft), var(--panel)); }
.frontui-intro h3 { margin: 3px 0 5px; color: var(--text-strong); font-size: 18px; }
.frontui-intro p { margin: 0; color: var(--muted); font-size: 12px; }
.frontui-eyebrow { color: var(--primary); font-size: 10px; font-weight: 750; letter-spacing: .1em; }
.frontui-tabs { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 5px; overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); scrollbar-width: none; }
.frontui-tabs::-webkit-scrollbar { display: none; }
.frontui-tabs button { height: 34px; flex: none; padding: 0 12px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; }
.frontui-tabs button:hover { color: var(--primary); background: var(--panel-soft); }
.frontui-tabs button.active { color: var(--primary); background: var(--primary-soft); font-weight: 700; }
.frontui-section { display: none; }
.frontui-section.active { display: block; }
.frontui-card { margin-bottom: 14px; }
.frontui-card .settings-card-head { padding-bottom: 12px; }
.config-slot { color: var(--muted-2); font-size: 10px; }
.switch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.switch-grid > label { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-soft); }
.switch-grid > label > span { color: var(--text); font-size: 12px; font-weight: 650; }
.switch-grid select { width: 96px; flex: none; }
.frontui-savebar { position: sticky; bottom: 12px; z-index: 8; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--primary-line); border-radius: 12px; background: color-mix(in srgb, var(--panel) 94%, transparent); box-shadow: 0 8px 30px rgba(38, 54, 100, .09); backdrop-filter: blur(14px); }
.frontui-savebar span { color: var(--muted); font-size: 11px; }
.frontui-preview-panel { position: sticky; top: calc(var(--topbar-height) + var(--tabbar-height) + 18px); padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.frontui-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.frontui-preview-head b { display: block; color: var(--text-strong); font-size: 13px; }
.frontui-preview-head span:not(.tag) { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.frontui-preview-head em { color: var(--primary); font-style: normal; }
.phone-preview { width: 100%; min-height: 530px; overflow: hidden; border: 7px solid #162033; border-radius: 28px; background: linear-gradient(180deg, #fbfdff, #f2f7ff); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.phone-top { height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid rgba(119,145,191,.13); color: #0f2745; background: rgba(255,255,255,.92); font-size: 9px; }
.phone-top b { font-size: 10px; }
.phone-content { padding: 12px; color: #0d2d54; }
.pv-hero { padding: 16px 12px 13px; border-radius: 15px; background: radial-gradient(circle at 12% 4%, rgba(84,216,235,.24), transparent 42%), linear-gradient(135deg, rgba(238,252,255,.96), rgba(238,243,255,.9)); }
.pv-hero b { display: block; font-size: 13px; }
.pv-hero > span { display: block; margin: 13px 0 10px; font-size: 17px; font-weight: 800; }
.pv-search { min-height: 35px; display: flex; align-items: center; padding: 0 11px; border: 1px solid rgba(255,255,255,.95); border-radius: 12px; color: #8192ac; background: rgba(255,255,255,.82); font-size: 10px; box-shadow: 0 6px 18px rgba(80,121,175,.08); }
.pv-banner { height: 96px; display: flex; align-items: center; padding: 0 15px; margin-top: 12px; border-radius: 14px; color: white; background: linear-gradient(135deg, #54c4ea, #7188f1 58%, #ad9df7); font-size: 13px; font-weight: 800; }
.pv-banner.small { height: 62px; }
.pv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 12px; }
.pv-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pv-grid i { min-height: 54px; display: grid; place-items: center; padding: 7px; border: 1px solid rgba(255,255,255,.95); border-radius: 11px; color: #173458; background: rgba(255,255,255,.78); font-size: 9px; font-style: normal; text-align: center; }
.pv-list { display: flex; flex-direction: column; gap: 0; margin-top: 12px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.94); border-radius: 12px; background: rgba(255,255,255,.78); }
.pv-list b { margin-bottom: 5px; font-size: 11px; }
.pv-list span { padding: 7px 0; border-top: 1px solid rgba(120,143,177,.12); color: #7386a0; font-size: 9px; }
.pv-title { margin: 5px 2px 10px; font-size: 15px; font-weight: 800; }
.pv-map { position: relative; height: 210px; display: grid; place-items: center; margin-top: 10px; border-radius: 14px; color: #8392a8; background: linear-gradient(135deg, #ecf7fa, #eef2f8); font-size: 10px; }
.pv-tools { position: absolute; top: 10px; right: 8px; display: flex; flex-direction: column; gap: 4px; }
.pv-tools i { min-width: 34px; padding: 7px 5px; border-radius: 8px; color: #596ed9; background: rgba(255,255,255,.88); font-size: 8px; font-style: normal; text-align: center; }
.pv-legend { margin-top: -7px; padding: 8px 10px; border-radius: 10px; color: #75869c; background: rgba(255,255,255,.9); font-size: 8px; text-align: center; }
.pv-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; gap: 4px; margin-top: 300px; padding: 12px 8px 9px; border-radius: 16px; background: rgba(255,255,255,.92); }
.pv-tabbar i { display: grid; place-items: center; min-height: 30px; color: #7185a1; font-size: 8px; font-style: normal; }
.pv-tabbar .center { width: 48px; height: 48px; align-self: center; justify-self: center; margin-top: -22px; border-radius: 50%; color: white; background: linear-gradient(135deg, #59c2f1, #766df5); font-size: 24px; }
.pv-tabbar .center small { display: block; margin-top: 8px; color: #7185a1; font-size: 8px; }
.preview-note { margin-top: 10px; color: var(--muted-2); font-size: 10px; line-height: 1.6; }

@media (max-width: 1180px) {
  .frontui-shell { grid-template-columns: minmax(0, 1fr); }
  .frontui-preview-panel { position: static; }
  .phone-preview { max-width: 360px; margin: 0 auto; }
}
@media (max-width: 700px) {
  .switch-grid { grid-template-columns: 1fr; }
  .frontui-intro { align-items: flex-start; flex-direction: column; }
  .frontui-savebar { align-items: stretch; flex-direction: column; }
  .frontui-savebar .btn { width: 100%; }
}

/* v1.5.102 大楼管理入口恢复：顶部快捷入口 + 菜单防隐藏 */
#buildingNavBtn{display:flex!important;visibility:visible!important;opacity:1!important}
.top-quick-building{height:34px;padding:0 12px;border:1px solid #dbe5f4;border-radius:10px;background:#f7faff;color:#2b4f86;display:inline-flex;align-items:center;gap:7px;font-size:13px;cursor:pointer;white-space:nowrap}
.top-quick-building:hover{background:#eef5ff;border-color:#bfd3ee;color:#174f94}
.top-quick-building span{font-size:16px;line-height:1}.top-quick-building b{font-weight:700}
@media(max-width:820px){.top-quick-building{display:none}}

/* v1.5.110 前台装修 Logo 图片上传 */
.front-logo-field { min-width: 0; }
.front-logo-field > label { display: block; color: #5c667d; font-size: 11px; font-weight: 650; }
html[data-theme="dark"] .front-logo-field > label { color: #aeb8cb; }
.front-logo-upload-row { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.front-logo-upload-row .btn { flex: 0 0 auto; min-width: 92px; }
.front-logo-upload-row > span { min-width: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.front-logo-preview { margin-top: 10px; }
.front-logo-preview-inner { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 10px; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--panel-soft); }
.front-logo-preview-inner img { width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid var(--line); border-radius: 10px; object-fit: cover; background: #fff; }
.front-logo-preview-inner div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.front-logo-preview-inner b { color: var(--text-strong); font-size: 12px; }
.front-logo-preview-inner span { overflow: hidden; color: var(--muted); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.front-logo-preview-empty { min-height: 48px; display: flex; align-items: center; padding: 0 12px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--muted); background: var(--panel-soft); font-size: 11px; }
.pv-brand { display: flex; align-items: center; gap: 7px; min-width: 0; }
.pv-brand img { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 7px; object-fit: cover; background: #fff; box-shadow: 0 2px 8px rgba(31, 49, 87, .08); }
.pv-brand b { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 720px) {
  .front-logo-upload-row { align-items: flex-start; flex-direction: column; }
  .front-logo-upload-row .btn { width: 100%; }
}

/* v1.5.116 前台装修 Logo 上传入口可见性修复 */
.front-logo-label{display:block;margin-bottom:7px;color:#5c667d;font-size:11px;font-weight:650}
html[data-theme="dark"] .front-logo-label{color:#aeb8cb}
.front-logo-input-row{display:grid;grid-template-columns:minmax(0,1fr) 112px;align-items:center;gap:10px}
.front-logo-input-row input{width:100%;min-width:0}
.front-logo-upload-btn{height:40px!important;min-width:112px!important;padding:0 14px!important;border-radius:10px!important;white-space:nowrap}
.front-logo-upload-hint{margin-top:7px;color:var(--muted);font-size:10px;line-height:1.45}
@media(max-width:760px){.front-logo-input-row{grid-template-columns:1fr}.front-logo-upload-btn{width:100%!important}}
