/* ==========================================================================
   页面级样式
   ========================================================================== */

/* ---------- 控制台 ---------- */
.metric-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.metric-tab {
  position: relative;
  padding: 16px 20px 15px;
  text-align: left;
  border-right: 1px solid var(--line);
  transition: background var(--t-fast);
}
.metric-tab:last-child { border-right: 0; }
.metric-tab:first-child { border-top-left-radius: var(--r-4); }
.metric-tab:last-child { border-top-right-radius: var(--r-4); }
.metric-tab:hover { background: var(--surface-2); }
.metric-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brand);
}
.metric-label { display: flex; align-items: center; gap: 6px; font-size: var(--fs-13); color: var(--text-2); }
.metric-value { margin-top: 6px; font-size: var(--fs-30); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.metric-foot { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: var(--fs-12); color: var(--text-3); }
@media (max-width: 860px) {
  .metric-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-tab:nth-child(2) { border-right: 0; border-top-right-radius: var(--r-4); }
  .metric-tab:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .metric-value { font-size: var(--fs-24); }
}

.todo-item { display: flex; align-items: center; gap: var(--sp-3); padding: 11px 0; border-bottom: 1px solid var(--line); }
.todo-item:first-child { padding-top: 0; }
.todo-item:last-child { padding-bottom: 0; border-bottom: 0; }
.todo-mark {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-3);
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 13px;
}
.todo-mark.is-brand { background: var(--brand-soft-2); color: var(--brand-text); }
.todo-mark.is-danger { background: var(--danger-soft); color: var(--danger-text); }
.todo-mark.is-warning { background: var(--warning-soft); color: var(--warning-text); }
.todo-mark.is-success { background: var(--success-soft); color: var(--success-text); }

/* 占比条列表 */
.bars { display: flex; flex-direction: column; gap: 14px; }
.bars li { font-size: var(--fs-13); }
.bars .bar-head { display: flex; justify-content: space-between; gap: var(--sp-3); margin-bottom: 6px; }
.bars .bar-head span:last-child { color: var(--text-2); font-variant-numeric: tabular-nums; }
.bars .bar-track { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.bars .bar-fill { display: block; height: 100%; border-radius: 3px; background: var(--brand); }

.rank-num {
  flex: none;
  width: 20px;
  color: var(--text-3);
  font-size: var(--fs-12);
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* 漏斗 */
.funnel { display: flex; flex-direction: column; gap: 6px; }
.funnel-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 64px; align-items: center; gap: var(--sp-3); font-size: var(--fs-13); }
.funnel-bar { height: 30px; border-radius: 4px; background: var(--brand); }
.funnel-row:nth-child(2) .funnel-bar { opacity: .78; }
.funnel-row:nth-child(3) .funnel-bar { opacity: .58; }
.funnel-row:nth-child(4) .funnel-bar { opacity: .4; }

/* ---------- 文章编辑 ---------- */
.title-input {
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: var(--fs-24);
  font-weight: 600;
  letter-spacing: -.02em;
}
.title-input::placeholder { color: var(--text-4); }
.seo-preview { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface-2); font-size: var(--fs-13); }
.seo-preview .t { color: var(--brand-text); font-size: var(--fs-14); font-weight: 500; }
.seo-preview .u { color: var(--success-text); font-size: var(--fs-12); margin: 2px 0; }

/* ---------- 树形表格 ---------- */
.tree-cell { display: flex; align-items: center; gap: 8px; }
.tree-toggle { width: 18px; height: 18px; color: var(--text-3); font-size: 10px; border-radius: var(--r-1); transition: transform var(--t-fast); }
.tree-toggle:hover { background: var(--surface-3); }
.tree-toggle.is-closed { transform: rotate(-90deg); }
.drag-handle { color: var(--text-4); cursor: grab; font-size: 12px; }

/* ---------- 媒体库 ---------- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: var(--sp-3); }
.media-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.media-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.media-item.is-selected { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.media-thumb { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-3); }
.media-meta { padding: 8px 10px; }
.media-name { font-size: var(--fs-12); font-weight: 500; }
.media-pick {
  position: absolute;
  top: 8px;
  left: 8px;
  opacity: 0;
  transition: opacity var(--t-fast);
}
.media-pick .box { box-shadow: 0 1px 3px rgb(0 0 0 / .3); }
.media-item:hover .media-pick, .media-item.is-selected .media-pick { opacity: 1; }

/* ---------- 询盘收件箱 ---------- */
.inbox {
  display: grid;
  grid-template-columns: 200px 360px minmax(0, 1fr);
  height: calc(100dvh - var(--topbar-h) - 168px);
  min-height: 560px;
  overflow: hidden;
}
.inbox-side { padding: 12px 10px; border-right: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r-4) 0 0 var(--r-4); }
.inbox-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.inbox-search { padding: 12px; border-bottom: 1px solid var(--line); }
.inbox-items { flex: 1; overflow-y: auto; }
.inbox-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  transition: background var(--t-fast);
}
.inbox-item:hover { background: var(--surface-2); }
.inbox-item.is-active { background: var(--brand-soft); }
.inbox-item.is-unread .inbox-name::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--brand);
  vertical-align: 2px;
}
.inbox-name { font-size: var(--fs-13); font-weight: 600; }
.inbox-subject { margin-top: 2px; font-size: var(--fs-13); }
.inbox-preview { margin-top: 2px; font-size: var(--fs-12); color: var(--text-3); }
.inbox-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.inbox-head { padding: 16px 22px; border-bottom: 1px solid var(--line); }
.inbox-body { flex: 1; overflow-y: auto; padding: 20px 22px; }
.inbox-body p + p { margin-top: 10px; }
.inbox-reply { padding: 12px 22px 16px; border-top: 1px solid var(--line); }
.inbox-back { display: none; }
@media (max-width: 1200px) { .inbox { grid-template-columns: 300px minmax(0, 1fr); } .inbox-side { display: none; } }
@media (max-width: 760px) {
  .inbox { display: block; height: auto; }
  .inbox-list { border-right: 0; }
  .inbox.is-reading .inbox-list { display: none; }
  .inbox:not(.is-reading) .inbox-main { display: none; }
  .inbox-back { display: inline-flex; }
}

/* ---------- 任务看板 ---------- */
.board { display: flex; gap: var(--sp-4); align-items: flex-start; overflow-x: auto; padding-bottom: var(--sp-3); }
.board-col {
  flex: 1 0 256px;
  max-width: 400px;
  padding: 10px;
  border-radius: var(--r-4);
  background: var(--surface-3);
}
[data-theme="dark"] .board-col { background: var(--surface); }
.board-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; font-size: var(--fs-13); font-weight: 600; }
.board-list { display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.task-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  cursor: grab;
  transition: box-shadow var(--t-fast), border-color var(--t-fast);
}
[data-theme="dark"] .task-card { background: var(--surface-2); }
.task-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.task-title { margin: 8px 0 10px; font-size: var(--fs-13); font-weight: 500; }
.task-foot { display: flex; align-items: center; gap: 10px; font-size: var(--fs-12); color: var(--text-3); }
.sortable-ghost { opacity: .4; }
.sortable-chosen { box-shadow: var(--shadow-3); }

/* ---------- 角色权限 ---------- */
.role-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border-radius: var(--r-3);
  text-align: left;
  transition: background var(--t-fast);
}
.role-item:hover { background: var(--surface-3); }
.role-item.is-active { background: var(--brand-soft); }
.role-item.is-active .cell-title { color: var(--brand-text); }
.perm-group-title { background: var(--surface-2); font-weight: 600; }
.perm-table td:not(:first-child), .perm-table th:not(:first-child) { text-align: center; width: 84px; }

/* ---------- 设置 ---------- */
.settings { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
.settings-nav { position: sticky; top: calc(var(--topbar-h) + 24px); display: flex; flex-direction: column; gap: 2px; }
.settings-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-3);
  color: var(--text-2);
  font-size: var(--fs-13);
  font-weight: 500;
  text-align: left;
}
.settings-nav button i { width: 16px; text-align: center; color: var(--text-3); font-size: 13px; }
.settings-nav button:hover { background: var(--surface-3); color: var(--text); }
.settings-nav button.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.settings-nav button.is-active i { color: var(--brand-text); }
.set-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--sp-6); padding: 18px 0; border-bottom: 1px solid var(--line); }
.set-row:first-child { padding-top: 0; }
.set-row:last-child { padding-bottom: 0; border-bottom: 0; }
.set-title { font-size: var(--fs-13); font-weight: 500; }
.set-desc { margin-top: 2px; font-size: var(--fs-12); color: var(--text-3); }
.set-control { max-width: 480px; }
@media (max-width: 960px) {
  .settings { grid-template-columns: minmax(0, 1fr); }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; }
  .settings-nav button { white-space: nowrap; }
  .set-row { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
}

/* ---------- 个人中心 ---------- */
.profile-hero { position: relative; overflow: hidden; }
.profile-banner { height: 132px; background: url("../img/login-hero.jpg") center 72% / cover; }
.profile-info { display: flex; align-items: flex-end; flex-wrap: wrap; gap: var(--sp-4); padding: 0 24px 20px; margin-top: -30px; }
.profile-info .avatar { box-shadow: 0 0 0 4px var(--surface); }
.profile-info .grow { padding-bottom: 2px; min-width: 200px; }

/* ---------- 日志详情 ---------- */
.diff { font-family: var(--font-mono); font-size: var(--fs-12); border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; }
.diff div { padding: 3px 12px; white-space: pre-wrap; word-break: break-all; }
.diff .del { background: var(--danger-soft); color: var(--danger-text); }
.diff .add { background: var(--success-soft); color: var(--success-text); }

/* ---------- 登录 ---------- */
.auth {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 408px;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--sp-10);
  min-height: 100dvh;
  padding: clamp(24px, 4vw, 48px) clamp(24px, 8vw, 128px);
  overflow: hidden;
  color: #eef0f4;
  background:
    radial-gradient(70% 40% at 72% 44%, color-mix(in oklab, var(--brand) 26%, transparent), transparent 72%),
    linear-gradient(180deg, #05070b 0%, #080b12 56%, #05070b 100%);
}
.auth::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(5 7 11 / .3), rgb(5 7 11 / 0) 44%);
}
.auth-scene { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }

.auth-intro { align-self: start; padding-top: clamp(16px, 9vh, 96px); }
.auth-intro > * { animation: auth-rise .9s var(--ease) both; }
.auth-intro > :nth-child(2) { animation-delay: .1s; }
.auth-intro > :nth-child(3) { animation-delay: .16s; }
.auth-intro > :nth-child(4) { animation-delay: .24s; }
.auth-intro > :nth-child(5) { animation-delay: .34s; }
@keyframes auth-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.auth-mark { width: 44px; height: 44px; border-radius: var(--r-4); }
.auth-mark svg { width: 25px; height: 25px; }
.auth-eyebrow { margin-top: var(--sp-5); font-size: var(--fs-13); font-weight: 500; letter-spacing: .28em; color: rgb(238 240 244 / .62); }
.auth-name {
  margin-top: var(--sp-2);
  font-size: clamp(40px, 5.2vw, 72px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
}
.auth-slogan { margin-top: var(--sp-3); font-size: var(--fs-18); color: rgb(238 240 244 / .74); }
.auth-status { display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-8); font-size: var(--fs-13); color: rgb(238 240 244 / .6); }
.auth-status .status::before { animation: auth-pulse 2.4s ease-in-out infinite; }
@keyframes auth-pulse { 50% { box-shadow: 0 0 0 6px transparent; } }

.auth-card {
  position: relative;
  padding: 32px;
  border-radius: var(--r-5);
  background: rgb(13 16 23 / .62);
  box-shadow: 0 30px 80px -24px rgb(0 0 0 / .8), inset 0 1px 0 rgb(255 255 255 / .06);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  animation: auth-card-in 1s .2s var(--ease) both;
}
/* 跟随指针的描边高光 */
.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(240px circle at var(--mx, 70%) var(--my, 0%), color-mix(in oklab, var(--brand) 40%, #ffffff), transparent 72%),
    rgb(255 255 255 / .1);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
@keyframes auth-card-in { from { opacity: 0; transform: translateY(24px) scale(.98); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.auth-card.is-shake { animation: auth-shake .42s var(--ease); }
@keyframes auth-shake {
  20% { transform: translateX(-7px); }
  45% { transform: translateX(6px); }
  70% { transform: translateX(-3px); }
  100% { transform: none; }
}

.auth-title { font-size: var(--fs-24); font-weight: 600; letter-spacing: -.01em; }
.auth-sub { margin: 4px 0 var(--sp-6); font-size: var(--fs-13); color: rgb(238 240 244 / .6); }
.auth-card .label { color: rgb(238 240 244 / .78); }
.auth-card .check { color: rgb(238 240 244 / .7); }
.auth-card .box { background: rgb(255 255 255 / .04); border-color: rgb(255 255 255 / .2); }
.auth-card .input {
  height: var(--ctl-h-lg);
  border-color: rgb(255 255 255 / .12);
  background: rgb(255 255 255 / .05);
}
.auth-card .input:hover { border-color: rgb(255 255 255 / .24); }
.auth-card .input:focus { border-color: var(--brand-text); background: rgb(255 255 255 / .07); }
.auth-card .input.is-error { border-color: var(--danger); }
.auth-card .input:-webkit-autofill {
  -webkit-text-fill-color: #eef0f4;
  -webkit-box-shadow: 0 0 0 60px #141823 inset;
  caret-color: #eef0f4;
}
.auth-link { padding: 0; border: 0; background: none; font: inherit; font-size: var(--fs-12); color: rgb(238 240 244 / .6); cursor: pointer; }
.auth-link:hover { color: #fff; }

.auth-submit { position: relative; height: 46px; margin-top: var(--sp-1); overflow: hidden; border-color: rgb(255 255 255 / .14); }
.auth-submit i { font-size: 12px; transition: transform var(--t-base) var(--ease); }
.auth-submit:hover i { transform: translateX(3px); }
.auth-submit::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 30%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / .28), transparent);
  transform: skewX(-18deg);
  transition: left .6s var(--ease);
}
.auth-submit:hover::before { left: 115%; }

.auth-foot { grid-column: 1 / -1; font-size: var(--fs-12); color: rgb(238 240 244 / .42); }

/* 登录成功：内容退场，地形继续涌动 */
.auth.is-leaving .auth-intro, .auth.is-leaving .auth-card, .auth.is-leaving .auth-foot {
  opacity: 0;
  transform: translateY(-14px) scale(.985);
  transition: opacity .42s var(--ease), transform .42s var(--ease);
}
.auth.is-leaving::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #05070b;
  animation: fade-in .5s .42s both;
}

@media (max-height: 780px) and (min-width: 961px) {
  .auth-status { display: none; }
  .auth-intro { padding-top: 0; }
}

@media (max-width: 960px) {
  .auth { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; row-gap: var(--sp-5); padding: 40px 16px 16px; }
  .auth-card { align-self: end; }
  .auth::after { background: linear-gradient(180deg, rgb(5 7 11 / .5), rgb(5 7 11 / 0) 60%); }
  .auth-mark { display: none; }
  .auth-intro { align-self: auto; padding-top: 0; }
  .auth-eyebrow { margin-top: 0; }
  .auth-name { font-size: 36px; }
  .auth-slogan { font-size: var(--fs-14); }
  .auth-status { display: none; }
  .auth-card { padding: 24px 20px; }
  .auth-foot { text-align: center; }
  .auth-intro, .auth-card, .auth-foot { grid-column: 1; }
}

/* ---------- 状态页 ---------- */
.state-page { display: flex; align-items: center; justify-content: center; min-height: calc(100dvh - var(--topbar-h) - 64px); }
.state-page.is-full { min-height: 100dvh; padding: var(--sp-4); }
.state-box { display: grid; grid-template-columns: 300px minmax(0, 420px); align-items: center; gap: 40px; }
.state-box img { width: 300px; height: 300px; object-fit: cover; border-radius: var(--r-5); }
.state-code { font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--brand-text); }
.state-title { margin-top: 10px; font-size: var(--fs-24); font-weight: 600; }
.state-desc { margin-top: 8px; color: var(--text-2); }
@media (max-width: 760px) {
  .state-box { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 24px; }
  .state-box img { width: 180px; height: 180px; margin: 0 auto; }
  .state-box .row { justify-content: center; }
}

/* ---------- 组件库与规范 ---------- */
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 176px; gap: var(--sp-8); align-items: start; }
.doc-toc { position: sticky; top: calc(var(--topbar-h) + 24px); max-height: calc(100dvh - var(--topbar-h) - 48px); overflow-y: auto; font-size: var(--fs-13); }
.doc-toc a { display: block; padding: 4px 10px; border-left: 2px solid var(--line); color: var(--text-3); }
.doc-toc a:hover { color: var(--text); }
.doc-toc a.is-active { border-color: var(--brand); color: var(--brand-text); font-weight: 500; }
.doc-section { scroll-margin-top: calc(var(--topbar-h) + 20px); margin-bottom: var(--sp-8); }
.doc-title { margin-bottom: 4px; font-size: var(--fs-18); font-weight: 600; }
.doc-desc { margin-bottom: var(--sp-3); font-size: var(--fs-13); color: var(--text-3); }
.demo { border: 1px solid var(--line); border-radius: var(--r-4); background: var(--surface); box-shadow: var(--shadow-1); margin-bottom: var(--sp-3); }
.demo-stage { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); padding: 20px; }
.demo-stage.is-block { display: block; }
.demo-bar { display: flex; justify-content: flex-end; gap: 4px; padding: 6px 10px; border-top: 1px solid var(--line); }
.demo-code { position: relative; display: none; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-4) var(--r-4); }
.demo-code.is-open { display: block; }
.demo-code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-size: var(--fs-12); line-height: 1.7; }
@media (max-width: 1100px) { .doc { grid-template-columns: minmax(0, 1fr); } .doc-toc { display: none; } }

.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--sp-3); }
.color-card { border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; background: var(--surface); }
.color-chip { height: 64px; background: var(--c); border-bottom: 1px solid var(--line); }
.color-meta { padding: 8px 10px; font-size: var(--fs-12); }
.color-meta .mono { color: var(--text-3); display: block; }
.scale { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-radius: var(--r-3); overflow: hidden; }
.scale div { height: 56px; background: var(--c); }
.type-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: baseline; gap: var(--sp-4); padding: 10px 0; border-bottom: 1px solid var(--line); }
.type-row:last-child { border-bottom: 0; }
.spec-box { display: flex; align-items: flex-end; flex-wrap: wrap; gap: var(--sp-5); }
.spec-box > div { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: var(--fs-12); color: var(--text-3); }
.spec-sq { width: 72px; height: 72px; border: 1px solid var(--line); background: var(--surface); }
.spec-bar { background: var(--brand-soft-2); box-shadow: inset 0 0 0 1px var(--brand-line); }

.g-role { grid-template-columns: 280px minmax(0, 1fr); }
@media (max-width: 960px) { .g-role { grid-template-columns: minmax(0, 1fr); } }

/* 角色有未保存的权限修改 */
.role-item .unsaved { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--warning); }
