/* ============================================================
   房源私有库 —— 样式表
   ============================================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff6ff;
  --bg: #f4f6fa;
  --card: #ffffff;
  --text: #1f2937;
  --text-2: #6b7280;
  --text-3: #9ca3af;
  --line: #e5e7eb;
  --price: #e11d48;
  --packet: #f59e0b;
  --green: #10b981;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .14);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* 关键：display:flex 会覆盖 hidden 属性，必须显式兜底 */
[hidden] { display: none !important; }

html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
input, select, textarea { outline: none; }

/* ---------------- 通用按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 15px;
  transition: .15s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:active { background: var(--primary-dark); }
.btn-primary:disabled { opacity: .5; }
.btn-ghost { background: #fff; color: var(--text-2); border: 1px solid var(--line); }
.btn-ghost:active { background: #f3f4f6; }
.btn-block { width: 100%; padding: 13px; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; font-size: 18px;
  display: flex; align-items: center; justify-content: center; color: var(--text-2);
}
.icon-btn:active { background: rgba(0, 0, 0, .06); }

/* ---------------- 输入框 ---------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; color: var(--text-2); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; transition: .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.field textarea { resize: vertical; }

.checkbox { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.checkbox input { width: 18px; height: 18px; accent-color: var(--primary); }
.checkbox.big { font-size: 15px; font-weight: 600; color: var(--text); }

/* ============================================================
   登录页
   ============================================================ */
.auth-view {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: linear-gradient(160deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
}
.auth-card {
  width: 100%; max-width: 400px; background: #fff; border-radius: 20px;
  padding: 36px 28px 26px; box-shadow: var(--shadow-lg);
}
.auth-logo { font-size: 46px; text-align: center; line-height: 1; }
.auth-title { font-size: 23px; text-align: center; margin: 14px 0 4px; font-weight: 700; }
.auth-sub { text-align: center; color: var(--text-2); font-size: 14px; margin: 0 0 26px; }
#authForm { display: flex; flex-direction: column; gap: 15px; }
.auth-msg { color: #dc2626; font-size: 13px; margin: 0; min-height: 18px; text-align: center; }
.auth-foot { text-align: center; color: var(--text-3); font-size: 12px; margin: 18px 0 0; }

/* ============================================================
   主界面
   ============================================================ */
.main-view { min-height: 100vh; min-height: 100dvh; padding-bottom: 90px; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--primary); color: #fff;
  padding: 12px 14px 10px;
  box-shadow: 0 2px 12px rgba(37, 99, 235, .22);
}
.topbar-row { display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.topbar .icon-btn { color: rgba(255, 255, 255, .92); }
.topbar .icon-btn:active { background: rgba(255, 255, 255, .16); }

.search-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.search-box {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .96); border-radius: 11px; padding: 0 12px; height: 40px;
}
.search-icon { font-size: 15px; opacity: .55; }
.search-box input {
  flex: 1; border: none; background: none; height: 100%; font-size: 15px; color: var(--text);
}
.search-box input::placeholder { color: var(--text-3); }
.search-box input::-webkit-search-cancel-button { display: none; }
.clear-btn { color: var(--text-3); font-size: 15px; padding: 4px; }
.filter-toggle {
  background: rgba(255, 255, 255, .18); color: #fff !important; height: 40px; width: 40px;
}
.filter-toggle.active { background: #fff; color: var(--primary) !important; }

.stat-row {
  display: flex; gap: 16px; margin-top: 10px; font-size: 12.5px;
  color: rgba(255, 255, 255, .9); flex-wrap: wrap;
}
.stat-row b { font-size: 14px; font-weight: 700; }

/* 筛选面板 */
.filter-panel {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .2);
}
.filter-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.field.sm > span { color: rgba(255, 255, 255, .85); font-size: 12px; }
.field.sm input, .field.sm select {
  padding: 8px 10px; font-size: 14px; border-radius: 8px; border: none;
  background: #fff; color: var(--text);
}
.field.sm input::placeholder { color: var(--text-3); }
.range { display: flex; align-items: center; gap: 6px; }
.range input { min-width: 0; }
.range i { color: rgba(255, 255, 255, .7); font-style: normal; font-size: 12px; }
.filter-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; gap: 10px; flex-wrap: wrap;
}
.filter-foot .checkbox span { color: rgba(255, 255, 255, .95); }
.filter-foot .btn-ghost { background: rgba(255, 255, 255, .16); color: #fff; border: none; }

/* ---------------- 房源列表 ---------------- */
.content { padding: 14px; max-width: 1400px; margin: 0 auto; }
.house-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }

.house-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: .18s; cursor: pointer;
  display: flex; flex-direction: column;
}
.house-card:active { transform: scale(.985); }
@media (hover: hover) { .house-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); } }

.card-cover {
  position: relative; width: 100%; aspect-ratio: 4 / 3; background: #eef2f7;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-cover .no-img { font-size: 34px; opacity: .3; }
.card-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 5px; flex-wrap: wrap; }
.badge {
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 20px;
  background: rgba(0, 0, 0, .58); color: #fff; backdrop-filter: blur(4px);
}
.badge.status-售卖中 { background: rgba(16, 185, 129, .95); }
.badge.status-已成交, .badge.status-已租 { background: rgba(107, 114, 128, .95); }
.badge.status-暂缓 { background: rgba(245, 158, 11, .95); }
.badge.packet { background: rgba(245, 158, 11, .96); }
.badge.video { right: 8px; left: auto; position: absolute; }

.card-body { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title {
  font-size: 15.5px; font-weight: 700; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-addr {
  font-size: 12.5px; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-specs { display: flex; gap: 8px; font-size: 12.5px; color: var(--text-2); flex-wrap: wrap; }
.card-foot {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: auto; padding-top: 6px;
}
.card-price { font-size: 19px; font-weight: 800; color: var(--price); letter-spacing: -.3px; }
.card-price small { font-size: 12px; font-weight: 600; }
.card-packet { font-size: 12.5px; color: var(--packet); font-weight: 700; }
.card-date { font-size: 11.5px; color: var(--text-3); }
.card-uploader {
  font-size: 11.5px; color: var(--text-3); margin-top: 7px; padding-top: 7px;
  border-top: 1px dashed var(--line);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.empty-state { text-align: center; padding: 70px 20px; color: var(--text-3); }
.empty-icon { font-size: 46px; margin-bottom: 12px; opacity: .55; }
.loading { text-align: center; padding: 26px; color: var(--text-3); font-size: 14px; }
.load-more-wrap { text-align: center; padding: 18px 0 6px; }

/* ---------------- 悬浮新增按钮 ---------------- */
.fab {
  position: fixed; right: 20px; bottom: calc(24px + env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 30px; font-weight: 300;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 99, 235, .42); z-index: 60;
  transition: .15s;
}
.fab:active { transform: scale(.92); }

/* ---------------- 右上角菜单 ---------------- */
.menu-sheet { position: fixed; inset: 0; z-index: 200; }
.menu-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .4); }
.menu-body {
  position: absolute; top: 58px; right: 12px; width: 230px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden; animation: pop .16s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.menu-user {
  padding: 13px 16px; font-size: 13px; color: var(--text-2);
  border-bottom: 1px solid var(--line); background: #fafbfc;
}
.menu-item {
  display: block; width: 100%; text-align: left; padding: 13px 16px;
  font-size: 14.5px; border-bottom: 1px solid #f3f4f6;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: #f3f4f6; }
.menu-item.danger { color: #dc2626; }

/* ============================================================
   弹层
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; }
.modal-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); }
.modal-body {
  position: relative; z-index: 1; background: #fff;
  margin: auto; width: 100%; max-height: 100vh; max-height: 100dvh;
  display: flex; flex-direction: column; animation: up .2s ease-out;
}
@keyframes up { from { opacity: 0; transform: translateY(14px); } }

.modal-close {
  width: 36px; height: 36px; border-radius: 50%; font-size: 16px;
  background: rgba(255, 255, 255, .92); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); flex-shrink: 0;
}

/* 详情 */
.detail-body { max-width: 900px; border-radius: 18px 18px 0 0; }
@media (min-width: 700px) { .detail-body { border-radius: 18px; max-height: 92vh; } }
.detail-body > .modal-close { position: absolute; top: 12px; right: 12px; z-index: 3; }
#detailContent { overflow-y: auto; -webkit-overflow-scrolling: touch; }

.d-gallery { position: relative; aspect-ratio: 4 / 3; background: #eef2f7; }
.d-gallery img { width: 100%; height: 100%; object-fit: contain; }
.d-gallery .nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; font-size: 18px;
  background: rgba(0, 0, 0, .42); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.d-gallery .nav.prev { left: 10px; }
.d-gallery .nav.next { right: 10px; }
.d-thumbs { display: flex; gap: 7px; padding: 10px 16px 0; overflow-x: auto; }
.d-thumbs img {
  width: 62px; height: 62px; object-fit: cover; border-radius: 8px;
  flex-shrink: 0; border: 2px solid transparent; opacity: .75;
}
.d-thumbs img.active { border-color: var(--primary); opacity: 1; }
.d-body { padding: 16px 20px 28px; }
.d-price { font-size: 30px; font-weight: 800; color: var(--price); letter-spacing: -.5px; }
.d-price small { font-size: 14px; font-weight: 600; }
.d-title { font-size: 20px; font-weight: 700; margin: 8px 0 4px; }
.d-addr { color: var(--text-2); font-size: 14px; margin-bottom: 14px; }
.d-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.tag {
  font-size: 12px; padding: 4px 11px; border-radius: 20px;
  background: var(--primary-soft); color: var(--primary); font-weight: 600;
}
.d-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
@media (min-width: 560px) { .d-grid { grid-template-columns: repeat(4, 1fr); } }
.d-cell { background: #fff; padding: 11px 13px; }
.d-cell .k { font-size: 11.5px; color: var(--text-3); margin-bottom: 3px; }
.d-cell .v { font-size: 14.5px; font-weight: 600; word-break: break-all; }

.d-block { margin-bottom: 18px; }
.d-block h3 { font-size: 14px; margin: 0 0 9px; color: var(--text-2); font-weight: 600; }
.d-note { background: #fafbfc; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 14px; white-space: pre-wrap; }

.d-packet {
  background: linear-gradient(135deg, #fff7ed, #ffedd5); border: 1px solid #fed7aa;
  border-radius: 12px; padding: 14px 16px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.d-packet .lbl { font-size: 13px; color: #9a3412; font-weight: 600; }
.d-packet .amt { font-size: 24px; font-weight: 800; color: #ea580c; }
.d-packet .sub { font-size: 12px; color: #b45309; width: 100%; }

.d-videos { display: grid; gap: 12px; }
.d-videos video { width: 100%; border-radius: 12px; background: #000; max-height: 60vh; }
.d-actions { display: flex; gap: 10px; margin-top: 24px; }
.d-actions .btn { flex: 1; }
.btn-danger { background: #fee2e2; color: #dc2626; }
.btn-danger:active { background: #fecaca; }

/* 编辑表单 */
.edit-body { max-width: 820px; border-radius: 18px 18px 0 0; }
@media (min-width: 700px) { .edit-body { border-radius: 18px; max-height: 92vh; } }
.modal-head {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.modal-head h2 { flex: 1; font-size: 17px; margin: 0; font-weight: 700; }
.modal-close.inline { background: #f3f4f6; box-shadow: none; }
.edit-scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

.redpacket-box { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 13px; gap: 11px; }
.redpacket-inputs { display: grid; grid-template-columns: 150px 1fr; gap: 10px; }
@media (max-width: 520px) { .redpacket-inputs { grid-template-columns: 1fr; } }
.redpacket-inputs input {
  width: 100%; padding: 10px 12px; border: 1px solid #fcd34d;
  border-radius: 9px; background: #fff;
}

/* 更多信息（折叠） */
.more-box {
  border: 1px solid var(--line); border-radius: 12px; background: #fafbfc; padding: 0 14px;
}
.more-box > summary {
  cursor: pointer; padding: 14px 0; font-size: 14px; font-weight: 600; color: var(--text-2);
  list-style: none; display: flex; align-items: center; gap: 8px; user-select: none;
}
.more-box > summary::-webkit-details-marker { display: none; }
.more-box > summary::before {
  content: '▸'; font-size: 12px; transition: transform .15s; display: inline-block;
}
.more-box[open] > summary::before { transform: rotate(90deg); }
.more-grid { padding-bottom: 16px; }

/* 上传区 */
.upload-zone { display: flex; flex-direction: column; gap: 11px; }
.upload-btn {
  border: 1.5px dashed #cbd5e1; border-radius: 11px; padding: 18px;
  text-align: center; font-size: 13.5px; color: var(--text-2); background: #fafbfc;
}
.upload-btn:active { background: var(--primary-soft); border-color: var(--primary); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 9px; }
.media-item {
  position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  background: #eef2f7;
}
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-del {
  position: absolute; top: 5px; right: 5px; width: 24px; height: 24px;
  border-radius: 50%; background: rgba(220, 38, 38, .92); color: #fff;
  font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.media-item .uploading {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  background: rgba(255, 255, 255, .86); font-size: 11px; color: var(--text-2);
}
.spinner {
  width: 20px; height: 20px; border: 2.5px solid var(--line);
  border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- B站 / 外部视频 ---------------- */
.embed-zone { display: flex; flex-direction: column; gap: 10px; }
.embed-input-row { display: flex; gap: 9px; }
.embed-input-row input {
  flex: 1; min-width: 0; padding: 10px 13px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.embed-input-row input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.hint { font-size: 11.5px; color: var(--text-3); margin: 0; line-height: 1.65; }
.hint b { color: var(--text-2); }
.hint.warn { color: #b45309; }
.hint.warn b { color: #dc2626; }
.embed-list { display: flex; flex-direction: column; gap: 9px; }
.embed-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px;
}
.embed-item .ico { font-size: 16px; flex-shrink: 0; }
.embed-item .txt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.embed-item .del { color: #dc2626; font-size: 13px; padding: 4px 7px; flex-shrink: 0; }

/* B站播放器容器（16:10 比例，自适应宽度） */
.bili-wrap {
  position: relative; width: 100%; padding-bottom: 62.5%; height: 0;
  border-radius: 12px; overflow: hidden; background: #000;
}
.bili-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.link-card {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  background: var(--primary-soft); border: 1px solid #dbeafe; border-radius: 12px;
  color: var(--primary); font-weight: 600; font-size: 14.5px; text-decoration: none;
}
.link-card .u { flex: 1; font-weight: 400; color: var(--text-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%);
  background: rgba(17, 24, 39, .93); color: #fff; padding: 11px 20px;
  border-radius: 22px; font-size: 14px; z-index: 900;
  animation: pop .18s; max-width: 86vw; text-align: center;
}

/* ============================================================
   管理后台
   ============================================================ */
.admin-body { max-width: 820px; border-radius: 18px 18px 0 0; }
@media (min-width: 700px) { .admin-body { border-radius: 18px; max-height: 92vh; } }
.admin-scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px; }
.admin-section { margin-bottom: 24px; }
.admin-section h3 { font-size: 14px; color: var(--text-2); margin: 0 0 10px; font-weight: 600; }

.storage-panel {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border-radius: 12px; overflow: hidden;
}
@media (min-width: 640px) { .storage-panel { grid-template-columns: repeat(4, 1fr); } }
.storage-cell { background: #fff; padding: 14px 16px; }
.storage-cell .k { font-size: 11.5px; color: var(--text-3); margin-bottom: 4px; }
.storage-cell .v { font-size: 17px; font-weight: 700; }
.storage-cell .v.small { font-size: 14px; font-weight: 600; }
.bar-wrap { grid-column: 1 / -1; background: #fff; padding: 13px 16px 15px; }
.bar { height: 8px; background: #eef2f7; border-radius: 6px; overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--primary); border-radius: 6px; transition: width .35s; }
.bar.warn > i { background: #f59e0b; }
.bar.danger > i { background: #dc2626; }
.bar-note { font-size: 11.5px; color: var(--text-3); margin-top: 7px; }

.user-list { display: flex; flex-direction: column; gap: 10px; }
.user-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; background: #fafbfc; border: 1px solid var(--line); border-radius: 11px;
}
.user-row .name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 7px; }
.user-row .role-tag { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: var(--primary); color: #fff; font-weight: 600; }
.user-row .role-tag.user { background: #e5e7eb; color: var(--text-2); }
.user-row .perms { display: flex; gap: 5px; flex-wrap: wrap; width: 100%; }
.user-row .perm { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: #eef2ff; color: var(--primary); font-weight: 600; }
.user-row .perm.off { background: #f3f4f6; color: #9ca3af; text-decoration: line-through; }
.user-row .acts { display: flex; gap: 4px; margin-left: auto; }
.user-row .acts button { font-size: 12.5px; color: var(--primary); padding: 5px 9px; border-radius: 7px; }
.user-row .acts button:active { background: var(--primary-soft); }
.user-row .acts button.del { color: #dc2626; }

.perm-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .perm-list { grid-template-columns: repeat(4, 1fr); } }
.perm-item {
  display: flex; align-items: center; gap: 8px; padding: 11px 13px;
  background: #fafbfc; border: 1px solid var(--line); border-radius: 10px; font-size: 14px;
}
.perm-item input { width: 18px; height: 18px; accent-color: var(--primary); }

/* 滚动条 */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }
