/* 老苟特调 · 管理后台
   深色侧栏 + 金色强调，和小程序里 #c89128 那套保持一致 */

:root {
  --gold: #c89128;
  --gold-soft: #fdf6e6;
  --gold-line: #eccf92;
  --ink: #1c1f2e;
  --ink-2: #2b3040;
  --text: #22252f;
  --muted: #8a90a2;
  --line: #e9ebf2;
  --bg: #f5f6fa;
  --white: #ffffff;
  --danger: #d9534f;
  --ok: #2e9e6b;
  --radius: 12px;
  /* 字号设置（左下角可调）：菜单字号的真实 px、内容区的整体缩放 */
  --nav-fs: 24px;
  --content-zoom: 1;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.hidden { display: none !important; }

button { font-family: inherit; }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink-2);
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}

.btn:hover { border-color: #d3d7e3; background: #fafbff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  font-weight: 600;
}
.btn.primary:hover { background: #b8821f; border-color: #b8821f; }

.btn.ghost { background: transparent; }
.btn.sm { height: 30px; padding: 0 12px; font-size: 12px; }
.btn.block { width: 100%; }
.btn.link {
  height: auto;
  padding: 0;
  border: none;
  background: none;
  color: var(--gold);
  font-size: 13px;
}
.btn.link:hover { text-decoration: underline; background: none; }
.btn.danger { color: var(--danger); border-color: #f0d2d1; }
.btn.danger:hover { background: #fdf4f4; }

/* ---------- 登录：整图舞台（霓虹马天尼 + 台面卡牌） ----------
   背景是一张 1920×1196 的整页效果图，舞台按这个比例锁死铺满视口，
   卡片、杯口烟、字顶冷气都按百分比挂在舞台上 → 与图像素一一对应。
   图上原有的那张白卡和右下角水印都已在图里抹掉，表单是真实 DOM。 */

#loginView.login-wrap {
  position: relative;
  display: block;
  height: 100vh;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #05050b;
}

.login-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100vw, calc(100vh * 1.60535));
  height: max(100vh, calc(100vw / 1.60535));
  transform: translate(-50%, -50%);
  background: #05050b url("./login-bg.jpg?v=20261120f") center / 100% 100% no-repeat;
  container-type: inline-size;
  overflow: hidden;
}

/* 右侧压暗一档，让白卡更跳。整层开关走 --veil-op，别把渐变的 0 值当关闭 */
.login-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(5, 5, 12, 0) 38%,
    rgba(5, 5, 12, .18) 72%,
    rgba(5, 5, 12, .32) 100%);
  opacity: var(--veil-op, 1);
  pointer-events: none;
  z-index: 1;
}

/* 杯口动态烟：容器宽高归零，基线钉在图上杯口 */
.glass-smoke {
  position: absolute;
  left: 25.4%;
  top: 36.6%;
  width: 0;
  height: 0;
  z-index: 2;
  opacity: var(--gs, 1);
  pointer-events: none;
}

.puff {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 9.6cqw;
  height: 12.4cqw;
  margin-left: -4.8cqw;
  background: url("./login-smoke.png?v=20261120f") center bottom / 100% 100% no-repeat;
  mix-blend-mode: screen;
  transform-origin: 50% 100%;
  opacity: 0;
  filter: blur(.25cqw) hue-rotate(var(--hue, 0deg)) saturate(var(--sat, 1.65)) brightness(var(--br, 1.02));
  -webkit-mask-image: linear-gradient(to top,
    rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .92) 10%, rgba(0, 0, 0, 1) 38%,
    rgba(0, 0, 0, .5) 72%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to top,
    rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .92) 10%, rgba(0, 0, 0, 1) 38%,
    rgba(0, 0, 0, .5) 72%, rgba(0, 0, 0, 0) 100%);
  animation: glass-rise var(--dur, 7.4s) linear infinite;
  animation-delay: calc(var(--i) * -1.48s);
  will-change: transform, opacity;
}

@keyframes glass-rise {
  0%   { transform: translate3d(0, 0, 0) scale(.5, .34) rotate(0deg); opacity: 0; }
  12%  { transform: translate3d(calc(var(--dx) * .16), -1.2cqw, 0) scale(.78, .68) rotate(-1deg); opacity: .5; }
  48%  { transform: translate3d(calc(var(--dx) * .5), -6cqw, 0) scale(1.04, 1.1) rotate(-3deg); opacity: .38; }
  78%  { transform: translate3d(calc(var(--dx) * .82), -10.5cqw, 0) scale(1.3, 1.42) rotate(-5deg); opacity: .2; }
  100% { transform: translate3d(var(--dx), -14.5cqw, 0) scale(1.55, 1.75) rotate(-7deg); opacity: 0; }
}

/* 字顶冷气：贴着图上 LG mixology 的字形顶部升起 */
.word-mist {
  position: absolute;
  left: 30.5%;
  top: 74.2%;
  width: 36%;
  height: 0;
  z-index: 2;
  opacity: var(--ms, 1);
  pointer-events: none;
}

.mist {
  position: absolute;
  bottom: 0;
  left: var(--x, 50%);
  width: 4.4cqw;
  height: 5.4cqw;
  margin-left: -2.2cqw;
  background: url("./login-smoke.png?v=20261120f") center bottom / 100% 100% no-repeat;
  mix-blend-mode: screen;
  transform-origin: 50% 100%;
  opacity: 0;
  filter: hue-rotate(var(--hue, 0deg)) saturate(var(--sat, 1.7)) brightness(var(--br, 1.05));
  -webkit-mask-image: linear-gradient(to top,
    rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .88) 12%, rgba(0, 0, 0, 1) 40%,
    rgba(0, 0, 0, .5) 74%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to top,
    rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .88) 12%, rgba(0, 0, 0, 1) 40%,
    rgba(0, 0, 0, .5) 74%, rgba(0, 0, 0, 0) 100%);
  animation: mist-rise var(--dur, 6.6s) cubic-bezier(.32, .06, .62, .96) infinite;
  animation-delay: calc(var(--i) * -1.1s);
  will-change: transform, opacity;
}

@keyframes mist-rise {
  0%   { transform: translate3d(0, .04cqw, 0) scale(calc(var(--sx, 1) * .6), .38); opacity: 0; }
  16%  { transform: translate3d(calc(var(--dx, 0) * .22), -.6cqw, 0) scale(calc(var(--sx, 1) * .9), 1); opacity: .56; }
  46%  { transform: translate3d(calc(var(--dx, 0) * .56), -1.6cqw, 0) scale(calc(var(--sx, 1) * 1.05), 1.28); opacity: .4; }
  76%  { transform: translate3d(calc(var(--dx, 0) * .86), -2.6cqw, 0) scale(calc(var(--sx, 1) * 1.18), 1.56); opacity: .2; }
  100% { transform: translate3d(var(--dx, 0), -3.4cqw, 0) scale(calc(var(--sx, 1) * 1.3), 1.84); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .puff, .mist { animation: none; opacity: .4; }
}

/* ---------- 登录卡：内部尺寸全用 em，跟着 cqw 一起缩放 ---------- */

#loginView .login-card {
  position: absolute;
  left: 56.4%;
  top: 10.6%;
  width: 34%;
  max-width: none;
  z-index: 3;
  padding: 1.79em 1.68em 1.37em;
  font-size: 1.72cqw;
  line-height: 1.5;
  background: #fff;
  border-radius: .95em;
  box-shadow:
    0 2.2em 4.4em rgba(0, 0, 0, .6),
    0 0 0 1px rgba(216, 180, 106, .3),
    0 0 3.2em rgba(216, 180, 106, .1);
}

#loginView .login-card .brand { display: flex; align-items: center; gap: .74em; margin-bottom: 1.26em; }

#loginView .login-card .brand-mark-img {
  flex: 0 0 auto;
  width: 2.53em;
  height: 2.53em;
  border-radius: .74em;
  object-fit: cover;
  background: #1c1f2e;
}

#loginView .login-card .brand-text h1 { margin: 0; font-size: 1em; letter-spacing: .5px; color: var(--text); }
#loginView .login-card .brand-text p { margin: .1em 0 0; font-size: .63em; color: #7b8095; letter-spacing: 2px; }

#loginView .login-card .field { display: block; margin-bottom: .74em; }
#loginView .login-card .field span { display: block; margin-bottom: .32em; font-size: .63em; color: #7b8095; }

#loginView .login-card .field input {
  width: 100%;
  height: 2.21em;
  padding: 0 .68em;
  border: 1px solid #e6e8ef;
  border-radius: .47em;
  background: #fbfbfd;
  font-size: .74em;
  color: #14161f;
  outline: none;
  transition: all .15s;
}

#loginView .login-card .field input:focus {
  border-color: #d8b46a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(200, 145, 40, .12);
}

#loginView .login-card .login-error {
  min-height: 1.25em;
  margin: .1em 0 .55em;
  font-size: .66em;
  line-height: 1.4;
  color: var(--danger);
}

#loginView .login-card .btn.primary.block {
  width: 100%;
  height: 2.32em;
  margin-top: .32em;
  padding: 0;
  border: 0;
  border-radius: .53em;
  font-size: .79em;
  font-weight: 600;
  letter-spacing: 2px;
  color: #fff;
  background: linear-gradient(140deg, #d9a63c, #b8821f);
  box-shadow: 0 .42em 1.05em rgba(184, 130, 31, .28);
}
#loginView .login-card .btn.primary.block:hover { background: linear-gradient(140deg, #e0ae45, #c08a22); }

#loginView .login-card .login-tip {
  margin: .74em 0 0;
  font-size: .63em;
  line-height: 1.7;
  color: #8b90a0;
  text-align: center;
}

#loginView .login-card .beian {
  margin: .84em 0 0;
  font-size: .6em;
  color: #a3a7b8;
  text-align: center;
}

/* ---------- 画面效果开关（左下角）：杯口烟 / 字顶冷气 / 右侧暗角 ---------- */

.fx {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.fx-panel {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 172px;
  padding: 10px 9px 8px;
  border-radius: 14px;
  background: rgba(10, 11, 20, .84);
  border: 1px solid rgba(216, 180, 106, .26);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px);
  color: #cfd3e0;
  animation: fx-in .17s ease-out;
}
.fx-panel[hidden] { display: none; }

@keyframes fx-in {
  from { opacity: 0; transform: translateY(6px) scale(.97); }
}

.fx-title {
  padding: 0 7px 6px;
  font-size: 10.5px;
  letter-spacing: 2px;
  color: rgba(216, 180, 106, .88);
}

.fx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #d3d7e3;
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
  text-align: left;
  transition: background .15s;
}
.fx-row:hover { background: rgba(255, 255, 255, .07); }
.fx-row:focus-visible { outline: 1px solid rgba(216, 180, 106, .8); outline-offset: 1px; }

.fx-sw {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  transition: background .18s;
}
.fx-sw::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #9aa0b4;
  transition: transform .18s, background .18s;
}
.fx-row[aria-checked="true"] .fx-sw { background: rgba(216, 180, 106, .9); }
.fx-row[aria-checked="true"] .fx-sw::after { transform: translateX(14px); background: #1c1f2e; }

.fx-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(216, 180, 106, .34);
  background: rgba(10, 11, 20, .78);
  color: #d8b46a;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .46);
  backdrop-filter: blur(8px);
  transition: border-color .18s, background .18s;
}
.fx-btn:hover { border-color: rgba(216, 180, 106, .72); background: rgba(24, 20, 34, .9); }
.fx-btn:focus-visible { outline: 1px solid rgba(216, 180, 106, .8); outline-offset: 2px; }
.fx-btn svg { width: 17px; height: 17px; }

/* ---------- 窄屏：退回常规布局，背景 cover，卡片居中 ---------- */

@media (max-width: 900px) {
  #loginView.login-wrap {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }
  .login-stage {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    width: 100%;
    height: auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-size: cover;
    background-position: 22% center;
    container-type: normal;
  }
  .login-stage::after { background: linear-gradient(180deg, rgba(5, 5, 12, .1), rgba(5, 5, 12, .45)); }
  /* 杯子被裁到画面外，烟对不上位置，窄屏直接关掉 */
  .glass-smoke, .word-mist { display: none; }
  #loginView .login-card {
    position: relative;
    left: auto;
    top: auto;
    width: min(86vw, 380px);
    font-size: 16px;
  }
  .fx { left: 14px; bottom: 14px; }
}

/* ---------- 布局 ---------- */

.app { display: flex; min-height: 100vh; }

.side {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: #cdd1de;
  position: sticky;
  top: 0;
  height: 100vh;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 14px 16px;
}
/* 霓虹灯招牌：侧栏顶部的「老苟特调」用暖金发光字，小字「管理后台」压在下面 */
.brand-word { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.brand-neon {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffe6a8;
  text-shadow:
    0 0 4px rgba(255, 214, 122, .9),
    0 0 12px rgba(224, 162, 48, .75),
    0 0 26px rgba(200, 130, 24, .5);
  animation: neon-breathe 3.2s ease-in-out infinite;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 3px;
  color: #9a8252;
}
@keyframes neon-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: .78; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-neon { animation: none; }
}

.nav {
  flex: 1;
  overflow-y: auto;
  padding: 4px 10px 16px;
  scrollbar-width: thin;
}

/* 一级菜单：可点击展开/收起二级项（手风琴，同时最多展开一个） */
.nav-group {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  margin-top: 6px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: var(--nav-fs);
  color: #8b90a8;
  letter-spacing: 1px;
  cursor: pointer;
  user-select: none;
  transition: background .12s, color .12s;
}
.nav-group:hover { background: rgba(255, 255, 255, .05); color: #d8b46a; }
.nav-group .g-caret {
  width: 0; height: 0;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform .15s;
  flex: 0 0 auto;
}
.nav-section.open > .nav-group { color: #d8b46a; }
.nav-section.open > .nav-group .g-caret { transform: rotate(90deg); }
.nav-group .g-title { flex: 1; min-width: 0; }
.nav-group .nav-badge { margin-left: 4px; }

/* 二级项默认收起，展开后缩进一级 */
.nav-children { display: none; padding-left: 12px; }
.nav-section.open > .nav-children { display: block; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 60px;
  padding: 0 11px;
  margin-bottom: 2px;
  border-radius: 8px;
  font-size: var(--nav-fs);
  color: #b9bece;
  cursor: pointer;
  user-select: none;
  transition: all .12s;
}

.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }

.nav-item.on {
  background: rgba(200, 145, 40, .16);
  color: #fff;
  box-shadow: inset 2px 0 0 var(--gold);
}

.nav-item .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4a5069;
  flex: 0 0 auto;
}

.nav-item.on .dot { background: var(--gold); }

.nav-item .soon {
  margin-left: auto;
  font-size: 10px;
  color: #6b7189;
  border: 1px solid #3a3f55;
  border-radius: 4px;
  padding: 0 4px;
  line-height: 15px;
}

.side-foot {
  padding: 12px 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

/* 字号设置：菜单 / 内容各一组加减按钮（6-26 数值，点完立刻生效并记住） */
.font-set {
  margin-bottom: 12px;
  padding: 9px 10px 10px;
  border: 1px solid rgba(216, 180, 106, .18);
  border-radius: 8px;
  background: rgba(216, 180, 106, .05);
}
.fs-title {
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 2px;
  color: #9a8252;
}
.fs-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.fs-label { flex: 0 0 30px; font-size: 12px; color: #8b90a8; }
.fs-step { display: flex; align-items: center; gap: 4px; flex: 1; }
.fs-step button {
  flex: 0 0 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 5px;
  background: rgba(255, 255, 255, .04);
  color: #d8b46a;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: all .12s;
}
.fs-step button:hover { color: #fff3d6; background: rgba(216, 180, 106, .18); border-color: rgba(216, 180, 106, .5); }
.fs-step button:disabled { opacity: .35; cursor: not-allowed; }
.fs-val {
  flex: 1;
  min-width: 26px;
  text-align: center;
  font-size: 12px;
  color: #e6e8f0;
  font-variant-numeric: tabular-nums;
}
.fs-unit { flex: 0 0 18px; font-size: 10px; color: #7a7f96; }

.who { margin-bottom: 9px; font-size: 12px; color: #8b90a3; line-height: 1.5; }
.who b { display: block; color: #e6e8f0; font-size: 13px; font-weight: 600; }
/* 当前登录者：头像（昵称首字圆章）+ 昵称 + 账号 + 身份 */
.who-row { display: flex; align-items: center; gap: 9px; }
.who-avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(140deg, #d9a63c, #b8821f);
  border: 1px solid rgba(255, 220, 150, .4);
  color: #fff8e6;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
}
.who-meta { min-width: 0; flex: 1; }
.who-meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-acct {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: #888ea6;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 身份标签：管理员 / 主理人 / 调酒师，一眼知道当前是谁在管 */
.who-role {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  color: #d8b46a;
  background: rgba(216, 180, 106, .12);
  border: 1px solid rgba(216, 180, 106, .28);
}

.side-foot .btn.ghost {
  color: #b9bece;
  border-color: rgba(255, 255, 255, .14);
}
.side-foot .btn.ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 24px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}

.topbar h2 { margin: 0; font-size: 16px; font-weight: 600; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.env-tag {
  font-size: 11px;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  padding: 2px 8px;
}

/* 内容字号：整个内容区等比缩放（内部 117 处固定 px 字号，逐个改成 em 不现实）。
   zoom 会让布局跟着一起放大，表格列宽、卡片间距都同步，不会只有字变大而错位。 */
.content { padding: 20px 24px 40px; zoom: var(--content-zoom); }

/* ---------- 卡片 ---------- */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.card + .card { margin-top: 16px; }

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.card-head h3 { margin: 0; font-size: 14px; font-weight: 600; }
.card-head .sub { font-size: 12px; color: var(--muted); }
.card-head .spacer { margin-left: auto; }

.card-body { padding: 16px 18px; }

/* 统计条 */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); gap: 12px; }
/* 平台总览「内容总量」固定两行，每行 4 项 */
.plat-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .plat-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.stat {
  padding: 15px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { margin-top: 5px; font-size: 24px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.stat .v small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; }

/* 工具栏 */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.search {
  height: 34px;
  width: 220px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfd;
  font-size: 13px;
  outline: none;
}

.search:focus { border-color: var(--gold-line); background: #fff; }

.seg { display: inline-flex; flex-wrap: wrap; max-width: 100%; padding: 3px; background: #f2f3f8; border-radius: 8px; row-gap: 3px; }

.seg button {
  height: 26px;
  padding: 0 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
}

.seg button.on { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 22, 33, .1); }

/* ---------- 表格 ---------- */

.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }

thead th {
  padding: 11px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: #fafbfd;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f2f3f8;
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fcfcfe; }

.mono { font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.nowrap { white-space: nowrap; }

.who-cell { display: flex; align-items: center; gap: 9px; }

.avatar {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.who-cell .name { font-weight: 500; color: var(--ink); }
.who-cell .uid { font-size: 11px; color: #b3b8c6; }

.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 5px;
  font-size: 11.5px;
  line-height: 19px;
  white-space: nowrap;
}

.tag.bartender { background: var(--gold-soft); color: #9a6f16; border: 1px solid var(--gold-line); }
.tag.user { background: #f1f3f9; color: #6b7189; border: 1px solid #e4e7f0; }
.tag.admin { background: #eef4ff; color: #3b6fd4; border: 1px solid #d3e2fb; }
.tag.on { background: #edf8f2; color: var(--ok); border: 1px solid #cfeadd; }
.tag.off { background: #f4f5f9; color: #9aa0b2; border: 1px solid #e9ebf2; }

.row-actions { display: flex; gap: 10px; align-items: center; white-space: nowrap; }

/* 侧栏待办角标（现在只用于「申请审核」） */
.nav-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* 表格里的长文本列（申请说明、简介）：限宽换行，别把表格撑爆 */
.note-cell { max-width: 320px; line-height: 1.6; word-break: break-word; }
.imgs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* 行内告警：申请通过了但账号角色没升上去这类「假成功」 */
.warn-sm {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--danger);
  line-height: 1.4;
}

/* 生成邀请码的行内表单：数量 + 备注 + 按钮排一行 */
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.inline-form label { display: block; font-size: 12px; color: var(--muted); }
.inline-form label.grow { flex: 1 1 240px; min-width: 200px; }
.inline-form label input {
  display: block;
  width: 100%;
  height: 34px;
  margin-top: 6px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfd;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  box-sizing: border-box;
}
.inline-form label:first-child input { width: 92px; }
.inline-form label input:focus { border-color: var(--gold-line); background: #fff; }

.empty { padding: 46px 0; text-align: center; color: var(--muted); font-size: 13px; }

/* 占位 */
.soon-box {
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
}

.soon-box .badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: #9a6f16;
  font-size: 12px;
}

.soon-box h3 { margin: 0 0 8px; font-size: 15px; color: var(--ink-2); }
.soon-box p { margin: 0; font-size: 13px; line-height: 1.8; }

/* ---------- 弹层 / 提示 ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 22, 33, .45);
}

.modal-card {
  width: 100%;
  max-width: 400px;
  padding: 24px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .28);
}

.modal-card h3 { margin: 0 0 8px; font-size: 15px; }
.modal-card p { margin: 0; font-size: 13.5px; color: #5c6376; line-height: 1.7; }
.modal-input {
  width: 100%;
  min-height: 74px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.6;
  resize: vertical;
  box-sizing: border-box;
}
.modal-input:focus { outline: none; border-color: var(--gold-line); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 120;
  max-width: 80vw;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(28, 31, 46, .94);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.toast.bad { background: #b8433f; }

/* ---------- 窄屏 ---------- */

@media (max-width: 860px) {
  .side { flex-basis: 62px; }
  .side-brand .brand-word, .nav-item span.txt, .side-foot .who, .side-foot .font-set { display: none; }
  /* 窄屏下二级项仍按分组收起，一级菜单缩成一个居中的箭头按钮可点 */
  .nav-group { justify-content: center; padding: 0; }
  .nav-group .g-title, .nav-group .nav-badge { display: none; }
  .nav-children { padding-left: 0; }
  .nav-item { justify-content: center; padding: 0; }
  .nav-item .soon, .nav-item .nav-badge { display: none; }
  .side-foot { padding: 10px; }
  .side-foot .btn { font-size: 0; padding: 0; }
  .content { padding: 14px; }
  .topbar { padding: 0 14px; }
}

/* ================= 概览：我的总览 ================= */

.mine-head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 14px;
}

.mine-head h3 { margin: 0; font-size: 15px; }
.mine-head p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.mine-actions { margin-left: auto; display: flex; gap: 8px; }

.mine-top {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 16px;
}

.carousel {
  position: relative;
  height: 268px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, #2b3040, #1a1d2b);
}

.slides { display: flex; height: 100%; transition: transform .5s cubic-bezier(.4, .2, .2, 1); }
.slide { flex: 0 0 100%; height: 100%; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.slide-ph {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #8890a8;
  font-size: 14px;
  text-align: center;
  line-height: 1.8;
}
.slide-ph span { font-size: 12px; color: #6b7189; }

.slide-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 18px 14px;
  background: linear-gradient(transparent, rgba(15, 17, 26, .82));
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.slide-meta b { font-size: 15px; }
.slide-meta span { font-size: 12px; color: #d6d9e4; }

.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(20, 22, 33, .48);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s;
}
.carousel:hover .car-btn { opacity: 1; }
.car-btn.prev { left: 12px; }
.car-btn.next { right: 12px; }

.car-dots {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 6px;
}
.car-dot {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .42);
  cursor: pointer;
  transition: all .2s;
}
.car-dot.on { width: 18px; background: #fff; }

.car-tag {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(20, 22, 33, .5);
  color: #fff;
  font-size: 11.5px;
  backdrop-filter: blur(4px);
}

.mine-side { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 12px; }

.mini {
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mini .k { font-size: 12px; color: var(--muted); }
.mini .v { font-size: 24px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.mini .v small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 3px; }
.mini .s { font-size: 11.5px; color: #a4a9ba; margin-top: 2px; }

.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.grid2 .card + .card { margin-top: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.chip {
  padding: 2px 9px;
  border-radius: 6px;
  background: #f4f5f9;
  border: 1px solid #e9ebf2;
  font-size: 12px;
  color: #5c6376;
}
.chip b { color: var(--gold); margin-left: 2px; }

.lines { display: flex; flex-direction: column; gap: 8px; }
.line { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.line span { color: var(--ink-2); }
.line em { margin-left: auto; font-style: normal; font-size: 11.5px; color: #a4a9ba; }
.line .dotg {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-line); flex: 0 0 auto;
}
.muted-sm { font-size: 12.5px; color: #a4a9ba; }

/* ---- 概览：平台概览 / 账户总览 两个分区 ---- */

.ov-sec { margin-bottom: 26px; }
.ov-sec:last-child { margin-bottom: 0; }

.ov-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 13px; }
.ov-h h3 {
  margin: 0; font-size: 15px; font-weight: 600; color: var(--ink);
  padding-left: 10px; border-left: 3px solid var(--gold);
}
.ov-h span { font-size: 12.5px; color: var(--muted); }
.ov-h .mine-actions { margin-left: auto; display: flex; gap: 8px; align-self: center; }

/* 概览顶部：酒单框 / 酒库框，每框里并排「个人」和「公共」两个小图框 */
.ov-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.ov-show-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  min-width: 0;
}
.ov-show-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f1f5;
}
.ov-show-h h3 {
  margin: 0; font-size: 14px; font-weight: 600; color: var(--ink);
  padding-left: 9px; border-left: 3px solid var(--gold);
}
.ov-show-h .btn { margin-left: auto; }
.ov-show-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ov-car-wrap { min-width: 0; }
.ov-car-wrap .carousel.sq { aspect-ratio: 16 / 10; height: auto; }
.ov-car-wrap .car-tag { font-size: 11px; left: 8px; top: 8px; padding: 2px 7px; }
.ov-car-wrap .slide-meta { padding: 20px 10px 8px; }
.ov-car-wrap .slide-meta b { font-size: 12.5px; }
.ov-car-wrap .slide-meta span { font-size: 11px; }
.ov-car-wrap .car-dots { right: 8px; bottom: 8px; }
.ov-car-wrap .car-btn.prev { left: 6px; }
.ov-car-wrap .car-btn.next { right: 6px; }
.ov-pub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
  min-height: 26px;
  align-items: center;
}
.ov-pub-tabs .chip-btn { padding: 2px 8px; font-size: 11.5px; }
.ov-pub-tabs .sub { font-size: 11.5px; }

/* 卡片列表：定高上下滚动，图 1:1、图高 = 卡片高度的 90%，名称行与图同宽 */
.ov-scroll {
  max-height: 428px;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: flex-start;
  padding: 2px 6px 2px 2px;
}
.ov-scroll::-webkit-scrollbar { width: 8px; }
.ov-scroll::-webkit-scrollbar-thumb { background: #dcdfe8; border-radius: 4px; }
.ov-scroll::-webkit-scrollbar-thumb:hover { background: #c8ccd9; }

.ov-card {
  /* 一张卡的尺寸全部由 --row 推出来：宽 = 图宽 + 左右边框，图高 = 行高的 90%，
     名称行吃掉剩下的高度，于是「图 1:1」「图高 = 行高 90%」「名称行与图同宽」三条同时成立 */
  --row: 176px;
  width: calc(var(--row) * 0.9 + 2px);
  height: var(--row);
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .18s, transform .18s;
}
.ov-card:hover { box-shadow: 0 6px 18px rgba(28, 32, 48, .1); transform: translateY(-1px); }
.ov-card .pic {
  display: block;
  width: 100%;
  height: calc(var(--row) * 0.9);
  flex: 0 0 auto;
  background: #f2f3f7;
  object-fit: cover;
}
.ov-card .pic.ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #c3c7d4;
}
.ov-card .nm {
  flex: 1 1 auto;
  width: 100%;
  padding: 0 8px;
  height: calc(var(--row) * 0.1 - 2px);
  line-height: calc(var(--row) * 0.1 - 2px);
  font-size: 12px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ov-empty { padding: 40px 0; width: 100%; text-align: center; font-size: 12.5px; color: var(--muted); }
.ov-empty .btn.link { margin-left: 4px; }

/* ================= 通用表格补充 ================= */

.card-body.tools { padding: 13px 18px; border-bottom: 1px solid var(--line); }
.toolbar .spacer { margin-left: auto; }
.toolbar .sub { font-size: 12px; color: var(--muted); }
.toolbar.acts { margin-top: 11px; }
.toolbar.acts .btn { height: 32px; }

.thumb {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  background: #f2f3f8;
}
.thumb.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #b3b8c6;
  border: 1px dashed #dde0e9;
}

.cell-strong { font-weight: 500; color: var(--ink); }
.cell-muted { color: #7d8398; }

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

/* ================= 表单 ================= */

.modal-card.wide {
  max-width: 780px;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 18px;
}
.modal-card.wide h3 { flex: 0 0 auto; }
.modal-card.wide .modal-actions { flex: 0 0 auto; }

.form-grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 14px 0 4px;
  padding-right: 4px;
}

.fm { display: block; }
.fm.full { grid-column: 1 / -1; }
.fm.grow { flex: 1 1 220px; }
.fm span { display: block; margin-bottom: 5px; font-size: 12px; color: var(--muted); }

.fm input,
.fm select,
.fm textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfd;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: all .15s;
}
.fm textarea { resize: vertical; line-height: 1.6; }
.fm input:focus,
.fm select:focus,
.fm textarea:focus {
  border-color: var(--gold-line);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(200, 145, 40, .12);
}

.feat-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.feat-form .btn { height: 38px; }

.pwd-form { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.pwd-tip { min-height: 18px; font-size: 12.5px; color: var(--danger); }

.hint {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fbfbfd;
  border: 1px solid #f0f1f6;
  font-size: 12.5px;
  color: #7d8398;
  line-height: 1.75;
}

.notice {
  margin-bottom: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: #8a6212;
  font-size: 12.5px;
  line-height: 1.7;
}

/* ================= 权限 ================= */

.perm { display: flex; flex-direction: column; gap: 16px; }

.perm-state {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #f6f7fb;
  border: 1px solid var(--line);
}
.perm-state.on { background: #f2faf6; border-color: #cfeadd; }

.perm-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c3c8d6;
  box-shadow: 0 0 0 5px rgba(195, 200, 214, .18);
}
.perm-state.on .perm-dot { background: var(--ok); box-shadow: 0 0 0 5px rgba(46, 158, 107, .16); }

.perm-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.perm-desc { margin-top: 3px; font-size: 12.5px; color: #7d8398; line-height: 1.7; }
.perm-btn { margin-left: auto; }

/* 概览页「个人账户情况」固定两行，每行 4 项（放在 .perm-grid 之后以覆盖） */
.perm-grid.acct-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .perm-grid.acct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.kv {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfbfd;
}
.kv span { display: block; font-size: 12px; color: var(--muted); }
.kv b { display: block; margin-top: 4px; font-size: 14px; color: var(--ink); }

/* ================= 收藏 ================= */

.fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.fav {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.fav-top { display: flex; gap: 12px; }
.fav img,
.fav-ph {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 20px;
  font-weight: 600;
}
.fav-body { min-width: 0; flex: 1 1 auto; }
.fav-name { font-size: 13.5px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-sub { margin-top: 2px; font-size: 12px; color: #8a90a2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-foot { margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fav-x { margin-left: auto; font-size: 11.5px; }

/* ================= 调酒技能 ================= */

.chips.cats { gap: 8px; }
.chip-btn {
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  color: #5c6376;
  font-size: 12.5px;
  cursor: pointer;
  transition: all .15s;
}
.chip-btn:hover { border-color: var(--gold-line); }
.chip-btn.on { background: var(--gold); border-color: var(--gold); color: #fff; }

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.skill {
  padding: 15px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.skill-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.skill-head b { font-size: 13.5px; color: var(--ink); }
.skill-brief { margin: 0 0 9px; font-size: 12.5px; color: #6b7189; line-height: 1.7; }
.skill-points { margin: 0; padding-left: 17px; display: flex; flex-direction: column; gap: 5px; }
.skill-points li { font-size: 12.5px; color: #4d5468; line-height: 1.65; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }

/* ================= 用户手册 ================= */

.manual-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.manual-head .spacer { margin-left: auto; }
.manual-head .btn { text-decoration: none; }

.manual-body { max-width: 900px; }
.man-hint {
  margin-bottom: 16px;
  padding: 10px 13px;
  border-radius: 8px;
  background: #fbfbfd;
  border-left: 3px solid var(--gold-line);
  font-size: 12.5px;
  color: #7d8398;
  line-height: 1.75;
}
.man-sec { padding: 14px 0; border-top: 1px solid #f2f3f8; }
.man-sec:first-of-type { border-top: none; padding-top: 0; }
.man-sec h3 { margin: 0 0 8px; font-size: 14px; color: var(--ink); }
.man-sec h4 { margin: 12px 0 5px; font-size: 13px; color: var(--ink-2); }
.man-sec p { margin: 6px 0; font-size: 13px; color: #4d5468; line-height: 1.8; }
.man-sec ul { margin: 6px 0; padding-left: 20px; }
.man-sec li { font-size: 13px; color: #4d5468; line-height: 1.8; }

/* ================= 窄屏补充 ================= */

@media (max-width: 1100px) {
  .mine-top { grid-template-columns: 1fr; }
  .mine-side { grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid2 { grid-template-columns: 1fr; }
  .ov-showcase, .ov-show-pair { grid-template-columns: 1fr; }
}

.perm-card { max-width: 900px; }

/* ---------- 列宽手动调节 ---------- */

thead th { position: relative; }
thead th .col-grip {
  position: absolute;
  top: 0;
  right: -4px;
  width: 9px;
  height: 100%;
  cursor: col-resize;
  z-index: 2;
}
thead th .col-grip::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 24%;
  width: 1px;
  height: 52%;
  background: #e4e7f0;
  transition: background .12s;
}
thead th:hover .col-grip::after { background: var(--gold); }
body.col-resizing { cursor: col-resize; user-select: none; }
body.col-resizing thead th .col-grip::after { background: var(--gold); }

/* ---------- 公共酒单：四个列表名 ---------- */

.name-list { display: flex; flex-direction: column; gap: 10px; }
.name-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.name-row:last-child { border-bottom: none; }
.name-key { flex: 0 0 240px; display: flex; flex-direction: column; gap: 2px; }
.name-key b { font-size: 14px; }
.name-key .sub { font-size: 12px; color: var(--muted); }
.name-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  background: var(--white);
  color: var(--text);
}
.name-input:focus { outline: none; border-color: var(--gold-line); box-shadow: 0 0 0 3px var(--gold-soft); }
.name-n { flex: 0 0 64px; text-align: right; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.name-actions { margin-top: 18px; display: flex; gap: 10px; }

/* ---------- 便利店调酒（只读卡片） ---------- */

.cvs-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
}
.cvs-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cvs-pic { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #f2f3f7; }
.cvs-pic.ph { display: flex; align-items: center; justify-content: center; font-size: 30px; color: #c3c7d4; }
.cvs-name { padding: 9px 12px 0; font-weight: 600; font-size: 13.5px; }
.cvs-meta { padding: 2px 12px 0; font-size: 12px; color: var(--gold); }
.cvs-items { padding: 5px 12px 12px; font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ---------- 今日特调：日历 ---------- */

.cal-nav { display: flex; gap: 8px; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head { margin-bottom: 8px; }
.cal-h { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0; }
.cal-grid { gap: 8px; }
.cal-cell {
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 8px;
  background: var(--white);
  cursor: pointer;
  transition: border-color .12s, box-shadow .12s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cal-cell:hover { border-color: var(--gold-line); box-shadow: 0 2px 10px rgba(200, 145, 40, .12); }
.cal-cell.blank { background: transparent; border: 1px dashed #eef0f6; cursor: default; }
.cal-cell.blank:hover { box-shadow: none; border-color: #eef0f6; }
.cal-cell.today { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft); }
.cal-cell.has { background: linear-gradient(180deg, #fffdf7, #ffffff); }
.cal-d { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-d i {
  font-style: normal;
  font-size: 10.5px;
  color: #fff;
  background: var(--gold);
  border-radius: 4px;
  padding: 0 4px;
}
.cal-body { display: flex; align-items: center; gap: 7px; min-width: 0; }
.cal-thumb { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 6px; object-fit: cover; }
.cal-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12.5px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-none { font-size: 12px; color: #c3c7d4; }
.cal-months { padding: 10px 18px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* ---------- 我的游戏设置 ---------- */

.mg-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mg-head .btn { margin-left: auto; }
.pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}
.pick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: border-color .12s, background .12s;
}
.pick:hover { border-color: var(--gold-line); }
.pick.on { border-color: var(--gold); background: var(--gold-soft); }
.pick-name { font-size: 13px; color: var(--text); }
.pick-tag { font-size: 11.5px; color: var(--muted); }
.mg-foot { margin-top: 16px; display: flex; align-items: center; gap: 12px; }

/* ================= 管理员名单 / 我的资料 / 账号同步 ================= */

.note-box {
  padding: 11px 14px;
  border-radius: 8px;
  background: #fbfbfd;
  border-left: 3px solid var(--gold-line);
  font-size: 12.5px;
  line-height: 1.8;
  color: #6b7189;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 4px 16px;
}
.profile-head .name { font-size: 16px; font-weight: 600; color: var(--ink); }
.profile-head .uid { font-size: 12px; color: var(--muted); margin-top: 2px; }
.profile-head .btn { margin-left: auto; }

.avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #c3c8d6;
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  object-fit: cover;
  box-shadow: 0 0 0 5px rgba(195, 200, 214, .18);
}

.kv {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfbfd;
}
.kv span { display: block; font-size: 12px; color: var(--muted); }
.kv b { display: block; margin-top: 4px; font-size: 14px; color: var(--ink); font-weight: 600; }

.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }

.card-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.7;
}

.sync-result {
  padding: 10px 13px;
  border-radius: 8px;
  background: var(--gold-soft, #fff7e8);
  border: 1px solid var(--gold-line, #f0d9a8);
  font-size: 13px;
  color: #8a6a1f;
}

/* 可点击的单元格（主理人页「六位序号」：点数字直接改编号） */
.cell-edit { cursor: pointer; }
.cell-edit:hover { color: #c9962b; text-decoration: underline; }

/* ICP 备案号：管局要求展示在首页底部并链接工信部。config.js 的 icp 为空时不渲染。 */
.beian {
  margin: 18px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.beian a { color: inherit; text-decoration: none; }
.beian a:hover { color: var(--gold); text-decoration: underline; }
/* 主界面备案栏：固定在视口底部的一条底栏，页面内容再多也始终能看到备案号。
   放在 .main（flex column）内，用 sticky bottom 贴底；左侧让开 260px 侧栏。 */
#beianMain {
  position: sticky;
  bottom: 0;
  z-index: 4;
  margin: auto 0 0;
  padding: 10px 24px;
  background: var(--white);
  border-top: 1px solid var(--line);
  text-align: center;
}
/* 公安备案：图标 + 文字成组，和 ICP 之间用分隔符隔开 */
.beian-sep { margin: 0 8px; color: var(--line, #5a5f70); }
.beian-ga { display: inline-flex; align-items: center; gap: 5px; }
.beian-icon { width: 16px; height: 16px; display: inline-block; vertical-align: text-bottom; }

/* ===== 图片字段：文本框 + 上传 + 预览（通用表单） ===== */
.img-field .img-row { display: flex; align-items: center; gap: 8px; }
.img-preview {
  width: 44px; height: 44px; flex: 0 0 44px; object-fit: cover;
  border: 1px solid var(--line); border-radius: 8px; background: #f3f4f8;
}
.img-preview.ph { background: #eef0f5; }
.img-field .img-row input { flex: 1 1 auto; min-width: 0; }
.img-field .img-row .btn { flex: 0 0 auto; white-space: nowrap; }

/* ===== 批量新增弹层 ===== */
.batch-card {
  max-width: 1180px; width: 96vw; max-height: 90vh;
  display: flex; flex-direction: column; padding: 22px 24px 18px;
}
.batch-card h3 { flex: 0 0 auto; }
.batch-tip { flex: 0 0 auto; margin: 4px 0 12px !important; font-size: 12.5px !important; }
.batch-tools { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.batch-progress { margin-left: auto; font-size: 12.5px; color: var(--gold, #a97b1e); font-weight: 600; }
.batch-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.batch-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.batch-table th,
.batch-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: left; vertical-align: middle; }
.batch-table th {
  position: sticky; top: 0; z-index: 2; background: #faf6ec; color: #6a5b3a;
  font-weight: 600; white-space: nowrap;
}
.batch-table th i { color: var(--danger, #b8433f); font-style: normal; }
.batch-table .bc-no { width: 44px; text-align: center; color: var(--muted); position: relative; }
.batch-del {
  display: block; margin: 2px auto 0; width: 18px; height: 18px; line-height: 16px;
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
  color: var(--muted); cursor: pointer; font-size: 13px; padding: 0;
}
.batch-del:hover { color: var(--danger, #b8433f); border-color: var(--danger, #b8433f); }
.batch-table input[type=text],
.batch-table input[type=number],
.batch-table select {
  width: 100%; min-width: 86px; padding: 6px 8px; border: 1px solid var(--line);
  border-radius: 6px; background: #fbfbfd; font: inherit; font-size: 12.5px;
  color: var(--text); outline: none; box-sizing: border-box;
}
.batch-table input:focus,
.batch-table select:focus { border-color: var(--gold-line); background: #fff; }
.batch-table .bc-imgcol { min-width: 190px; }
.bc-img { display: flex; align-items: center; gap: 5px; }
.bc-thumb { width: 30px; height: 30px; flex: 0 0 30px; object-fit: cover; border: 1px solid var(--line); border-radius: 5px; background: #f3f4f8; }
.bc-thumb.ph { background: #eef0f5; }
.bc-img .btn { flex: 0 0 auto; padding: 0 7px; }
.bc-img input { flex: 1 1 auto; min-width: 70px !important; }
.batch-table tr.bc-ok { background: rgba(60, 150, 80, .10); }
.batch-table tr.bc-fail { background: rgba(184, 67, 63, .12); }

/* 单子项分组：内容提升到一级，样式对齐一级菜单（不需要展开箭头） */
.nav-item.nav-flat {
  height: 54px;
  margin-top: 6px;
  color: #b9bece;
}
.nav-item.nav-flat .txt { flex: 1; min-width: 0; }
