/* ============================================================
   DengWeb 公共样式 —— 浅蓝色 + 70% 磨砂玻璃风格
   想调透明度只改下面这一个变量：值越小越透，越大越实
   ============================================================ */
:root {
  --glass-alpha: 0.70;            /* 玻璃面板不透明度 70% */
  --blur: 22px;                   /* 磨砂模糊半径 */
  --accent: #2b8cff;
  --accent-deep: #1e6fd0;
  --accent-soft: #7cbaff;
  --ink: #12395e;                 /* 主文字（浅色主题用深色字） */
  --ink-sub: #5b7d9e;             /* 次要文字 */
  --line: rgba(140, 190, 250, 0.42);
  --danger: #d8443c;
  --ok: #1e9e6a;
}

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

html, body {
  height: 100%;
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
}

/* ---------- 背景：浅蓝渐变 + 漂浮光斑（磨砂效果需要背景有内容才看得见） ---------- */
body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(1100px 760px at 8% 6%,   #b9ddff 0%, rgba(185, 221, 255, 0) 58%),
    radial-gradient(950px 680px at 92% 94%,  #cfe8ff 0%, rgba(207, 232, 255, 0) 60%),
    linear-gradient(135deg, #e9f5ff 0%, #d2e8ff 46%, #eaf7ff 100%);
}

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(38px);
  opacity: .62;
  pointer-events: none;
  z-index: 0;
}
.blob1 { width: 380px; height: 380px; left: 8%;  top: 12%;  background: #6fb6ff; animation: float1 15s ease-in-out infinite; }
.blob2 { width: 300px; height: 300px; right: 10%; top: 20%; background: #9ed2ff; animation: float2 18s ease-in-out infinite; }
.blob3 { width: 420px; height: 420px; left: 26%;  bottom: 4%; background: #58a6f5; animation: float3 21s ease-in-out infinite; opacity: .42; }
.blob4 { width: 240px; height: 240px; right: 22%; bottom: 16%; background: #b6e0ff; animation: float2 13s ease-in-out infinite reverse; }

@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(46px,-34px) scale(1.09); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px,38px) scale(1.12); } }
@keyframes float3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-46px) scale(.93); } }

/* ---------- 磨砂玻璃面板 ---------- */
.glass {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, var(--glass-alpha));
  backdrop-filter: blur(var(--blur)) saturate(175%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(175%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  box-shadow:
    0 24px 60px rgba(43, 140, 255, 0.20),
    0 2px 8px rgba(15, 60, 110, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

/* ---------- 登录卡片 ---------- */
.card {
  width: 100%;
  max-width: 400px;
  padding: 40px 36px 32px;
  animation: rise .5s cubic-bezier(.22,.9,.3,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.brand-icon {
  width: 46px; height: 46px; flex: 0 0 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #59a6ff, #1e6fd0);
  box-shadow: 0 8px 20px rgba(43, 140, 255, 0.36);
  display: flex; align-items: center; justify-content: center;
}
.brand-icon svg { width: 24px; height: 24px; }
.brand-text h1 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: .5px; }
.brand-text p  { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-sub); }

.field { margin-bottom: 16px; }
.field label {
  display: block; margin-bottom: 7px;
  font-size: 13px; font-weight: 600; color: var(--ink-sub);
}
.input-wrap { position: relative; }

input[type="text"], input[type="password"] {
  width: 100%;
  height: 46px;
  padding: 0 42px 0 14px;
  font-size: 14.5px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
input::placeholder { color: #9ab4cc; }
input:hover { background: rgba(255, 255, 255, 0.86); }
input:focus {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(43, 140, 255, 0.14);
}
input:disabled { opacity: .6; cursor: not-allowed; }

.eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; cursor: pointer; border-radius: 9px;
  color: #7f9fbd;
}
.eye:hover { background: rgba(43, 140, 255, 0.10); color: var(--accent); }
.eye svg { width: 18px; height: 18px; }

.btn {
  width: 100%; height: 47px; margin-top: 6px;
  font-size: 15.5px; font-weight: 600; letter-spacing: 3px;
  color: #fff;
  background: linear-gradient(135deg, #4b9dff 0%, #1e6fd0 100%);
  border: 0; border-radius: 12px; cursor: pointer;
  box-shadow: 0 10px 24px rgba(43, 140, 255, 0.34);
  transition: transform .16s, box-shadow .16s, filter .16s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:hover:not(:disabled) { transform: translateY(-1.5px); box-shadow: 0 14px 30px rgba(43, 140, 255, 0.42); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { cursor: not-allowed; filter: saturate(.6) brightness(1.04); box-shadow: none; }

.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff;
  animation: spin .7s linear infinite; display: none;
}
.btn.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.msg {
  margin-top: 14px; padding: 10px 13px;
  font-size: 13px; line-height: 1.55; border-radius: 10px;
  display: none; word-break: break-all;
}
.msg.show { display: block; animation: rise .22s both; }
.msg.err { color: #a8281f; background: rgba(255, 214, 210, 0.72); border: 1px solid rgba(216, 68, 60, 0.32); }
.msg.ok  { color: #12664a; background: rgba(198, 240, 222, 0.72); border: 1px solid rgba(30, 158, 106, 0.30); }

.foot {
  margin-top: 24px; padding-top: 16px;
  border-top: 1px solid rgba(140, 190, 250, 0.34);
  font-size: 12px; color: var(--ink-sub); text-align: center; line-height: 1.7;
}

/* 页脚 ICP 备案号链接（工信部要求：首页底部须悬挂备案号并链接至 beian.miit.gov.cn） */
.foot-icp {
  color: var(--ink-sub); text-decoration: none;
  border-bottom: 1px dashed rgba(140, 190, 250, 0.75);
  transition: color .18s ease, border-color .18s ease;
}
.foot-icp:hover, .foot-icp:focus-visible {
  color: var(--accent-deep); border-bottom-color: var(--accent-deep);
}

/* ---------- 通用次级按钮（登录页与板块弹层共用） ---------- */
.btn-plain {
  width: 100%; height: 44px;
  font-size: 14.5px; font-weight: 600; color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: background .16s, transform .16s;
}
.btn-plain:hover { background: #fff; transform: translateY(-1.5px); }

@media (max-width: 480px) {
  .card { padding: 30px 22px 24px; border-radius: 18px; }
  .brand-text h1 { font-size: 19px; }
  .modal { padding: 20px 16px 14px; }
}

/* ============================================================
   主界面（登录后工作台）
   顶部栏与板块卡片全部复用 .glass，风格与登录页一致
   ============================================================ */
body.dash {
  display: block;
  align-items: initial;
  justify-content: initial;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 26px 22px 34px;
}

/* 主界面铺满整个视口宽度：不再设 max-width，栅格随屏幕自适应（大屏也不留空白） */
.dash-shell { position: relative; z-index: 1; width: 100%; }

/* ---------- 顶部栏 ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-radius: 18px;
  animation: rise .45s cubic-bezier(.22,.9,.3,1) both;
}
.topbar .brand { margin-bottom: 0; }
.topbar-icon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; }
.topbar-icon svg { width: 21px; height: 21px; }
.topbar .brand-text h1 { font-size: 17.5px; letter-spacing: .3px; }
.topbar .brand-text p  { font-size: 12px; margin-top: 2px; }

.topbar-right { display: flex; align-items: center; gap: 12px; }

.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 15px 5px 5px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(140, 190, 250, 0.36);
  border-radius: 14px;
}
.avatar-sm {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #59a6ff, #1e6fd0);
  box-shadow: 0 6px 14px rgba(43, 140, 255, 0.30);
  color: #fff; font-size: 15px; font-weight: 700;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.3; }
.user-meta b { font-size: 13.5px; font-weight: 600; }
.user-meta i { font-style: normal; font-size: 11.5px; color: var(--ink-sub); }

.btn-ghost {
  height: 38px; padding: 0 18px;
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line); border-radius: 11px; cursor: pointer;
  transition: background .16s, transform .16s;
}
.btn-ghost:hover:not(:disabled) { background: #fff; transform: translateY(-1.5px); }
.btn-ghost:disabled { opacity: .62; cursor: not-allowed; transform: none; }

/* ---------- 板块标题行 ---------- */
.dash-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 26px 6px 14px; }
.dash-head h2 { margin: 0; font-size: 16px; letter-spacing: .5px; }
.dash-count { font-size: 12.5px; color: var(--ink-sub); }

.save-state { font-size: 12px; color: var(--ink-sub); }
.save-state.saving { color: var(--accent); }
.save-state.ok     { color: var(--ok); }
.save-state.fail   { color: var(--danger); }

.dash-tools { display: none; align-items: center; gap: 10px; margin-left: auto; }
body.editing .dash-tools { display: flex; }
.edit-hint { font-size: 12px; color: var(--ink-sub); }

.btn-ghost.primary,
.btn-ghost.active {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, #4b9dff 0%, #1e6fd0 100%);
  box-shadow: 0 8px 18px rgba(43, 140, 255, 0.30);
}
/* ⚠ 这里必须同时覆盖 .active：.btn-ghost:hover 的优先级(0,3,0) 与 .btn-ghost.active(0,2,0) 相比更高，
   若不显式覆盖，鼠标悬停时会把「激活态」按钮打回白底，配上白色文字就变成一片空白看不见字。 */
.btn-ghost.primary:hover:not(:disabled),
.btn-ghost.active:hover:not(:disabled) {
  color: #fff;
  background: linear-gradient(135deg, #5aa9ff 0%, #2478dc 100%);
}

/* ---------- 栅格容器（GridStack） ---------- */
.grid-stack { min-height: 140px; }

/* 拖拽落位时的占位块，改成蓝色虚线 */
.grid-stack-placeholder > .placeholder-content {
  background: rgba(43, 140, 255, 0.12) !important;
  border: 1.5px dashed rgba(43, 140, 255, 0.55);
  border-radius: 16px;
}
/* 内容层交给 .board 自己布局，这里不要再滚动/上底色 */
.grid-stack-item-content { overflow: hidden; background: none; }

/* ---------- 板块容器 ---------- */
.board {
  height: 100%;
  display: flex; flex-direction: column;
  border-radius: 16px; overflow: hidden;
  transition: box-shadow .18s;
}
body.editing .board {
  box-shadow: 0 0 0 1.5px rgba(43, 140, 255, 0.45), 0 16px 36px rgba(43, 140, 255, 0.20);
}

.board-head {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 11px;
  padding: 12px 13px;
  border-bottom: 1px solid rgba(140, 190, 250, 0.28);
}
body.editing .board-head { cursor: move; }
body.editing .board-head:active { cursor: grabbing; }

.board-icon {
  width: 36px; height: 36px; flex: 0 0 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 11px; color: #fff;
  background: linear-gradient(135deg, #6fb6ff, #2b8cff);
  box-shadow: 0 6px 14px rgba(43, 140, 255, 0.26);
}
.board-icon svg { width: 19px; height: 19px; }

.board-meta { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.board-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-desc {
  font-size: 11.5px; color: var(--ink-sub);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.board-actions { display: none; align-items: center; gap: 4px; flex: 0 0 auto; }
body.editing .board-actions { display: flex; }

.icon-btn {
  width: 26px; height: 26px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  color: #7f9fbd; cursor: pointer;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(140, 190, 250, 0.40); border-radius: 8px;
  transition: background .15s, color .15s, border-color .15s;
}
.icon-btn svg { width: 14px; height: 14px; }
.icon-btn:hover { background: #fff; color: var(--accent); }
.icon-btn[data-act="remove"]:hover { color: var(--danger); border-color: rgba(216, 68, 60, 0.44); }

/* 板块内容区：现在是空容器，后续往这里塞内容 */
.board-body { flex: 1; min-height: 0; overflow: auto; padding: 11px 13px 13px; }
.board-empty {
  display: flex; align-items: center; justify-content: center;
  height: 100%; min-height: 34px;
  font-size: 12px; color: #a3bcd2;
  border: 1px dashed rgba(140, 190, 250, 0.48);
  border-radius: 11px;
}

/* ---------- 缩放把手：只在编辑模式显示 ----------
   GridStack 自带规则 `.grid-stack-item.ui-resizable-autohide>.ui-resizable-handle`
   是 3 个类（优先级 0,3,0），普通写法压不住它，所以这里选择器要带上 .grid-stack-item，
   把优先级提到 0,3,1；同时 JS 侧刻意同步 ui-resizable-disabled 类 */
.ui-resizable-handle { opacity: 0; }
body.editing .grid-stack-item > .ui-resizable-handle {
  display: block;
  opacity: 1;
  background-image: none;
}
body.editing .grid-stack-item > .ui-resizable-se,
body.editing .grid-stack-item > .ui-resizable-sw {
  width: 14px; height: 14px; border-radius: 4px;
  background-color: rgba(43, 140, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.75);
}
body.editing .grid-stack-item > .ui-resizable-e,
body.editing .grid-stack-item > .ui-resizable-w,
body.editing .grid-stack-item > .ui-resizable-s {
  background-color: rgba(43, 140, 255, 0.24);
  border-radius: 3px;
}

/* ---------- 弹层：新增 / 编辑板块 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(18, 57, 94, 0.26);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.modal-mask[hidden] { display: none; }

.modal {
  width: 100%; max-width: 420px;
  max-height: 88vh; overflow: auto;
  padding: 22px 22px 18px;
  border-radius: 20px;
  animation: rise .28s cubic-bezier(.22,.9,.3,1) both;
}
.modal h3 { margin: 0 0 4px; font-size: 16px; }
.modal .modal-tip { margin: 0; font-size: 12px; color: var(--ink-sub); }
.modal label { display: block; margin: 14px 0 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-sub); }
.modal input[type="text"] { height: 42px; padding: 0 13px; }

.icon-picker { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.icon-picker button {
  height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-deep); cursor: pointer;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line); border-radius: 11px;
  transition: background .15s, transform .15s, color .15s, border-color .15s;
}
.icon-picker button svg { width: 19px; height: 19px; }
.icon-picker button:hover { background: #fff; transform: translateY(-1px); }
.icon-picker button.on {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, #6fb6ff, #2b8cff);
  box-shadow: 0 6px 14px rgba(43, 140, 255, 0.30);
}

.modal-btns { display: flex; gap: 10px; margin-top: 20px; }
.modal-btns .btn-plain,
.modal-btns .btn { flex: 1; height: 43px; margin-top: 0; font-size: 14px; letter-spacing: 1px; }

/* ---------- 轻提示 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 34px;
  transform: translate(-50%, 16px);
  padding: 11px 20px;
  font-size: 13.5px; color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px) saturate(170%);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(43, 140, 255, 0.24);
  opacity: 0; pointer-events: none; z-index: 9;
  transition: opacity .22s, transform .22s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 720px) {
  body.dash { padding: 16px 14px 26px; }
  .topbar { flex-direction: column; align-items: stretch; gap: 13px; padding: 14px 16px; }
  .topbar-right { justify-content: space-between; }
  .dash-head { margin-top: 20px; }
  .dash-tools { width: 100%; margin-left: 0; }
  .edit-hint { display: none; }
  .grid-stack { min-height: 90px; }
  .board-head { padding: 10px 11px; gap: 9px; }
  .board-icon { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; }
  .board-icon svg { width: 17px; height: 17px; }
  .board-title { font-size: 13.5px; }
  .board-desc { font-size: 11px; }
  .icon-picker { grid-template-columns: repeat(5, 1fr); }
}

/* ============================================================
   窄屏（≤1100px）：放弃 GridStack 的绝对定位，板块改为「纵向堆叠、高度随内容」
   ------------------------------------------------------------
   为什么必须这样：GridStack 切换列数时（columnOpts.breakpoints）会按
   newCol/oldCol 的比例同时缩放 x/y/w/h，12 列 → 6 列时行高被砍半
   （h=3 变 h=2），板块内容随即被裁掉；又因为 float 布局不重新密排，
   还会留下大片空洞（左侧一列空着、右侧一列继续往下排）。
   这里直接用文档流接管：宽度铺满、高度由内容决定，彻底绕开它的响应式重排。

   ⚠ 阈值 1100 必须与 home.html 中 GRID_OPTS.columnOpts.breakpoints 的第一个断点、
     以及脚本里的 NARROW_MAX 常量保持一致，三处改要一起改。
   ============================================================ */
@media (max-width: 1100px) {
  .grid-stack { display: block; height: auto !important; min-height: 0; }

  /* GridStack 用内联 left/top/width/height 定位，必须 !important 才压得住 */
  .grid-stack > .grid-stack-item {
    position: static !important;
    left: auto !important; top: auto !important;
    width: auto !important; height: auto !important;
    margin: 0 0 12px !important; padding: 0 !important;
  }
  .grid-stack > .grid-stack-item > .grid-stack-item-content {
    position: static !important;
    inset: auto !important;
    overflow: visible !important;
  }
  .grid-stack > .grid-stack-placeholder { display: none !important; }

  /* .board 原本是 height:100% 的 flex 列；改成普通块级，高度由内容撑开。
     .board-body 的 flex:1 + min-height:0 在自动高度容器里会塌成 0，必须一起改掉。 */
  .board { display: block !important; height: auto !important; overflow: visible !important; }
  .board-body {
    flex: none !important; height: auto !important;
    min-height: 0 !important; overflow: visible !important;
  }

  /* 堆叠状态下没有可拖拽的栅格，隐藏缩放手柄与拖拽光标 */
  body.editing .grid-stack-item > .ui-resizable-handle { display: none !important; }
  body.editing .board-head { cursor: default; }
  body.editing .board { box-shadow: none; }
}

/* ============================================================
   权限体系相关样式（隐藏列表 / 管理页 / 权限矩阵）
   追加于 2026-09-23，风格与上文保持一致
   ============================================================ */

/* ---------- 无权限时的空状态提示 ---------- */
.empty-tip {
  margin: 18px 6px 0;
  padding: 22px 20px;
  font-size: 13px; color: var(--ink-sub); text-align: center; line-height: 1.8;
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed rgba(140, 190, 250, 0.6);
  border-radius: 16px;
}

/* ---------- 已隐藏内容列表（主界面弹层） ---------- */
.modal-wide { max-width: 560px; }
.hidden-list { margin-top: 16px; max-height: 52vh; overflow: auto; }
.hidden-empty {
  padding: 26px 10px; text-align: center;
  font-size: 13px; color: #a3bcd2;
}
.hidden-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line); border-radius: 13px;
}
.hidden-icon {
  width: 32px; height: 32px; flex: 0 0 32px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; border-radius: 10px;
  background: linear-gradient(135deg, #a9c9ea, #7fa9d6);
}
.hidden-icon svg { width: 16px; height: 16px; }
.hidden-meta { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.hidden-meta b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hidden-meta i { font-style: normal; font-size: 11.5px; color: var(--ink-sub); }
.hidden-row .btn-ghost { height: 32px; padding: 0 13px; font-size: 12.5px; flex: 0 0 auto; }

/* ============================================================
   用户管理页（admin.html）
   ============================================================ */
.admin-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 24px 6px 0; }

.tabs { display: flex; gap: 8px; margin: 0 6px 16px; }
.tab {
  height: 38px; padding: 0 20px;
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--accent-deep); cursor: pointer;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line); border-radius: 11px;
  transition: background .16s, color .16s;
}
.tab:hover { background: #fff; }
.tab.on {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, #4b9dff 0%, #1e6fd0 100%);
  box-shadow: 0 8px 18px rgba(43, 140, 255, 0.30);
}

.panel { padding: 20px 20px 18px; border-radius: 18px; }
.panel[hidden] { display: none; }
.panel-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.panel-title h3 { margin: 0; font-size: 15.5px; }
.panel-title .panel-tools { margin-left: auto; display: flex; gap: 10px; }
.panel-hint { font-size: 12px; color: var(--ink-sub); margin: -6px 0 14px; line-height: 1.7; }

/* ---------- 数据表格 ---------- */
.table-wrap { overflow-x: auto; border-radius: 13px; border: 1px solid rgba(140, 190, 250, 0.34); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; background: rgba(255, 255, 255, 0.5); }
table.data th, table.data td { padding: 10px 12px; text-align: left; white-space: nowrap; }
table.data th {
  font-size: 12.5px; font-weight: 600; color: var(--ink-sub);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(140, 190, 250, 0.34);
}
table.data td { border-bottom: 1px solid rgba(140, 190, 250, 0.20); }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgba(255, 255, 255, 0.72); }
table.data .cell-actions { display: flex; gap: 6px; }
table.data .mini-btn {
  height: 30px; padding: 0 12px;
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--accent-deep); cursor: pointer;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line); border-radius: 9px;
  transition: background .15s, color .15s, border-color .15s;
}
table.data .mini-btn:hover { background: #fff; }
table.data .mini-btn.danger { color: var(--danger); border-color: rgba(216, 68, 60, 0.38); }
table.data .mini-btn.danger:hover { background: rgba(255, 236, 234, 0.9); }

/* ---------- 状态徽标 ---------- */
.badge {
  display: inline-block; padding: 2px 9px;
  font-size: 11.5px; font-weight: 600; border-radius: 8px;
  background: rgba(43, 140, 255, 0.12); color: var(--accent-deep);
  border: 1px solid rgba(43, 140, 255, 0.26);
}
.badge.ok { background: rgba(30, 158, 106, 0.12); color: #12724e; border-color: rgba(30, 158, 106, 0.26); }
.badge.off { background: rgba(150, 150, 150, 0.14); color: #61748a; border-color: rgba(120, 140, 160, 0.26); }
.badge.warn { background: rgba(230, 150, 40, 0.13); color: #8a5a08; border-color: rgba(230, 150, 40, 0.28); }
.badge-wrap { display: flex; flex-wrap: wrap; gap: 5px; }

/* ---------- 权限勾选矩阵（11 板块 × 4 操作） ---------- */
.perm-matrix { margin-top: 10px; border: 1px solid rgba(140, 190, 250, 0.34); border-radius: 13px; overflow: hidden; }
.perm-row {
  display: grid; grid-template-columns: 1.5fr repeat(4, 1fr);
  align-items: center;
}
.perm-row + .perm-row { border-top: 1px solid rgba(140, 190, 250, 0.20); }
.perm-row.head {
  font-size: 12.5px; font-weight: 600; color: var(--ink-sub);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(140, 190, 250, 0.34);
}
.perm-row > div { padding: 9px 12px; font-size: 13px; }
.perm-row.head > div { text-align: center; }
.perm-row.head > div:first-child { text-align: left; }
.perm-row .perm-name { font-weight: 600; }
.perm-row .perm-name small { display: block; font-weight: 400; font-size: 11px; color: var(--ink-sub); }
.perm-cell { display: flex; align-items: center; justify-content: center; }
.perm-cell input[type="checkbox"] {
  width: 17px; height: 17px; margin: 0; cursor: pointer;
  accent-color: var(--accent);
}
.perm-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.perm-quick .mini-btn { height: 32px; padding: 0 14px; }

/* ---------- 权限位卡片列表 ---------- */
.role-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.role-card {
  padding: 14px 15px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
}
.role-card h4 { margin: 0 0 4px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.role-card p { margin: 0 0 10px; font-size: 12px; color: var(--ink-sub); line-height: 1.6; min-height: 34px; }
.role-card .role-foot { display: flex; align-items: center; gap: 8px; }
.role-card .role-foot .mini-btn { height: 30px; padding: 0 12px; font-size: 12.5px; }
.role-stat { font-size: 11.5px; color: var(--ink-sub); margin-right: auto; }

/* 分配权限位时的多选列表 */
.role-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 6px; }
.role-pick {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 10px 12px; cursor: pointer;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line); border-radius: 12px;
  transition: background .15s, border-color .15s;
}
.role-pick:hover { background: #fff; }
.role-pick.on { background: rgba(43, 140, 255, 0.10); border-color: var(--accent); }
.role-pick input[type="checkbox"] { width: 16px; height: 16px; margin: 2px 0 0; cursor: pointer; accent-color: var(--accent); }
.role-pick span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.role-pick b { font-size: 13px; font-weight: 600; }
.role-pick i { font-style: normal; font-size: 11px; color: var(--ink-sub); line-height: 1.5; }

/* 管理页表单里的下拉框与多行输入 */
select, textarea {
  width: 100%; font-family: inherit; font-size: 14px; color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line); border-radius: 12px;
  outline: none; transition: border-color .18s, box-shadow .18s;
}
select { height: 42px; padding: 0 12px; }
textarea { padding: 10px 12px; resize: vertical; min-height: 66px; }
select:focus, textarea:focus {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(43, 140, 255, 0.14);
}

@media (max-width: 720px) {
  .admin-head { margin-top: 18px; }
  .panel { padding: 16px 14px 14px; }
  .perm-row { grid-template-columns: 1.2fr repeat(4, 1fr); }
  .perm-row > div { padding: 8px 6px; font-size: 12px; }
  .role-list { grid-template-columns: 1fr; }
  .role-picker { grid-template-columns: 1fr; }
  .panel-title .panel-tools { width: 100%; margin-left: 0; }
}

/* ============================================================
   相册模块 + 板块通用分页小点
   ------------------------------------------------------------
   1) 分页小点：板块内容超出容器高度时，容器下方居中显示小圆点切页
   2) 相册板块：相册卡片（四宫格封面 + 照片数 + 占用空间）+ 新建入口
   3) 相册详情层：大图标 / 列表 / 详细 三种视图、批量选择与操作、导入导出
   4) 照片大图预览层
   变量沿用 app.css 顶部 :root（--accent / --ink / --ink-sub / --line / --danger）
   ============================================================ */

/* ---------- 板块分页小点（容器下方居中） ---------- */
/* 固定 20px 高：JS 分页时按这个值预留空间，保证小点出现后内容不会被顶出可视区 */
.pager { flex: none; display: flex; justify-content: center; align-items: center; gap: 6px; height: 20px; overflow: hidden; }
.pager[hidden] { display: none !important; }
.pager button {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(43, 140, 255, 0.26); cursor: pointer;
  transition: width .18s, background .18s, border-radius .18s;
}
.pager button:hover { background: rgba(43, 140, 255, 0.52); }
.pager button.on { width: 16px; border-radius: 4px; background: var(--accent); }
.pager .pager-txt { font-size: 11px; color: var(--ink-sub); margin-left: 2px; }

/* 分页生效时内容区改为裁剪，由小点切页；未分页时仍是原来的滚动容器 */
.board-body.paged { overflow: hidden; }
/* 分页包装层：撑满内容区，保证原来 height:100% 的子元素（如 .board-empty）不变形 */
.board-body > .pg-in { height: 100%; }
/* 固定头部（标记 .pg-fixed 的元素，如相册的概览行）：不参与分页，永远留在内容区顶部 */
.board-body.has-fixed { display: flex; flex-direction: column; }
.board-body.has-fixed > .pg-in { flex: 1 1 auto; min-height: 0; height: auto; }

/* ---------- 相册板块：概览 + 卡片 ---------- */
.album-sum { font-size: 11.5px; color: var(--ink-sub); margin-bottom: 8px; line-height: 1.5; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }

.album-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(180, 210, 240, 0.75); border-radius: 12px;
  background: rgba(255, 255, 255, 0.72); cursor: pointer;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.album-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(43, 140, 255, 0.16); border-color: rgba(43, 140, 255, 0.45); }
.album-card.drop-on { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(43, 140, 255, 0.3); }

.album-cover {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 1px; background: rgba(198, 219, 240, 0.9); aspect-ratio: 1 / 1; width: 100%;
}
.album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-cover .cv-empty {
  grid-column: 1 / -1; grid-row: 1 / -1; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eaf3fd, #dceaf9); color: #9dbcd8; font-size: 11px;
}
.album-cover.n1 img { grid-column: 1 / -1; grid-row: 1 / -1; }
.album-cover.n2 img { grid-row: 1 / -1; }
.album-cover.n3 img:first-child { grid-row: 1 / -1; }

.album-foot { padding: 6px 8px 7px; min-width: 0; }
.album-name { font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album-info { margin-top: 2px; font-size: 11px; color: var(--ink-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.album-tools { position: absolute; top: 5px; right: 5px; display: none; gap: 4px; z-index: 2; }
.album-card:hover .album-tools, body.editing .album-tools { display: flex; }
.album-tools button {
  width: 22px; height: 22px; padding: 0; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 7px; cursor: pointer; color: #4b7ba8;
  background: rgba(255, 255, 255, 0.88); box-shadow: 0 2px 6px rgba(20, 60, 110, 0.18);
}
.album-tools button:hover { color: var(--accent); }
.album-tools button.del:hover { color: var(--danger); }
.album-tools svg { width: 13px; height: 13px; }

.album-new {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  min-height: 118px; border: 1px dashed rgba(43, 140, 255, 0.45); border-radius: 12px;
  background: rgba(255, 255, 255, 0.42); color: var(--accent); cursor: pointer;
  font-size: 12px; font-weight: 600; transition: background .16s, border-color .16s;
}
.album-new:hover { background: rgba(43, 140, 255, 0.09); border-color: var(--accent); }
.album-new svg { width: 22px; height: 22px; }

/* ---------- 相册共享：卡片角标 ---------- */
.album-share-badge {
  position: absolute; top: 5px; left: 5px; z-index: 2;
  max-width: calc(100% - 62px); padding: 2px 7px;
  font-size: 10.5px; font-weight: 600; line-height: 1.5; letter-spacing: .2px;
  color: #1e6fd0; background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(43, 140, 255, 0.42); border-radius: 999px;
  box-shadow: 0 2px 6px rgba(20, 60, 110, 0.16);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;   /* 别挡住底下的封面点击 */
}
.album-share-badge.pub { color: #12664a; border-color: rgba(30, 158, 106, 0.44); background: rgba(238, 252, 245, 0.94); }
.album-share-badge.in { color: #8a5a12; border-color: rgba(214, 158, 42, 0.48); background: rgba(255, 250, 238, 0.94); max-width: calc(100% - 12px); }
.album-card.in-shared { border-style: dashed; }

/* ---------- 相册共享：弹层 ---------- */
.as-vis { display: grid; gap: 7px; margin-top: 6px; }
.as-vis .as-opt {
  display: flex; align-items: flex-start; gap: 9px; margin: 0;
  padding: 9px 11px; font-weight: 400; color: var(--ink);
  background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer; transition: background .15s, border-color .15s;
}
.as-vis .as-opt:hover { background: #fff; }
.as-vis .as-opt input[type="radio"] {
  width: 16px; height: 16px; margin: 2px 0 0; flex: none; cursor: pointer; accent-color: var(--accent);
}
.as-vis .as-opt b { display: block; font-size: 13px; font-weight: 600; }
.as-vis .as-opt em { display: block; margin-top: 1px; font-size: 11.5px; font-style: normal; color: var(--ink-sub); }
.as-vis .as-opt:has(input:checked) { background: rgba(43, 140, 255, 0.10); border-color: var(--accent); }

.as-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.as-pick.off { opacity: .42; pointer-events: none; }   /* private / all 时名单无意义 */
.as-col { min-width: 0; }
.as-h { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-sub); }
.as-h .as-n { font-size: 11px; font-weight: 400; color: var(--accent); }
.as-list {
  position: relative;   /* 让 .as-item 的 offsetTop 以本容器为基准，好把已勾选行滚进视野 */
  max-height: 174px; overflow: auto; padding: 4px;
  background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line); border-radius: 12px;
}
.as-item {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 7px;
  font-size: 12.5px; font-weight: 400; color: var(--ink);
  border-radius: 8px; cursor: pointer;
}
.as-item:hover { background: rgba(43, 140, 255, 0.09); }
.as-item input[type="checkbox"] { width: 15px; height: 15px; margin: 0; flex: none; cursor: pointer; accent-color: var(--accent); }
.as-item span { min-width: 0; display: flex; align-items: baseline; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-item i { font-style: normal; font-size: 10.5px; color: var(--ink-sub); }
.as-load { padding: 8px 4px; font-size: 12px; color: var(--ink-sub); }

/* 只读相册：导入相关的整条控件直接不显示（JS 控 hidden） */
.av-bar [hidden], .av-selbar [hidden] { display: none !important; }

/* ---------- 相册详情层 ---------- */
.av-mask { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; background: rgba(238, 245, 253, 0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.av-mask[hidden] { display: none !important; }

.av-head { flex: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 16px; border-bottom: 1px solid rgba(190, 215, 240, 0.7); background: rgba(255, 255, 255, 0.72); }
.av-back { display: inline-flex; align-items: center; gap: 4px; }
.av-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.av-sub { font-size: 12px; color: var(--ink-sub); }
.av-spacer { margin-left: auto; }

.av-modes { display: inline-flex; gap: 2px; padding: 2px; border-radius: 9px; background: rgba(43, 140, 255, 0.1); }
.av-modes button {
  border: 0; background: transparent; color: var(--ink-sub); cursor: pointer;
  padding: 4px 10px; border-radius: 7px; font-size: 12px;
}
.av-modes button.on { background: var(--accent); color: #fff; font-weight: 600; }

.av-input, .av-select, .av-bar select, .av-selbar select {
  padding: 5px 8px; border: 1px solid rgba(180, 210, 240, 0.9); border-radius: 8px;
  background: #fff; color: var(--ink); font-size: 12px; max-width: 200px;
}
.av-input { width: 160px; }

.av-bar { flex: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 16px; border-bottom: 1px solid rgba(190, 215, 240, 0.7); background: rgba(255, 255, 255, 0.5); }
.av-bar .av-lab { font-size: 12px; color: var(--ink-sub); }
.av-bar .sep { width: 1px; height: 18px; background: rgba(190, 215, 240, 0.95); }
.av-bar .av-pgtxt { font-size: 12px; color: var(--ink-sub); }

.av-body { flex: 1; overflow: auto; padding: 12px 16px 0; }
.av-foot { flex: none; padding: 4px 16px 12px; }

.av-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 240px; color: var(--ink-sub); font-size: 13px; text-align: center; }

/* 大图标视图 */
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
.av-grid .ph { position: relative; overflow: hidden; border-radius: 11px; background: #e7f0fa; cursor: pointer; aspect-ratio: 1 / 1; border: 1px solid rgba(190, 215, 240, 0.6); }
.av-grid .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-grid .ph .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 7px 5px; font-size: 11px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: linear-gradient(transparent, rgba(0, 0, 0, 0.58)); }
.av-grid .ph.sel { outline: 2px solid var(--accent); outline-offset: -2px; }

/* 列表视图 */
.av-list .row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 9px; cursor: pointer; }
.av-list .row:hover { background: rgba(43, 140, 255, 0.07); }
.av-list .row.sel { background: rgba(43, 140, 255, 0.13); }
.av-list .row img { width: 42px; height: 42px; flex: none; object-fit: cover; border-radius: 7px; background: #e7f0fa; }
.av-list .rc { min-width: 0; flex: 1; display: block; }
.av-list .rn { display: block; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-list .rs { display: block; font-size: 11px; color: var(--ink-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 详细视图 */
.av-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.av-tbl th, .av-tbl td { padding: 6px 8px; border-bottom: 1px solid rgba(200, 220, 240, 0.7); text-align: left; white-space: nowrap; }
.av-tbl th { position: sticky; top: 0; z-index: 1; color: var(--ink-sub); font-weight: 600; background: #f4f9ff; }
.av-tbl td.f-name { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.av-tbl tr.sel td { background: rgba(43, 140, 255, 0.1); }
.av-tbl img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; vertical-align: middle; background: #e7f0fa; cursor: pointer; }
.av-tbl .ops button {
  padding: 3px 8px; margin-right: 4px; font-size: 11px; cursor: pointer;
  border: 1px solid rgba(180, 210, 240, 0.95); border-radius: 7px;
  background: #fff; color: var(--ink-sub);
}
.av-tbl .ops button:hover { color: var(--accent); border-color: var(--accent); }
.av-tbl .ops button.del:hover { color: var(--danger); border-color: rgba(216, 68, 60, 0.55); }

/* 勾选框 */
.ph-check { position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; margin: 0; cursor: pointer; accent-color: var(--accent); }
.av-list .row input[type=checkbox], .av-tbl input[type=checkbox] { width: 15px; height: 15px; margin: 0 2px 0 0; accent-color: var(--accent); cursor: pointer; vertical-align: middle; flex: none; }

/* 批量操作条 */
.av-selbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 16px; background: rgba(43, 140, 255, 0.1); border-bottom: 1px solid rgba(43, 140, 255, 0.2); }
.av-selbar[hidden] { display: none !important; }
.av-selbar .cnt { font-size: 12px; font-weight: 600; color: var(--accent); }
.btn-ghost.danger { color: var(--danger); border-color: rgba(216, 68, 60, 0.35); }
.btn-ghost.danger:hover:not(:disabled) { color: #fff; background: var(--danger); border-color: var(--danger); }

/* 导入进度 */
.av-prog { width: 130px; height: 6px; border-radius: 3px; background: rgba(43, 140, 255, 0.16); overflow: hidden; }
.av-prog i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.av-prog[hidden] { display: none !important; }

/* 拖入相册层时的高亮 */
.av-mask.dragging::after {
  content: '松开即可导入到下方所选相册';
  position: absolute; inset: 10px; display: flex; align-items: center; justify-content: center;
  border: 2px dashed var(--accent); border-radius: 14px; background: rgba(43, 140, 255, 0.08);
  color: var(--accent); font-size: 15px; font-weight: 600; pointer-events: none;
}

/* ---------- 照片大图预览 ---------- */
.pv-mask { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: rgba(9, 24, 41, 0.88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pv-mask[hidden] { display: none !important; }
.pv-head { flex: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; color: #eaf4ff; font-size: 13px; }
.pv-head .pv-name { font-weight: 600; word-break: break-all; }
.pv-head .pv-info { color: #a9c6e2; font-size: 12px; }
/* 大图预览的拍摄参数小药丸（ISO / 光圈 / 快门）；没有 EXIF 时整块 hidden */
.pv-head .pv-exif { display: inline-flex; align-items: center; gap: 6px; }
.pv-head .pv-exif[hidden] { display: none !important; }
.pv-head .pv-chip {
	padding: 2px 8px; border-radius: 999px; white-space: nowrap;
	font-size: 11.5px; line-height: 1.5; letter-spacing: 0.2px;
	color: #dcecff; background: rgba(43, 140, 255, 0.22);
	border: 1px solid rgba(43, 140, 255, 0.45);
}
.pv-head button {
  padding: 5px 10px; font-size: 12px; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.26); border-radius: 8px;
}
.pv-head button:hover { background: rgba(255, 255, 255, 0.26); }
.pv-body { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 12px 14px; position: relative; }
.pv-body img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; background: #0b1a2b; }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.pv-nav:hover:not(:disabled) { background: rgba(255, 255, 255, 0.32); }
.pv-prev { left: 12px; }
.pv-next { right: 12px; }
.pv-nav:disabled { opacity: 0.28; cursor: default; }
/* 大图加载圆环：只在原图迟迟没出来时才显示（JS 控 hidden），不挡点击 */
.pv-ring { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.pv-ring[hidden] { display: none !important; }
.pv-ring svg { width: 52px; height: 52px; box-sizing: content-box; padding: 9px; border-radius: 50%; background: rgba(9, 24, 41, 0.55); animation: pv-spin 0.9s linear infinite; }
.pv-ring circle { fill: none; stroke: #2b8cff; stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 88 38; }
@keyframes pv-spin { to { transform: rotate(360deg); } }

/* ---------- 窄屏适配 ---------- */
@media (max-width: 760px) {
  .av-head { padding: 9px 10px; gap: 8px; }
  .av-bar { padding: 7px 10px; }
  .av-body { padding: 10px 10px 0; }
  .av-foot { padding: 4px 10px 10px; }
  .av-selbar { padding: 7px 10px; }
  .av-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
  .av-title { font-size: 14px; }
  .av-spacer { margin-left: 0; width: 100%; }
  .av-input { width: 100%; max-width: none; }
  .album-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
  .as-pick { grid-template-columns: 1fr; }
  .as-list { max-height: 132px; }
}
