* { box-sizing: border-box; margin: 0; padding: 0; }

/* 全站字体统一：Inter（CDN 引入）+ 系统回退；表单控件一并继承 */
button, input, select, textarea, optgroup, option { font-family: inherit; }
input::-webkit-inner-spin-button, input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

:root {
  /* 主字体 Inter（CDN 引入，见 index.html）；加载不到时逐级回落到系统 UI 字体，
     中文最终由系统黑体接管，不影响可读性 */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas,
    'Liberation Mono', 'Courier New', monospace;
  --brand: #2f6bff;
  --brand-2: #6a5cff;
  --brand-grad: linear-gradient(120deg, #2f6bff 0%, #6a5cff 100%);
  --brand-soft: rgba(47, 107, 255, 0.12);
  --ok: #12b76a;
  --err: #f04438;
  --warn: #f79009;
  --fg: #24303f;
  --fg-2: #62708a;
  --fg-3: #9aa5b8;
  --line: #e9edf5;
  --shadow: 0 12px 36px rgba(36, 48, 63, 0.08);
  --mask: rgba(15, 23, 38, 0.55);
  /* 玻璃拟态 tokens（移植自参考项目设计系统） */
  --app-bg: #eef1f8;
  --app-border: #e9edf5;
  --app-radius: 12px;
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-blur: blur(24px) saturate(160%);
  --glass-shadow: 0 12px 36px rgba(36, 48, 63, 0.08);
}

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  /* 柔光背景：底色 + 多层径向渐变，参考项目同款 */
  background-color: var(--app-bg);
  background-image:
    radial-gradient(46rem 32rem at 10% -8%, rgba(47, 107, 255, 0.26), transparent 66%),
    radial-gradient(38rem 30rem at 92% 2%, rgba(106, 92, 255, 0.24), transparent 64%),
    radial-gradient(40rem 34rem at 76% 82%, rgba(56, 189, 248, 0.2), transparent 66%),
    radial-gradient(42rem 30rem at 2% 88%, rgba(47, 107, 255, 0.16), transparent 68%),
    radial-gradient(34rem 26rem at 52% 46%, rgba(138, 92, 246, 0.1), transparent 72%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}
#app { width: 100%; min-height: 100vh; display: flex; flex-direction: column; }
.page { width: 100%; display: flex; justify-content: center; }

/* 全局隐藏滚动条（沿用 Tato 系列硬标准） */
*::-webkit-scrollbar { width: 0; height: 0; display: none; }
* { scrollbar-width: none; -ms-overflow-style: none; }

/* ============ 通用控件 ============ */
button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  background: var(--brand-grad); color: #fff; font-weight: 600; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.15s, background 0.15s, color 0.15s;
  box-shadow: 0 6px 16px rgba(91, 108, 255, 0.35);
  white-space: nowrap; user-select: none; font-family: inherit; font-size: 14px;
}
button.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(91, 108, 255, 0.45); }
button.btn:active { transform: translateY(0) scale(0.98); }
button.btn[disabled] { opacity: 0.55; pointer-events: none; }
button.btn.plain { background: #fff; color: var(--fg-2); border-color: var(--line); box-shadow: none; }
button.btn.plain:hover { color: var(--fg); background: #fbfbff; }
button.btn.sm { height: 30px; padding: 0 12px; border-radius: 8px; font-size: 13px; }
button.btn.lg { height: 46px; padding: 0 28px; border-radius: 12px; font-size: 15px; }
button.btn.grow { flex: 1; }

.field { margin-bottom: 16px; }
.field > label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--fg-2); }
.field .req::after { content: ' *'; color: var(--err); }
.input {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--fg);
  font-family: inherit; font-size: 14px; transition: border-color 0.15s, box-shadow 0.15s;
}
select.input { cursor: pointer; }
.input:hover { border-color: var(--fg-3); }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); outline: none; }
.input::placeholder { color: var(--fg-3); }
.input.mono { font-family: inherit; font-size: 13px; }

.muted { color: var(--fg-2); font-size: 13px; line-height: 1.7; }
.ok { color: #16a37a; font-size: 13px; margin: 8px 0; }
.err { color: var(--err); font-size: 13px; margin: 8px 0; }

/* ============ 安装向导外壳 ============ */
.wiz-root {
  position: fixed; inset: 0; z-index: 30;
  display: flex; padding: 28px 20px; overflow: auto;
  background-color: var(--app-bg);
  background-image:
    radial-gradient(46rem 32rem at 10% -8%, rgba(47, 107, 255, 0.26), transparent 66%),
    radial-gradient(38rem 30rem at 92% 2%, rgba(106, 92, 255, 0.24), transparent 64%),
    radial-gradient(40rem 34rem at 76% 82%, rgba(56, 189, 248, 0.2), transparent 66%),
    radial-gradient(42rem 30rem at 2% 88%, rgba(47, 107, 255, 0.16), transparent 68%);
  background-repeat: no-repeat;
}
.blobbox { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; animation: float 9s ease-in-out infinite alternate; }
.b1 { width: 420px; height: 420px; background: radial-gradient(#8b9bff, transparent 70%); top: -140px; left: -100px; }
.b2 { width: 380px; height: 380px; background: radial-gradient(#c4a8ff, transparent 70%); top: -60px; right: -80px; animation-delay: -3s; }
.b3 { width: 320px; height: 320px; background: radial-gradient(#9fd8ff, transparent 70%); bottom: -140px; left: 38%; animation-delay: -6s; }
@keyframes float { from { transform: translateY(0) scale(1); } to { transform: translateY(26px) scale(1.06); } }

.panel-card {
  margin: auto; width: min(1040px, 100%); height: min(680px, 100%);
  display: flex; background: #fff; border: 1px solid #e6e8f0; border-radius: 26px; overflow: hidden;
  position: relative; z-index: 1; box-shadow: 0 30px 80px rgba(67, 56, 202, 0.18);
  animation: rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* 左品牌栏 */
.brand {
  width: 352px; flex: none; position: relative; display: flex; flex-direction: column;
  padding: 34px 26px 22px; color: #fff; overflow: hidden;
  background: linear-gradient(165deg, #5b6cff 0%, #7b5cf6 55%, #9a5cff 100%);
}
.ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.16); pointer-events: none; animation: spin 26s linear infinite; }
.r1 { width: 300px; height: 300px; right: -130px; top: -80px; }
.r2 { width: 200px; height: 200px; left: -90px; bottom: 90px; border-color: rgba(255, 255, 255, 0.12); animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.brand::after {
  content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  right: -110px; bottom: -110px; background: radial-gradient(rgba(255, 255, 255, 0.22), transparent 70%); pointer-events: none;
}
.bhead { position: relative; z-index: 1; animation: rise 0.5s 0.1s ease both; }
.bhead .logo { width: 56px; height: 56px; border-radius: 16px; display: block; margin-bottom: 14px; object-fit: cover; box-shadow: 0 12px 28px rgba(20, 10, 80, 0.35); }
.wordmark { font-size: 15px; font-weight: 800; letter-spacing: 2px; color: rgba(255, 255, 255, 0.92); }
.bhead h1 { font-size: 22px; margin: 8px 0 8px; color: #fff; line-height: 1.35; font-weight: 700; }
.bhead p { color: rgba(255, 255, 255, 0.72); font-size: 12.5px; line-height: 1.7; }

.vsteps { list-style: none; margin: 26px 0 0; padding: 0; position: relative; z-index: 1; flex: 1; animation: rise 0.5s 0.18s ease both; }
.st { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; position: relative; color: rgba(255, 255, 255, 0.62); transition: all 0.32s cubic-bezier(0.34, 1.56, 0.64, 1); }
.st + .st { margin-top: 6px; }
.st:not(:last-child)::after {
  content: ''; position: absolute; left: 25px; top: 50px; width: 2px; height: calc(100% - 28px);
  background: rgba(255, 255, 255, 0.22); border-radius: 2px; transition: background 0.3s;
}
.st.fin:not(:last-child)::after { background: rgba(255, 255, 255, 0.75); }
.st .n {
  width: 26px; height: 26px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700; border: 1.5px solid rgba(255, 255, 255, 0.35); transition: all 0.3s;
}
.st .chk { width: 13px; height: 13px; }
.st.cur { background: rgba(255, 255, 255, 0.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 8px 20px rgba(20, 10, 80, 0.18); transform: translateX(4px); }
.st.cur .n { background: #fff; color: #5b6cff; border-color: #fff; box-shadow: 0 4px 12px rgba(20, 10, 80, 0.3); }
.st.fin { color: rgba(255, 255, 255, 0.92); }
.st.fin .n { background: rgba(255, 255, 255, 0.24); border-color: transparent; color: #fff; }
.st .st-lb { font-size: 13.5px; font-weight: 600; }
.st .st-ds { font-size: 11.5px; color: rgba(255, 255, 255, 0.55); margin-top: 1px; }
.st.cur .ds { color: rgba(255, 255, 255, 0.8); }
.brand footer { position: relative; z-index: 1; margin-top: 18px; font-size: 11px; color: rgba(255, 255, 255, 0.55); line-height: 1.6; }
.brand footer .ver { margin-bottom: 4px; color: rgba(255, 255, 255, 0.75); font-weight: 600; }

/* 右表单区 */
.form { flex: 1; min-width: 0; overflow-y: auto; padding: 34px 38px; background: #fff; display: flex; flex-direction: column; }

/* 步骤内容入场动画 */
.wcard { width: 100%; margin: auto; font-family: var(--font); }
.wcard > * { animation: wrise 0.45s ease both; }
.wcard > *:nth-child(1) { animation-delay: 0.05s; }
.wcard > *:nth-child(2) { animation-delay: 0.11s; }
.wcard > *:nth-child(3) { animation-delay: 0.17s; }
.wcard > *:nth-child(4) { animation-delay: 0.23s; }
.wcard > *:nth-child(5) { animation-delay: 0.29s; }
.wcard > *:nth-child(6) { animation-delay: 0.35s; }
.wcard > *:nth-child(7) { animation-delay: 0.41s; }
@keyframes wrise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* 区块头：渐变图标胶囊 + 标题 + 副标 */
.whead { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.whead .wh-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--brand-grad); color: #fff; box-shadow: 0 6px 16px rgba(91, 108, 255, 0.35); }
.whead .wh-ic svg { width: 19px; height: 19px; }
.whead .wt { font-size: 17.5px; font-weight: 700; color: #171a2b; }
.whead .wd { font-size: 12.5px; color: #8a90b8; margin-top: 2px; }

/* 提示条 */
.wiz-tip { display: flex; align-items: flex-start; gap: 10px; background: #f4f6ff; border: 1px solid #e2e7fb; border-radius: 12px; padding: 12px 14px; margin-bottom: 20px; font-size: 12.5px; color: #5a6079; line-height: 1.7; }
.wiz-tip svg { flex: none; margin-top: 2px; color: #5b6cff; }
.wiz-tip b { color: #4636d1; }

/* 分组小标题 */
.sec { display: flex; align-items: center; gap: 10px; margin: 20px 0 14px; font-size: 12px; font-weight: 600; color: #9aa1b9; letter-spacing: 1px; }
.sec::after { content: ''; flex: 1; height: 1px; background: #eef0f6; }

.wtitle { font-size: 18px; font-weight: 700; margin-bottom: 4px; color: #171a2b; }
.wsub { color: #5a6079; font-size: 13.5px; margin-bottom: 20px; line-height: 1.7; }
.wfoot { display: flex; gap: 10px; margin-top: 24px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

/* 协议区 */
.agree-box { background: linear-gradient(180deg, #f8f9ff 0%, #fff 60%); border: 1px solid #e6e8f0; border-radius: 14px; padding: 4px 18px; max-height: 320px; overflow-y: auto; }
.ag { padding: 13px 0; font-size: 13px; color: #3c425c; line-height: 1.9; }
.ag + .ag { border-top: 1px dashed #dfe4f5; }
.ag b { color: #171a2b; }
.agree-check { display: flex; align-items: center; gap: 9px; margin-top: 16px; font-size: 13.5px; font-weight: 600; color: #171a2b; cursor: pointer; }
.agree-check input { width: 16px; height: 16px; accent-color: #5b6cff; cursor: pointer; }

/* 安装方式三选一 */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mode {
  border: 1.5px solid #e6e8f0; border-radius: 13px; padding: 12px 13px; cursor: pointer;
  background: #fff; transition: 0.18s ease; text-align: left;
}
.mode:hover { border-color: #b9c2ff; background: #fafbff; }
.mode.on { border-color: #5b6cff; background: #f4f6ff; box-shadow: 0 6px 16px rgba(91, 108, 255, 0.14); }
.mode .mt { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: #171a2b; }
.mode .mt .dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #c7cbe0; flex: none; }
.mode.on .mt .dot { border-color: #5b6cff; background: radial-gradient(circle, #fff 0 2px, #5b6cff 3px 100%); }
.mode .md { font-size: 11.5px; color: #8a90b8; margin-top: 5px; line-height: 1.6; }

/* 环境信息卡 */
.envcard { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 22px; margin-bottom: 4px; background: linear-gradient(160deg, #f8f9ff, #f1f4fd); border: 1px solid #e4e8fa; border-radius: 14px; padding: 15px 18px; }
.envr { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.envr .ek { font-size: 11px; font-weight: 600; color: #9aa1b9; letter-spacing: 1px; }
.envr .ev { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #171a2b; min-width: 0; }
.envr .ev .etxt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.envr .ev.mono { font-weight: 500; font-size: 12.5px; font-family: inherit; }
.envr .ev.dim { color: #b3b9cf; font-weight: 500; }
.cpy { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1px solid #e2e6f6; background: #fff; color: #6a7093; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.15s ease; padding: 0; }
.cpy:hover { color: #4636d1; border-color: #b9c2ff; background: #f4f6ff; }
.cpy svg { width: 12px; height: 12px; }
.env-note { font-size: 12px; color: #8a90b8; line-height: 1.7; margin-top: 12px; }

/* 完成安装：待办清单 */
.dl-list { margin: 14px 0 0; background: #f8f9ff; border: 1px solid #e8ebfa; border-radius: 14px; padding: 4px 18px; }
.dl { display: flex; align-items: center; gap: 11px; padding: 13px 0; font-size: 13.5px; color: #3c425c; }
.dl + .dl { border-top: 1px dashed #dfe4f5; }
.dl .dl-ic { width: 22px; height: 22px; flex: none; border-radius: 7px; background: var(--brand-grad); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(91, 108, 255, 0.3); }
.dl .dl-ic svg { width: 11px; height: 11px; }

/* 摘要卡 */
.sumcard { background: linear-gradient(160deg, #f8f9ff, #f1f4fd); border: 1px solid #e4e8fa; border-radius: 14px; padding: 15px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 13px 22px; }
.sumcard .sr { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
/* 注意：这里必须用 smk/smv，不能复用全局 .sk/.sv——.sk 是广场骨架屏的类，
   撞名会让摘要卡标签变成 170px 高的灰块，值被挤出卡片。 */
.sumcard .smk { font-size: 11px; font-weight: 600; color: #9aa1b9; letter-spacing: 1px; }
.sumcard .smv { font-size: 13px; font-weight: 600; color: #171a2b; word-break: break-all; }

/* 圆环进度 */
.ringbox { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 0 8px; }
.ringbox svg { display: block; }
.ringbox .pct { font-size: 22px; font-weight: 700; color: #5b6cff; }
.ringbox .rt { font-size: 12.5px; color: #8a90b8; }

/* 成功标记 */
.okbox { display: flex; gap: 14px; align-items: center; }
.okring { width: 46px; height: 46px; flex: none; border-radius: 50%; background: rgba(34, 192, 138, 0.14); color: #16a37a; display: flex; align-items: center; justify-content: center; animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.okring.big { width: 64px; height: 64px; }
.okring svg { width: 26px; height: 26px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.6s 0.25s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* 初始 Token 展示 */
.tokenbox { background: #f8f9ff; border: 1px dashed #c3caff; border-radius: 14px; padding: 14px 16px; margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.tokenbox code { flex: 1; min-width: 0; word-break: break-all; font-size: 13px; font-family: inherit; color: #171a2b; }

/* 轻提示：顶部居中、白底、带下落动画 */
.ttoast {
  position: fixed; left: 50%; top: 22px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; color: var(--fg); font-size: 13.5px; font-weight: 600;
  padding: 12px 22px; border-radius: 14px; z-index: 400;
  border: 1px solid rgba(233, 237, 245, 0.9);
  box-shadow: 0 14px 40px rgba(36, 48, 63, 0.16), 0 2px 8px rgba(36, 48, 63, 0.06);
  pointer-events: none; max-width: min(560px, calc(100vw - 32px));
}
.tt-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #12b76a; box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.16); }
.ttoast.err .tt-dot { background: var(--err); box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.16); }
.ttoast.err { color: #b42318; }
.toastdrop-enter-active { animation: toastDrop 0.32s cubic-bezier(0.22, 1, 0.36, 1) both; }
.toastdrop-leave-active { animation: toastUp 0.24s ease both; }
@keyframes toastDrop {
  from { opacity: 0; transform: translateX(-50%) translateY(-18px) scale(0.96); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@keyframes toastUp {
  from { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  to   { opacity: 0; transform: translateX(-50%) translateY(-14px) scale(0.97); }
}

/* ============ 通用弹窗（替代原生 confirm / alert） ============ */
.dlg-mask {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(15, 23, 38, 0.38);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.dlg-card {
  width: 100%; max-width: 396px;
  background: #fff; border-radius: 18px; padding: 26px 26px 20px;
  box-shadow: 0 26px 70px rgba(15, 23, 38, 0.28);
  text-align: left;
}
.dlg-card.wide { max-width: 480px; }
.dlg-icon {
  width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; color: var(--brand); background: rgba(47, 107, 255, 0.11);
}
.dlg-icon.danger { color: var(--err); background: rgba(240, 68, 56, 0.11); }
.dlg-title { font-size: 17px; font-weight: 700; color: var(--fg); margin-bottom: 8px; }
.dlg-text { font-size: 13.5px; color: var(--fg-2); line-height: 1.65; margin-bottom: 4px; word-break: break-word; }
.dlg-fields { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.dlg-fields .field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--fg-2); margin-bottom: 6px; }
.dlg-err { color: var(--err); font-size: 12.5px; margin-top: 10px; }
.dlg-acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.dlg-acts .btn { min-width: 92px; }
button.btn.dangerv { background: linear-gradient(120deg, #f97066, #f04438); box-shadow: 0 6px 16px rgba(240, 68, 56, 0.34); }
.dlgfade-enter-active .dlg-card { animation: dlgIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both; }
.dlgfade-leave-active { animation: dlgMaskOut 0.18s ease both; }
.dlgfade-enter-active { animation: dlgMaskIn 0.2s ease both; }
@keyframes dlgMaskIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes dlgMaskOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes dlgIn {
  from { opacity: 0; transform: translateY(14px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
/* 头像：QQ 头像，加载失败回退首字母 */
.ad-avatar-img {
  width: 32px; height: 32px; flex: none; border-radius: 10px; object-fit: cover;
  border: 1px solid var(--line); background: #eef1f8;
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.2);
}

/* 未安装 / 授权失效 / 安装成功 三个独立页 */
.solo { margin: auto; width: min(560px, 100%); background: #fff; border: 1px solid #e6e8f0; border-radius: 22px; padding: 40px 38px; text-align: center; box-shadow: 0 30px 80px rgba(67, 56, 202, 0.16); animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.solo .slogo { width: 62px; height: 62px; border-radius: 18px; object-fit: cover; margin: 0 auto 16px; box-shadow: 0 14px 32px rgba(91, 108, 255, 0.28); display: block; }
.solo h2 { font-size: 22px; font-weight: 700; color: #171a2b; margin-bottom: 8px; }
.solo .muted { margin-bottom: 22px; }
.solo .wfoot { justify-content: center; }

@media (max-width: 920px) {
  .wiz-root { padding: 16px 12px; }
  .panel-card { flex-direction: column; height: auto; }
  .brand { width: auto; }
  .form { overflow: visible; padding: 24px 22px; }
}
@media (max-width: 560px) {
  .grid2, .envcard, .sumcard { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; }
  .form { padding: 20px 16px; }
  /* 品牌栏在小屏下压缩高度 */
  .brand { padding: 22px 18px 16px; }
  .bhead .logo { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 10px; }
  .bhead h1 { font-size: 17px; margin: 6px 0; }
  .bhead p { font-size: 11.5px; }
  .vsteps { margin-top: 14px; }
  .st { padding: 7px 10px; }
  .st .st-lb { font-size: 12.5px; }
  .st .st-ds { font-size: 10.5px; }
  .brand footer { margin-top: 12px; font-size: 10.5px; }
  /* 底部按钮组窄屏堆叠 */
  .wfoot { flex-direction: column-reverse; }
  .wfoot .btn { width: 100%; }
  .solo { padding: 30px 22px; }
  .solo h2 { font-size: 19px; }
  .wiz-tip { font-size: 12px; }
}
@media (max-width: 480px) {
  .appbar { padding: 0 12px; gap: 10px; height: 56px; }
  .appbar-logo { width: 30px; height: 30px; border-radius: 9px; }
  .appbar-name { font-size: 15px; }
  .appnav a { padding: 6px 11px; font-size: 12.5px; }
  .home-hero h1 { font-size: 26px; }
  .rline { flex-wrap: wrap; }
  .rline input { min-width: 0; }
  .al-card { padding: 28px 20px 24px; }
}

/* ---------- 应用主界面 ---------- */
.app {
  position: relative; width: 100%; align-self: stretch; min-height: 100vh;
  display: flex; flex-direction: column;
}
.app .blobbox { display: none; }

.appbar {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border); padding: 0 28px; height: 60px;
  display: flex; align-items: center; gap: 24px; position: sticky; top: 0; z-index: 20;
  box-shadow: 0 6px 22px rgba(36, 48, 63, 0.05);
}
.appbar-brand { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.appbar-logo { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; box-shadow: 0 4px 12px rgba(47, 107, 255, 0.24); }
.appbar-name {
  font-size: 17px; font-weight: 800; letter-spacing: 0.2px;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.appnav {
  display: flex; gap: 4px; margin-left: auto;
  background: rgba(255, 255, 255, 0.55); border: 1px solid var(--glass-border);
  border-radius: 999px; padding: 4px;
}
.appnav a {
  font-size: 13.5px; font-weight: 600; color: var(--fg-2); cursor: pointer; text-decoration: none;
  padding: 7px 17px; border-radius: 999px; transition: all 0.18s ease; white-space: nowrap;
}
.appnav a:hover { color: var(--brand); background: rgba(47, 107, 255, 0.1); }
.appnav a.on { color: #fff; background: var(--brand-grad); box-shadow: 0 6px 16px rgba(47, 107, 255, 0.34); }
.appmain { flex: 1; width: 100%; max-width: 880px; margin: 0 auto; padding: 36px 20px 56px; position: relative; z-index: 1; }

/* 首页 Hero */
.home-hero { text-align: center; padding: 30px 0 36px; animation: rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.66); border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--brand); font-size: 12.5px; font-weight: 700; letter-spacing: 0.3px; margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(36, 48, 63, 0.06);
}
.home-hero h1 { font-size: 42px; font-weight: 800; letter-spacing: 0.3px; color: var(--fg); line-height: 1.24; margin-bottom: 14px; }
.home-hero h1 em {
  font-style: normal; background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.home-hero .muted { font-size: 14.5px; }
.hero-chips { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero-chips span {
  padding: 7px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-border); color: var(--fg-2); font-size: 12.5px; font-weight: 600;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(36, 48, 63, 0.05);
}

/* 上传拖拽区 */
.dropzone {
  position: relative; background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 2px dashed rgba(47, 107, 255, 0.28); border-radius: 22px; padding: 54px 24px 48px; text-align: center;
  cursor: pointer; transition: all 0.2s ease; overflow: hidden;
  box-shadow: var(--glass-shadow); animation: rise 0.55s 0.16s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.dropzone::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 180px at 50% 0%, rgba(47, 107, 255, 0.12), transparent 70%);
  opacity: 0; transition: opacity 0.2s;
}
.dropzone:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 18px 44px rgba(47, 107, 255, 0.18); }
.dropzone:hover::before, .dropzone.drag::before { opacity: 1; }
.dropzone.drag { border-color: var(--brand); background: rgba(240, 245, 255, 0.82); transform: scale(1.01); }
.dz-icon {
  width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 21px; color: #fff;
  background: var(--brand-grad); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px rgba(47, 107, 255, 0.38);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dropzone:hover .dz-icon { transform: translateY(-4px) scale(1.05); }
.dz-title { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; position: relative; }
.dropzone .muted { position: relative; font-size: 13px; }
.dz-foot { display: flex; justify-content: center; margin-top: 16px; animation: rise 0.55s 0.22s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* 上传结果 */
.results { margin-top: 26px; }
.result {
  background: var(--glass-bg-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 18px; padding: 16px; display: flex; gap: 16px; margin-bottom: 14px;
  box-shadow: var(--glass-shadow); animation: rise 0.4s ease both;
}
.thumb {
  width: 96px; height: 96px; object-fit: cover; border-radius: 12px; background: #eef1f8; flex: none;
  border: 1px solid var(--line);
}
.rmeta { flex: 1; min-width: 0; }
.rline { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rline label { width: 72px; flex: none; font-size: 12px; color: var(--fg-3); font-weight: 600; }
.rline input {
  flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 12px; font-family: inherit; background: rgba(246, 248, 253, 0.9); color: var(--fg-2);
}
.rline .btn { padding: 6px 14px; font-size: 12px; flex: none; height: auto; border-radius: 8px; }
.rinfo { font-size: 12px; color: var(--fg-3); margin-top: 8px; }

.doc { background: var(--glass-bg-strong); border: 1px solid var(--glass-border); border-radius: 16px; padding: 18px 20px; font-size: 14px; line-height: 1.9; box-shadow: var(--glass-shadow); }
.doc code { background: #f2f5fb; padding: 1px 6px; border-radius: 5px; font-size: 13px; }

/* ---------- P4 API 文档页 ---------- */
.docs-wrap { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.docs-wrap .home-hero { margin-bottom: 0; }
.doc-card {
  min-width: 0; box-sizing: border-box;
  background: var(--glass-bg-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: 18px; padding: 22px 24px;
  box-shadow: var(--glass-shadow); animation: rise 0.5s 0.05s cubic-bezier(0.22,1,0.36,1) both;
}
.dc-title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; margin-bottom: 12px; color: var(--fg); }
.dc-idx { font-size: 12px; font-weight: 800; color: #fff; background: var(--brand-grad); border-radius: 7px; padding: 3px 7px; letter-spacing: 0.5px; }
.dc-desc { color: var(--fg-2); font-size: 14px; line-height: 1.8; margin-bottom: 14px; }

/* 端点到卡片 */
.ep { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; background: #fff; min-width: 0; box-sizing: border-box; }
.ep:last-child { margin-bottom: 0; }
.ep-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.method { font-size: 12px; font-weight: 800; letter-spacing: 0.5px; color: #fff; border-radius: 7px; padding: 4px 9px; }
.method.POST { background: linear-gradient(135deg, #5b6cff, #7c5cff); }
.method.GET { background: linear-gradient(135deg, #22c08a, #2bb6c4); }
.method.DELETE { background: linear-gradient(135deg, #ef5a6f, #f0936b); }
.ep-path { font-family: inherit; font-size: 14px; font-weight: 700; color: var(--fg); background: #f4f5fb; padding: 4px 9px; border-radius: 7px; }
.ep-tag { font-size: 11.5px; font-weight: 700; color: #b06a00; background: #fff4e0; border-radius: 6px; padding: 3px 8px; }
.ep-tag.free { color: var(--ok); background: #e3f9f1; }
.ep-desc { color: var(--fg-2); font-size: 13.5px; line-height: 1.8; margin: 2px 0 12px; }

/* 表格 */
.tbl { margin: 10px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tbl-cap { font-size: 12px; font-weight: 700; color: var(--fg-2); background: #f7f8fc; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { text-align: left; padding: 9px 14px; border-bottom: 1px solid #f0f1f6; vertical-align: top; }
.tbl th { font-size: 12px; color: var(--fg-2); background: #fbfbfe; font-weight: 700; }
.tbl tr:last-child td { border-bottom: none; }
.tbl td code { background: #f2f2f8; padding: 1px 6px; border-radius: 5px; font-size: 12px; font-family: inherit; }
.td-note { color: var(--fg-2); line-height: 1.6; }

/* 代码块：请求 / 响应左右分栏，长 URL 必须能换行，不能再撑破卡片 */
.ep-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px; align-items: start;
}
.req-col { margin-bottom: 0; min-width: 0; }
.ex-row { display: block; margin-top: 12px; }
.cap { font-size: 12px; font-weight: 700; color: var(--fg-2); margin-bottom: 6px; }
pre.code {
  background: #161a2e; color: #e6e9f5; border-radius: 12px; padding: 14px 16px;
  font-family: inherit; font-size: 12.5px; line-height: 1.7;
  margin: 0; max-width: 100%; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
  /* 保留缩进但允许长串折行，避免横向溢出到卡片外 */
  white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word;
  overflow-x: auto; box-sizing: border-box;
}
@media (max-width: 820px) {
  .ep-row { grid-template-columns: minmax(0, 1fr); }
}
.ex-row pre.code { margin-top: 4px; }

/* 约定列表 */
.notes { list-style: none; padding: 0; margin: 0; }
.notes li { position: relative; padding: 9px 0 9px 22px; border-bottom: 1px solid #f0f1f6; font-size: 14px; color: var(--fg-2); line-height: 1.75; }
.notes li:last-child { border-bottom: none; }
.notes li::before { content: ''; position: absolute; left: 4px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-grad); }
.notes li code { background: #f2f2f8; padding: 1px 6px; border-radius: 5px; font-size: 12.5px; font-family: inherit; }

@media (min-width: 860px) {
  .ep-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .req-col { margin-bottom: 0; }
}
@media (max-width: 640px) {
  .doc-card { padding: 18px 16px; }
  pre.code { font-size: 11.5px; }
}
.appmain .hero h1 {
  font-size: 30px; font-weight: 800; letter-spacing: 0.5px; margin-bottom: 8px;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- 图床广场 ---------- */
.sq-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.sq-head h1 { margin-bottom: 4px; }
.sq-grid { column-count: 4; column-gap: 14px; }
.sq-item { break-inside: avoid; width: 100%; margin-bottom: 14px; background: var(--glass-bg-strong); border: 1px solid var(--glass-border); border-radius: 14px; overflow: hidden; cursor: pointer; transition: 0.18s; box-shadow: 0 6px 20px rgba(36, 48, 63, 0.06); }
.sq-item:hover { border-color: rgba(47, 107, 255, 0.35); box-shadow: 0 14px 34px rgba(47, 107, 255, 0.18); transform: translateY(-3px); }
.sq-ph { position: relative; width: 100%; background: #e9edf5; overflow: hidden; }
.sq-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sq-meta { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px 2px; font-size: 12px; color: #777; }
.sq-time { padding: 0 10px 10px; font-size: 11px; color: #aaa; }
.sq-skeleton { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-top: 14px; }
.sk { height: 170px; border-radius: 14px; background: rgba(255, 255, 255, 0.66); border: 1px solid var(--glass-border); animation: skpulse 1.2s ease-in-out infinite; }
@keyframes skpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.sq-state { text-align: center; padding: 28px 0; }

/* ---------- 灯箱 ---------- */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(14, 14, 20, 0.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px 16px; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; width: 100%; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lb-spin { position: absolute; color: #bbb; font-size: 13px; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,0.1); border: none; color: #fff; cursor: pointer; border-radius: 8px; line-height: 1; }
.lb-close { top: 14px; right: 16px; width: 38px; height: 38px; font-size: 26px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 44px; height: 64px; font-size: 30px; }
.lb-nav.prev { left: 14px; }
.lb-nav.next { right: 14px; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,0.22); }
.lb-bar { flex: none; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; color: #d8d8e2; font-size: 12px; padding-top: 12px; }
.lb-bar .btn { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.25); text-decoration: none; padding: 6px 14px; height: auto; box-shadow: none; }
.lb-bar .btn:hover { background: rgba(255,255,255,0.2); color: #fff; border-color: rgba(255,255,255,0.4); }
.lb-pre { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.appfoot { text-align: center; font-size: 12px; color: var(--fg-3); padding: 20px 12px; border-top: 1px solid rgba(255,255,255,0.5); background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.af-line { line-height: 1.7; }
.af-extra { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; line-height: 1.7; opacity: .9; }
.af-icp { display: inline-block; margin-top: 6px; color: var(--fg-3); text-decoration: none; }
.af-icp:hover { color: var(--accent, #4d6bfe); text-decoration: underline; }

@media (max-width: 640px) {
  .sq-head { flex-direction: column; align-items: flex-start; }
  .sq-grid { column-count: 1; }
  .lb-nav { width: 36px; height: 52px; font-size: 24px; }
  .appbar { padding: 10px 14px; gap: 12px; flex-wrap: wrap; }
  .appnav { gap: 12px; }
  .appnav a { font-size: 13px; }
  .appmain { padding: 20px 14px 32px; }
  .home-hero { padding: 12px 0 26px; }
  .home-hero h1 { font-size: 28px; }
  .hero-chips span { padding: 5px 11px; font-size: 11.5px; }
  .hero h1 { font-size: 24px; }
  .dropzone { padding: 40px 18px 36px; }
  .dz-icon { width: 58px; height: 58px; border-radius: 17px; }
  .result { flex-direction: column; }
  .thumb { width: 100%; height: 180px; }
  .rline label { width: 60px; }
}
@media (min-width: 641px) and (max-width: 900px) { .sq-grid { column-count: 2; } }
@media (min-width: 901px) and (max-width: 1200px) { .sq-grid { column-count: 3; } }

/* ============ 后台登录（参考项目 login-card 版式） ============ */
/* 固定在视口正中：固定定位 + 100vh，任何窗口高度下都不产生页面滚动 */
.admin-login {
  position: fixed; inset: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; overflow: hidden;
}
.al-card {
  width: 100%; max-width: 400px;
  max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: 20px; padding: 36px 32px 30px;
  box-shadow: 0 24px 64px rgba(36, 48, 63, 0.14); text-align: center;
  animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.al-logo { width: 58px; height: 58px; border-radius: 16px; object-fit: cover; margin: 0 auto 14px; display: block; box-shadow: 0 12px 26px rgba(47, 107, 255, 0.28); }
.al-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--brand);
  background: rgba(47, 107, 255, 0.1); border: 1px solid rgba(47, 107, 255, 0.2);
  border-radius: 999px; padding: 5px 14px; margin-bottom: 14px;
}
.al-card h2 {
  font-size: 27px; font-weight: 800; margin-bottom: 8px; letter-spacing: 0.2px;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.al-card .muted { margin-bottom: 22px; font-size: 13px; color: var(--fg-2); }
.al-card .field { text-align: left; margin-bottom: 14px; }
.al-card .field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--fg-2); margin-bottom: 6px; }
.al-card .input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; outline: none; background: rgba(255, 255, 255, 0.86); color: var(--fg); transition: border-color .15s, box-shadow .15s, background .15s; }
.al-card .input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--brand-soft); }
.al-card .btn { margin-top: 8px; width: 100%; }
.al-back { display: block; margin-top: 18px; font-size: 13px; color: var(--fg-3); cursor: pointer; }
.al-back:hover { color: var(--brand); }

/* ============ 后台管理（侧边栏 + 顶栏 + 内容区） ============ */
/* 外壳用 fixed 铺满视口：不再依赖 body/#app 的 flex 链，
   从根上消除「被父容器撑高后整体下移 / 顶栏横穿侧边栏」这类错位。 */
.admin {
  position: fixed; inset: 0; z-index: 30;
  display: flex; flex-direction: row; align-items: stretch;
  overflow: hidden;
  background: transparent;
}

/* 侧边栏：磨砂玻璃，可折叠 */
.ad-side {
  width: 224px; flex: 0 0 224px; height: 100%;
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border-right: 1px solid var(--glass-border);
  position: relative; z-index: 3;
  transition: width 0.22s cubic-bezier(0.22, 1, 0.36, 1), flex-basis 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
.admin.collapsed .ad-side { width: 64px; flex: 0 0 64px; }

.ad-brand { height: 62px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid rgba(233, 237, 245, 0.9); overflow: hidden; }
.ad-logo { width: 32px; height: 32px; flex: none; border-radius: 9px; object-fit: cover; box-shadow: 0 4px 12px rgba(47, 107, 255, 0.24); }
.ad-brand span {
  font-size: 15.5px; font-weight: 800; white-space: nowrap;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.admin.collapsed .ad-brand span { display: none; }
.admin.collapsed .ad-brand { justify-content: center; padding: 0; }

.ad-nav { flex: 1; overflow-y: auto; padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; }
.ad-group { font-size: 11px; font-weight: 700; color: var(--fg-3); letter-spacing: 1.1px; padding: 10px 10px 6px; white-space: nowrap; }
.admin.collapsed .ad-group { display: none; }
.ad-nav a {
  display: flex; align-items: center; gap: 11px; height: 46px; padding: 0 12px; border-radius: 12px;
  font-size: 14px; font-weight: 600; color: var(--fg-2); text-decoration: none; cursor: pointer;
  transition: all 0.16s ease; white-space: nowrap; overflow: hidden; position: relative;
}
.ad-nav a svg { width: 18px; height: 18px; flex: none; }
.ad-nav a:hover { background: rgba(47, 107, 255, 0.08); color: var(--brand); }
.ad-nav a.on {
  color: var(--brand); font-weight: 700;
  background: linear-gradient(120deg, rgba(47, 107, 255, 0.18), rgba(106, 92, 255, 0.18));
  box-shadow: inset 0 0 0 1px rgba(47, 107, 255, 0.28);
}
.admin.collapsed .ad-nav a { justify-content: center; padding: 0; }
/* V2.2.9：只藏文字标签，保留图标 span（修复折叠后菜单图标全部消失） */
.admin.collapsed .ad-nav a span:not(.ad-ico):not(.ad-ico-sm) { display: none; }

.ad-side-foot { flex: none; padding: 12px 10px; border-top: 1px solid rgba(233, 237, 245, 0.9); }
.ad-side-foot .ad-user { display: flex; align-items: center; gap: 10px; padding: 6px 8px 12px; overflow: hidden; }
.ad-avatar {
  width: 32px; height: 32px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff; background: var(--brand-grad); text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.3);
}
.ad-uname { font-size: 13px; font-weight: 700; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-urole { font-size: 11px; color: var(--fg-3); white-space: nowrap; }
.admin.collapsed .ad-uname, .admin.collapsed .ad-urole { display: none; }
.admin.collapsed .ad-side-foot .ad-user { justify-content: center; padding: 6px 0 12px; }
.ad-side-foot .btn { width: 100%; }
.admin.collapsed .ad-side-foot .btn { padding: 0; width: 44px; height: 34px; margin: 0 auto; display: flex; }
.admin.collapsed .ad-side-foot .btn span { display: none; }

/* 右半区：顶栏固定高度，内容区独立滚动 */
.ad-body { flex: 1 1 auto; min-width: 0; height: 100%; display: flex; flex-direction: column; overflow: hidden; }

.ad-header {
  height: 56px; flex: 0 0 56px; display: flex; align-items: center; gap: 14px; padding: 0 22px;
  background: var(--glass-bg-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border); position: relative; z-index: 2;
  box-shadow: 0 4px 18px rgba(36, 48, 63, 0.05);
}
.ad-collapse {
  width: 32px; height: 32px; flex: none; border-radius: 9px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8); color: var(--fg-2); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: 0.15s;
}
.ad-collapse:hover { color: var(--brand); border-color: rgba(47, 107, 255, 0.35); background: #fff; }
.ad-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-3); }
.ad-crumb b { font-size: 15px; font-weight: 700; color: var(--fg); }
.ad-header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ad-hbtn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 9px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.8); color: var(--fg-2);
  font-size: 12.5px; font-weight: 600; cursor: pointer; transition: 0.15s; text-decoration: none;
}
.ad-hbtn:hover { color: var(--brand); border-color: rgba(47, 107, 255, 0.35); background: #fff; }

.ad-main { flex: 1 1 auto; padding: 24px 22px 46px; min-width: 0; min-height: 0; overflow-y: auto; }
.ad-panel { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }

/* 面板卡片 */
.panel-card2 {
  background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--app-radius); padding: 20px 22px;
  box-shadow: var(--glass-shadow);
}
.panel-head2 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.panel-head2 h3 { font-size: 16px; font-weight: 700; color: var(--fg); }
.panel-head2 .ph-sub { font-size: 12.5px; color: var(--fg-3); margin-left: auto; }

/* 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }

/* V2.2.3 概览页发现新版本弹窗 */
.ov-upd-pop {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; padding: 16px 18px;
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.12), rgba(47, 107, 255, 0.04));
  border: 1px solid rgba(47, 107, 255, 0.35); border-radius: var(--app-radius);
  animation: ovUpdIn 0.3s ease;
}
@keyframes ovUpdIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.ov-upd-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(47, 107, 255, 0.15); color: var(--brand, #2f6bff); display: flex; align-items: center; justify-content: center; }
.ov-upd-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ov-upd-body b { font-size: 14.5px; }
.ov-upd-body span { font-size: 13px; color: var(--fg-2, #555); }
.ov-upd-log { margin: 6px 0 0; padding: 10px 12px; max-height: 180px; overflow: auto; font-size: 12px; line-height: 1.6; background: var(--glass-bg, rgba(0,0,0,0.03)); border-radius: 8px; white-space: pre-wrap; word-break: break-word; }
.ov-upd-act { flex: none; display: flex; align-items: center; gap: 10px; }
.ov-upd-x { cursor: pointer; color: var(--fg-3, #999); font-size: 14px; padding: 6px; }
.ov-upd-x:hover { color: var(--fg-1, #333); }
.stat-item {
  background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--app-radius); padding: 16px 18px;
  box-shadow: var(--glass-shadow); position: relative; overflow: hidden; transition: 0.18s;
}
.stat-item:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(47, 107, 255, 0.14); }
.stat-item::after {
  content: ''; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(rgba(47, 107, 255, 0.14), transparent 70%);
}
.stat-label { font-size: 13px; color: var(--fg-2); margin-bottom: 6px; }
.stat-value { font-size: 22px; font-weight: 700; color: var(--fg); line-height: 1.25; }
.stat-value.primary {
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat-hint { font-size: 12px; color: var(--fg-3); margin-top: 4px; }

/* 键值信息表 */
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 22px; }
.kv-row { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.kv-k { font-size: 11.5px; font-weight: 700; color: var(--fg-3); letter-spacing: 0.6px; }
.kv-v { font-size: 13.5px; font-weight: 600; color: var(--fg); word-break: break-all; }

/* 状态徽章 */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.pill.ok { color: #0d8f57; background: rgba(18, 183, 106, 0.13); }
.pill.bad { color: #c03224; background: rgba(240, 68, 56, 0.13); }
.pill.warn { color: #b25e00; background: rgba(247, 144, 9, 0.15); }
.pill.dim { color: var(--fg-2); background: rgba(98, 112, 138, 0.12); }

/* 工具条（搜索 / 筛选） */
.ad-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ad-toolbar .search {
  flex: 1; min-width: 180px; height: 38px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.86); font-size: 13.5px; color: var(--fg); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.ad-toolbar .search:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: #fff; }
.seg { display: inline-flex; background: rgba(255, 255, 255, 0.62); border: 1px solid var(--glass-border); border-radius: 999px; padding: 3px; }
.seg a { font-size: 12.5px; font-weight: 600; color: var(--fg-2); padding: 6px 14px; border-radius: 999px; cursor: pointer; transition: 0.15s; }
.seg a.on { color: #fff; background: var(--brand-grad); box-shadow: 0 4px 12px rgba(47, 107, 255, 0.3); }

/* 数据表格 */
.ad-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ad-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--fg-2); padding: 10px 12px; background: rgba(246, 248, 253, 0.8); border-bottom: 1px solid var(--line); white-space: nowrap; }
.ad-table td { padding: 11px 12px; border-bottom: 1px solid rgba(233, 237, 245, 0.8); vertical-align: middle; }
.ad-table tr:last-child td { border-bottom: none; }
.ad-table tbody tr { transition: background 0.14s; }
.ad-table tbody tr:hover { background: rgba(47, 107, 255, 0.04); }
.ad-table .td-empty { text-align: center; color: var(--fg-3); padding: 34px 12px; }
.ad-table .cell-k { font-size: 12px; color: var(--fg-2); word-break: break-all; max-width: 260px; }
.ad-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 9px; background: #eef1f8; border: 1px solid var(--line); display: block; }
.row-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-btn {
  height: 28px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9); color: var(--fg-2); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: 0.15s; font-family: inherit;
}
.mini-btn:hover { color: var(--brand); border-color: rgba(47, 107, 255, 0.4); background: #fff; }
.mini-btn.danger:hover { color: var(--err); border-color: rgba(240, 68, 56, 0.4); }

/* 分页 */
.ad-pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--fg-2); }
.ad-pager .pg-btn { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,0.9); color: var(--fg-2); cursor: pointer; font-size: 15px; line-height: 1; }
.ad-pager .pg-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.ad-pager .pg-btn:not(:disabled):hover { color: var(--brand); border-color: rgba(47,107,255,0.4); }

/* 存储驱动选择 */
.st-driver { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.st-driver label {
  border: 1.5px solid var(--line); background: rgba(255, 255, 255, 0.8); border-radius: 12px;
  padding: 14px 16px; cursor: pointer; font-weight: 700; font-size: 14px; display: block; transition: 0.16s;
}
.st-driver label:hover { border-color: rgba(47, 107, 255, 0.4); background: #fff; }
.st-driver label.on { border-color: var(--brand); background: rgba(47, 107, 255, 0.06); box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.1); }
.st-driver .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); margin-right: 7px; vertical-align: 1px; }
.st-driver .ds { font-weight: 400; font-size: 12px; color: var(--fg-2); margin-top: 5px; }
.st-checks { display: flex; gap: 22px; margin-top: 10px; font-size: 13px; color: var(--fg-2); flex-wrap: wrap; }
.st-checks label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.ad-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

/* 空状态 */
.ad-empty { text-align: center; padding: 46px 16px; color: var(--fg-3); font-size: 13.5px; }
.ad-empty .ae-ic { width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; background: rgba(47, 107, 255, 0.1); color: var(--brand); }

@media (max-width: 900px) {
  .ad-main { padding: 16px 14px 36px; }
  .ad-header { padding: 0 12px; gap: 10px; }
  .ad-crumb { min-width: 0; }
  .ad-crumb b { font-size: 14px; }
  .st-driver { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .ad-table { display: block; overflow-x: auto; white-space: nowrap; }
}
@media (max-width: 640px) {
  .ad-side { position: absolute; left: 0; top: 0; height: 100%; z-index: 4; box-shadow: 0 0 0 100vmax rgba(15, 23, 38, 0.32); }
  .admin.collapsed .ad-side { box-shadow: none; }
  .stat-grid { grid-template-columns: 1fr; }
}


/* ---------- 上传队列（智能进度条） ---------- */
.dropzone.busy { pointer-events: none; }
.dropzone.busy .dz-icon { animation: dzSpin 1.1s linear infinite; }
@keyframes dzSpin { to { transform: rotate(360deg); } }
.dz-spin { display: inline-flex; }

.upq {
  margin-top: 18px; border-radius: 18px; padding: 14px 16px;
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow); animation: rise 0.35s ease both;
}
.upq-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.upq-sum { font-size: 13.5px; font-weight: 700; color: var(--fg); }
.upq-sum em { font-style: normal; color: var(--brand); }
.upq-clear {
  margin-left: auto; font-size: 12px; font-weight: 600; color: var(--fg-3);
  background: #f2f4fa; border: 1px solid var(--line); border-radius: 8px;
  padding: 4px 11px; cursor: pointer; transition: all 0.16s ease; font-family: inherit;
}
.upq-clear:hover { color: var(--brand); border-color: rgba(47, 107, 255, 0.4); background: rgba(47, 107, 255, 0.08); }
.upq-item { padding: 9px 0; border-top: 1px solid rgba(0, 0, 0, 0.055); }
.upq-item:first-of-type { border-top: none; }
.upq-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.upq-name {
  flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--fg);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.upq-pct { font-size: 12.5px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.upq-item.done .upq-pct { color: var(--ok); }
.upq-item.error .upq-pct { color: #e5484d; }
.upq-bar { height: 6px; border-radius: 99px; background: #e8ecf4; overflow: hidden; }
.upq-fill {
  height: 100%; border-radius: 99px; background: var(--brand-grad);
  transition: width 0.22s linear; box-shadow: 0 0 10px rgba(47, 107, 255, 0.45);
}
.upq-item.processing .upq-fill {
  background: linear-gradient(90deg, #8ab0ff, #2f6bff, #8ab0ff);
  background-size: 200% 100%; animation: upqFlow 1.1s linear infinite;
}
@keyframes upqFlow { to { background-position: -200% 0; } }
.upq-item.done .upq-fill { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: none; }
.upq-item.error .upq-fill { background: #e5484d; box-shadow: none; }
.upq-meta { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 11.5px; color: var(--fg-3); flex-wrap: wrap; }
.upq-meta .dot { opacity: 0.45; }
.upq-e { margin-left: auto; color: #e5484d; font-size: 11.5px; }
.upq-cancel {
  font-size: 11.5px; font-weight: 600; color: var(--fg-3); background: none; border: none;
  cursor: pointer; padding: 0 2px; font-family: inherit; text-decoration: underline;
  text-underline-offset: 2px; flex: none;
}
.upq-cancel:hover { color: #e5484d; }

/* ---------- API 文档导出按钮 ---------- */
.doc-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.da-btn {
  display: inline-flex; align-items: center; gap: 7px; font-family: inherit;
  font-size: 13px; font-weight: 700; color: #fff; cursor: pointer;
  padding: 9px 17px; border-radius: 11px; border: 1px solid transparent;
  background: var(--brand-grad); box-shadow: 0 8px 20px rgba(47, 107, 255, 0.3);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.da-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(47, 107, 255, 0.38); }
.da-btn:active { transform: translateY(0) scale(0.985); }
.da-btn.ghost {
  color: var(--fg-2); background: rgba(255, 255, 255, 0.72); border-color: var(--glass-border);
  box-shadow: 0 4px 14px rgba(36, 48, 63, 0.06);
}
.da-btn.ghost:hover { color: var(--brand); border-color: rgba(47, 107, 255, 0.4); background: #fff; }

/* 上传 IP 列 */
.cell-ip { font-variant-numeric: tabular-nums; letter-spacing: 0.2px; color: var(--fg-2); font-size: 12.5px; }


/* ============================================================
   响应式总表：前台（顶栏 / Hero / 上传 / 结果 / 广场 / 文档）
   后台的断点在下方 .ad-* 区块之后，互不干扰。
   ============================================================ */

/* 汉堡按钮：桌面端隐藏 */
.navtoggle {
  display: none; width: 40px; height: 40px; flex: none; border-radius: 11px;
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.6);
  cursor: pointer; align-items: center; justify-content: center; padding: 0;
  transition: all 0.18s ease;
}
.navtoggle span, .navtoggle span::before, .navtoggle span::after {
  content: ''; display: block; width: 17px; height: 2px; border-radius: 2px;
  background: var(--fg-2); transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.navtoggle span { position: relative; }
.navtoggle span::before { position: absolute; top: -5.5px; left: 0; }
.navtoggle span::after { position: absolute; top: 5.5px; left: 0; }
.navtoggle span.x { background: transparent; }
.navtoggle span.x::before { top: 0; transform: rotate(45deg); }
.navtoggle span.x::after { top: 0; transform: rotate(-45deg); }
.navtoggle:hover { border-color: rgba(47, 107, 255, 0.4); }

/* 平板：收紧主容器与顶栏 */
@media (max-width: 1024px) {
  .appmain { max-width: 100%; padding: 28px 18px 48px; }
  .appbar { padding: 0 18px; gap: 16px; }
  .home-hero h1 { font-size: 34px; }
}

/* 手机横屏 / 小平板：Hero 与上传区压缩 */
@media (max-width: 820px) {
  .home-hero { padding: 18px 0 24px; }
  .home-hero h1 { font-size: 29px; line-height: 1.3; }
  .home-hero .muted { font-size: 13.5px; }
  .hero-chips { gap: 8px; margin-top: 16px; }
  .hero-chips span { padding: 6px 13px; font-size: 12px; }
  .dropzone { padding: 38px 18px 34px; border-radius: 18px; }
  .dz-icon { width: 58px; height: 58px; border-radius: 17px; margin-bottom: 14px; }
  .dz-title { font-size: 15px; }
  .result { flex-direction: column; align-items: stretch; }
  .thumb { width: 100%; height: 160px; }
  .rline label { width: 62px; font-size: 11.5px; }
  .doc-card { padding: 18px 16px; border-radius: 15px; }
  .docs-wrap { gap: 14px; }
  .doc-actions { gap: 8px; }
  .da-btn { padding: 8px 13px; font-size: 12.5px; }
  .upq { padding: 12px 13px; border-radius: 15px; }
}

/* 手机：顶栏折叠为抽屉 */
@media (max-width: 700px) {
  .appbar { height: 56px; padding: 0 14px; gap: 10px; }
  .appbar-name { font-size: 15.5px; }
  .appbar-logo { width: 30px; height: 30px; border-radius: 9px; }
  .navtoggle { display: flex; margin-left: auto; }
  .appnav {
    position: absolute; top: calc(100% + 8px); right: 12px; left: auto;
    margin-left: 0; flex-direction: column; gap: 3px; padding: 8px;
    min-width: 168px; border-radius: 16px; z-index: 30;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 44px rgba(20, 30, 60, 0.18);
    transform-origin: top right; transform: scale(0.94) translateY(-6px);
    opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .appnav.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .navmask {
    display: block; position: fixed; inset: 0; z-index: 25;
    background: rgba(15, 23, 38, 0.28); animation: navmaskIn 0.2s ease both;
  }
  @keyframes navmaskIn { from { opacity: 0; } to { opacity: 1; } }
  .appnav a { padding: 11px 16px; border-radius: 11px; font-size: 14px; text-align: left; }
  .appmain { padding: 20px 13px 44px; }
  .home-hero h1 { font-size: 25px; }
  .docs-wrap .home-hero h1 { font-size: 23px; }
  .ep { padding: 13px 13px; }
  .ep-path { font-size: 12.5px; word-break: break-all; }
  .tbl { border-radius: 10px; }
  /* 小屏：表格改为逐行堆叠的卡片，彻底不需要横向滚动 */
  .tbl { overflow-x: visible; }
  .tbl table, .tbl thead, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; width: 100%; }
  .tbl thead { display: none; }
  .tbl tr { border-bottom: 1px solid #eef0f6; padding: 9px 13px; }
  .tbl tr:last-child { border-bottom: none; }
  .tbl td { border: none; padding: 3px 0; font-size: 12.5px; display: flex; gap: 8px; }
  .tbl td::before {
    content: attr(data-label); flex: 0 0 68px; color: var(--fg-3); font-weight: 600; font-size: 11.5px;
    line-height: 1.7;
  }
  .tbl td:empty { display: none; }
  .doc-actions { flex-wrap: wrap; }
  pre.code { font-size: 11.5px; padding: 12px 13px; border-radius: 10px; }
  .doc-actions { flex-wrap: wrap; }
  .da-btn { flex: 1 1 calc(50% - 8px); justify-content: center; }
}

/* 超小屏 */
@media (max-width: 480px) {
  .appmain { padding: 16px 11px 40px; }
  .home-hero h1 { font-size: 22px; }
  .hero-badge { font-size: 11.5px; padding: 6px 14px; }
  .dropzone { padding: 30px 14px 28px; }
  .dz-title { font-size: 14px; }
  .dropzone .muted { font-size: 12px; }
  .rline { flex-direction: column; align-items: stretch; gap: 4px; }
  .rline label { width: auto; }
  .rline .btn { width: 100%; }
  .docs-wrap .home-hero h1 { font-size: 20px; }
  .dc-title { font-size: 16px; }
}

/* 文档页兜底：网格/弹性子项默认 min-width:auto 会被长内容撑破，统一夹住 */
.appmain, .docs-wrap, .doc-card, .ep, .ep-row, .req-col, .ex-row { min-width: 0; }
.doc-card, .ep { overflow: hidden; }
.ep-row > *, .doc-card * { max-width: 100%; }

/* 表格兜底：容器负责滚动，表格本身不越界 */
.tbl { max-width: 100%; box-sizing: border-box; }
.tbl table { table-layout: auto; }
.tbl th, .tbl td { overflow-wrap: anywhere; }

/* ---- 版本更新 ---- */
.upd-hero { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 4px 0 18px; }
.upd-cur { flex: 1; min-width: 160px; border: 1px solid #eaecf3; border-radius: 14px; padding: 14px 16px; background: #fafbfe; }
.upd-cur.hot { border-color: rgba(77, 107, 254, 0.45); background: rgba(77, 107, 254, 0.07); }
.upd-cur-k { font-size: 12px; color: var(--fg-3); margin-bottom: 6px; }
.upd-cur-v { font-size: 20px; font-weight: 800; color: var(--fg); letter-spacing: .3px; }
.upd-cur.hot .upd-cur-v { color: #3652d9; }
.upd-arrow { font-size: 20px; color: #c9cede; font-weight: 700; }
.upd-arrow.on { color: #3652d9; }
.upd-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.upd-hint { font-size: 12.5px; color: var(--fg-3); }
.upd-hint.warn { color: #c03224; font-weight: 600; }
.upd-card { border: 1px solid #eaecf3; border-radius: 14px; padding: 16px 18px; background: #fff; margin-top: 12px; }
.upd-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; }
.upd-card-head b { font-size: 15px; color: var(--fg); }
.upd-title { font-weight: 700; color: var(--fg); margin-bottom: 8px; font-size: 14px; }
.upd-log { margin: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.75;
  color: var(--fg-2); background: #f7f8fc; border-radius: 10px; padding: 12px 14px;
  white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.upd-notice { margin-top: 10px; font-size: 12.5px; color: #b25e00; background: rgba(247, 144, 9, 0.1);
  border-radius: 10px; padding: 10px 12px; }
.upd-file { margin-top: 10px; display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--fg-3); }
.upd-done-t { font-weight: 800; color: #0d8f57; font-size: 15px; margin-bottom: 8px; }
.upd-cmd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.upd-cmd code { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px;
  background: #f3f5fa; border-radius: 8px; padding: 8px 12px; color: var(--fg);
  white-space: pre-wrap; overflow-wrap: anywhere; }
.upd-bak { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px;
  background: #f3f5fa; border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .upd-hero { gap: 10px; }
  .upd-cur { min-width: 0; flex: 1 1 100%; }
  .upd-arrow { display: none; }
}
/* ---- 在线更新进度浮层 ---- */
.updp-mask { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center;
  background: rgba(16, 20, 34, 0.42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); padding: 20px; }
.updp-card { width: 100%; max-width: 440px; background: #fff; border-radius: 18px; padding: 22px 24px 20px;
  box-shadow: 0 24px 60px rgba(16, 20, 34, 0.22); animation: updpIn .22s ease-out; }
@keyframes updpIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.updp-head { display: flex; align-items: center; margin-bottom: 6px; }
.updp-head h3 { font-size: 16px; font-weight: 700; color: var(--fg); }
.updp-x { margin-left: auto; width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--fg-3); border-radius: 8px; }
.updp-x:hover { background: #f1f3f8; color: var(--fg); }
.updp-stage { font-size: 13px; color: var(--fg-2); margin: 8px 0 12px; }
/* V2.2.9 更新阶段步骤条 + 剩余时间 */
.updp-steps { display: flex; gap: 6px; margin: 0 0 12px; }
.updp-step {
  flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 11px; color: var(--fg-3); padding: 5px 2px;
  border-radius: 8px; background: rgba(100, 116, 139, .08); white-space: nowrap;
}
.updp-step i {
  font-style: normal; flex: none; width: 15px; height: 15px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9.5px; font-weight: 700;
  background: rgba(100, 116, 139, .18); color: var(--fg-3);
}
.updp-step.cur { background: rgba(51, 85, 255, .12); color: var(--brand); font-weight: 650; }
.updp-step.cur i { background: var(--brand); color: #fff; }
.updp-step.done { color: #0d9f6e; }
.updp-step.done i { background: #10b981; color: #fff; }
.updp-step.err { color: var(--err); }
.updp-step.err i { background: var(--err); color: #fff; }
.updp-eta { color: var(--brand); font-weight: 600; }
.updp-bar { height: 10px; border-radius: 999px; background: #eef0f6; overflow: hidden; }
.updp-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #4d6bfe, #6f8bff);
  transition: width .3s ease; }
.updp-fill.err { background: linear-gradient(90deg, #f04438, #ff7a70); }
.updp-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px;
  font-size: 12.5px; color: var(--fg-3); }
.updp-pct { font-weight: 800; color: var(--fg); font-size: 14px; }
.updp-pct.err { color: #c03224; }
.updp-msg { margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 12.5px;
  background: rgba(18, 183, 106, 0.1); color: #0d8f57; overflow-wrap: anywhere; }
.updp-msg.err { background: rgba(240, 68, 56, 0.1); color: #c03224; }
.updp-foot { display: flex; justify-content: flex-end; margin-top: 16px; }
@media (max-width: 480px) {
  .updp-card { padding: 18px 16px 16px; border-radius: 14px; }
  .updp-head h3 { font-size: 15px; }
}
/* ---- 存储配置：平台卡片 ---- */
.stv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.stv-card { display: flex; align-items: flex-start; gap: 12px; text-align: left; cursor: pointer;
  border: 1.5px solid #e8eaf2; border-radius: 14px; padding: 14px 14px; background: #fff;
  transition: border-color .16s, box-shadow .16s, transform .16s; position: relative; font: inherit; color: inherit; }
.stv-card:hover { border-color: #c9d1ea; box-shadow: 0 4px 16px rgba(30, 42, 80, 0.07); }
.stv-card.on { border-color: #4d6bfe; box-shadow: 0 0 0 3px rgba(77, 107, 254, 0.12); background: #fbfcff; }
.stv-logo { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; display: flex;
  align-items: center; justify-content: center; background: #f4f6fc; }
.stv-logo svg { width: 22px; height: 22px; }
.stv-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.stv-name { font-size: 14px; font-weight: 700; color: var(--fg); display: flex; align-items: center; gap: 7px; }
.stv-tag { font-style: normal; font-size: 10.5px; font-weight: 700; color: #6b7592;
  background: #eef1f8; border-radius: 999px; padding: 1px 7px; }
.stv-desc { font-size: 12px; color: var(--fg-3); line-height: 1.55; }
.stv-check { position: absolute; top: 10px; right: 12px; font-size: 13px; font-weight: 800; color: #4d6bfe; }
@media (max-width: 640px) { .stv-grid { grid-template-columns: 1fr; } }

/* ---- 存储配置：表单与教程 ---- */
.fhint { margin: 6px 0 0; font-size: 12px; color: var(--fg-3); line-height: 1.65; }
.fhint code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px;
  background: #f2f4fa; border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }
.st-checks { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.st-checks > label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-2); cursor: pointer; }
.st-req { font-style: normal; margin-left: 7px; font-size: 11px; color: #b25e00; background: rgba(247,144,9,.12);
  border-radius: 999px; padding: 1px 8px; }
.st-note { margin-top: 14px; border-radius: 12px; background: #f7f9fd; padding: 12px 14px; }
.st-note b { font-size: 12.5px; color: var(--fg-2); }
.st-note ul { margin: 8px 0 0; padding-left: 18px; }
.st-note li { font-size: 12px; color: var(--fg-3); line-height: 1.75; }

.st-docs { margin-top: 18px; border: 1px solid #e8eaf2; border-radius: 14px; overflow: hidden; }
.st-docs-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 13px 16px; background: #fafbff; border: 0; cursor: pointer;
  font-size: 13.5px; font-weight: 700; color: var(--fg); font-family: inherit; }
.st-docs-toggle:hover { background: #f3f6ff; }
.st-docs-arrow { transition: transform .18s; color: var(--fg-3); font-size: 12px; }
.st-docs-arrow.open { transform: rotate(180deg); }
.st-docs-body { padding: 6px 16px 16px; background: #fff; }
.st-step { padding: 12px 0; border-top: 1px dashed #edeff6; }
.st-step:first-child { border-top: 0; }
.st-step-t { font-size: 13px; font-weight: 700; color: var(--fg); margin-bottom: 5px; }
.st-step-d { font-size: 12.5px; color: var(--fg-2); line-height: 1.85; }

.st-save { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.st-save-hint { font-size: 12px; color: var(--fg-3); }

/* ---- 授权管理 ---- */
.lic-hero { border: 1.5px solid #e8eaf2; }
.lic-hero.lic-ok { border-color: rgba(18, 183, 106, 0.42); background: linear-gradient(180deg, rgba(18,183,106,.055), #fff 60%); }
.lic-hero.lic-bad { border-color: rgba(240, 68, 56, 0.42); background: linear-gradient(180deg, rgba(240,68,56,.055), #fff 60%); }
.lic-hero.lic-warn { border-color: rgba(247, 144, 9, 0.42); background: linear-gradient(180deg, rgba(247,144,9,.06), #fff 60%); }
.lic-hero-main { display: flex; align-items: center; gap: 16px; }
.lic-ava { position: relative; flex: 0 0 62px; width: 62px; height: 62px; border-radius: 50%;
  background: #eef1f8; overflow: visible; }
.lic-ava img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; display: block; }
.lic-ava-fb { width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 24px; font-weight: 800; color: #6b7592; background: #eef1f8; }
.lic-ava-badge { position: absolute; right: 2px; bottom: 2px; width: 15px; height: 15px;
  border-radius: 50%; border: 2.5px solid #fff; }
.lic-ava-badge.ok { background: #12b76a; }
.lic-ava-badge.bad { background: #f04438; }
.lic-ava-badge.warn { background: #f79009; }
.lic-hero-info { flex: 1; min-width: 0; }
.lic-hero-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 17px; font-weight: 800; color: var(--fg); }
.lic-hero-sub { margin-top: 6px; font-size: 12.5px; color: var(--fg-2); display: flex;
  align-items: center; gap: 7px; flex-wrap: wrap; }
.lic-dot { color: #c9cede; }
.lic-hero-code { margin-top: 6px; font-size: 11.5px; color: var(--fg-3); }
.lic-hero-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.lic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.lic-item { border: 1px solid #eef0f6; border-radius: 12px; padding: 12px 14px; background: #fafbfe; min-width: 0; }
.lic-k { font-size: 11.5px; color: var(--fg-3); margin-bottom: 6px; }
.lic-v { font-size: 14px; font-weight: 700; color: var(--fg); overflow-wrap: anywhere; }
.lic-tip { margin-top: 14px; border-radius: 12px; padding: 12px 14px; font-size: 12.5px;
  background: rgba(247, 144, 9, 0.1); color: #8a4b00; line-height: 1.75; }
.lic-tip b { display: block; margin-bottom: 3px; color: #8a4b00; }
.lic-list { margin: 0; padding-left: 20px; }
.lic-list li { font-size: 12.5px; color: var(--fg-2); line-height: 1.9; }
.lic-list li b { color: var(--fg); }
@media (max-width: 640px) {
  .lic-hero-main { flex-direction: column; align-items: flex-start; }
  .lic-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) { .lic-grid { grid-template-columns: 1fr; } }
/* ============ V1.0.13 新增：批量操作 / 相册 / 统计图表 / 水印 / 防盗链 ============ */

/* --- 图片管理：批量栏与勾选 --- */
.th-chk { width: 38px; text-align: center; }
.th-chk input { width: 15px; height: 15px; cursor: pointer; accent-color: var(--brand); }
tr.selrow > td { background: rgba(47, 107, 255, 0.055); }
.batch-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 14px; border-radius: 14px;
  background: linear-gradient(120deg, rgba(47, 107, 255, 0.09), rgba(47, 107, 255, 0.03));
  border: 1px solid rgba(47, 107, 255, 0.22);
  animation: barIn 0.2s ease both;
}
@keyframes barIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.bb-count { font-size: 13px; color: var(--fg-2); margin-right: 4px; }
.bb-count b { color: var(--brand); font-weight: 800; }
.mini-btn.ghost { color: var(--fg-3); }
.mini-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.sel-sm { width: auto; min-width: 132px; padding: 7px 10px; font-size: 12.5px; }
.tagline { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; }
.tagchip {
  font-size: 10.5px; padding: 1px 7px; border-radius: 999px;
  background: rgba(47, 107, 255, 0.1); color: var(--brand); white-space: nowrap;
}

/* --- 批量弹层里的相册选择 --- */
.album-pick { margin-top: 14px; max-height: 300px; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.ap-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--line); font-size: 13.5px; color: var(--fg);
  transition: 0.15s; background: #fff;
}
.ap-item:hover { border-color: rgba(47, 107, 255, 0.45); background: rgba(47, 107, 255, 0.05); }
.ap-cnt { font-size: 11.5px; color: var(--fg-3); }
.chk { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-2); cursor: pointer; }
.chk input { width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; }

/* --- 相册管理 --- */
.alb-form {
  padding: 18px; border-radius: 14px; margin-bottom: 18px;
  background: rgba(47, 107, 255, 0.04); border: 1px solid rgba(47, 107, 255, 0.18);
}
.alb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.alb-card {
  border: 1px solid var(--line); border-radius: 15px; overflow: hidden;
  background: #fff; transition: 0.18s; display: flex; flex-direction: column;
}
.alb-card:hover { border-color: rgba(47, 107, 255, 0.35); box-shadow: 0 12px 30px rgba(47, 107, 255, 0.14); transform: translateY(-2px); }
.alb-cover { height: 112px; background: #eef1f8; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.alb-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.alb-cover svg { width: 34px; height: 34px; color: #b6c0d4; }
.alb-body { padding: 11px 13px 6px; flex: 1; min-width: 0; }
.alb-name { font-size: 13.5px; font-weight: 700; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alb-desc { font-size: 11.8px; color: var(--fg-3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alb-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11.5px; color: var(--fg-3); }
.alb-acts { display: flex; gap: 6px; padding: 8px 13px 12px; }

/* --- 统计图表 --- */
.chart-card {
  margin-top: 16px; padding: 16px 18px; border-radius: 15px;
  border: 1px solid var(--line); background: #fff;
}
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.chart-title { font-size: 13.5px; font-weight: 800; color: var(--fg); }
.chart-sub { font-size: 11.8px; color: var(--fg-3); font-weight: 500; margin-top: 3px; }
.chart-sub b { color: var(--brand); font-weight: 800; }
.chart-wrap { width: 100%; }
.chart-svg { width: 100%; height: 168px; display: block; overflow: visible; }
.chart-x { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--fg-3); margin-top: 4px; }
.chart-empty { text-align: center; padding: 34px 0; font-size: 12.5px; color: var(--fg-3); }
.chart-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chart-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chart-tools .search { min-width: 150px; padding: 7px 11px; font-size: 12.5px; border-radius: 9px; border: 1px solid var(--line); outline: none; }
.barlist { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.baritem { display: flex; align-items: center; gap: 9px; min-width: 0; }
.bi-rank {
  width: 18px; flex: none; font-size: 11px; font-weight: 800; color: var(--fg-3); text-align: center;
}
.bi-thumb { width: 30px; height: 30px; flex: none; border-radius: 8px; object-fit: cover; background: #eef1f8; }
.bi-main { flex: 1; min-width: 0; }
.bi-name { font-size: 12px; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bi-track { height: 5px; border-radius: 999px; background: #eef1f8; margin-top: 4px; overflow: hidden; }
.bi-track i { display: block; height: 100%; border-radius: 999px; background: var(--brand-grad); }
.bi-val { flex: none; font-size: 11.5px; font-weight: 700; color: var(--fg-2); min-width: 30px; text-align: right; }

/* --- 水印 / 防盗链 --- */
.wmrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.switchrow { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--fg); cursor: pointer; font-weight: 600; }
.switchrow input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.fhint { font-size: 11.8px; color: var(--fg-3); line-height: 1.6; }
.wmpick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wmpick input[type=file] { font-size: 12px; color: var(--fg-2); max-width: 100%; }
.range { width: 100%; accent-color: var(--brand); cursor: pointer; }
.colorrow { display: flex; align-items: center; gap: 8px; }
.colorin {
  width: 40px; height: 36px; flex: none; padding: 2px; border-radius: 9px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
}
.wmpreview { margin-top: 18px; padding: 14px; border-radius: 14px; background: #f7f9fd; border: 1px dashed var(--line); }
.wmp-title { font-size: 12.5px; font-weight: 700; color: var(--fg-2); margin-bottom: 10px; }
.wmpreview img { width: 100%; border-radius: 10px; display: block; margin-bottom: 8px; }

@media (max-width: 900px) {
  .chart-2col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .batch-bar { gap: 6px; padding: 9px 10px; }
  .bb-count { width: 100%; }
  .alb-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .chart-svg { height: 140px; }
}
/* ============ V1.0.13 前台：广场筛选 / 相册 / 图片详情 ============ */
.sqfilter {
  margin: 16px 0 18px; padding: 14px 16px; border-radius: 16px;
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border);
  box-shadow: 0 8px 26px rgba(36, 48, 63, 0.06);
}
.sqf-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sqf-search {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 190px;
  padding: 0 12px; height: 38px; border-radius: 11px;
  background: #fff; border: 1px solid var(--line); color: var(--fg-3);
  transition: 0.15s;
}
.sqf-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.sqf-search input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 13px; color: var(--fg); font-family: inherit;
}
.sqf-tags { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.sqf-taglabel { font-size: 11.5px; color: var(--fg-3); font-weight: 600; margin-right: 2px; }
.sqf-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; padding: 4px 11px; border-radius: 999px; cursor: pointer;
  background: rgba(47, 107, 255, 0.07); color: var(--brand);
  border: 1px solid transparent; transition: 0.15s; white-space: nowrap;
}
.sqf-tag:hover { background: rgba(47, 107, 255, 0.14); }
.sqf-tag.on { background: var(--brand-grad); color: #fff; box-shadow: 0 4px 12px rgba(47, 107, 255, 0.3); }
.sqf-tag i { font-style: normal; font-size: 10px; opacity: 0.72; }
.sq-tags { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 10px 0; }
.sq-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 10px 10px; }
.sq-foot .sq-time { padding: 0; }
.sq-more { font-size: 11.5px; color: var(--brand); cursor: pointer; font-weight: 600; }
.sq-more:hover { text-decoration: underline; }

/* 相册卡片（前台可点击） */
.alb-grid.pub .alb-card { cursor: pointer; }

/* 图片详情页 */
.photo-wrap { padding: 8px 0 30px; }
.photo-card {
  display: grid; grid-template-columns: 1fr 380px; gap: 20px;
  align-items: start;
}
.photo-img {
  border-radius: 18px; overflow: hidden; background: #f2f5fb;
  border: 1px solid var(--glass-border); box-shadow: 0 18px 44px rgba(36, 48, 63, 0.1);
  display: flex; align-items: center; justify-content: center;
  min-height: 240px;
}
.photo-img img { max-width: 100%; max-height: 76vh; display: block; object-fit: contain; }
.photo-side {
  border-radius: 18px; padding: 20px; background: #fff;
  border: 1px solid var(--glass-border); box-shadow: 0 10px 30px rgba(36, 48, 63, 0.07);
  min-width: 0;
}
.photo-name {
  font-size: 16px; font-weight: 800; color: var(--fg); margin-bottom: 14px;
  word-break: break-all; line-height: 1.4;
}
.photo-kv { display: flex; flex-direction: column; gap: 9px; }
.photo-kv > div { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.photo-kv span { color: var(--fg-3); flex: none; }
.photo-kv b { color: var(--fg); font-weight: 600; text-align: right; word-break: break-all; }
.photo-links { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.pl-row { display: flex; align-items: center; gap: 7px; }
.pl-row label {
  width: 68px; flex: none; font-size: 11.5px; color: var(--fg-3); font-weight: 600;
}
.pl-row .input { flex: 1; min-width: 0; padding: 7px 10px; font-size: 11.5px; border-radius: 9px; }
.pl-row .mini-btn { flex: none; }
.photo-acts { display: flex; gap: 9px; margin-top: 18px; flex-wrap: wrap; }
.photo-acts .btn { flex: 1; min-width: 110px; justify-content: center; }

@media (max-width: 900px) {
  .photo-card { grid-template-columns: 1fr; }
  .photo-img img { max-height: 60vh; }
}
@media (max-width: 640px) {
  .sqfilter { padding: 12px; }
  .sqf-row .seg { width: 100%; overflow-x: auto; }
  .pl-row label { width: 60px; }
}
/* ============ V1.0.13 上传增强：粘贴提示 / 重试 ============ */
.dz-foot { flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.dz-paste { font-size: 11.5px; color: var(--fg-3); display: inline-flex; align-items: center; gap: 4px; }
.dz-paste kbd {
  display: inline-block; padding: 1px 6px; border-radius: 5px; font-size: 10.5px;
  font-family: inherit; letter-spacing: 0.3px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line);
  color: var(--fg-2);
}
.upq-retry {
  margin-left: auto; font-size: 11.8px; font-weight: 600; color: var(--err); cursor: pointer;
}
.upq-retry:hover { text-decoration: underline; }
.upq-cancel { cursor: pointer; }
/* 在线更新：重启提醒（红色） */
.upd-warn {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 14px 0 0; padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(240, 68, 56, 0.32);
  background: rgba(240, 68, 56, 0.08);
  color: #b42318;
}
.upd-warn svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--err); }
.upd-warn > div { min-width: 0; }
.upd-warn b { display: block; font-size: 13px; font-weight: 700; color: #b42318; line-height: 1.5; }
.upd-warn span { display: block; margin-top: 4px; font-size: 12.4px; line-height: 1.65; color: #c0362c; }
.upd-warn code {
  padding: 1px 5px; border-radius: 5px; font-size: 11.8px;
  background: rgba(240, 68, 56, 0.12); color: #b42318;
}
.updp-card .upd-warn { margin-top: 12px; }
/* 图片处理：转换队列统计卡 */
.qstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.qs {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px; border-radius: 10px;
  background: rgba(47, 107, 255, 0.05); border: 1px solid var(--line);
}
.qs b { font-size: 20px; font-weight: 700; color: var(--brand); line-height: 1.2; }
.qs span { font-size: 12px; color: var(--fg-3); }
.qs.bad b { color: var(--err); }
@media (max-width: 640px) {
  .qstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ===== V1.0.15 智能裁剪 + 批量打包下载 ===== */
.pk-row { margin-top: 6px; }
.pk-label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.pk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card2); color: var(--fg2); font-size: 12px;
  cursor: pointer; user-select: none; transition: border-color .15s, color .15s, background .15s; }
.pk-chip:hover { border-color: var(--acc); color: var(--fg); }
.pk-chip.on { border-color: var(--acc); background: var(--accsoft); color: var(--acc); font-weight: 600; }
.crop-prev { display: flex; gap: 16px; margin-top: 16px; align-items: flex-start; }
.cp-box { flex: 0 0 190px; height: 190px; border-radius: 10px; overflow: hidden; background: var(--card2);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.cp-box img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.cp-meta { flex: 1 1 auto; font-size: 13px; color: var(--fg2); line-height: 1.9; min-width: 0; }
.cp-meta b { color: var(--fg); }
.cp-tip { color: var(--muted); font-size: 12px; }
.cp-done { margin-top: 6px; color: var(--ok); font-size: 12px; }
.cp-link { margin-top: 4px; font-family: monospace; font-size: 11px; color: var(--muted);
  word-break: break-all; }
@media (max-width: 640px) {
  .crop-prev { flex-direction: column; }
  .cp-box { width: 100%; flex-basis: auto; height: 160px; }
}
/* ===== V1.0.16 版本历史 + 重复检测 ===== */
.ver-link { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--card2);
  border: 1px solid var(--line); font-family: monospace; font-size: 11px; color: var(--muted);
  word-break: break-all; }
.ver-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px;
  max-height: 300px; overflow-y: auto; }
.ver-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card2); }
.ver-item.cur { border-color: var(--acc); background: var(--accsoft); }
.ver-badge { flex: 0 0 auto; min-width: 40px; height: 24px; padding: 0 8px; border-radius: 6px;
  background: var(--card); border: 1px solid var(--line); color: var(--fg2); font-size: 12px;
  font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ver-item.cur .ver-badge { background: var(--acc); border-color: var(--acc); color: #fff; }
.ver-main { flex: 1 1 auto; min-width: 0; }
.ver-name { font-size: 13px; font-weight: 600; color: var(--fg); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.ver-meta { font-size: 11px; color: var(--muted); margin-top: 3px; }
.ver-note { font-size: 11px; color: var(--fg2); margin-top: 3px; }
.ver-act { flex: 0 0 auto; display: flex; align-items: center; }
.ver-upload { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.ver-up-head { font-size: 13px; font-weight: 600; color: var(--fg); margin-bottom: 10px; }
.ver-up-tip { font-size: 11px; color: var(--muted); margin-top: 8px; }
.dup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.dup-item { display: flex; gap: 10px; padding: 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card2); }
.dup-thumb { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 8px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); display: flex;
  align-items: center; justify-content: center; }
.dup-thumb img { max-width: 100%; max-height: 100%; object-fit: cover; display: block; }
.dup-info { flex: 1 1 auto; min-width: 0; }
.dup-name { font-size: 12px; font-weight: 600; color: var(--fg); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.dup-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.dup-tags { margin-top: 4px; }
.dup-acts { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .dup-grid { grid-template-columns: 1fr; }
  .ver-list { max-height: 240px; }
}
/* ===== V1.1.0 模糊打码 / 上传审核 ===== */
.rd-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.rd-mode{border:1px solid rgba(148,163,184,.28);border-radius:12px;padding:12px 14px;cursor:pointer;transition:.16s;background:rgba(148,163,184,.05)}
.rd-mode:hover{border-color:rgba(96,165,250,.55)}
.rd-mode.on{border-color:#3b82f6;background:rgba(59,130,246,.12);box-shadow:0 0 0 1px rgba(59,130,246,.35) inset}
.rd-mode b{display:block;font-size:13.5px;font-weight:600;margin-bottom:4px}
.rd-mode span{display:block;font-size:12px;color:#94a3b8;line-height:1.5}
.rd-val{font-style:normal;font-size:12px;color:#60a5fa;margin-left:8px}
.rd-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0 12px}
.rd-tb{border:1px solid rgba(148,163,184,.3);background:transparent;color:inherit;border-radius:9px;padding:6px 12px;font-size:12.5px;cursor:pointer}
.rd-tb.on{border-color:#3b82f6;background:rgba(59,130,246,.16);color:#93c5fd}
.rd-sep{width:1px;height:18px;background:rgba(148,163,184,.28);margin:0 4px}
.rd-lbl{font-size:12px;color:#94a3b8}
.rd-range{width:110px;accent-color:#3b82f6}
.rd-stage{display:flex;justify-content:center;background:rgba(15,23,42,.45);border-radius:12px;padding:10px;border:1px solid rgba(148,163,184,.18)}
.rd-box{position:relative;display:inline-block;max-width:100%;cursor:crosshair;user-select:none;-webkit-user-select:none;touch-action:none}
.rd-box img{display:block;max-width:100%;max-height:52vh;border-radius:6px;pointer-events:none}
.rd-region{position:absolute;border:1.5px solid #f97316;background:rgba(249,115,22,.16);border-radius:3px;box-sizing:border-box}
.rd-region.pending{border-style:dashed;background:rgba(249,115,22,.1)}
.rd-del{position:absolute;top:-8px;right:-8px;width:17px;height:17px;line-height:15px;text-align:center;border-radius:50%;background:#f97316;color:#fff;font-size:12px;font-style:normal;cursor:pointer;border:1px solid rgba(255,255,255,.7)}
.rd-hint{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:12.5px;color:rgba(226,232,240,.72);background:rgba(15,23,42,.72);padding:7px 14px;border-radius:999px;pointer-events:none;white-space:nowrap}
.rd-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;font-size:12px;color:#94a3b8}
.rd-count{color:#60a5fa}
.rd-note{color:#fbbf24}
.rd-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.rd-item{border:1px solid rgba(148,163,184,.2);border-radius:11px;overflow:hidden;background:rgba(148,163,184,.05)}
.rd-item img{display:block;width:100%;height:104px;object-fit:cover;background:#0f172a}
.rd-it-name{font-size:12.5px;padding:7px 9px 2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rd-it-meta{font-size:11.5px;color:#94a3b8;padding:0 9px 6px}
.rd-acts{display:flex;gap:6px;padding:0 9px 9px;flex-wrap:wrap}
.rv-badge{display:inline-block;min-width:16px;height:16px;line-height:16px;text-align:center;border-radius:999px;background:#ef4444;color:#fff;font-size:10.5px;font-weight:600;margin-left:5px;padding:0 4px;vertical-align:middle}
.rv-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.rv-tabs a{font-size:12.5px;padding:6px 13px;border-radius:999px;border:1px solid rgba(148,163,184,.28);cursor:pointer;color:#94a3b8}
.rv-tabs a.on{border-color:#3b82f6;background:rgba(59,130,246,.14);color:#93c5fd}
.rv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
.rv-item{border:1px solid rgba(148,163,184,.2);border-radius:11px;overflow:hidden;background:rgba(148,163,184,.05);transition:.16s}
.rv-item.sel{border-color:#3b82f6;box-shadow:0 0 0 1px rgba(59,130,246,.4) inset}
.rv-thumb{position:relative;cursor:pointer;background:#0f172a}
.rv-thumb img{display:block;width:100%;height:120px;object-fit:cover}
.rv-ck{position:absolute;top:7px;left:7px;width:20px;height:20px;line-height:18px;text-align:center;border-radius:6px;background:#3b82f6;color:#fff;font-size:12px;font-style:normal;font-weight:700}
.rv-info{padding:8px 9px 9px}
.rv-name{font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rv-meta{font-size:11.5px;color:#94a3b8;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rv-acts{display:flex;gap:6px;margin-top:7px;flex-wrap:wrap}
.pager{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:16px}
.pager-i{font-size:12.5px;color:#94a3b8}
@media (max-width:760px){
  .rd-modes{grid-template-columns:1fr}
  .rd-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}
  .rv-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
  .rd-box img{max-height:38vh}
  .rd-foot{flex-direction:column;align-items:flex-start;gap:5px}
}
/* ===== V1.1.1 侧边栏滚动优化：隐藏滚动条 + 渐隐提示 + 移动端手势滚动 ===== */
/* nav-scroll-fix */
.ad-side{min-height:0}
.ad-nav{min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;scroll-behavior:smooth}
.ad-nav::-webkit-scrollbar{width:0;height:0;display:none}
/* 底部渐隐，暗示下方还有内容 */
.ad-side::after{
  content:'';position:absolute;left:0;right:0;bottom:0;height:34px;pointer-events:none;z-index:2;
  background:linear-gradient(to top,rgba(255,255,255,.92),rgba(255,255,255,0));
  opacity:0;transition:opacity .2s ease;
}
.ad-side.has-more::after{opacity:1}
@media (max-width:900px){
  .ad-side{width:264px;flex:0 0 264px}
  .ad-nav{padding:12px 10px 20px}
  .ad-nav a{height:48px}
  .ad-side::after{display:none}
}
/* ===== V1.2.0 用户与团队 ===== */
.tm-users{display:flex;flex-direction:column;gap:8px}
.tm-user{display:flex;align-items:center;gap:11px;padding:10px 12px;border:1px solid rgba(148,163,184,.2);border-radius:12px;background:rgba(148,163,184,.04)}
.tm-av{width:34px;height:34px;flex:none;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:13.5px;font-weight:800;box-shadow:0 3px 10px rgba(15,23,42,.16)}
.tm-av.sm{width:26px;height:26px;border-radius:8px;font-size:11.5px}
.tm-u-main,.tm-m-main{flex:1;min-width:0}
.tm-u-name{font-size:13.5px;font-weight:600;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.tm-u-meta{font-size:11.5px;color:#94a3b8;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tm-u-acts{display:flex;gap:6px;flex:none}
.tm-spaces{display:grid;grid-template-columns:repeat(auto-fill,minmax(236px,1fr));gap:12px}
.tm-space{border:1px solid rgba(148,163,184,.2);border-radius:12px;padding:12px 13px;background:rgba(148,163,184,.04)}
.tm-sp-head{display:flex;align-items:center;gap:7px;margin-bottom:6px}
.tm-sp-head b{font-size:13.5px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tm-sp-meta{font-size:11.5px;color:#94a3b8;line-height:1.7;overflow:hidden;text-overflow:ellipsis}
.tm-sp-code{font-size:11.5px;color:#94a3b8;margin-top:6px}
.tm-sp-code code{background:rgba(59,130,246,.12);color:#3b82f6;padding:1px 6px;border-radius:5px;font-size:11.5px;letter-spacing:.4px}
.tm-sp-acts{display:flex;gap:6px;margin-top:9px;flex-wrap:wrap}
.tm-members{display:flex;flex-direction:column;gap:7px;margin-top:10px;max-height:46vh;overflow-y:auto}
.tm-member{display:flex;align-items:center;gap:10px;padding:7px 9px;border-radius:9px;background:rgba(148,163,184,.06)}
@media (max-width:640px){
  .tm-spaces{grid-template-columns:1fr}
  .tm-user{flex-wrap:wrap}
  .tm-u-acts{width:100%;justify-content:flex-end}
}

/* v121-block : 侧边栏多级菜单 */
.ad-nav { gap: 2px; }
.ad-group {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 11px; font-weight: 700; color: var(--fg-3); letter-spacing: 1.1px;
  padding: 12px 10px 6px; white-space: nowrap; user-select: none;
  transition: color 0.16s ease;
}
.ad-group:hover { color: var(--fg-2); }
.ad-group-t { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; }
.ad-group-caret {
  width: 13px; height: 13px; flex: 0 0 auto; opacity: 0.75;
  transition: transform 0.18s ease;
}
.ad-group.open .ad-group-caret { transform: rotate(0deg); }
.ad-group:not(.open) .ad-group-caret { transform: rotate(-90deg); }
.ad-group-badge {
  flex: 0 0 auto; min-width: 16px; height: 16px; padding: 0 5px; border-radius: 8px;
  background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px;
  text-align: center; letter-spacing: 0;
}
.admin.collapsed .ad-group { display: none; }
.ad-ico { width: 18px; height: 18px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; }
.ad-ico svg { width: 18px; height: 18px; display: block; }
.ad-label { flex: 1 1 auto; display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; }
.rv-badge {
  flex: 0 0 auto; min-width: 16px; height: 16px; padding: 0 5px; border-radius: 8px;
  background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}

/* v121-block : 评论管理 */
.cm-sw {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px;
  background: var(--bg-2); margin-bottom: 10px;
}
.cm-sw:last-child { margin-bottom: 0; }
.cm-sw-i { flex: 1 1 auto; min-width: 0; }
.cm-sw-t { font-size: 14px; font-weight: 700; color: var(--fg-1); }
.cm-sw-s { font-size: 12px; color: var(--fg-3); margin-top: 3px; }
.cm-seg { margin-bottom: 12px; }
.cm-list { display: flex; flex-direction: column; gap: 10px; }
.cm-row {
  display: flex; gap: 12px; padding: 13px 14px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line);
}
.cm-av {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 700;
}
.cm-main { flex: 1 1 auto; min-width: 0; }
.cm-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cm-nick { font-size: 13px; color: var(--fg-1); }
.cm-time { font-size: 11px; color: var(--fg-3); }
.cm-body {
  font-size: 13px; color: var(--fg-2); line-height: 1.62; margin-top: 6px;
  word-break: break-word; white-space: pre-wrap;
}
.cm-meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; font-size: 11px; color: var(--fg-3); }
.cm-img { font-family: ui-monospace, Menlo, Consolas, monospace; }
.cm-likes { color: #ef4444; }
.cm-acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* v121-block : 通知渠道 */
.nf-list { display: flex; flex-direction: column; gap: 10px; }
.nf-card { padding: 13px 15px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.nf-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.nf-kind {
  flex: 0 0 auto; font-size: 10px; font-weight: 700; letter-spacing: 0.4px;
  padding: 2px 7px; border-radius: 6px; background: #6366f1; color: #fff;
}
.nf-kind.email { background: #0ea5e9; }
.nf-name { flex: 1 1 auto; font-size: 13px; color: var(--fg-1); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nf-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.nf-line { font-size: 12px; color: var(--fg-2); margin-top: 7px; word-break: break-all; }
.nf-line.dim { color: var(--fg-3); }
.nf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.nf-evs { display: flex; gap: 8px; flex-wrap: wrap; }
.nf-ev {
  font-size: 12px; padding: 5px 12px; border-radius: 999px; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--fg-2);
  transition: all 0.15s ease;
}
.nf-ev.on { background: #6366f1; border-color: #6366f1; color: #fff; }
.nf-logs { display: flex; flex-direction: column; gap: 6px; }
.nf-log {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  background: var(--bg-2); font-size: 12px; flex-wrap: wrap;
}
.nf-log-ok { font-weight: 700; }
.nf-log-ok.ok { color: #10b981; }
.nf-log-ok.bad { color: #ef4444; }
.nf-log-ev { color: var(--fg-3); font-family: ui-monospace, Menlo, Consolas, monospace; }
.nf-log-t { flex: 1 1 auto; color: var(--fg-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nf-log-at { color: var(--fg-3); }
.nf-log-err { flex: 1 1 100%; color: #ef4444; word-break: break-all; }

@media (max-width: 900px) {
  .nf-grid { grid-template-columns: 1fr; }
  .cm-row { padding: 11px 12px; }
  .cm-av { width: 30px; height: 30px; font-size: 13px; }
}

/* nav-flex-fix : 菜单项禁止被 flex 压缩，超出时由 .ad-nav 自身滚动 */
.ad-nav { gap: 4px; padding-bottom: 56px; }
.ad-nav > * { flex: 0 0 auto; }
.ad-nav .ad-group { flex: 0 0 auto; }
.ad-nav a { flex: 0 0 auto; }

/* v130-block : 外链转存 */
.im-row { display: flex; gap: 8px; align-items: center; }
.im-row .ipt { flex: 1 1 auto; min-width: 0; }
.im-hint {
  font-size: 12px; color: var(--fg-3); line-height: 1.6; margin-top: 4px;
  padding: 9px 12px; border-radius: 10px; background: var(--bg-2);
}
.im-ta { width: 100%; resize: vertical; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.6; }
.im-parsed { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.im-p-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px;
  background: var(--bg-2); font-size: 12px;
}
.im-p-url { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-2); }
.im-res { margin-top: 14px; }
.im-res-h { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-1); margin-bottom: 10px; }
.im-res-i { display: flex; gap: 12px; padding: 10px; border-radius: 12px; background: var(--bg-2); margin-bottom: 8px; }
.im-res-t { width: 54px; height: 54px; flex: 0 0 auto; border-radius: 9px; object-fit: cover; background: var(--bg-3); }
.im-res-m { flex: 1 1 auto; min-width: 0; }
.im-res-l { display: block; font-size: 12px; color: var(--brand); word-break: break-all; text-decoration: none; }
.im-res-l:hover { text-decoration: underline; }
.im-res-s { font-size: 11px; color: var(--fg-3); margin-top: 4px; }
.im-logs { display: flex; flex-direction: column; gap: 6px; }
.im-log {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  background: var(--bg-2); font-size: 12px;
}
.im-log-s { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-2); }
.im-log-o { flex: 0 0 auto; font-size: 10px; padding: 2px 6px; border-radius: 5px; background: var(--bg-3); color: var(--fg-3); }
.im-log-t { flex: 0 0 auto; color: var(--fg-3); font-size: 11px; }

/* v130-block : API 转发代理 */
.px-base {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: var(--bg-2); flex-wrap: wrap;
}
.px-base-l { font-size: 12px; color: var(--fg-3); flex: 0 0 auto; }
.px-base-v {
  flex: 1 1 auto; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12.5px; color: var(--brand); word-break: break-all;
}
.px-list { display: flex; flex-direction: column; gap: 10px; }
.px-row { padding: 12px 14px; border-radius: 12px; background: var(--bg-2); }
.px-r-t { font-size: 13px; font-weight: 700; color: var(--fg-1); margin-bottom: 6px; }
.px-r-c {
  display: block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px;
  color: var(--brand); word-break: break-all; margin-bottom: 6px;
}
.px-r-d { font-size: 12px; color: var(--fg-3); line-height: 1.6; }
.px-r-d b { color: var(--fg-2); }
.px-auth { display: flex; flex-direction: column; gap: 10px; }
.px-auth-i { padding: 12px 14px; border-radius: 12px; background: var(--bg-2); }
.px-auth-t { font-size: 13px; font-weight: 700; color: var(--fg-1); margin-bottom: 5px; }
.px-auth-s { font-size: 12px; color: var(--fg-3); line-height: 1.6; }
.px-auth-s code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px;
  background: var(--bg-3); padding: 1px 5px; border-radius: 5px; color: var(--fg-2);
}
.px-toks { display: flex; gap: 8px; flex-wrap: wrap; }
.px-tok {
  font-size: 12px; padding: 5px 11px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--fg-2);
}
.px-tok b { color: #ef4444; font-weight: 600; }
.px-res { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); }
.px-res-t { font-size: 13px; font-weight: 700; color: var(--fg-1); }
.px-res-m { font-size: 12px; color: var(--fg-3); margin-top: 4px; }
.px-res-l { display: block; font-size: 12px; color: var(--brand); margin-top: 6px; word-break: break-all; text-decoration: none; }
.px-res-l:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .im-row { flex-wrap: wrap; }
  .im-row .btn { width: 100%; }
}

/* ============================================================
   V1.4.0 后台视觉重写 · flat-admin
   目标：一级菜单、扁平深色侧栏、清爽卡片、去掉玻璃拟态
   ============================================================ */
:root {
  --ad-ink: #0f172a;
  --ad-ink-2: #1e293b;
  --ad-mute: #64748b;
  --ad-line: #e6eaf2;
  --ad-bg: #f5f7fb;
  --ad-card: #ffffff;
  --ad-brand: #3355ff;
  --ad-brand-soft: #eef2ff;
  --ad-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --ad-shadow-md: 0 4px 16px rgba(15, 23, 42, .08);
  --ad-r: 12px;
}

/* ---------- 外壳 ---------- */
.admin {
  background: var(--ad-bg);
  font-family: var(--font);
}
.admin * { letter-spacing: 0; }

/* ---------- 侧边栏 ---------- */
.ad-side {
  width: 240px; flex: 0 0 240px;
  background: var(--ad-ink);
  border-right: 0;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  color: #cbd5e1;
  display: flex; flex-direction: column;
}
.ad-side::after { display: none !important; }

.ad-brand {
  height: 60px; flex: 0 0 60px;
  display: flex; align-items: center; gap: 11px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(148, 163, 184, .14);
  cursor: pointer; overflow: hidden;
}
.ad-brand .ad-logo {
  width: 30px; height: 30px; border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1);
}
.ad-brand span {
  font-size: 15px; font-weight: 700; color: #f1f5f9;
  background: none; -webkit-text-fill-color: currentColor;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 一级菜单列表：单列平铺，可滚动、不压缩 */
.ad-nav {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 10px 64px;
  overflow-y: auto; overflow-x: hidden;
}
.ad-nav > * { flex: 0 0 auto; }
.ad-nav a {
  display: flex; align-items: center; gap: 11px;
  height: 42px; padding: 0 11px;
  border-radius: 9px;
  color: #a9b6cc; font-size: 13.5px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  white-space: nowrap; overflow: hidden;
  transition: background .14s ease, color .14s ease;
  position: relative;
}
.ad-nav a .ad-ico {
  width: 18px; height: 18px; flex: 0 0 18px;
  display: inline-flex; align-items: center; justify-content: center;
  opacity: .85;
}
/* 兼容旧结构：图标直接挂在 a 下 */
.ad-nav a > svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: .85; }
.ad-nav a .ad-label {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; gap: 6px;
  overflow: hidden; text-overflow: ellipsis;
}
.ad-nav a:hover { background: rgba(148, 163, 184, .12); color: #f1f5f9; }
.ad-nav a.on {
  background: var(--ad-brand); color: #fff; font-weight: 600;
  box-shadow: 0 4px 14px rgba(51, 85, 255, .35);
}
.ad-nav a.on .ad-ico, .ad-nav a.on > svg { opacity: 1; }
.ad-nav a .rv-badge {
  flex: none; margin-left: auto;
  min-width: 17px; height: 17px; padding: 0 5px;
  border-radius: 9px; background: #ef4444; color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center;
}

/* 折叠态：只留图标 */
.admin.collapsed .ad-side { width: 68px; flex: 0 0 68px; }
.admin.collapsed .ad-brand { justify-content: center; padding: 0; }
.admin.collapsed .ad-brand span { display: none; }
.admin.collapsed .ad-nav { padding: 12px 8px 64px; }
.admin.collapsed .ad-nav a { justify-content: center; padding: 0; gap: 0; }
.admin.collapsed .ad-nav a .ad-label { display: none; }
.admin.collapsed .ad-nav a .rv-badge { display: none; }

/* ===== V2.2.7 侧边栏多级菜单（V2.2.8：二级带图标 / 手风琴 / 分组标题不带选中态） ===== */
.ad-nav .ad-g-h { color: #cbd5e1; }
.ad-nav .ad-g-h .ad-caret {
  flex: none; width: 14px; height: 14px; margin-left: auto; opacity: .55;
  transition: transform .18s;
}
.ad-nav .ad-g-h.open .ad-caret { transform: rotate(180deg); opacity: .9; }
.ad-nav .ad-g-h:hover { color: #f1f5f9; }
.ad-nav .ad-g-body { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 6px; }
.ad-nav .ad-g-body a {
  padding: 0 12px 0 20px; min-height: 36px; gap: 9px;
  font-size: 13px; color: #a9b6cc;
}
.ad-nav .ad-g-body a .ad-ico-sm {
  flex: 0 0 16px; width: 16px; height: 16px; opacity: .75;
}
.ad-nav .ad-g-body a .ad-ico-sm svg { width: 16px; height: 16px; }
.ad-nav .ad-g-body a:hover { color: #f1f5f9; }
.ad-nav .ad-g-body a:hover .ad-ico-sm { opacity: 1; }
.ad-nav .ad-g-body a.on {
  background: var(--ad-brand); color: #fff; font-weight: 600;
  box-shadow: 0 4px 14px rgba(51, 85, 255, .35);
}
.ad-nav .ad-g-body a.on .ad-ico-sm { opacity: 1; }
.ad-nav .ad-g-body a .rv-badge { margin-left: auto; }
/* 折叠态：分组标题只留图标，子菜单整体隐藏 */
.admin.collapsed .ad-g-body { display: none !important; }
.admin.collapsed .ad-nav a.ad-g-h { justify-content: center; padding: 0; gap: 0; }

/* ===== V2.2.9 折叠态悬停 tooltip（CSS 实现，即时显示） ===== */
.admin.collapsed .ad-side, .dash-admin.collapsed .ad-side { overflow: visible; }
.ad-nav a[data-tip] { position: relative; }
.admin.collapsed .ad-nav a[data-tip]:hover::after,
.dash-admin.collapsed .ad-nav a[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  background: #0f172a; color: #fff; font-size: 12px; font-weight: 550;
  padding: 6px 10px; border-radius: 8px; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .28);
  z-index: 60; pointer-events: none;
  animation: tipIn .12s ease both;
}
@keyframes tipIn { from { opacity: 0; transform: translateY(-50%) translateX(-4px); } to { opacity: 1; transform: translateY(-50%) translateX(0); } }
/* 窄屏（≤900px）：展开分组时侧栏临时拉宽成抽屉 */
@media (max-width: 900px) {
  .admin .ad-side.g-open { width: 216px; flex: 0 0 216px; }
  .admin .ad-side.g-open .ad-brand { justify-content: flex-start; padding: 0 18px; }
  .admin .ad-side.g-open .ad-brand span { display: block; }
  .admin .ad-side.g-open .ad-nav { padding: 12px 10px 64px; }
  .admin .ad-side.g-open .ad-nav a { justify-content: flex-start; padding: 0 12px; gap: 10px; }
  .admin .ad-side.g-open .ad-nav a .ad-label { display: flex; }
  .admin .ad-side.g-open .ad-g-body { display: flex; }
  .admin.collapsed .ad-side.g-open { width: 216px; flex: 0 0 216px; }
}

/* 侧栏底部用户区 */
.ad-side-foot {
  flex: 0 0 auto;
  padding: 10px; border-top: 1px solid rgba(148, 163, 184, .14);
  background: rgba(2, 6, 23, .35);
}
.ad-side-foot .ad-user { padding: 4px 6px 10px; gap: 9px; }
.ad-avatar, .ad-avatar-img {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #3355ff, #6a5cff);
  box-shadow: none; object-fit: cover;
}
.ad-uname { font-size: 12.5px; font-weight: 600; color: #f1f5f9; }
.ad-urole { font-size: 11px; color: #7c8aa3; }
.ad-side-foot .btn.plain {
  background: rgba(148, 163, 184, .1); border-color: transparent;
  color: #a9b6cc; height: 32px;
}
.ad-side-foot .btn.plain:hover { background: rgba(148, 163, 184, .2); color: #fff; }

/* ---------- 顶栏 ---------- */
.ad-body { background: var(--ad-bg); }
.ad-header {
  height: 60px; flex: 0 0 60px;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid var(--ad-line);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: none;
  gap: 12px;
}
.ad-collapse {
  width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid var(--ad-line); background: #fff; color: var(--ad-mute);
}
.ad-collapse:hover { color: var(--ad-brand); border-color: #c7d2fe; background: var(--ad-brand-soft); }
.ad-crumb { font-size: 12.5px; color: #94a3b8; gap: 6px; }
.ad-crumb b { font-size: 15px; font-weight: 650; color: var(--ad-ink); }
.ad-hbtn {
  height: 34px; padding: 0 12px; border-radius: 9px;
  border: 1px solid var(--ad-line); background: #fff; color: var(--ad-mute);
  font-size: 12.5px; font-weight: 550;
}
.ad-hbtn:hover { color: var(--ad-brand); border-color: #c7d2fe; background: var(--ad-brand-soft); }
.ad-header .pill { font-weight: 600; }

/* ---------- 内容区 ---------- */
.ad-main { padding: 20px 22px 60px; background: var(--ad-bg); }
.ad-panel { max-width: 1240px; gap: 14px; }

.panel-card2 {
  background: var(--ad-card);
  border: 1px solid var(--ad-line);
  border-radius: var(--ad-r);
  padding: 18px 20px;
  box-shadow: var(--ad-shadow-sm);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.panel-head2 { margin-bottom: 14px; gap: 8px; }
.panel-head2 h3 { font-size: 14.5px; font-weight: 650; color: var(--ad-ink); }
.panel-head2 .ph-sub { font-size: 12px; color: #94a3b8; }

/* 统计卡：扁平 + 左侧色条 */
.stat-grid { gap: 12px; }
.stat-item {
  background: #fff;
  border: 1px solid var(--ad-line);
  border-radius: var(--ad-r);
  padding: 15px 17px;
  box-shadow: var(--ad-shadow-sm);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: box-shadow .16s ease, border-color .16s ease;
}
.stat-item::after { display: none; }
.stat-item:hover { transform: none; border-color: #d5dced; box-shadow: var(--ad-shadow-md); }
.stat-label { font-size: 12.5px; color: var(--ad-mute); margin-bottom: 6px; font-weight: 500; }
.stat-value { font-size: 24px; font-weight: 700; color: var(--ad-ink); letter-spacing: -.4px; }
.stat-value.primary {
  background: none; -webkit-text-fill-color: currentColor; color: var(--ad-brand);
}
.stat-hint { font-size: 11.5px; color: #a3aec2; margin-top: 3px; }

.kv-k { font-size: 11px; color: #94a3b8; letter-spacing: .4px; }
.kv-v { font-size: 13.5px; font-weight: 600; color: var(--ad-ink); }

/* 徽章 */
.pill { border-radius: 6px; padding: 2px 8px; font-size: 11px; font-weight: 600; }

/* 表格观感 */
.ad-panel table { border-collapse: separate; border-spacing: 0; }
.ad-panel table th {
  font-size: 11.5px; font-weight: 600; color: #8593a8;
  text-transform: none; letter-spacing: .2px;
  background: #f8fafc;
}
.ad-panel table td { border-color: var(--ad-line); }

/* 按钮统一：更硬朗 */
.ad-panel .btn, .ad-header .btn {
  border-radius: 9px; font-weight: 550;
}
.ad-panel .btn:not(.plain):not(.ghost) { box-shadow: 0 2px 8px rgba(51, 85, 255, .22); }

/* 输入框 */
.ad-panel .input, .ad-panel textarea, .ad-panel select {
  border-radius: 9px; border-color: var(--ad-line); background: #fff;
}
.ad-panel .input:focus, .ad-panel textarea:focus, .ad-panel select:focus {
  border-color: #b9c6ff; box-shadow: 0 0 0 3px rgba(51, 85, 255, .12);
}

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  .ad-side { width: 68px; flex: 0 0 68px; }
  .ad-side .ad-brand { justify-content: center; padding: 0; height: 54px; flex: 0 0 54px; }
  .ad-side .ad-brand span { display: none; }
  .ad-side .ad-nav { padding: 10px 6px 64px; }
  .ad-side .ad-nav a { justify-content: center; padding: 0; gap: 0; height: 44px; }
  .ad-side .ad-nav a .ad-label { display: none; }
  .ad-side .ad-nav a .rv-badge { display: none; }
  .ad-side .ad-user > div:last-child { display: none; }
  .ad-side .ad-user { justify-content: center; }
  .ad-side .ad-side-foot .btn span { display: none; }
  .ad-side .ad-side-foot .btn { justify-content: center; padding: 0; }
  .ad-main { padding: 14px 12px 60px; }
  .ad-header { padding: 0 12px; height: 54px; flex: 0 0 54px; }
  .ad-crumb span:first-child, .ad-crumb span:nth-child(2) { display: none; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   V1.5.0 定时备份 / 配额与水印 面板样式
   ============================================================ */
.qa-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 4px; }
.qa-sum-item {
  background: #f8fafc; border: 1px solid var(--ad-line); border-radius: 10px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 4px;
}
.qa-sum-item span { font-size: 11.5px; color: #8593a8; }
.qa-sum-item b { font-size: 18px; font-weight: 700; color: var(--ad-ink); letter-spacing: -.3px; }

.qa-list { display: flex; flex-direction: column; gap: 8px; }
.qa-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border: 1px solid var(--ad-line); border-radius: 10px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.qa-row:hover { border-color: #d5dced; box-shadow: 0 2px 10px rgba(15, 23, 42, .06); }
.qa-ava {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase;
}
.qa-main { flex: 1 1 auto; min-width: 0; }
.qa-name { font-size: 13.5px; font-weight: 600; color: var(--ad-ink); display: flex; align-items: center; gap: 6px; }
.qa-role {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  color: var(--ad-brand); background: var(--ad-brand-soft); border-radius: 4px; padding: 1px 5px;
}
.qa-meta { font-size: 11.5px; color: #8593a8; margin-top: 2px; }
.qa-bar { height: 5px; border-radius: 3px; background: #eef1f7; margin-top: 7px; overflow: hidden; }
.qa-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #3355ff, #6a5cff); }
.qa-row .btn { flex: 0 0 auto; }

/* 备份面板 */
.bk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.bk-item { display: flex; flex-direction: column; gap: 6px; }
.bk-item.full { grid-column: 1 / -1; }
.bk-item label { font-size: 12px; font-weight: 600; color: #64748b; }
.bk-item .hint { font-size: 11px; color: #a3aec2; }
.bk-acts { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.bk-acts .hint { font-size: 11.5px; color: #8593a8; }

.bk-files { display: flex; flex-direction: column; gap: 8px; }
.bk-file {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border: 1px solid var(--ad-line); border-radius: 10px; background: #fff;
}
.bk-file-ico {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ad-brand); background: var(--ad-brand-soft);
}
.bk-file-ico svg { width: 17px; height: 17px; }
.bk-file-main { flex: 1 1 auto; min-width: 0; }
.bk-file-name { font-size: 13px; font-weight: 600; color: var(--ad-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-file-meta { font-size: 11.5px; color: #8593a8; margin-top: 1px; }

.bk-jobs { display: flex; flex-direction: column; gap: 6px; }
.bk-job {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 11px; border-radius: 8px; background: #f8fafc; font-size: 12px;
}
.bk-job-kind { color: #64748b; }
.bk-job-name { color: var(--ad-ink); font-weight: 600; }
.bk-job-meta { color: #8593a8; }
.bk-job-time { margin-left: auto; color: #a3aec2; }
.bk-job-err { flex: 1 0 100%; color: #dc2626; font-size: 11.5px; }

/* 通用分段控件 */
.seg { display: inline-flex; background: #f1f5f9; border-radius: 9px; padding: 3px; gap: 2px; }
.seg button {
  border: 0; background: transparent; border-radius: 7px; padding: 6px 12px;
  font-size: 12.5px; font-weight: 550; color: #64748b; cursor: pointer;
  transition: background .14s ease, color .14s ease; font-family: inherit;
}
.seg button:hover { color: var(--ad-ink); }
.seg button.on { background: #fff; color: var(--ad-brand); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }

/* 宽弹窗 */
.dlg-card.wide { width: min(560px, 92vw); }
.dlg-card .field { margin-top: 14px; }
.dlg-card .field label { display: block; font-size: 12px; font-weight: 600; color: #64748b; margin-bottom: 6px; }
.dlg-card .field .hint { font-size: 11.5px; color: #8593a8; margin-top: 6px; line-height: 1.55; }
.btn.plain.danger { color: #dc2626; }
.btn.plain.danger:hover { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }

@media (max-width: 700px) {
  .qa-row { flex-wrap: wrap; }
  .bk-file { flex-wrap: wrap; }
  .bk-job-time { margin-left: 0; }
  .dlg-card.wide { width: 94vw; }
}

/* ============================================================
   V1.6.0 采集统计 / 主题外观 面板样式
   ============================================================ */
.cr-days { margin-left: auto; display: inline-flex; background: #f1f5f9; border-radius: 8px; padding: 2px; gap: 2px; }
.cr-days button {
  border: 0; background: transparent; border-radius: 6px; padding: 5px 11px;
  font-size: 12px; font-weight: 550; color: #64748b; cursor: pointer; font-family: inherit;
  transition: background .14s ease, color .14s ease;
}
.cr-days button:hover { color: var(--ad-ink); }
.cr-days button.on { background: #fff; color: var(--ad-brand); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }

.cr-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.cr-kpi-item {
  background: #f8fafc; border: 1px solid var(--ad-line); border-radius: 10px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 3px;
  border-left: 3px solid #cbd5e1;
}
.cr-kpi-item span { font-size: 11.5px; color: #8593a8; }
.cr-kpi-item b { font-size: 20px; font-weight: 700; color: var(--ad-ink); letter-spacing: -.3px; }
.cr-kpi-item em { font-size: 11px; font-style: normal; color: #a3aec2; }
.cr-kpi-item.real { border-left-color: #3355ff; }
.cr-kpi-item.bot { border-left-color: #f97316; }
.cr-kpi-item.tool { border-left-color: #94a3b8; }
.cr-kpi-item.ratio { border-left-color: #dc2626; }

/* 每日趋势柱状 */
.cr-chart {
  display: flex; align-items: flex-end; gap: 6px; height: 190px;
  padding: 10px 2px 0; overflow-x: auto;
}
.cr-bar-col { flex: 1 1 0; min-width: 16px; display: flex; flex-direction: column; align-items: center; height: 100%; }
.cr-bar-stack {
  width: 100%; max-width: 30px; display: flex; flex-direction: column-reverse;
  border-radius: 4px 4px 2px 2px; overflow: hidden; min-height: 2px;
  background: #eef1f7; align-self: flex-end;
}
.cr-bar-bot { background: #fdba74; }
.cr-bar-real { background: #3355ff; }
.cr-bar-x { font-size: 10px; color: #a3aec2; margin-top: 5px; white-space: nowrap; }

/* 来源明细 */
.cr-list { display: flex; flex-direction: column; gap: 7px; }
.cr-row {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border: 1px solid var(--ad-line); border-radius: 9px; background: #fff;
}
.cr-tag {
  flex: 0 0 auto; font-size: 10.5px; font-weight: 700; border-radius: 5px; padding: 2px 7px;
}
.cr-tag.bot { color: #c2410c; background: #fff7ed; }
.cr-tag.tool { color: #475569; background: #f1f5f9; }
.cr-row-main { flex: 1 1 auto; min-width: 0; }
.cr-row-name { font-size: 13px; font-weight: 600; color: var(--ad-ink); display: flex; align-items: center; gap: 7px; }
.cr-row-group { font-size: 10.5px; font-weight: 600; color: #8593a8; background: #f1f5f9; border-radius: 4px; padding: 1px 6px; }
.cr-row-meta { font-size: 11.5px; color: #8593a8; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-row-share { flex: 0 0 96px; display: flex; align-items: center; gap: 7px; }
.cr-row-share span { font-size: 11.5px; color: #64748b; min-width: 30px; text-align: right; }
.cr-share-bar { flex: 1 1 auto; height: 5px; border-radius: 3px; background: #eef1f7; overflow: hidden; }
.cr-share-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #f97316, #fb923c); }

.cr-devices { display: flex; flex-direction: column; gap: 9px; }
.cr-dev { display: flex; align-items: center; gap: 11px; font-size: 12.5px; color: #64748b; }
.cr-dev > span { flex: 0 0 60px; }
.cr-dev > b { flex: 0 0 60px; text-align: right; color: var(--ad-ink); font-weight: 600; }
.cr-dev .cr-share-bar i { background: linear-gradient(90deg, #3355ff, #6a5cff); }

/* 主题外观 */
.th-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 11px; }
.th-card {
  border: 1px solid var(--ad-line); border-radius: 10px; padding: 10px;
  cursor: pointer; background: #fff; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.th-card:hover { border-color: #c7d2fe; box-shadow: 0 4px 14px rgba(15, 23, 42, .08); }
.th-card.on { border-color: var(--ad-brand); box-shadow: 0 0 0 2px rgba(51, 85, 255, .16); }
.th-swatch { height: 44px; border-radius: 7px; margin-bottom: 8px; }
.th-card-name { font-size: 12.5px; font-weight: 650; color: var(--ad-ink); }
.th-card-desc { font-size: 11px; color: #8593a8; margin-top: 2px; line-height: 1.45; }

.th-color { display: flex; align-items: center; gap: 8px; }
.th-color input[type=color] {
  width: 38px; height: 36px; flex: 0 0 38px; padding: 2px; border: 1px solid var(--ad-line);
  border-radius: 8px; background: #fff; cursor: pointer;
}
.th-color .input { flex: 1 1 auto; min-width: 0; }
.th-css { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.6; resize: vertical; }

@media (max-width: 700px) {
  .cr-row { flex-wrap: wrap; }
  .cr-row-share { flex: 1 0 100%; }
  .cr-chart { height: 150px; }
  .th-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* ==================== V1.7.0 视频封面托管 ==================== */
.vd-file{display:none}
.vd-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  padding:30px 20px;border:1.5px dashed var(--line,#e3e8f0);border-radius:14px;cursor:pointer;
  background:#fafbff;transition:.18s;color:#64748b;text-align:center}
.vd-drop:hover{border-color:var(--brand,#7c3aed);background:#f6f3ff;color:var(--brand,#7c3aed)}
.vd-drop svg{width:34px;height:34px;opacity:.75}
.vd-drop b{font-size:14px;font-weight:600;color:#334155}
.vd-drop:hover b{color:var(--brand,#7c3aed)}
.vd-drop span{font-size:12.5px;color:#94a3b8}
.vd-up{margin-top:12px;padding:9px 13px;border-radius:10px;font-size:13px;line-height:1.5}
.vd-up.busy{background:#eef3ff;color:#3b6fe0}
.vd-up.ok{background:#eafaf0;color:#12805a}
.vd-up.err{background:#fdeeee;color:#c62828}
.vd-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(268px,1fr));gap:16px}
.vd-card{border:1px solid var(--line,#e8ecf3);border-radius:14px;overflow:hidden;background:#fff;
  display:flex;flex-direction:column;transition:.18s}
.vd-card:hover{border-color:#c9d2e3;box-shadow:0 6px 20px rgba(15,23,42,.08)}
.vd-thumb{position:relative;aspect-ratio:16/9;background:#0f172a;overflow:hidden}
.vd-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.vd-dur{position:absolute;right:8px;bottom:8px;padding:2px 7px;border-radius:6px;
  background:rgba(15,23,42,.78);color:#fff;font-size:11.5px;font-variant-numeric:tabular-nums}
.vd-badge{position:absolute;left:8px;top:8px;padding:2px 7px;border-radius:6px;
  background:rgba(124,58,237,.88);color:#fff;font-size:11px}
.vd-body{padding:12px 13px 13px;display:flex;flex-direction:column;gap:7px;flex:1}
.vd-name{font-size:13.5px;font-weight:600;color:#1e293b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vd-meta{font-size:12px;color:#94a3b8}
.vd-acts{margin-top:auto;display:flex;flex-wrap:wrap;gap:6px}

/* ==================== V1.7.0 短链二维码 ==================== */
.ln-form{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px}
.ln-form .col{display:flex;flex-direction:column;gap:6px;min-width:0}
.ln-form .col.full{grid-column:1 / -1}
.ln-form label{font-size:12.5px;font-weight:600;color:#475569}
@media(max-width:760px){.ln-form{grid-template-columns:1fr}}
.ln-list{display:flex;flex-direction:column;gap:10px}
.ln-row{display:flex;align-items:center;gap:14px;padding:12px 14px;border:1px solid var(--line,#e8ecf3);
  border-radius:12px;background:#fff;transition:.16s}
.ln-row:hover{border-color:#c9d2e3;background:#fcfdff}
.ln-code{flex:0 0 auto;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12.5px;
  padding:5px 9px;border-radius:8px;background:#f1f5f9;color:#334155;white-space:nowrap}
.ln-main{flex:1 1 auto;min-width:0}
.ln-title{font-size:13.5px;font-weight:600;color:#1e293b;display:flex;align-items:center;gap:7px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ln-off{flex:0 0 auto;padding:1px 6px;border-radius:5px;background:#fdeeee;color:#c62828;font-size:11px;font-weight:500}
.ln-target{font-size:12.5px;color:#5b6b82;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px}
.ln-meta{font-size:11.5px;color:#94a3b8;margin-top:3px}
.ln-acts{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
@media(max-width:900px){.ln-row{flex-wrap:wrap}.ln-acts{width:100%;justify-content:flex-start}}
.ln-qr-card{max-width:400px}
.ln-qr-box{margin:14px auto 10px;width:240px;height:240px;padding:10px;border:1px solid var(--line,#e8ecf3);
  border-radius:14px;background:#fff;display:flex;align-items:center;justify-content:center}
.ln-qr-box img{width:100%;height:100%;object-fit:contain;display:block}
.ln-qr-url{text-align:center;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px;
  color:#5b6b82;word-break:break-all;padding:0 6px 12px}

/* ==================== V1.8.0 标签管理 ==================== */
.tg-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:14px;flex-wrap:wrap}
.tg-search{max-width:280px;height:34px}
.tg-toolbar .hint a{color:var(--brand,#7c3aed);text-decoration:none;margin-left:4px}
.tg-cloud{display:flex;flex-wrap:wrap;gap:9px}
.tg-chip{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 6px 0 11px;
  border:1px solid var(--line,#e8ecf3);border-radius:9px;background:#f8fafc;color:#334155;
  font-size:12.5px;transition:.16s;max-width:100%}
.tg-chip:hover{background:#fff;border-color:#c9d2e3;box-shadow:0 2px 8px rgba(15,23,42,.06)}
.tg-dot{width:7px;height:7px;border-radius:50%;flex:0 0 auto}
.tg-name{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:550}
.tg-cnt{flex:0 0 auto;min-width:20px;text-align:center;padding:0 6px;height:19px;line-height:19px;
  border-radius:6px;background:rgba(15,23,42,.07);font-size:11px;color:#64748b;font-variant-numeric:tabular-nums}
.tg-ops{display:none;align-items:center;gap:2px;padding-left:3px;border-left:1px solid rgba(15,23,42,.09)}
.tg-chip:hover .tg-ops{display:inline-flex}
.tg-ops a{font-size:11.5px;color:#64748b;text-decoration:none;padding:2px 5px;border-radius:5px;white-space:nowrap}
.tg-ops a:hover{background:rgba(51,85,255,.1);color:#3355ff}
.tg-ops a.danger:hover{background:rgba(239,68,68,.12);color:#ef4444}
.tg-form{display:flex;flex-direction:column;gap:6px;margin:14px 0 4px}
.tg-form label{font-size:12.5px;font-weight:600;color:#475569}
.tg-colors{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0 4px}
.tg-swatch{width:30px;height:30px;border-radius:9px;border:2px solid transparent;cursor:pointer;
  padding:0;transition:.15s;box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)}
.tg-swatch:hover{transform:translateY(-1px)}
.tg-swatch.on{border-color:#0f172a;box-shadow:0 0 0 3px rgba(15,23,42,.12)}
@media(max-width:640px){.tg-ops{display:inline-flex}.tg-name{max-width:110px}}


/* ==================== V1.9.0 回收站 / 批量整理 ==================== */
.tr-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px}
.tr-card{border:1px solid var(--line,#e8ecf3);border-radius:14px;overflow:hidden;background:#fff;
  display:flex;flex-direction:column;transition:.18s}
.tr-card:hover{border-color:#c9d2e3;box-shadow:0 6px 20px rgba(15,23,42,.08)}
.tr-thumb{position:relative;aspect-ratio:4/3;background:#0f172a;overflow:hidden}
.tr-thumb img{width:100%;height:100%;object-fit:cover;display:block;opacity:.92}
.tr-days{position:absolute;left:8px;bottom:8px;padding:2px 8px;border-radius:6px;
  background:rgba(15,23,42,.76);color:#e2e8f0;font-size:11px}
.tr-days.soon{background:rgba(239,68,68,.9);color:#fff}
.tr-body{padding:11px 12px 12px;display:flex;flex-direction:column;gap:6px;flex:1}
.tr-name{font-size:13px;font-weight:600;color:#1e293b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tr-meta{font-size:11.5px;color:#94a3b8}
.tr-acts{margin-top:auto;display:flex;gap:6px}

.rn-chips{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 14px}
.rn-chip{height:28px;padding:0 11px;border:1px solid var(--line,#e8ecf3);border-radius:8px;
  background:#f8fafc;color:#475569;font-size:12px;cursor:pointer;transition:.15s}
.rn-chip:hover{background:#fff;border-color:#c9d2e3;color:var(--brand,#7c3aed)}
.rn-chip.on{background:rgba(51,85,255,.1);border-color:rgba(51,85,255,.35);color:#3355ff;font-weight:600}
.rn-row{display:flex;gap:12px;margin-bottom:12px}
.rn-col{flex:1 1 0;display:flex;flex-direction:column;gap:6px;min-width:0}
.rn-col label{font-size:12.5px;font-weight:600;color:#475569}
.rn-preview{margin-top:12px;border:1px solid var(--line,#e8ecf3);border-radius:11px;
  background:#fafbff;padding:10px 12px;display:flex;flex-direction:column;gap:7px;max-height:220px;overflow:auto}
.rn-pv{display:flex;align-items:center;gap:8px;font-size:12px;min-width:0}
.rn-from{color:#94a3b8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;min-width:0}
.rn-arrow{flex:0 0 auto;color:#c7d0de}
.rn-to{color:#0f766e;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;min-width:0}
@media(max-width:640px){.tr-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.rn-row{flex-direction:column}}

/* ===== V1.10.0 无限滚动 + 灯箱手势 + PWA ===== */
.sq-morebar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 12px 26px; font-size: 12.5px; color: var(--muted); }
.sq-morebar .muted { font-size: 11.5px; }
.sq-morehint { font-size: 11.5px; color: var(--muted); }
.sq-more-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(0,0,0,0.12); border-top-color: var(--brand); animation: sqspin 0.7s linear infinite; display: inline-block; }
@keyframes sqspin { to { transform: rotate(360deg); } }
.lb-stage { position: relative; overflow: hidden; touch-action: none; }
.lb-img { will-change: transform; transform-origin: center center; user-select: none; -webkit-user-drag: none; }
.lb-stage.zoomed .lb-img { cursor: grab; }
.lb-zoom { color: #fff; background: rgba(255,255,255,0.14); border-radius: 999px; padding: 2px 8px; font-variant-numeric: tabular-nums; }
.lb-swipe { position: absolute; top: 50%; left: 50%; transform-origin: center; margin: -22px 0 0 -60px; width: 120px; text-align: center; color: #fff; font-size: 13px; letter-spacing: 1px; background: rgba(255,255,255,0.12); border-radius: 999px; padding: 8px 0; pointer-events: none; }
.lb-swipe.prev { left: 50%; }
@media (hover: none) { .lb-nav { display: none; } }
@media (max-width: 640px) {
  .lb { padding: 8px 8px 10px; }
  .lb-bar { gap: 8px; font-size: 11px; padding-top: 8px; }
  .lb-bar .btn { padding: 5px 10px; font-size: 11.5px; }
  .lb-close { top: 8px; right: 10px; width: 34px; height: 34px; font-size: 22px; }
  .sq-morebar { padding: 14px 10px 22px; }
}

/* ===== V1.11.0 运维监控 ===== */
.mn-tabs { display: flex; gap: 6px; padding: 10px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.mn-tab { border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 999px; padding: 6px 16px; font-size: 13px; cursor: pointer; transition: .15s; }
.mn-tab:hover { border-color: var(--brand); color: var(--brand); }
.mn-tab.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.mn-alerts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.mn-alert { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; font-size: 13px; }
.mn-alert b { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,0.6); }
.mn-alert em { margin-left: auto; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.mn-alert.warn { background: #fff7e6; color: #a46500; border: 1px solid #ffe0a3; }
.mn-alert.critical { background: #fef1f1; color: #b32020; border: 1px solid #ffc9c9; }
.mn-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.mn-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; }
.mn-k { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.mn-v { font-size: 26px; font-weight: 700; line-height: 1.15; color: var(--text); font-variant-numeric: tabular-nums; }
.mn-v.sm { font-size: 16px; }
.mn-v.warn { color: #a46500; }
.mn-v.bad { color: #c62828; }
.mn-u { font-size: 13px; font-weight: 600; margin-left: 3px; color: var(--muted); }
.mn-s { font-size: 11.5px; color: var(--muted); margin-top: 6px; word-break: break-all; }
.mn-h4 { font-size: 14px; margin: 22px 0 10px; }
.mn-chart { display: flex; align-items: flex-end; gap: 3px; height: 130px; padding: 10px 4px 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.mn-bar { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.mn-bar-in { width: 100%; max-width: 26px; background: var(--brand); border-radius: 3px 3px 0 0; position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; transition: height .2s; }
.mn-bar-slow { display: block; width: 100%; background: #f0a020; }
.mn-bar-err { display: block; width: 100%; background: #e04a4a; }
.mn-bar-t { font-size: 9px; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.mn-table-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: auto; background: #fff; }
.mn-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mn-table th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafbfd; white-space: nowrap; }
.mn-table td { padding: 9px 12px; border-bottom: 1px solid #f2f3f7; vertical-align: middle; }
.mn-table tr:last-child td { border-bottom: none; }
.mn-table td.bad { color: #c62828; font-weight: 600; }
.mn-table td.warn { color: #a46500; }
.mn-table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; }
.mn-empty { text-align: center; color: var(--muted); padding: 26px 12px; }
.mn-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.mn-filter .input.sm { width: auto; min-width: 120px; height: 32px; font-size: 12.5px; padding: 0 10px; }
.mn-tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.mn-tag.slow, .mn-tag.warn { background: #fff3e0; color: #a46500; }
.mn-tag.error, .mn-tag.bad { background: #fdecec; color: #c62828; }
.mn-tag.ok { background: #eaf5ec; color: #2c7a3f; }
.mn-m { font-size: 11px; font-weight: 700; color: var(--brand); letter-spacing: .3px; }
.mn-path { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-q { color: var(--muted); }
.mn-more { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px; }
@media (max-width: 700px) {
  .mn-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .mn-v { font-size: 21px; }
  .mn-path { max-width: 150px; }
  .mn-chart { height: 100px; }
}

/* ===== V1.12.0 开放能力 ===== */
.oa-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.oa-head .muted { flex: 1; font-size: 12.5px; line-height: 1.6; }
.oa-head code { background: #f1f3f8; padding: 1px 5px; border-radius: 4px; font-size: 11.5px; }
.oa-list { display: flex; flex-direction: column; gap: 10px; }
.oa-row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.oa-row-main { flex: 1; min-width: 0; }
.oa-row-title { display: flex; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.oa-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #c9cdd6; }
.oa-dot.ok { background: #2fa84f; }
.oa-dot.bad { background: #e04a4a; }
.oa-dot.idle { background: #c9cdd6; }
.oa-dot.off { background: #b9bcc6; }
.oa-tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #f1f3f8; color: var(--muted); font-weight: 600; }
.oa-row-url { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; color: var(--muted); margin-top: 6px; word-break: break-all; }
.oa-row-ev { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.oa-ev { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: #eef2ff; color: #3b4fd6; font-weight: 600; }
.oa-row-meta { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.oa-row-acts { display: flex; flex-direction: column; gap: 6px; flex: none; }
.oa-dlg { width: min(560px, 94vw); max-height: 88vh; overflow-y: auto; }
.oa-evs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.oa-ev-btn { font-size: 12px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; transition: .14s; }
.oa-ev-btn:hover { border-color: var(--brand); color: var(--brand); }
.oa-ev-btn.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.oa-hint { font-size: 11.5px; color: var(--muted); margin: 6px 0 8px; }
.oa-ta { resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; height: auto; padding: 8px 10px; line-height: 1.6; }
.oa-check { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 12px 0 4px; cursor: pointer; }
.mn-filter .btn.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
@media (max-width: 700px) {
  .oa-row { flex-direction: column; }
  .oa-row-acts { flex-direction: row; width: 100%; }
  .oa-head { flex-direction: column; align-items: flex-start; }
}

/* ===== V1.13 UI 统一层：彻底接管原生控件外观 =====
   原生 select / checkbox / radio / file / range 在 Windows Chrome 里默认渲染成
   系统灰白控件，和全站玻璃拟态风格割裂。这里统一 appearance:none 重绘，
   全站不再出现任何系统原生控件。 */

/* ---------- select：自绘箭头 + 与 .input 完全一致 ---------- */
select,
select.input {
  -webkit-appearance: none; appearance: none;
  cursor: pointer; padding-right: 34px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.6 6 6.4l5-4.8' fill='none' stroke='%2362708a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 11px 7px;
  text-overflow: ellipsis;
}
select::-ms-expand { display: none; }
select option { color: var(--fg); background: #fff; font-size: 14px; }
.ad-panel select,
.ad-panel select.input,
.dlg-card select {
  -webkit-appearance: none; appearance: none; padding-right: 32px;
  background-repeat: no-repeat; background-position: right 11px center; background-size: 10px 6px;
}
.sel-sm, select.sel-sm { height: 32px; padding: 0 30px 0 10px; border-radius: 8px; font-size: 12.5px; background-position: right 10px center; }

/* ---------- checkbox：自绘方框 + 勾 ---------- */
input[type=checkbox] {
  -webkit-appearance: none; appearance: none;
  width: 17px; height: 17px; flex: 0 0 auto; margin: 0;
  border: 1.6px solid #cfd6e4; border-radius: 5px; background: #fff;
  cursor: pointer; position: relative; vertical-align: -3px;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
input[type=checkbox]:hover { border-color: #a8b3c9; }
input[type=checkbox]:checked,
input[type=checkbox]:indeterminate { background: var(--brand-grad); border-color: transparent; box-shadow: 0 2px 7px rgba(47,107,255,.34); }
input[type=checkbox]:checked::after {
  content: ""; position: absolute; left: 4.6px; top: 1.4px; width: 4.6px; height: 8.6px;
  border: 2px solid #fff; border-top: 0; border-left: 0; border-radius: 1px;
  transform: rotate(42deg);
}
input[type=checkbox]:indeterminate::after {
  content: ""; position: absolute; left: 3px; top: 6.4px; width: 8px; height: 2px;
  background: #fff; border-radius: 2px;
}
input[type=checkbox]:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
input[type=checkbox][disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- radio：自绘圆点 ---------- */
input[type=radio] {
  -webkit-appearance: none; appearance: none;
  width: 17px; height: 17px; flex: 0 0 auto; margin: 0;
  border: 1.6px solid #cfd6e4; border-radius: 50%; background: #fff;
  cursor: pointer; position: relative; vertical-align: -3px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input[type=radio]:hover { border-color: #a8b3c9; }
input[type=radio]:checked { border-color: var(--brand); border-width: 5px; box-shadow: 0 2px 7px rgba(47,107,255,.28); }
input[type=radio]:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }

/* ---------- range：自绘滑杆 ---------- */
input[type=range] {
  -webkit-appearance: none; appearance: none;
  height: 22px; background: transparent; cursor: pointer;
}
input[type=range]::-webkit-slider-runnable-track {
  height: 5px; border-radius: 999px;
  background: linear-gradient(90deg, #dbe3f3, #eef1f8);
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 15px; height: 15px; margin-top: -5px;
  border-radius: 50%; background: #fff; border: 2px solid var(--brand);
  box-shadow: 0 2px 7px rgba(47,107,255,.34); transition: transform .12s ease;
}
input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.1); }
input[type=range]::-moz-range-track { height: 5px; border-radius: 999px; background: #e2e8f5; }
input[type=range]::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); }

/* ---------- file：隐藏原生按钮，换成品牌按钮 ---------- */
input[type=file] {
  -webkit-appearance: none; appearance: none;
  width: 100%; font-size: 13px; color: var(--fg-2); cursor: pointer;
}
input[type=file]::file-selector-button {
  -webkit-appearance: none; appearance: none;
  height: 34px; padding: 0 16px; margin-right: 12px;
  border: 0; border-radius: 9px; cursor: pointer;
  background: #eef2fe; color: var(--brand);
  font-family: inherit; font-size: 13px; font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
input[type=file]::file-selector-button:hover { background: #e2e9ff; color: #1f51d0; }
input[type=file]::-webkit-file-upload-button {
  -webkit-appearance: none; appearance: none;
  height: 34px; padding: 0 16px; margin-right: 12px;
  border: 0; border-radius: 9px; cursor: pointer;
  background: #eef2fe; color: var(--brand);
  font-family: inherit; font-size: 13px; font-weight: 600;
}
.wmpick input[type=file] { font-size: 13px; color: var(--fg-2); max-width: 100%; }

/* ---------- 真·开关（toggle）---------- */
.sw {
  position: relative; display: inline-flex; align-items: center; flex: 0 0 auto;
  width: 44px; height: 25px; border-radius: 999px; cursor: pointer;
  background: #dfe4ee; border: 0; padding: 0;
  transition: background .18s ease, box-shadow .18s ease;
}
.sw::after {
  content: ""; position: absolute; left: 2.5px; top: 2.5px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(15,23,42,.24);
  transition: transform .18s cubic-bezier(.4,.6,.3,1);
}
.sw.on { background: var(--brand-grad); box-shadow: 0 2px 9px rgba(47,107,255,.4); }
.sw.on::after { transform: translateX(19px); }
.sw:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.sw[aria-disabled=true] { opacity: .5; pointer-events: none; }
.sw-row {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 11px 2px; border-bottom: 1px solid var(--line);
}
.sw-row:last-child { border-bottom: 0; }
.sw-row .sw-txt { min-width: 0; }
.sw-row .sw-t { font-size: 13.5px; font-weight: 600; color: var(--fg); line-height: 1.4; }
.sw-row .sw-d { font-size: 12.5px; color: var(--fg-3); margin-top: 2px; line-height: 1.5; }

/* 勾选类行内标签统一：把原生方块换成自绘方块并垂直居中 */
.agree-check, .oa-check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
.agree-check input[type=checkbox], .oa-check input[type=checkbox] { margin: 0; }
.th-chk input[type=checkbox] { width: 17px; height: 17px; }

/* ---------- 智能裁剪独立面板（V1.13） ---------- */
.crop-tips { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0 4px; }
.crop-tip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px 6px 7px; border-radius: 999px;
  background: #f4f7ff; color: var(--fg-2); font-size: 12.5px; font-weight: 600;
}
.crop-tip b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--brand-grad); color: #fff; font-size: 11px; font-weight: 700;
}
.crop-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px;
}
.crop-cell {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer;
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.crop-cell:hover { transform: translateY(-2px); border-color: #c9d6f5; box-shadow: 0 8px 20px rgba(36,48,63,.09); }
.crop-cell.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.crop-thumb { height: 108px; background: #f4f6fb; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.crop-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.crop-name { padding: 8px 10px 0; font-size: 12.5px; font-weight: 600; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crop-meta { padding: 1px 10px 9px; font-size: 11.5px; color: var(--fg-3); }

/* V1.13 勾选行覆盖：原生方块已自绘，行内排版统一基线 */
.st-checks { gap: 18px; }
.st-checks label { gap: 8px; line-height: 1.5; }
.st-checks label span { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-req { font-style: normal; font-size: 11.5px; color: var(--fg-3); background: #f3f5fb; padding: 1px 7px; border-radius: 6px; }
.chk input[type=checkbox], .switchrow input[type=checkbox] { margin: 0; }
.chk, .switchrow { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; color: var(--fg-2); }

/* ---------- 顶栏语言切换（V2.0.0） ---------- */
.lang-pick {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 11px; border-radius: 8px; cursor: pointer;
  background: #f3f5fa; color: #475569; font-size: 12.5px; font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.lang-pick:hover { background: #e9edf7; color: #1e293b; }
.lang-menu {
  position: absolute; right: 0; top: 36px; z-index: 40; min-width: 132px;
  background: #fff; border: 1px solid #e6eaf3; border-radius: 11px; padding: 5px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .14);
}
.lang-menu a {
  display: block; padding: 8px 11px; border-radius: 8px; cursor: pointer;
  font-size: 13px; color: #475569; transition: background .13s ease, color .13s ease;
}
.lang-menu a:hover { background: #f3f6ff; color: #1e293b; }
.lang-menu a.on { background: #eef2ff; color: #3352ff; font-weight: 600; }

/* ---------- 数据迁移（V2.0.0） ---------- */
.mg-tip {
  padding: 11px 14px; border-radius: 11px; margin-bottom: 12px;
  background: #fff8ec; border: 1px solid #fde9c4;
  color: #8a5a10; font-size: 13px; line-height: 1.65;
}
.mg-tip b { color: #7a4b06; }
.mg-tip em { font-style: normal; font-weight: 600; color: #b42318; }
.mg-list { display: flex; flex-direction: column; gap: 8px; }
.mg-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px;
  background: #fff; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease;
}
.mg-row:hover { border-color: #c9d6f5; }
.mg-row.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.mg-name { font-size: 13px; font-weight: 600; color: var(--fg); word-break: break-all; }
.mg-meta { font-size: 12px; color: var(--fg-3); flex: 0 0 auto; }
.mg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.mg-card {
  padding: 12px 14px; border-radius: 11px; background: #f7f9fd; border: 1px solid #eef1f8;
  display: flex; flex-direction: column; gap: 3px;
}
.mg-card span { font-size: 12px; color: var(--fg-3); }
.mg-card b { font-size: 17px; font-weight: 700; color: var(--fg); letter-spacing: -.2px; }
.mg-tables { margin-top: 12px; display: flex; flex-direction: column; gap: 1px; }
.mg-trow {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px;
  background: #fff; border-bottom: 1px solid #f2f4f9; font-size: 12.5px;
}
.mg-trow:last-child { border-bottom: 0; }
.mg-tname { flex: 1 1 auto; min-width: 0; color: var(--fg); font-weight: 600; word-break: break-all; }
.mg-trows { flex: 0 0 auto; color: var(--fg-3); }

/* ===== V2.0.1 后台浅色磨砂玻璃 =====
   V1.4.0 的 flat-admin 重写把侧栏钉成深色 --ad-ink 并显式写了
   backdrop-filter:none 来「去掉玻璃拟态」。这里整段回滚：
   侧栏改回浅色，全场景统一为高强度半透明磨砂玻璃，只有这一种材质。 */

:root {
  /* 高强度磨砂：blur 越大越「实」，saturate 让底下的彩光透得更干净 */
  --glass-blur-hi: blur(38px) saturate(200%);
  --glass-bg-hi: rgba(255, 255, 255, 0.58);
  --glass-bg-side: rgba(255, 255, 255, 0.46);
  --glass-edge: rgba(255, 255, 255, 0.72);
  --glass-hair: rgba(148, 163, 184, 0.22);
  --glass-shadow-hi: 0 18px 48px rgba(36, 48, 63, 0.10), 0 2px 6px rgba(36, 48, 63, 0.05);
}

/* 后台外壳：让底下的柔光渐变透上来，玻璃才有东西可磨 */
.admin { background: transparent; }
.ad-body { background: transparent; }
.ad-main { background: transparent; }

/* ---------- 侧边栏：浅色磨砂玻璃 ---------- */
.ad-side {
  background: var(--glass-bg-side) !important;
  backdrop-filter: var(--glass-blur-hi) !important;
  -webkit-backdrop-filter: var(--glass-blur-hi) !important;
  border-right: 1px solid var(--glass-edge) !important;
  box-shadow: 1px 0 0 var(--glass-hair), 8px 0 32px rgba(36, 48, 63, 0.06) !important;
  color: var(--fg-2) !important;
}
.ad-side::after { display: none !important; }

.ad-brand { border-bottom: 1px solid var(--glass-hair) !important; }
.ad-brand span {
  color: var(--fg) !important;
  background: none !important; -webkit-text-fill-color: currentColor !important;
  font-weight: 700;
}
.ad-brand .ad-logo { box-shadow: 0 0 0 1px var(--glass-edge), 0 4px 12px rgba(36, 48, 63, .10) !important; }

/* 一级菜单：浅底深字，选中态用品牌渐变玻璃胶囊 */
.ad-nav a {
  color: var(--fg-2) !important;
  font-weight: 550 !important;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease !important;
}
.ad-nav a:hover {
  background: rgba(255, 255, 255, 0.72) !important;
  color: var(--fg) !important;
  box-shadow: inset 0 0 0 1px var(--glass-edge);
}
.ad-nav a.on {
  background: var(--brand-grad) !important;
  color: #fff !important; font-weight: 650 !important;
  box-shadow: 0 8px 22px rgba(47, 107, 255, 0.32) !important;
}
.ad-nav a.on .ad-ico, .ad-nav a.on > svg { opacity: 1 !important; }
.ad-nav a .ad-ico, .ad-nav a > svg { opacity: .9; }

/* 侧栏底部用户区 */
.ad-side-foot {
  border-top: 1px solid var(--glass-hair) !important;
  background: rgba(255, 255, 255, 0.34) !important;
  backdrop-filter: var(--glass-blur-hi); -webkit-backdrop-filter: var(--glass-blur-hi);
}
.ad-uname { color: var(--fg) !important; }
.ad-urole { color: var(--fg-3) !important; }
.ad-side-foot .btn.plain {
  background: rgba(255, 255, 255, 0.66) !important;
  border-color: var(--glass-edge) !important;
  color: var(--fg-2) !important;
}
.ad-side-foot .btn.plain:hover { background: #fff !important; color: var(--fg) !important; }

/* ---------- 顶栏：同样的高强度磨砂 ---------- */
.ad-header {
  background: var(--glass-bg-hi) !important;
  backdrop-filter: var(--glass-blur-hi) !important;
  -webkit-backdrop-filter: var(--glass-blur-hi) !important;
  border-bottom: 1px solid var(--glass-edge) !important;
  box-shadow: 0 1px 0 var(--glass-hair), 0 8px 26px rgba(36, 48, 63, 0.06) !important;
}
.ad-collapse, .ad-hbtn {
  background: rgba(255, 255, 255, 0.66) !important;
  border-color: var(--glass-edge) !important;
  color: var(--fg-2) !important;
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
}
.ad-collapse:hover, .ad-hbtn:hover {
  background: #fff !important; color: var(--brand) !important; border-color: #c9d6f5 !important;
}
.lang-pick {
  background: rgba(255, 255, 255, 0.66) !important;
  border: 1px solid var(--glass-edge);
  color: var(--fg-2) !important;
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
}
.lang-pick:hover { background: #fff !important; color: var(--fg) !important; }
.ad-crumb { color: var(--fg-3) !important; }
.ad-crumb b { color: var(--fg) !important; }

/* ---------- 内容卡：全部换成同一块磨砂玻璃 ---------- */
.panel-card2,
.stat-item,
.mn-card,
.mg-card,
.qa-sum-item,
.cr-kpi-item,
.bk-file,
.alb-card,
.crop-cell,
.mg-row {
  background: var(--glass-bg-hi) !important;
  backdrop-filter: var(--glass-blur-hi) !important;
  -webkit-backdrop-filter: var(--glass-blur-hi) !important;
  border: 1px solid var(--glass-edge) !important;
  box-shadow: var(--glass-shadow-hi) !important;
}
.stat-item:hover,
.alb-card:hover,
.crop-cell:hover,
.mg-row:hover {
  background: rgba(255, 255, 255, 0.70) !important;
  border-color: #c9d6f5 !important;
  box-shadow: 0 22px 54px rgba(36, 48, 63, 0.13) !important;
  transform: translateY(-2px);
}
.crop-cell.on, .mg-row.on {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px var(--brand-soft), var(--glass-shadow-hi) !important;
}

/* 卡片内的小块（分组标题条、内嵌小卡）也用玻璃，而不是纯白 */
.sec, .mn-h4 { background: none !important; }
.mg-tip {
  background: rgba(255, 249, 235, 0.72) !important;
  border-color: rgba(253, 233, 196, 0.9) !important;
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
}

/* 表格行：半透明白，让底纹透出来 */
.ad-panel table tbody tr { background: transparent; }
.ad-panel table tbody tr:hover { background: rgba(255, 255, 255, 0.56) !important; }
.ad-panel table thead th { background: rgba(255, 255, 255, 0.42) !important; }

/* 输入框在玻璃上要稍微更实一点，否则字浮不住 */
.ad-panel .input, .ad-panel textarea, .ad-panel select {
  background: rgba(255, 255, 255, 0.78) !important;
  border-color: var(--glass-hair) !important;
}
.ad-panel .input:focus, .ad-panel textarea:focus, .ad-panel select:focus {
  background: #fff !important; border-color: var(--brand) !important;
}

/* 弹窗同样用高强度磨砂，避免和背景割裂 */
.dlg-card {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: var(--glass-blur-hi) !important;
  -webkit-backdrop-filter: var(--glass-blur-hi) !important;
  border: 1px solid var(--glass-edge) !important;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22) !important;
}

/* 侧栏在窄屏抽屉形态下的遮罩保持原样 */
@media (max-width: 900px) {
  .ad-side { box-shadow: 0 0 0 100vmax rgba(15, 23, 38, 0.32) !important; }
  .admin.collapsed .ad-side { box-shadow: none !important; }
}

/* ===== V2.0.2 字体 / 侧栏留白 / 后台全局水印 ===== */

/* 1) 侧栏菜单底部留白：原规则给了 64px 底部内边距，滚到底时形成一条空白带，
      改为与顶部对称的 12px；同时关掉盖在用户卡片上的纯白渐隐条（与磨砂材质冲突） */
.ad-nav { padding-bottom: 12px !important; }
.admin.collapsed .ad-nav { padding-bottom: 12px !important; }
.ad-side::after { display: none !important; }

/* 2) 后台全局水印：仅在后台渲染，前台展示页不加 */
.admin::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MDAiIGhlaWdodD0iMjAwIj48ZyB0cmFuc2Zvcm09InJvdGF0ZSgtMjYgMjAwIDEwMCkiPjx0ZXh0IHg9IjIwMCIgeT0iMTA2IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBmb250LWZhbWlseT0iSW50ZXIsU2Vnb2UgVUksTWljcm9zb2Z0IFlhSGVpLHNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMTUiIGZvbnQtd2VpZ2h0PSI2MDAiIGxldHRlci1zcGFjaW5nPSIxIiBmaWxsPSIjNjQ3NDhiIiBmaWxsLW9wYWNpdHk9IjAuMTYiPlRhdG9JbWctVGF0b+WumOaWueWboumYn+W8gOWPkTwvdGV4dD48L2c+PC9zdmc+");
  background-repeat: repeat;
  background-size: 400px 200px;
  background-position: center center;
  opacity: 0.8;
}
/* 内容层压在水平面之上，磨砂模糊才会把水印一起虚化 */
.ad-body { position: relative; z-index: 1; }
.ad-side { z-index: 2; }

/* ===== V2.1.0 AI 巡查 ===== */
.ai-quota-note { margin-top: 12px; color: var(--fg-3); font-size: 12px; }
.ai-quota-err { margin-top: 12px; padding: 10px 12px; border-radius: 10px; color: var(--err); background: rgba(240, 68, 56, .08); font-size: 12.5px; }
.ai-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin-top: 16px; }
.ai-enabled { flex-direction: row; align-items: center; justify-content: space-between; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; min-height: 42px; }
.ai-enabled > span { margin: 0; }
.ai-enabled input { width: 17px; height: 17px; accent-color: var(--brand); }
.ai-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; margin-top: 16px; max-height: 430px; overflow: auto; padding: 2px; }
.ai-pick { position: relative; min-width: 0; cursor: pointer; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--card2); transition: border-color .18s, box-shadow .18s; }
.ai-pick.on { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(47, 107, 255, .13); }
.ai-pick input { position: absolute; z-index: 2; top: 8px; left: 8px; width: 17px; height: 17px; accent-color: var(--brand); }
.ai-pick-img { display: block; height: 94px; background: rgba(100, 116, 139, .08); }
.ai-pick-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-pick-name { display: block; padding: 8px 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-2); font-size: 11.5px; }
.ai-batches { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.ai-batch > div:first-child { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.ai-batch > div:first-child span { color: var(--fg-3); font-size: 11.5px; }
.ai-batch-progress { height: 6px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: rgba(100, 116, 139, .14); }
.ai-batch-progress i { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width .25s; }
.ai-batch-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 7px; color: var(--fg-3); font-size: 11.5px; }
.ai-filters { margin-top: 14px; }
.ai-table-wrap { margin-top: 12px; overflow-x: auto; }
.ai-table { min-width: 960px; }
.ai-result { max-width: 290px; }
.ai-reason { margin-top: 4px; color: var(--fg-3); font-size: 11.5px; line-height: 1.5; word-break: break-word; }
.ai-sub { margin-top: 3px; color: var(--fg-3); font-size: 11px; }
@media (max-width: 720px) {
  .ai-settings { grid-template-columns: 1fr; }
  .ai-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-batch > div:first-child { align-items: flex-start; flex-direction: column; gap: 3px; }
}

/* ===== V2.2.0 前台注册登录 ===== */
/* 顶栏用户区 */
.appbar-user { position: relative; display: flex; align-items: center; gap: 10px; }
.ubtn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: rgba(255, 255, 255, 0.55); border: 1px solid var(--glass-border);
  border-radius: 999px; padding: 4px 12px 4px 4px; color: var(--fg);
  font-family: inherit; font-size: 13px; font-weight: 600;
  transition: box-shadow .18s, background .18s;
}
.ubtn:hover, .ubtn.on { background: #fff; box-shadow: 0 4px 14px rgba(15, 23, 42, .1); }
.uavatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: 0 0 28px; background: rgba(100, 116, 139, .16); }
.uavatar.ucolor { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; }
.ubtn .uname { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ucaret { color: var(--fg-3); flex: 0 0 auto; }
.umenu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 40; min-width: 208px;
  background: rgba(255, 255, 255, 0.78); backdrop-filter: var(--glass-blur-hi); -webkit-backdrop-filter: var(--glass-blur-hi);
  border: 1px solid var(--glass-edge); border-radius: 14px; padding: 8px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .18); animation: rise .18s ease both;
}
.umeta { padding: 6px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.umeta .uname2 { font-size: 13.5px; font-weight: 700; color: var(--fg); }
.umeta .usub { font-size: 11.5px; color: var(--fg-3); margin-top: 2px; }
.uitem { display: block; padding: 9px 10px; border-radius: 9px; font-size: 13px; color: var(--fg-2); cursor: pointer; }
.uitem:hover { background: rgba(47, 107, 255, .09); color: var(--brand); }
.uitem.danger:hover { background: rgba(240, 68, 56, .1); color: var(--err); }

/* 登录 / 注册弹窗 */
.auth-mask {
  position: fixed; inset: 0; z-index: 320; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(15, 23, 38, 0.38); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.auth-panel {
  position: relative; width: 100%; max-width: 400px; max-height: 92vh; overflow-y: auto;
  background: rgba(255, 255, 255, 0.78); backdrop-filter: var(--glass-blur-hi); -webkit-backdrop-filter: var(--glass-blur-hi);
  border: 1px solid var(--glass-edge); border-radius: 20px; padding: 26px 26px 22px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, .26); text-align: left;
  animation: rise .22s cubic-bezier(.22, 1, .36, 1) both;
}
.auth-grip { display: none; }
.auth-x {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(100, 116, 139, .1); border: none; color: var(--fg-2);
}
.auth-x:hover { background: rgba(100, 116, 139, .18); }
.auth-tabs {
  display: flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(100, 116, 139, .1); margin-bottom: 20px;
}
.auth-tabs a {
  flex: 1; text-align: center; padding: 8px 0; border-radius: 999px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--fg-2); transition: all .18s;
}
.auth-tabs a.on { background: #fff; color: var(--brand); box-shadow: 0 2px 8px rgba(15, 23, 42, .1); }
.auth-title { font-size: 19px; font-weight: 800; color: var(--fg); }
.auth-sub { font-size: 12.5px; color: var(--fg-3); margin: 6px 0 18px; line-height: 1.55; }
.afield { display: block; margin-bottom: 14px; }
.afield > span { display: block; font-size: 12px; font-weight: 600; color: var(--fg-2); margin-bottom: 6px; }
.afield .req { color: var(--err); font-style: normal; margin-left: 3px; }
.afield .opt { color: var(--fg-3); font-style: normal; font-weight: 400; margin-left: 6px; font-size: 11px; }
.acode { display: flex; gap: 8px; align-items: center; }
.acode .input { flex: 1; min-width: 0; }
.acode .btn { flex: 0 0 auto; white-space: nowrap; }
.auth-body .err { color: var(--err); font-size: 12.5px; margin: 0 0 12px; line-height: 1.5; }
.auth-body .btn.lg { width: 100%; }
.auth-foot { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--fg-3); }
.auth-foot a { color: var(--brand); font-weight: 600; cursor: pointer; }

/* 仪表盘 */
.dash-wrap { max-width: 1160px; margin: 0 auto; }
.dash-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0 20px; }
.dstat {
  display: flex; flex-direction: column; gap: 4px; padding: 13px 15px; border-radius: 12px;
  background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}
.dstat b { font-size: 19px; font-weight: 800; color: var(--fg); }
.dstat span { font-size: 11.5px; color: var(--fg-3); }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.dash-cell {
  border-radius: 13px; overflow: hidden; background: var(--glass-bg);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
}
.dash-thumb { display: block; height: 138px; background: rgba(100, 116, 139, .08); }
.dash-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dash-meta { padding: 10px 12px 12px; }
.dash-name { font-size: 12.5px; font-weight: 600; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-sub { margin: 4px 0 8px; font-size: 11px; color: var(--fg-3); }
.dash-meta .mini-btn { font-size: 11px; padding: 3px 9px; }

/* ===== V2.2.4 仪表盘：与后台一致的侧边栏布局 ===== */
/* V2.2.6：仪表盘整页接管（隐藏站点顶栏与页脚），高度铺满视口 */
.dash-admin {
  display: flex; flex-direction: row; align-items: stretch;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  font-family: var(--font);
}
.dash-admin .ad-side { height: 100%; }
.dash-admin .ad-body { height: 100%; }
/* 折叠态：只留图标（镜像后台 .admin.collapsed 规则） */
.dash-admin.collapsed .ad-side { width: 68px; flex: 0 0 68px; }
.dash-admin.collapsed .ad-brand { justify-content: center; padding: 0; }
.dash-admin.collapsed .ad-brand span { display: none; }
.dash-admin.collapsed .ad-nav a { justify-content: center; padding: 0; gap: 0; }
.dash-admin.collapsed .ad-nav a .ad-label { display: none; }
.dash-admin.collapsed .ad-uname, .dash-admin.collapsed .ad-urole { display: none; }
.dash-admin.collapsed .ad-side-foot .ad-user { justify-content: center; padding: 6px 0 12px; }

/* 概览图表 */
.dash-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.trend-chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding: 6px 4px 0; }
.trend-chart .trend-col {
  flex: 1 1 0; min-width: 0; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  position: relative; cursor: default;
}
.trend-bar {
  width: 62%; max-width: 34px; min-height: 2px; border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #3355ff, #6a8bff);
  transition: height .3s cubic-bezier(.22, 1, .36, 1), opacity .18s;
}
.trend-bar.views { background: linear-gradient(180deg, #10b981, #34d399); }
.trend-bar:hover { opacity: .78; }
.trend-bar.zero { height: 2px; background: rgba(100, 116, 139, .22); }
.trend-num {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 700; color: #475569; white-space: nowrap;
}
.trend-axis {
  display: flex; gap: 6px; margin-top: 6px; padding: 0 4px;
}
.trend-axis span {
  flex: 1 1 0; min-width: 0; text-align: center;
  font-size: 9.5px; color: #94a3b8; white-space: nowrap; overflow: hidden;
}
/* 公开/私有占比条 */
.ratio-bar {
  display: flex; height: 16px; border-radius: 99px; overflow: hidden;
  background: rgba(100, 116, 139, .12); margin-top: 4px;
}
.ratio-seg.pub { background: linear-gradient(90deg, #3355ff, #6a8bff); }
.ratio-seg.priv { background: linear-gradient(90deg, #94a3b8, #cbd5e1); }
.ratio-seg.empty { background: rgba(100, 116, 139, .12); }
.ratio-legend { display: flex; gap: 18px; margin-top: 10px; font-size: 12px; color: #64748b; }
.ratio-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.ratio-legend .dot.pub { background: #3355ff; }
.ratio-legend .dot.priv { background: #a9b6cc; }
/* 仪表盘内置上传 */
.dash-upload { max-width: 860px; }

@media (max-width: 900px) {
  .dash-charts { grid-template-columns: 1fr; }
  .trend-axis span:nth-child(even) { visibility: hidden; }
  .trend-num { display: none; }
}

@media (max-width: 720px) {
  /* 仪表盘移动端：侧栏随全局 .ad-side 900px 规则收窄 */
  .dash-admin .ad-main { padding: 14px 12px 60px; }
  .dash-admin .ad-header { padding: 0 12px; height: 54px; flex: 0 0 54px; }
  .dash-admin .ad-crumb span:first-child, .dash-admin .ad-crumb span:nth-child(2) { display: none; }
  .dash-admin .ad-header-right .ubtn .uname { display: none; }
}

@media (max-width: 720px) {
  .ubtn .uname { display: none; }
  .ubtn { padding: 4px; }
  .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dash-thumb { height: 106px; }
  /* 移动端：登录/注册改为底部抽屉 */
  .auth-mask { align-items: flex-end; padding: 0; }
  .auth-panel {
    max-width: none; border-radius: 20px 20px 0 0; padding: 12px 20px 26px;
    max-height: 92vh; animation: sheetUp .26s cubic-bezier(.22, 1, .36, 1) both;
  }
  .auth-grip { display: block; width: 38px; height: 4px; border-radius: 99px; background: rgba(100, 116, 139, .28); margin: 0 auto 14px; }
}
@keyframes sheetUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   V2.2.10 图片管理单行化 + 齿轮操作菜单 + 全站轮廓光
   ============================================================ */

/* ---------- 图片管理：信息列单行 ---------- */
.cell-line {
  display: flex; align-items: center; gap: 7px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 12.5px; color: var(--fg-2); max-width: 480px;
}
.cell-line .ln-sep { color: var(--fg-3); opacity: .55; flex: none; }
.cell-line .pill { flex: none; }
.td-act { position: relative; width: 60px; }
.th-act { width: 60px; }
.gear-btn {
  width: 32px; height: 32px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.gear-btn svg { width: 16px; height: 16px; }
.gear-btn.on, .gear-btn:hover { color: var(--brand); border-color: #c9d6f5; background: var(--brand-soft); }
.row-menu {
  position: absolute; right: 12px; top: calc(100% - 8px); z-index: 70; min-width: 152px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: var(--glass-blur-hi); -webkit-backdrop-filter: var(--glass-blur-hi);
  border: 1px solid var(--glass-edge); border-radius: 12px; padding: 6px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, .18);
  animation: rise .16s ease both;
  text-align: left;
}
.row-menu .uitem { display: block; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; color: var(--fg-2); cursor: pointer; white-space: nowrap; }
.row-menu .uitem:hover { background: rgba(47, 107, 255, .09); color: var(--brand); }
.row-menu .uitem.danger:hover { background: rgba(240, 68, 56, .1); color: var(--err); }

/* ---------- 全站轮廓光：一圈极淡的品牌色光晕 + 内侧高光 ---------- */
.panel-card2, .stat-item, .mn-card, .mg-card, .qa-sum-item, .cr-kpi-item,
.bk-file, .alb-card, .crop-cell, .mg-row {
  box-shadow: var(--glass-shadow-hi), inset 0 0 0 1px rgba(255, 255, 255, .55), 0 0 26px rgba(47, 107, 255, .07) !important;
}
.stat-item:hover, .alb-card:hover, .crop-cell:hover, .mg-row:hover {
  box-shadow: 0 22px 54px rgba(36, 48, 63, .13), inset 0 0 0 1px rgba(255, 255, 255, .6), 0 0 32px rgba(47, 107, 255, .11) !important;
}
.crop-cell.on, .mg-row.on {
  box-shadow: 0 0 0 3px var(--brand-soft), var(--glass-shadow-hi), inset 0 0 0 1px rgba(255, 255, 255, .6), 0 0 26px rgba(47, 107, 255, .12) !important;
}
.dlg-card, .auth-panel, .umenu, .row-menu {
  box-shadow: 0 26px 70px rgba(15, 23, 38, .24), inset 0 0 0 1px rgba(255, 255, 255, .65), 0 0 34px rgba(47, 107, 255, .1) !important;
}
.ad-nav a.on {
  box-shadow: 0 8px 22px rgba(47, 107, 255, .32), 0 0 18px rgba(47, 107, 255, .2) !important;
}
.ad-side { box-shadow: 1px 0 0 var(--glass-hair), 8px 0 32px rgba(36, 48, 63, 0.06), inset 0 0 0 1px rgba(255, 255, 255, .35) !important; }
.ad-header { box-shadow: 0 1px 0 var(--glass-hair), 0 8px 26px rgba(36, 48, 63, 0.06), 0 0 24px rgba(47, 107, 255, .05) !important; }

/* 前台：广场卡片 / 相册卡 / 图片详情 / 上传区 / 主按钮 */
.sq-item { box-shadow: 0 6px 20px rgba(36, 48, 63, 0.06), inset 0 0 0 1px rgba(255, 255, 255, .5), 0 0 24px rgba(47, 107, 255, .06); }
.sq-item:hover { box-shadow: 0 14px 34px rgba(36, 48, 63, 0.12), inset 0 0 0 1px rgba(255, 255, 255, .6), 0 0 30px rgba(47, 107, 255, .1); }
.alb-card, .photo-card, .dropzone, .mn-card {
  box-shadow: 0 10px 30px rgba(36, 48, 63, 0.08), inset 0 0 0 1px rgba(255, 255, 255, .5), 0 0 26px rgba(47, 107, 255, .06);
}
.alb-card:hover, .photo-card:hover, .dropzone:hover, .dropzone.drag {
  box-shadow: 0 18px 44px rgba(36, 48, 63, 0.14), inset 0 0 0 1px rgba(255, 255, 255, .6), 0 0 34px rgba(47, 107, 255, .12);
}
.btn:not(.plain):not(.ghost):not(.dangerv) {
  box-shadow: 0 6px 16px rgba(47, 107, 255, .26), inset 0 0 0 1px rgba(255, 255, 255, .3), 0 0 18px rgba(47, 107, 255, .16);
}
button.btn.dangerv { box-shadow: 0 6px 16px rgba(240, 68, 56, 0.34), inset 0 0 0 1px rgba(255, 255, 255, .3), 0 0 18px rgba(240, 68, 56, .18); }
