﻿/* ===== gogosheshe.cn · 简约水墨风 ===== */
:root {
  --bg: #ffffff;            /* 纯白底 */
  --bg2: #ffffff;
  --bg-soft: #ffffff;       /* 纯白软底：输入框 / 信息块 / 面板统一白底 */
  --ink: #15120e;           /* 浓墨（主文字·近黑） */
  --fg: #2a2520;            /* 正文墨色 */
  --muted: rgba(21, 18, 14, .55);  /* 淡墨（透明黑） */
  --accent: #b8923f;        /* 泥金（主装饰金） */
  --accent-deep: #9c7a2e;
  --border: rgba(168, 133, 63, .22);
  --card: rgba(255, 255, 255, .7);
  --card-solid: #ffffff;
  --shadow: rgba(60, 45, 30, .1);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", "KaiTi", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --brush: "Ma Shan Zheng", "Zhi Mang Xing", "STKaiti", "KaiTi", var(--serif);
}

* { box-sizing: border-box; }

/* 移动端点按高亮阴影全局兜底 */
button,
a,
[role="button"],
h1,
h2,
h3,
.avatar-toggle,
.user-toggle,
.ut-btn {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  outline: none;
}

/* 横向溢出兜底：避免个别边角导致整页横向滚动（不破坏 sticky 顶栏） */
html { overflow-x: hidden; }

/* 隐藏根滚动条（保留滚动功能）：作用于 html，桌面端不显示竖向滚动条；移动端本就无 */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* ===== 基础背景（纯宣纸白，简约无装饰） ===== */
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--fg);
  background-color: var(--bg);
  min-height: 100vh;
  position: relative;
}

/* ===== 动态背景层（点击封面后变换为封面图，模糊浅化） ===== */
#bg-layer {
  position: fixed;
  inset: -80px;
  z-index: -4;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(60px) brightness(1.14) saturate(.7) contrast(.9);
  /* 默认保持微弱可见（配合 index.html 内联 .active + 默认背景图），
     首屏即从玻璃底起步而非纯白；JS 切到真实封面时 opacity 升到 .4。 */
  opacity: .12;
  transform: scale(1.06);
  transition: background-image 1.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: background-image, opacity;
}
#bg-layer.active { opacity: 0.4; }

/* ===== 顶部栏（半透毛玻璃） ===== */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  /* 刘海屏安全区（无刘海设备 env() 返回 0，无副作用） */
  padding: 12px max(24px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(250, 247, 240, .72);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, .05);
  position: sticky;
  top: 0;
  z-index: 10;
  transition: transform .3s ease;
}
.topbar.topbar-hidden { transform: translateY(-100%); }
.topbar h1 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 3px;
  margin: 0;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  -webkit-tap-highlight: transparent;
  outline: none;
}
/* 印章：混沌水墨色「蛇」字 + 流动动画 */
/* ===== 方案C：顶栏分组排版 ===== */
/* 筛选：保留文字+图标，突出为金色描边胶囊，视觉权重最高 */
.filter-pill {
  flex: 0 0 auto;
  height: 38px;
  min-width: 38px;
  padding: 0 14px;
  margin-left: -8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid #111;
  background: transparent;
  color: #111;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s, color .2s;
}
.filter-pill .ut-ico { width: 18px; height: 18px; color: #111; stroke-width: 2; }
.filter-pill:hover {
  color: #fff;
  background: #111;
}
.filter-pill:hover .ut-ico { color: #fff; }
.filter-pill:active { transform: scale(.94); }
/* 覆盖 .filter-pill 的 display，使 hidden 属性真正生效 */
.filter-pill[hidden] { display: none !important; }

/* ===== 顶部「更多」浮层（音效 / 筛选入口 / 系统通知 / 问题反馈） ===== */
.more-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 132px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
  padding: 4px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 1px;
  animation: dropIn .16s ease;
}
.more-panel.hidden { display: none; }
/* 电脑端：鼠标悬浮在 my-wrap（头像/三个点）自动展开下拉菜单；手机端仍用 JS 点击触发 */
@media (hover: hover) {
  .my-wrap:hover .more-panel.hidden,
  .my-wrap:hover .more-panel {
    display: flex !important;
  }
}
.more-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 9px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  color: #111;
  cursor: pointer;
  text-align: left;
  font-family: var(--serif);
  letter-spacing: 0.02em;
}
.more-item:hover { background: rgba(0, 0, 0, .05); color: #000; }
.more-item:active { transform: scale(.98); }
.more-item .more-ico { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; }
.more-item .more-ico svg { width: 100%; height: 100%; }
.more-item .more-label { flex: 1; font-weight: 500; }
/* 有开关状态的图标：左侧图标本身变化 */
.more-item .more-ico.has-state .on { display: block; }
.more-item .more-ico.has-state .off { display: none; }
.more-item .more-ico.has-state.is-off .on { display: none; }
.more-item .more-ico.has-state.is-off .off { display: block; }
.more-item .more-label { flex: 1; }
.more-item .more-badge {
  font-size: 11px;
  line-height: 1;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: none;
  align-items: center;
  justify-content: center;
  background: #e23b3b;
  color: #fff;
  border-radius: 9px;
}
.more-item .more-badge:not(:empty) { display: inline-flex; }

/* 右侧个人工具区：头像/个人中心 与 图标组 用细边框圆角容器分组 */
.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* 头像 + 下拉菜单的包裹容器：让更多面板相对头像定位 */
.my-wrap { position: relative; display: inline-flex; align-items: center; }
/* hover 桥接（仅桌面端）：覆盖按钮与下拉面板之间的空隙，防止鼠标移入菜单时失焦收起 */
@media (hover: hover) {
  .my-wrap::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 14px;
    background: transparent;
    pointer-events: auto;
  }
}
.top-tools {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 4px;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  background: transparent;
}
/* 工具组内图标按钮更紧凑、统一圆形 */
.top-tools .user-toggle {
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 50%;
  justify-content: center;
  color: #111;
}
.top-tools .user-toggle .ut-ico {
  width: 19px;
  height: 19px;
  color: #111;
  stroke-width: 2.2;
  filter: none;
}
.top-tools .user-toggle:hover,
.top-tools .user-toggle.is-open {
  background: rgba(0, 0, 0, .06);
  box-shadow: none;
  animation: none;
}
.top-tools .user-toggle:hover .ut-ico,
.top-tools .user-toggle.is-open .ut-ico {
  color: #000;
}
/* 音量按钮：黑色简约 */
.sound-toggle {
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  color: #111;
  transition: background .2s, transform .15s;
}
.sound-toggle .ut-ico { width: 19px; height: 19px; color: #111; stroke-width: 2.2; filter: none; }
.sound-toggle:hover { background: rgba(0, 0, 0, .06); }
.sound-toggle:active { transform: scale(.9); }
/* 静音态：图标转灰 + 斜杠 */
.sound-toggle.muted { color: #999; opacity: 1; }
.sound-toggle.muted .ut-ico { color: #999; filter: none; }
.sound-toggle.muted::after {
  content: "";
  position: absolute;
  width: 20px; height: 1.5px;
  background: #111;
  border-radius: 2px;
  transform: rotate(-45deg);
}
.sound-toggle { position: relative; }

.topbar h1::before {
  content: "蛇";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .92);
  font-size: 14px;
  font-weight: 700;
  width: 30px;
  height: 30px;
  line-height: 1;
  margin-right: 10px;
  border-radius: 5px;
  background: linear-gradient(120deg,
    rgba(34, 28, 22, .82),
    rgba(96, 86, 74, .66),
    rgba(52, 44, 36, .78),
    rgba(120, 108, 92, .6),
    rgba(34, 28, 22, .82));
  background-size: 220% 100%;
  animation: inkFlow 3.4s linear infinite;
  box-shadow: 0 2px 14px rgba(40, 30, 20, .28);
}
.topbar h1::after {
  content: "";
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-left: 12px;
  border-radius: 1px;
}

/* ===== 搜索框 + 下拉建议 ===== */
.search-wrap { position: relative; flex: 1; max-width: 460px; }
.topbar input[type="search"] {
  width: 100%;
  padding: 9px 42px 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
  font-size: 13px;
  font-family: var(--serif);
  letter-spacing: 1px;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.topbar input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 146, 63, .14);
}
.topbar input[type="search"]::placeholder { color: var(--muted); opacity: .7; }
/* 自定义搜索框清除按钮：细线灰 ×，hover 加深，不用默认蓝/黄 */
.topbar input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' fill='none' stroke='%239ca3af' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
  background-size: 14px 14px;
  cursor: pointer;
  opacity: .85;
  transition: opacity .2s ease, transform .15s ease;
}
.topbar input[type="search"]::-webkit-search-cancel-button:hover {
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  transform: scale(1.05);
}
.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(60, 45, 30, .18);
  z-index: 30;
  max-height: 60vh;
  overflow-y: auto;
  padding: 6px;
}
.search-suggest.hidden { display: none; }
.suggest-item {
  padding: 9px 13px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--fg);
  letter-spacing: 1px;
  transition: all .15s ease;
}
.suggest-item:hover { background: rgba(184, 146, 63, .12); color: var(--ink); }
.suggest-item.amb { border-left: 3px solid var(--accent, #b8923f); }
.suggest-dim {
  padding: 6px 13px;
  font-family: var(--serif);
  font-size: 12px;
  color: var(--accent, #b8923f);
  letter-spacing: 1px;
}
.suggest-sep { height: 1px; background: var(--border); margin: 5px 4px; opacity: .6; }
.suggest-empty { padding: 10px 13px; font-size: 12px; color: var(--muted); font-family: var(--serif); }
.suggest-group-title {
  padding: 7px 13px 3px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
#searchSuggest { max-height: 60vh; overflow-y: auto; }

/* 回到顶部浮动按钮：下滑后出现，点击平滑回顶 */
.to-top-btn {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: 28px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(184, 146, 63, .35);
  border-radius: 50%;
  background: rgba(28, 22, 16, .82);
  color: var(--gold, #d9b25e);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity .3s ease, transform .3s ease, background .25s ease;
  opacity: 0;
}
.to-top-btn svg { width: 20px; height: 20px; }
.to-top-btn.show { display: inline-flex; opacity: 1; }
.to-top-btn:hover { background: rgba(40, 32, 22, .92); transform: translateY(-2px); }
.to-top-btn:active { transform: scale(.92); }
@media (max-width: 760px) {
  .to-top-btn { right: 14px; bottom: 20px; width: 40px; height: 40px; }
}
/* 右下角常驻：问题反馈栏（图标 + 文字） */
.feedback-bar {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(184, 146, 63, .35);
  background: rgba(28, 22, 16, .82);
  color: var(--gold, #d9b25e);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .25s ease, transform .2s ease;
}
.feedback-bar svg { width: 20px; height: 20px; }
.feedback-bar:hover { background: rgba(40, 32, 22, .92); transform: translateY(-2px); }
.feedback-bar:active { transform: scale(.96); }
/* 顶栏头像（登录后唯一入口，点击进个人中心） */
.avatar-toggle {
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  flex: 0 0 auto;
  /* overflow 由内层 .avatar 负责，避免 [data-tip] 提示被裁切 */
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  outline: none;
}
.avatar-toggle .avatar-btn { width: 38px; height: 38px; border-radius: 50%; font-size: 18px; }
.avatar-toggle.hidden { display: none; }
@media (max-width: 760px) {
  .feedback-bar { right: 14px; bottom: 16px; height: 40px; padding: 0 14px 0 11px; font-size: 13px; }
}

main {
  padding: 20px 24px calc(80px + env(safe-area-inset-bottom));
  max-width: 1680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
main.home-main {
  max-width: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 20px !important;
  padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
  /* [fix-20260823t-abs-reverted] 之前诊断时为"钉满视口"临时改 position:absolute，导致
     main 从视口顶 top:0 起、header/gallery 兄弟节点重叠、gallery padding-top 失效。
     现恢复为相对定位，让 header → gallery 在文档流自然垂直堆叠，padding-top 正常生效。
     body 已是 position:relative，main 在 flex column 流内自然撑满父宽。 */
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  width: 100% !important;
  flex: 1 1 auto !important;
  min-width: 0;
  box-sizing: border-box;
  overflow: visible !important;
  text-align: left !important;
}
/* [fix-20260823t-edge] 首页 4 列瀑布流：左右对称边距（字面量，不用 CSS 变量避免解析失败）。 */

#gallery { padding: 24px 0 0 0 !important; margin: 0 !important; text-align: left !important; }
/* [perf-20260824b-home-v14] 改为 CSS Grid 原生瀑布流：布局由浏览器引擎完成，
   零 JS 重排、hover 纯 GPU 合成 → 根治卡顿；横图 span 2、竖图 span 1，紧凑无人为空隙。 */
/* [perf-20260824b-home-v17] 回归 JS 绝对定位瀑布流（layoutMasonry 真·错落）：
   容器是 position:relative（容纳绝对定位子卡片），JS 计算每张卡 left/top/width/height。
   是当前唯一能同时满足"横图 span 2 + 真·错落瀑布流 + 紧凑无大空隙"的方案。
   CSS Grid 行对齐做不到错落，columns 不支持 span 2，JS 必为唯一选项。
   叠加 bug（递归重排、cellShimmer infinite、backdrop-filter、perspective、maybeGenThumb、will-change）已全部清掉。 */
#gallery .grid {
  position: relative;
  text-align: left;
  padding-left: 80px !important;
  padding-right: 80px !important;
  box-sizing: border-box;
}
@media (max-width: 1024px) {
  #gallery { padding-top: 18px !important; }
  #gallery .grid { padding-left: 50px !important; padding-right: 50px !important; }
}
@media (max-width: 640px) {
  #gallery { padding-top: 14px !important; }
  #gallery .grid { padding-left: 24px !important; padding-right: 24px !important; }
}
main.home-main > section,
main.home-main > div {
  width: 100%;
}
main.home-main #gallery {
  width: 100%;
  overflow: hidden;       /* 防止横图整行意外溢出产生横向滚动条 */
}
main.home-main .grid {
  padding: 0;             /* 注意：下方 #gallery .grid 的 !important 会胜出 */
}

/* ===== 排序 + 筛选 ===== */
.sortbar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 2px;
  font-family: var(--serif);
}
/* ===== 自定义水墨风下拉框 ===== */
.custom-select { position: relative; display: inline-block; }
/* 触发器：混沌水墨色流动动画（默认选中态） */
.cs-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  border: 1px solid transparent;
  background: linear-gradient(120deg,
    rgba(34, 28, 22, .82),
    rgba(96, 86, 74, .66),
    rgba(52, 44, 36, .78),
    rgba(120, 108, 92, .6),
    rgba(34, 28, 22, .82));
  background-size: 220% 100%;
  animation: inkFlow 3.4s linear infinite;
  box-shadow: 0 2px 14px rgba(40, 30, 20, .28);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-family: var(--serif);
  letter-spacing: 1px;
  cursor: pointer;
  transition: box-shadow .2s ease;
  white-space: nowrap;
}
.cs-trigger:hover { box-shadow: 0 4px 18px rgba(40, 30, 20, .36); }
.cs-trigger:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(184, 146, 63, .14);
}
.cs-arrow {
  width: 10px; height: 6px;
  transition: transform .25s ease;
  color: rgba(255, 255, 255, .85);
}
.custom-select.open .cs-arrow { transform: rotate(180deg); }

/* 下拉菜单 */
.cs-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: linear-gradient(180deg, #ffffff, #ffffff);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(60, 45, 30, .18);
  padding: 6px;
  z-index: 30;
  animation: dropIn .2s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.cs-menu.hidden { display: none; }
/* 下拉选项 */
.cs-opt {
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--serif);
  letter-spacing: 2px;
  color: var(--fg);
  transition: all .15s ease;
}
.cs-opt:hover {
  background: rgba(184, 146, 63, .14);
  color: var(--ink);
}
/* 选中态：混沌水墨色流动动画 */
.cs-opt.active {
  position: relative;
  color: #fff;
  background: linear-gradient(120deg,
    rgba(34, 28, 22, .82),
    rgba(96, 86, 74, .66),
    rgba(52, 44, 36, .78),
    rgba(120, 108, 92, .6),
    rgba(34, 28, 22, .82));
  background-size: 220% 100%;
  animation: inkFlow 3.4s linear infinite;
  font-weight: 600;
}

/* ===== 统一筛选面板（替代原来 6 行散落布局） ===== */
.filter-panel {
  background: rgba(255, 255, 255, .6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.filter-row + .filter-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(168, 133, 63, .18);
}
/* 主筛选行（分类/版式/时间）：标签更紧凑 */
.filter-row-primary {
  gap: 4px 20px;
}
/* 次级行（标签+搜索）：搜索框自适应撑满剩余空间 */
.filter-row-secondary > .filter-search {
  flex: 1;
  min-width: 180px;
  max-width: 320px;
  margin-left: auto;
}
.filter-row-secondary .filter-group {
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
}
/* 标签行动态渲染的 chips */
.filter-row-tags {
  min-height: 0;
}
.filter-row-tags:empty,
.filter-row-series:empty { display: none; }
.filter-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-group .flabel {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--serif);
  letter-spacing: 1.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.filter-group .chip {
  padding: 4px 12px;
  font-size: 11px;
  letter-spacing: 1px;
}
/* 筛选区内搜索框：缩小、圆角胶囊 */
.filter-panel input[type="search"] {
  width: 100%;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .8);
  font-size: 12px;
  font-family: var(--serif);
  letter-spacing: .5px;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.filter-panel input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 146, 63, .10);
}
.filter-panel input[type="search"]::placeholder {
  color: var(--muted);
  opacity: .65;
}

/* ===== 旧 filters 类保留兼容（app.js 动态渲染仍用）但不再单独占行 ===== */
.filters {
  display: contents; /* 让子元素融入父级 flex 流，不再独占一行 */
}
.cat-filters, .tag-filters, .orient-filters, .time-filters {
  display: contents;
}
/* ===== 筛选芯片（chip）通用样式 ===== */
.chip {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 5px 15px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-family: var(--serif);
  letter-spacing: 2px;
  transition: all .25s ease;
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip.active {
  position: relative;
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg,
    rgba(34, 28, 22, .82),
    rgba(96, 86, 74, .66),
    rgba(52, 44, 36, .78),
    rgba(120, 108, 92, .6),
    rgba(34, 28, 22, .82));
  background-size: 220% 100%;
  animation: inkFlow 3.4s linear infinite;
  box-shadow: 0 2px 14px rgba(40, 30, 20, .28);
}
@keyframes inkFlow {
  from { background-position: 0 0; }
  to { background-position: 220% 0; }
}
.chip.active:hover { color: #fff; }

/* ===== 顶部统一筛选栏（一排横向下拉） ===== */
/* 顶部「筛选」按钮展开的浮层：默认隐藏，点击后从右上角下拉 */
.tf-panel {
  position: fixed;
  top: calc(64px + env(safe-area-inset-top, 0px));
  left: max(24px, env(safe-area-inset-left));
  right: auto;
  z-index: 40;
  display: none;
  max-width: calc(100vw - 32px);
}
.tf-panel.open { display: block; animation: dropIn .2s ease; }
.top-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 14px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.12);
  backdrop-filter: blur(10px);
}
/* 数据加载完成前，强制隐藏所有下拉菜单面板，防止展开后卡住 */
.top-filterbar[data-loading] .tf-menu { display: none !important; }
.tf-select { position: relative; }
.tf-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: transparent;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.tf-trigger:hover { border-color: #111; color: #111; }
/* 选中态（非默认筛选值）：透明底 + 黑边，与未选中框保持一致 */
.tf-trigger.active {
  color: #111;
  border-color: #111;
  background: transparent;
  box-shadow: none;
  animation: none;
}
.tf-label { opacity: .85; font-size: 12px; }
.tf-value { font-weight: 600; }
.tf-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 2px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  color: currentColor;
  background: rgba(255,255,255,.15);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.tf-clear:hover { background: rgba(255,255,255,.35); transform: scale(1.1); }
.tf-clear.hidden { display: none; }
.tf-arrow { width: 10px; height: 6px; transition: transform .25s ease; color: currentColor; }
.tf-select.open .tf-arrow { transform: rotate(180deg); }
.tf-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 160px;
  max-height: 320px;
  overflow: auto;
  background: rgba(200,198,195,.75);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  padding: 6px;
  z-index: 30;
  animation: dropIn .2s ease;
  backdrop-filter: blur(8px);
}
.tf-menu.hidden { display: none; }
.tf-opt {
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--serif);
  letter-spacing: 1px;
  color: var(--fg);
  transition: all .15s ease;
  white-space: nowrap;
}
.tf-opt:hover { background: rgba(0,0,0,.06); color: #111; }
.tf-opt.active {
  color: #111;
  background: rgba(0,0,0,.08);
  font-weight: 600;
}
.suggest-type { margin-left: 8px; font-size: 11px; opacity: .6; }
/* 作品集模式：隐藏多图专属筛选维度 */
.top-filterbar.series-mode .tf-select[data-select="cat1"],
.top-filterbar.series-mode .tf-select[data-select="cat2"],
.top-filterbar.series-mode .tf-select[data-select="orient"],
.top-filterbar.series-mode .tf-select[data-select="time"] { display: none; }
/* 单图/多图模式：保留动漫（cat1）与角色（cat2）两级筛选 */
/* 移动端：纵向堆叠、占满宽度 */
@media (max-width: 600px) {
  .top-filterbar { gap: 8px; width: 100%; }
  .tf-select { flex: 1 1 auto; }
  .tf-trigger { width: 100%; justify-content: space-between; }
  .tf-menu { left: 0; right: 0; min-width: 0; }
  /* 手机上筛选浮层基本占满屏幕宽度，仅留安全区边距 */
  .tf-panel {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    max-width: none;
    width: auto;
    /* 移动端视口矮时浮层自身滚动（iOS/安卓不溢出不显滚动条） */
    max-height: calc(100vh - 64px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
}

/* ===== 区块标题（无编号） ===== */
section { margin-bottom: 46px; }
h2 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 18px;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  gap: 12px;
}
h2::before {
  content: "";
  width: 3px;
  height: 17px;
  background: linear-gradient(180deg, var(--accent), rgba(184, 146, 63, .3));
  border-radius: 2px;
}
h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(184, 146, 63, .2), transparent);
  margin-left: 4px;
}

/* ===== 首页瀑布流：CSS Grid 原生布局（见上方 #gallery .grid 定义） =====
   仅作用于首页 #gallery 内的 .grid；个人中心等其他 .grid 不受影响。 */
#gallery .grid {
  position: relative;
  width: 100%;
}
/* [perf-20260824b-home-v17] 卡片由 layoutMasonry 绝对定位（left/top/width/height 内联 style），
   CSS 只负责 hover transform + box-shadow（纯 GPU 合成，不被任何 animation 压制）。
   不再用 will-change（每次 layoutMasonry 会重设 left/top，will-change 强制建层反而卡）。
   也不再用 Grid span 规则（layoutMasonry 走绝对定位算法）。 */
#gallery .grid .cell {
  position: absolute;
  top: 0; left: 0;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .28s cubic-bezier(0.2, 0, 0, 1), box-shadow .28s ease;
  transform-origin: center center;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}
@keyframes cellIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
#gallery .grid .cell.in { animation: cellIn .32s cubic-bezier(0.23, 1, 0.32, 1) both; }
.cell:focus, .cell:focus-visible, .cell:active { outline: none; box-shadow: none; }
/* hover 只做轻微缩放，零边框零外阴影——图片本身已有圆角，纯 GPU 合成不卡 */
.cell.cover:hover {
  transform: scale(1.03);
  border: 0 !important;
  outline: none !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5) !important;
  z-index: 10;
}
.grid.landscape-grid .cell { margin-bottom: 18px; }

/* ===== 首屏骨架屏（数据未到达时只展示一张居中的默认竖图） ===== */
.sk-solo {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 50vh;
  padding: 32px 16px;
}
.sk-solo-img {
  width: auto;
  max-width: min(100%, 360px);
  height: auto;
  max-height: 60vh;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(60, 45, 30, .12);
  opacity: .85;
  animation: sk-fade 1.4s ease-in-out infinite alternate;
}
@keyframes sk-fade {
  0%   { opacity: .55; }
  100% { opacity: .9; }
}
@media (prefers-reduced-motion: reduce) {
  .sk-solo-img { animation: none; opacity: .75; }
}
/* ===== 全局加载组件：4 种炫酷动效随机切换（深浅色页通用） ===== */
.page-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 56vh;
  padding: 40px 16px;
}
.page-loading .pl-text {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 4px;
  color: var(--muted);
}

/* —— 动效 A：符箓旋转阵（SVG 描边逐段点亮旋转） —— */
.page-loading .pl-talisman { width: 60px; height: 60px; filter: drop-shadow(0 0 6px rgba(184,146,63,.55)); }
.page-loading .pl-talisman .ring {
  fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 52 14;
  transform-origin: 50% 50%;
  animation: pl-spin 2.4s linear infinite, pl-dash 1.6s ease-in-out infinite;
}
.page-loading .pl-talisman .glyph {
  fill: none; stroke: rgba(184,146,63,.85); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  transform-origin: 50% 50%;
  animation: pl-glyph 3s ease-in-out infinite;
}
@keyframes pl-spin { to { transform: rotate(360deg); } }
@keyframes pl-dash { 0%,100% { stroke-dashoffset: 0; opacity:.55; } 50% { stroke-dashoffset: 22; opacity:1; } }
@keyframes pl-glyph { 0%,100% { opacity:.4; transform: scale(.92) rotate(-4deg);} 50% { opacity:1; transform: scale(1.04) rotate(4deg);} }

/* —— 动效 B：灵气漩涡（水墨环 + 墨点吸入） —— */
.page-loading .pl-vortex {
  position: relative; width: 64px; height: 64px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(43,36,29,0), rgba(96,86,74,.55), rgba(184,146,63,.9), rgba(43,36,29,0));
  filter: blur(.4px) drop-shadow(0 0 10px rgba(184,146,63,.4));
  animation: pl-spin 1.6s linear infinite;
}
.page-loading .pl-vortex::before {
  content: ""; position: absolute; inset: 9px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,28,22,.95) 38%, rgba(34,28,22,0) 70%);
}
.page-loading .pl-vortex::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 180deg, transparent 0 70%, rgba(184,146,63,.6) 85%, transparent 100%);
  animation: pl-spin 1.6s linear infinite reverse;
}

/* —— 动效 C：三昧真火（火焰粒子流动进度条） —— */
.page-loading .pl-fire {
  width: 120px; height: 8px; border-radius: 999px; overflow: hidden;
  background: rgba(40,30,20,.35); box-shadow: inset 0 0 4px rgba(0,0,0,.4);
}
.page-loading .pl-fire::before {
  content: ""; display: block; height: 100%; width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,170,60,0), #ffb347, #ff6a2b, #ffd76a, #ff8a3d);
  background-size: 220% 100%;
  animation: pl-fire-move 1.1s linear infinite, pl-fire-flick 0.5s ease-in-out infinite alternate;
  box-shadow: 0 0 10px rgba(255,120,40,.8);
}
@keyframes pl-fire-move { from { transform: translateX(-110%);} to { transform: translateX(320%);} }
@keyframes pl-fire-flick { from { opacity:.75; } to { opacity:1; } }

/* —— 动效 D：蛇形盘绕（SVG 路径吐信循环） —— */
.page-loading .pl-snake { width: 62px; height: 62px; filter: drop-shadow(0 0 5px rgba(184,146,63,.5)); }
.page-loading .pl-snake .body {
  fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round;
  stroke-dasharray: 168; stroke-dashoffset: 168;
  animation: pl-snake-draw 2.2s ease-in-out infinite;
}
.page-loading .pl-snake .head {
  fill: var(--accent);
  transform-origin: 31px 16px;
  animation: pl-snake-tongue 0.9s ease-in-out infinite;
}
@keyframes pl-snake-draw { 0% { stroke-dashoffset: 168; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
@keyframes pl-snake-tongue { 0%,100% { transform: scale(1); } 50% { transform: scale(1.35); } }

@media (prefers-reduced-motion: reduce) {
  .page-loading .pl-talisman .ring,
  .page-loading .pl-talisman .glyph,
  .page-loading .pl-vortex,
  .page-loading .pl-vortex::after,
  .page-loading .pl-fire::before,
  .page-loading .pl-snake .body,
  .page-loading .pl-snake .head { animation: none; }
}
/* 卡片图片：按原图真实比例展示，不强制裁切，形成错落 masonry */
.cell img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
/* [perf-20260824b-home-v11] 取消 content-visibility，回归标准 IntersectionObserver 懒加载：
   之前的 content-visibility:auto 干扰了 IntersectionObserver——观察到视口元素后赋 src，
   但 content-visibility 让整张卡片 skip rendering，赋了 src 也不渲染 → 用户看到 9 张白卡不加载。
   改回标准方案：未赋 src 的 img 不会解码/不上传 GPU → 自动不占 GPU 层（不需要 content-visibility
   也能控制层数量），IntersectionObserver 正常工作。保留 hover img scale 动感。 */
.cell.cover img { object-fit: cover; width: 100%; height: 100%; transition: transform .2s cubic-bezier(0.2, 0, 0, 1); transform-origin: center center; }
/* 单图在竖网格里随列宽自然展示，真实比例不裁切 */
/* 所有封面图（含多图 kind=undefined）：按真实宽高完整展示（不裁切），容器高度随图比例撑开。
   注意：多图 cover 的 kind 可能为 undefined（后端未回填），必须对所有 .cell.cover img 生效，
   否则图片未加载时高度为 0 → 卡片完全空白。 */
/* 首页瀑布流：img 用 cover 贴满 cover-img 容器。
   注意：不再用 object-fit: contain + max-height: 78vh——那会让图片被高度限制
   压缩出白边。改为 cover + 父容器高度由 JS 严格等于图片 natural 比例。 */
.cell.cover .cover-img {
  overflow: hidden;
  border-radius: 12px;
  /* [fix-20260825-black] 黑图根因：未加载时 .cover-img 显示 #1b1b22 暗黑块，用户误以为"图加载失败"。
     改为浅暖玻璃底 + 品牌默认图兜底（HTML 内联 background-image 引用 default-*.png）。
     未加载时显示浅色玻璃 + 默认图轮廓，加载完 img 淡入覆盖，彻底消除"满屏黑图"观感。 */
  width: 100%;
  background-color: #e8e2d8;
  background-image: linear-gradient(135deg, rgba(255,255,255,.55) 0%, rgba(232,226,216,.35) 100%);
  background-size: cover;
  background-position: center;
  /* 玻璃质感微边框 */
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
}
/* 兜底：多图/无kind封面在某些情况下容器高度塌陷导致完全空白（移动端特定问题）。
   注意：在瀑布流下不需要强制 260px 最小高度——由 layoutMasonry 用图片 natural 算 cell 高度，
   再用 height:100% 填满 cover-img。删除此规则避免竖图 cell 底部留白。 */
/* 图片加载失败：隐藏 alt 文本并显示统一占位，避免与角色名重叠 */
.cover-img.img-broken img { color: transparent; font-size: 0; }
.cover-img.img-broken::after {
  content: "图片加载失败";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(60, 45, 30, .35); font-size: 13px; font-family: var(--serif);
  letter-spacing: 1px; pointer-events: none;
}

/* ===== 图片防保存：禁止拖拽 / 选中 / 长按保存 ===== */
.cell.cover img,
.viewer-frame img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
}

/* ===== 封面卡片：纯拼贴容器（无边框/无磨砂/无阴影，玻璃底完整透出） =====
   [fix-20260822t50clean] 用户两次反馈白边不好看。改为：
   - 完全透明背景（无 rgba 白色层，杜绝任何"白边"观感）
   - 无 border、无 box-shadow（彻底消除边缘白圈）
   - 仅保留 10px 轻圆角，让拼贴有微弱呼吸感；圆角由 overflow:hidden + img 圆角实现
   - 加载前骨架微光（shimmer）仍需保留，避免大图慢加载时卡片塌陷，
     但用极淡的近透明色，加载后完全消失。 */
.cell.cover {
  cursor: pointer;
  position: relative;
  background-color: transparent;
  border-radius: 12px;
  /* [perf-20260824b-home-v16] 彻底清掉磨砂骨架 + cellShimmer infinite animation + 暖棕背景 + backdrop-filter：
     之前 cellShimmer infinite + backdrop-filter 让卡片每帧重绘合成，hover 的 transform: scale 被压制（用户报"只有阴影没动画"），
     且图未加载时整张是深棕磨砂黑块（用户报"满屏黑图"）。
     现在改为透明 cell，骨架由 .cover-img 浅色（#1b1b22）显示，加载完 img 淡入覆盖 → 干净。 */
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  overflow: hidden;
}
.cell.cover img { background: transparent; border-radius: 10px; }
/* [v16] 移除 .cell.cover.img-loaded 块：cell 已是透明背景（无骨架），加载完不需要切类。 */
/* 横图整行（JS 瀑布流）：JS 设 width:100% 并独占一行，绝不混排。
   关键修复：
   1) 之前 max-height:80vh + contain 居中导致左右留灰底
   2) 之后改 height:100% + object-fit:cover 会把图拉伸/裁切
   3) 关键根因：cover-img 仍带 portrait 留下的 inline aspect-ratio，
      导致 img 高度被强制按 aspect-ratio 算，width:100% 后图被压扁
   4) 现在横图 cell 内强制去掉 aspect-ratio，让 img 按真实宽高比撑开 */
/* [fix-20260823-gapfill6] 横图 cell 去掉 1px 浅边与外阴影 —— 用户报"白边晃动"，
   根因就是 hover 时缩放让这条浅边浮动放大看起来像"白边在抖"。 */
.cell.cover.landscape {
  /* [perf-20260824b-home-v15] columns 流布局下，横图由 inline aspect-ratio 撑开高度，占 1 列宽（1/4 屏，不大）。 */
  overflow: hidden;
  background-color: transparent;
  border-radius: 12px;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}
.cell.cover.landscape .cover-img {
  min-height: 0 !important;   /* 覆盖非单图兜底 260px */
  width: 100%;
  /* [v15] columns 下父 cell 无固定高，横图高度必须由 inline aspect-ratio 撑开（绝不 height:100% 否则循环塌缩为0）。
     因此此处不再设 height:100%，也不清除 aspect-ratio，保留 app.final.js 写入的真实比例。 */
  display: block;
  overflow: hidden;
}
/* [v16] 横图 cover-img 不再清掉 aspect-ratio（Grid 下依赖 inline aspect-ratio 撑高），
   img 用 width/height 100% + object-fit:cover 自然填充。 */
.cell.cover.landscape .cover-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* [fix-20260823-gapfill7] 瀑布流空隙装饰：纯自包含磨砂玻璃，零边框零描边。
   ★ 改：之前用 backdrop-filter 想让背后的图片穿透，但每个 .cell.cover 自带 transform
   创建独立 stacking context，gap-fill (z-index:0) 根本透不过去，截图为纯白块。
   现在用「自包含多层渐变」模拟玻璃质感：底层柔和暖色雾 + 顶层斜光带 + 极细白色
   横向噪点 (background-size)，让"块"看着像磨砂玻璃而不是空白色块。 */
.gm-gap-fill {
  position: relative;
  /* 立体玻璃：三层叠加
     ①半透明白雾底 ②左上斜光带 ③径向高光，叠出来有"凸面玻璃厚度"感 */
  background:
    /* 顶部斜光带：模拟玻璃表面光从左上扫过 */
    linear-gradient(135deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.10) 35%, rgba(255,255,255,0) 60%, rgba(180,180,180,.08) 100%),
    /* 左上高光斑 */
    radial-gradient(circle at 22% 15%, rgba(255,255,255,.85) 0%, rgba(255,255,255,0) 45%),
    /* 右下冷灰阴影（玻璃凹面右侧较暗） */
    linear-gradient(160deg, rgba(255,255,255,.18) 0%, rgba(235,235,240,.42) 55%, rgba(200,205,215,.55) 100%);
  /* 玻璃半透明：让背后瀑布流的卡片颜色微微透出来 */
  background-color: rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  overflow: hidden;
  /* 立体阴影（双层）：近阴影做悬浮 + 远阴影做环境光 */
  box-shadow:
    /* 近阴影：柔和黑，贴在卡片正下方 */
    0 6px 14px -4px rgba(40, 40, 50, 0.18),
    /* 远阴影：暖灰，大范围弥散 */
    0 18px 38px -10px rgba(120, 110, 100, 0.22),
    /* 玻璃边缘高光内阴影：顶部一道白光模拟玻璃凸面边缘 */
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    /* 底部内阴影：玻璃底部凹面 */
    inset 0 -1px 0 rgba(180, 180, 190, 0.25);
  /* 玻璃边：1px 半透明白边（玻璃边缘高光） */
  border: 1px solid rgba(255, 255, 255, 0.55);
  outline: none;
  /* backdrop-filter 在这个元素上可用（父 .cell.cover 才有 transform 阻断） */
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  transition: transform .25s ease, box-shadow .25s ease;
  will-change: transform;
}
.gm-gap-fill:hover {
  /* hover 时明显抬升 + 轻微放大，强化立体悬浮感
     （之前 translateY(-3px) 太轻微用户感觉不到，
     改为 -8px + scale(1.02) + 阴影大幅加深 + 玻璃高光更亮 + 加金色氛围光） */
  transform: translateY(-8px) scale(1.02);
  background-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    /* 近阴影加深 */
    0 14px 28px -6px rgba(40, 40, 50, 0.32),
    /* 远阴影弥散更广更深 */
    0 36px 64px -12px rgba(120, 110, 100, 0.38),
    /* 金色氛围光（暖橙黄）模拟玻璃卡被点亮 */
    0 0 0 1px rgba(255, 215, 140, 0.35),
    /* 玻璃顶部高光更亮 */
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    /* 玻璃底部内阴影加深 */
    inset 0 -1px 0 rgba(180, 180, 190, 0.40),
    /* 玻璃左内侧高光（左侧凸面反光） */
    inset 1px 0 0 rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.85);
}
/* 古籍式竖排：B 格拉满。
   主副合并在同一列竖排里（vertical-rl text-orientation:upright），
   靠字号差 + 「·」分隔符做层次，而不是分两列。 */
.gm-gap-fill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.gm-gap-fill .gm-gap-block {
  /* 整段作为一个 vertical-rl 块：从右上向左下竖排，
     主文与副文自然连成一条线。 */
  writing-mode: vertical-rl;
  text-orientation: upright;
  display: inline-block;
}
.gm-gap-fill .gm-gap-main {
  font-size: 19px;
  line-height: 1.55;
  /* 纯墨色调，不再叠金黄色发光阴影（用户：不要黄） */
  color: rgba(28, 28, 28, .82);
  font-family: "STKaiti", "KaiTi", "FangSong", "STZhongsong", "Songti SC", "FZFangsong", "STSong", serif;
  font-weight: 600;
  user-select: none;
}
.gm-gap-fill .gm-gap-sub {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(60, 60, 60, .55);
  font-family: "STKaiti", "KaiTi", "FangSong", "Songti SC", serif;
  font-weight: 400;
  user-select: none;
}
.gm-gap-fill .gm-gap-sub::before {
  /* 段落内部柔和间隔，主副之间换行已经隔开，不需要额外点 */
  content: '';
  display: block;
  height: 0.5em;
}
@media (max-width: 640px) {
  .gm-gap-fill .gm-gap-main { font-size: 16px; }
  .gm-gap-fill .gm-gap-sub  { font-size: 11px; }
}
  max-width: 100%;
  object-fit: cover !important;
  aspect-ratio: auto !important;
  display: block;
}
/* 竖图被横图压住的顶部占位图（default-portrait 默认图，不要求展示全） */
.cell-ph {
  background-color: #f0f0f0;
  background-repeat: no-repeat;
}

/* 角色名（艺术字体） */
.cover-name {
  font-family: var(--brush);
  color: var(--ink);
  z-index: 3;
  pointer-events: none;
}
/* 竖图：左上角竖向排版 */
.cover-name.portrait {
  position: absolute;
  top: 14px;
  left: 13px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 23px;
  letter-spacing: 4px;
  line-height: 1.1;
  max-height: 72%;
  text-shadow: 0 1px 8px rgba(255, 255, 255, .75), 0 0 2px rgba(255, 255, 255, .9);
}
/* 横图：图上方居中横向排版 */
.cover-name.landscape {
  position: static;
  display: block;
  text-align: center;
  font-size: 21px;
  letter-spacing: 3px;
  padding: 10px 6px 4px;
}

/* 封面图片容器（相对定位，承载右下角浏览量） */
.cover-img {
  position: relative; display: block;
  overflow: hidden;
}
/* 浏览量：图片内右下角，半透明 */
.cover-views {
  position: absolute;
  right: 8px; bottom: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, .9);
  background: rgba(20, 16, 12, .32);
  padding: 2px 9px;
  border-radius: 999px;
  font-family: var(--serif);
  letter-spacing: 1px;
  backdrop-filter: blur(2px);
  pointer-events: none;
}
/* 封面下方：点赞居中，收藏按钮绝对定位靠右 */
.cover-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  position: relative;
  z-index: 2;
}
.like-btn {
  background: rgba(184, 146, 63, .08);
  border: 1px solid var(--border);
  color: var(--accent-deep);
  border-radius: 999px;
  padding: 4px 14px;
  cursor: pointer;
  font-size: 12px;
  font-family: var(--serif);
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 10px rgba(184, 146, 63, .12);
  transition: all .2s ease;
  position: relative;
  overflow: visible;
}
.like-btn:hover { background: rgba(184, 146, 63, .16); border-color: var(--accent); transform: translateY(-1px); }
.like-btn:active { transform: scale(.95); }
.like-btn.liked {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg,
    rgba(34, 28, 22, .82),
    rgba(96, 86, 74, .66),
    rgba(52, 44, 36, .78),
    rgba(120, 108, 92, .6),
    rgba(34, 28, 22, .82));
  background-size: 220% 100%;
  animation: inkFlow 3.4s linear infinite;
  box-shadow: 0 2px 14px rgba(40, 30, 20, .28);
}
/* 点赞成功：按钮弹跳 + 上浮爱心 */
.like-btn.like-pop { animation: likePop .45s cubic-bezier(0.2, 0, 0, 1); }
@keyframes likePop {
  0% { transform: scale(1); }
  35% { transform: scale(1.3); }
  60% { transform: scale(.9); }
  100% { transform: scale(1); }
}
.like-heart {
  position: absolute;
  left: 50%; top: 0;
  transform: translate(-50%, -10%);
  color: var(--accent-deep);
  font-size: 16px;
  pointer-events: none;
  animation: heartFloat .8s ease-out forwards;
}
@keyframes heartFloat {
  0% { opacity: 0; transform: translate(-50%, 0) scale(.6); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -150%) scale(1.2); }
}

/* ===== 链接列表 ===== */
.linklist { display: flex; flex-direction: column; gap: 10px; }
.linkitem {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 14px;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.linkitem:hover { border-color: var(--accent); box-shadow: 0 4px 16px var(--shadow); }
.linkitem .lt { font-weight: 600; font-family: var(--serif); letter-spacing: 2px; color: var(--ink); }
.linkitem .lc {
  font-size: 11px; color: var(--accent-deep);
  background: rgba(255, 255, 255, .6); border: 1px solid var(--border);
  padding: 2px 10px; border-radius: 999px; letter-spacing: 1px;
}
.linkitem a { color: var(--accent); word-break: break-all; text-decoration: none; font-size: 13px; transition: color .2s; }
.linkitem a:hover { color: var(--accent-deep); }

.empty {
  color: var(--muted); font-size: 14px; font-family: var(--serif);
  letter-spacing: 1px; padding: 40px 0; text-align: center;
}
/* 搜索无结果空态引导：文案 + 一键清空筛选按钮 */
.search-empty { display: flex; align-items: center; justify-content: center; gap: 2px; flex-wrap: wrap; }
.link-btn { background: none; border: none; color: var(--accent); font-family: var(--serif);
  font-size: 14px; letter-spacing: 1px; cursor: pointer; padding: 0 2px; text-decoration: underline; }
.link-btn:hover { color: var(--accent-deep); }

/* ===== 分组标题（无编号） ===== */
.group { margin-bottom: 38px; }
.group-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--ink);
  margin: 0 0 16px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
}
.group-title::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(184, 146, 63, .16), transparent);
}

/* ===== 弹窗（白底画卷，按竖/横整体变形） ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(40, 34, 28, .4);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  z-index: 100;
  animation: modalIn .3s ease;
}
@keyframes modalIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 94vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #ffffff, #ffffff);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 880px;
  padding: 16px;
  box-shadow: 0 24px 64px rgba(40, 30, 20, .3);
  animation: boxIn .35s cubic-bezier(0.2, 0, 0, 1);
}
/* 竖图弹窗：竖向比例，容纳完整 9:16 */
.modal-box.portrait { max-width: 450px; }
/* 横图弹窗：横向比例，容纳完整 16:9 */
.modal-box.landscape { max-width: 960px; }
@keyframes boxIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* 关闭按钮（绝对定位右上角，不显示任何文字） */
.modal .close {
  position: sticky;
  top: 8px;
  align-self: flex-end;
  z-index: 5;
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--border);
  color: #555;
  font-size: 24px; line-height: 1;
  cursor: pointer; width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.modal .close:hover { color: #222; background: rgba(0, 0, 0, .08); border-color: var(--border); }

/* 子图舞台：按封面横竖定向比例整体变形 */
.viewer-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 120px; }
.viewer-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}
.viewer-frame.portrait { height: 80vh; width: auto; aspect-ratio: 9 / 16; }
.viewer-frame.landscape { width: 100%; aspect-ratio: 16 / 9; max-height: 78vh; }
.viewer-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  background: #ffffff;
  box-shadow: 0 10px 36px rgba(40, 30, 20, .25);
}
/* 客户端水印叠加层（pages.dev 无 Image Resizing，用前端叠加还原服务端水印效果） */
.viewer-wm { position: absolute; right: 20px; bottom: 20px; width: min(360px, 42%); height: auto; opacity: .35; pointer-events: none; z-index: 2; background: transparent !important; }
.viewer-wm[hidden] { display: none !important; }
.viewer-wm-text { position: absolute; left: 14px; bottom: 14px; max-width: 70%; color: #fff; font: 600 13px/1.35 system-ui, "PingFang SC", sans-serif; background: rgba(0,0,0,.3); padding: 4px 8px; border-radius: 6px; letter-spacing: .3px; pointer-events: none; z-index: 2; word-break: break-word; }
.viewer-wm-text[hidden] { display: none !important; }

/* 翻页按钮（金色透明） */
.nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(120deg,
    rgba(34,28,22,.82), rgba(96,86,74,.66), rgba(52,44,36,.78), rgba(120,108,92,.6), rgba(34,28,22,.82));
  background-size: 220% 100%;
  animation: inkFlow 3.4s linear infinite;
  color: #fff; font-size: 24px; line-height: 1; cursor: pointer; z-index: 2;
  transition: all .2s ease; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.nav:hover { filter: brightness(1.12); }
.nav.prev { left: 8px; top: 50%; transform: translateY(-50%); }
.nav.next { right: 8px; top: 50%; transform: translateY(-50%); }
.nav.report { top: auto; bottom: calc(56px + env(safe-area-inset-bottom)); right: 8px; transform: none; width: 36px; height: 36px; font-size: 12px; opacity: .7; }
.nav.report:hover { opacity: 1; transform: translateY(-1px); }
/* 阅读按钮：左上角，水墨动画 */
.nav.read {
  top: calc(12px + env(safe-area-inset-top)); bottom: auto; left: 8px; right: auto;
  transform: none;
  width: auto;
  height: auto;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-family: var(--serif);
  letter-spacing: 2px;
  color: #fff;
  background: linear-gradient(120deg,
    rgba(34,28,22,.82), rgba(96,86,74,.66), rgba(52,44,36,.78), rgba(120,108,92,.6), rgba(34,28,22,.82));
  background-size: 220% 100%;
  animation: inkFlow 3.4s linear infinite;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.nav.read:hover { filter: brightness(1.1); transform: translateY(-1px); }
.nav.read:active { transform: translateY(0); }
/* 下载按钮：底部居中胶囊，水墨动画 */
.nav.download {
  top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  width: auto; height: auto; padding: 8px 18px; border-radius: 999px;
  font-size: 13px; font-family: var(--serif); letter-spacing: 2px;
  gap: 6px; color: #fff;
  background: linear-gradient(120deg,
    rgba(34,28,22,.82), rgba(96,86,74,.66), rgba(52,44,36,.78), rgba(120,108,92,.6), rgba(34,28,22,.82));
  background-size: 220% 100%;
  animation: inkFlow 3.4s linear infinite;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.nav.download svg { width: 16px; height: 16px; display: block; }
.nav.download:hover { filter: brightness(1.1); transform: translateX(-50%) translateY(-1px); }
.nav.download:active { transform: translateX(-50%) translateY(0); }
/* 查看器 UI 自动隐藏（点击图片显隐按钮） */
.viewer-ui-hidden .nav,
.viewer-ui-hidden .close,
.viewer-ui-hidden .cover-cmt-icon { opacity: 0 !important; pointer-events: none; transition: opacity .25s ease; }
.modal .nav, .modal .close, .modal .cover-cmt-icon { transition: opacity .25s ease; }

/* 下载免责提示：自有/授权内容 + 自由下载请勿商用 */
.dl-note {
  margin: 6px 0 2px;
  text-align: center;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
  opacity: .85;
}
.dl-note::before { content: '⚠ '; color: var(--accent); }

/* 协议弹窗与勾选 */
.ua-agree { display: flex; align-items: center; gap: 6px; margin: 10px 2px 2px; font-size: 12px; color: var(--muted); font-family: var(--serif); cursor: pointer; line-height: 1.5; -webkit-tap-highlight-color: transparent; tap-highlight-color: transparent; }
.ua-agree a { color: var(--accent); text-decoration: none; -webkit-tap-highlight-color: transparent; tap-highlight-color: transparent; outline: none; }
.ua-agree a:hover { color: var(--accent-deep); }
.ua-agree input {
  -webkit-appearance: none; appearance: none;
  width: 15px; height: 15px; flex: 0 0 auto;
  margin: 0;
  border: 1px solid var(--border); border-radius: 4px;
  background: rgba(255,255,255,.6);
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent; tap-highlight-color: transparent; outline: none;
}
.ua-agree input:checked {
  background: var(--ink);
  border-color: var(--ink);
}
.ua-agree input:checked::after {
  content: '';
  position: absolute; left: 4px; top: 1px;
  width: 4px; height: 8px;
  border: solid #fff; border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.ua-agree input:focus { border-color: var(--accent); }
.agreement-box { max-width: 560px; }
.agreement-box a { color: var(--accent-deep); text-decoration: underline; }
.agreement-box a:hover { color: var(--accent); }
.agreement-title { font-family: var(--serif); color: var(--ink); text-align: center; margin: 4px 0 12px; letter-spacing: 2px; }
.agreement-body { max-height: 56vh; overflow-y: auto; padding-right: 6px; font-family: var(--serif); font-size: 13px; line-height: 1.7; }
.agreement-body h4 { color: var(--accent-deep); margin: 14px 0 6px; font-size: 14px; letter-spacing: 1px; }
.agreement-body p { margin: 0 0 8px; color: var(--muted); }
.ua-agree-modal { justify-content: center; margin: 12px 0 4px; font-size: 13px; }
.ua-agree-link { font-size: 12px; margin: 12px 0 0; }

/* 封面浏览量样式见 .cover-views（与点赞同行右下角） */

/* 封面说明块（条数/内容按后台配置，与图片分块展示） */
.cover-notes {
  margin: 0 12px 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(168, 133, 63, .16);
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: .62;
  transition: opacity .25s ease;
}
.cover-notes:hover { opacity: 1; }
.cn-item {
  position: relative;
  font-size: 12px;
  color: var(--accent-deep);
  font-family: var(--serif);
  line-height: 1.5;
  text-decoration: none;
  word-break: break-all;
  padding-left: 11px;
  transition: color .2s;
}
.cn-item::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
a.cn-item:hover { color: var(--accent-deep); }

/* ===== 后台卡片 ===== */
.panel { max-width: 1040px; margin: 0 auto; padding: 26px 20px 80px; }

/* 后台模块导航布局 */
.admin-layout { display: flex; gap: 22px; align-items: flex-start; }
.admin-nav {
  position: sticky; top: 14px;
  flex: 0 0 168px;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 10px;
  box-shadow: 0 2px 14px rgba(60,45,30,.05);
}
.admin-nav .nav-title { font-family: var(--serif); font-size: 13px; letter-spacing: 2px; color: var(--muted); text-align: center; margin: 0 0 10px; }
.admin-nav nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; text-align: left;
  background: transparent; border: 1px solid transparent;
  border-radius: 8px; padding: 9px 10px;
  font-size: 13px; color: var(--ink); cursor: pointer;
  font-family: var(--serif); letter-spacing: 1px;
  transition: background .15s, border-color .15s;
}
.nav-item:hover { background: rgba(120,90,60,.08); }
.nav-item.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.nav-item .nav-ico { font-size: 14px; }
.nav-item .nav-count {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: #c0392b; color: #fff;
  font-size: 11px; line-height: 18px; text-align: center;
}
.nav-item.active .nav-count { background: rgba(255,255,255,.9); color: var(--accent); }
.admin-main { flex: 1 1 auto; min-width: 0; max-height: calc(100vh - 28px); overflow-y: auto; padding-right: 4px; }
@media (max-width: 720px) {
  .admin-layout { flex-direction: column; }
  .admin-nav { position: static; flex-basis: auto; width: 100%; }
  .admin-nav nav { flex-direction: row; flex-wrap: wrap; }
  .admin-main { max-height: none; }
}
.card {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 14px rgba(60, 45, 30, .05);
}
.card.center { max-width: 360px; margin: 80px auto; text-align: center; }
.card h3 {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 14px; padding-bottom: 11px;
  border-bottom: 1px solid var(--border);
  font-size: 16px; font-family: var(--serif); letter-spacing: 2px; color: var(--ink);
}
.card h3::before {
  content: ''; width: 4px; height: 16px; border-radius: 2px; flex: 0 0 auto;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
}
.card h3 .badge { margin-left: auto; }
.card input[type="text"],
.card input[type="password"],
.card textarea {
  display: block; width: 100%; margin-bottom: 10px; padding: 10px 14px;
  border-radius: 6px; border: 1px solid var(--border); background: rgba(255, 255, 255, .8);
  color: var(--ink); font-family: var(--sans); resize: vertical; transition: border-color .2s;
}
.card input:focus, .card textarea:focus { outline: none; border-color: var(--accent); }
.card textarea { font-size: 13px; }
.card button {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; border: none; padding: 10px 20px; border-radius: 6px;
  cursor: pointer; font-size: 14px; font-family: var(--serif); letter-spacing: 2px; transition: filter .2s;
}
.card button:hover { filter: brightness(1.06); }

.cell button, .linkitem button {
  background: transparent; border: 1px solid var(--border); color: var(--accent);
  padding: 5px 12px; border-radius: 6px; cursor: pointer; font-size: 12px;
  font-family: var(--serif); letter-spacing: 1px; transition: all .2s;
}
.cell button:hover, .linkitem button:hover { border-color: var(--accent-deep); background: rgba(184, 146, 63, .1); }

button.ghost {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  padding: 7px 16px; border-radius: 6px; cursor: pointer; font-family: var(--serif); letter-spacing: 2px;
  transition: all .2s;
}
button.ghost:hover { border-color: var(--accent); color: var(--accent); }

.lbl { font-size: 12px; color: var(--muted); margin: 8px 0 4px; display: block; letter-spacing: 1px; font-family: var(--serif); }
.hint { font-size: 12px; color: var(--muted); margin: 0 0 12px; line-height: 1.8; font-family: var(--serif); letter-spacing: 1px; }
.msg { color: var(--accent-deep); font-size: 13px; min-height: 18px; }

/* ======================================================================
   后台 / 创作者后台 · 修仙水墨主题增强
   - 全宽顶栏（不再居中，左右铺满）
   - 分区标题（泥金圆章图标 + 毛笔标题 + 右置操作）
   - 总览统计网格（自适应铺满）
   - 分组导航（修炼 / 内容 / 运营）
   ====================================================================== */

/* 全宽顶栏 */
.admin-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.admin-header .ah-seal {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px;
  display: grid; place-items: center; font-size: 20px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 3px 12px rgba(120,90,30,.35);
}
.admin-header .ah-title { display: flex; flex-direction: column; gap: 1px; }
.admin-header .ah-title b { font-family: var(--serif); font-size: 16px; letter-spacing: 3px; color: var(--ink); }
.admin-header .ah-title span { font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.admin-header .ah-spacer { margin-left: auto; }
.admin-header .ah-user { font-size: 12px; color: var(--muted); font-family: var(--serif); letter-spacing: 1px; }
.admin-header .ah-user b { color: var(--accent-deep); }
.admin-header .ah-btn {
  border: 1px solid var(--border); background: rgba(255,255,255,.6); color: var(--accent-deep);
  font-family: var(--serif); letter-spacing: 2px; font-size: 13px;
  padding: 7px 16px; border-radius: 8px; cursor: pointer; transition: all .2s;
}
.admin-header .ah-btn:hover { border-color: var(--accent); background: rgba(184,146,63,.1); }

/* 后台主体外框铺满（原本 max-width:1040 居中，现放宽至全宽并保留留白） */
.panel { max-width: 1320px; margin: 0 auto; padding: 22px 26px 90px; }

/* 分区标题 */
.sec-head {
  display: flex; align-items: center; gap: 11px;
  margin: 6px 0 16px; padding-bottom: 11px;
  border-bottom: 1px solid var(--border);
}
.sec-head .sec-ico {
  width: 30px; height: 30px; flex: 0 0 auto; border-radius: 8px;
  display: grid; place-items: center; font-size: 16px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 2px 8px rgba(120,90,30,.3);
}
.sec-head .sec-txt { display: flex; flex-direction: column; gap: 1px; }
.sec-head h2 {
  margin: 0; font-family: var(--serif); font-size: 17px; letter-spacing: 3px; color: var(--ink);
  position: relative;
}
.sec-head .sec-sub { font-size: 11.5px; color: var(--muted); letter-spacing: 1px; }
.sec-head .sec-act { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* 卡片标题（带小泥金竖标） */
.card-title {
  display: flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-family: var(--serif); font-size: 15px; letter-spacing: 2px; color: var(--ink);
}
.card-title::before { content: ''; width: 4px; height: 15px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep)); }
.card-title .ct-sub { margin-left: auto; font-size: 11.5px; color: var(--muted); letter-spacing: 0; font-family: var(--sans); }

/* 总览统计网格（自适应铺满左右） */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 14px; margin-bottom: 22px;
}
.stat-card {
  border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.6));
  box-shadow: 0 2px 14px rgba(60,45,30,.05);
  display: flex; align-items: center; gap: 14px;
}
.stat-card .sc-ico {
  width: 42px; height: 42px; flex: 0 0 auto; border-radius: 11px;
  display: grid; place-items: center; font-size: 21px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 3px 10px rgba(120,90,30,.3);
}
.stat-card .sc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-card .sc-num { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1; }
.stat-card .sc-label { font-size: 12px; color: var(--muted); letter-spacing: 1px; }

/* 双列分屏（宽屏左右铺开） */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 880px) { .split-2 { grid-template-columns: 1fr; } }

/* 分组导航标签 */
.nav-group { margin: 12px 0 4px; padding: 0 8px;
  font-family: var(--serif); font-size: 11px; letter-spacing: 3px; color: var(--accent-deep);
  display: flex; align-items: center; gap: 8px; }
.nav-group::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.admin-nav nav { gap: 3px; }
.nav-item .nav-ico {
  width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 6px; background: rgba(184,146,63,.12); font-size: 13px;
}
.nav-item.active .nav-ico { background: rgba(255,255,255,.22); }
.nav-item { gap: 9px; padding: 9px 11px; }

/* 表格风格的工作/链接列表（不再窄居中） */
.admin-cover-thumb { width: 56px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); cursor: zoom-in; }

/* ===== 后台真实数据统计表 ===== */
.stat-wrap { overflow-x: auto; }
.stat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-family: var(--serif);
  letter-spacing: 1px;
}
.stat-table th, .stat-table td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(168, 133, 63, .14);
  white-space: nowrap;
}
.stat-table th {
  color: var(--muted);
  font-weight: 600;
}
.stat-table td { color: var(--fg); }
.stat-table tbody tr:hover { background: rgba(184, 146, 63, .06); }
.stat-table td.num { font-variant-numeric: tabular-nums; color: var(--accent-deep); }

.hidden { display: none !important; }

/* 非首页（个人中心 / AI 生图）隐藏顶部互跳导航，仅首页提供入口，且不依赖 JS、零闪烁 */
body[data-page="my"] #genBtn,
body[data-page="my"] #myBtn,
body[data-page="gen"] #genBtn,
body[data-page="gen"] #myBtn { display: none !important; }

/* ===== 独立页面布局（个人中心 / AI 生图，替代原弹窗） ===== */
.brand-link { text-decoration: none; color: inherit; display: flex; align-items: center; }
.brand-link:hover h1 { color: var(--accent-deep); }
/* 独立页铺满整屏：去掉限宽小框，内容随视口展开 */
.page-main {
  padding: 28px clamp(18px, 5vw, 72px) calc(72px + env(safe-area-inset-bottom));
  max-width: 1500px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
/* 个人中心专属：真正铺满全屏，去掉 max-width + 收紧横向 padding */
#myMain {
  max-width: none;
  padding-left: clamp(16px, 2.5vw, 40px);
  padding-right: clamp(16px, 2.5vw, 40px);
}
.page-title { margin: 2px 0 22px; font-size: 22px; letter-spacing: 4px; color: var(--ink); }
/* 独立页返回按钮：与标题同行，移动端更明显的返回入口 */
.page-head { display: flex; align-items: center; gap: 12px; margin: 2px 0 22px; }
.page-head .page-title { margin: 0; }
.back-btn { flex: 0 0 auto; height: 38px; padding: 0 14px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--ink); border-radius: 999px; cursor: pointer; font-family: var(--serif); letter-spacing: 1px; font-size: 13px; transition: all .2s; }
.back-btn:hover { color: #fff; background: linear-gradient(120deg,#b8923f,#caa85a); border-color: transparent; }
.back-btn:active { transform: scale(.95); }
/* 去掉包裹盒子：内容直接落在页面背景上，不再有边框/卡片感 */
.page-panel {
  box-shadow: none;
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
}
/* 独立页内的卡片不再受 460 / 480 限宽；个人中心面板铺满 main(已 1500px 限宽) */
.page-main .user-panel-box { max-width: none; margin: 0; }
.page-main .gen-box { max-width: none; }
/* 独立页卡片内非 flex 行的输入框要撑满宽度 */
.page-panel .sync-input { width: 100%; }

/* 个人中心概览：左对齐两栏卡片布局 */
.center-overview {
  width: 100%;
  padding: 6px 0 24px;
  text-align: left;
}

/* 顶部用户信息卡 */
.center-profile {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  background:
    radial-gradient(ellipse at top right, rgba(226,138,168,.18) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(255,200,140,.14) 0%, transparent 50%),
    linear-gradient(135deg, #fff 0%, #fff5fa 60%, #fdf0f5 100%);
  border: 1px solid rgba(226,138,168,.32);
  border-radius: 22px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 10px 32px rgba(194,88,138,.12);
  position: relative;
  overflow: hidden;
}
.center-profile::before {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(226,138,168,.20) 0%, transparent 70%);
  pointer-events: none;
}
.center-profile::after {
  content: ''; position: absolute; left: -40px; bottom: -50px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,146,63,.16) 0%, transparent 70%);
  pointer-events: none;
}
.center-profile-main { display: flex; align-items: center; gap: 22px; min-width: 0; position: relative; z-index: 1; }
.center-profile-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.center-nick { font-size: 24px; font-weight: 700; letter-spacing: 1px; }
.center-meta { font-size: 14px; color: var(--muted); }
.center-profile-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; flex-shrink: 0; position: relative; z-index: 1; }
.center-profile-actions .sync-btn {
  flex: 0 0 auto; white-space: nowrap;
  padding: 10px 20px; border-radius: 12px; font-size: 14px; font-weight: 600;
}
.center-sign-card #signBtn { width: 100%; }
.center-settings-card { display: flex; flex-direction: column; gap: 10px; }
.center-settings-card .sync-btn {
  width: 100%; padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 600;
  text-align: center; transition: background .15s, border-color .15s, color .15s;
}
.center-settings-card .sync-btn.ghost { background: #fff; border: 1px solid rgba(0,0,0,.12); color: var(--ink); }
.center-settings-card .sync-btn.ghost:hover { border-color: var(--accent); color: var(--accent-deep); }
.center-settings-card .sync-btn.danger { background: #fff; border: 1px solid rgba(192,57,43,.25); color: #c0392b; }
.center-settings-card .sync-btn.danger:hover { background: #c0392b; color: #fff; border-color: #c0392b; }

/* 两栏内容网格 */
.center-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(380px, 1fr);
  gap: 28px;
  align-items: start;
}
.center-col { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: none; align-items: stretch; }

/* 通用卡片 */
.center-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 22px 26px;
  box-shadow: 0 4px 22px rgba(40,30,20,.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
}
.center-card::before {
  content: ''; position: absolute; left: 0; top: 18px; bottom: 18px;
  width: 4px; border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #e28aa8, #c2588a);
  opacity: 0; transition: opacity .2s;
}
.center-card:hover {
  border-color: rgba(226,138,168,.3);
  box-shadow: 0 8px 28px rgba(194,88,138,.10);
}
.center-card:hover::before { opacity: 1; }
.center-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  gap: 8px;
}
.center-card-title::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, #e28aa8, #c2588a);
}

.center-foot { margin-top: 24px; text-align: center; }
.center-settings { display: none; }
.center-logout { display: none; }
/* ===== 头像 ===== */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 22px; line-height: 1; overflow: hidden; flex: 0 0 auto;
  box-shadow: none; user-select: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-lg { width: 72px; height: 72px; font-size: 38px; }
.avatar-xl { width: 110px; height: 110px; font-size: 56px; }
/* 可点击更换的头像按钮（透明背景，悬停提示） */
.center-avatar {
  border: none; background: transparent; padding: 0; cursor: pointer;
  border-radius: 50%; line-height: 0; transition: transform .15s;
  position: relative; box-shadow: 0 4px 16px rgba(40,30,20,.20);
}
.center-avatar:hover { transform: scale(1.04); }
.center-avatar::after {
  content: '换'; position: absolute; right: 0; bottom: 0;
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent);
  color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(194,88,138,.5); border: 2.5px solid #fff;
  transition: transform .15s; pointer-events: none;
}
.center-avatar:hover::after { transform: scale(1.12); }
.ua-avatar-row { display: flex; justify-content: center; margin-bottom: 6px; }
/* 头像编辑弹窗 */
.avatar-card { max-width: 420px; }
.avatar-preview { display: flex; justify-content: center; margin: 8px 0 14px; }
.avatar-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 4px; }
.avatar-actions .sync-btn { cursor: pointer; }
/* ===== 头像身份边框 ===== */
/* 基础：相对定位以便徽章定位；默认无边框（普通低境界用户仍按境界显示细环） */
.avatar { position: relative; }
/* 身份边框（优先级最高，含角标徽章，基于运营 role，与收费无关）：admin 站长 / staff 官方创作者 / official 官方回复 */
.avatar--admin  { box-shadow: none; }
.avatar--staff  { box-shadow: none; }
.avatar--official { box-shadow: none; }
.avatar--admin::after, .avatar--staff::after, .avatar--official::after {
  display: none;
}
/* 普通用户按修仙境界显示细环（练气→道祖），与身份边框互斥 —— 已按要求去掉彩色外环 */
.avatar--lv0 { box-shadow: none; }
.avatar--lv1 { box-shadow: none; }
.avatar--lv2 { box-shadow: none; }
.avatar--lv3 { box-shadow: none; }
.avatar--lv4 { box-shadow: none; }
.avatar--lv5 { box-shadow: none; }
.avatar--lv6 { box-shadow: none; }
.avatar--lv7 { box-shadow: none; }
.avatar--lv8 { box-shadow: none; }
.avatar--lv9 { box-shadow: none; }
/* 小尺寸头像的徽章缩小，避免遮挡 */
.avatar-xs::after, .avatar-xxs::after { width: 12px; height: 12px; font-size: 8px; right: -2px; bottom: -2px; }
/* 多图卡作者小头像 + 名称 */
.avatar-xxs { width: 18px; height: 18px; font-size: 11px; flex: 0 0 auto; }
.cover-author { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: 12px; color: var(--accent-deep); text-decoration: none; vertical-align: middle; max-width: 60%; overflow: hidden; }
.cover-author:hover { color: var(--accent); text-decoration: underline; }
.cover-author-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 首页「个人中心」入口：登录后显示头像 */
#myBtn.has-avatar { padding: 0; border: none; background: transparent; display: inline-flex; align-items: center; gap: 0; }
#myBtn.has-avatar .avatar-btn { width: 44px; height: 44px; font-size: 22px; box-shadow: none !important; }
#myBtn.has-avatar .badge { position: static; margin-left: 0; }

/* ===== 自定义 Tooltip（替代浏览器原生 title） ===== */
[data-tip] { position: relative; }
[data-tip][data-tip-hover-only]:active::after,
[data-tip][data-tip-hover-only]:active::before,
[data-tip][data-tip-hover-only]:focus::after,
[data-tip][data-tip-hover-only]:focus::before { opacity: 0 !important; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  margin-top: 10px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, .88);
  color: #222;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 1000;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
[data-tip]::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 4px;
  border: 6px solid transparent;
  border-bottom-color: rgba(255, 255, 255, .88);
  opacity: 0;
  transition: opacity .18s ease;
  z-index: 1000;
  pointer-events: none;
}
[data-tip]:hover::after,
[data-tip]:hover::before { opacity: 1; }
[data-tip]:hover::after { transform: translateX(-50%) translateY(0); }

/* 顶部「更多」按钮已合并进头像下拉，此处保留 .ua-points-summary 等后续样式 */
.ua-points-summary { justify-content: flex-start; }
.center-actions { display: flex; gap: 10px; justify-content: flex-start; flex-wrap: wrap; }
.ua-code-row { justify-content: flex-start; }
.ua-invite-box { width: 100%; }
@media (min-width: 860px) {
  .center-nick { font-size: 22px; }
  .center-meta { font-size: 15px; }
  .ua-points-summary { font-size: 15px; }
  .ua-invite-title { font-size: 15px; }
  .ua-invite-text { font-size: 13px; }
  .center-actions .sync-btn { padding: 12px 18px; font-size: 15px; }
}
@media (max-width: 860px) {
  .center-profile { flex-direction: column; align-items: flex-start; }
  .center-profile-actions { width: 100%; }
  .center-grid { grid-template-columns: 1fr; }
}
/* 收藏 / 历史：与个人中心概览保持统一宽度，铺满 page-main */
.page-main .user-panel-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  max-height: none;
  overflow: visible;
  width: 100%;
  max-width: none;
  margin: 0;
  justify-content: start;
}

/* ===== 响应式 ===== */
@media (max-width: 600px) {
  .topbar { flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .topbar h1 { font-size: 16px; letter-spacing: 1px; }
  .topbar h1::before { width: 26px; height: 26px; font-size: 12px; }
  /* 窄屏隐藏长副标题，顶栏只留主名，按钮更易排成一行 */
  .topbar h1 .h1-sub { display: none; }
  .search-wrap { order: 3; width: 100%; max-width: none; flex: 0 0 100%; margin-top: 2px; }
  /* 窄屏：第一行 Logo 与右侧操作按钮两端对齐，第二行搜索框独占一行 */
  .topbar { justify-content: space-between; }
  .topbar h1 { flex: 1 1 auto; min-width: 0; }
  .top-actions { flex: 0 0 auto; margin-left: 0; }
  .top-tools { padding: 3px 4px; gap: 2px; }
  main { padding: 16px 14px 80px; }

  /* 筛选面板移动端：纵向堆叠 */
  .filter-panel { padding: 10px 12px; margin-bottom: 12px; }
  .filter-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .filter-row + .filter-row { margin-top: 8px; padding-top: 8px; }
  .filter-row-primary { gap: 8px; }
  .filter-group { width: 100%; justify-content: flex-start; }
  .filter-row-secondary > .filter-search {
    max-width: none;
    margin-left: 0;
    width: 100%;
  }
  .filter-row-secondary { flex-direction: column; align-items: stretch; }

  .modal { padding: 16px 8px; }
  .modal-box { padding: 14px 16px 20px; }
  .nav { width: 36px; height: 36px; font-size: 20px; }
  .viewer-frame.portrait { height: 70vh; }
  .viewer-frame.landscape { max-height: 60vh; }
  h2 { font-size: 16px; letter-spacing: 2px; }
  .dl-note { font-size: 11px; }
  .agreement-body { font-size: 12px; max-height: 60vh; }
}

/* 超窄屏（≤360px）：进一步压缩按钮间距，避免顶栏换行过多 */
@media (max-width: 360px) {
  .topbar { gap: 8px; padding: 8px 12px; }
  .user-toggle { padding: 0 6px; }
}

/* ===== 用户功能：收藏 / 历史（顶栏入口 + 面板） ===== */
.user-toggle {
  flex: 0 0 auto;
  height: 38px;
  min-width: 38px;
  padding: 0 12px;
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  background: transparent;
  color: #111;
  font-size: 13px; line-height: 1;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s, color .2s;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  outline: none;
}
.user-toggle:hover {
  color: #111;
  background: rgba(0, 0, 0, .06);
  box-shadow: none;
  animation: none;
}
.user-toggle:active { transform: scale(.92); }
/* 面板打开态：与 hover 一致，黑色简约 */
.user-toggle.is-open {
  color: #111;
  border-color: #e0e0e0;
  background: rgba(0, 0, 0, .08);
  box-shadow: none;
  animation: none;
}
/* 顶栏图标：黑色加粗线性图标 */
.user-toggle .ut-ico {
  width: 19px; height: 19px;
  display: block;
  color: #111;
  stroke-width: 2.2;
  filter: none;
  transition: color .2s ease;
}
.user-toggle:hover .ut-ico,
.user-toggle.is-open .ut-ico {
  color: #000;
}
.user-toggle .badge {
  font-size: 11px; line-height: 1;
  min-width: 16px; height: 16px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--accent); color: #fff;
  font-family: var(--sans);
}

/* 封面卡片收藏按钮（与服务端点赞区分：本地星标） */
.fav-btn {
  background: rgba(184, 146, 63, .08);
  border: 1px solid var(--border);
  color: var(--accent-deep);
  border-radius: 999px;
  width: 34px; height: 30px;
  cursor: pointer;
  font-size: 15px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s ease;
  /* 绝对定位到封面操作栏右侧，使点赞保持居中 */
  position: absolute;
  right: 12px;
  top: 0; bottom: 0;
  margin: auto 0;
}
.fav-btn:hover { background: rgba(184, 146, 63, .16); border-color: var(--accent); transform: translateY(-1px); }
.fav-btn:active { transform: scale(.95); }
/* 收藏选中态：混沌水墨流动动画（与点赞选中态同源） */
.fav-btn.faved {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg,
    rgba(34, 28, 22, .82),
    rgba(96, 86, 74, .66),
    rgba(52, 44, 36, .78),
    rgba(120, 108, 92, .6),
    rgba(34, 28, 22, .82));
  background-size: 220% 100%;
  animation: inkFlow 3.4s linear infinite;
  box-shadow: 0 2px 12px rgba(40, 30, 20, .28);
}

/* 用户面板（收藏 / 历史） */
.user-panel-box { max-width: 460px; }
.user-panel-tabs { display: flex; gap: 8px; margin-bottom: 14px; padding: 0 4px; justify-content: flex-start; flex-wrap: wrap; }
.up-tab {
  flex: 0 0 auto;
  padding: 8px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .4);
  color: var(--muted);
  font-family: var(--serif);
  letter-spacing: 1px;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s ease;
}
@media (min-width: 860px) {
  .user-panel-tabs { margin-bottom: 22px; }
}
@media (max-width: 560px) {
  .up-tab { flex: 1; padding: 8px 0; }
}
.up-tab:hover { border-color: var(--accent); color: var(--accent-deep); }
/* 面板标签选中态：混沌水墨流动动画 */
.up-tab.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg,
    rgba(34, 28, 22, .82),
    rgba(96, 86, 74, .66),
    rgba(52, 44, 36, .78),
    rgba(120, 108, 92, .6),
    rgba(34, 28, 22, .82));
  background-size: 220% 100%;
  animation: inkFlow 3.4s linear infinite;
  box-shadow: 0 2px 14px rgba(40, 30, 20, .28);
}

.user-panel-list {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 64vh; overflow-y: auto; padding: 2px;
}
.up-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: all .2s ease;
}
.up-item:hover { border-color: var(--accent); background: rgba(255, 255, 255, .8); transform: translateY(-1px); }
.up-item img { width: 52px; height: 70px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; background: var(--bg2); }
.up-item.landscape img { width: 84px; height: 52px; }
.up-meta { display: flex; flex-direction: column; min-width: 0; justify-content: center; }
.up-name { font-weight: 600; font-size: 14px; color: var(--text, #222); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-sub { font-size: 12px; color: var(--muted, #888); }
.up-meta { flex: 1; min-width: 0; }
.up-name { font-family: var(--serif); font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-sub { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 收藏面板内「移除」按钮：混沌水墨流动 + 朱红警示 */
.up-del {
  flex: 0 0 auto;
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  font-size: 12px; cursor: pointer;
  background: linear-gradient(120deg,
    rgba(34, 28, 22, .82),
    rgba(96, 86, 74, .66),
    rgba(52, 44, 36, .78),
    rgba(120, 108, 92, .6),
    rgba(34, 28, 22, .82));
  background-size: 220% 100%;
  animation: inkFlow 3.4s linear infinite;
  box-shadow: 0 2px 14px rgba(40, 30, 20, .28);
  transition: filter .2s ease, transform .15s ease;
}
.up-del:hover { filter: brightness(1.08); background: linear-gradient(135deg, #b04a3a, #8a3326); animation: none; }
.up-del:active { transform: scale(.95); }

@media (max-width: 600px) {
  .user-panel-box { max-width: none; }
  .user-toggle { padding: 0 8px; }
}

/* 同步码区（云端同步身份） */
.sync-bar {
  margin-top: 6px;
  padding: 12px 10px 4px;
  border-top: 1px dashed var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.sync-code { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sync-code code {
  font-family: var(--sans);
  letter-spacing: 2px;
  color: var(--accent-deep);
  background: rgba(255, 255, 255, .6);
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 600;
}
.sync-use { display: flex; gap: 8px; }
.sync-input {
  flex: 1; min-width: 0;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  font-size: 13px; letter-spacing: 1px;
  outline: none;
}
.sync-input:focus { border-color: var(--accent); }
/* 密码框：与同步码框同款外观，但不强制大写（避免密码显示全大写造成困惑） */
.pwd-input {
  width: 100%; box-sizing: border-box;
  padding: 7px 34px 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  font-size: 13px;
  outline: none;
}
.pwd-input:focus { border-color: var(--accent); }
/* [fix-20260905pwd] 隐藏 Edge/Chromium 原生密码显隐按钮——与站内自定义眼睛按钮重复出现两个 */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear { display: none; }
/* 通用密码显隐小按钮（供无 ua-pwd-wrap 的简易登录框复用） */
.pwd-eye-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: none; background: transparent; border-radius: 50%;
  color: var(--muted); cursor: pointer; display: grid; place-items: center; padding: 0;
}
.pwd-eye-btn:hover { background: rgba(0, 0, 0, .05); color: var(--accent-deep); }
.pwd-eye-btn svg { width: 17px; height: 17px; display: block; }
.sync-actions { display: flex; gap: 8px; margin-top: 2px; }
.sync-actions .up-del { flex: 1; text-align: center; }

/* ===== 同步码按钮：黑金水墨混沌流动主题 ===== */
/* 主操作（复制 / 同步 / 开启同步）：混沌水墨流动 + 金光晕 */
.sync-btn {
  flex: 1;
  text-align: center;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-family: var(--serif);
  letter-spacing: 1px;
  cursor: pointer;
  background: linear-gradient(120deg,
    rgba(34, 28, 22, .82),
    rgba(96, 86, 74, .66),
    rgba(52, 44, 36, .78),
    rgba(120, 108, 92, .6),
    rgba(34, 28, 22, .82));
  background-size: 220% 100%;
  animation: inkFlow 3.4s linear infinite;
  box-shadow: 0 2px 14px rgba(40, 30, 20, .28);
  transition: filter .2s ease, transform .15s ease;
}
.sync-btn:hover { filter: brightness(1.12); }
.sync-btn:active { transform: scale(.95); }
/* 行内复制按钮：不拉伸 */
.sync-code .sync-btn { flex: 0 0 auto; }
/* 危险操作（退出 / 重置）：混沌水墨流动 + 朱红描边警示 */
.sync-btn.danger {
  background: linear-gradient(120deg,
    rgba(34, 28, 22, .82),
    rgba(96, 86, 74, .66),
    rgba(52, 44, 36, .78),
    rgba(120, 108, 92, .6),
    rgba(34, 28, 22, .82));
  background-size: 220% 100%;
  animation: inkFlow 3.4s linear infinite;
  border-color: rgba(176, 74, 58, .5);
  box-shadow: 0 2px 14px rgba(138, 51, 38, .32);
}
.sync-btn.danger:hover { filter: brightness(1.06); background: linear-gradient(135deg, #b04a3a, #8a3326); animation: none; }

/* ===== 账号区（注册 / 登录 / 修改信息） ===== */
.user-account { padding: 4px 0; }
/* 后端降级提示（腾讯云等未开放账号系统时） */
.ua-degrade { padding: 6px 2px; }
.ua-degrade-title { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--accent-deep); }
.ua-degrade-text { margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.ua-form, .ua-on { display: flex; flex-direction: column; gap: 8px; }
.ua-sub { font-size: 12px; color: var(--accent-deep); letter-spacing: 1px; opacity: .88; margin-top: 2px; }
.ua-sub:not(:first-child) { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 6px; }
.ua-row { display: flex; }
.ua-row .sync-input { width: 100%; }
.ua-actions { display: flex; gap: 8px; }
.ua-actions .sync-btn { flex: 1; }
.ua-id { font-size: 13px; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ua-id code { color: var(--accent-deep); background: rgba(255, 255, 255, .6); border: 1px solid var(--border); border-radius: 6px; padding: 1px 8px; letter-spacing: 2px; }
.ua-id .sync-btn { flex: 0 0 auto; padding: 4px 12px; }
.ua-tip { margin: 2px 0 0; font-size: 12px; color: var(--accent-deep); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.ua-tip.show { opacity: 1; }
.edit-limit-tip { margin: 6px 0 10px; font-size: 12px; color: #8a93a3; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 7px 10px; line-height: 1.5; }
/* ===== 全局浮层 toast：比面板内小提示更醒目 ===== */
.toast-host {
  position: fixed; top: 18px; left: 0; right: 0;
  z-index: 2147483646;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  max-width: 86vw;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px; font-weight: 600; letter-spacing: .5px;
  font-family: var(--serif);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  border: 1px solid rgba(255, 255, 255, .25);
  opacity: 0; transform: translateY(-16px);
  transition: opacity .3s ease, transform .3s ease;
  cursor: pointer;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-info    { background: linear-gradient(120deg, #2a221a, #4a3f30, #6b5a3c); }
.toast-error   { background: linear-gradient(120deg, #8c2f2f, #b5402f, #d2691e); border-color: rgba(255, 255, 255, .35); }
.toast-success { background: linear-gradient(120deg, #1f6b3a, #2f8f4f, #4caf6a); }
/* ===== 单图上传文件选择 label 闪红（提示未选文件） ===== */
@keyframes flash-red {
  0%, 100% { background: rgba(255, 255, 255, .08); color: inherit; box-shadow: none; }
  25%, 75% { background: #e74c3c; color: #fff; box-shadow: 0 0 0 4px rgba(231, 76, 60, .35); }
  50% { background: #c0392b; color: #fff; box-shadow: 0 0 0 8px rgba(231, 76, 60, .15); }
}
.tool-btn.flash { animation: flash-red .55s ease-in-out 3; border-radius: 8px; }
/* ===== 提交按钮上传中态 ===== */
button[disabled] { opacity: .7; cursor: not-allowed; }
/* ===== 账号面板左上角返回上一级按钮 ===== */
.ua-back {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  color: var(--accent-deep);
  font-family: var(--serif); font-size: 13px; letter-spacing: 1px;
  cursor: pointer;
  transition: filter .2s, transform .15s;
}
.ua-back:hover { filter: brightness(1.1); }
.ua-back:active { transform: scale(.95); }
/* 注册 / 登录 二选一 chooser */
.ua-chooser { display: flex; gap: 8px; margin-bottom: 14px; }
.ua-tab {
  flex: 1; padding: 9px 0; border: 1px solid var(--border); border-radius: 999px;
  background: transparent; color: var(--ink); font-size: 14px; cursor: pointer; transition: all .2s ease;
}
.ua-tab:hover { border-color: var(--accent); color: var(--accent-deep); }
.ua-tab.active {
  color: #fff; border-color: transparent;
  background: linear-gradient(120deg, rgba(34, 28, 22, .85), rgba(96, 86, 74, .7), rgba(52, 44, 36, .82));
  background-size: 200% 200%;
  animation: inkFlow 3.4s linear infinite;
  box-shadow: 0 2px 14px rgba(40, 30, 20, .28);
}
/* 账号栏：注册/登录后展示系统生成的账号（只读，可复制） */
.ua-label { font-size: 12px; color: var(--accent-deep); opacity: .92; margin-bottom: 2px; }
.ua-account-row { display: flex; gap: 8px; align-items: stretch; }
.ua-account-row .sync-input { background: rgba(255, 255, 255, .6); color: var(--accent-deep); font-weight: 600; letter-spacing: 3px; }
.ua-account-row .sync-input:focus { border-color: var(--accent); }
/* 同步码为系统生成、只读：明显置灰 + 虚线边框 + 只读光标，区别于可编辑输入 */
.ua-account-row .sync-input[readonly],
.ua-account-row #uaCodeView {
  background: rgba(184, 146, 63, .08);
  color: var(--accent-deep);
  border-style: dashed;
  cursor: default;
  letter-spacing: 2px;
  font-weight: 600;
}
.ua-account-row .sync-btn { flex: 0 0 auto; padding: 7px 16px; }

/* 手机号登录：验证码行 + 获取按钮 + 链接 + VIP 徽章 / 额度 */
.ua-code-row { display: flex; gap: 8px; }
.ua-code-row .sync-input { flex: 1; min-width: 0; }
/* 验证码 / 复制 / 邀请链接等行内按钮：按内容宽度，不与生图操作按钮一起强行拉伸 */
.ua-code-row .sync-btn { flex: 0 0 auto; }
.ua-code-row .sms-btn { padding: 0 16px; white-space: nowrap; }
.ua-code-row .sms-btn:disabled { opacity: .55; filter: grayscale(.3); cursor: not-allowed; animation: none; }
.ua-links { display: flex; gap: 14px; justify-content: center; font-size: 12px; color: var(--muted); }
/* 注册 / 忘记密码：与同步码按钮同源的黑金水墨混沌流动 + 金光晕 */
.ua-links a {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--serif);
  letter-spacing: 1px;
  background: linear-gradient(120deg,
    rgba(34, 28, 22, .82),
    rgba(96, 86, 74, .66),
    rgba(52, 44, 36, .78),
    rgba(120, 108, 92, .6),
    rgba(34, 28, 22, .82));
  background-size: 220% 100%;
  animation: inkFlow 3.4s linear infinite;
  box-shadow: 0 2px 14px rgba(40, 30, 20, .28);
  transition: filter .2s ease, transform .15s ease;
}
.ua-links a:hover { filter: brightness(1.12); }
.ua-links a:active { transform: scale(.95); }
/* 点击时从指尖晕开扩散的水墨 ripple */
.ua-links a .ink-ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle,
    rgba(18, 14, 10, .58) 0%,
    rgba(58, 46, 34, .4) 42%,
    rgba(184, 146, 63, .32) 68%,
    rgba(184, 146, 63, 0) 100%);
  filter: blur(.6px);
  animation: inkRipple .72s cubic-bezier(.22, .61, .36, 1) forwards;
}
@keyframes inkRipple {
  0%   { transform: translate(-50%, -50%) scale(0);   opacity: .8; }
  60%  { opacity: .5; }
  100% { transform: translate(-50%, -50%) scale(3.6); opacity: 0; }
}
.ua-vip-row { display: flex; align-items: center; gap: 10px; padding: 6px 2px; border-top: 1px dashed var(--border); margin-top: 2px; }
.vip-badge {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  padding: 2px 10px; border-radius: 999px; color: #fff; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 1px 8px rgba(120, 90, 30, .3);
}
.vip-badge.high { background: linear-gradient(135deg, #d4af37, #b8923f); box-shadow: 0 0 10px rgba(212, 175, 55, .45); }
.ua-meta { font-size: 12px; color: var(--muted); font-family: var(--serif); letter-spacing: 1px; }
.ua-meta b { color: var(--accent-deep); font-variant-numeric: tabular-nums; }

/* 账号面板：游客态提示（强调免登录浏览/点赞，手机号仅用于升级 VIP） */
.ua-visitor { font-size: 12px; color: var(--muted); line-height: 1.6; background: var(--bg-soft);
  border: 1px dashed var(--border); border-radius: 8px; padding: 8px 10px; margin-bottom: 10px;
  font-family: var(--serif); letter-spacing: .5px; }
.ua-visitor b { color: #000; font-weight: 600; }
.ua-sms-tip { font-size: 12px; line-height: 1.6; background: #fff7e6;
  border: 1px solid #ffd98a; border-radius: 8px; padding: 8px 10px; margin: 6px 0 10px;
  color: #a06b00; font-family: var(--serif); letter-spacing: .5px; }
.ua-chooser .ua-tab:first-child { color: var(--accent-deep); }

/* 已登录未 VIP：绑定手机号升级 VIP 框 */
.ua-bind-box { margin: 0; padding: 0; border: none; background: transparent; }
.ua-bind-title { margin: -4px 0 12px; font-size: 13px; color: var(--accent-deep); font-weight: 600; font-family: var(--serif); letter-spacing: .5px; }
.ua-bind-box .ua-actions { margin-top: 8px; }
.ua-bind-box .sync-btn { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; border-color: transparent; }

/* 图形验证码行 */
.ua-captcha-row { display: flex; align-items: center; gap: 8px; }
.ua-captcha-row .ua-cap { width: 96px; height: 36px; border-radius: 8px; border: 1px solid rgba(184, 146, 63, .35); cursor: pointer; flex: 0 0 auto; transition: border-color .2s; }
.ua-captcha-row .ua-cap:hover { border-color: var(--accent); }
.ua-captcha-row .cap-input { flex: 1 1 auto; min-width: 0; }
.ua-captcha-row .sms-btn { flex: 0 0 auto; padding: 7px 10px; font-size: 12px; }

/* 密码显隐切换按钮：内嵌在密码框右侧，空密码时隐藏 */
.ua-pwd-wrap { position: relative; align-items: center; }
.ua-pwd-wrap .pwd-input { width: 100%; }
.pwd-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; padding: 0;
  border: none; border-radius: 50%;
  background: transparent;
  color: var(--muted); cursor: pointer;
  font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s, color .2s;
  -webkit-tap-highlight-color: transparent; tap-highlight-color: transparent; outline: none;
}
.ua-pwd-wrap.has-value .pwd-toggle { opacity: 1; pointer-events: auto; }
.pwd-toggle:hover { color: var(--accent-deep); }
.pwd-toggle.showing { color: var(--accent-deep); }
.pwd-toggle .eye-icon { display: inline-flex; line-height: 1; pointer-events: none; }

/* 积分拆分摘要（免费 / 充值 / 总） */
.ua-points-summary { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 2px; font-size: 13px; color: var(--text-dim); }
.ua-points-summary .pt-item b { color: var(--ink); margin-left: 2px; }
.ua-points-summary .pt-free b { color: #4a9a52; }
.ua-points-summary .pt-paid b { color: #b8860b; }
.ua-points-note { margin: 2px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted); }

/* ===== AI 生图面板 ===== */
.gen-box {
  /* gen 页面为独立整页：宽屏左控制 / 右大预览双栏 */
}
.gen-ai-tip { font-size: 12px; color: var(--muted); margin: 2px 0 10px; font-family: var(--serif); letter-spacing: 1px; }
.gen-ai-tip a { color: var(--accent); cursor: pointer; }
.gen-channel { display: flex; gap: 8px; margin-bottom: 12px; }
.gen-ch { flex: 1; padding: 10px 4px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--muted);
  border-radius: 8px; cursor: pointer; font-family: var(--serif); letter-spacing: 1px; font-size: 13px; transition: all .2s; }
.gen-ch.active { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; border-color: transparent; box-shadow: 0 2px 10px rgba(120,90,30,.25); }
.gen-tier, .gen-model { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.gen-tier select, .gen-model select, .gen-size select, .rc-form select { flex: 1; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft); color: var(--ink); font-family: var(--serif); }
.gen-size { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.gen-prompt { width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft); color: var(--ink); font-family: var(--serif); letter-spacing: .5px; resize: vertical; margin-bottom: 8px; min-height: 110px; }
.gen-prompt:focus, .gen-size select:focus, .gen-tier select:focus, .gen-model select:focus, .rc-form select:focus { outline: none; border-color: var(--accent); }
.gen-size { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.gen-form { min-width: 0; }
.gen-result { margin-top: 12px; }
.gen-empty {
  min-height: 320px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; border: 2px dashed var(--border); border-radius: 14px;
  background: rgba(255,255,255,.35); color: var(--muted); font-family: var(--serif);
}
.gen-empty p { margin: 0; font-size: 14px; letter-spacing: 1px; }
.gen-img-wrap { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-soft); }
.gen-img-wrap img { width: 100%; display: block; border-radius: 10px; }
.gen-img-actions { display: flex; gap: 8px; margin-top: 8px; }
.gen-img-actions .sync-btn { flex: 1; text-align: center; text-decoration: none; }
.gen-cost { font-size: 12px; color: var(--accent-deep); text-align: center; margin: 6px 0 0; }
/* 生图中加载态：明确的 spinner + 文案，让客户知道正在生成 */
.gen-loading { min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border: 2px dashed var(--border); border-radius: 14px; background: rgba(255,255,255,.35); color: var(--muted); font-family: var(--serif); letter-spacing: 1px; }
.spinner { width: 42px; height: 42px; border: 4px solid rgba(184,146,63,.25); border-top-color: var(--accent); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* 未绑定手机号：引导先绑定 */
.gen-need-bind { min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 2px dashed var(--border); border-radius: 14px; background: rgba(255,255,255,.35); color: var(--muted); font-family: var(--serif); text-align: center; padding: 20px; }
.gen-bind-title { font-size: 16px; color: var(--ink); margin: 0; }
.gen-bind-sub { font-size: 13px; margin: 0 0 6px; }
.gen-need-bind .sync-btn { max-width: 220px; }
/* 图生图：参考图上传与预览 */
.gen-ref { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.gen-ref input[type="file"] { font-size: 12px; color: var(--muted); }
.gen-ref-preview { max-width: 160px; border: 1px dashed var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.gen-ref-preview img { width: 100%; display: block; }
.gen-ref-clear { align-self: flex-start; font-size: 12px; padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-soft); color: var(--ink); cursor: pointer; font-family: var(--serif); }
.gen-ref-tip { font-size: 12px; margin: 2px 0 0; line-height: 1.5; }
.gen-ref-tip.warn { color: #c0392b; }
.gen-ref-preview { display: flex; flex-wrap: wrap; gap: 8px; max-width: 320px; }
.gen-ref-item { position: relative; width: 92px; height: 92px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.gen-ref-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gen-ref-del { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: none; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; line-height: 20px; cursor: pointer; padding: 0; }
.gen-cost-preview { font-size: 13px; margin: 4px 0 2px; color: var(--accent); font-family: var(--serif); }
.gen-prompt-tip { font-size: 12px; margin: 0 0 8px; color: var(--muted); line-height: 1.5; }
.gen-img-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gen-img-cell { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.gen-img-cell img { width: 100%; display: block; }
.gen-img-cell .gen-img-actions { display: flex; gap: 8px; padding: 6px; justify-content: center; }
.gen-violation { border: 1px solid #c0392b; background: rgba(192,57,43,.08); color: #c0392b; border-radius: 8px; padding: 14px; text-align: center; font-size: 14px; line-height: 1.6; }
.gen-hist-note { font-size: 12px; color: var(--muted); line-height: 1.6; background: rgba(0,0,0,.03); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.gen-hist-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.gen-hist-item { display: flex; gap: 12px; border: 1px solid var(--border); border-radius: 10px; padding: 10px; background: #fff; }
.gen-hist-imgs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; width: 180px; flex: 0 0 180px; }
.gen-hist-imgs img { width: 100%; border-radius: 6px; display: block; background: #f3f3f3; min-height: 80px; }
.gen-hist-meta { flex: 1; min-width: 0; }
.gh-prompt { font-size: 13px; color: var(--ink); margin-bottom: 6px; word-break: break-word; }
.gh-sub { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.gen-hist-item .up-del { align-self: flex-start; }
.gen-hist-imgs img { cursor: zoom-in; }
/* AI 生成内容显式标识（合规：在生图结果/历史图上显著标注「AI 生成」） */
.gen-img-cell, .gen-hist-imgwrap { position: relative; }
.gen-hist-imgwrap { border-radius: 6px; overflow: hidden; }
.ai-badge { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; line-height: 1; padding: 3px 6px; border-radius: 4px; pointer-events: none; z-index: 2; letter-spacing: .5px; }
.gh-actions { display: flex; gap: 8px; margin-top: 8px; }
@media (max-width: 520px) { .gen-hist-item { flex-direction: column; } .gen-hist-imgs { width: 100%; flex: none; } }

/* 宽屏：生图控制左栏、结果预览占满右侧 */
@media (min-width: 860px) {
  .gen-box { display: grid; grid-template-columns: minmax(340px, 440px) 1fr; gap: 18px 30px; align-items: start; }
  .gen-ai-tip { grid-column: 1 / -1; grid-row: 1; margin-bottom: 0; }
  .gen-form { grid-column: 1; grid-row: 2; }
  .gen-result { grid-column: 2; grid-row: 2; margin-top: 0; position: sticky; top: 88px; }
  #genTip { grid-column: 1 / -1; grid-row: 3; margin-top: 4px; }
}

/* ===== 积分充值面板 ===== */
.rc-qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 4px 0 14px; }
.rc-qr-box { width: 200px; height: 200px; border: 1px dashed var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; }
.rc-qr-box img { width: 100%; height: 100%; object-fit: contain; }
.rc-note { font-size: 12px; color: var(--muted); text-align: center; font-family: var(--serif); letter-spacing: .5px; }
.rc-form { display: flex; flex-direction: column; gap: 8px; }
.rc-form .sync-btn { align-self: stretch; }
.rc-rate { font-size: 12px; color: var(--accent-deep); text-align: center; margin: 2px 0 0; }
.rc-records { margin-top: 16px; border-top: 1px dashed var(--border); padding-top: 10px; }
.rc-records h4 { font-family: var(--serif); letter-spacing: 1px; color: var(--ink); margin: 0 0 8px; font-size: 14px; }
.rc-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 6px; background: var(--bg-soft); margin-bottom: 6px; font-size: 12px; }
.rc-status { padding: 1px 8px; border-radius: 999px; font-size: 11px; }
.rc-status.rc-pending { background: #fff4e0; color: #b8860b; }
.rc-status.rc-success { background: #e6f7ec; color: #2e8b57; }
.rc-status.rc-rejected { background: #fdecec; color: #c0392b; }
.rc-time { color: var(--muted); font-size: 11px; }

/* 账号面板：签到 / 充值入口 */
.ua-extra { display: flex; gap: 8px; margin-top: 8px; }
.ua-extra .sync-btn { flex: 1; }
.ua-extra .sync-btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); box-shadow: none; }

/* 备案号 footer：在文档流底部（页面最底端才看到，不浮在视口）。
   [fix-20260824-footer-docflow] 不再用 position:fixed。footer.js 会在 index.html 预先放置的
   空 #siteFooter 占位里渲染内容，占位始终在文档流最底部，gallery 渲染撑高内容也不会让
   footer 从顶部跳下来。 */
.site-footer {
  position: relative;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  margin: 0 !important;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: rgba(0,0,0,.08);
  border-top: 1px solid rgba(255,255,255,.04);
  transition: transform .25s ease;
  will-change: transform;
  color: rgba(255,255,255,.75);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
/* 首页：浅色背景+黑字，但仍处于文档流底部（不 fixed）。 */
.site-footer.sf-home {
  background: rgba(255,255,255,.45);
  color: rgba(0,0,0,.6);
  border-top: 1px solid rgba(0,0,0,.06);
}
/* [fix-20260824-docflow] 首页 footer 永远在页面最底端、绝不浮在视口中间：
   让 body 至少占满一屏且为 flex 纵向布局，.home-main 撑满剩余空间，
   footer 用 margin-top:auto 被压到一屏底部以下（内容短时贴视口底，内容长时在页面末）。
   gallery 异步渲染时往 .home-main 里加卡片，footer 位置不动 → 不会再"从上面沉下来"。 */
body.home-body {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
}
body.home-body > main.home-main {
  flex: 1 1 auto !important;
}
body.home-body > .site-footer.sf-home {
  margin-top: auto !important;
}
/* 占位元素：在内容渲染前就占住文档流底部，避免 footer 注入时从顶部跳入 */
#siteFooter:empty {
  display: block;
  min-height: 1px;
}
.ua-invite-box { margin: 0; padding: 0; border: none; background: transparent; }
.ua-invite-title { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--accent-deep); }
.ua-invite-text { margin: 0 0 12px; font-size: 12px; line-height: 1.6; color: var(--fg); }
.ua-invite-text b { color: var(--accent-deep); }
.center-nick { font-size: 16px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nick-edit-btn { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-soft); color: var(--muted); font-size: 14px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all .15s ease; flex: none; }
.nick-edit-btn:hover { color: #fff; background: linear-gradient(135deg,#8b5cf6,#6d28d9); border-color: transparent; transform: scale(1.08); }
.center-meta { font-size: 13px; color: var(--muted); }
.center-meta b { color: var(--accent-deep); }
/* ===== 后台：充值审核 / 收款码配置 ===== */
.mod-recharges { margin-top: 8px; }
.mod-recharge { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; background: var(--bg-soft); }
.mr-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-family: var(--serif); }
.mr-body { font-size: 12px; color: var(--muted); margin: 4px 0 6px; word-break: break-all; }
.mr-actions { display: flex; gap: 8px; }
.mr-actions .ok, .mr-actions .no { padding: 5px 14px; border-radius: 6px; border: none; cursor: pointer; font-family: var(--serif); letter-spacing: 1px; }
.mr-actions .ok { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; }
.mr-actions .no { background: #f0e0e0; color: #c0392b; }
.lrc .sync-input { width: 100%; box-sizing: border-box; }

/* ===== 评论区：黑金水墨 ===== */
.comments {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .25);
}
/* 封面内独立评论区（每个封面各自展示自己的评论） */
.cover-comments {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .25);
}
/* 子图弹窗：评论仅以一个小图标入口呈现（含评论数徽标），不展示多余内容 */
.cover-cmt-icon {
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
  margin: 12px auto 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-solid);
  color: var(--accent-deep);
  cursor: pointer;
  transition: all .2s ease;
}
.cover-cmt-icon:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.cover-cmt-icon svg { width: 20px; height: 20px; }
.cover-cmt-icon .cmt-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px;
  background: var(--accent-deep); color: #fff;
  font-size: 11px; line-height: 16px; text-align: center;
  font-family: var(--serif);
}
/* 留言板：昵称选填输入框 */
.message-name {
  width: 100%;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-solid);
  color: var(--text);
  font-size: 13px;
  font-family: var(--serif);
  outline: none;
  transition: border-color .2s;
}
.message-name:focus { border-color: var(--accent); }
.comments-title {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 15px; letter-spacing: 2px;
  color: var(--ink);
}
/* 标题前的小印章「评」 */
.ink-seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  font-size: 12px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-radius: 4px;
  box-shadow: 0 1px 6px rgba(120, 90, 30, .3);
}
.comments-count {
  font-size: 12px; color: var(--accent-deep);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  padding: 1px 8px;
  backdrop-filter: blur(6px);
}
.comments-list {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 220px; overflow-y: auto;
  margin-bottom: 12px;
  padding-right: 2px;
}
.comments-list .empty { color: var(--muted); font-size: 13px; text-align: center; padding: 14px 0; }
.comment-item {
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 12px;
  padding: 8px 10px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 10px rgba(255, 255, 255, .06);
  transition: border-color .2s, box-shadow .2s;
}
.comment-item:hover {
  border-color: rgba(255, 255, 255, .7);
  box-shadow: 0 0 14px rgba(255, 255, 255, .12);
}
.comment-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.comment-item .comment-name { color: var(--accent-deep); font-weight: 600; font-size: 13px; }
.comment-time { color: var(--muted); font-size: 11px; }
.comment-pending-tag {
  margin-left: 6px; padding: 1px 6px; border-radius: 8px;
  font-size: 10px; color: #a9791f; background: rgba(214, 169, 70, 0.14);
  border: 1px solid rgba(214, 169, 70, 0.35);
}
.comment-body {
  margin-top: 4px;
  color: var(--ink); line-height: 1.6; font-size: 13px;
  white-space: pre-wrap; word-break: break-word;
}
/* 评论表单 */
.comment-form { display: flex; flex-direction: column; gap: 8px; }
.comment-form .comment-name {
  width: 180px; max-width: 100%;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
  font-family: var(--serif); font-size: 13px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
  box-shadow: 0 0 8px rgba(255, 255, 255, .08);
}
.comment-text {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
  font-family: var(--serif); font-size: 13px; color: var(--ink);
  resize: vertical; line-height: 1.5;
  transition: border-color .2s, box-shadow .2s, background .2s;
  box-shadow: 0 0 8px rgba(255, 255, 255, .08);
}
.comment-form .comment-name:focus, .comment-text:focus {
  outline: none;
  border-color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .16);
  box-shadow: 0 0 14px rgba(255, 255, 255, .22);
}
.comment-input-row { display: flex; gap: 8px; align-items: flex-end; }
.comment-input-row .comment-text { flex: 1; }
.comment-submit {
  flex: 0 0 auto; padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
  color: var(--ink);
  box-shadow: 0 0 10px rgba(255, 255, 255, .12);
  transition: background .2s, box-shadow .2s, border-color .2s;
}
.comment-submit:hover {
  background: rgba(255, 255, 255, .26);
  border-color: rgba(255, 255, 255, .85);
  box-shadow: 0 0 16px rgba(255, 255, 255, .22);
}
/* 评论提交后的审核提示（淡入淡出） */
.comment-tip {
  margin: 2px 0 0;
  font-size: 12px; letter-spacing: 1px;
  color: var(--accent-deep);
  opacity: 0; transform: translateY(-2px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}
.comment-tip.show { opacity: 1; transform: translateY(0); }

/* 独立「全部评论」页 */
.comment-list {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 52vh; overflow-y: auto;
  margin: 6px 0 12px; padding-right: 2px;
  border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 12px;
}
.comment-list .empty { color: var(--muted); font-size: 13px; text-align: center; padding: 30px 0; }
.comment-item { transition: border-color .2s, box-shadow .2s; }
.comment-item[data-jump]:hover { border-color: rgba(255, 255, 255, .7); box-shadow: 0 0 14px rgba(255, 255, 255, .12); }
.comment-cover { color: var(--accent-deep); font-size: 11px; opacity: .85; margin-left: 2px; }
.comment-form-box {
  border-top: 1px solid rgba(255, 255, 255, .25);
  padding-top: 12px; display: flex; flex-direction: column; gap: 8px;
}
.comment-as { font-size: 12px; color: var(--accent-deep); text-shadow: 0 0 6px rgba(255, 255, 255, .3); }
.comment-login { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.comment-login .sync-btn { flex: 0 0 auto; padding: 7px 16px; }
/* 评论/留言：头像 + 昵称 + 内容 的行布局 */
.comment-row { display: flex; align-items: flex-start; gap: 8px; }
.comment-main { flex: 1; min-width: 0; }
.comment-as { display: flex; align-items: center; gap: 6px; }
/* 小尺寸头像（评论/留言行内） */
.avatar-sm { width: 30px; height: 30px; font-size: 16px; flex: 0 0 auto; }
.avatar-xs { width: 24px; height: 24px; font-size: 13px; flex: 0 0 auto; }
/* 操作栏：点赞 / 回复 */
.comment-foot { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.like-btn, .reply-btn {
  border: none; background: transparent; cursor: pointer; padding: 0;
  font-size: 12px; color: var(--muted); font-family: var(--serif);
  display: inline-flex; align-items: center; gap: 3px; transition: color .15s;
}
.like-btn:hover, .reply-btn:hover { color: var(--accent-deep); }
.like-btn.on { color: #e0566f; }
.like-btn .like-count { font-variant-numeric: tabular-nums; }
/* [ux-20260905clike] 评论点赞/回复按钮统一为现代胶囊（桌面+手机同款）。
   作用域限定 .comment-foot 内，不影响作品详情主点赞按钮（全局 .like-btn 样式保持原样）。 */
.comment-foot .like-btn, .comment-foot .reply-btn {
  border-radius: 999px; padding: 5px 13px; font-size: 12.5px;
  font-family: inherit; letter-spacing: .3px;
  border: 1px solid rgba(148, 163, 184, .3); background: transparent; color: #94a3b8;
  transition: all .18s ease;
}
.comment-foot .like-btn:hover, .comment-foot .reply-btn:hover {
  background: rgba(148, 163, 184, .12); color: #e2e8f0; border-color: rgba(148, 163, 184, .45);
}
.comment-foot .like-btn.on {
  background: rgba(244, 63, 94, .12);
  border-color: rgba(244, 63, 94, .35);
  color: #fb7185;
  box-shadow: none;
}
.comment-foot .like-btn.on:hover { background: rgba(244, 63, 94, .18); border-color: rgba(244, 63, 94, .5); color: #fb7185; }
.comment-foot .like-btn.on .like-count { color: #fb7185; }
.comment-foot .like-btn .like-count { font-variant-numeric: tabular-nums; }
@media (max-width: 768px) {
  /* 手机端同款外观，触控区加大（≥32px 高） */
  .comment-foot { gap: 10px; }
  .comment-foot .like-btn, .comment-foot .reply-btn { padding: 7px 15px; font-size: 13.5px; min-height: 32px; }
}
/* 评论 展开/收起 */
.comment-toggle {
  margin: 10px auto 2px; display: block; border: 1px solid var(--border);
  background: rgba(184, 146, 63, .06); color: var(--accent-deep);
  font-family: var(--serif); font-size: 13px; padding: 7px 18px; border-radius: 999px;
  cursor: pointer; transition: background .15s, border-color .15s;
}
.comment-toggle:hover { background: rgba(184, 146, 63, .14); border-color: var(--accent); }
/* 回复输入框 */
.reply-box { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.reply-box .comment-text {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 0 8px rgba(255, 255, 255, .08);
}
.reply-box .comment-text:focus {
  background: rgba(255, 255, 255, .16);
  box-shadow: 0 0 14px rgba(255, 255, 255, .22);
}
/* 评论下的回复列表（缩进） */
.reply-list { margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.reply-item { display: flex; align-items: flex-start; gap: 7px; }
.reply-item .comment-body { font-size: 12.5px; }
.reply-item .comment-head { font-size: 12px; }
/* 官方回复（留言板） */
.official-reply { margin-top: 8px; padding: 8px 10px; background: rgba(184, 146, 63, .1); border: 1px solid rgba(184, 146, 63, .35); border-radius: 10px; }
.official-badge { font-size: 11px; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); padding: 1px 8px; border-radius: 999px; }

/* ===== 后台评论审核 ===== */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 7px;
  font-size: 12px; font-weight: 600; line-height: 1;
  color: #fff; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 1px 6px rgba(120, 90, 30, .3);
  vertical-align: middle;
}
/* 隐藏个人中心头像旁的收藏数角标 */
#favCount.badge { display: none !important; }

/* 未读通知红色数字角标（外框红色） */
.notify-badge {
  background: #fff; color: #e23b3b; border: 1.5px solid #e23b3b;
  box-shadow: 0 0 0 1px rgba(226, 59, 59, .25);
  min-width: 18px; height: 18px; padding: 0 6px; font-size: 11px; margin-left: 4px;
}
.notify-entry { position: relative; width: 100%; text-align: left; }
.notify-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; max-height: 60vh; overflow: auto; }

/* [fix-20260905ntime] 通知弹窗时间错位修复：全局 .notify-item{display:flex}（个人中心横排面板样式）
   泄漏进 #notifyModal 弹窗，导致 标题行/正文 左右并排、时间被挤到第二行且缩进漂移。
   弹窗内恢复上下结构（标题行在上、正文在下、时间右上角）。 */
#notifyModal .notify-item { display: block; position: relative; }
#notifyModal .notify-head { flex-wrap: nowrap; padding-right: 30px; }
#notifyModal .notify-time { margin-left: auto; flex: 0 0 auto; white-space: nowrap; }
/* [fix-20260905njump] 删除/已读后弹窗不再跳动：定高 + 列表内部滚动（原高度随内容变化，居中弹窗整体位移） */
#notifyModal .modal-box { height: min(80vh, 720px); display: flex; flex-direction: column; }
#notifyModal .modal-box .notify-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
/* [feat-20260905ndel] 单条删除按钮（右侧垂直居中，悬停红色警示） */
#notifyModal .notify-del {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 26px; height: 26px;
  border: none; border-radius: 50%; background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .65); font-size: 15px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding: 0; opacity: .6;
  transition: background .15s ease, color .15s ease, opacity .15s ease;
}
#notifyModal .notify-del:hover { transform: translateY(-50%) scale(1.1); background: rgba(244, 63, 94, .3); color: #fff; opacity: 1; }
#notifyModal .notify-del:hover { background: rgba(244, 63, 94, .3); color: #fff; opacity: 1; }
/* 全部删除（红色描边，与全部已读并排） */
#notifyModal .notify-clear { margin-left: 8px; border-color: rgba(244, 63, 94, .35) !important; color: #fda4af !important; }
#notifyModal .notify-clear:hover { background: rgba(244, 63, 94, .2) !important; color: #fff !important; border-color: rgba(244, 63, 94, .6) !important; box-shadow: 0 2px 10px rgba(244, 63, 94, .25) !important; }
.notify-item {
  border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px;
  background: rgba(255, 255, 255, .55); cursor: pointer; transition: background .15s;
}
.notify-item:hover { background: rgba(255, 247, 235, .9); }
.notify-item.unread { border-color: #e23b3b; background: #fff5f5; }
.notify-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.notify-count { color: var(--muted); font-size: 12px; }
.notify-read-all {
  border: 1px solid var(--border); background: #fff; color: var(--accent-deep);
  border-radius: 8px; padding: 4px 12px; font-size: 12px; cursor: pointer; transition: background .15s;
}
.notify-read-all:hover { background: rgba(255, 247, 235, .9); }
.notify-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.notify-icon { font-size: 15px; }
.notify-label { font-weight: 600; font-size: 13px; color: var(--accent-deep); }
.notify-time { color: var(--muted); font-size: 11px; margin-left: auto; }
.notify-text { margin-top: 6px; color: var(--ink); line-height: 1.6; font-size: 13px; white-space: pre-wrap; word-break: break-word; }
/* 违规删除的评论占位 */
.comment-deleted { padding: 8px 10px; }
.comment-deleted-tip {
  color: #b06a00; font-size: 12.5px; background: #fff7e6; border: 1px dashed #f0c674;
  border-radius: 10px; padding: 6px 10px; text-align: center;
}
/* 评论工具条（表情 / 图片） */
.comment-tools { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.tool-btn {
  border: 1px solid var(--border); background: rgba(255,255,255,.6); border-radius: 999px;
  font-size: 12.5px; padding: 4px 12px; cursor: pointer; color: var(--accent-deep); font-family: var(--serif);
  transition: background .15s, border-color .15s;
}
.tool-btn:hover { background: rgba(255,247,235,.9); border-color: var(--accent); }
.comment-img-name { font-size: 12px; color: var(--muted); }
/* 表情选择器 */
.emoji-picker {
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-top: 8px;
  padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.7);
  max-width: 320px;
}
.emoji-cell {
  border: none; background: transparent; cursor: pointer; font-size: 18px; border-radius: 8px; padding: 2px;
  transition: background .12s;
}
.emoji-cell:hover { background: rgba(184,146,63,.15); }
/* 评论配图预览 / 展示 */
.comment-img-preview { margin-top: 8px; position: relative; display: inline-block; }
.comment-img-preview img { max-width: 160px; max-height: 160px; border-radius: 10px; border: 1px solid var(--border); display: block; }
.comment-img-preview .del-btn { position: absolute; top: 4px; right: 4px; }
.comment-images { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.comment-images a { display: block; }
.comment-images img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
/* 评论删除按钮（仅自己的评论显示） */
.del-btn {
  border: 1px solid var(--border); background: transparent; color: #e23b3b; cursor: pointer;
  font-size: 12px; font-family: var(--serif); padding: 2px 10px; border-radius: 999px; transition: background .15s;
}
.del-btn:hover { background: #fff0f0; }
/* 后台 / 个人中心：分类管理 */
.admin-categories, .cat-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.cat-add { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cat-add .sync-input { flex: 1; min-width: 140px; }
.cat-count { font-size: 12px; color: var(--muted); margin-left: 8px; white-space: nowrap; }
.cat-count.used { color: #b8860b; font-weight: 600; }
.cat-count.used::before { content: '⚠ '; }
.cat-tip { font-size: 12.5px; color: var(--muted); margin: 6px 0; }
/* 创作者后台每日上传额度进度条 */
.cr-quota-bar {
  display: inline-block; vertical-align: middle; width: 120px; height: 8px;
  border-radius: 6px; background: rgba(128,128,128,.25); margin: 0 8px; overflow: hidden;
}
.cr-quota-fill { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg,#4caf50,#7ed957); transition: width .35s ease; }
.cr-quota-bar.cr-quota-near .cr-quota-fill { background: linear-gradient(90deg,#e6a23c,#f56c6c); }
.cr-quota-txt { font-size: 12px; color: var(--muted); }
.cat-item {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--border);
  border-radius: 10px; padding: 6px 10px; background: rgba(255,255,255,.55);
}
.cat-name { font-weight: 600; font-size: 13px; color: var(--ink); }
.cat-owner { font-size: 11px; color: var(--muted); margin-left: auto; }
.cat-item .no.sm { flex: none; }
/* 个人中心：我的分类 / 标签（两区块） */
.cat-section { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px dashed var(--border); }
.cat-section:last-child { border-bottom: none; }
.cat-section-title { margin: 0 0 8px; font-family: var(--serif); font-size: 14px; letter-spacing: 1px; color: var(--ink); }
.cat-section-title b { color: var(--accent-deep); }
/* 标签选择（上传多图时多选 + 个人中心「我的标签」） */
.tags-pick { margin-top: 4px; }
.tag-add-row { display: flex; gap: 8px; margin: 8px 0 4px; }
.tag-add-row .sync-input { flex: 1; }
.tag-add-row .tool-btn { white-space: nowrap; }
.tag-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; line-height: 1;
  margin-left: 4px; padding: 0;
  border-radius: 50%; cursor: pointer;
  color: #fff; background: #b94a4a; opacity: .85;
  font-size: 13px; font-weight: 700;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
  transition: opacity .15s ease, background .15s ease, color .15s ease, transform .12s ease;
  user-select: none;
}
.tag-x:hover { opacity: 1; background: #d33; transform: scale(1.15); }
.tag-x:active { transform: scale(.9); }
.tag-chip:hover .tag-x { opacity: 1; }
.tags-pick-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 4px 12px; font-size: 12px; cursor: pointer;
  font-family: var(--serif); letter-spacing: 1px; color: var(--muted);
  background: rgba(255, 255, 255, .5); transition: all .2s ease;
  user-select: none;
}
.tag-chip:hover { border-color: var(--accent); color: var(--ink); }
.tag-chip input { accent-color: var(--accent); margin: 0; }
.cr-tag-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; line-height: 1;
  margin-left: 2px; padding: 0;
  border-radius: 50%; cursor: pointer;
  color: #b94a4a; background: transparent; opacity: .55;
  font-size: 12px; font-weight: 700;
  transition: opacity .15s ease, background .15s ease, color .15s ease;
  user-select: none;
}
.cr-tag-x:hover { opacity: 1; background: #b94a4a; color: #fff; }
.cr-tag-x:active { transform: scale(.9); }
.tag-chip:hover .cr-tag-x { opacity: .9; }
.tag-chip:has(input:checked) {
  color: #fff; border-color: transparent;
  background: linear-gradient(120deg, rgba(34,28,22,.82), rgba(96,86,74,.66), rgba(52,44,36,.78), rgba(120,108,92,.6), rgba(34,28,22,.82));
  background-size: 220% 100%;
  animation: inkFlow 3.4s linear infinite;
  box-shadow: 0 2px 14px rgba(40, 30, 20, .28);
}
/* 已有标签选择（后台作品集/单图上传） */
.tag-pick-existing { margin-top: 8px; position: relative; z-index: 1; }
.tag-pick-existing summary { cursor: pointer; font-size: 12px; color: var(--muted); user-select: none; }
.tag-pick-existing summary:hover { color: var(--ink); }
.tag-pick-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; max-height: 160px; overflow-y: auto; padding: 4px; background: rgba(0,0,0,.02); border-radius: 8px; }
.tag-pick-item {
  border: 1px solid var(--border); border-radius: 999px;
  padding: 3px 11px; font-size: 12px; cursor: pointer;
  font-family: var(--serif); letter-spacing: 1px; color: var(--muted);
  background: rgba(255, 255, 255, .7); transition: all .2s ease;
}
.tag-pick-item:hover { border-color: var(--accent); color: var(--ink); background: #fff; }
.tag-pick-item.used { opacity: .4; pointer-events: none; border-style: dashed; }
/* 官方标签徽章 + 官方标签配色（所有人可用） */
.tag-ofc {
  display: inline-block; font-size: 10px; line-height: 1; padding: 1px 4px;
  border-radius: 4px; background: var(--accent, #b8893a); color: #fff;
  margin-left: 3px; vertical-align: middle; font-family: var(--sans, sans-serif); letter-spacing: 0;
}
/* 后台通知中心 */
.nc-summary { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; }
.nc-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border: 1px solid var(--border, #e3e3e3); border-radius: 8px; background: #fafafa;
}
.nc-item.nc-warn { background: #fff8e6; border-color: #f0d28a; }
.nc-item.nc-danger { background: #fdecea; border-color: #ef9a9a; }
.nc-ico { font-size: 16px; flex: 0 0 auto; }
.nc-txt { flex: 1; font-size: 13px; color: var(--ink, #333); }
.nc-num {
  min-width: 22px; text-align: center; font-weight: 700; font-size: 13px;
  color: #666; padding: 1px 6px; border-radius: 999px; background: #eee;
}
.nc-item.nc-warn .nc-num { background: #f5c842; color: #5a4500; }
.nc-item.nc-danger .nc-num { background: #e74c3c; color: #fff; }
.nc-go {
  flex: 0 0 auto; font-size: 12px; color: var(--accent, #b8893a);
  background: transparent; border: 1px solid var(--accent, #b8893a); border-radius: 6px;
  padding: 2px 8px; cursor: pointer;
}
.nc-go:hover { background: var(--accent, #b8893a); color: #fff; }
.nc-section-title { margin: 12px 0 4px; font-size: 13px; font-weight: 600; color: var(--muted, #888); }
/* 铃铛红点 */
.notify-badge {
  position: absolute; top: 0; right: 0; transform: translate(35%, -35%);
  min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px;
  font-size: 11px; font-weight: 700; text-align: center; color: #fff;
  background: #e74c3c; border-radius: 999px; box-sizing: border-box;
}
.notify-badge.hidden { display: none; }
.notify-list { max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.notify-item { display: flex; gap: 8px; padding: 8px 10px; border: 1px solid var(--border, #e3e3e3); border-radius: 8px; background: #fafafa; }
.notify-item.unread { background: #fff8e6; border-color: #f0d28a; }
.notify-icon { font-size: 16px; flex: 0 0 auto; }
.notify-body { flex: 1; }
.notify-body .nx { font-size: 13px; color: var(--ink, #333); margin-bottom: 3px; }
.notify-body .nt { font-size: 12px; color: var(--muted, #888); }
.notify-empty { text-align: center; color: var(--muted, #999); padding: 24px 0; }
.tag-chip.official, .tag-pick-item.official { border-color: var(--accent, #b8893a); color: #7a5a22; background: rgba(184,137,58,.10); }
.tag-chip.official:has(input:checked) { background: rgba(184,137,58,.22); color: var(--ink); }
/* 首页标签搜索框（已移入 .filter-panel 内，此样式保留兼容） */
.tag-search-row { margin: 0; }
/* 我的多图：上传表单 */
.works-head { margin-bottom: 10px; }
.work-upload {
  border: 1px solid var(--border); border-radius: 12px; padding: 12px;
  background: rgba(255,255,255,.55); margin-bottom: 14px; display: flex; flex-direction: column; gap: 10px;
}
.cr-gate-tip { padding: 10px 12px; border-radius: 8px; background: rgba(243,156,18,.10); border: 1px solid rgba(243,156,18,.25); color: #b7950b; font-size: 13px; margin-bottom: 4px; }
.work-upload .cat-add { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.work-upload .sync-input { flex: 1; min-width: 120px; }
#worksList { display: flex; flex-direction: column; gap: 8px; }
/* 后台：用户管理 */
.admin-users { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.au-item { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; background: rgba(255,255,255,.55); }
.au-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.au-code { font-size: 11px; color: var(--muted); }
.au-tag { font-size: 11px; color: var(--accent-deep); border: 1px solid var(--border); border-radius: 999px; padding: 0 8px; }
.au-sub { font-size: 12.5px; color: var(--ink); margin-top: 4px; }
.au-sub .ban-on { color: #e23b3b; }
.au-ban, .au-unban { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.au-ban label { font-size: 12.5px; }
.au-days { width: 56px; }
.sm { font-size: 12px; padding: 4px 10px; }
/* 后台：多图封禁管理 */
.admin-covers-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.ac-item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; background: rgba(255,255,255,.55); }
.ac-thumb { width: 48px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; background: #f3f0e8; cursor: zoom-in; transition: transform .15s ease, box-shadow .15s ease; }
.ac-thumb:hover { transform: scale(1.06); box-shadow: 0 2px 12px rgba(60,45,30,.25); }
.cr-zoom-btn { font-size: 12px; padding: 4px 10px; }
/* 上传中：绿色箭头跑速动画 */
.cr-spin { display: inline-block; width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
.cr-spin-arrow {
  display: inline-block; color: #16a34a; font-weight: 700; font-size: 16px;
  animation: cr-arrow-run .9s linear infinite;
}
@keyframes cr-arrow-run {
  0%   { transform: translateX(-7px); opacity: .25; }
  40%  { opacity: 1; }
  60%  { transform: translateX(7px); opacity: 1; }
  100% { transform: translateX(7px); opacity: .2; }
}
.ac-info { flex: 1; min-width: 0; }
.ac-name { font-weight: 600; font-size: 13px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.ac-owner { font-size: 11px; color: var(--muted); font-weight: 400; }
.ac-status { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.55; word-break: break-all; overflow-wrap: anywhere; }
.ac-status.banned { color: #e23b3b; }
.ac-status.rejected { color: #c27000; }
.ac-status.pending { color: #4a9eff; }
.ac-status.pending-tip { color: #8a93a3; font-style: italic; font-size: 12px; }
.ac-actions { flex: none; }
.mod-comments { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.mod-comment {
  border: 1px solid var(--border); border-radius: 12px;
  background: rgba(255, 255, 255, .55);
  padding: 10px 12px;
}
.mc-check { display: inline-flex; align-items: center; margin-bottom: 4px; }
.mc-check input { width: 16px; height: 16px; cursor: pointer; }
.rw-selall { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink); cursor: pointer; }
.rw-selall input { width: 15px; height: 15px; cursor: pointer; }
.mc-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.mc-cover {
  font-size: 12px; color: var(--accent-deep);
  background: rgba(255, 255, 255, .6);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 1px 8px;
}
.mc-name { font-weight: 600; font-size: 13px; color: var(--ink); }
.mc-time { color: var(--muted); font-size: 11px; }
.mc-body {
  margin-top: 6px; color: var(--ink); line-height: 1.6; font-size: 13px;
  white-space: pre-wrap; word-break: break-word;
}
.mc-reply {
  margin-top: 8px; padding: 6px 10px; font-size: 12.5px; color: var(--accent-deep);
  background: rgba(184, 146, 63, .1); border: 1px solid rgba(184, 146, 63, .35);
  border-radius: 8px;
}
.mc-actions { display: flex; gap: 8px; margin-top: 10px; }
.mc-actions button {
  font-family: var(--serif); font-size: 13px; letter-spacing: 1px;
  padding: 6px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: filter .2s, transform .1s;
}
.mc-actions button:active { transform: translateY(1px); }
.mc-actions .ok {
  color: #f3d98c; border-color: var(--border);
  background: linear-gradient(120deg, rgba(34,28,22,.82), rgba(96,86,74,.66), rgba(52,44,36,.78), rgba(120,108,92,.6), rgba(34,28,22,.82));
  background-size: 220% 100%;
  animation: inkFlow 3.4s linear infinite;
  box-shadow: 0 0 12px rgba(184, 146, 63, .25);
}
.mc-actions .ok:hover { filter: brightness(1.15); }
.mc-actions .no {
  color: #f3d2c4; border: 1px solid rgba(176, 74, 58, .6);
  background: linear-gradient(135deg, rgba(138,51,38,.5), rgba(176,74,58,.4));
}
.mc-actions .no:hover { background: linear-gradient(135deg, #b04a3a, #8a3326); color: #fff; }

/* ===== 后台：生图成本监控 ===== */
.budget-box { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.budget-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-family: var(--serif); letter-spacing: 1px; color: var(--fg); }
.budget-row span:last-child { color: var(--accent-deep); }
.budget-bar { height: 12px; border-radius: 999px; background: rgba(184, 146, 63, .14); overflow: hidden; border: 1px solid var(--border); }
.budget-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #4caf6a, #2f8f4f); transition: width .4s ease; }
.budget-box .tip { margin: 0; font-size: 12px; color: var(--muted); font-family: var(--serif); letter-spacing: .5px; }
.budget-box .tip.warn { color: #e0883a; }

/* ===== 个人中心：签到连续天数 + 今日免费积分进度 ===== */
.ua-sign-streak { font-size: 12px; color: var(--muted); font-family: var(--serif); letter-spacing: 1px; margin: -2px 0 10px; }
.ua-sign-streak b { color: var(--accent-deep); }
.ua-free-progress { margin: 2px 0 2px; }
.ua-free-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-family: var(--serif); letter-spacing: 1px; }
.ua-free-row b { color: var(--accent-deep); }
.ua-free-bar { height: 8px; border-radius: 999px; background: rgba(184, 146, 63, .16); overflow: hidden; margin-top: 4px; border: 1px solid var(--border); }
.ua-free-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #b8923f, #d4af37); transition: width .4s ease; }

/* ===== 版权/二创说明与证明（上传 + 申诉）===== */
.sync-textarea {
  width: 100%; min-height: 64px; resize: vertical; box-sizing: border-box;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px;
  background: rgba(255, 255, 255, .65); color: var(--ink); font-size: 13px;
  font-family: var(--serif); line-height: 1.6;
}
.sync-textarea:focus { outline: none; border-color: var(--accent); }
.work-upload .sync-textarea { flex: 1 1 100%; }
.up-copy-notice {
  margin: 8px 0 2px; padding: 10px 12px; border-radius: 10px;
  background: rgba(184, 146, 63, .1); border: 1px solid rgba(184, 146, 63, .32);
}
.up-copy-notice b { display: block; color: var(--accent-deep); font-family: var(--serif); letter-spacing: 1px; margin-bottom: 4px; }
.up-copy-notice p { margin: 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.up-copy-notice strong { color: var(--ink); }
/* 版权证明链接（我的多图 / 后台审核 / 申诉）*/
.ac-status a, .mc-body a { color: var(--accent-deep); text-decoration: none; border-bottom: 1px dashed rgba(184, 146, 63, .6); }
.ac-status a:hover, .mc-body a:hover { color: var(--accent); }



/* ===== 后台审核优先标记 ===== */
.rw-flags { display:flex; flex-wrap:wrap; gap:6px; margin:4px 0; }
.rw-flag { display:inline-block; padding:2px 8px; border-radius:10px; font-size:12px; font-weight:600; line-height:1.6; }
.rw-flag.first { background:rgba(184,146,63,.15); color:var(--accent-deep,#9c7a2e); border:1px solid rgba(184,146,63,.4); }
.rw-flag.proof { background:rgba(64,120,200,.12); color:#2f6fb0; border:1px solid rgba(64,120,200,.35); }
.rw-flag.img { background:rgba(192,57,43,.12); color:#c0392b; border:1px solid rgba(192,57,43,.35); }

/* 后台预算告警横幅（运营护栏） */
.budget-banner{padding:10px 14px;margin:0 0 14px;border-radius:8px;font-size:14px;line-height:1.5;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.budget-banner.warn{background:#fff7e6;border:1px solid #ffd591;color:#874d00}
.budget-banner.exhausted{background:#fff1f0;border:1px solid #ffa39e;color:#a8071a}
.budget-banner .ba-ack{margin-left:auto;background:#fa8c16;border:none;color:#fff;padding:4px 12px;border-radius:6px;cursor:pointer;font-size:13px}
.budget-banner.exhausted .ba-ack{background:#cf1322}

/* 修为成就 / 大额任务面板（仅元婴+ 可领，奖励不受每日灵气上限） */
.ua-achv{margin:0;padding:0;border:none;background:transparent}
.ua-achv-head{font-size:12px;color:#9a6b86;margin-bottom:8px;font-weight:600}
.ua-achv-item{display:flex;align-items:center;gap:8px;padding:5px 0;border-top:1px dashed rgba(194,88,138,.15)}
.ua-achv-item:first-of-type{border-top:none}
.ua-achv-name{flex:1;font-size:13px;color:#333}
.ua-achv-amt{font-size:13px;font-weight:700;color:#c2588a}
.ua-achv-state{font-size:12px;color:#bbb}
.ua-achv-item.claimed .ua-achv-state{color:#52c41a}
.ua-achv-item.claimed{opacity:.7}
.ua-achv-item.locked .ua-achv-name{color:#bbb}
.ua-achv-item.locked .ua-achv-amt{color:#ccc}
.ua-achv-actions{margin-top:8px;text-align:right}
.ua-empty{font-size:13px;color:var(--muted);text-align:center;padding:14px 0;margin:0}

/* ===== 作者主页（author.html） ===== */
.author-info { margin: 4px 0 14px; }
.author-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--card-solid); border: 1px solid var(--border);
  border-radius: 16px; padding: 18px; box-shadow: 0 4px 18px var(--shadow);
}
.author-card .avatar-lg { width: 72px; height: 72px; font-size: 34px; flex: 0 0 auto; }
.author-meta { flex: 1; min-width: 0; }
.author-name { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--ink); }
.author-level { font-size: 13px; color: var(--accent-deep); margin-top: 2px; }
.author-stats { display: flex; gap: 18px; margin-top: 10px; font-size: 14px; color: var(--fg); }
.author-stats b { color: var(--ink); font-size: 16px; }
.author-stats span { cursor: pointer; }
.author-stats span:hover b { color: var(--accent); }
.author-self { font-size: 14px; color: var(--muted); align-self: center; }

/* ===== 后台：封面列表（卡片式缩略图+操作） ===== */
/* 等比缩小、固定高度上限、点击放大 */
.cover-list { display: flex; flex-direction: column; gap: 8px; }
.cover-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--border);
  transition: box-shadow .15s ease;
}
.cover-row:hover { box-shadow: 0 2px 10px var(--shadow); }

.cover-thumb {
  width: 120px; height: auto; max-height: 80px;
  object-fit: contain; border-radius: 6px;
  background: #f3f0e8; cursor: zoom-in;
  flex: 0 0 auto; border: 1px solid var(--border);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cover-thumb:hover { transform: scale(1.05); box-shadow: 0 2px 10px rgba(60,45,30,.25); }

.cover-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cover-name { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cover-meta { font-size: 13px; color: var(--muted); }
.cover-status { font-size: 13px; }
.cover-status.banned { color: #c0392b; font-weight: 600; }
.cover-status.pending { color: #f39c12; font-weight: 600; }
.pending-inline-hint { display: inline-flex; align-items: center; font-size: 12px; color: #b7950b; background: rgba(243,156,18,.10); border: 1px solid rgba(243,156,18,.25); border-radius: 4px; padding: 2px 8px; margin-right: 4px; white-space: nowrap; }

/* 类型标签：单图/多图 */
.cover-kind {
  display: inline-block; font-size: 11px; padding: 1px 6px;
  border-radius: 4px; vertical-align: middle; margin-right: 6px;
  line-height: 1.6; white-space: nowrap;
}
.kind-single { background: #e8f4fd; color: #2980b9; border: 1px solid #b8d8f0; }
.kind-work { background: #fef3e2; color: #d35400; border: 1px solid #f5d5a8; }
.kind-series { background: #eaf7ee; color: #27ae60; border: 1px solid #b6e2c4; }
.cover-actions { flex: 0 0 auto; display: flex; gap: 6px; white-space: nowrap; }

/* ===== 个人中心：我的投稿（多图/单图 + 作品集 编辑/删除）===== */
.my-submissions { margin-top: 18px; }
.ms-section { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.ms-title { font-size: 16px; margin: 0 0 10px; }
.ms-block { margin-bottom: 14px; }
.ms-block:last-child { margin-bottom: 0; }
.ms-subtitle { font-size: 14px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.ms-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 10px; margin-bottom: 6px;
  background: #fff; border: 1px solid var(--border);
}
.ms-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: #f3f0e8; cursor: zoom-in; flex: 0 0 auto; border: 1px solid var(--border); }
.ms-info { flex: 1; min-width: 0; }
.ms-name { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.ms-actions { flex: 0 0 auto; display: flex; gap: 6px; }

@media (max-width: 520px) {
  .ms-row { flex-wrap: wrap; gap: 8px; }
  .ms-info { min-width: 100%; order: 2; }
  .ms-actions { order: 3; }
}

@media (max-width: 520px) {
  .cover-row { flex-wrap: wrap; gap: 8px; padding: 8px; }
  .cover-thumb { width: 80px; max-height: 56px; }
  .cover-info { min-width: 100%; order: 2; }
  .cover-actions { order: 3; }
}

/* ===== 后台：图片缩小展示 + 点击放大（lightbox） ===== */
/* 缩略图统一：固定尺寸、等比裁切、可点击放大 */
.ac-thumb,
.mc-thumb {
  width: 56px; height: 74px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 auto;
  background: #f3f0e8;
  cursor: zoom-in;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ac-thumb:hover,
.mc-thumb:hover { transform: scale(1.06); box-shadow: 0 2px 12px rgba(60,45,30,.25); }

/* 后台封面 / 子图网格缩略图 */
.admin-cover-thumb {
  width: 120px; height: 160px;
  object-fit: cover; border-radius: 10px;
  background: #f3f0e8; cursor: zoom-in;
  transition: transform .15s ease, box-shadow .15s ease;
  flex: 0 0 auto;
}
.admin-cover-thumb:hover { transform: scale(1.04); box-shadow: 0 4px 18px rgba(60,45,30,.28); }
.admin-cover-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-cover-thumbs .admin-cover-thumb { width: 88px; height: 118px; }

/* 个人中心「我的作品」等普通网格（非瀑布流）：整齐等宽列 */
.grid.portrait-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  position: static;
}
.grid.portrait-grid .cell {
  position: static;
  width: auto;
  animation: none;
}
/* 多图列表缩略网格：等比缩小，不变形不裁切 */
.grid.small { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.grid.small .cover-grid-cell { display: flex; flex-direction: column; }
.grid.small .admin-cover-thumb {
  width: 100%; height: auto; max-height: 220px;
  aspect-ratio: auto; object-fit: contain;
  background: #f3f0e8; border: 1px solid var(--border);
  border-radius: 10px;
}

/* 放大查看浮层 */
.lb-overlay {
  position: fixed; inset: 0; z-index: 2147483647;
  background: rgba(20, 16, 12, .92);
  display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.lb-overlay.show { opacity: 1; pointer-events: auto; }
.lb-img {
  max-width: 92vw; max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 12px 50px rgba(0,0,0,.6);
  object-fit: contain;
}
.lb-close {
  position: absolute; top: 18px; right: 22px;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.12);
  color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lb-close:hover { background: rgba(255,255,255,.28); }

/* [fix-20260902] 放大查看：上一张/下一张按钮 + 加载提示
   此前切换图片时 img.src 是异步加载的，新图下载完成前 <img> 仍显示上一张，
   且无任何提示，用户会以为「卡住了」。现配合 JS 先清空 src 并显示 loading。 */
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.14);
  color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lb-nav:hover { background: rgba(255,255,255,.3); }
.lb-nav.lb-prev { left: 18px; }
.lb-nav.lb-next { right: 18px; }
.lb-nav[hidden] { display: none; }
.lb-loading {
  position: absolute;
  color: rgba(255,255,255,.85);
  font-size: 14px; letter-spacing: .05em;
  background: rgba(0,0,0,.35);
  padding: 8px 16px; border-radius: 999px;
  pointer-events: none;
}
.lb-loading[hidden] { display: none; }
/* 计数器：当前第 N / 共 M 张 */
.lb-counter {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.8); font-size: 13px;
  background: rgba(0,0,0,.35); padding: 6px 14px; border-radius: 999px;
  pointer-events: none;
}
.lb-counter[hidden] { display: none; }

#followBtn.following { background: #f3ede1; color: var(--accent-deep); border: 1px solid var(--border); }

/* 作者页多图网格复用 .grid / .portrait-grid（已在首页定义） */
.author-works { padding: 4px 0 24px; }
.author-works .grid { padding: 0; }

/* 多图卡片作者链接（点击不触发查看器） */
.cover-author {
  display: inline-block; margin-left: 8px; font-size: 12px; color: var(--accent-deep);
  text-decoration: none; vertical-align: middle; max-width: 50%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.cover-author:hover { color: var(--accent); text-decoration: underline; }
.cover-foot { display: flex; align-items: center; gap: 8px; }

/* ===== 个人中心：修仙境界体系说明卡片 ===== */
.realm-card {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}
.realm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.realm-title { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: 1px; }
.realm-cur { font-size: 13px; color: var(--muted); }
.realm-cur b { color: var(--accent-deep); margin-left: 2px; }
.realm-stair { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 10px; }
.realm-node {
  font-family: var(--serif);
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .6);
  color: var(--muted);
  letter-spacing: 1px;
  white-space: nowrap;
}
.realm-node.done { color: var(--accent-deep); border-color: rgba(184, 146, 63, .4); background: rgba(184, 146, 63, .08); }
.realm-node.on {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, rgba(34, 28, 22, .82), rgba(96, 86, 74, .66), rgba(52, 44, 36, .78), rgba(120, 108, 92, .6), rgba(34, 28, 22, .82));
  background-size: 220% 100%;
  animation: inkFlow 3.4s linear infinite;
  box-shadow: 0 2px 14px rgba(40, 30, 20, .28);
}

/* 作品集卡片互动栏（首页「作品集」模式） */
.series-grid .sc-actions {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; gap: 6px; padding: 8px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78));
}
.series-grid .sc-act {
  flex: 1; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #eee;
  border-radius: 999px; padding: 5px 0; font-size: 12px;
  transition: background .15s ease, color .15s ease;
}
.series-grid .sc-act:hover { background: rgba(255, 255, 255, .22); }
.series-grid .sc-act.on { background: var(--accent); color: #1a1a1a; }
.series-grid .sc-act.sc-cmt { flex: 1.2; }

/* 作品集详情页：分集作品级点赞 / 收藏 */
.sp-ep { position: relative; }
.sp-ep .ep-acts { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; }
.sp-ep .ep-act {
  border: none; cursor: pointer;
  background: rgba(0, 0, 0, .55); color: #fff;
  border-radius: 999px; padding: 4px 10px; font-size: 12px;
  backdrop-filter: blur(2px);
  transition: background .15s ease, color .15s ease;
}
.sp-ep .ep-act:hover { background: rgba(0, 0, 0, .72); }
.sp-ep .ep-act.on { background: var(--accent); color: #1a1a1a; }
.realm-tip { margin: 4px 0 12px; font-size: 12.5px; line-height: 1.7; color: var(--fg); }

/* ===== 通用问号说明提示（按钮/标题旁 hover 显示黑底白字气泡） ===== */
.sync-btn-wrap { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.help-tip {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(136, 136, 136, .85);
  color: #fff;
  font-size: 12px; line-height: 1;
  font-weight: 600;
  cursor: help;
  user-select: none;
  flex: 0 0 auto;
}
.help-tip:hover { background: rgba(102, 102, 102, .95); }
.tip-popover {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: max-content; max-width: 280px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .85);
  color: #fff;
  font-size: 12px; line-height: 1.6;
  font-weight: 400;
  text-align: left;
  white-space: normal;
  pointer-events: none;
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
  z-index: 100;
}
.help-tip:hover .tip-popover,
.help-tip:focus .tip-popover { opacity: 1; visibility: visible; }
.tip-popover::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, .85);
}

/* ===== 问题反馈弹窗 ===== */
.feedback-intro {
  font-size: 13px; color: var(--muted); line-height: 1.6; margin: 2px 0 14px;
}
.feedback-form { display: flex; flex-direction: column; gap: 12px; }
.feedback-label { font-size: 14px; color: var(--ink); font-weight: 500; }
.feedback-label .required { color: #d9534f; margin-left: 2px; }
.feedback-text {
  width: 100%; min-height: 120px; resize: vertical; padding: 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--card-solid); color: var(--ink); font-size: 14px;
}
.feedback-input {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--card-solid); color: var(--ink); font-size: 14px;
}
.feedback-image-uploader {
  position: relative; border: 1px dashed var(--border); border-radius: 12px; min-height: 120px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden;
  background: var(--card-solid); transition: border-color .2s ease;
}
.feedback-image-uploader:hover { border-color: var(--accent); }
.feedback-image-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: 13px;
}
.feedback-image-placeholder .plus { font-size: 28px; line-height: 1; color: var(--accent); }
.feedback-image-uploader img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.feedback-image-remove {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%;
  border: none; background: rgba(0,0,0,.55); color: #fff; font-size: 18px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2;
}
.feedback-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.feedback-actions .btn { padding: 8px 18px; border-radius: 999px; font-size: 14px; }

/* ===== 后台问题反馈列表 ===== */
.mc-status { font-size: 12px; padding: 2px 8px; border-radius: 999px; margin-left: auto; background: #d4edda; color: #155724; }
.mc-status.open { background: #f8d7da; color: #721c24; }
.mod-comment.resolved { opacity: .85; background: rgba(0,0,0,.02); }
.mc-image { margin: 8px 0; }
.mc-image img { max-width: 240px; max-height: 160px; border-radius: 8px; border: 1px solid var(--border); cursor: pointer; }

/* ===== 后台表格 + 搜索 ===== */
.search-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.search-input { flex: 1 1 200px; min-width: 160px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.7); color: var(--fg); font-size: 13px; }
.search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(184,146,63,.15); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.55); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 9px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.admin-table th { background: rgba(184,146,63,.10); color: var(--accent-deep); font-weight: 600; position: sticky; top: 0; white-space: nowrap; }
.admin-table tbody tr:hover { background: rgba(184,146,63,.06); }
.admin-table th:nth-child(5), .admin-table th:nth-child(6),
.admin-table th:nth-child(7), .admin-table th:nth-child(8) { text-align: center; }
.admin-table td.num { font-variant-numeric: tabular-nums; color: var(--accent-deep); text-align: center; }

/* 后台表格分页条 */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); }
.pg-btn {
  min-width: 32px; height: 32px; padding: 0 9px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--card-solid); color: var(--ink);
  font-size: 13px; cursor: pointer; font-family: var(--serif);
  transition: background .15s, border-color .15s, color .15s;
}
.pg-btn:hover:not(:disabled) { background: rgba(120,90,60,.1); border-color: var(--accent); }
.pg-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); cursor: default; }
.pg-btn:disabled { opacity: .4; cursor: not-allowed; }
.pg-dots { color: var(--muted); padding: 0 2px; font-size: 13px; }
.pg-info { margin-left: auto; font-size: 12px; color: var(--muted); padding: 0 4px; }
.admin-table td.mc-text-cell { max-width: 320px; white-space: pre-wrap; word-break: break-word; line-height: 1.45; }
.admin-table td.mc-ops, .mc-ops { white-space: nowrap; }
.admin-table .ac-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.admin-table .ban-on { color: #c0392b; font-weight: 600; }
.admin-table .ac-status.banned { color: #c0392b; font-weight: 600; }
.admin-table .appeal-tag { color: #b8860f; font-size: 12px; }
.card-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }

@media (max-width: 600px) {
  .tip-popover { max-width: 220px; }
  .admin-table th, .admin-table td { padding: 7px 8px; font-size: 12px; }
  .admin-table td.mc-text-cell { max-width: 180px; }
}

/* ===== work-page 详情页：所有 wp-stage/wp-side/wp-bottom/viewer-frame 规则已全部移至 work.html 内联 <style> 块，由 work.html 独立完整接管布局（flex space-between 两端对齐）。此处不写任何 !important 覆盖，避免与内联冲突 ===== */

/* ===== 滑动拼图安全验证（玻璃拟态 + 白色发光） ===== */
.slide-captcha-wrap { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: capFadeIn .25s ease; }
.slide-captcha-modal { position: relative; width: 380px; max-width: 92vw; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: 28px; padding: 28px 26px 24px; box-shadow: 0 24px 70px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.12); text-align: center; overflow: hidden; }
.slide-captcha-modal::before { content: ''; position: absolute; inset: -1px; border-radius: 28px; padding: 1px; background: linear-gradient(135deg, rgba(255,255,255,.35), rgba(255,255,255,.05) 60%, rgba(255,255,255,.25)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.slide-captcha-close { position: absolute; top: 12px; right: 14px; width: 30px; height: 30px; line-height: 30px; border-radius: 50%; border: none; background: transparent; color: rgba(255,255,255,.55); font-size: 20px; cursor: pointer; transition: all .2s; z-index: 2; }
.slide-captcha-close:hover { color: #fff; background: rgba(255,255,255,.12); transform: rotate(90deg); }
.slide-captcha-title { color: #fff; font-size: 17px; font-weight: 600; margin-bottom: 22px; letter-spacing: .5px; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.slide-captcha-box { position: relative; padding: 8px 0 6px; }
.slide-track { position: relative; height: 48px; background: rgba(255,255,255,.06); border-radius: 24px; border: 1px solid rgba(255,255,255,.15); box-shadow: inset 0 1px 4px rgba(0,0,0,.25), 0 1px 0 rgba(255,255,255,.08); overflow: hidden; }
.slide-target { position: absolute; top: 4px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 2px rgba(255,255,255,.6), 0 0 20px rgba(255,255,255,.4); animation: capPulse 1.8s ease-in-out infinite; }
.slide-thumb { position: absolute; top: 4px; left: 4px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 0 0 2px rgba(255,255,255,.4), 0 0 24px rgba(255,255,255,.55), 0 6px 20px rgba(0,0,0,.25); cursor: grab; display: flex; align-items: center; justify-content: center; color: #1a1a24; user-select: none; transition: transform .15s, box-shadow .2s, background .2s; }
.slide-thumb::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); opacity: .6; }
.slide-arrow { width: 18px; height: 18px; stroke-width: 2.6; color: #1a1a24; filter: drop-shadow(0 1px 1px rgba(0,0,0,.1)); transition: transform .2s; }
.slide-thumb:hover { transform: scale(1.06); box-shadow: 0 0 0 3px rgba(255,255,255,.45), 0 0 30px rgba(255,255,255,.65), 0 8px 24px rgba(0,0,0,.3); }
.slide-thumb:hover .slide-arrow { transform: translateX(1px); }
.slide-thumb:active { cursor: grabbing; transform: scale(1.12); }
.slide-thumb.success { background: #fff; color: #2ecc71; box-shadow: 0 0 0 3px rgba(46,204,113,.45), 0 0 30px rgba(46,204,113,.55); }
.slide-thumb.success .slide-arrow { color: #2ecc71; }
.slide-thumb.fail { animation: capShake .4s; background: #fff; color: #e74c3c; box-shadow: 0 0 0 3px rgba(231,76,60,.45), 0 0 30px rgba(231,76,60,.55); }
.slide-thumb.fail .slide-arrow { color: #e74c3c; }
.slide-hint { margin-top: 16px; color: rgba(255,255,255,.5); font-size: 12px; letter-spacing: .3px; }
.slide-hint.success { color: #7ee0a5; text-shadow: 0 0 10px rgba(126,224,165,.35); }
.slide-hint.fail { color: #ff9d9d; text-shadow: 0 0 10px rgba(255,157,157,.35); }

/* ===== 下载中 Loading（玻璃拟态 + 发光旋转） ===== */
.dl-loading-wrap { position: fixed; inset: 0; z-index: 10001; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: capFadeIn .25s ease; }
.dl-loading-modal { position: relative; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); box-shadow: 0 24px 70px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.12); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
.dl-loading-modal::before { content: ''; position: absolute; inset: -1px; border-radius: 50%; padding: 1px; background: linear-gradient(135deg, rgba(255,255,255,.4), rgba(255,255,255,.08) 60%, rgba(255,255,255,.3)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.dl-ring { position: relative; width: 74px; height: 74px; margin-bottom: 18px; }
.dl-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.dl-ring circle.bg { fill: none; stroke: rgba(255,255,255,.15); stroke-width: 4; }
.dl-ring circle.fg { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 190; stroke-dashoffset: 150; filter: drop-shadow(0 0 6px rgba(255,255,255,.8)); animation: dlSpin 1.2s linear infinite; }
.dl-loading-text { font-size: 14px; font-weight: 500; letter-spacing: 1px; text-shadow: 0 2px 6px rgba(0,0,0,.3); }
.dl-loading-sub { margin-top: 6px; font-size: 11px; color: rgba(255,255,255,.55); }
@keyframes dlSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes capFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes capPulse { 0%,100% { box-shadow: inset 0 0 0 2px rgba(255,255,255,.55), 0 0 14px rgba(255,255,255,.25); } 50% { box-shadow: inset 0 0 0 2px rgba(255,255,255,.85), 0 0 26px rgba(255,255,255,.5); } }
@keyframes capShake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-8px)} 75%{transform:translateX(8px)} }

/* ===== 点赞按钮心跳动画 ===== */
.op.like .like-icon { display: inline-block; min-width: 1.1em; text-align: center; font-size: 20px; line-height: 1; }
.op.like.liked .like-icon { color: #ffffff; text-shadow: 0 0 8px rgba(255,255,255,.35); }
.op.like .like-icon { color: rgba(255,255,255,.55); }
.op.like.liking .like-icon { animation: likeBeat .52s ease-in-out; }
@keyframes likeBeat { 0%{transform:scale(1)} 30%{transform:scale(1.35)} 55%{transform:scale(.9)} 80%{transform:scale(1.1)} 100%{transform:scale(1)} }

/* 下载按钮内的次数徽标 */
.op-count { font-size: 12px; opacity: .8; margin-left: 2px; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.18); vertical-align: middle; }
.op.primary .op-count { background: rgba(0,0,0,.18); }

/* 作者卡头像占位（无头像时显示首字母） */
.au-avatar { position: relative; overflow: hidden; }
.au-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }  /* 有 src 时盖在 ph 上方 */
.au-avatar-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#3a3a45,#25252e); color: rgba(255,255,255,.65); font-size: 22px; font-weight: 600; }
.wp-author .au-avatar-ph { background: linear-gradient(135deg,#7c3aed,#a855f7); color: #fff; font-size: 24px; }
/* 作者页 hero 头像占位（无头像时显示首字母，与 .au-avatar-ph 视觉风格一致） */
.ap-avatar { position: relative; overflow: hidden; }
.ap-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }  /* 有 src 时盖在 ph 上方 */
.ap-avatar-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#7c3aed,#a855f7); color: #fff; font-size: 56px; font-weight: 700; }

/* 后台用户管理表格：头像列 */
.admin-table td.au-av-cell { width: 46px; padding-right: 4px; }
.admin-table .au-av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); display: block; }
.admin-table .au-av-def { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#b8923f,#8a6d2a); color: #fff; font-size: 15px; font-weight: 600; }

/* ===== 用户管理表（2026-09-05 改版）=====
   8 列固定宽度：头像 | 昵称 | 账号 | 境界 | 灵气/积分 | 注册时间 | 状态 | 操作
   - 操作列分三行，避免横向挤压
   - 灵气/积分居中等宽数字；状态列"正常"绿/异常红
   - 昵称过长省略号 + title 完整显示 */
.admin-table.admin-users-tbl { table-layout: fixed; min-width: 880px; }
.admin-table.admin-users-tbl col.c-av { width: 56px; }
.admin-table.admin-users-tbl col.c-nick { width: 140px; }
.admin-table.admin-users-tbl col.c-code { width: 150px; }
.admin-table.admin-users-tbl col.c-lv { width: 70px; }
.admin-table.admin-users-tbl col.c-qi { width: 100px; }
.admin-table.admin-users-tbl col.c-ts { width: 160px; }
.admin-table.admin-users-tbl col.c-st { width: 110px; }
.admin-table.admin-users-tbl col.c-ops { width: 280px; }
.admin-table.admin-users-tbl th,
.admin-table.admin-users-tbl td { text-align: left; vertical-align: middle; }
.admin-table.admin-users-tbl th.num { text-align: right; }
.admin-table.admin-users-tbl td.num { text-align: right; font-variant-numeric: tabular-nums; color: var(--accent-deep); padding-right: 14px; }
.admin-table.admin-users-tbl td.mono { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.admin-table.admin-users-tbl td.ts { font-variant-numeric: tabular-nums; color: var(--ink); font-size: 12.5px; white-space: nowrap; }
.admin-table.admin-users-tbl td.au-nick { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-table.admin-users-tbl td.au-status-ok { color: #2f7d3a; font-weight: 600; text-align: center; }
.admin-table.admin-users-tbl td.ban-on { color: #c0392b; font-weight: 600; text-align: center; }
.admin-table.admin-users-tbl td.au-ops { padding: 8px 10px; }
.admin-table.admin-users-tbl .au-ops-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 3px 0; }
.admin-table.admin-users-tbl .au-cb { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--ink); cursor: pointer; }
.admin-table.admin-users-tbl .au-cb input[type="checkbox"] { margin: 0; }
.admin-table.admin-users-tbl .au-days-wrap { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--ink); }
.admin-table.admin-users-tbl .au-days { width: 54px; padding: 2px 6px; font-size: 12px; text-align: center; }
.admin-table.admin-users-tbl .au-ops .ok.sm,
.admin-table.admin-users-tbl .au-ops .ghost.sm,
.admin-table.admin-users-tbl .au-ops .gold.sm { padding: 3px 10px; font-size: 12px; border-radius: 8px; }

/* 说明文案空状态 */
.wp-desc-empty { color: var(--muted); font-style: italic; font-size: 13.5px; }

/* ===== 通用确认/输入弹窗（后台 & 创作者后台共用，替代原生 confirm/prompt/alert） ===== */
.dlg-mask { position: fixed; inset: 0; z-index: 9999; background: rgba(20,14,8,.55); backdrop-filter: blur(2px);
            display: flex; align-items: center; justify-content: center; padding: 18px; }
.dlg-box { width: 380px; max-width: 100%; background: var(--card-solid); border: 1px solid var(--border);
           border-radius: 14px; padding: 22px 20px 18px; box-shadow: 0 18px 54px rgba(40,28,16,.28); }
.dlg-title { font-size: 15.5px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.dlg-body { font-size: 13.5px; line-height: 1.7; color: var(--muted); white-space: pre-wrap; word-break: break-word; }
.dlg-body .dlg-warn { color: #c0392b; font-weight: 600; }
.dlg-input { width: 100%; margin-top: 12px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px;
             font-size: 13.5px; font-family: inherit; resize: vertical; min-height: 64px; box-sizing: border-box; }
.dlg-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(184,146,63,.15); }
.dlg-check { display: flex; align-items: center; gap: 7px; margin-top: 11px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.dlg-check input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
/* 快捷驳回 / 下架理由 chip（后台治理弹窗） */
.qr-quick { margin-top: 12px; max-height: 230px; overflow-y: auto; border-top: 1px dashed var(--border); padding-top: 10px; }
.qr-group { margin-bottom: 9px; }
.qr-group-title { font-size: 12px; font-weight: 600; color: var(--accent-deep); margin-bottom: 6px; letter-spacing: .3px; }
.qr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.qr-chip { font-size: 12px; line-height: 1.4; padding: 4px 9px; border-radius: 999px; cursor: pointer;
           border: 1px solid var(--border); background: var(--chip-bg); color: var(--muted); transition: all .15s; }
.qr-chip:hover { border-color: var(--accent); color: var(--accent-deep); background: rgba(184,146,63,.1); }
.qr-chip:active { transform: scale(.96); }
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.dlg-actions button { padding: 8px 18px; border-radius: 8px; border: 1px solid var(--border); background: transparent;
                      color: var(--muted); cursor: pointer; font-size: 13.5px; }
.dlg-actions button.dlg-ok { color: #fff; border-color: transparent;
              background: linear-gradient(135deg, var(--accent), var(--accent-deep)); }
.dlg-actions button.dlg-danger { color: #fff; border-color: transparent; background: linear-gradient(135deg,#c0392b,#962d22); }
.dlg-actions button:disabled { opacity: .5; cursor: not-allowed; }
.dlg-err { color: #c0392b; font-size: 12.5px; margin-top: 8px; min-height: 16px; }

/* 提交按钮 loading 态（spin） */
.btn-loading { position: relative; pointer-events: none; opacity: .85; }
.btn-loading::after { content: ""; position: absolute; right: 10px; top: 50%; width: 13px; height: 13px;
                      margin-top: -7px; border: 2px solid rgba(255,255,255,.55); border-top-color: #fff;
                      border-radius: 50%; animation: btnSpin .7s linear infinite; }
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* 创作者多图项：查看展示端外链 */
.cr-view-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--accent-deep);
                text-decoration: none; margin-left: 6px; }
.cr-view-link:hover { text-decoration: underline; }
.cr-view-link.muted { color: var(--muted); }

/* 后台内容管理分组折叠 */
.cm-group { margin-bottom: 14px; }
.cm-group > .cm-group-head { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none;
                             padding: 10px 12px; background: rgba(184,146,63,.08); border: 1px solid var(--border);
                             border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.cm-group > .cm-group-head .cm-chevron { margin-left: auto; transition: transform .2s; font-size: 12px; color: var(--muted); }
.cm-group.collapsed > .cm-group-head .cm-chevron { transform: rotate(-90deg); }
.cm-group > .cm-group-body { padding-top: 12px; }
.cm-group.collapsed > .cm-group-body { display: none; }

/* 后台内容管理：更多操作折叠开关 */
.cm-adv-toggle { text-align: center; margin: 10px 0 4px; }
.cm-adv-toggle button { font-size: 13px; }

/* ===== 账号设置集中页 settings.html ===== */
.settings-wrap {
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 40px;
}
@media (max-width: 860px) {
  .settings-wrap { grid-template-columns: 1fr; gap: 20px; }
}
.settings-card {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 18px 20px;
  box-shadow: 0 6px 24px rgba(60, 40, 10, .08);
  backdrop-filter: blur(6px);
}
.st-head { display: flex; align-items: center; gap: 14px; }
.st-avatar {
  flex: 0 0 auto;
  width: 88px; height: 88px;
  padding: 0; border: none; background: transparent;
  border-radius: 50%; overflow: hidden; cursor: pointer;
  box-shadow: 0 2px 10px rgba(60, 40, 10, .18);
}
.st-avatar .avatar-img,
.st-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.st-id { min-width: 0; }
.st-nick { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-meta { margin-top: 6px; font-size: 13px; color: var(--muted); }
.st-meta b { color: var(--accent-deep); font-weight: 700; }
.st-role { color: var(--accent-deep); font-weight: 700; }

/* 角色徽章（与 work.js / author.js 保持一致） */
.au-badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700; line-height: 1;
  padding: 3px 8px; border-radius: 999px;
  font-family: var(--serif);
}
.au-badge.admin { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; box-shadow: 0 1px 6px rgba(120, 90, 30, .35); }
.au-badge.svip { background: linear-gradient(135deg, #e7c97a, #b8923c); color: #4a2f00; }

.st-code-row, .st-phone-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.st-code-label { flex: 0 0 auto; font-size: 13px; color: var(--muted); width: 52px; }
.st-code {
  flex: 1 1 auto; min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px; color: var(--accent-deep);
  background: rgba(184,146,63,.10);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 10px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.st-phone { flex: 1 1 auto; min-width: 0; font-size: 14px; color: var(--text); }
.st-copy {
  flex: 0 0 auto; cursor: pointer;
  border: 1px solid var(--border); background: rgba(255,255,255,.5);
  color: var(--accent-deep); font-size: 13px;
  padding: 6px 14px; border-radius: 8px; transition: all .2s ease;
}
.st-copy:hover { border-color: var(--accent); background: rgba(184,146,63,.12); }

.st-title { font-family: var(--serif); font-size: 16px; letter-spacing: 1px; color: var(--ink); margin: 0 0 12px; }
.st-hint { font-size: 12px; color: var(--muted); margin: 0 0 12px; line-height: 1.6; }
.st-actions { gap: 12px; }
.st-actions .sync-btn { flex: 1; }
.settings-card.st-danger { border-color: rgba(192,57,43,.28); background: rgba(192,57,43,.04); }
.settings-card.st-danger .st-title { color: #b3361f; }
.st-danger-hint { margin-top: 10px; color: #b3361f; }
.sync-btn.danger { background: linear-gradient(135deg, #d0563f, #a8351f); color: #fff; border: none; }
.sync-btn.danger:hover { filter: brightness(1.06); }
.sync-btn.danger-ghost { background: #fff; color: #b3361f; border: 1px solid rgba(192,57,43,.4); }
.sync-btn.danger-ghost:hover { background: rgba(192,57,43,.08); border-color: #b3361f; }
.st-tip { opacity: 1; margin-top: 10px; }
.st-tip.ok { color: #1d8a4e; }
.st-tip.err { color: #c0392b; }

/* 个人中心入口：账号设置 tab */
.up-tab.up-tab-settings { color: var(--accent-deep); }
.up-tab.up-tab-settings:hover { border-color: var(--accent); color: var(--accent); }

/* [fix-20260824-docflow] footer 固定在文档流底部（页面滚到底才看到），不再做下滑隐藏。
   默认正常显示，无入场动画、无 translateY 隐藏。 */
.site-footer {
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
