/* ============================================================
   羊窝 Studio · W3.0.0 深色高级感主题(蓝色主调)
   ============================================================ */
:root {
  --bg: #000000;
  --bg-2: #05070c;
  --card: #10141f;
  --card-2: #151b2b;
  --line: rgba(255, 255, 255, 0.09);
  --text: #e9edf5;
  --muted: #959db1;
  /* 主题色体系：--accent 可由 theme.js 在首屏覆盖，其余为派生令牌。
     所有强调色一律走这些变量（不要再写死蓝色），用户换主题才是全站生效。 */
  --accent: #2f9bff;
  --accent-rgb: 47, 155, 255;
  --accent-lit: #6fb6ff;        /* 亮版：链接 / 强调文字 / 细边框 */
  --accent-lit-rgb: 111, 182, 255;
  --accent-pale: #c0e1ff;       /* 极浅版：深色卡片上的浅色文字 */
  --accent-2-pale: #c3b6ff;
  --accent-deep: #206bbb;       /* 深版：按下态 / 暗描边 */
  --accent-deep-rgb: 32, 107, 187;
  --accent-2: #7a5cff;          /* 第二主色：渐变搭配 */
  --accent-2-rgb: 122, 92, 255;
  /* 主色块上的文字色：由 theme.js 按背景亮度自动算（浅色主题→深字，深色主题→白字）。
     所有「背景是 --accent」的地方，文字都必须用 var(--on-accent)，不要写死 #fff。 */
  --on-accent: #ffffff;
  --on-accent-rgb: 255, 255, 255;
  --teal: #7cc7bf;
  --red: #e26d6d;
  --green: #7bc98b;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  /* 全站弹窗统一宽度（电脑端）
     ------------------------------------------------------------
     规则：居中小窗占屏幕宽的一半。1440 → 720，1920 → 960，1366 → 683。
     兜底：窄屏（<1040）不让它小于 520，避免内容挤成一团；
           再乘 92vw 上限，竖屏/分屏也不会溢出。
     所有电脑端弹窗（.am-panel / .bm-panel / .rm-panel / .ywm-panel /
     .bc-body / .yw-cb-box / .bp-ck-box / .pa-box / .pn-box）都必须用
     这个变量，不要各写各的宽度。
     例外：收件箱 .yw-notif-drawer（邮件列表需要更多宽度，单列 1000px）。 */
  --yw-modal-w: min(92vw, max(520px, 50vw));
  /* 全站弹窗统一高度（电脑端）—— 宽度定完，接下来定高度。
     ------------------------------------------------------------
     以前每个窗各写各的 min-height（积分窗 400 / 我拥有的 420 / 兑换码 320），
     同一个站里的窗一会儿扁带子、一会儿高盒子，点开两个就能看出不齐。
     现在分两档，同档内完全一致：
       内容型 = 网格、列表、预览这类「东西多少不定」的窗（积分 / 我拥有的 / 说明）
                → 撑到 80vh（1440×900 上是 720），内容多了窗内自己滚。
       表单型 = 只有几行输入框的窗（兑换码 / 账户安全 / 资料 / 上传小说）
                → 撑到 50vh（1440×900 上是 450），内容垂直居中，不至于空得发慌。
     小确认框（.yw-cb-box）不参与 —— 它就该贴着内容走。 */
  --yw-modal-h: min(80vh, 780px);
  --yw-modal-h-sm: min(50vh, 520px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* text-size-adjust:100% —— 关掉移动浏览器（微信 / QQ / 部分安卓机）的「正文自动放大」。
   开了这个机制的手机，同一份 CSS 会被各自放大不同的倍数，于是「这台手机字特别大、
   那台正常」；关掉之后字号完全由下面的 clamp() 决定，换手机不会忽大忽小。 */
html {
  scroll-behavior: smooth; overflow-x: hidden; background: var(--bg);
  -webkit-text-size-adjust: 100%; -moz-text-size-adjust: 100%; text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.75;
  overflow-x: hidden;
  touch-action: manipulation; /* 禁用移动端双击放大 */
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(var(--accent-rgb), 0.35); }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.85; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: min(1140px, 92%); margin: 0 auto; position: relative; z-index: 1; }
section { padding: 88px 0; scroll-margin-top: 76px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  /* viewport-fit=cover 后,把导航内容推到刘海/状态栏下方,避免被时钟/电量遮挡(文字位置据此保持原样) */
  padding-top: env(safe-area-inset-top, 0px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  /* 刘海/状态栏那一条(safe-area 高度内)填成「实色导航底」,消除透出纯黑 html 导致的黑分界;
     其余区域仍用原半透明毛玻璃。无刘海/平板/桌面 env()=0 时这条渐变自动坍缩成原 0.72,外观不变 */
  background: linear-gradient(to bottom,
    rgba(5, 7, 12, 1) 0,
    rgba(5, 7, 12, 1) env(safe-area-inset-top, 0px),
    rgba(5, 7, 12, 0.72) env(safe-area-inset-top, 0px),
    rgba(5, 7, 12, 0.72) 100%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: min(1240px, 94%);
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-sans);
  font-size: 17px; font-weight: 600; letter-spacing: .5px;
  color: var(--text); white-space: nowrap;
}
.nav-logo .sheep { font-size: 24px; line-height: 1; }
.nav-logo em { color: var(--accent); font-style: normal; }
/* 左上角「返回上一级」按钮（登录 / 注册页） */
.nav-back {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  color: var(--text); text-decoration: none;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  font-size: 19px; line-height: 1;
  transition: background .2s, transform .2s, border-color .2s;
}
.nav-back:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); transform: translateX(-1px); }
.nav-back:active { transform: scale(.94); }
.nav-links {
  display: flex; gap: 4px; margin-left: auto;
  flex-wrap: nowrap;
}
.nav-links a {
  color: var(--muted); font-size: 13.5px;
  padding: 7px 12px; border-radius: 999px;
  white-space: nowrap; transition: 0.25s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav-links a.active { color: var(--on-accent); background: var(--accent); font-weight: 600; }
.nav-cta {
  white-space: nowrap;
  font-size: 13px; font-weight: 600;
  color: var(--on-accent) !important;
  background: var(--accent);
  padding: 8px 16px; border-radius: 999px;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none; border: 1px solid var(--line);
  color: var(--text); border-radius: 10px;
  width: 40px; height: 40px; font-size: 18px;
}
@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: rgba(0,0,0,.97);
    border-bottom: 1px solid transparent;
    max-height: 0; opacity: 0;
    padding-top: 0; padding-bottom: 0;
    overflow: hidden;
    pointer-events: none;
    display: flex;
    transition: max-height .42s ease, opacity .3s ease, padding .42s ease, border-bottom-color .3s ease;
  }
  .nav-links.open {
    max-height: calc(100vh - 64px);
    opacity: 1;
    padding: 12px 4%;
    border-bottom-color: var(--line);
    pointer-events: auto;
  }
  .nav-cta { display: none; }
}

/* ---------- Apple 风首页 Hero ---------- */
.hero {
  /* svh:按工具栏展开时的最小视口计算,高度不随 iOS/安卓工具栏收展抖动,
     避免从下方滑回顶部时下一段海报漏进首屏(dvh 的经典问题) */
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 200px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; width: min(900px, 92%); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted);
  letter-spacing: 4px;
  opacity: 0; animation: riseIn .8s .2s ease forwards;
}
.hero h1 {
  /* 字号抽成变量：两行帧(.multi)要按同一基准缩小，行框总高才能和单行帧完全一致，
     否则轮播切到两行时下面的副标题会往下跳一截 */
  --h1-size: clamp(58px, 12vw, 128px);
  font-family: var(--font-sans);
  font-size: var(--h1-size);
  /* 单行：一个字框就占满 1.62 倍字号，字在其中自动垂直居中 */
  line-height: calc(var(--h1-size) * 1.62);
  /* 单行帧不许换行（「震撼首发，欢迎」本来就顶满宽，一换行就变两行）；
     两行帧由 .multi 打开 pre-line，用文案里的 \n 手动折行 */
  white-space: nowrap;
  min-height: calc(var(--h1-size) * 1.62);   /* 删空时也保留高度，副标题不跳 */
  font-weight: 600;
  letter-spacing: 1px;
  margin: 26px 0 6px;
  opacity: 0; animation: riseIn .9s .45s ease forwards;
}
.hero h1 .grad {
  background: linear-gradient(110deg, #4f9cff, #9a5cff, #ff5f9e, #ffb64f, #45e8c0, #4f9cff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 9s linear infinite, hueSpin 8s linear infinite;
}
@keyframes hueSpin { to { filter: hue-rotate(360deg); } }
@keyframes shimmer { to { background-position: 300% 0; } }
/* 长句（秘密小窝 11月17日回归官网 / 小羊沐沐，友谊常青）由 JS 按宽度自动缩字号，
   行高与最小高度都锚在 --h1-size 上，所以字号变了版面也不会跳 */
/* 日期帧（11月17日）：数字是半角、月日是满格汉字，主标题的字距是负数，
   几种字符贴在一起会显得发闷。这一帧按字号比例单独放宽一点（49px 时约 +2.4px，
   128px 桌面时约 +6.4px），其它帧不受影响。 */
.hero h1 .grad.grad-date { letter-spacing: .05em; }
/* 首帧标题的「纯 CSS 近似字号」—— 治的是「加载时先溢出屏幕、随后又归位」。
   静态 HTML 里这句 15 个字比视口宽（128px 时 1569px），精算字号的脚本又排在
   十几个阻塞脚本后面，慢网下要等一两秒才跑得到，中间就会先画出溢出屏幕的巨字。
   这里直接用一条 CSS 把它压到「刚好占满一行」的近似值，首帧就是对的，不再依赖 JS 时序。
   系数 8vw-3.3px 是实测反推的：1440 / 1600 / 1280 / 1024 / 768 / 600 / 430 / 390 / 360
   九个宽度上与 JS 迭代算出的字号误差都是 0.0px（桌面就是「一行撑满 vw-40」）。
   宽屏封顶在 --h1-size，避免 8vw 把字放到比基准还大；JS 的 fitTitle() 只会缩、不会放大。
   注意：vw 含滚动条宽度，所以按这个值排出来比精算结果略宽 1px 左右，但离屏幕边
   还有 20 多 px，绝不会溢出；JS 跑起来后会摘掉这个类、改写内联字号接管。 */
.hero h1.fit-static {
  font-size: min(var(--h1-size), calc(8vw - 3.3px));
   /* 光压字号还不够：.hero-inner 只有 900px，而这句 1372px 宽，哪怕字号对了，
      行内内容也放不下、只会往右边溢出。这里把它临时撑成「整屏宽 + 居中」
      （= JS 里 h1.style.width / marginLeft 那两行的 CSS 版），超出的部分才对称分布。 */
   width: 100vw; margin-left: calc(50% - 50vw);
}
/* 旧版 HTML（缓存里还带着 prefit 内联脚本）用这条把标题藏到精算完成，别删 */
html.prefit #heroTitle { visibility: hidden; }
/* 首页主标题打字机动画的光标(动画期间显示,结束后移除) */
.hero h1.typing::after {
  content: "\258D";
  display: inline-block;
  margin-left: 2px;
  font-weight: 400;
  color: #5aa6ff;
  animation: caretBlink 1s steps(1, end) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }
.hero-slogan {
  font-size: clamp(15px, 2.2vw, 21px);
  letter-spacing: 3px;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 20px;
  opacity: 0; animation: riseIn .9s .65s ease forwards;
}
.hero p.lead {
  color: var(--muted); font-size: clamp(14px, 1.8vw, 16.5px);
  max-width: 560px; margin: 0 auto;
  opacity: 0; animation: riseIn .9s .8s ease forwards;
}
.hero-actions {
  display: flex; gap: 16px; margin-top: 38px; justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: riseIn .9s 1s ease forwards;
}
/* 两个 hero 按钮等宽：最小宽度对齐右侧「加入官方 QQ 群」按钮(桌面约 169px) */
.hero-actions .btn { min-width: 169px; justify-content: center; }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
.hero-scroll {
  position: absolute; bottom: 30px; left: 0; right: 0;
  margin: 0 auto; width: max-content; max-width: 92%;
  color: var(--muted); font-size: 12px; letter-spacing: 2px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0; animation: riseIn 1s 1.4s ease forwards;
}
.hero-scroll .arrow { animation: bounceY 1.8s ease-in-out infinite; color: var(--accent); font-size: 16px; }
@keyframes bounceY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 999px;
  padding: 14px 30px; font-size: 15px; font-weight: 600; text-align: center;
  transition: transform .25s, box-shadow .25s, opacity .25s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  color: var(--on-accent);
  background: var(--accent);
  box-shadow: 0 10px 30px rgba(var(--accent-rgb),.32);
}
.btn-primary:hover { box-shadow: 0 14px 38px rgba(var(--accent-rgb),.45); transform: translateY(-2px); opacity: 1; }
.btn-ghost {
  color: var(--text);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); opacity: 1; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.link-more { font-size: 14.5px; font-weight: 600; }
.link-more::after { content: " ›"; }

/* ---------- Apple 风竖向大海报 ---------- */
.poster-stack { display: flex; flex-direction: column; gap: 22px; padding: 8vh 0 0; }
.poster {
  position: relative;
  min-height: 480px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  isolation: isolate;
}
.poster .p-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transition: transform 8s ease;
}
.poster:hover .p-bg { transform: scale(1.06); }
.poster::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at center 68%, rgba(5,7,12,.28), rgba(5,7,12,.82) 90%);
}
.poster .p-body { padding: 70px 24px; max-width: 640px; }
.poster .p-kicker { font-size: 13px; letter-spacing: 4px; color: var(--accent); font-weight: 600; }
.poster .p-title {
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 800; margin: 12px 0 10px;
  text-shadow: 0 4px 30px rgba(0,0,0,.6);
}
.poster .p-desc {
  color: rgba(233,237,245,.88); font-size: clamp(14px, 1.8vw, 16.5px);
  text-shadow: 0 2px 14px rgba(0,0,0,.7);
}
.poster .p-actions { margin-top: 26px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.poster .p-ico { font-size: 64px; margin-bottom: 8px; filter: drop-shadow(0 10px 26px rgba(var(--accent-rgb),.35)); }
.poster.lib { background: linear-gradient(150deg, #0d1b33, #131830 55%, #0b0f1e); }
.poster.win95 { background: linear-gradient(150deg, #0f2b4d, #10325c 45%, #0a1a30); }
.poster.win95 .p-ico { filter: none; }
@media (max-width: 640px) {
  /* 手机海报:沉浸式背景+文字缩小收拢左下角,遮罩只压底部,尽量露出完整图片 */
  .poster {
    min-height: 0;
    aspect-ratio: 1536 / 931;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: left;
  }
  /* 商城卡片（theme-card / avat-card / bg-card）也挂着 .poster 类，
     海报这个 16:10 的比例会把卡片压成一块色块，名字和按钮直接被 overflow 裁掉 */
  .theme-card.poster,
  .avat-card.poster,
  .bg-card.poster {
    aspect-ratio: auto;
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
  }
  .poster::after {
    background: linear-gradient(180deg, rgba(5,7,12,0) 34%, rgba(5,7,12,.4) 62%, rgba(5,7,12,.88) 100%);
  }
  .poster .p-body { padding: 0 18px 15px; max-width: 100%; }
  .poster .p-kicker { font-size: 9.5px; letter-spacing: 2.5px; }
  .poster .p-title { font-size: 21px; margin: 5px 0 4px; }
  .poster .p-desc { font-size: 11.5px; line-height: 1.55; }
  .poster .p-actions { margin-top: 10px; justify-content: flex-start; }
  .poster .p-actions .btn { padding: 8px 18px; font-size: 12px; }
  .poster .p-ico { font-size: 32px; margin-bottom: 4px; }

  /* 手机竖屏 Hero:苹果式——超大主标题绝对主导、副标题明显缩小、纵向留白舒展、按钮更小靠下 */
  .hero { padding: 194px 0 56px; }   /* 顶部更多呼吸空间,大标题整体下移接近视觉中心 */
  .hero h1 {
    --h1-size: clamp(40px, 12.6vw, 50px);  /* 顶到单行安全上限,主标题最大化 */
    font-weight: 700;                        /* 加粗,接近桌面大字体的视觉分量 */
    letter-spacing: -0.5px; text-align: center; margin: 14px 0 24px;  /* 标题与下方拉开大间距 */
  }
  .hero h1 .grad {
    text-shadow: 0 0 22px rgba(120,170,255,.4);  /* 手机端彩虹更鲜活 */
  }
  /* 副标题整体缩小,与巨幅标题拉开层级;并下移留出呼吸感 */
  .hero-badge { font-size: 9px; letter-spacing: 2.6px; margin-bottom: 2px; }
  .hero-slogan { font-size: 9.5px; letter-spacing: 3px; margin-bottom: 26px; }
  .hero p.lead {
    font-size: 12.5px; line-height: 2.05; max-width: 100%;  /* 行距放开一档，几行小字不再挤成一坨 */
    margin: 28px auto 0; color: #9aa3b6;
  }
  /* 三个按钮必须并排一行：三等分、去掉最小宽度、收紧内边距与字号。
     以前是 flex-wrap + min-width:139px（3×139 + 间距 > 屏宽），必然折成 2+1。 */
  .hero-actions {
    margin-top: 44px; gap: 8px;
    flex-wrap: nowrap; justify-content: center;
  }
  .hero-actions .btn {
    flex: 1 1 0; min-width: 0;
    padding: 10px 6px; font-size: 12.5px; letter-spacing: 0;
    white-space: nowrap;
  }

  /* 手机端导航栏略矮 */
  .nav-inner { height: 54px; }
  .nav-logo { font-size: 16px; }
  .nav-toggle { width: 38px; height: 38px; font-size: 17px; }
  /* 手机端导航元素多（返回/徽标/菜单/铃铛/登录），间距 24 会把右边挤扁 */
  .nav-inner { gap: 12px; }
  .auth-area { gap: 6px; }
  .nav-links { top: 54px; }
  .nav-links.open { max-height: calc(100vh - 54px); }
}

/* 矮屏手机（≤700px 高）：首屏纵向留白收一档，否则「向下探索」会几乎贴到按钮上 */
@media (max-width: 640px) and (max-height: 700px) {
  .hero { padding: 148px 0 50px; }
  .hero h1 { margin: 10px 0 16px; }
  .hero-slogan { margin-bottom: 18px; }
  .hero p.lead { margin-top: 20px; line-height: 1.95; }
  .hero-actions { margin-top: 30px; }
}

/* 平板端专属:「向下探索」贴底、去掉箭头(不影响手机与桌面) */
@media (min-width: 641px) and (max-width: 1024px) {
  .hero-scroll { bottom: 0; padding-bottom: 14px; }
  .hero-scroll .arrow { display: none; }
}

/* 手机横屏：按「矮一点的平板」来排（大标题、贴底无箭头滚动提示）。
   ------------------------------------------------------------
   以前这里有一句 `html { zoom: .5 }`：整页缩到 50%，想让横屏一次看到更多画面。
   副作用很大 —— 布局视口被撑成 2 倍宽（844 → 1688），浏览器再把整页缩 0.5 显示：
     · 所有字都只有物理一半大，点按钮都点不准（账号页后来只好单独 `zoom:1 !important` 抵掉）；
     · 弹窗按 CSS 尺寸算出来是 2 倍，商城只能在横屏给确认窗单独补一句 `zoom:1.6` 来救；
     · 任何按 px 写死的间距/字号都会跟着减半，越改越乱。
   现在改成不缩放，直接用「压缩纵向留白」的方式让横屏装得下：标题仍用 vw 计算（视觉大小不变），
   导航和按钮回到正常尺寸。 */
@media (orientation: landscape) and (max-height: 500px) {
  .hero { padding: 74px 0 30px; min-height: 100svh; }
  .hero-inner { width: min(900px, 92%); }
  .hero h1 {                                      /* 与平板/桌面一致的大标题,而非手机竖屏紧凑字号 */
    font-size: clamp(44px, 9vw, 96px);
    font-weight: 600; letter-spacing: 1px; margin: 14px 0 4px;
  }
  .hero h1 .grad { text-shadow: none; }           /* 取消手机竖屏的额外辉光,回归平板观感 */
  .hero-badge { font-size: 11.5px; letter-spacing: 3px; }
  .hero-slogan { font-size: clamp(13px, 2vw, 16px); letter-spacing: 2px; margin-bottom: 12px; }
  .hero p.lead { font-size: clamp(13px, 1.7vw, 15px); line-height: 1.7; max-width: 560px; margin: 0 auto; color: var(--muted); }
  .hero-actions { margin-top: 20px; gap: 12px; }
  .hero-actions .btn { padding: 10px 22px; font-size: 14px; }
  .hero-scroll { bottom: 0; padding-bottom: 10px; }   /* 滚动提示贴底 */
  .hero-scroll .arrow { display: none; }              /* 去箭头,与平板一致 */
  /* 导航栏：横屏高度紧，压到 56 */
  .nav-inner { height: 56px; }
  .nav-logo { font-size: 17px; }
  .nav-toggle { width: 40px; height: 40px; font-size: 18px; }
  .nav-links { top: 56px; }
}

/* ---------- 通用板块头 ---------- */
.sec-head { margin-bottom: 44px; }
.sec-head.center { text-align: center; }
.sec-head.center .sec-kicker { justify-content: center; }
.sec-kicker {
  font-size: 12.5px; letter-spacing: 3px;
  color: var(--accent); text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.sec-kicker::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
.sec-head.center .sec-kicker::after { content: ""; width: 26px; height: 1px; background: var(--accent); }
.sec-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800; margin-top: 10px;
}
.sec-sub { color: var(--muted); margin-top: 8px; max-width: 640px; font-size: 15px; }
.sec-head.center .sec-sub { margin-left: auto; margin-right: auto; }

/* 卡片通用 */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: .3s;
}
.card:hover { border-color: rgba(255,255,255,.16); }

/* ---------- 近期动态 ---------- */
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: .3s;
}
.news-item:hover { border-color: rgba(var(--accent-rgb),.4); transform: translateX(6px); }
.news-date { font-size: 12.5px; color: var(--accent); font-weight: 600; padding-top: 3px; }
.news-item h4 { font-size: 16px; margin-bottom: 4px; }
.news-item p { font-size: 13.5px; color: var(--muted); }
@media (max-width: 560px) { .news-item { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- 关于 ---------- */
.about-quote {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.9;
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 26px;
  margin-bottom: 44px;
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about-grid h3 {
  font-family: var(--font-serif); font-size: 18px;
  margin-bottom: 14px; color: var(--accent);
}
.about-grid p { color: var(--muted); font-size: 14.5px; }
.team-row { display: flex; flex-direction: column; gap: 10px; }
.team-row .t {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-radius: 10px;
  background: rgba(255,255,255,.04); font-size: 14px;
}
.team-row .t span { color: var(--muted); font-size: 13px; }
.recruit {
  margin-top: 12px; font-size: 13px; color: var(--teal);
  background: rgba(124,199,191,.08);
  border: 1px dashed rgba(124,199,191,.35);
  border-radius: 10px; padding: 10px 14px;
}
.value-list { display: flex; flex-direction: column; gap: 12px; }
.value-list li { list-style: none; display: flex; gap: 14px; font-size: 14px; }
.value-list li b { color: var(--accent); white-space: nowrap; min-width: 66px; font-family: var(--font-serif); }
.value-list li span { color: var(--muted); }
.feedback-box { display: flex; flex-direction: column; gap: 12px; }
.feedback-box p { font-size: 14px; color: var(--muted); }
.copy-row { display: flex; flex-wrap: wrap; gap: 10px; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(var(--accent-rgb),.1);
  border: 1px solid rgba(var(--accent-rgb),.35);
  color: var(--accent); border-radius: 10px;
  padding: 9px 15px; font-size: 13px; transition: .25s;
}
.copy-btn:hover { background: rgba(var(--accent-rgb),.2); }
.copy-btn.copied { background: rgba(123,201,139,.15); border-color: rgba(123,201,139,.4); color: var(--green); }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- 作品海报卡(首页预告,各端统一:上图下文) ----------
   卡片不再有实色底（原来 background: var(--card) = #10141f）：
   那块深色会让图片和正文之间出现一条硬边，像"图贴在一块板子上"。
   现在整卡透明，图片底部的渐变直接渐隐到页面背景（--bg = 纯黑），
   正文浮在渐变末端上 —— 视觉上文字是从图里长出来的，没有色块断层。 */
.work-promo-stack { display: flex; flex-direction: column; gap: 26px; }
.work-promo {
  border-radius: 24px; overflow: hidden;
  background: transparent;
  border: 1px solid rgba(255,255,255,.05);
  transition: .35s;
}
.work-promo:hover { border-color: rgba(var(--accent-rgb),.28); }
.work-promo .wp-img { position: relative; aspect-ratio: 21/9; overflow: hidden; }
.work-promo .wp-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 8s ease; }
.work-promo:hover .wp-img img { transform: scale(1.05); }
/* 渐变要一路走到纯黑（= 页面底色），否则底部会留一道 .94 的浅边 */
.work-promo .wp-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 42%,
    rgba(0,0,0,.28) 62%,
    rgba(0,0,0,.70) 82%,
    rgba(0,0,0,.93) 94%,
    #000 100%);
}
.work-promo .wp-body { padding: 8px 34px 32px; margin-top: -64px; position: relative; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  font-size: 12px; padding: 4px 12px; border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line); color: var(--muted);
  backdrop-filter: blur(6px);
}
.chip.hot { background: rgba(var(--accent-2-rgb),.18); border-color: rgba(var(--accent-2-rgb),.5); color: var(--accent-2-pale); }
.chip.doing { background: rgba(var(--accent-rgb),.16); border-color: rgba(var(--accent-rgb),.5); color: var(--accent); }
.work-promo h3 { font-family: var(--font-serif); font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.work-sub { color: var(--accent); font-size: 13.5px; margin: 6px 0 12px; }
.work-line { font-family: var(--font-serif); font-size: 16px; margin-bottom: 6px; }
.work-sum { color: var(--muted); font-size: 14.5px; max-width: 720px; }
.wp-foot { display: flex; align-items: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.wp-cap { font-size: 12px; color: var(--muted); margin-left: auto; }
@media (max-width: 640px) {
  .work-promo .wp-img { aspect-ratio: 16/10; }
  .work-promo .wp-body { padding: 6px 22px 26px; }
  .wp-cap { display: none; }
}

/* ============================================================
   首页作品卡（2026-11-21）：只留作品名
   ------------------------------------------------------------
   标签 / 副标 / 一句话 / 简介 / 「了解详情」按钮 全部不上首页，
   整块做成海报：标题压在图片左下角，整张卡可点进详情页。
   注意 .wp-poster 只在首页 #workPromoStack 里出现；
   works.html 的 .work-promo 仍是完整图文卡，不受影响。
   ============================================================ */
.work-promo.wp-poster { position: relative; display: block; text-decoration: none; color: inherit; }
.work-promo.wp-poster .wp-img { aspect-ratio: 21/9; }
.work-promo.wp-poster .wp-img::after {
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 44%,
    rgba(0,0,0,.34) 68%,
    rgba(0,0,0,.76) 88%,
    #000 100%);
}
.wp-poster .wp-title {
  position: absolute; left: clamp(20px, 4%, 46px); bottom: clamp(16px, 4%, 38px);
  margin: 0; font-family: var(--font-serif); font-weight: 800; color: #fff;
  font-size: clamp(26px, 4vw, 52px); line-height: 1.1; letter-spacing: .02em;
  text-shadow: 0 6px 28px rgba(0, 0, 0, .82);
  transition: color .3s;
}
.work-promo.wp-poster:hover .wp-title { color: var(--accent-lit); }
.work-promo.wp-poster:hover .wp-img img { transform: scale(1.045); }
@media (max-width: 640px) {
  .work-promo.wp-poster .wp-img { aspect-ratio: 16/10; }
  .wp-poster .wp-title { left: 18px; bottom: 16px; font-size: 24px; }
}

/* ---------- 作品详情页 ---------- */
.page-hero { padding: 140px 0 50px; text-align: center; }
.page-hero .sec-kicker { justify-content: center; }
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 6vw, 58px); font-weight: 800; margin-top: 14px;
}
.page-hero p { color: var(--muted); margin-top: 10px; max-width: 620px; margin-left: auto; margin-right: auto; }
.work-block { margin-bottom: 64px; }
.work-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.work-detail .full { grid-column: 1 / -1; }
.work-detail h4 { font-family: var(--font-serif); font-size: 17px; margin-bottom: 12px; color: var(--accent); }
.work-detail p { font-size: 14px; color: var(--muted); }
@media (max-width: 800px) { .work-detail { grid-template-columns: 1fr; } }
.meta-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-top: 24px;
}
.meta-cell {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 16px;
}
.meta-cell span { display: block; font-size: 12px; color: var(--muted); }
.meta-cell b { font-size: 14px; }

/* 进度条 */
.progress-list { display: flex; flex-direction: column; gap: 14px; }
.progress-row { display: grid; grid-template-columns: 52px 1fr 46px; gap: 12px; align-items: center; font-size: 13.5px; }
.progress-row .pct { text-align: right; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar i {
  display: block; height: 100%; width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1.2s cubic-bezier(.22,.8,.3,1);
}

/* 角色卡 */
.char-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.char-card {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  text-align: center; transition: .3s;
}
.char-card:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb),.4); }
.char-card .face { font-size: 44px; margin-bottom: 10px; }
.char-card h5 { font-size: 16px; font-family: var(--font-serif); }
.char-card .meta { font-size: 12px; color: var(--accent); margin: 4px 0 10px; }
.char-card p { font-size: 13px; color: var(--muted); text-align: left; }

/* 玩法列表 */
.play-list { display: flex; flex-direction: column; gap: 12px; }
.play-item {
  display: grid; grid-template-columns: 46px 1fr; gap: 16px;
  padding: 16px 18px; border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line); transition: .3s;
}
.play-item:hover { border-color: rgba(var(--accent-rgb),.35); }
.play-item .no { font-family: var(--font-serif); font-size: 20px; font-weight: 800; color: rgba(var(--accent-rgb),.5); }
.play-item b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.play-item p { font-size: 13px; color: var(--muted); }

.song-note {
  display: flex; gap: 12px; align-items: center;
  background: rgba(var(--accent-2-rgb),.09);
  border: 1px solid rgba(var(--accent-2-rgb),.32);
  border-radius: 12px; padding: 14px 18px;
  font-size: 13.5px;
}
.song-note .ico { font-size: 22px; }

/* ---------- 画廊 ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.g-item {
  position: relative; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line);
  cursor: zoom-in;
}
.g-item img { aspect-ratio: 3/2; object-fit: cover; width: 100%; transition: transform .6s; }
.g-item:hover img { transform: scale(1.05); }
.g-item .cap {
  position: absolute; inset: auto 0 0 0;
  padding: 40px 20px 16px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
}
.g-item .cap b { font-size: 15px; display: block; }
.g-item .cap span { font-size: 12.5px; color: rgba(255,255,255,.75); }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: 1fr; } }
.center-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 26px; }
.gallery-page .g-item img { aspect-ratio: 16/10; }

/* 灯箱(高质量弹窗) */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(3,4,8,.93);
  backdrop-filter: blur(8px);
  display: none; place-items: center;
  padding: 4vw;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 84vh; border-radius: 14px; box-shadow: var(--shadow); }
.lightbox .lb-cap { color: var(--muted); margin-top: 14px; text-align: center; font-size: 14px; }
.lightbox .lb-close {
  position: absolute; top: 22px; right: 26px;
  background: rgba(255,255,255,.08); border: 1px solid var(--line);
  color: var(--text); font-size: 20px;
  width: 42px; height: 42px; border-radius: 50%;
}

/* ---------- 公告 ---------- */
.anno-list { display: flex; flex-direction: column; gap: 16px; }
.anno {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 28px;
  position: relative; transition: .3s;
}
.anno:hover { border-color: rgba(var(--accent-rgb),.35); }
.anno.pinned { border-color: rgba(var(--accent-rgb),.5); background: linear-gradient(135deg, rgba(var(--accent-rgb),.08), var(--card)); }
.anno .pin {
  position: absolute; top: 22px; right: 24px;
  font-size: 11.5px; color: var(--on-accent); font-weight: 700;
  background: var(--accent); border-radius: 6px; padding: 3px 10px;
}
.anno .date { font-size: 12.5px; color: var(--accent); font-weight: 600; }
.anno h4 { font-size: 17px; font-family: var(--font-serif); margin: 6px 0 8px; }
.anno p { font-size: 14px; color: var(--muted); }

/* ---------- 大事记时间线 ---------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb),.05));
}
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -28px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
}
.tl-date { font-size: 13px; color: var(--accent); font-weight: 700; letter-spacing: 1px; }
.tl-item h4 { font-size: 17px; font-family: var(--font-serif); margin: 4px 0; }
.tl-item p { font-size: 14px; color: var(--muted); }

/* ---------- 图书馆 ---------- */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.book {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 20px;
  text-align: center; transition: .3s; cursor: pointer;
}
.book:hover { transform: translateY(-5px); border-color: rgba(var(--accent-rgb),.45); box-shadow: var(--shadow); }
.book .cover { font-size: 42px; margin-bottom: 12px; }
.book .ch { font-size: 12px; color: var(--accent); }
.book h4 { font-family: var(--font-serif); font-size: 15.5px; margin: 6px 0 8px; line-height: 1.5; }
.book p { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ---------- 图书馆首屏骨架卡 ----------
   真实卡片要等 main.js 跑完才渲染，那之前网格里什么都没有，深色主题下
   就是一大片纯黑 —— 手机上看着像「黑屏/卡死」。这里放几张同尺寸骨占位，
   让首帧就有「内容在加载」的观感；main.js 一写 innerHTML 就整体替换掉。 */
.book-skel {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 11px; min-height: 248px;
  pointer-events: none; cursor: default;
}
.book-skel i {
  display: block; border-radius: 6px;
  background: linear-gradient(90deg,
    rgba(255,255,255,.045) 25%, rgba(255,255,255,.105) 37%, rgba(255,255,255,.045) 63%);
  background-size: 400% 100%;
  animation: skShimmer 1.5s ease-in-out infinite;
}
.book-skel .sk-ic { width: 46px; height: 46px; border-radius: 13px; margin-bottom: 7px; }
.book-skel .sk-l { height: 11px; }
.book-skel .w45 { width: 45%; }
.book-skel .w60 { width: 60%; }
.book-skel .w75 { width: 75%; }
@keyframes skShimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .book-skel i { animation: none; } }
.lib-search {
  width: min(460px, 100%); margin: 0 auto 30px; display: block;
  box-sizing: border-box; height: 46px;
  padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  color: var(--text); font-size: 14px; outline: none;
  transition: .25s;
}
.lib-search:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb),.15); }

/* 图书馆工具栏：搜索框 + 一排同尺寸动作按钮。
   以前是「两个 46px 大胶囊 + 两个 32px 小胶囊」两套尺寸上下叠着，看着又乱又重；
   现在榜单并成一个入口，三个动作统一 46px 高、同一圆角，只靠颜色分主次 */
.lib-tools {
  display: flex; gap: 10px; align-items: center; justify-content: center;
  max-width: 720px; margin: 0 auto 26px; flex-wrap: wrap;
}
.lib-tools .lib-search { margin: 0; width: auto; flex: 1 1 240px; max-width: 440px; }
/* <a> 和 <button> 混排：button 自带 border / 自己的字体，不显式清掉就会比 a 高一头。
   统一成 box-sizing:border-box + 固定高度，两者才真正一样大。
   min-width 让「榜单」「我的作品」「上传作品」三个字数不同的按钮等宽，否则一排出来大小不齐 */
.lib-upload-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  box-sizing: border-box; height: 46px; min-width: 112px; padding: 0 18px;
  border: 0; border-radius: 999px;
  font: inherit; font-size: 13.5px; font-weight: 700;
  color: #04121f; text-decoration: none; cursor: pointer; white-space: nowrap;
  background: linear-gradient(135deg, var(--accent-lit), var(--accent));
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), .28);
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.lib-upload-btn:hover { transform: translateY(-1px); box-shadow: 0 9px 26px rgba(var(--accent-rgb), .42); }
.lib-upload-btn:active { transform: translateY(0); }
/* 次要操作（「我的作品」「刷新」）走描边款，别跟主操作抢眼 */
.lib-upload-btn.ghost {
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.16);
  color: var(--text); box-shadow: none;
}
.lib-upload-btn.ghost:hover {
  background: rgba(255,255,255,.10); border-color: var(--accent); box-shadow: none;
}
/* 从顶部按钮跳过去时，给上传卡片描一圈光，让人知道「就是这里」 */
.upload-box.flash { animation: libCardFlash 1.5s ease; }
@keyframes libCardFlash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
  28%, 62% { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .45); }
}
@media (max-width: 640px) {
  /* 搜索框独占一行，动作按钮等分一行 —— 全是同一个尺寸，不再一大一小混着排。
     图书馆是 3 个动作（榜单/我的作品/上传），「我的作品」页只有 2 个，所以列数按变体给 */
  .lib-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
  .lib-tools.lib-tools-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lib-tools .lib-search { grid-column: 1 / -1; flex: none; max-width: none; width: 100%; }
  .lib-upload-btn {
    width: 100%; min-width: 0; padding: 0 4px; font-size: 13px; gap: 3px;
    letter-spacing: -.2px; overflow: hidden;
  }
}
@media (max-width: 340px) {
  .lib-tools { gap: 10px 6px; }
  .lib-upload-btn { font-size: 11.5px; gap: 2px; }
}
/* 藏书统计：原来 flex + gap 30px，手机上会排成 3+1（最后一个孤零零居中）。
   改成等分网格 + 卡片，手机 2×2、桌面 1×4，永远不会错行。 */
.lib-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; max-width: 720px; margin: 0 auto 26px;
}
.lib-stats .stat {
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 14px; padding: 15px 8px 13px; text-align: center;
}
.lib-stats .stat b {
  display: block; font-family: var(--font-serif); font-size: 25px; line-height: 1.15;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.lib-stats .stat span { display: block; margin-top: 5px; font-size: 11.5px; color: var(--muted); letter-spacing: .2px; }
/* 窄屏这行会折成「…全部免费阅 / 读」，让浏览器把两行拆得均匀些，别留孤字 */
#libraryNote { text-wrap: balance; }
/* 手机端压成一行 4 格：数值和标签都收一档字号，靠 clamp 跟着屏宽缩，
   320 的窄屏也不会挤爆（14.4 MB 这种最长的数值也留得住） */
@media (max-width: 700px) {
  .lib-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px; max-width: 100%;
  }
  .lib-stats .stat { padding: 11px 2px 9px; border-radius: 10px; }
  .lib-stats .stat b {
    font-size: clamp(13.5px, 4.3vw, 20px);
    letter-spacing: -.4px; white-space: nowrap;
  }
  .lib-stats .stat span {
    margin-top: 3px; font-size: 10px;
    letter-spacing: -.2px; white-space: nowrap;
  }
}
@media (max-width: 340px) {
  .lib-stats { gap: 4px; }
  .lib-stats .stat { padding: 10px 1px 8px; }
  .lib-stats .stat span { font-size: 9px; }
}

/* ---------- 日志 ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.tab-btn {
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  color: var(--muted); border-radius: 999px;
  padding: 8px 20px; font-size: 13.5px; transition: .25s;
}
.tab-btn.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.log-list { display: flex; flex-direction: column; gap: 14px; }
.log-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.log-item .v { font-size: 12.5px; color: var(--teal); font-weight: 600; }
.log-item h4 { font-size: 15.5px; margin: 4px 0 6px; }
.log-item p { font-size: 13.5px; color: var(--muted); }

/* ---------- 数据中心 ---------- */
.data-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin-bottom: 18px; }
.data-cell { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; text-align: center; }
.data-cell b { font-family: var(--font-serif); font-size: 30px; color: var(--accent); font-variant-numeric: tabular-nums; }
.data-cell .trend { font-size: 12.5px; font-weight: 700; margin-left: 4px; }
.trend.up { color: var(--red); }
.trend.down { color: var(--green); }
.data-cell span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.chart-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; }
.chart-card h4 { font-size: 15px; margin-bottom: 14px; }
.chart-card h4 span { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 8px; }
.chart-wrap { position: relative; height: 260px; }
.chart-wrap canvas { width: 100%; height: 100%; display: block; }
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
.chart-legend .lg { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.chart-legend .dot { width: 10px; height: 10px; border-radius: 3px; }
.analyst {
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius); padding: 20px 24px;
  font-size: 14px; color: var(--muted);
}
.analyst b { color: var(--teal); }

/* ---------- 投票 ---------- */
.vote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .vote-grid { grid-template-columns: 1fr; } }
.vote-card { text-align: left; }
/* 卡片头：作品名 + 第几章（用户反馈「看不出是哪一章」） */
.vc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.vc-work { font-family: var(--font-serif); font-size: 16.5px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-chapter {
  flex: none; font-size: 11.5px; font-weight: 700; color: var(--accent);
  padding: 3px 10px; border-radius: 999px;
  background: rgba(var(--accent-rgb), .13); border: 1px solid rgba(var(--accent-rgb), .34);
}
.vote-bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.vote-bar i {
  display: block; height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1.4s cubic-bezier(.22,.8,.3,1);
}
.vc-score { display: flex; align-items: baseline; gap: 3px; margin-top: 14px; }
.vc-score b { font-family: var(--font-serif); font-size: 38px; font-weight: 800; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.vc-score em { font-style: normal; font-size: 15px; font-weight: 700; color: var(--accent); }
.vc-score span { margin-left: auto; font-size: 12px; color: var(--muted); }
.vc-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--muted); margin: 8px 0 16px; }
.vote-pct { font-family: var(--font-serif); font-size: 40px; font-weight: 800; color: var(--accent); }
.vote-card .cnt { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.vote-btns { display: flex; gap: 10px; justify-content: center; }
.vote-btn {
  border-radius: 10px; padding: 9px 20px; font-size: 13.5px;
  border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text);
  transition: .25s;
}
.vote-btn:hover { background: rgba(var(--accent-rgb),.16); border-color: rgba(var(--accent-rgb),.45); }
.vote-thanks { font-size: 12.5px; color: var(--green); margin-top: 10px; min-height: 20px; }
.expect {
  margin-top: 16px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap; justify-content: center;
}
.donut { position: relative; width: 130px; height: 130px; }
.donut svg { transform: rotate(-90deg); }
.donut .d-num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 24px; font-weight: 800; color: var(--accent);
}
.donut circle { fill: none; stroke-width: 11; }
.donut .d-bg { stroke: rgba(255,255,255,.08); }
.donut .d-fg {
  stroke: url(#donutGrad);
  stroke-linecap: round;
  stroke-dasharray: 339.29;
  stroke-dashoffset: 339.29;
  transition: stroke-dashoffset 1.6s cubic-bezier(.22,.8,.3,1);
}
.expect .e-info { max-width: 420px; }
.expect .e-info h4 { font-size: 16px; margin-bottom: 6px; }
.expect .e-info p { font-size: 13.5px; color: var(--muted); }
.expect .e-legend { display: flex; gap: 16px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.expect .e-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.expect .e-info .e-target { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.expect .e-info .e-meta { font-size: 11.5px; color: rgba(237,241,248,.45); margin-top: 9px; }

/* ---------- 路线图 ---------- */
.road-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.road-cell {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 18px;
  transition: .3s;
}
.road-cell:hover { border-color: rgba(var(--accent-rgb),.45); transform: translateY(-4px); }
.road-cell .when {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--on-accent); background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 6px; padding: 3px 10px; margin-bottom: 12px;
}
.road-cell h4 { font-size: 14.5px; line-height: 1.6; }
@media (max-width: 800px) { .road-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .road-grid { grid-template-columns: 1fr; } }

/* ---------- 壁纸 ---------- */
.wp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.wp {
  border-radius: var(--radius); padding: 26px 14px;
  text-align: center; border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--card-2), var(--card));
  transition: .3s;
}
.wp:hover { transform: translateY(-4px); border-color: rgba(124,199,191,.45); }
.wp .ico { font-size: 40px; margin-bottom: 10px; }
.wp b { display: block; font-size: 14px; }
.wp span { font-size: 11.5px; color: var(--muted); }

/* ---------- 技术 ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.tech-badge {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 10px; text-align: center;
  transition: .3s; display: block; color: var(--text);
}
.tech-badge:hover { border-color: rgba(var(--accent-rgb),.5); transform: translateY(-3px); opacity: 1; }
.tech-badge .ico { font-size: 26px; }
.tech-badge b { display: block; font-size: 13px; margin-top: 8px; }
.tech-badge span { font-size: 11px; color: var(--muted); }
.rhythm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.rhythm-cell {
  text-align: center; border-radius: 14px; padding: 18px 10px;
  border: 1px dashed var(--line); background: rgba(255,255,255,.02);
}
.rhythm-cell .ico { font-size: 24px; }
.rhythm-cell b { display: block; font-size: 13.5px; margin-top: 8px; }
.rhythm-cell span { font-size: 12px; color: var(--accent); }
@media (max-width: 700px) { .rhythm-grid { grid-template-columns: repeat(2, 1fr); } }
/* 技术详情页 */
.tech-detail-list { display: flex; flex-direction: column; gap: 16px; }
.tech-detail {
  display: grid; grid-template-columns: 74px 1fr; gap: 20px; align-items: start;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  scroll-margin-top: 90px; transition: .3s;
}
.tech-detail:target { border-color: rgba(var(--accent-rgb),.55); box-shadow: 0 0 0 4px rgba(var(--accent-rgb),.12); }
.tech-detail .ico { font-size: 42px; text-align: center; }
.tech-detail h4 { font-size: 17px; font-family: var(--font-serif); }
.tech-detail .role { font-size: 12.5px; color: var(--accent); margin: 3px 0 8px; }
.tech-detail p { font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .tech-detail { grid-template-columns: 1fr; } }

/* ---------- V版 ---------- */
.v-banner {
  border-radius: 26px; overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb),.35);
  background: linear-gradient(135deg, #0e1a30, #0a0e1a 60%);
  padding: clamp(30px, 5vw, 60px);
}
.v-banner h3 { font-family: var(--font-serif); font-size: clamp(24px, 3.4vw, 34px); }
.v-banner .tag { color: var(--teal); font-size: 13px; margin: 10px 0 16px; }
.v-banner > p { color: var(--muted); font-size: 15px; max-width: 760px; }
.v-feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 30px 0; }
.v-feat .vf { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.v-feat .vf .ico { font-size: 26px; }
.v-feat .vf b { display: block; font-size: 14.5px; margin: 10px 0 4px; }
.v-feat .vf p { font-size: 12.5px; color: var(--muted); }
.v-updates { margin-bottom: 30px; }
.v-updates h5 { font-size: 14px; color: var(--accent); margin-bottom: 12px; }
.v-updates .vu {
  display: flex; gap: 14px; padding: 11px 16px; font-size: 13px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  border-radius: 10px; margin-bottom: 8px;
}
.v-updates .vu b { color: var(--teal); white-space: nowrap; }
.v-updates .vu span { color: var(--muted); }

/* ---------- 执法(丰富版) ---------- */
.police-intro { color: var(--muted); font-size: 14.5px; max-width: 760px; margin-bottom: 30px; }
.flow-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 18px; }
.flow-step {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 12px; font-size: 12px; color: var(--muted);
  text-align: center;
}
.flow-step b {
  display: block; width: 24px; height: 24px; line-height: 24px; margin: 0 auto 8px;
  border-radius: 50%; font-size: 12px; color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
@media (max-width: 900px) { .flow-steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .flow-steps { grid-template-columns: repeat(2, 1fr); } }
.police-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 16px; align-items: start; }
/* minmax(0,1fr)：单列时 1fr 的最小值是内容 min-content（320 屏上 343px），
   会把卡片顶出容器、整块溢出屏幕右边。 */
@media (max-width: 860px) { .police-grid { grid-template-columns: minmax(0, 1fr); } }
.police-grid h4 { font-size: 15.5px; margin-bottom: 14px; }
.police-grid p { font-size: 13.5px; color: var(--muted); }
.police-nums { display: flex; gap: 30px; margin-bottom: 14px; }
.police-nums b { font-family: var(--font-serif); font-size: 32px; }
.police-nums .ok b { color: var(--green); }
.police-nums .no b { color: var(--red); }
.police-nums span { display: block; font-size: 12px; color: var(--muted); }
/* 备案记录（2026-11 重做）：以前是「编号 / 书名 / 日期 / ✓」四列，
   最该看的「通过没通过」反而只是个勾。现在把结果做成最左边的标签，
   书名占主位，编号和日期退成小字。 */
.record-list {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 306px; overflow-y: auto; margin-top: 16px;
}
.record-list .rc {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px; align-items: center;
  font-size: 12.5px; padding: 9px 11px; border-radius: 10px;
  background: rgba(255,255,255,.03); border: 1px solid transparent;
}
.record-list .rc.is-ok   { background: rgba(122,231,190,.055); border-color: rgba(122,231,190,.16); }
.record-list .rc.is-no   { background: rgba(255,120,120,.055); border-color: rgba(255,120,120,.16); }
.record-list .rc.is-wait { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
.record-list .rc-st {
  font-size: 11px; font-weight: 800; letter-spacing: .3px;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.record-list .rc.is-ok   .rc-st { color: #04241a; background: #7be7be; }
.record-list .rc.is-no   .rc-st { color: #2a0808; background: #ff9a9a; }
.record-list .rc.is-wait .rc-st { color: rgba(237,241,248,.72); background: rgba(255,255,255,.1); }
.record-list .rc-title {
  min-width: 0; color: var(--text); font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.record-list .rc-meta {
  font-size: 11px; color: var(--muted); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.week-bars { display: flex; align-items: flex-end; gap: 14px; height: 130px; margin-top: 8px; }
.week-bars .wb { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.week-bars .wb i {
  width: 100%; max-width: 44px; border-radius: 8px 8px 3px 3px; height: 0;
  background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb),.25));
  transition: height 1.1s cubic-bezier(.22,.8,.3,1);
}
.week-bars .wb span { font-size: 11px; color: var(--muted); }
.week-bars .wb b { font-size: 11.5px; color: var(--accent); }
/* 执法入口（2026-11 简化）：图标 + 身份名 + 人数，一行一条，不再是大方块 */
.role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
@media (max-width: 560px) { .role-cards { grid-template-columns: minmax(0, 1fr); } }
.role-card {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center; gap: 9px; padding: 10px 13px;
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: 11px; transition: .25s;
}
.role-card:hover { border-color: rgba(var(--accent-rgb), .45); transform: translateY(-1px); }
.role-card .ico { font-size: 17px; line-height: 1; text-align: center; }
.role-card b {
  font-size: 13.5px; margin: 0; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.role-card p { font-size: 11.5px; color: var(--muted); margin: 0; text-align: right; white-space: nowrap; }

/* ---------- 联名(加大版) ---------- */
.collab-banner {
  text-align: center;
  border-radius: 26px;
  border: 1px solid rgba(var(--accent-2-rgb),.4);
  background: linear-gradient(135deg, rgba(var(--accent-rgb),.1), rgba(var(--accent-2-rgb),.07)), var(--card);
  padding: clamp(36px, 6vw, 64px) 30px;
}
.collab-banner .duo { font-size: clamp(40px, 6vw, 56px); letter-spacing: 8px; }
.collab-banner h3 { font-family: var(--font-serif); font-size: clamp(22px, 3.4vw, 30px); margin-top: 16px; }
.collab-banner .sub { color: var(--accent); font-size: 14px; margin: 8px 0 14px; }
.collab-banner > p { color: var(--muted); font-size: 14.5px; max-width: 640px; margin: 0 auto 26px; }
.collab-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 30px; text-align: left; }
.collab-feats .cf { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.collab-feats .cf .ico { font-size: 26px; }
.collab-feats .cf b { display: block; font-size: 14.5px; margin: 10px 0 4px; }
.collab-feats .cf p { font-size: 12.5px; color: var(--muted); }
@media (max-width: 760px) { .collab-feats { grid-template-columns: 1fr; } }

/* ---------- 加入我们(宏大版) ---------- */
.join-hero {
  border-radius: 26px; overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb),.4);
  background: linear-gradient(135deg, rgba(var(--accent-rgb),.14), rgba(var(--accent-2-rgb),.08)), var(--card);
  padding: clamp(36px, 6vw, 60px);
  text-align: center; margin-bottom: 18px;
}
.join-hero h3 { font-family: var(--font-serif); font-size: clamp(24px, 3.6vw, 34px); }
.join-hero .qq-big {
  font-family: var(--font-serif); font-size: clamp(38px, 7vw, 64px); font-weight: 800;
  letter-spacing: 4px; margin: 16px 0 6px;
  background: linear-gradient(135deg, #6ec1ff, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.join-hero .desc { color: var(--muted); font-size: 14.5px; }
/* 复制成功态:整张海报变绿 + 对号 */
.join-hero .jh-ok {
  display: none; flex-direction: column; align-items: center; gap: 4px;
}
.join-hero.copied {
  background: linear-gradient(135deg, #0e4d2b, #0a5c33);
  border-color: rgba(123,201,139,.55);
}
.join-hero.copied .jh-body { display: none; }
.join-hero.copied .jh-ok { display: flex; }
.join-hero .jh-ok .ico { font-size: 60px; line-height: 1.2; }
.join-hero .jh-ok b { font-family: var(--font-serif); font-size: 25px; margin-top: 10px; }
.join-hero .jh-ok span { color: rgba(233,237,245,.85); font-size: 13.5px; }
.benefit-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 22px 0 26px; }
.benefit-row .bf {
  font-size: 13px; padding: 8px 16px; border-radius: 999px;
  background: rgba(var(--accent-rgb),.1); border: 1px solid rgba(var(--accent-rgb),.35);
  color: var(--text);
}
/* 一键复制群号成功：整屏纯绿 + 居中 ✅ + 复制成功（淡入淡出） */
.copy-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: #16a34a;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  pointer-events: none;
}
.copy-overlay.show { opacity: 1; visibility: visible; }
.copy-overlay .copy-ok {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #fff; text-align: center;
}
.copy-overlay .ico { font-size: 100px; line-height: 1.1; }
.copy-overlay b { font-family: var(--font-serif); font-size: 30px; letter-spacing: 2px; }
.copy-overlay span { font-size: 15px; opacity: .92; }
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .join-grid { grid-template-columns: 1fr; } }
.join-grid h4 { font-family: var(--font-serif); font-size: 17px; margin-bottom: 14px; color: var(--accent); }
.join-grid p { font-size: 13.5px; color: var(--muted); }
.recruit-cards { display: flex; flex-direction: column; gap: 12px; }
.recruit-card { display: flex; gap: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.recruit-card .ico { font-size: 28px; }
.recruit-card b { display: block; font-size: 14.5px; }
.recruit-card p { font-size: 12.5px; color: var(--muted); }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 560px) { .tier-grid { grid-template-columns: 1fr; } }
.tier {
  text-align: center; border-radius: 14px; padding: 20px 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  transition: .3s;
}
.tier:hover { border-color: rgba(var(--accent-rgb),.5); transform: translateY(-3px); }
.tier .ico { font-size: 30px; }
.tier b { display: block; font-size: 15px; margin-top: 8px; }
.tier .price { font-family: var(--font-serif); font-size: 22px; color: var(--accent); font-weight: 800; margin: 4px 0; }
.tier p { font-size: 11.5px; color: var(--muted); }
.platform-list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.platform-list .pf {
  display: flex; justify-content: space-between;
  background: rgba(255,255,255,.04); border-radius: 10px;
  padding: 10px 14px; font-size: 13.5px;
}
.platform-list .pf span { color: var(--muted); }

/* ---------- 团队字幕 ---------- */
.credit-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .credit-cols { grid-template-columns: 1fr; } }
.credit-cols h4 { font-size: 15.5px; margin-bottom: 14px; }
.credit-cols .row { font-size: 13px; margin-bottom: 10px; }
.credit-cols .row b { color: var(--accent); display: block; font-size: 12px; }
.credit-cols .row span { color: var(--muted); }

/* ---------- 主理人(Apple 海报 + 详情页) ---------- */
.founder-poster {
  border-radius: 26px; overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb),.35);
  background:
    radial-gradient(700px 380px at 50% -10%, rgba(var(--accent-rgb),.16), transparent 65%),
    linear-gradient(180deg, #0c1322, #080b14);
  padding: clamp(44px, 7vw, 80px) 26px;
  text-align: center;
}
.founder-poster .avatar { margin: 0 auto 20px; width: 120px; }
.founder-poster h3 { font-family: var(--font-serif); font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.founder-poster .meta { color: var(--accent); font-size: 14px; margin: 10px 0 16px; letter-spacing: 1px; }
.founder-poster .quote {
  font-family: var(--font-serif); font-size: clamp(16px, 2.2vw, 20px);
  max-width: 480px; margin: 0 auto 28px; line-height: 2;
}
.founder-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 18px; }
@media (max-width: 860px) { .founder-grid { grid-template-columns: 1fr; } }
.founder-card { text-align: center; }
.founder-card .avatar { width: 110px; margin: 6px auto 16px; }
.founder-card h3 { font-family: var(--font-serif); font-size: 24px; }
.founder-card .meta { color: var(--accent); font-size: 13px; margin: 6px 0 14px; }
.founder-card > p { font-size: 13.5px; color: var(--muted); text-align: left; }
.hobby-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.hobby-list .hb { font-size: 13px; display: flex; gap: 10px; }
.hobby-list .hb b { color: var(--teal); min-width: 40px; }
.hobby-list .hb span { color: var(--muted); }
.founder-letter {
  background: linear-gradient(160deg, #141a2a, #0d111d);
  border: 1px solid rgba(var(--accent-rgb),.3);
  border-radius: var(--radius);
  padding: 34px;
  font-family: var(--font-serif);
  position: relative;
}
.founder-letter::before {
  content: "📄 小羊的话";
  position: absolute; top: -13px; left: 26px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent);
  font-size: 12px; font-weight: 700; font-family: var(--font-sans);
  border-radius: 6px; padding: 3px 12px;
}
.founder-letter p { font-size: 14.5px; line-height: 2.1; margin-bottom: 10px; }
.founder-letter p:last-child { text-align: right; color: var(--accent); }
.making-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
@media (max-width: 560px) { .making-grid { grid-template-columns: 1fr; } }
.making-cell { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: left; }
.making-cell b { display: block; font-size: 13px; color: var(--accent); margin-bottom: 5px; }
.making-cell p { font-size: 12.5px; color: var(--muted); }

/* ---------- Beta ---------- */
.beta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .beta-grid { grid-template-columns: 1fr; } }
.beta-grid .ico { font-size: 30px; }
.beta-grid h4 { font-size: 15.5px; margin: 10px 0 8px; }
.beta-grid p { font-size: 13.5px; color: var(--muted); }

/* ---------- 页脚 ---------- */
footer { border-top: 1px solid var(--line); padding: 44px 0 30px; margin-top: 40px; background: rgba(255,255,255,.015); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.footer-top .brand { max-width: 420px; }
.footer-top .brand p { color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.footer-contact { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; color: var(--muted); text-align: right; }
.footer-contact a { color: var(--muted); }
.footer-contact a:hover { color: var(--text); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-nav a { color: var(--muted); font-size: 13px; }
.footer-nav a:hover { color: var(--text); }
.copyright { text-align: center; color: var(--muted); font-size: 12px; margin-top: 36px; opacity: .7; }

/* ---------- 页脚：手机端重排 ----------
   桌面靠 flex-wrap 自动折行，但每条链接字数不同，手机上折出来的列数完全随机：
   320→3 列 / 360→4 列 / 390→4 列 / 430→5 列，430 那档末行只剩孤零零两条，
   看着就是"参差不齐"。而且各页 footer 链接数从 5 到 15 不等，
   所以不能写死列数，改成按最小宽度自适应的等宽网格：
   格子宽度一致、文字居中，折到第几行都不会有锯齿。
   底部额外留 78px 空白，让右下角 fixed 的「回到顶部」按钮落在空白里，
   不再压住最后那行版权。 */
@media (max-width: 700px) {
  footer {
    padding: 34px 0 calc(78px + env(safe-area-inset-bottom, 0px));
    margin-top: 28px;
  }
  .footer-top { flex-direction: column; gap: 16px; }
  .footer-top .brand { max-width: none; }
  .footer-top .brand p { font-size: 12px; line-height: 1.65; margin-top: 8px; }
  .footer-contact { gap: 6px; font-size: 12px; }

  .footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 6px;
    margin-top: 20px;
    padding-top: 18px;
    text-align: center;
  }
  /* 每行固定三格等宽（gap 两个共 12px），末行不满时由 justify-content 居中，
     所以 5 条链接的页面是 3+2、10 条的是 3+3+3+1，都不会有一个吊在最左边 */
  .footer-nav a {
    flex: 0 0 calc((100% - 12px) / 3);
    box-sizing: border-box;
    font-size: 12px;
    line-height: 1.4;
    padding: 7px 2px;
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background .2s, color .2s;
  }
  .footer-nav a:active { background: rgba(255,255,255,.05); color: var(--text); }

  .copyright { font-size: 11.5px; line-height: 1.75; margin-top: 22px; padding: 0 4px; }
}

@media (max-width: 360px) {
  .footer-nav a { font-size: 11.5px; }
}
.copyright b { color: var(--accent); font-family: var(--font-serif); }

/* ---------- 滚动动效 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* 回到顶部 */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--card-2); border: 1px solid var(--line);
  color: var(--accent); font-size: 19px;
  display: none; place-items: center;
  transition: .3s;
}
.to-top.show { display: grid; }
.to-top:hover { border-color: var(--accent); transform: translateY(-3px); }

/* Toast 提示 */
.toast {
  position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); z-index: 300;
  transform: translateX(-50%) translateY(160px);
  max-width: min(92vw, 520px); text-align: center;
  background: var(--card-2); color: var(--text);
  border: 1px solid rgba(var(--accent-rgb),.45);
  padding: 11px 22px; border-radius: 999px;
  font-size: 13.5px; box-shadow: var(--shadow);
  transition: transform .35s;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }
@media (max-width: 600px) {
  /* 抬到移动端浏览器底部工具栏之上，避免被挡住一半 */
  .toast { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

/* ============================================================
   画廊 · 全屏逐张浏览页(gallery.html)
   ============================================================ */
html.g-full { scroll-snap-type: y mandatory; }
.gslide {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; position: relative;
  padding: 110px 5% 70px;
  scroll-snap-align: start;
}
.gslide .gs-idx {
  position: absolute; top: 90px; left: 50%; transform: translateX(-50%);
  font-size: 12px; letter-spacing: 4px; color: var(--muted);
}
.gslide .gs-img {
  width: min(1060px, 92%);
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.gslide .gs-img img { width: 100%; max-height: 58vh; object-fit: cover; display: block; }
.gslide .gs-info { width: min(760px, 94%); margin-top: 30px; }
.gslide .gs-sub {
  font-size: 12.5px; letter-spacing: 3px;
  color: var(--accent); font-weight: 600; text-transform: uppercase;
}
.gslide .gs-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px); font-weight: 800;
  margin: 10px 0 8px;
}
.gslide .gs-desc { font-size: 15px; color: var(--text); opacity: .85; }
.gslide .gs-story { font-size: 14px; color: var(--muted); line-height: 2; margin-top: 14px; }
.gslide .gs-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: var(--muted); letter-spacing: 2px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.gslide .gs-hint .arrow { animation: bounceY 1.8s ease-in-out infinite; color: var(--accent); font-size: 16px; }
/* 画廊结尾卡 */
.gslide.gs-end { gap: 6px; }
.gslide.gs-end .gs-end-ico { font-size: 64px; }
.gslide.gs-end h2 { font-family: var(--font-serif); font-size: clamp(26px, 4vw, 38px); margin: 14px 0 4px; }
.gslide.gs-end > p { color: var(--muted); font-size: 14.5px; max-width: 560px; }
.gslide.gs-end .gs-end-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; justify-content: center; }
/* 画廊右侧进度点 */
.g-dots {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%);
  z-index: 60; display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.g-dots a {
  width: 8px; height: 8px; border-radius: 99px; padding: 0;
  background: rgba(255,255,255,.22); transition: .3s;
}
.g-dots a.on { height: 24px; background: var(--accent); }
@media (max-width: 640px) {
  html.g-full { scroll-snap-type: y proximity; }
  .gslide { padding: 96px 6% 56px; }
  .gslide .gs-idx { top: 80px; }
  .gslide .gs-img img { max-height: 42vh; }
  .gslide .gs-info { margin-top: 22px; }
  .gslide .gs-story { font-size: 13px; }
  .g-dots { display: none; }
}

/* ============================================================
   在线阅读器(read.html)
   ============================================================ */
.r-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 110; }
.r-progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .4s ease;
}
.reader-shell {
  display: grid; grid-template-columns: 250px minmax(0, 1fr);
  gap: 46px; width: min(1160px, 94%); margin: 0 auto;
  padding: 104px 0 70px; align-items: start;
}
.reader-side {
  position: sticky; top: 88px;
  max-height: calc(100vh - 110px); overflow-y: auto;
  padding-right: 6px; scrollbar-width: thin;
}
.reader-side h5 { font-size: 13px; color: var(--accent); margin-bottom: 10px; letter-spacing: 1px; }
.reader-side a {
  display: block; padding: 7px 12px; border-radius: 8px;
  font-size: 13px; color: var(--muted); line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: .2s;
}
.reader-side a:hover { color: var(--text); background: rgba(255,255,255,.05); opacity: 1; }
.reader-side a.cur { color: var(--accent); background: rgba(var(--accent-rgb),.14); font-weight: 600; }
.reader-main { min-width: 0; }
.r-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.r-book { font-size: 12.5px; color: var(--muted); }
.r-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.4vw, 34px); font-weight: 800;
  margin-bottom: 6px; line-height: 1.4;
}
.r-meta { font-size: 12.5px; color: var(--accent); margin-bottom: 30px; letter-spacing: 1px; }
.r-paras { font-family: var(--font-serif); font-size: 16.5px; line-height: 2.15; }
.r-paras p { margin-bottom: 1.15em; text-indent: 2em; color: #ccd4e3; }
.r-note {
  font-size: 13px; color: var(--teal);
  background: rgba(124,199,191,.07);
  border: 1px dashed rgba(124,199,191,.3); border-radius: 10px;
  padding: 10px 16px; margin: 10px 0 1.4em; text-indent: 0;
}
.r-nav {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--line);
}
.r-menu-btn {
  display: none; align-items: center; gap: 6px;
  background: rgba(var(--accent-rgb),.12); border: 1px solid rgba(var(--accent-rgb),.4);
  color: var(--accent); border-radius: 999px; padding: 7px 16px; font-size: 13px;
}
@media (max-width: 900px) {
  .reader-shell { grid-template-columns: 1fr; padding-top: 92px; gap: 0; }
  .reader-side {
    position: fixed; inset: 0; top: 64px; z-index: 80;
    background: rgba(3,5,10,.98); backdrop-filter: blur(10px);
    max-height: none; padding: 26px 6%; display: none;
  }
  .reader-side.open { display: block; }
  .r-menu-btn { display: inline-flex; }
  .r-paras { font-size: 15.5px; }
}

/* 书卡「立即阅读」徽标 */
.book .book-open {
  display: inline-block; margin-top: 12px;
  font-size: 12.5px; color: var(--accent); font-weight: 600;
  transition: .25s;
}
.book:hover .book-open { letter-spacing: 1.5px; }

/* ============================================================
   技术页 · 全屏逐张(tech.html)
   ============================================================ */
.tslide .ts-ico {
  font-size: clamp(90px, 15vw, 150px); line-height: 1.15;
  filter: drop-shadow(0 20px 50px rgba(var(--accent-rgb),.45));
}
.tslide .ts-img {
  width: min(980px, 90%);
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.tslide .ts-img img { width: 100%; max-height: 50vh; object-fit: cover; display: block; }
.tslide .ts-ico + .gs-info { margin-top: 18px; }
.tslide .rhythm-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
@media (max-width: 700px) {
  .tslide .rhythm-row { grid-template-columns: repeat(2, 1fr); }
  .tslide .ts-img img { max-height: 38vh; }
}

/* ============ 登录 / 注册 · 图书馆海报风 ============ */
.auth-area { margin-left: 16px; display: inline-flex; align-items: center; gap: 10px; }
/* 登录/头像这两个入口绝不参与压缩：窄屏下「登录」曾被挤成 23px 宽、两个字竖着堆。 */
.nav-login { color: var(--accent); text-decoration: none; font-size: 14px; white-space: nowrap; flex: none; }
.nav-login:hover { text-decoration: underline; }
.nav-user { color: #9aa4b2; font-size: 13px; }

/* 登录/注册页：禁用双指缩放、双击放大与左右滑动手势 */
.login-page { overscroll-behavior-x: none; touch-action: pan-y; }
/* 海报层钉在视口上：页面一旦比一屏长（注册表单、小屏机），往下滚也不会把壁纸滚走、
   露出下面的纯黑底色。选择器要压过下面的 `.login-poster .lp-bg`（同为两段），所以写成三段。 */
.login-page .login-poster .lp-bg { position: fixed; }
/* 登录页：锁成一屏，手指上下滑不动（壁纸是有限长的一张图，滑出去就是黑底） */
body.auth-lock { height: 100dvh; overflow: hidden; }
/* 锁的只是「整页跟着手指滚动」。横屏/极窄机上内容确实比一屏高，
   这一层自己还能滚（壁纸是 fixed 的，滚起来不会露黑底）；
   safe center 保证溢出时从顶部开始排，不会被 flex 垂直居中切掉开头。 */
body.auth-lock .login-poster {
  height: 100dvh; min-height: 0;
  align-items: safe center;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.login-poster {
  position: relative;
  isolation: isolate; /* 自成层叠上下文:海报层(z-index:-2)画在本容器背景之上、body背景之上,避免被body实色背景盖住 */
  min-height: 100vh;
  min-height: 100dvh; /* 占满整屏,海报从顶到底贯穿,消除底部黑边 */
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 96px 6% 56px; box-sizing: border-box;
}
/* 登录页桌面端导航保持默认实色样式;透明渐变仅手机竖屏生效(见下方竖屏媒体查询) */
.login-poster .lp-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transition: opacity .7s ease, transform 9s ease;
}
.lp-bg-login { background-image: url(../img/lib_all.webp?v=3); opacity: 1; }
.lp-bg-register { background-image: url(../img/lib_sea.webp?v=3); opacity: 0; }
.login-poster.is-register .lp-bg-login { opacity: 0; }
.login-poster.is-register .lp-bg-register { opacity: 1; }
.login-poster::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,7,12,.6) 0%, rgba(5,7,12,.45) 50%, rgba(5,7,12,.85) 100%),
    radial-gradient(62% 52% at 50% 47%, rgba(5,7,12,.46), rgba(5,7,12,0) 78%);
}
.lp-inner {
  position: relative; z-index: 1; width: 100%; max-width: 440px;
  text-align: center; padding: 6px 0;
}
@keyframes lpSwap {
  0% { opacity: 0; transform: translateY(18px); filter: blur(5px); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
.lp-inner.is-swap { animation: lpSwap .52s cubic-bezier(.22,1,.36,1) both; }
.lp-kicker { font-size: 13px; letter-spacing: 4px; color: var(--accent); font-weight: 600; margin-bottom: 14px; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.lp-title {
  font-family: var(--font-serif); font-weight: 800; color: #fff;
  font-size: clamp(34px, 6vw, 52px); line-height: 1.15; margin: 0 0 10px;
  text-shadow: 0 2px 20px rgba(0,0,0,.85), 0 1px 4px rgba(0,0,0,.9);
}
.lp-hint { color: rgba(237,241,248,.92); font-size: 15px; margin: 0 0 28px;
  text-shadow: 0 2px 12px rgba(0,0,0,.8); }

.lp-form { text-align: left; }
.fld { display: block; margin-bottom: 14px; }
.fld > span { display: block; font-size: 13px; margin-bottom: 6px; color: rgba(237,241,248,.95); text-shadow: 0 1px 6px rgba(0,0,0,.75); }
.fld-box { position: relative; display: block; }
.fld-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 15px; opacity: .85; pointer-events: none; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.fld input { width: 100%; padding: 13px 14px 13px 40px;
  background: rgba(8,11,18,.55);
  border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: #f2f5fb;
  font-size: 15px; font-family: inherit; box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 2px 12px rgba(0,0,0,.35);
  transition: border-color .25s, box-shadow .25s, background .25s, transform .15s; }
.fld input::placeholder { color: rgba(200,208,220,.55); }
.fld input:hover { border-color: rgba(255,255,255,.32); }
.fld input:focus { outline: none; border-color: var(--accent); background: rgba(8,11,18,.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 4px rgba(var(--accent-rgb),.22), 0 4px 18px rgba(0,0,0,.5);
  transform: translateY(-1px); }
.fld-check { display: flex; align-items: center; gap: 9px; margin: 2px 0 14px; font-size: 12.5px; color: rgba(237,241,248,.85); text-shadow: 0 1px 5px rgba(0,0,0,.6); cursor: pointer; }
.fld-check input { width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.fld-reg { display: none; }
.login-poster.is-register .fld.fld-reg { display: block; }
.login-poster.is-register .fld-check.fld-reg { display: flex; }
.auth-msg { font-size: 13px; margin: 4px 0 12px; min-height: 16px; text-align: left; line-height: 1.7; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.auth-msg.err { color: #ff9a9a; }
.auth-msg.ok { color: #8ee6ad; }
.lp-form .btn-primary { width: 100%; margin-top: 4px; padding: 13px 22px; font-size: 16px; }
.auth-switch, .auth-note { text-align: center; font-size: 13px; color: rgba(237,241,248,.82); margin-top: 16px; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.auth-switch a, .auth-note a { color: var(--accent-lit); text-shadow: none; }
.agree-text { display: inline; }
.agree-docs { font-size: 11.5px; color: rgba(237,241,248,.6); text-align: left; margin: 2px 0 18px; text-shadow: 0 1px 5px rgba(0,0,0,.6); line-height: 1.8; }
.agree-docs a { color: var(--accent-lit); text-decoration: none; }
.agree-docs a:hover { text-decoration: underline; }
.link-blue { color: var(--accent-lit); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link-blue:hover { color: #8ecbff; }

@media (max-width: 640px) {
  .login-poster { padding: 92px 5% 44px; }
  .lp-title { font-size: 32px; }

  /* 注册页：六项表单 + 协议 + 按钮，比一屏高出一截，不改就必然要上下滑。
     这里整体收一档（标题、字段间距、输入框内边距、提示行），排到一屏里。 */
  body.auth-reg .login-poster { padding: 76px 5% 20px; }
  body.auth-reg .lp-kicker { font-size: 11px; letter-spacing: 3px; margin-bottom: 8px; }
  body.auth-reg .lp-title { font-size: 26px; margin-bottom: 14px; }
  body.auth-reg .fld { margin-bottom: 9px; }
  body.auth-reg .fld > span { font-size: 12px; margin-bottom: 4px; }
  body.auth-reg .fld input { padding: 10px 12px 10px 36px; font-size: 14px; }
  body.auth-reg .fld-ico { left: 12px; font-size: 13px; }
  body.auth-reg .fld-tip { margin: -2px 0 9px; font-size: 11.5px; line-height: 1.55; }
  body.auth-reg .fld-check { font-size: 11.5px; gap: 7px; margin: 0 0 8px; line-height: 1.5; }
  body.auth-reg .auth-msg { min-height: 0; margin: 0 0 6px; }
  body.auth-reg .lp-form .btn-primary { padding: 11px 18px; font-size: 15px; }
  body.auth-reg .auth-switch-reg { margin-top: 12px; font-size: 12.5px; }
}

/* 矮屏手机（SE 那类 667 高）：上面那套仍会溢出几十像素，再收一档。
   实在装不下时允许滚动，但海报层是 fixed 的，滚起来不会露黑底。 */
@media (max-width: 640px) and (max-height: 700px) {
  body.auth-reg .login-poster { padding: 66px 5% 14px; }
  body.auth-reg .lp-kicker { display: none; }
  body.auth-reg .lp-title { font-size: 22px; margin-bottom: 10px; }
  body.auth-reg .fld { margin-bottom: 7px; }
  body.auth-reg .fld input { padding: 8px 12px 8px 34px; font-size: 13.5px; }
  body.auth-reg .fld-tip { font-size: 11px; margin-bottom: 6px; }
  body.auth-reg .fld-check { font-size: 11px; margin-bottom: 6px; }
  body.auth-reg .lp-form .btn-primary { padding: 9px 16px; font-size: 14px; }
  body.auth-reg .auth-switch-reg { margin-top: 8px; }
}

/* ===== 手机竖屏专属：透明导航 + 9:16 竖版海报（桌面端与横屏完全不受影响） ===== */
@media (max-width: 768px) and (orientation: portrait) {
  /* 竖屏导航改透明渐变，海报从顶到底贯穿全屏 */
  .login-page .nav {
    background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.18) 55%, rgba(0,0,0,0) 100%);
    border-bottom-color: transparent;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  /* 竖屏专属竖版海报；桌面端仍用横图 lib_all / lib_sea */
  .lp-bg-login { background-image: url(../img/lib_all_portrait.webp?v=1); background-position: center; }
  .lp-bg-register { background-image: url(../img/lib_sea_portrait.webp?v=1); background-position: center; }
  .login-poster::after {
    background:
      linear-gradient(180deg, rgba(5,7,12,.45) 0%, rgba(5,7,12,.30) 45%, rgba(5,7,12,.80) 100%),
      radial-gradient(75% 60% at 50% 45%, rgba(5,7,12,.32), rgba(5,7,12,0) 80%);
  }
}

/* ============ 留言板 ============ */
.msg-section { padding: 50px 0 70px; }
.msg-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.msg-head h3 { margin: 0; font-size: 22px; }
.msg-count { color: #9aa4b2; font-size: 13px; }
.msg-list { display: flex; flex-direction: column; gap: 12px; }
.msg-item { position: relative; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09); border-radius: 12px; padding: 14px 16px; }
.msg-meta { display: flex; justify-content: space-between; font-size: 12px;
  color: #9aa4b2; margin-bottom: 6px; }
.msg-meta b { color: #e9edf5; }
/* 留言板：编号徽章紧跟作者名，不被 space-between 甩到中间 */
.msg-meta > .vn-badge { margin-left: 6px; margin-right: auto; }
.msg-body { margin: 0; line-height: 1.7; white-space: pre-wrap; font-size: 15px; }
.msg-del { position: absolute; top: 12px; right: 14px; font-size: 11px;
  color: #9aa4b2; background: none; border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px; padding: 2px 8px; cursor: pointer; }
.msg-del:hover { color: #ff6b6b; border-color: #ff6b6b; }
.msg-empty { color: #9aa4b2; }
.msg-compose { margin-top: 20px; transition: opacity .3s; }
.msg-compose textarea { width: 100%; box-sizing: border-box; padding: 12px 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px; color: #e9edf5; font-family: inherit; font-size: 15px; resize: vertical; }
.msg-compose textarea:focus { outline: none; border-color: var(--accent); }
.msg-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.msg-tip { font-size: 12px; color: #9aa4b2; }

@media (max-width: 640px) {
  .auth-area { margin-left: 0; }
  .msg-head h3 { font-size: 19px; }
}

/* ============================================================
   V 版 Win95 官网 · 点击进入过渡 + 彩虹火焰边框
   彩虹渐变与首页 .grad(羊窝 Studio)完全一致:
   #4f9cff → #9a5cff → #ff5f9e → #ffb64f → #45e8c0 → #4f9cff
   复用 shimmer(流光位移) + hueSpin(色相旋转) 两套关键帧
   ============================================================ */

/* 与 .grad 同款的彩虹文字(用于「正在进入…」) */
.rainbow-text {
  background: linear-gradient(110deg, #4f9cff, #9a5cff, #ff5f9e, #ffb64f, #45e8c0, #4f9cff);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 9s linear infinite, hueSpin 8s linear infinite;
}

/* 海报被点击后的「正在进入…」过渡态 */
/* 点击 V 版海报后:原海报淡出,原位过渡出一张「我们的作品」同风格的「正在进入…」海报 */
.poster.is-entering { cursor: progress; }
.poster.is-entering .p-body {
  opacity: 0; transform: scale(.94);
  transition: opacity .55s ease, transform .55s ease;
}
/* 与「我们的作品」海报同风格(暖调手绘插画 + 同款暗色径向遮罩),但用专属新图 v95_enter(1995 卧室 CRT),不与作品海报同图 */
.poster-entering {
  position: absolute; inset: 0; z-index: 7;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; border-radius: inherit; overflow: hidden;
  background:
    radial-gradient(ellipse at center 68%, rgba(5,7,12,.28), rgba(5,7,12,.82) 90%),
    url(../img/v95_enter.webp) center / cover no-repeat;
  opacity: 0; transform: scale(1.05);
  animation: v95PosterIn .6s cubic-bezier(.2,.7,.2,1) forwards;
}
/* 外圈保留彩虹环(过渡标志,与首页 Studio 同款六色),与背景图叠加不冲突 */
.poster-entering::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 3px;
  background: linear-gradient(110deg, #4f9cff, #9a5cff, #ff5f9e, #ffb64f, #45e8c0, #4f9cff);
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: shimmer 4s linear infinite, hueSpin 6s linear infinite;
}
/* kicker 沿用海报 p-kicker 样式(小字、大间距、主题色) */
.poster-entering .et-kicker {
  position: relative; z-index: 1;
  font-size: 13px; letter-spacing: 4px; color: var(--accent); font-weight: 600;
}
/* 标题沿用海报 p-title 样式(白字 + 阴影),文案为「正在进入…」 */
.poster-entering .et-title {
  position: relative; z-index: 1;
  font-weight: 800; margin: 0;
  font-size: clamp(34px, 5.5vw, 56px);
  color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.6);
}
.poster-entering .et-spin {
  position: relative; z-index: 1;
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.16); border-top-color: #7fb0ff;
  animation: v95Spin .9s linear infinite;
}
@keyframes v95PosterIn { to { opacity: 1; transform: scale(1); } }
@keyframes v95Spin { to { transform: rotate(360deg); } }

/* 全屏四边框彩虹光效(匹配首页 Studio 彩虹) */
#v95-fx {
  position: fixed; inset: 0; z-index: 9998;
  height: 100vh; height: 100dvh; /* 顶满动态视口,不被地址栏收缩留出黑边 */
  pointer-events: none; opacity: 0;
  transition: opacity .6s ease;
}
#v95-fx.on { opacity: 1; pointer-events: auto; }
/* 极淡全屏彩虹底光:保证屏幕任何区域(含顶部导航背后、浏览器地址栏下方)都不出现纯黑,
   与四边彩虹光框叠加,强化「整屏被彩虹包裹」的观感;透明度很低,不遮挡「正在进入…」 */
#v95-fx.on {
  background:
    radial-gradient(135% 75% at 50% 0%, rgba(79,156,255,.20), transparent 60%),
    radial-gradient(135% 75% at 50% 100%, rgba(69,232,192,.18), transparent 60%);
}
/* 进入动画时把彩虹框外扩到真实屏幕边缘(含状态栏/系统栏背后),
   消除「网页有彩虹、系统栏没彩虹」的割裂感。非安全区设备 env=0 自动回退为原样。 */
@supports (top: env(safe-area-inset-top)) {
  #v95-fx.on {
    top: calc(-1 * env(safe-area-inset-top, 0px));
    left: calc(-1 * env(safe-area-inset-left, 0px));
    right: calc(-1 * env(safe-area-inset-right, 0px));
    bottom: calc(-1 * env(safe-area-inset-bottom, 0px));
    height: auto;
  }
}

/* 彩虹光晕:从屏幕四边向内渐隐、颜色持续流动的彩虹(替代硬光带,手机/电脑一致) */
#v95-fx .v95-frame {
  position: absolute; inset: 0;
  background: conic-gradient(from 0deg,
    #4f9cff, #9a5cff, #ff5f9e, #ffb64f, #45e8c0, #4f9cff);
  background-size: 220% 220%;
  /* 中心透明、边缘浓的径向遮罩 → 彩虹只在屏幕边缘出现,并向内渐隐 */
  -webkit-mask: radial-gradient(ellipse 82% 82% at 50% 50%, transparent 54%, #000 90%);
          mask: radial-gradient(ellipse 82% 82% at 50% 50%, transparent 54%, #000 90%);
  filter: blur(7px) saturate(1.45);
  box-shadow: inset 0 0 120px rgba(120,160,255,.22), inset 0 0 60px rgba(255,120,200,.16);
  animation: v95HueSpin 6s linear infinite, v95Breathe 2.4s ease-in-out infinite;
  will-change: filter, opacity;
}
@keyframes v95HueSpin { to { filter: blur(7px) saturate(1.45) hue-rotate(360deg); } }
@keyframes v95Breathe {
  0%, 100% { opacity: .72; }
  50%      { opacity: 1; }
}
/* 手机端顶/底边缘加强带:长屏下径向遮罩在顶/底中心几乎全透明,
   状态栏/主页条背后会看不到彩虹 → 补两条同款流动彩虹的上下渐隐亮带,
   让彩虹真正铺到屏幕最边缘。仅手机生效(窄屏或矮横屏),平板/桌面外观不变。 */
@media (max-width: 640px), (max-height: 500px) {
  #v95-fx .v95-frame::before,
  #v95-fx .v95-frame::after {
    content: ""; position: absolute; left: 0; right: 0; height: 210px;
    background: linear-gradient(90deg, #4f9cff, #9a5cff, #ff5f9e, #ffb64f, #45e8c0, #4f9cff);
    background-size: 220% 100%;
    filter: blur(16px) saturate(1.45);
    pointer-events: none;
  }
  #v95-fx .v95-frame::before {
    top: 0;
    -webkit-mask: linear-gradient(to bottom, #000 38%, transparent);
            mask: linear-gradient(to bottom, #000 38%, transparent);
  }
  #v95-fx .v95-frame::after {
    bottom: 0;
    -webkit-mask: linear-gradient(to top, #000 38%, transparent);
            mask: linear-gradient(to top, #000 38%, transparent);
  }
}

/* 底部火焰:自底边向内(向上)流动,丝滑流畅 */
#v95-fx .v95-flame {
  position: absolute; left: 0; right: 0; bottom: 0; height: 68vh;
  background: linear-gradient(to top,
     rgba(120,170,255,.42), rgba(154,92,255,.24) 30%,
     rgba(255,95,158,.15) 56%, transparent 82%);
  filter: blur(11px);
  mix-blend-mode: screen;
  transform-origin: bottom center;
  animation: v95Flame 2.4s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes v95Flame {
  0%   { transform: translateY(20%) scaleY(.9);  opacity: .35; }
  50%  { transform: translateY(-5%) scaleY(1.08); opacity: .92; }
  100% { transform: translateY(20%) scaleY(.9);  opacity: .35; }
}
/* 屏幕中央「正在进入…」(用于页脚等非海报入口) */
#v95-fx .v95-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 2; display: none;
  font-size: clamp(30px, 5vw, 52px); letter-spacing: 5px;
}
#v95-fx.on.center-text .v95-center { display: block; }

/* ================= 首页:关于羊窝 · 封面海报 ================= */
#about-poster { padding: 14px 0; }
.poster-card {
  position: relative; display: block;
  border-radius: 22px; overflow: hidden;
  min-height: 480px;
  background: url(../img/v95_new.webp) center/cover no-repeat #0b1020;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.poster-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,7,12,.34), rgba(5,7,12,.12) 45%, rgba(5,7,12,.62));
  pointer-events: none;
}
.poster-win {
  position: relative; z-index: 2;
  width: min(560px, 88%);
  margin: 96px auto;
  background: #0e1422;
  border: 2px solid #c3c7cf; border-radius: 2px;
  box-shadow: 0 0 0 1px #2b2f3a, 0 26px 70px rgba(0,0,0,.6);
}
.poster-bar {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(90deg, #1c4fb0, #3a7bd5);
  color: #fff; padding: 7px 10px; font-size: 13px; font-weight: 700;
}
.poster-bar .tt { flex: 1; letter-spacing: .5px; }
.poster-bar .btns { display: flex; gap: 5px; }
.poster-bar .btns span {
  width: 18px; height: 16px; display: grid; place-items: center;
  background: #c3c7cf; color: #1c1c1c; font-size: 11px; font-weight: 700;
  border: 1px solid #fff; border-right-color: #5a5e66; border-bottom-color: #5a5e66;
}
.poster-body { padding: 30px 28px 32px; text-align: center; }
.poster-body h1 {
  font-family: var(--font-serif); font-weight: 800;
  font-size: clamp(32px, 6vw, 54px); line-height: 1.05; margin: 0 0 14px; color: #fff;
}
.poster-body .lead {
  color: rgba(233,237,245,.9); font-size: clamp(14px, 2.4vw, 16px);
  line-height: 1.9; margin: 0 auto 22px; max-width: 440px;
}
.poster-btn {
  display: inline-block; padding: 11px 28px; border-radius: 30px;
  font-weight: 700; font-size: 15px; color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px rgba(var(--accent-rgb),.35);
  transition: .3s;
}
.poster-card:hover .poster-btn { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(var(--accent-rgb),.5); }
@media (max-width: 640px) {
  .poster-card { min-height: 430px; }
  .poster-win { width: 90%; margin: 76px auto; }
  .poster-body { padding: 24px 20px 26px; }
}

/* ============================================================
   头像化右上角登录态
   ============================================================ */
.nav-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 19px; line-height: 1; text-decoration: none;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.nav-avatar:hover { transform: translateY(-1px) scale(1.04); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.18); }

/* ============================================================
   首页 · 羊窝商城（海报入口 + 精选）
   ============================================================ */
/* 海报下面原来空出 88(上)+88(下)+28(卡距) ≈ 204px，收紧成「一句话的距离」 */
/* 商城栏不再是一块纯黑：垫一层随主题色走的朦胧光晕 + 极淡网格，
   让大图海报「浮」在氛围里，而不是贴在纯黑屏幕上。 */
#mall { position: relative; isolation: isolate; padding-bottom: 10px; }
#mall::before {
  content: ""; position: absolute; inset: -80px -2% -20px; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(48% 60% at 14% 34%, rgba(var(--accent-rgb), .22), transparent 72%),
    radial-gradient(46% 56% at 88% 72%, rgba(var(--accent-2-rgb), .18), transparent 74%),
    url(../img/mall_hero.webp);
  background-size: auto, auto, cover;
  background-position: 0 0, 0 0, center 44%;
  background-repeat: no-repeat;
  filter: blur(44px) saturate(1.12);
  opacity: .5;
  transform: scale(1.04);
  transform-origin: center;
  /* 上下淡出，否则模糊层会有可见的横向硬边 */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 78%, transparent 100%);
}
#mall::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(62% 60% at 50% 44%, #000 4%, transparent 76%);
  mask-image: radial-gradient(62% 60% at 50% 44%, #000 4%, transparent 76%);
  opacity: .55;
}
#mall > .wrap { position: relative; z-index: 1; }

/* 商城入口（2026-11-21 重做）：整幅大海报。
   底图是一张全幅插画（书架 + 台灯 + 羊玩偶 + 雪夜窗），左边天然留暗，
   所以标题直接压在左下角，卡面上不再有任何标签/简介/按钮文字 —— 一句话就够。
   整卡可点，右下角一个圆形箭头做视觉落点（纯图标，不是字）。 */
.mall-poster {
  position: relative; display: block; isolation: isolate;
  aspect-ratio: 2.17 / 1; min-height: 360px;
  border-radius: 26px; overflow: hidden; padding: 0; margin-bottom: 0;
  text-decoration: none; border: 1px solid rgba(255, 255, 255, .1);
  background: #06090f;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .62);
  transition: border-color .4s, box-shadow .4s;
}
.mall-poster:hover {
  border-color: rgba(var(--accent-rgb), .5);
  box-shadow: 0 30px 84px rgba(0, 0, 0, .7), 0 0 0 1px rgba(var(--accent-rgb), .22);
}
/* 底图：hover 时轻微推镜 */
.mp-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: url(../img/mall_hero.webp);
  background-size: cover; background-position: center 44%;
  transition: transform 1.6s cubic-bezier(.22,1,.36,1);
}
.mall-poster:hover .mp-bg { transform: scale(1.035); }
/* 压暗层：左深右透（保白字可读 + 不埋掉插画），另叠一层跟随主题色的光晕，
   用户换主色时这张卡也跟着变，不是死蓝。 */
.mp-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(75% 120% at -12% -14%, rgba(var(--accent-rgb), .26), transparent 68%),
    linear-gradient(96deg, rgba(4,7,12,.93) 0%, rgba(4,7,12,.72) 26%, rgba(4,7,12,.32) 50%,
                    rgba(4,7,12,.06) 70%, rgba(4,7,12,0) 86%),
    linear-gradient(0deg, rgba(3,5,9,.88) 0%, rgba(3,5,9,0) 48%);
}
.mall-p-title {
  position: absolute; left: clamp(26px, 5%, 58px); bottom: clamp(34px, 7.6%, 74px);
  margin: 0; max-width: 72%;
  font-family: var(--font-serif); font-weight: 800; color: #fff;
  font-size: clamp(30px, 4.4vw, 58px); line-height: 1.14; letter-spacing: .02em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .72);
}
/* 标题左侧一道主色竖线 —— 成本最低、但立刻不像“默认卡片”的关键细节 */
.mall-p-title::before {
  content: ""; position: absolute; left: -20px; top: .16em; bottom: .16em; width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(var(--accent-rgb), .75);
}
/* 右下角圆形箭头（玻璃态，hover 变主色渐变） */
.mp-go {
  position: absolute; right: clamp(20px, 3.4%, 38px); bottom: clamp(20px, 3.4%, 38px);
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .38);
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  transition: .35s cubic-bezier(.22,1,.36,1);
}
.mall-poster:hover .mp-go {
  transform: translateX(4px);
  color: var(--on-accent); border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 32px rgba(var(--accent-rgb), .55);
}
/* 手机：竖一点的取景比例，底图往右推让羊和窗留在画面里；
   渐变从底部往上压，标题沉在左下角。 */
@media (max-width: 860px) {
  .mall-poster { aspect-ratio: 4 / 3.2; min-height: 0; border-radius: 22px; }
  .mp-bg { background-position: 84% center; }
  .mp-veil {
    background:
      radial-gradient(120% 80% at 0% 100%, rgba(var(--accent-rgb), .22), transparent 62%),
      linear-gradient(0deg, rgba(3,5,9,.95) 2%, rgba(3,5,9,.78) 30%, rgba(3,5,9,.22) 62%,
                      rgba(3,5,9,.04) 100%);
  }
  .mall-p-title { left: 22px; bottom: 27px; font-size: 28px; max-width: 78%; }
  .mall-p-title::before { left: -13px; width: 2px; }
  .mp-go { width: 44px; height: 44px; right: 16px; bottom: 22px; }
}
.mall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.mall-card {
  border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); transition: .3s;
}
.mall-card:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb),.45); box-shadow: var(--shadow); }
.mall-card .mc-img { aspect-ratio: 16/10; background-size: cover; background-position: center; transition: transform .6s; }
.mall-card:hover .mc-img { transform: scale(1.05); }
.mall-card .mc-body { padding: 14px 16px; }
.mall-card .mc-body b { display: block; font-size: 15px; font-family: var(--font-serif); }
.mall-card .mc-body span { font-size: 12.5px; color: var(--muted); }

/* ============================================================
   首页 · 羊窝频道（留言板，头像 + 名称）
   ============================================================ */
.channel-card {
  background: rgba(10,14,22,.72); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: 0 12px 40px rgba(0,0,0,.4);
}

/* 首页羊窝频道 · 双条轮播 */
.msg-chan { display: flex; flex-direction: column; gap: 12px; min-height: 104px; }
.msg-chan-item { animation: chanIn .6s cubic-bezier(.22,.61,.36,1) both; }
@keyframes chanIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* 羊窝艺术馆 · 作品网格 + 上传框 */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.art-card { margin: 0; border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.art-img { width: 100%; aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.art-card figcaption { padding: 12px 14px; }
.art-card figcaption b { display: block; font-size: 15px; font-family: var(--font-serif); }
.art-card figcaption span { font-size: 12.5px; color: var(--muted); }
.lib-upload { padding: 6px 0 64px; }
.upload-box { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 22px 24px; }
.art-upload-prompt { color: var(--muted); font-size: 14.5px; }
.art-upload-prompt a { color: var(--accent); }

/* ============================================================
   个人主页 · 积分面板
   ============================================================ */
.acct-points .points-tip { color: rgba(237,241,248,.7); font-size: 13px; margin: -8px 0 16px; }
.points-tasks { display: flex; flex-direction: column; gap: 10px; }
.ptask {
  display: grid; grid-template-columns: 30px 1fr auto auto; align-items: center; gap: 12px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 11px 14px; transition: .25s;
}
.ptask .pt-ico { font-size: 18px; }
.ptask .pt-name { font-size: 14px; color: rgba(237,241,248,.92); }
.ptask .pt-reward { font-size: 13px; font-weight: 700; color: #ffce8f; }
.ptask .pt-state { font-size: 12px; color: var(--muted); min-width: 52px; text-align: right; }
.ptask.done { border-color: rgba(123,201,139,.4); background: rgba(123,201,139,.1); }
.ptask.done .pt-state { color: var(--green); }
.ptask.done .pt-reward { color: var(--green); }
.acct-shop-link {
  display: inline-block; margin-top: 16px; color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none;
}
.acct-shop-link:hover { text-decoration: underline; }

/* 主背景选择器（编辑弹窗内） */
.bg-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.bg-sw {
  position: relative; aspect-ratio: 16/10; border-radius: 10px; cursor: pointer;
  background-size: cover; background-position: center; border: 2px solid transparent;
  transition: .18s; padding: 0; overflow: hidden;
}
.bg-sw:hover { transform: translateY(-2px); }
.bg-sw.owned { border-color: rgba(255,255,255,.5); }
.bg-sw.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.bg-sw .bg-lock {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 10px; line-height: 1.4; padding: 2px 4px; text-align: center;
  background: rgba(0,0,0,.6); color: #fff;
}
.bg-sw.owned .bg-lock { background: rgba(var(--accent-rgb),.7); }

/* ============================================================
   联系我们 · 海报重设计（背景图 + 排版 + 动画）
   ============================================================ */
.join-hero { position: relative; isolation: isolate; overflow: hidden; }
.join-hero .jh-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transition: transform 10s ease;
}
.join-hero:hover .jh-bg { transform: scale(1.05); }
.join-hero .jh-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,7,12,.55) 0%, rgba(5,7,12,.4) 50%, rgba(5,7,12,.82) 100%),
    radial-gradient(70% 60% at 50% 45%, rgba(5,7,12,.25), rgba(5,7,12,0) 80%);
}
.join-hero .jh-body { position: relative; z-index: 2; animation: lpSwap .6s cubic-bezier(.22,1,.36,1) both; }
.join-hero .jh-kicker {
  display: inline-block; font-size: 12.5px; letter-spacing: 4px; color: var(--accent);
  font-weight: 700; text-transform: uppercase; margin-bottom: 12px;
  opacity: 0; animation: riseIn .9s .15s ease forwards;
}
.join-hero h3 { font-family: var(--font-serif); font-size: clamp(24px,3.6vw,34px);
  opacity: 0; animation: riseIn .9s .3s ease forwards; }
.join-hero .qq-big { opacity: 0; animation: riseIn .9s .45s ease forwards; }
.join-hero .desc { opacity: 0; animation: riseIn .9s .6s ease forwards; }
.join-hero .benefit-row { opacity: 0; animation: riseIn .9s .75s ease forwards; }
.join-hero #joinGroupBtn { opacity: 0; animation: riseIn .9s .9s ease forwards; }
.join-hero.copied .jh-bg { opacity: 0; transition: opacity .3s; }
.join-hero.copied .jh-overlay { background: linear-gradient(135deg, rgba(14,77,43,.96), rgba(10,92,51,.96)); }

/* ============================================================
   留言频道：头像 + 名称 + 美化输入框
   ============================================================ */
.msg-item { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; }
.msg-ava {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: linear-gradient(135deg, rgba(var(--accent-rgb),.25), rgba(var(--accent-2-rgb),.25));
  border: 1px solid rgba(255,255,255,.18);
}
.msg-main { min-width: 0; }
.msg-meta { display: flex; justify-content: space-between; font-size: 12px; color: #9aa4b2; margin-bottom: 6px; flex-wrap: wrap; gap: 4px; }
.msg-meta b { color: #e9edf5; }
.msg-body { margin: 0; line-height: 1.7; white-space: pre-wrap; font-size: 15px; }
.msg-del { position: static; font-size: 11px; color: #9aa4b2; background: none; border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px; padding: 2px 8px; cursor: pointer; }
.msg-del:hover { color: #ff6b6b; border-color: #ff6b6b; }
.msg-compose { margin-top: 20px; }
.msg-compose .msg-input {
  width: 100%; box-sizing: border-box; padding: 14px 16px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px; color: #e9edf5; font-family: inherit; font-size: 15px; resize: vertical;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.msg-compose .msg-input::placeholder { color: rgba(200,208,220,.5); }
.msg-compose .msg-input:hover { border-color: rgba(255,255,255,.26); }
.msg-compose .msg-input:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb),.16), 0 4px 18px rgba(0,0,0,.4); }
.msg-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.msg-tip { font-size: 12px; color: #9aa4b2; }
.msg-send { box-shadow: 0 8px 22px rgba(var(--accent-rgb),.3); }
.msg-send:disabled { opacity: .5; box-shadow: none; }


/* ============================================================
   羊窝执法 · 身份进入 / 审核大屏 / 投稿
   ============================================================ */
.id-select { margin: 8px 0 30px; }
.id-select-head h3 { margin: 0 0 6px; font-size: 20px; color: #fff; font-family: var(--font-serif); font-weight: 800; }
.id-select-tip { margin: 0 0 18px; color: rgba(237,241,248,.62); font-size: 14px; line-height: 1.7; }
.id-cards { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .id-cards { grid-template-columns: repeat(2, 1fr); } }
.id-card {
  position: relative; text-align: left; cursor: pointer; color: inherit; font-family: inherit;
  background: rgba(10,14,22,.66); border: 1px solid rgba(255,255,255,.14); border-radius: 16px;
  padding: 20px 18px; display: flex; flex-direction: column; gap: 6px;
  transition: transform .22s, border-color .22s, box-shadow .22s, background .22s;
}
.id-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 14px 40px rgba(0,0,0,.45), 0 0 0 1px var(--accent); }
.id-card.is-visitor { background: linear-gradient(135deg, rgba(var(--accent-lit-rgb),.16), rgba(var(--accent-2-rgb),.12)); }
.id-card.locked { opacity: .55; cursor: not-allowed; }
.id-card.locked:hover { transform: none; border-color: rgba(255,255,255,.14); box-shadow: none; }
.id-icon { font-size: 30px; line-height: 1; }
.id-name { font-size: 17px; font-weight: 700; color: #fff; }
.id-desc { font-size: 12.5px; color: rgba(237,241,248,.62); line-height: 1.55; }
.id-lock { position: absolute; top: 12px; right: 12px; font-size: 11.5px; color: #ffb0b0; background: rgba(255,120,120,.14); border: 1px solid rgba(255,120,120,.3); padding: 2px 8px; border-radius: 8px; }
.id-expand { font-size: 12px; color: var(--accent); margin-top: 2px; }
.visitor-tiers { grid-column: 1 / -1; display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.vt-btn {
  flex: 1; min-width: 150px; text-align: left; cursor: pointer; color: inherit; font-family: inherit;
  background: rgba(255,255,255,.06); border: 1px solid rgba(var(--accent-lit-rgb),.3); border-radius: 12px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; transition: .18s;
}
.vt-btn:hover { background: rgba(var(--accent-lit-rgb),.16); transform: translateY(-2px); }
.vt-btn b { font-size: 14.5px; color: #fff; }
.vt-btn span { font-size: 12px; color: rgba(237,241,248,.6); }

.id-workspace { margin-top: 8px; }
.ws-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.ws-id { display: flex; align-items: center; gap: 10px; }
.ws-icon { font-size: 26px; }
.ws-name { font-size: 18px; font-weight: 800; color: #fff; font-family: var(--font-serif); }
.ws-tag { font-size: 12px; padding: 3px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); color: rgba(237,241,248,.8); }
.ws-tag-visitor { background: rgba(var(--accent-lit-rgb),.14); color: var(--accent-lit); border-color: rgba(var(--accent-lit-rgb),.35); }
.ws-tag-grass { background: rgba(95,224,176,.14); color: #9af0cf; border-color: rgba(95,224,176,.35); }
.ws-tag-aurora { background: rgba(183,148,255,.16); color: #e3d4ff; border-color: rgba(183,148,255,.4); }
.ws-tag-sheep { background: rgba(255,206,107,.16); color: #ffe1a8; border-color: rgba(255,206,107,.45); }
.ws-back { margin-left: auto; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #eaf1ff; font-size: 13px; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-family: inherit; transition: .18s; }
.ws-back:hover { background: rgba(255,255,255,.16); border-color: var(--accent); }
.ws-readonly { background: rgba(var(--accent-lit-rgb),.12); border: 1px solid rgba(var(--accent-lit-rgb),.3); color: var(--accent-lit); font-size: 13.5px; padding: 10px 16px; border-radius: 12px; margin-bottom: 18px; }
.ws-sub { color: rgba(237,241,248,.6); font-size: 13px; margin: 0 0 14px; }

/* 审核大屏 */
.bs-summary { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.bs-pill { font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 999px; border: 1px solid transparent; }
.st-pending { background: rgba(255,206,107,.16); color: #ffe1a8; border-color: rgba(255,206,107,.4); }
.st-approved { background: rgba(95,224,176,.16); color: #9af0cf; border-color: rgba(95,224,176,.4); }
.st-rejected { background: rgba(255,120,120,.16); color: #ffb0b0; border-color: rgba(255,120,120,.4); }
.bs-list { display: grid; gap: 8px; max-height: 380px; overflow-y: auto; }
.bs-item, .ra-item { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 11px 14px; }
.bs-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bs-title { font-size: 14.5px; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-author { font-size: 12px; color: rgba(237,241,248,.55); }
.bs-status { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 8px; flex: none; }
.bs-status.st-pending { background: rgba(255,206,107,.16); color: #ffe1a8; }
.bs-status.st-approved { background: rgba(95,224,176,.16); color: #9af0cf; }
.bs-status.st-rejected { background: rgba(255,120,120,.16); color: #ffb0b0; }
.bs-time { font-size: 11.5px; color: rgba(237,241,248,.4); flex: none; }
.bs-loading, .bs-empty { color: rgba(237,241,248,.55); font-size: 13.5px; padding: 12px 0; text-align: center; }

/* 审核入口开关 */
.switch-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.switch-row > span:first-child { font-size: 15px; font-weight: 700; color: #fff; }
.switch-hint { font-size: 12.5px; color: rgba(237,241,248,.55); }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-track { position: absolute; inset: 0; background: rgba(255,255,255,.16); border-radius: 999px; transition: .22s; cursor: pointer; }
.switch-track::before { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: .22s; }
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track::before { transform: translateX(20px); }
.review-actions { margin-top: 16px; display: grid; gap: 8px; }
.ra-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ra-main b { font-size: 14px; color: #fff; }
.ra-main span { font-size: 12px; color: rgba(237,241,248,.55); }
.ra-btns { display: flex; gap: 8px; flex: none; }
.btn-ok { background: rgba(95,224,176,.18); border: 1px solid rgba(95,224,176,.4); color: #9af0cf; }
.btn-ok:hover { background: rgba(95,224,176,.3); }
.btn-no { background: rgba(255,120,120,.16); border: 1px solid rgba(255,120,120,.38); color: #ffb0b0; }
.btn-no:hover { background: rgba(255,120,120,.28); }

/* 投稿表单 */
.book-form { display: grid; gap: 12px; }
.bf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bf-input, .bf-text {
  width: 100%; box-sizing: border-box; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px; padding: 11px 14px; color: #fff; font-family: inherit; font-size: 14px; line-height: 1.6;
}
.bf-text { resize: vertical; min-height: 140px; }
.bf-input:focus, .bf-text:focus { outline: none; border-color: var(--accent); }
.bf-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bf-meta { font-size: 12px; color: rgba(237,241,248,.5); }
.book-form.is-locked .bf-input, .book-form.is-locked .bf-text, .book-form.is-locked .btn-primary { opacity: .45; pointer-events: none; }
.bf-locked { font-size: 13px; color: #ffce8f; background: rgba(255,182,79,.12); border: 1px solid rgba(255,182,79,.32); padding: 10px 14px; border-radius: 10px; }
.book-form.is-locked .bf-locked { display: block; }
.bf-locked { display: none; }
.reader-empty { padding: 60px 20px; text-align: center; color: rgba(237,241,248,.6); font-size: 15px; }

/* ============================================================
   羊窝执法 · 黑色身份 hero（你好，<彩虹身份>）
   ============================================================ */
.police-page { background: #05070c; }
.police-hero {
  background: #000;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 90px 20px 80px;
  text-align: center;
}
/* 身份专属生成式背景图层（纯黑上从黑场淡出） */
#phBg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; opacity: 0; pointer-events: none;
  transition: opacity 1.2s ease;
}
.police-hero.ready #phBg { opacity: 1; }
.ph-inner { position: relative; z-index: 1; }
.ph-kicker, .ph-title, .ph-sub { text-shadow: 0 2px 22px rgba(0,0,0,.9); }
.ph-inner { max-width: 900px; margin: 0 auto; }
.ph-kicker {
  font-size: 13px; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(180,200,230,.55); margin-bottom: 18px;
}
.ph-title {
  font-family: var(--font-serif); font-weight: 800;
  font-size: clamp(34px, 7vw, 72px); line-height: 1.1; margin: 0; color: #fff;
}
.ph-role {
  background: linear-gradient(90deg,#ff5f6d,#ffc371,#6fb6ff,#7a5cff,#46e6a0,#ff5f6d);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: rainbowShift 6s linear infinite;
  font-weight: 800;
}
@keyframes rainbowShift { to { background-position: 300% 0; } }
.ph-sub { margin-top: 18px; color: rgba(220,230,245,.6); font-size: clamp(14px,2vw,17px); }
.police-hero + section { background: #05070c; }
.police-hero + section .wrap { padding-top: 40px; }

/* ============================================================
   用户身份总管理（manage.html）
   ============================================================ */
.manage-page { background: #070a11; }
.manage-hero { background: linear-gradient(180deg,#0b0f18,#070a11); padding: 80px 20px 50px; text-align: center; }
.manage-hero .sec-kicker { justify-content: center; display: flex; }
.manage-hero h1 { font-family: var(--font-serif); font-size: clamp(28px,5vw,46px); color: #fff; margin: 8px 0 12px; }
.manage-hero p { color: rgba(220,230,245,.6); max-width: 640px; margin: 0 auto; line-height: 1.7; }
.manage-lock { text-align: center; padding: 80px 20px; }
.manage-lock .lock-ico { font-size: 50px; margin-bottom: 14px; }
.manage-lock p { color: rgba(220,230,245,.7); margin-bottom: 22px; }
.manage-wrap { max-width: 920px; margin: 0 auto; }
.manage-bar { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.manage-count { font-size: 15px; font-weight: 700; color: #fff; }
.manage-hint { font-size: 12.5px; color: rgba(220,230,245,.5); }
.manage-logs-btn { margin-left: auto; padding: 8px 16px; font-size: 13px; border-radius: 999px; }
.manage-table { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; }
.mt-head { border-radius: 16px 16px 0 0; }
.mt-head, .mt-row { display: grid; grid-template-columns: 2fr 0.85fr 1.05fr 1.5fr 1.1fr 1fr; gap: 12px; align-items: center; padding: 14px 18px; }
.mt-head { background: rgba(255,255,255,.05); font-size: 12.5px; color: rgba(220,230,245,.6); letter-spacing: .04em; }
.mt-row { border-top: 1px solid rgba(255,255,255,.07); }
.mt-row.is-test { opacity: .62; }
.mt-row.is-owner { background: rgba(255,206,107,.07); }
.mt-user { display: flex; flex-direction: column; min-width: 0; }
.mt-name { font-size: 14.5px; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-mail { font-size: 12px; color: rgba(220,230,245,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-rank { font-size: 14px; color: var(--accent-lit); font-weight: 600; }
.mt-cur { font-size: 13.5px; color: rgba(220,230,245,.85); }
.mt-tag { font-size: 11.5px; color: #ffce8f; background: rgba(255,182,79,.12); border: 1px solid rgba(255,182,79,.3); border-radius: 6px; padding: 2px 7px; margin-top: 4px; align-self: flex-start; }

/* 两级身份选择器（大身份 → 小身份），展开背景与文字纯白 */
.mt-picker { position: relative; }
.mt-pick-btn {
  width: 100%; box-sizing: border-box; text-align: left;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  color: #fff; border-radius: 9px; padding: 8px 12px; font-family: inherit;
  font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
}
.mt-pick-btn:hover { border-color: var(--accent); }
.mt-caret { opacity: .7; font-size: 11px; }
.mt-pick-pop {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 30;
  min-width: 250px; background: #ffffff; color: #111;
  border-radius: 12px; padding: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.mt-pick-pop[hidden] { display: none; }
.mt-pick-group { border-bottom: 1px solid #eceff3; }
.mt-pick-group:last-child { border-bottom: none; }
.mt-pick-big {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: transparent; border: none; color: #111; cursor: pointer;
  font-size: 13.5px; font-weight: 700; padding: 10px 12px; border-radius: 8px; text-align: left;
}
.mt-pick-big:hover { background: #f1f4f8; }
.mt-pick-subs { padding: 2px 0 8px 10px; display: flex; flex-direction: column; gap: 5px; background: #fff; }
.mt-pick-subs[hidden] { display: none; }
.mt-pick-sub {
  text-align: left; background: #f5f7fa; border: 1px solid #e3e8ef; color: #222;
  padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 13px;
}
.mt-pick-sub:hover { background: #eef3f9; }
.mt-pick-sub.sel { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.mt-picker-locked .mt-pick-btn {
  background: rgba(255,206,107,.12); color: #ffce8f; border: 1px solid rgba(255,182,79,.32);
  cursor: not-allowed; justify-content: center;
}
.mt-lock-note { display: block; font-size: 12px; color: rgba(255,206,143,.7); margin-top: 5px; }
@media (max-width: 680px) {
  .mt-head { display: none; }
  .mt-row { grid-template-columns: 1fr; gap: 6px; }
  .mt-rank::before { content: "注册序号："; color: rgba(220,230,245,.5); }
  .mt-cur::before { content: "当前身份："; color: rgba(220,230,245,.5); }
  .mt-pts::before { content: "积分："; color: rgba(220,230,245,.5); }
  .mt-mon::before { content: "监视："; color: rgba(220,230,245,.5); }
}

/* 监视开关（每行一个） */
.mt-mon { display: flex; align-items: center; justify-content: flex-start; }
.mt-toggle { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; }
.mt-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.mt-toggle-track {
  position: relative; width: 38px; height: 21px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22);
  transition: .18s; flex: 0 0 auto;
}
.mt-toggle-dot {
  position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%;
  background: #fff; transition: .18s;
}
.mt-toggle.on .mt-toggle-track { background: linear-gradient(90deg,#36d399,#1fb6ff); border-color: transparent; }
.mt-toggle.on .mt-toggle-dot { left: 19px; }
.mt-mon-label { font-size: 12.5px; color: rgba(220,230,245,.7); white-space: nowrap; }
.mt-toggle.on .mt-mon-label { color: #8af0c0; }

/* ============================================================
   监视日志二级页（monitor.html）
   ============================================================ */
.monitor-bar { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.monitor-count { font-size: 15px; font-weight: 700; color: #fff; }
.monitor-hint { font-size: 12.5px; color: rgba(220,230,245,.5); }
.monitor-users { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 26px; }
.mu-card {
  display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 14px 16px; color: #fff; font-family: inherit; transition: .16s;
}
.mu-card:hover { border-color: var(--accent); background: rgba(var(--accent-lit-rgb),.1); }
.mu-card.sel { border-color: #8af0c0; background: rgba(54,211,153,.12); }
.mu-ava { font-size: 26px; }
.mu-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mu-name { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-mail { font-size: 11.5px; color: rgba(220,230,245,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.mu-no { font-size: 13px; color: var(--accent-lit); font-weight: 700; font-variant-numeric: tabular-nums; }
.mu-role { font-size: 11px; color: rgba(220,230,245,.6); }

.monitor-detail { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 20px; min-height: 200px; }
.ml-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; }
.ml-user { display: flex; align-items: center; gap: 14px; }
.ml-ava { font-size: 40px; }
.ml-uinfo { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ml-name { font-size: 19px; font-weight: 800; color: #fff; }
.ml-sub { font-size: 13px; color: rgba(220,230,245,.7); }
.ml-id { font-size: 11.5px; color: rgba(220,230,245,.45); font-family: ui-monospace, monospace; }
.ml-copy { color: var(--accent-lit); cursor: pointer; margin-left: 6px; border-bottom: 1px dashed rgba(var(--accent-lit-rgb),.5); }
.ml-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.ml-stat { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 12px; text-align: center; }
.ml-stat b { display: block; font-size: 17px; color: #fff; font-weight: 800; }
.ml-stat span { font-size: 11.5px; color: rgba(220,230,245,.55); }
.ml-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ml-sec { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 14px 16px; }
.ml-sec:nth-child(5) { grid-column: 1 / -1; }
.ml-sec-head { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.ml-sec-ico { font-size: 16px; }
.ml-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; max-height: 320px; overflow: auto; }
.ml-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(220,230,245,.85); }
.ml-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-lit); flex: 0 0 auto; }
.ml-dot.clk { background: #ffce8f; }
.ml-dot.dw { background: #8af0c0; }
.ml-dot.act { background: #c79bff; }
.ml-list .ml-time { margin-left: auto; font-size: 11px; color: rgba(220,230,245,.4); white-space: nowrap; }
.ml-muted { color: rgba(220,230,245,.5); font-size: 12px; }
.ml-more { font-size: 11.5px; color: rgba(220,230,245,.4); margin-top: 6px; }
.ml-meta { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ml-meta td { padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.07); }
.ml-meta td:first-child { color: rgba(220,230,245,.5); width: 110px; white-space: nowrap; }
.ml-meta td:last-child { color: rgba(220,230,245,.9); word-break: break-all; }
.bs-empty.sm { font-size: 12.5px; padding: 8px 0; }
.ml-loading { color: rgba(220,230,245,.6); font-size: 13px; }
@media (max-width: 720px) {
  .ml-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   个人主页：协议中心 + 元老羊间距
   ============================================================ */
.acct-agree { margin-top: 30px; text-align: center; border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; }
.aa-title { display: block; font-size: 12.5px; letter-spacing: .2em; color: rgba(220,230,245,.5); margin-bottom: 12px; }
.aa-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.aa-links a {
  font-size: 13px; color: rgba(220,230,245,.78); text-decoration: none;
  padding: 7px 15px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04); transition: .18s;
}
.aa-links a:hover { color: #fff; border-color: var(--accent); background: rgba(var(--accent-lit-rgb),.14); }

/* 元老羊框：与上方标签框拉开间距 */
.acct-badge { margin: 16px auto 0 !important; }
.acct-badge-note { margin-top: 14px !important; }

/* ============================================================
   首页协议中心
   ============================================================ */
.agree-section { padding: 70px 0 30px; }
.agree-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); margin-top: 26px; }
@media (max-width: 760px) { .agree-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .agree-grid { grid-template-columns: 1fr; } }
.agree-card {
  display: flex; flex-direction: column; gap: 6px; text-align: left; text-decoration: none;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 18px 18px; transition: .2s;
}
.agree-card:hover { transform: translateY(-3px); border-color: var(--accent); background: rgba(var(--accent-lit-rgb),.1); }
.ag-ico { font-size: 26px; }
.agree-card b { font-size: 15px; color: #fff; }
.agree-card span:last-child { font-size: 12.5px; color: rgba(220,230,245,.6); line-height: 1.55; }

/* ============================================================
   羊窝执法 · 整屏 hero + 权益开关手风琴（v3）
   ============================================================ */
.police-hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 20px;
}
.ph-down {
  margin-top: 46px; font-size: 13px; letter-spacing: .2em;
  color: rgba(180,200,230,.5); animation: phBob 1.8s ease-in-out infinite;
}
@keyframes phBob { 0%,100% { transform: translateY(0); opacity:.5 } 50% { transform: translateY(8px); opacity:1 } }

.police-benefits { background: #05070c; padding: 30px 0 90px; }
.pb-title { font-family: var(--font-serif); text-align: center; color: #fff; font-size: clamp(24px,4vw,38px); margin: 10px 0 6px; }
.pb-sub { text-align: center; color: rgba(220,230,245,.55); margin: 0 0 34px; font-size: 14px; }
.benefit-list { display: flex; flex-direction: column; gap: 16px; max-width: 820px; margin: 0 auto; }
.benefit-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; overflow: hidden; transition: border-color .2s, transform .2s;
}
.benefit-card:hover { border-color: rgba(var(--accent-lit-rgb),.4); }
.bc-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; user-select: none; }
.bc-ico { font-size: 26px; }
.bc-txt { flex: 1; }
.bc-txt b { display: block; color: #fff; font-size: 16px; }
.bc-txt small { color: rgba(220,230,245,.55); font-size: 12.5px; }
.bc-toggle {
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff;
  border-radius: 999px; padding: 7px 16px; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.bc-toggle:hover { border-color: var(--accent); }
.bc-body { padding: 4px 20px 22px; border-top: 1px solid rgba(255,255,255,.08); }
.bc-body[hidden] { display: none; }

/* 文件上传 */
.bf-file { display: block; }
.bf-file-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px dashed rgba(var(--accent-lit-rgb),.5); background: rgba(var(--accent-lit-rgb),.08);
  color: #cfe2ff; border-radius: 10px; padding: 14px 18px; font-size: 14px;
}
.bf-file-btn:hover { background: rgba(var(--accent-lit-rgb),.16); }
.bf-file-name { display: inline-block; margin-left: 12px; font-size: 13px; color: rgba(220,230,245,.6); }
.bf-anon { font-size: 13px; color: rgba(220,230,245,.7); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.bf-hint { font-size: 12.5px; color: #ffce8f; margin-top: 6px; }
/* 出错/受阻提示：红字常驻，别让它跟着 toast 一起 3 秒就消失 */
.bf-hint.is-warn { color: #ff8a9b; line-height: 1.65; }
.bf-hint.is-warn::before { content: "⚠ "; }
/* 选中文件后高亮「选择文件」框并显示文件名（每次仅一个文件） */
.bf-file.has-file .bf-file-btn {
  border-style: solid; border-color: var(--accent-lit); background: rgba(var(--accent-lit-rgb),.22);
  color: var(--accent-pale); box-shadow: 0 0 0 3px rgba(var(--accent-lit-rgb),.18);
}
.bf-file.has-file .bf-file-btn { background: rgba(var(--accent-lit-rgb),.16); }

/* 已选文件 · 高亮卡片（明显展示文件名/大小） */
.bf-chosen { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; background: rgba(var(--accent-rgb),.12); border: 1px solid rgba(var(--accent-rgb),.42); border-radius: 12px; }
.bf-chosen .bf-ico { font-size: 22px; line-height: 1; }
.bf-chosen-info { flex: 1; min-width: 0; }
.bf-chosen-info b { display: block; font-size: 14.5px; color: var(--accent-pale); word-break: break-all; }
.bf-chosen-info span { font-size: 12px; color: var(--muted); }
.bf-clear { flex: none; background: none; border: 1px solid rgba(255,255,255,.22); color: var(--muted); border-radius: 8px; width: 30px; height: 30px; cursor: pointer; font-size: 14px; }
.bf-clear:hover { color: #ff6b6b; border-color: #ff6b6b; }

/* 识别结果：清晰的高亮信息条 */
.bf-meta { display: block; margin-top: 10px; padding: 9px 12px; font-size: 13px; color: #cfe6ff; background: rgba(124,199,191,.12); border-left: 3px solid #7cc7bf; border-radius: 8px; }

/* ============================================================
   羊窝图书馆 · 热搜/新品榜单
   ============================================================ */
.lib-boards { display: flex; gap: 12px; justify-content: center; margin: 18px 0 6px; flex-wrap: wrap; }
.lib-board-btn {
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #fff;
  border-radius: 999px; padding: 9px 20px; font-size: 14px; cursor: pointer; transition: .2s;
}
.lib-board-btn:hover, .lib-board-btn.open { border-color: var(--accent); background: rgba(var(--accent-lit-rgb),.14); }
.book-board { max-width: 760px; margin: 12px auto 0; display: flex; flex-direction: column; gap: 8px; }
.book-board[hidden] { display: none; }
/* 榜单移进通用小窗后，外面的 760 / 12px 上边距都不需要了，由弹窗自己留白 */
#rankModal .ywm-panel { width: var(--yw-modal-w); }
#rankModal .ywm-body { padding: 14px 16px 16px; }
#rankModal .book-board { max-width: 100%; margin: 0; }
/* 小窗标题位换成两个 tab：热搜 / 新品不用再各占一个页面按钮 */
#rankModal .ywm-head { padding: 13px 14px; gap: 10px; }
.rank-tabs { display: flex; gap: 6px; flex: 1; min-width: 0; }
.rank-tab {
  font: inherit; font-size: 13px; font-weight: 700; line-height: 1; cursor: pointer;
  padding: 9px 15px; border-radius: 999px; white-space: nowrap;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  color: rgba(237,241,248,.68); transition: .2s;
}
.rank-tab:hover { color: #fff; background: rgba(255,255,255,.10); }
.rank-tab.active {
  color: #fff; background: rgba(var(--accent-lit-rgb),.20);
  border-color: rgba(var(--accent-lit-rgb),.55);
}
/* 手机上一条塞不下一行：书名单独占首行，作者与热度值落在第二行两端 */
@media (max-width: 520px) {
  #rankModal .board-item {
    display: grid; grid-template-columns: 26px 1fr auto;
    grid-template-areas: "rank title title" "rank meta val";
    gap: 3px 10px; padding: 11px 13px; align-items: center;
  }
  #rankModal .bi-rank { grid-area: rank; }
  #rankModal .bi-title { grid-area: title; font-size: 14px; }
  #rankModal .bi-meta { grid-area: meta; font-size: 11.5px; }
  #rankModal .bi-val { grid-area: val; font-size: 12px; justify-self: end; }
}
.board-item {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 12px 16px; transition: .2s;
}
.board-item:hover { border-color: rgba(var(--accent-lit-rgb),.4); transform: translateX(2px); }
.bi-rank { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; font-weight: 800; font-size: 13px; background: rgba(255,255,255,.08); color: #fff; }
.bi-rank-1 { background: linear-gradient(135deg,#ffd66b,#ff9d3c); color:#3a2400; }
.bi-rank-2 { background: linear-gradient(135deg,#e6ecf5,#aab6c6); color:#222; }
.bi-rank-3 { background: linear-gradient(135deg,#ffb27a,#d98a4a); color:#3a1d00; }
.bi-title { flex: 1; color: #fff; font-size: 15px; }
.bi-meta { color: rgba(220,230,245,.55); font-size: 12.5px; }
.bi-val { color: #ffce8f; font-size: 13px; white-space: nowrap; }
.book-tag { font-size: 11px; color: #9fd0ff; border: 1px solid rgba(var(--accent-lit-rgb),.4); border-radius: 6px; padding: 2px 7px; margin-left: 8px; }
/* 连载中：绿色系，和「投稿」的蓝色区分开 */
.book-tag-live {
  color: #86e3b4;
  border-color: rgba(110, 220, 168, .42);
  background: rgba(80, 200, 150, .10);
}
/* 书卡上的「更新至 Episode 10 · 3 天前」 */
.book .book-upd {
  display: block;
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: .2px;
}
/* ---------- 阅读页：章节更新提示 / 更新记录 ---------- */
.r-updbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 10px 0 4px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid rgba(110, 220, 168, .28);
  background: rgba(80, 200, 150, .08);
  font-size: 12.5px;
  color: #86e3b4;
}
.r-updbar b { font-weight: 700; }
.r-updbar .r-upd-time { color: var(--muted); margin-left: auto; }
.r-updlist { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; }
.r-updlist h4 { font-family: var(--font-serif); font-size: 15px; margin: 0 0 12px; color: var(--text); }
.r-updlist .u-item {
  display: flex; gap: 10px; align-items: baseline;
  font-size: 13px; color: var(--muted); padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,.06);
}
.r-updlist .u-item:last-child { border-bottom: none; }
.r-updlist .u-badge {
  flex: none; font-size: 11px; padding: 1px 7px; border-radius: 6px;
  background: rgba(var(--accent-lit-rgb),.14); color: #9fd0ff;
}
.r-updlist .u-badge.is-add { background: rgba(80,200,150,.16); color: #86e3b4; }
.r-updlist .u-badge.is-update { background: rgba(255,206,143,.14); color: #ffce8f; }
.r-updlist .u-badge.is-remove { background: rgba(255,120,120,.14); color: #ff9b9b; }
.r-updlist .u-time { margin-left: auto; font-size: 11.5px; opacity: .7; white-space: nowrap; }
.bs-board-note { font-size: 12.5px; color: rgba(255,206,143,.8); text-align: center; padding: 4px 0 2px; }

/* ============================================================
   身份总管理 · 测试账号折叠
   ============================================================ */
.mt-test-head {
  grid-column: 1 / -1;
  font-size: 14.5px; font-weight: 700; color: #ffce8f;
  margin: 0; padding: 14px 18px 10px;
  border-top: 1px dashed rgba(255,255,255,.16);
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.mt-test-hint { font-size: 12px; color: rgba(255,206,143,.7); font-weight: 400; }
/* 测试行直接作为表格行（与真实用户行同级、同网格），保证列对齐 */
.mt-row.mt-test-row { opacity: 1; }
.mt-test-toggle {
  display: inline-block; margin: 8px 18px 6px; padding: 7px 16px; border-radius: 999px;
  background: rgba(255,182,79,.1); border: 1px solid rgba(255,182,79,.3);
  color: #ffce8f; font-size: 13px; cursor: pointer; font-family: inherit; transition: .18s;
}
.mt-test-toggle:hover { background: rgba(255,182,79,.14); }

/* ============================================================
   主页 · 羊窝积分面板（折叠 → 进入展开）+ 积分排行弹窗
   ============================================================ */
.points-panel {
  background: linear-gradient(135deg, rgba(255,206,107,.10), rgba(var(--accent-2-rgb),.08)), var(--card);
  border: 1px solid rgba(255,206,107,.32); border-radius: 20px;
  overflow: hidden;
}
/* 折叠态：进入按钮 */
.points-enter {
  width: 100%; display: flex; align-items: center; gap: 16px; text-align: left;
  background: transparent; border: none; cursor: pointer; font-family: inherit;
  padding: 26px 26px; color: inherit; transition: background .2s;
}
.points-enter[hidden] { display: none !important; }
.points-enter:hover { background: rgba(255,206,107,.07); }
.points-enter .pe-ico { font-size: 34px; flex: none; filter: drop-shadow(0 3px 8px rgba(0,0,0,.4)); }
.points-enter .pe-txt b { display: block; font-family: var(--font-serif); font-size: 19px; color: #ffe1a8; margin-bottom: 3px; }
.points-enter .pe-txt small { display: block; font-size: 13px; color: rgba(237,241,248,.62); }
.points-enter .pe-go {
  margin-left: auto; flex: none; font-size: 14px; font-weight: 700; color: #0a0e16;
  background: linear-gradient(135deg, #ffd98f, #ffb64f);
  padding: 10px 22px; border-radius: 999px; transition: transform .2s, box-shadow .2s;
}
.points-enter:hover .pe-go { transform: translateX(3px); box-shadow: 0 8px 24px rgba(255,182,79,.35); }

/* 展开态 */
.points-detail { padding: 26px; animation: pdIn .35s cubic-bezier(.22,1,.36,1) both; }
@keyframes pdIn { from { opacity: 0; transform: translateY(8px); } }
.pd-balance {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 18px 22px; margin-bottom: 18px;
}
.pd-balance .pdb-ico { font-size: 40px; flex: none; }
.pd-balance .pdb-num b {
  display: block; font-family: var(--font-serif); font-weight: 800;
  font-size: clamp(30px, 5vw, 42px); line-height: 1.1; color: #ffe1a8;
}
.pd-balance .pdb-num span { font-size: 13px; color: rgba(237,241,248,.6); }
.pd-balance .pdb-acts { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.pd-login-tip {
  font-size: 13.5px; color: rgba(237,241,248,.75);
  background: rgba(var(--accent-lit-rgb),.1); border: 1px solid rgba(var(--accent-lit-rgb),.3);
  border-radius: 12px; padding: 11px 16px; margin: 0 0 14px;
}
.pd-login-tip a { color: var(--accent); font-weight: 700; text-decoration: none; }

/* 积分获得项列表 */
.pd-tasks { display: grid; gap: 10px; }
.hpt {
  display: grid; grid-template-columns: 34px 1fr auto auto; align-items: center; gap: 12px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 13px 16px;
}
.hpt.is-done { opacity: .68; }
.hpt-ico { font-size: 20px; text-align: center; }
.hpt-name { font-size: 14.5px; color: #fff; font-weight: 600; }
.hpt-reward {
  font-size: 13px; font-weight: 800; color: #ffce8f;
  background: rgba(255,206,107,.12); border: 1px solid rgba(255,206,107,.32);
  border-radius: 999px; padding: 3px 11px; white-space: nowrap;
}
.hpt-state { min-width: 76px; text-align: right; }
.pt-done { font-size: 13px; color: #8ee6ad; font-weight: 700; white-space: nowrap; }
.pt-todo {
  font-size: 13px; font-weight: 700; color: #0a0e16; text-decoration: none; white-space: nowrap;
  background: linear-gradient(135deg, #ffd98f, #ffb64f);
  padding: 5px 13px; border-radius: 999px; transition: transform .18s, box-shadow .18s;
  display: inline-block;
}
.pt-todo:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,182,79,.4); }
@media (max-width: 560px) {
  .hpt { grid-template-columns: 30px 1fr auto; }
  .hpt-state { grid-column: 2 / -1; text-align: left; }
}

/* 积分面板的操作按钮：宽度不够时改为一列一个（一行只放一个按钮），
   避免多个按钮挤在一行被压小、或被硬塞到第二行造成错位 */
@media (max-width: 820px) {
  .pd-balance { gap: 12px; }
  .pd-balance .pdb-acts {
    flex: 1 1 100%; margin-left: 0; min-width: 0;
    display: flex; flex-direction: column; gap: 8px;
  }
  .pd-balance .pdb-acts .btn {
    width: 100%; flex: none; padding: 12px 10px; gap: 6px;
    font-size: 14.5px; white-space: nowrap;
  }
}
.pd-balance .pdb-acts .btn { white-space: nowrap; }

/* ---------- 积分排行弹窗 ---------- */
.rank-modal { position: fixed; inset: 0; z-index: 210; display: none; }
.rank-modal.open { display: block; }
.rm-mask { position: absolute; inset: 0; background: rgba(3,5,9,.74); backdrop-filter: blur(6px); animation: amFade .25s ease both; }
.rm-panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: var(--yw-modal-w); max-height: 84vh; overflow-y: auto;
  background: rgba(13,18,28,.97); border: 1px solid rgba(255,255,255,.16); border-radius: 18px;
  padding: 26px 22px 22px; box-shadow: 0 24px 80px rgba(0,0,0,.6);
  animation: amPop .32s cubic-bezier(.22,1,.36,1) both;
}
.rm-panel h3 { margin: 0 0 4px; font-family: var(--font-serif); font-size: 19px; color: #fff; }
.rm-panel .rm-sub { font-size: 12.5px; color: rgba(237,241,248,.58); margin: 0 0 14px; }
.rm-close {
  position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  color: rgba(237,241,248,.8); font-size: 17px; cursor: pointer; line-height: 1;
}
.rm-close:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ---------- 绑定 QQ 弹窗内容 ---------- */
.qb-tip {
  font-size: 13.5px; line-height: 1.7; color: rgba(237,241,248,.72);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px; padding: 13px 16px; margin: 0 0 14px;
}
.qb-tip.qb-warn {
  color: #ffcf9a; background: rgba(255,150,80,.1); border-color: rgba(255,150,80,.32);
}
.qb-main { display: block; text-align: center; }

/* 步骤 */
.qb-steps { display: grid; gap: 10px; margin-bottom: 16px; }
.qb-step { display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; color: rgba(237,241,248,.8); line-height: 1.6; }
.qb-step i {
  flex: 0 0 auto; width: 21px; height: 21px; margin-top: 1px; border-radius: 50%;
  background: rgba(120,170,255,.16); border: 1px solid rgba(120,170,255,.4);
  color: #9dc4ff; font-style: normal; font-size: 11.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.qb-step code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px;
  background: rgba(255,255,255,.08); border-radius: 6px; padding: 1px 7px;
  color: #ffe1a8; white-space: nowrap;
}

/* 绑定码大字 */
.qb-code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 30px; font-weight: 700; letter-spacing: 7px; text-align: center;
  color: #ffe1a8; background: rgba(255,206,107,.09);
  border: 1px dashed rgba(255,206,107,.45); border-radius: 14px;
  padding: 16px 8px 16px 15px; cursor: pointer; user-select: all;
  transition: background .18s, border-color .18s, transform .18s;
}
.qb-code:hover { background: rgba(255,206,107,.16); border-color: rgba(255,206,107,.75); transform: translateY(-1px); }
.qb-expire { font-size: 11.5px; color: rgba(237,241,248,.45); text-align: center; margin: 9px 0 16px; }

/* 绑定状态提示行（检查结果 / 已自动检测） */
.qb-checkline {
  font-size: 12px; line-height: 1.7; text-align: center;
  color: rgba(237,241,248,.55); margin: -4px 0 14px;
  min-height: 1em;
}

.qb-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.qb-acts .btn { flex: 1 1 auto; justify-content: center; text-align: center; }

/* 已绑定 */
.qb-bound {
  display: flex; align-items: center; gap: 13px;
  background: rgba(94,222,160,.1); border: 1px solid rgba(94,222,160,.32);
  border-radius: 13px; padding: 15px 17px; margin-bottom: 16px;
}
.qb-bound-ico { font-size: 21px; line-height: 1; }
.qb-bound b { display: block; font-family: var(--font-serif); font-size: 15px; color: #d6ffe9; margin-bottom: 3px; }
.qb-bound span { font-size: 12.5px; color: rgba(237,241,248,.6); }
@media (max-width: 480px) {
  .qb-code { font-size: 24px; letter-spacing: 5px; padding-left: 12px; }
}

.rm-me {
  font-size: 13.5px; color: #ffe1a8; background: rgba(255,206,107,.12);
  border: 1px solid rgba(255,206,107,.35); border-radius: 12px;
  padding: 11px 15px; margin-bottom: 14px;
}
.rm-me b { font-family: var(--font-serif); font-size: 15px; }
.rm-me a { color: var(--accent); font-weight: 700; text-decoration: none; }
.rm-me.is-test { color: #c9d6ea; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.rm-list { display: grid; gap: 8px; }
.rm-item {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px; padding: 11px 15px;
}
.rm-item.top { border-color: rgba(255,206,107,.35); background: rgba(255,206,107,.06); }
.rm-item.me { outline: 1px solid var(--accent); }
.rm-medal { width: 44px; font-weight: 800; font-size: 14px; color: var(--accent-lit); flex: none; }
.rm-item.top .rm-medal { color: #ffce8f; }
.rm-name { font-size: 14.5px; color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 名字后面挂专属编号徽章之后：名字过长只在名字上省略，徽章永远完整显示 */
.rm-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rm-name > .rm-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rm-name > .vn-badge { flex: none; }
.rm-pts { margin-left: auto; font-size: 13.5px; font-weight: 700; color: #ffe1a8; white-space: nowrap; }
.rm-loading, .rm-empty { font-size: 13.5px; color: rgba(237,241,248,.6); text-align: center; padding: 22px 0; }

/* ============================================================
   羊窝商城 v3 · 主题色卡 / 大头像瓷砖 / 海报式背景卡 / 预览模板
   ============================================================ */
/* 主题色卡（名 + 已拥有/价 徽章）· 仅商城内生效（不影响个人主页的圆形色卡） */
.shop-themes .theme-sw {
  min-width: 108px; height: 52px; border-radius: 14px; cursor: pointer;
  border: 2px solid transparent; transition: .18s; position: relative;
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 2px; color: #0a0e16; padding: 0 14px;
}
.shop-themes .theme-sw:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.35); }
.shop-themes .theme-sw.owned { box-shadow: 0 0 0 2px rgba(255,255,255,.65); }
.shop-themes .ts-name { font-size: 13px; font-weight: 800; line-height: 1; }
.shop-themes .ts-badge {
  font-size: 10.5px; font-weight: 700; line-height: 1; opacity: .85;
  background: rgba(0,0,0,.16); border-radius: 999px; padding: 2.5px 7px;
}

/* 头像大瓷砖 */
.avat-tile {
  width: 84px; border-radius: 16px; cursor: pointer; font-family: inherit;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  transition: .18s; padding: 12px 6px 9px; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
}
.avat-tile:hover { transform: translateY(-4px); border-color: var(--accent); }
.avat-tile .at-emoji { font-size: 44px; line-height: 1; filter: drop-shadow(0 3px 8px rgba(0,0,0,.4)); }
.avat-tile.locked .at-emoji { filter: grayscale(.55) brightness(.8); }
.avat-tile .at-lock {
  position: absolute; top: 8px; right: 8px; font-size: 13px;
  background: rgba(0,0,0,.55); border-radius: 50%; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
}
.avat-tile .at-badge {
  font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 3px 9px; line-height: 1;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: rgba(237,241,248,.8);
  white-space: nowrap;
}
.avat-tile.owned { border-color: rgba(var(--accent-lit-rgb),.5); background: rgba(var(--accent-lit-rgb),.1); }
.avat-tile.owned .at-badge { color: var(--accent-lit); background: rgba(var(--accent-lit-rgb),.16); border-color: rgba(var(--accent-lit-rgb),.4); }
.avat-tile.locked .at-badge { color: #ffce8f; background: rgba(255,206,107,.1); border-color: rgba(255,206,107,.32); }
.avat-tile.cur { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.avat-tile.cur .at-badge { color: #0a0e16; background: linear-gradient(135deg,#ffd98f,#ffb64f); border-color: transparent; }

/* 海报式背景卡（大图 + 名字 + 价格 + 购买按钮；点图预览） */
.bg-card.poster {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column; transition: .3s;
  /* .poster 是首页大海报的类（min-height:480px + 垂直居中），
     卡片复用这个名字时会被撑成 480 高的空壳，必须显式复位 */
  min-height: 0; align-items: stretch; justify-content: flex-start;
}
.bg-card.poster:hover { border-color: rgba(var(--accent-rgb),.5); transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,.4); }
.bg-card.poster.equipped { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.bg-card.poster .bg-thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 16/10; padding: 0; border: none; cursor: zoom-in;
  background-size: cover; background-position: center; transition: filter .25s;
}
.bg-card.poster .bg-thumb:hover { filter: brightness(1.08); }
.bg-card.poster .bg-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.45)); }
.bg-card.poster .bg-eye {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  font-size: 11.5px; font-weight: 700; color: #fff; white-space: nowrap;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 5px 11px;
  opacity: 0; transform: translateY(4px); transition: .22s;
}
.bg-card.poster .bg-thumb:hover .bg-eye { opacity: 1; transform: translateY(0); }
.bg-card.poster .bg-flag {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-size: 11px; font-weight: 700; color: #0a0e16;
  background: rgba(255,255,255,.85); border-radius: 999px; padding: 4px 10px;
}
.bg-card.poster .bg-flag.on { background: linear-gradient(135deg,#ffd98f,#ffb64f); }
/* 藏书主题角标：左上角一枚「📖 书名」，标出这套背景画的是图书馆里哪本书的场景。
   没挂「已拥有 / 使用中」的卡片可以让角标用满整行；挂了的话要把右边那颗的位置让出来。
   手机上卡片只有 190px 宽，所以字号降到 10.5px，宁可小一点也别被截成省略号。 */
.bg-card.poster .bg-book {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  max-width: calc(100% - 20px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 11px; font-weight: 700; line-height: 1.35; color: #ffe6b8;
  background: rgba(8,12,20,.66); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,206,107,.42); border-radius: 999px; padding: 4px 10px;
}
.bg-card.poster .bg-thumb.has-flag .bg-book { max-width: calc(100% - 88px); }
@media (max-width: 640px) {
  .bg-card.poster .bg-book { font-size: 10.5px; padding: 3px 8px; }
  .bg-card.poster .bg-thumb.has-flag .bg-book { max-width: calc(100% - 76px); }
}
.bg-card.poster .bg-meta { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px 4px; }
.bg-card.poster .bg-meta b { font-size: 15px; }
.bg-card.poster .bg-cost { font-size: 12.5px; font-weight: 700; color: #ffce8f; }
.bg-card.poster .bg-act { margin: 10px 15px 15px; }
.bg-card.poster .bg-act::before { content: "🪙 "; }

/* ---------- 头像 / 主题 海报大卡（与背景卡同款风格） ---------- */
.avat-card.poster,
.theme-card.poster {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column; transition: .3s;
  min-height: 0; align-items: stretch; justify-content: flex-start;
}
.avat-card.poster.cur { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.avat-card.poster:hover,
.theme-card.poster:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.4); }

/* 头像图区 */
.avat-card.poster .av-thumb {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 1 / 1; padding: 0; border: none; cursor: zoom-in;
  background: radial-gradient(120% 120% at 50% 25%, #2a3346 0%, #161c28 70%);
  transition: filter .25s;
}
.avat-card.poster .av-thumb:hover { filter: brightness(1.08); }
.avat-card.poster .av-emoji { font-size: clamp(54px, 9vw, 84px); line-height: 1; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.avat-card.poster .av-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.4)); }

/* 主题色块 */
.theme-card.poster .th-thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0;
  border: none; cursor: zoom-in; transition: filter .25s;
}
.theme-card.poster .th-thumb:hover { filter: brightness(1.08); }
.theme-card.poster .th-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.4)); }

/* 共用：角标 / 悬浮预览 / 名称价格 / 按钮 */
.av-flag, .th-flag {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-size: 11px; font-weight: 700; color: #0a0e16;
  background: rgba(255,255,255,.85); border-radius: 999px; padding: 4px 10px;
}
.av-flag.on, .th-flag.on { background: linear-gradient(135deg,#ffd98f,#ffb64f); }
.av-eye, .th-eye {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  font-size: 11.5px; font-weight: 700; color: #fff; white-space: nowrap;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 5px 11px;
  opacity: 0; transform: translateY(4px); transition: .22s;
}
.av-thumb:hover .av-eye, .th-thumb:hover .th-eye { opacity: 1; transform: translateY(0); }
.av-meta, .th-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 15px 4px; }
.av-meta b, .th-meta b { font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-cost, .th-cost { font-size: 12.5px; font-weight: 700; color: #ffce8f; flex: none; }
.av-act, .th-act { margin: 10px 15px 15px; }

/* ---------- 已下架单品（黑市专供） ----------
   下架不等于从商城消失：卡片继续留在原栏目里，只是虚线描边、
   角标换成「已下架」、价格位写「黑市专供」，按钮改成「黑市获取」并跳到黑市。 */
.avat-card.poster.is-retired,
.theme-card.poster.is-retired,
.bg-card.poster.is-retired {
  border-style: dashed; border-color: rgba(183,148,255,.4);
  background: linear-gradient(165deg, rgba(72,52,116,.22), rgba(255,255,255,.02));
}
.avat-card.poster.is-retired:hover,
.theme-card.poster.is-retired:hover,
.bg-card.poster.is-retired:hover { border-color: rgba(183,148,255,.7); }
.avat-card.poster.is-retired .av-thumb,
.theme-card.poster.is-retired .th-thumb,
.bg-card.poster.is-retired .bg-thumb { filter: grayscale(.4) brightness(.8); }
.avat-card.poster.is-retired:hover .av-thumb,
.theme-card.poster.is-retired:hover .th-thumb,
.bg-card.poster.is-retired:hover .bg-thumb { filter: grayscale(.15) brightness(.95); }
/* 角标：紫底「已下架」，比「已拥有」那枚更冷一点，扫一眼就能区分 */
.av-flag.off, .th-flag.off,
.bg-card.poster .bg-flag.off {
  color: #efe6ff; background: rgba(60,38,104,.8);
  border: 1px solid rgba(183,148,255,.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
/* 价格位：紫色「黑市专供」 */
.avat-card.poster.is-retired .av-cost,
.theme-card.poster.is-retired .th-cost,
.bg-card.poster.is-retired .bg-cost { color: #c9b6ff; }
/* 按钮：黑市入口用紫色描边，图标也从金币换成花札牌 */
.avat-card.poster.is-retired .av-act,
.theme-card.poster.is-retired .th-act,
.bg-card.poster.is-retired .bg-act {
  background: rgba(123,90,196,.22); border: 1px solid rgba(183,148,255,.5); color: #e8ddff;
}
.avat-card.poster.is-retired .av-act:hover,
.theme-card.poster.is-retired .th-act:hover,
.bg-card.poster.is-retired .bg-act:hover { background: rgba(123,90,196,.42); color: #fff; }
.bg-card.poster.is-retired .bg-act::before { content: "🎴 "; }

/* ---------- 「装在主页效果」预览模板弹窗 ---------- */
.bgprev-modal { position: fixed; inset: 0; z-index: 220; display: none; }
.bgprev-modal.open { display: block; }
/* 退场：.is-closing 期间还留在页面上，播完再由 JS 摘掉（200ms）。
   没有这一段的话关窗是 display:none 硬切，紧接着确认窗又滑上来，
   两个弹窗撞在一起，动画看着特别怪。 */
.bgprev-modal.is-closing { display: block; pointer-events: none; }
.bgprev-modal.is-closing .bm-mask { animation: bmMaskOut .2s ease both; }
.bgprev-modal.is-closing .bm-panel { animation: bmPanelOut .2s cubic-bezier(.4,0,.7,1) both; }
@keyframes bmMaskOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes bmPanelOut {
  from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  to   { transform: translate(-50%, -52%) scale(.965); opacity: 0; }
}
.bm-mask { position: absolute; inset: 0; background: rgba(3,5,9,.78); backdrop-filter: blur(8px); animation: amFade .25s ease both; }
.bm-panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: var(--yw-modal-w); max-height: 90vh; overflow-y: auto;
  background: rgba(13,18,28,.97); border: 1px solid rgba(255,255,255,.16); border-radius: 20px;
  padding: 22px 20px 20px; box-shadow: 0 24px 90px rgba(0,0,0,.65);
  animation: amPop .32s cubic-bezier(.22,1,.36,1) both;
}
.bm-title { margin: 0 0 3px; font-family: var(--font-serif); font-size: 18px; color: #fff; }
.bm-sub { font-size: 12.5px; color: rgba(237,241,248,.58); margin: 0 0 14px; }
.bm-close {
  position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  color: rgba(237,241,248,.8); font-size: 17px; cursor: pointer; line-height: 1;
}
.bm-close:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ---------- 弹窗面板的响应式（与账号页 am-panel 同一套规则） ----------
   电脑端：面板给到舒展的宽度，别挤成竖长条；
   手机端：统一改成贴底抽屉，拇指够得着，内容多时面板内部滚动。 */
@media (min-width: 760px) {
  .rm-panel { width: min(92vw, 520px); }
}
@media (max-width: 759px) {
  .rm-panel, .bm-panel {
    left: 0; right: 0; top: auto; bottom: 0; transform: none;
    width: 100%; max-width: none;
    /* 和积分/我拥有的那套对齐：默认 52vh，按住横条可上下拖 */
    height: var(--am-sheet-h, 52vh); max-height: 92vh;
    overflow-y: auto; overscroll-behavior: contain;
    border-radius: 22px 22px 0 0;
    border-left: none; border-right: none; border-bottom: none;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
    animation: pnlSheet .3s cubic-bezier(.22,1,.36,1) both;
  }
  .rm-panel::before, .bm-panel::before {
    content: ""; display: block; width: 38px; height: 4px; border-radius: 99px;
    background: rgba(255,255,255,.22); margin: -8px auto 14px;
  }
  /* 手机上预览窗是贴底抽屉，退场就顺着原路滑下去 */
  .bgprev-modal.is-closing .bm-panel { animation: bmSheetOut .22s cubic-bezier(.4,0,.7,1) both; }
  @keyframes bmSheetOut {
    from { transform: none; opacity: 1; }
    to   { transform: translateY(100%); opacity: .7; }
  }
  .rm-panel h3, .bm-title { font-size: 17px; padding-right: 32px; }
  .rm-close, .bm-close { top: 10px; right: 12px; width: 34px; height: 34px; }

  /* 排行榜：窗高是定的，列表吃掉剩余高度；条目少时在带内居中，别让底下空一条 */
  .rm-panel { display: flex; flex-direction: column; }
  .rm-list {
    flex: 1 1 auto; min-height: 0;
    display: flex; flex-direction: column;
    justify-content: safe center;
  }

  /* ===== 专属编号预览窗（#vnPreview .vn-panel） =====
     它走的是另一套通用弹窗（.yw-modal），手机上原来还是居中弹，
     和商城其他预览不一致。这里统一成同一套贴底抽屉。
     （商品预览窗 .bm-* 的瘦身规则在下面 .bm-* 基础样式之后再写，
       否则会被后出现的同类基础规则盖回去。） */
  #vnPreview .ywm-panel.vn-panel {
    left: 0; right: 0; top: auto; bottom: 0; transform: none;
    width: 100%; max-width: none;
    height: var(--am-sheet-h, 52vh); max-height: 92vh;
    overflow-y: auto; overscroll-behavior: contain;
    border-radius: 22px 22px 0 0;
    border-left: none; border-right: none; border-bottom: none;
    animation: pnlSheet .3s cubic-bezier(.22,1,.36,1) both;
  }
  #vnPreview .ywm-panel.vn-panel::before {
    content: ""; display: block; width: 34px; height: 4px; border-radius: 99px;
    background: rgba(255,255,255,.22); margin: 10px auto 0;
  }
  #vnPreview .ywm-head { padding: 9px 16px; }
  #vnPreview .ywm-title { font-size: 14px; }
  #vnPreview .ywm-x { width: 30px; height: 30px; font-size: 14px; }
  #vnPreview .ywm-body { padding: 0 15px calc(14px + env(safe-area-inset-bottom)); }
  #vnPreview .vn-prev { padding: 20px 16px 17px; border-radius: 15px; }
  #vnPreview .vn-home-ava { width: 54px; height: 54px; font-size: 27px; margin-bottom: 8px; }
  #vnPreview .vn-home-name { font-size: 13px; margin-bottom: 6px; }
  #vnPreview .vn-home-no { font-size: 31px; }
  #vnPreview .vn-home-title { font-size: 11.5px; margin-top: 5px; }
  #vnPreview .vn-prev-tip { margin: 11px 2px 0; font-size: 12px; line-height: 1.6; }
  /* 注意：关闭按钮那条 .up-foot 是 .vn-prev 的兄弟节点，不是子节点 */
  #vnPreview .ywm-body > .up-foot { margin-top: 12px; }
  #vnPreview .ywm-body > .up-foot .up-cancel { width: 100%; padding: 11px 16px; font-size: 13.5px; }

  /* 上传表单：手机上复选框和提交按钮不能并排挤在一起 */
  .bf-foot { flex-direction: column; align-items: stretch; gap: 12px; }
  .bf-anon { justify-content: flex-start; }
  .bf-foot .btn { width: 100%; }
  .bf-file-name { display: block; margin: 8px 0 0; }
}

/* 空的内容框不该占位（上传弹窗里那条空圆角条就是它） */
.bf-meta:empty, .bf-hint:empty { display: none; }
/* 上传小说窗：高度是定的，表单撑满剩余高度，「提交审核」那行贴到底部 */
.am-book form { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
/* 两处 auto 把剩余高度对半分：文件选择落在窗中间，提交行贴底，
   上面接说明、下面接按钮，上下都有内容、中间不空一条。 */
.am-book .bf-file { margin-top: auto; }
.am-book .bf-foot { margin-top: auto; padding-top: 18px; }
@keyframes pnlSheet {
  from { opacity: 0; transform: translateY(44px); }
  to   { opacity: 1; transform: none; }
}
/* 手机横屏（矮视口）：贴底只剩一条缝，改回居中宽扁 */
@media (orientation: landscape) and (max-height: 500px) {
  .rm-panel, .bm-panel {
    left: 50%; right: auto; top: 50%; bottom: auto; transform: translate(-50%,-50%);
    width: min(92vw, 640px); max-height: 92vh;
    border-radius: 18px; border: 1px solid rgba(255,255,255,.16);
    padding: 20px 22px 18px;
    animation: amPop .3s cubic-bezier(.22,1,.36,1) both;
  }
  .rm-panel::before, .bm-panel::before { display: none; }
  /* 编号预览窗同样是贴底抽屉，横屏也跟着改回居中宽扁 */
  #vnPreview .ywm-panel.vn-panel {
    left: 50%; right: auto; top: 50%; bottom: auto; transform: translate(-50%,-50%);
    width: min(92vw, 640px); max-width: none; max-height: 92vh;
    border-radius: 18px; border: 1px solid rgba(255,255,255,.16);
    animation: amPop .3s cubic-bezier(.22,1,.36,1) both;
  }
  #vnPreview .ywm-panel.vn-panel::before { display: none; }
}
/* 模板舞台：背景铺满 + 个人主页栏目 mock */
.bm-stage { border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); }
.bm-page {
  --bm-accent: var(--accent);
  position: relative; min-height: 340px; padding: 14px 16px 20px;
  background-size: cover; background-position: center;
  display: flex; flex-direction: column; gap: 16px;
}
.bm-page::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,7,12,.42), rgba(4,7,12,.66)); }
.bm-nav, .bm-hero, .bm-tiles { position: relative; z-index: 1; }
.bm-nav { display: flex; align-items: center; justify-content: space-between; }
.bm-nav .bm-logo { font-size: 13.5px; font-weight: 800; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.bm-nav .bm-logo em { font-style: normal; color: var(--bm-accent); }
.bm-nav .bm-ava-s {
  width: 30px; height: 30px; border-radius: 50%; font-size: 16px;
  background: rgba(10,14,22,.72); border: 1px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
}
.bm-hero { text-align: center; padding: 14px 0 4px; }
.bm-ava {
  width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; font-size: 34px;
  background: rgba(10,14,22,.66); border: 1px solid rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.bm-nick { font-family: var(--font-serif); font-size: 19px; font-weight: 800; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.bm-meta { font-size: 12px; color: rgba(255,255,255,.85); margin-top: 4px; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.bm-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.bm-tile {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: rgba(10,14,22,.66); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 11px 4px 9px;
  font-size: 17px;
}
.bm-tile span { font-size: 11px; color: rgba(255,255,255,.85); }
.bm-tile:last-child { border-color: var(--bm-accent); }
.bm-foot { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.bm-foot .bm-info { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.bm-foot .bm-info b { font-family: var(--font-serif); font-size: 16px; color: #fff; }
.bm-foot .bm-info span { font-size: 13px; font-weight: 700; color: #ffce8f; }
.bm-foot .btn { margin-left: auto; }

/* ---------- 商品预览窗：手机端瘦身 ----------
   动效与「从下往上弹」的形态都不动，只把抽屉压低、内容收一档。
   原来是整屏一张大卡，手机上看又高又笨重；现在一屏能连带看到底部按钮。
   ★ 必须写在上面 .bm-* 基础样式之后，否则同权重会被盖回去。 */
@media (max-width: 759px) {
  .bm-panel {
    max-height: 84vh;
    padding: 14px 15px calc(14px + env(safe-area-inset-bottom));
  }
  .bm-panel::before { width: 34px; margin: -6px auto 10px; }
  .bm-title { font-size: 15.5px; margin-bottom: 2px; }
  .bm-sub { font-size: 11.5px; margin-bottom: 10px; padding-right: 28px; line-height: 1.5; }
  .bm-close { top: 8px; right: 10px; width: 30px; height: 30px; font-size: 15px; }
  .bm-stage { border-radius: 13px; }
  .bm-page { min-height: 234px; padding: 11px 13px 14px; gap: 11px; }
  .bm-nav .bm-logo { font-size: 11.5px; }
  .bm-nav .bm-ava-s { width: 24px; height: 24px; font-size: 13px; }
  .bm-hero { padding: 8px 0 2px; }
  .bm-ava { width: 46px; height: 46px; font-size: 24px; margin-bottom: 6px; }
  .bm-nick { font-size: 15.5px; }
  .bm-meta { font-size: 10.5px; margin-top: 3px; }
  .bm-tiles { gap: 6px; }
  .bm-tile { padding: 8px 3px 7px; border-radius: 9px; font-size: 14px; gap: 3px; }
  .bm-tile span { font-size: 9.5px; }
  .bm-foot { margin-top: 10px; gap: 10px; }
  .bm-foot .bm-info { gap: 8px; flex: 1; }
  .bm-foot .bm-info b { font-size: 14px; }
  .bm-foot .bm-info span { font-size: 12px; }
  .bm-foot .btn { padding: 9px 17px; font-size: 13px; min-height: 38px; }
}

/* ============ 每日签到榜（首页） ============ */
.signin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
@media (max-width: 640px) { .signin-grid { grid-template-columns: 1fr; } }
.signin-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.signin-card h4 { font-size: 15px; margin: 0 0 14px; }
.signin-card h4 span { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 8px; }
.rank-list { display: grid; gap: 8px; max-height: 340px; overflow-y: auto; }
.rank-row { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 9px 12px; }
.rank-row .rk { width: 26px; height: 26px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; background: rgba(255,255,255,.08); color: var(--text); }
.rank-row:nth-child(1) .rk { background: linear-gradient(135deg,#ffce6b,#ff9d6c); color: #2a1c00; }
.rank-row:nth-child(2) .rk { background: rgba(190,200,220,.32); color: #1a2230; }
.rank-row:nth-child(3) .rk { background: rgba(205,140,90,.38); color: #2a1400; }
.rank-row .rn { flex: 1; font-size: 14px; color: rgba(237,241,248,.92); min-width: 0; display: flex; align-items: center; gap: 6px; }
/* 名字长了只在名字上省略，后面的编号徽章始终完整 */
.rank-row .rn > .rn-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rank-row .rn > .vn-badge { flex: none; }
.rank-row .rv { font-size: 13px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.rank-empty { color: rgba(237,241,248,.5); font-size: 13px; text-align: center; padding: 14px 0; margin: 0; }

/* ============ 羊窝图书馆管理 / 删除申请箱 ============ */
.lib-manage-list, .del-req-list { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.lm-card, .dr-card {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 14px 16px; background: rgba(255,255,255,.04);
}
.lm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.lm-title { font-size: 16px; color: #fff; }
.lm-props { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: rgba(237,241,248,.72); margin-bottom: 8px; }
.lm-props span { background: rgba(255,255,255,.05); padding: 3px 8px; border-radius: 6px; }
.lm-content { margin: 6px 0 10px; }
.lm-content summary { cursor: pointer; font-size: 13px; color: var(--accent); user-select: none; }
.lm-chs { margin-top: 8px; font-size: 13px; color: rgba(237,241,248,.85); line-height: 1.7; max-height: 320px; overflow: auto; }
.lm-chs .lm-ch { margin-bottom: 10px; }
.lm-chs .lm-ch b { display: block; color: var(--accent-pale); margin-bottom: 4px; }
.lm-chs .lm-ch p { margin: 0 0 4px; }
.lm-more, .lm-chs .lm-more { color: rgba(237,241,248,.5); font-size: 12px; }
.lm-actions { display: flex; gap: 10px; margin-top: 6px; }
.lm-reason { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.lm-reason-input { flex: 1; min-width: 180px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.16); color: #fff; border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.lm-reason-input::placeholder { color: rgba(237,241,248,.45); }

/* ---------- 章节级更新面板（单章文件上传） ---------- */
.cu-box {
  margin-top: 12px; padding: 14px 16px;
  border: 1px solid rgba(110, 220, 168, .26);
  border-radius: 12px;
  background: rgba(80, 200, 150, .05);
}
.cu-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.cu-head b { font-size: 15px; color: #86e3b4; }
.cu-sub { font-size: 12.5px; color: rgba(237,241,248,.6); }
.cu-pickrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cu-fname { font-size: 12.5px; color: rgba(237,241,248,.72); word-break: break-all; }
.cu-tip { font-size: 12.5px; color: rgba(237,241,248,.55); line-height: 1.7; margin: 8px 0; }
.cu-tip.cu-err { color: #ff9b9b; }
.cu-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.cu-item {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 9px 12px; border-radius: 9px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.cu-it-main { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 3px; }
.cu-it-main b { font-size: 13.5px; color: #fff; font-weight: 600; }
.cu-it-meta { font-size: 11.5px; color: rgba(237,241,248,.55); line-height: 1.5; }
.cu-mode {
  flex: none; font-size: 12.5px; padding: 6px 10px; border-radius: 8px;
  background: rgba(0,0,0,.42); color: #eaeef5;
  border: 1px solid rgba(255,255,255,.16);
  outline: none; cursor: pointer; max-width: 240px;
}
.cu-mode:focus { border-color: rgba(110, 220, 168, .55); }
.cu-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.cu-stat { font-size: 12.5px; color: rgba(237,241,248,.62); }
.cu-catalog { margin-top: 12px; }
.cu-catalog summary { cursor: pointer; font-size: 12.5px; color: var(--accent); user-select: none; }
.cu-cat { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; max-height: 200px; overflow: auto; }
.cu-cat-i {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 4px 9px; border-radius: 7px;
  background: rgba(255,255,255,.05); color: rgba(237,241,248,.85);
}
.cu-cat-i i { font-style: normal; color: rgba(237,241,248,.45); font-variant-numeric: tabular-nums; }
.cu-cat-i em { font-style: normal; font-size: 11px; color: rgba(237,241,248,.42); }
@media (max-width: 560px) {
  .cu-item { align-items: flex-start; }
  .cu-mode { width: 100%; max-width: none; }
}
.dr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.dr-head b { color: #fff; font-size: 15px; }
.dr-time { font-size: 12px; color: rgba(237,241,248,.5); }
.dr-props { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: rgba(237,241,248,.72); margin-bottom: 6px; }
.dr-reason { font-size: 13px; color: rgba(237,241,248,.85); margin-bottom: 10px; }
.dr-actions { display: flex; gap: 10px; }

/* ============ 曦照巡察（aurora 专属 · 纯只读聚合总览） ============ */
.ins-sec { margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(255,255,255,.12); }
.ins-sec:first-of-type { border-top: none; padding-top: 0; }
.ins-h { font-size: 14px; margin: 0 0 10px; color: var(--accent-lit); font-weight: 700; letter-spacing: .3px; }
.ins-msg-list, .ins-act-list { display: flex; flex-direction: column; gap: 8px; }
.ins-msg { border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 9px 12px; background: rgba(255,255,255,.03); }
.ins-msg-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.ins-msg-meta b { color: #fff; font-size: 13.5px; }
.ins-msg-body { margin: 0; font-size: 13.5px; color: rgba(237,241,248,.85); line-height: 1.6; word-break: break-word; }
.ins-act { font-size: 13px; color: rgba(237,241,248,.82); background: rgba(255,255,255,.04); border-radius: 8px; padding: 7px 11px; }
.ins-act-up { color: var(--accent-pale); font-weight: 600; margin-right: 4px; }

/* ============ 曦照巡察 · 机密内容占位（隔离不可见） ============ */
.ins-secret-sec { border-top: 1px dashed rgba(255,80,80,.28); }
.ins-secret { display: flex; flex-direction: column; gap: 7px; }
.ins-secret-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(255,60,60,.06); border: 1px solid rgba(255,80,80,.22);
  border-radius: 9px; padding: 8px 11px;
}
.isr-name { font-size: 13px; color: rgba(237,241,248,.9); }
.isr-lock { font-size: 12px; color: #ff9d9d; font-weight: 700; white-space: nowrap; }
.ins-secret-note { font-size: 11.5px; color: rgba(237,241,248,.5); line-height: 1.6; margin-top: 2px; }

/* ============ 监视日志 · 实时追踪 / 在线状态 ============ */
.ml-realtime {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 14px 0 10px; padding: 9px 12px;
  background: rgba(120,220,140,.08); border: 1px solid rgba(120,220,140,.25);
  border-radius: 10px;
}
.ml-live-badge { font-size: 13px; font-weight: 700; color: #8ff0a8; }
.ml-online { font-size: 12.5px; color: rgba(237,241,248,.8); }
.ml-live {
  max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 5px;
  background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 16px;
}
.ml-live-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(237,241,248,.88); }
.ml-live-row .mll-dot { width: 6px; height: 6px; border-radius: 50%; background: #8ff0a8; flex: none; }
.ml-live-row b { font-weight: 600; }

/* ============ 首页 · 实时在线人数胶囊 ============ */
.online-pill-wrap { display: inline-flex; flex-direction: column; align-items: center; position: relative; pointer-events: auto; }
.online-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
  font-size: 13px; line-height: 1; font-weight: 700; color: #d8ffe2;
  background: linear-gradient(135deg, rgba(168,230,160,.22), rgba(120,200,130,.12));
  border: 1px solid rgba(168,230,160,.5);
  border-radius: 999px; padding: 5px 13px; margin-top: 5px; min-height: 32px;
  user-select: none; -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: 0 4px 16px rgba(80,200,110,.20), 0 0 0 0 rgba(150,230,160,.5);
  animation: pillPulse 2.8s ease-out infinite;
  transition: background .18s, transform .12s;
}
.online-pill:hover { background: linear-gradient(135deg, rgba(168,230,160,.32), rgba(120,200,130,.20)); transform: translateY(-1px); }
.online-pill:active { transform: translateY(0) scale(.97); }
.online-pill b { font-size: 14px; display: inline-block; }
#onlineCount.bump { animation: countBump .42s cubic-bezier(.34,1.56,.64,1); }
.pill-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #8fe39a;
  box-shadow: 0 0 8px rgba(120,220,140,.9); animation: dotPulse 1.8s ease-in-out infinite;
}
.online-pop {
  position: absolute; top: 100%; right: 0; z-index: 60; margin-top: 8px;
  min-width: 200px; max-width: 280px; max-height: 340px; overflow-y: auto;
  background: rgba(22, 44, 28, .62);
  backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(160, 230, 170, .24);
  border-radius: 14px; padding: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
  /* 在线人数多时会出现竖向滚动条。全站原本没写过滚动条样式，露出的是系统默认的
     浅灰粗条（深绿玻璃面板上非常割裂）。这里改成细条 + 半透明绿，跟面板同色系。
     写法说明：新版 Chrome(121+) 一旦设置标准的 scrollbar-width/color，就会忽略
     ::-webkit-scrollbar，所以要二选一 —— Chrome/Safari/Edge 走下面的伪元素，
     Firefox 走文件末尾的 @supports 兜底，两边都是「细条 + 绿色滑块 + 透明轨道」。
     overscroll-behavior: contain 防止滚到底时连带整页一起滚（手机端尤其明显）。 */
  overscroll-behavior: contain;
}
/* 滚动条外观：轨道透明不割裂背景；滑块半透明绿、比轨道细一圈，像浮在玻璃上 */
.online-pop::-webkit-scrollbar { width: 6px; height: 6px; }
.online-pop::-webkit-scrollbar-track { background: transparent; }
.online-pop::-webkit-scrollbar-thumb {
  background: rgba(150, 225, 165, .34);
  background-clip: padding-box;
  border: 1px solid transparent;
  border-radius: 999px;
}
.online-pop::-webkit-scrollbar-thumb:hover { background: rgba(150, 225, 165, .58); background-clip: padding-box; }
.online-pop::-webkit-scrollbar-corner { background: transparent; }
/* Firefox（不支持上面的伪元素）：用标准属性做等效外观 */
@supports not selector(::-webkit-scrollbar) {
  .online-pop {
    scrollbar-width: thin;
    scrollbar-color: rgba(150, 225, 165, .38) transparent;
  }
}
.op-title { font-size: 12px; color: #bff5c8; font-weight: 700; padding: 2px 6px 6px; border-bottom: 1px solid rgba(160,230,170,.16); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.op-dot { width: 7px; height: 7px; border-radius: 50%; background: #8fe39a; box-shadow: 0 0 7px #8fe39a; animation: dotPulse 1.8s ease-in-out infinite; }
.op-item { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 8px; cursor: pointer; transition: background .15s, transform .15s; }
.op-item:hover { background: rgba(150,230,160,.10); transform: translateX(2px); }
.op-item:active { transform: scale(.985); }
.op-ava { font-size: 17px; flex: none; }
.op-name { font-size: 14px; color: rgba(228,255,234,.92); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.op-page { font-size: 11.5px; color: rgba(210,240,216,.55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-empty { font-size: 12.5px; color: rgba(220,245,225,.6); padding: 8px 6px; text-align: center; }
@keyframes pillPulse {
  0%   { box-shadow: 0 4px 16px rgba(80,200,110,.20), 0 0 0 0 rgba(150,230,160,.5); }
  70%  { box-shadow: 0 4px 16px rgba(80,200,110,.20), 0 0 0 11px rgba(150,230,160,0); }
  100% { box-shadow: 0 4px 16px rgba(80,200,110,.20), 0 0 0 0 rgba(150,230,160,0); }
}
@keyframes dotPulse { 0%,100% { opacity:.5; transform: scale(.8); } 50% { opacity:1; transform: scale(1.15); } }
@keyframes countBump { 0%{transform:scale(1);} 40%{transform:scale(1.4);} 100%{transform:scale(1);} }

/* ============ 首页 · 在线胶囊挂载点（独立于导航栏，落在头像正下方） ============ */
/* 关键：导航 .nav 是 position:fixed（高 64px、z-index:100），#onlinePillHost 作为
   其后的首个普通流元素会贴到 top:0 被导航遮住 —— 这正是「胶囊直接不显示」的根因。
   改为 absolute 并 top:64px（移动端 54px），使其正好落在导航右侧头像正下方，
   且不挤占英雄区、不随导航层被盖住。 */
.online-pill-host {
  position: fixed;               /* 脱离导航栏：导航栏的 backdrop-filter 会裁剪凸出子元素，故胶囊必须相对视口定位 */
  top: 70px;                    /* 兜底位置：导航高 64px + 余量，落在头像/登录按钮正下方（JS 未对齐时也可见，绝不留白） */
  right: 16px;                  /* 兜底位置：对齐导航栏右侧内边距，正对头像 */
  z-index: 110;                 /* 高于导航(100)，确保永不被导航栏毛玻璃遮挡在背后 */
  pointer-events: none;         /* 容器本身不挡点击，按钮单独开启 */
  /* 当 presence.js 能精确读取到「登录/头像按钮」中心时，会改设 left + transform:translateX(-50%) 并清空 right，实现居中；
     读取失败（auth.js 异步未就绪）时，本兜底位置即生效，胶囊仍清晰可见。 */
}
/* 移动端导航高 54px，兜底位置略上收，避免离头像过远 */
@media (max-width: 640px) {
  .online-pill-host { top: 60px; right: 12px; }
  /* 手机屏幕矮，340px 的弹层会顶到屏幕中间：按视口高度收一收，最多占 46%，
     同时不让面板宽过屏幕（人名的「📍 所在页面」那行不会被挤断） */
  .online-pop {
    max-height: min(340px, 46vh);
    max-width: min(280px, calc(100vw - 24px));
  }
}
/* 桌面端：胶囊与弹窗适当放大，更醒目（手机端保持原尺寸避免拥挤） */
@media (min-width: 768px) {
  .online-pill { font-size: 14px; padding: 5px 14px; margin-top: 6px; gap: 3px; }
  .online-pill b { font-size: 16px; }
  .op-ava { font-size: 18px; }
  .op-name { font-size: 14px; }
  .op-page { font-size: 11.5px; }
}

/* ============ 用户身份总管理 · 封禁标记 ============ */
.mt-row.is-banned { background: rgba(192,24,43,.10); }
.mt-tag-ban {
  background: rgba(192,24,43,.16);
  color: #ff6b7d;
  border: 1px solid rgba(192,24,43,.45);
}

/* ============ 封号全屏页（全局拦截） ============ */
html.yw-banned { overflow: hidden; }
.yw-ban-screen {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  background: #b3101f;
  background: radial-gradient(circle at 50% 36%, #e11d2f 0%, #b3101f 58%, #7e0a16 100%);
  color: #fff; text-align: center; padding: 24px;
  -webkit-overflow-scrolling: touch;
}
.yw-ban-inner {
  max-width: 92vw; display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: ywBanIn .7s cubic-bezier(.22,1,.36,1) both;
}
/* 干净利落的「禁止」标记：纯 CSS 绘制，替代 🈲 方块字，更精致不突兀 */
.yw-ban-mark {
  position: relative; width: clamp(86px, 23vw, 150px); aspect-ratio: 1/1;
  border-radius: 50%; border: clamp(7px,2.2vw,13px) solid #fff;
  box-shadow: 0 14px 38px rgba(0,0,0,.45), inset 0 0 0 2px rgba(0,0,0,.12);
}
.yw-ban-mark::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 138%; height: clamp(7px,2.2vw,13px); border-radius: 99px; background: #fff;
  transform: translate(-50%,-50%) rotate(-45deg);
  box-shadow: 0 2px 7px rgba(0,0,0,.35);
}
.yw-ban-mark::before {
  content: ""; position: absolute; inset: -16%; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.30);
  animation: ywBanRing 2.6s ease-out infinite;
}
.yw-ban-text { margin-top: 18px; text-align: center; line-height: 1.5; }
.yw-ban-title {
  font-size: clamp(20px, 5.4vw, 34px); font-weight: 800; letter-spacing: 1.5px;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.yw-ban-sub {
  margin-top: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: clamp(13px, 3.6vw, 17px); font-weight: 500; line-height: 1.6;
  color: rgba(255,255,255,.87); letter-spacing: .4px;
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}
.yw-ban-logout {
  margin-top: 38px; color: rgba(255,255,255,.82); font-size: 14px;
  text-decoration: underline; opacity: .8; transition: opacity .2s;
}
.yw-ban-logout:hover { opacity: 1; }
@keyframes ywBanIn {
  0%   { opacity: 0; transform: translateY(16px) scale(.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ywBanRing {
  0%   { opacity: .55; transform: scale(.92); }
  70%  { opacity: 0;   transform: scale(1.22); }
  100% { opacity: 0;   transform: scale(1.22); }
}

/* ================= 双站入口海报 ================= */
.site-switch {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5.6vw, 60px) clamp(20px, 4.6vw, 52px);
  border: 1px solid var(--line);
  border-radius: 26px;
  text-align: center;
  background:
    radial-gradient(760px 360px at 10% -20%, rgba(var(--accent-rgb), .24), transparent 62%),
    radial-gradient(680px 340px at 94% 124%, rgba(var(--accent-2-rgb), .22), transparent 62%),
    linear-gradient(158deg, var(--card-2), var(--card));
  box-shadow: var(--shadow);
}
.site-switch::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 38%);
}
.ss-kicker {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.ss-title {
  font-family: var(--font-serif);
  font-size: clamp(25px, 4.2vw, 40px);
  line-height: 1.3;
  margin: 12px 0 10px;
  color: var(--text);
}
.ss-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.ss-desc {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 560px;
  margin: 0 auto 30px;
}
.ss-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}
.ss-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 22px 22px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.ss-card:hover {
  opacity: 1;
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), .5);
  background: rgba(var(--accent-rgb), .08);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .35);
}
.ss-badge {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: 999px;
  color: #8ecbff;
  background: rgba(var(--accent-rgb), .16);
  border: 1px solid rgba(var(--accent-rgb), .3);
}
.ss-mirror .ss-badge {
  color: var(--accent-2-pale);
  background: rgba(var(--accent-2-rgb), .16);
  border-color: rgba(var(--accent-2-rgb), .32);
}
.ss-card b {
  margin-top: 6px;
  font-size: clamp(15px, 2.2vw, 19px);
  color: var(--text);
  word-break: break-all;
  letter-spacing: .01em;
}
.ss-note {
  font-size: 12.5px;
  color: var(--muted);
}
.ss-go {
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
}
.ss-mirror .ss-go { color: var(--accent-2-pale); }
.ss-go i {
  display: inline-block;
  font-style: normal;
  transition: transform .2s ease;
}
.ss-card:hover .ss-go i { transform: translateX(4px); }

@media (max-width: 640px) {
  .ss-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   登录页 · 已登录状态（不再显示登录表单）
   ============================================================ */
.lp-inner.is-signed .lp-form,
.lp-inner.is-signed .auth-switch,
.lp-inner.is-signed .auth-note { display: none !important; }
.lp-signed {
  display: none; flex-direction: column; align-items: stretch;
  gap: 12px; margin-top: 4px;
}
.lp-signed-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px; text-align: left;
  background: rgba(10,14,22,.62);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.lp-signed-ava {
  width: 42px; height: 42px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--accent-rgb),.28), rgba(var(--accent-2-rgb),.26));
  border: 1px solid rgba(255,255,255,.18);
}
.lp-signed-txt { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.lp-signed-txt b { color: #fff; font-size: 15px; }
.lp-signed-txt i {
  color: rgba(237,241,248,.68); font-size: 12.5px; font-style: normal;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lp-signed-btn { width: 100%; justify-content: center; }

/* ============================================================
   个人主页 · 背景按图片原始比例展示 + 横屏排版
   ------------------------------------------------------------
   回滚基准（改动前）：.lp-bg 为 background-size: cover（手机竖屏还会被内联
   lib_suzhou 横图覆盖，导致裁切严重）；.lp-inner 内联 max-width:680px；
   .acct-wrap max-width:640px；单列。
   ============================================================ */

/* 1) 背景：主层 contain（原图 1536×931 ≈ 1.65 横屏，不变形、不裁切）
      固定到视口：页面很长时背景不跟着拉成一张巨图，原比例才稳得住
      宽度用 100vw 而不是 inset:0 —— 垂直滚动条会占掉 15px 的布局宽度，
      用 inset:0 时那 15px 永远铺不到，屏幕右侧就有一条黑竖条 */
body.acct-page .lp-bg {
  position: fixed; top: 0; left: 0;
  right: auto; bottom: auto;
  width: 100vw; height: 100vh;
}
body.acct-page #acctBg {
  background-image: var(--acct-bg, url(../img/lib_suzhou.webp?v=3));
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #04060a;
  /* 上下边缘柔和淡出，避免「一条硬边照片」贴黑底 */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
}
/* 2) 背景垫层：同一张图铺满 + 模糊，填掉 contain 留下的上下留白 */
body.acct-page #acctBgBlur {
  z-index: -3;
  background-image: var(--acct-bg, url(../img/lib_suzhou.webp?v=3));
  background-size: cover;
  background-position: center center;
  filter: blur(34px) saturate(1.05) brightness(.5);
  transform: scale(1.08);
}

/* ------------------------------------------------------------
   宽窗口补丁：contain 是「等比完整显示、不裁切」，
   所以只要窗口比原图更扁（宽高比 > 1536/931 ≈ 1.65），
   左右必然留白 —— 而 #acctBg 原来压着一层不透明底色 #04060a，
   把下面本该填满的模糊垫层完全遮死，屏幕上就是两条纯黑竖边。
   这里只在那种比例下放行：底色透明 + 左右也柔和淡出，
   留白交给 #acctBgBlur 铺满，照片边缘融进模糊底，没有硬分界。
   手机竖屏和标准比例窗口不满足条件，观感保持原样。
   ------------------------------------------------------------ */
@media (min-aspect-ratio: 166/100) {
  body.acct-page #acctBg {
    background-color: transparent;
    -webkit-mask-image:
      linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%),
      linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%),
      linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-composite: intersect;
  }
  /* 垫层要够亮，不然照片两侧会压出一条暗带 */
  body.acct-page #acctBgBlur { filter: blur(34px) saturate(1.05) brightness(.72); }
}
/* 更扁的窗口（21:9、超宽屏）：左右留白占到 15% 以上，
   羽化区跟着放大，否则照片边缘会跟模糊底切出一条竖线 */
@media (min-aspect-ratio: 210/100) {
  body.acct-page #acctBg {
    -webkit-mask-image:
      linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%),
      linear-gradient(to right, transparent 0, #000 18%, #000 82%, transparent 100%);
    mask-image:
      linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%),
      linear-gradient(to right, transparent 0, #000 18%, #000 82%, transparent 100%);
  }
}

/* 3) 容器：手机单列窄版，电脑端放宽成横屏比例 */
.acct-inner { max-width: 680px; }
body.acct-page .acct-wrap { max-width: 640px; }

@media (min-width: 900px) {
  .acct-inner { max-width: 980px; }
  body.acct-page .acct-wrap { max-width: 820px; }
  /* 电脑端也是单列流式布局：不用 grid，任何一块都不可能被并排放到同一行 */
  body.acct-page #acctMain:not(.is-hidden) { display: block; }
  body.acct-page #acctMain > * + * { margin-top: 18px; }
  body.acct-page .acct-action { padding: 24px 26px; }
  body.acct-page .acct-avatar { width: 96px; height: 96px; font-size: 48px; }
}

/* 4) 进场：去掉逐块错位动画，整块一次性淡入，避免「先空 → 撑开 → 再变一次」 */
body.acct-page .acct-head,
body.acct-page .acct-action,
body.acct-page .acct-sec,
body.acct-page .acct-foot,
body.acct-page .acct-agree { animation: none !important; }
.is-hidden { display: none !important; }
#acctMain.acct-in { animation: acctIn .38s cubic-bezier(.22,1,.36,1) both; }
@keyframes acctIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* 手机竖屏：横图放到顶部（头像/昵称正好压在图上），下方淡出到深色。
   关键三点（以前这里下面是一大片黑）：
     1. 底色必须透明 —— 不然 contain 留下的空白被 #04060a 涂死，虚化层透不上来；
     2. 虚化层提亮（brightness .5 → .9）并放大，让下半屏是「这张图自己的颜色」；
     3. 图到 44% 才开始淡出，再叠一层向下加深的渐变，形成 清晰 → 虚化 → 深色 的自然过渡。 */
@media (max-width: 640px) {
  /* 竖屏专用：每张背景都配了一张竖版壁纸（*_p.jpg，900×1950，比例贴着手机屏）。
     照片在竖版图里已经占了大半屏，上下是同色调的柔和延续，
     所以这里只要 cover 铺满即可 —— 不再需要遮罩羽化、也不需要用实时模糊补下半屏。
     变量 --acct-bg-m 由 account.js 按当前背景设置；没配竖版的老背景自动回落到横图。
     ⚠️ 这一整段只在 ≤640px 生效，电脑端不受任何影响。 */
  body.acct-page #acctBg {
    background-image: var(--acct-bg-m, url(../img/lib_suzhou_p.webp?v=2));
    background-size: cover;
    background-position: center top;
    background-color: #04060a;
    -webkit-mask-image: none;
    mask-image: none;
  }
  /* 竖版图自带过渡，这层实时模糊在手机上没用了，关掉省 GPU */
  body.acct-page #acctBgBlur { display: none; }
  /* 只把顶部压一点，保证导航栏白色文字在亮图上能看清 */
  body.acct-page #acctBg::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to bottom,
      rgba(4, 6, 10, .5) 0,
      rgba(4, 6, 10, 0) 9%,
      rgba(4, 6, 10, 0) 100%);
  }
}

/* ============================================================
   内嵌滚动容器 · 统一滚动条
   ------------------------------------------------------------
   全站原本没写过滚动条样式，凡是 overflow:auto 的深色卡片/弹窗，
   内容一多就露出系统默认的浅灰粗条（在深色玻璃上非常割裂）。
   这里统一成「细条 + 半透明 + 跟随主题色」：买了暖金就是金条，
   默认蓝就是蓝条，和 --accent 体系保持一致。
   注意：只作用于内嵌容器，不动 html/body 的页面主滚动条。
   ============================================================ */
.record-list, .reader-side, .bs-list, .ml-list, .ml-live,
.rank-list, .lm-chs, .rm-panel, .bm-panel, .am-panel {
  overscroll-behavior: contain;
}
.record-list::-webkit-scrollbar, .reader-side::-webkit-scrollbar,
.bs-list::-webkit-scrollbar, .ml-list::-webkit-scrollbar, .ml-live::-webkit-scrollbar,
.rank-list::-webkit-scrollbar, .lm-chs::-webkit-scrollbar,
.rm-panel::-webkit-scrollbar, .bm-panel::-webkit-scrollbar, .am-panel::-webkit-scrollbar {
  width: 6px; height: 6px;
}
.record-list::-webkit-scrollbar-track, .reader-side::-webkit-scrollbar-track,
.bs-list::-webkit-scrollbar-track, .ml-list::-webkit-scrollbar-track, .ml-live::-webkit-scrollbar-track,
.rank-list::-webkit-scrollbar-track, .lm-chs::-webkit-scrollbar-track,
.rm-panel::-webkit-scrollbar-track, .bm-panel::-webkit-scrollbar-track, .am-panel::-webkit-scrollbar-track {
  background: transparent;
}
.record-list::-webkit-scrollbar-thumb, .reader-side::-webkit-scrollbar-thumb,
.bs-list::-webkit-scrollbar-thumb, .ml-list::-webkit-scrollbar-thumb, .ml-live::-webkit-scrollbar-thumb,
.rank-list::-webkit-scrollbar-thumb, .lm-chs::-webkit-scrollbar-thumb,
.rm-panel::-webkit-scrollbar-thumb, .bm-panel::-webkit-scrollbar-thumb, .am-panel::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-lit-rgb), .30);
  background-clip: padding-box;
  border: 1px solid transparent;
  border-radius: 999px;
}
.record-list::-webkit-scrollbar-thumb:hover, .reader-side::-webkit-scrollbar-thumb:hover,
.bs-list::-webkit-scrollbar-thumb:hover, .ml-list::-webkit-scrollbar-thumb:hover, .ml-live::-webkit-scrollbar-thumb:hover,
.rank-list::-webkit-scrollbar-thumb:hover, .lm-chs::-webkit-scrollbar-thumb:hover,
.rm-panel::-webkit-scrollbar-thumb:hover, .bm-panel::-webkit-scrollbar-thumb:hover, .am-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--accent-lit-rgb), .52);
  background-clip: padding-box;
}
.record-list::-webkit-scrollbar-corner, .reader-side::-webkit-scrollbar-corner,
.bs-list::-webkit-scrollbar-corner, .ml-list::-webkit-scrollbar-corner, .ml-live::-webkit-scrollbar-corner,
.rank-list::-webkit-scrollbar-corner, .lm-chs::-webkit-scrollbar-corner,
.rm-panel::-webkit-scrollbar-corner, .bm-panel::-webkit-scrollbar-corner, .am-panel::-webkit-scrollbar-corner {
  background: transparent;
}
/* Firefox 兜底（不支持上面的伪元素） */
@supports not selector(::-webkit-scrollbar) {
  .record-list, .reader-side, .bs-list, .ml-list, .ml-live,
  .rank-list, .lm-chs, .rm-panel, .bm-panel, .am-panel {
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--accent-lit-rgb), .34) transparent;
  }
}

/* ============================================================
   内嵌滚动条 · 全站默认值
   ------------------------------------------------------------
   上面那套是「逐个数名字」的，漏一个就露一次系统粗灰条：
   收件箱里的更新日志详情（.yw-nf-detail）、收件箱列表（.yw-nf-list）
   就是这么漏掉的 —— 在深色小窗右侧突然出现一条浅灰槽，跟网站完全不搭。
   与其继续补名字，不如给它一个全站默认：任何元素只要自己滚，
   就自动是这条细条。html / body 的主滚动条后面用 !important 钉成
   0 宽，这里抢不走它。
   注意：标准属性 scrollbar-color 只能写在 Firefox 分支里 ——
   Chrome 121+ 一旦吃到 scrollbar-color 就整个忽略 ::-webkit-scrollbar，
   反而退回粗条。
   ============================================================ */
*::-webkit-scrollbar { width: 7px; height: 7px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-lit-rgb), .30);
  background-clip: padding-box;
  border: 1px solid transparent;
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--accent-lit-rgb), .52);
  background-clip: padding-box;
}
*::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: rgba(var(--accent-lit-rgb), .34) transparent; }
}

/* ============================================================
   全站隐藏「窗口主滚动条」
   ------------------------------------------------------------
   上面那套规则只美化了内嵌容器，窗口右侧那条宽 15px 的系统滚动条
   一直是浏览器原样：浅灰粗槽，压在全屏背景图上非常割裂，而且
   改色改不动 —— Chrome 121+ 一设 scrollbar-color 就会忽略
   ::-webkit-scrollbar（两边只能二选一），且不管怎么调色，它仍然
   实实在在占掉 15px 布局宽度。

   这里直接让它「不绘制 + 不占位」：
     · scrollbar-width: none       → Firefox / 新版 Chrome
     · ::-webkit-scrollbar 宽高 0  → Safari / 旧 Chrome / Edge
     · -ms-overflow-style: none    → 老 Edge / IE 兜底
   滚动能力完全保留：滚轮、触控板双指、方向键、空格、PgUp/PgDn、
   手机上单指滑动都不受影响，只是看不见那条灰槽。

   附带好处：视口宽度不再被吃掉 15px，100vw 与 100% 从此相等，
   个人主页那种「背景宽度差 1px 露黑边」的问题从根上消失了。

   注意：只针对窗口本身（html / body）。弹窗、阅读页目录、
   排行榜这些内嵌容器仍保留细条（见上方 .record-list 一整套），
   否则长列表会让人不知道下面还有内容。
   ============================================================ */
html, body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}
/* 极少数浏览器（旧版 Safari）会为伪元素仍留一条空轨 */
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track { background: transparent !important; }
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb { background: transparent !important; }

/* ============================================================
   兑换码生成（羊窝执法 · 仅羊主人可见的卡片）
   ============================================================ */
.rcm-form { margin-top: 6px; }
.rcm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.rcm-fld { display: block; }
.rcm-fld > span { display: block; font-size: 12px; color: rgba(237,241,248,.56); margin-bottom: 6px; }
.rcm-fld input {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.13);
  color: #eaf1ff; font-family: inherit; font-size: 14px;
}
.rcm-fld input::placeholder { color: rgba(237,241,248,.32); }
.rcm-fld input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .14);
}
.rcm-wide { margin-bottom: 12px; }

.rcm-items { display: flex; flex-wrap: wrap; gap: 7px; }
.rcm-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.13);
  color: #e6eefc; font-family: inherit; font-size: 12.5px;
  transition: background .18s, border-color .18s, color .18s;
}
.rcm-chip em { font-style: normal; font-size: 11px; color: rgba(237,241,248,.45); }
.rcm-chip:hover { border-color: rgba(var(--accent-rgb), .4); }
.rcm-chip.sel {
  background: rgba(var(--accent-rgb), .18);
  border-color: rgba(var(--accent-rgb), .62);
  color: #fff;
}
.rcm-chip.sel em { color: rgba(255,255,255,.72); }
.rcm-none { font-size: 12.5px; color: rgba(237,241,248,.45); }

.rcm-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.rcm-out {
  display: none; margin-top: 14px; padding: 16px 18px; border-radius: 14px;
  background: rgba(74,222,128,.07); border: 1px solid rgba(74,222,128,.26);
}
.rcm-out.show { display: block; }
.rcm-codes-h {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-size: 13px; color: #b6f7cf; margin-bottom: 10px;
}
.rcm-copy-all, .rcm-copy, .rcm-mini {
  padding: 5px 11px; border-radius: 8px; cursor: pointer;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  color: #dbe7fa; font-family: inherit; font-size: 12px; white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s;
}
.rcm-copy-all:hover, .rcm-copy:hover, .rcm-mini:hover {
  background: rgba(var(--accent-rgb), .22);
  border-color: rgba(var(--accent-rgb), .5);
}
.rcm-copy.done, .rcm-copy-all.done {
  background: rgba(74,222,128,.24); border-color: rgba(74,222,128,.55); color: #c9ffdf;
}

.rcm-codes { display: grid; gap: 7px; }
.rcm-code {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 13px; border-radius: 10px;
  background: rgba(0,0,0,.26); border: 1px dashed rgba(255,255,255,.14);
}
.rcm-code code {
  font-family: ui-monospace, Consolas, monospace; font-size: 15px;
  letter-spacing: 2px; color: #ffe6a8; font-weight: 700;
}
.rcm-tip { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: rgba(237,241,248,.5); }

.rcm-list { margin-top: 14px; }
.rcm-tbl { display: grid; gap: 8px; }
.rcm-row {
  padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.042); border: 1px solid rgba(255,255,255,.1);
}
.rcm-row-main { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.rcm-row-main code {
  font-family: ui-monospace, Consolas, monospace; font-size: 14.5px;
  letter-spacing: 1.6px; color: #ffe6a8; font-weight: 700;
}
.rcm-state { font-size: 11px; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.rcm-state.ok { color: #9ff0bd; background: rgba(74,222,128,.14); border: 1px solid rgba(74,222,128,.34); }
.rcm-state.done { color: #ffd79a; background: rgba(255,190,90,.13); border: 1px solid rgba(255,190,90,.32); }
.rcm-state.off { color: rgba(237,241,248,.5); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.rcm-row-desc { font-size: 13px; color: #e8eefb; margin-bottom: 5px; }
.rcm-row-desc b { color: #ffd98a; }
.rcm-row-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; color: rgba(237,241,248,.5); }
.rcm-note { color: #9fd0ff; }
.rcm-row-act { display: flex; gap: 7px; margin-top: 9px; flex-wrap: wrap; }
.rcm-danger { color: #ffb3b3; }
.rcm-danger:hover { background: rgba(255,90,90,.22) !important; border-color: rgba(255,90,90,.5) !important; }

@media (max-width: 640px) {
  .rcm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rcm-code code { font-size: 13.5px; letter-spacing: 1.2px; }
}

/* ============================================================
   v102 · 忘记密码 / 重设密码
   ============================================================ */

/* 登录表单里「忘记密码」那一行：右对齐的小链接，只在登录模式出现 */
.lp-forgot {
  margin: -4px 0 17px;
  text-align: right;
  line-height: 1.2;
}
.lp-forgot a {
  font-size: 13px;
  color: var(--accent-lit);
  text-decoration: none;
  border-bottom: 1px dashed rgba(var(--accent-lit-rgb), .45);
  padding-bottom: 1px;
  transition: color .18s, border-color .18s;
}
.lp-forgot a:hover {
  color: var(--accent-pale);
  border-bottom-color: var(--accent-pale);
}

/* 重设成功后的提示卡 */
.rp-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 22px 18px 4px;
  text-align: center;
}
.rp-done-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 700;
  color: #08130c;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(123, 201, 139, .13);
  margin-bottom: 2px;
}
.rp-done b { font-size: 17px; color: var(--text); }
.rp-done p { margin: 0; font-size: 13px; color: var(--muted); }
.rp-done .btn { margin-top: 10px; }

@media (max-width: 640px) {
  .lp-forgot { margin: -2px 0 12px; }
  .lp-forgot a { font-size: 12.5px; }
}

/* ============================================================
   v103 · 羊窝执法：权益卡片改成小窗
   视觉完全对齐主页（account.html）那套弹窗，参数照抄：
     .am-mask  → rgba(3,5,9,.72) + blur(6px)
     .am-panel → rgba(13,18,28,.96) / 圆角 18px / 内边距 26·24 /
                 阴影 0 24px 80px / amPop 缩放淡入
   卡片留在列表里只显示一行（图标、标题、打开按钮），
   点开时整张卡片被搬到 body 下变成 .is-modal。
   ============================================================ */

/* 窗口开着时锁住背后页面的滚动 */
body.police-modal-open { overflow: hidden; }

/* 卡片本体在窗口模式下 = 全屏遮罩 */
.benefit-card.is-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(3, 5, 9, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 0;
  border-radius: 0;
  overflow: auto;
  animation: bwFade .25s ease both;
}
.benefit-card.is-modal:hover { border-color: transparent; }
.benefit-card.is-modal .bc-head { display: none; }

/* 窗口本体：与 .am-panel 同一套参数 */
.benefit-card.is-modal .bc-body {
  position: relative;
  display: flex;
  flex-direction: column;
  width: var(--yw-modal-w);
  max-height: 86vh;
  padding: 0;
  background: rgba(13, 18, 28, .96);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
  overflow: hidden;
  animation: bwPop .32s cubic-bezier(.22, 1, .36, 1) both;
}

/* 内容区吃掉窗口剩下的高度，并且短内容在带内垂直居中：
   标题贴顶、内容居中、底部不留一条空带；内容多时照常滚动。
   用 safe center —— 内容比带高时退回顶端对齐，不会被切掉开头。 */
.bw-panel {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column;
  justify-content: flex-start;
}
/* 开头的说明文字贴顶，剩下的内容靠底：内容少时窗里是「上标题 + 下内容」，
   而不是上半截排满、下半截空一条（内容多时没有多余空间，自动恢复常规流式）。 */
.bw-panel > .ws-sub:first-child { margin-bottom: auto; }
.bc-body { justify-content: flex-start; }

/* 标题行 */
.bw-head { flex: none; padding: 24px 24px 4px; }
.bw-head h3 {
  margin: 0;
  padding-right: 44px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bw-ico { font-size: 17px; line-height: 1; }

/* 关闭键：与 .am-close 一致 */
.bw-x {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(237, 241, 248, .8);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: .2s;
  z-index: 2;
}
.bw-x:hover { background: rgba(255, 255, 255, .16); color: #fff; }

/* 内容区 */
.bw-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 24px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .18) transparent;
}
.bw-panel::-webkit-scrollbar { width: 10px; }
.bw-panel::-webkit-scrollbar-track { background: transparent; }
.bw-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .16);
  border: 3px solid transparent;
  border-radius: 99px;
  background-clip: padding-box;
}
.bw-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, .3);
  background-clip: padding-box;
}

@keyframes bwFade { from { opacity: 0; } }
@keyframes bwPop {
  from { opacity: 0; transform: scale(.96) translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  /* 手机端改成和其他小窗一致的「贴底抽屉」：
     以前这里是居中的悬空窗（94vw × 88vh），和积分/我拥有的/兑换码那套完全不是一种形态，
     同一个人在同一台手机上会看到两种弹窗规矩。现在统一贴底、默认 52vh、按住横条可上下拖。 */
  .benefit-card.is-modal {
    align-items: flex-end;
    padding: 0;
  }
  .benefit-card.is-modal .bc-body {
    width: 100%; max-width: none;
    height: var(--am-sheet-h, 52vh); max-height: 92vh;
    border-radius: 22px 22px 0 0;
    border-left: none; border-right: none; border-bottom: none;
    animation: amSheet .3s cubic-bezier(.22, 1, .36, 1) both;
    overscroll-behavior: contain;
  }
  /* 顶部那条横线（和别的抽屉同款），.bc-body 本身是 flex 纵向，直接当一个块塞进去 */
  .benefit-card.is-modal .bc-body::before {
    content: ""; flex: none;
    width: 38px; height: 4px; border-radius: 99px;
    background: rgba(255, 255, 255, .22);
    margin: 10px auto 0;
  }
  /* 关闭键压在抓握条之上，否则点 ✕ 会被当成拖拽起点 */
  .bw-x { z-index: 5; }
  .bw-head { padding: 14px 18px 2px; }
  .bw-head h3 { font-size: 16px; padding-right: 40px; }
  .bw-x { top: 12px; right: 10px; }
  .bw-panel { padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .benefit-card.is-modal,
  .benefit-card.is-modal .bc-body { animation: none; }
}

/* ============================================================
   v104 · 小窗滚动锁：窗口开着时，别让滚轮带着背后那一层页面跑
   ------------------------------------------------------------
   只锁 html / body，不碰页面自己的 overflow，也不影响窗口内部；
   窗口里那些自带滚动的容器（.bw-panel / .am-panel …）照常能滚，
   滚到底了也不会“传染”给后面那一层（overscroll-behavior:contain）。
   事件层的兜底在 assets/js/scroll-lock.js（iOS 忽略 overflow:hidden 时靠它）。
   ============================================================ */

html.yw-lock,
body.yw-lock {
  overflow: hidden !important;
  overscroll-behavior: none;
}
html.yw-lock body { overflow: hidden !important; }

/* 窗口内部的滚动容器：自己的滚动自己消化 */
.bw-panel,
.am-panel,
.rm-panel,
.bm-panel,
.lm-chs,
.rank-list {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* 遮罩层本身也可能滚（窗口比屏幕高时），同样别把滚动传出去 */
.benefit-card.is-modal,
.acct-modal,
.rank-modal,
.bgprev-modal {
  overscroll-behavior: contain;
}

/* ===== 我的作品 · 作者中心（my-books.html） ===== */
.mb-note {
  font-size: 12.5px; line-height: 1.75; color: rgba(237, 241, 248, .66);
  background: rgba(255, 255, 255, .045);
  border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 10px 13px; margin: 14px 0 18px;
}
.mb-stat { color: var(--accent-pale) !important; }
#mbList .lm-card { margin-bottom: 14px; }
#mbList .bs-empty { padding: 26px 0; text-align: center; }

/* ===== 通用弹窗（图书馆上传 / 通用小窗） ===== */
.yw-modal { position: fixed; inset: 0; z-index: 240; display: none; }
.yw-modal.open { display: block; }
body.modal-open { overflow: hidden; }
.ywm-mask {
  position: absolute; inset: 0; background: rgba(3, 5, 9, .74);
  backdrop-filter: blur(7px); animation: ywmFade .22s ease both;
}
.ywm-panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: var(--yw-modal-w); max-height: 88vh; overflow-y: auto;
  background: rgba(13, 18, 28, .97);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 20px;
  box-shadow: 0 26px 90px rgba(0, 0, 0, .62);
  animation: ywmPop .3s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes ywmFade { from { opacity: 0; } }
@keyframes ywmPop {
  from { opacity: 0; transform: translate(-50%, -46%) scale(.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.ywm-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 17px 20px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.ywm-title { font-size: 16px; color: #fff; font-weight: 700; }
.ywm-x {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(237, 241, 248, .85); font-size: 15px; cursor: pointer; line-height: 1;
  transition: .2s;
}
.ywm-x:hover { background: rgba(255, 255, 255, .17); color: #fff; }
.ywm-body { padding: 18px 20px 20px; }

/* ===== 上传表单（弹窗内，一屏看完） ===== */
.up-gate { padding: 26px 6px; text-align: center; font-size: 13.5px; color: rgba(237, 241, 248, .72); line-height: 1.8; }
.up-gate a { color: var(--accent); }
.up-loading { padding: 26px 6px; text-align: center; font-size: 13px; color: rgba(237, 241, 248, .55); }

.up-drop {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 28px 18px; border-radius: 14px; cursor: pointer; text-align: center;
  border: 1.5px dashed rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .028);
  transition: border-color .2s, background .2s;
}
.up-drop:hover, .up-drop.drag { border-color: var(--accent); background: rgba(var(--accent-rgb), .07); }
.up-drop-ico { font-size: 26px; line-height: 1; }
.up-drop b { font-size: 14px; color: #fff; font-weight: 600; }
.up-drop small { font-size: 11.5px; color: rgba(237, 241, 248, .5); line-height: 1.65; max-width: 320px; }

.up-file {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  padding: 10px 12px; border-radius: 11px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
}
.up-file-ico { font-size: 17px; flex: none; }
.up-file-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.up-file-info b { font-size: 13px; color: #fff; font-weight: 600; word-break: break-all; }
.up-file-info span { font-size: 11.5px; color: rgba(237, 241, 248, .55); }
.up-file-x {
  width: 26px; height: 26px; border-radius: 50%; flex: none; cursor: pointer;
  background: rgba(255, 255, 255, .08); border: none; color: rgba(237, 241, 248, .7);
  font-size: 12px; line-height: 1;
}
.up-file-x:hover { background: rgba(255, 120, 120, .2); color: #ffc0c0; }

.up-meta { margin-top: 10px; font-size: 12.5px; color: rgba(147, 224, 190, .92); line-height: 1.65; }
.up-meta:empty { display: none; }
.up-hint { margin-top: 10px; font-size: 12.5px; color: #ff8a9b; line-height: 1.7; }
.up-hint:empty { display: none; }
.up-hint::before { content: "⚠ "; }
.up-note { margin-top: 14px; font-size: 11.5px; color: rgba(237, 241, 248, .42); line-height: 1.65; }

.up-anon {
  display: flex; align-items: center; gap: 8px; margin-top: 14px;
  font-size: 12.5px; color: rgba(237, 241, 248, .7); cursor: pointer; user-select: none;
}
.up-anon input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }

.up-foot { display: flex; gap: 10px; margin-top: 18px; }
.up-foot .up-cancel {
  flex: 0 0 auto; padding: 11px 18px; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(237, 241, 248, .8); font-size: 13.5px;
}
.up-foot .up-cancel:hover { background: rgba(255, 255, 255, .13); color: #fff; }
.up-foot .up-submit {
  flex: 1; padding: 11px 18px; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-pale, var(--accent)));
  border: none; color: #06202a; font-size: 14px; font-weight: 700;
  transition: transform .15s, box-shadow .2s, opacity .2s;
}
.up-foot .up-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(var(--accent-rgb), .38); }
.up-foot .up-submit:disabled { opacity: .55; cursor: default; }

@media (max-width: 560px) {
  .ywm-panel { width: 94vw; max-height: 90vh; }
  .ywm-head { padding: 15px 16px 12px; }
  .ywm-body { padding: 15px 16px 17px; }
  .up-drop { padding: 22px 14px; }
}
/* hidden 属性对设了 display 的元素不生效，这里显式兜住 */
.up-file[hidden] { display: none !important; }
.up-drop[hidden] { display: none !important; }

/* ===== 页面返回过渡：点下去先淡一下，再导航，避免「点了没动静」 ===== */
html.is-leaving body { opacity: .28; transition: opacity .14s ease; }
html.is-leaving .nav-back { pointer-events: none; transform: scale(.94); }
.nav-back { transition: transform .15s ease, opacity .15s ease; }

/* ===== 执法数据大屏：柱子下面的三格实况 ===== */
#policeScreen { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-end; }
#policeScreen .wk { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--muted); line-height: 1.2; }
#policeScreen .wk b { font-size: 18px; color: var(--accent); font-weight: 700; }

/* ===== 投票：我投过的那一项点亮 ===== */
.vote-btn.is-mine {
  border-color: var(--accent) !important;
  background: rgba(var(--accent-rgb), .16) !important;
  color: #fff !important;
}

/* ===== 每日任务入口 ===== */
.task-entry { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 6px; }
.task-entry-btn {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 18px; border-radius: 14px; cursor: pointer; text-align: left;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .14), rgba(122, 92, 255, .12));
  border: 1px solid rgba(var(--accent-rgb), .3); color: #fff;
  transition: transform .18s, box-shadow .25s, border-color .2s;
}
.task-entry-btn:hover {
  transform: translateY(-2px); border-color: rgba(var(--accent-rgb), .55);
  box-shadow: 0 12px 34px rgba(var(--accent-rgb), .22);
}
.te-ico { font-size: 22px; flex: none; }
.te-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.te-main b { font-size: 15px; }
.te-main small { font-size: 12px; color: rgba(237, 241, 248, .62); }
.te-go { font-size: 20px; color: var(--accent); flex: none; }

.streak-chip {
  align-self: flex-start; font-size: 12.5px; color: rgba(237, 241, 248, .75);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px; padding: 6px 14px;
}
.streak-chip b { color: #ffce6b; }

/* ===== 任务列表（弹窗内） ===== */
.task-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.task-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .07);
}
.task-row.is-done { opacity: .55; }
.tt-state { font-size: 15px; flex: none; width: 20px; text-align: center; }
.tt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tt-text b { font-size: 13.5px; color: #fff; font-weight: 600; }
.tt-text small { font-size: 11.5px; color: rgba(237, 241, 248, .55); line-height: 1.4; }
.tt-reward { flex: none; font-size: 13px; font-weight: 700; color: #ffce6b; }
.tt-btn {
  flex: none; font-size: 12.5px; padding: 6px 12px; border-radius: 8px; cursor: pointer;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(237, 241, 248, .85); transition: .18s;
}
.tt-btn:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.tt-btn.is-ready {
  background: linear-gradient(135deg, var(--accent), var(--accent-pale, var(--accent)));
  border: none; color: #06202a; font-weight: 700;
}
.tt-btn.is-ready:hover { transform: translateY(-1px); }
.tt-btn.is-done { opacity: .6; cursor: default; }
/* 自动结算进行中：按钮先亮着但点不动，避免手快点了两遍 */
.tt-btn.is-ready[disabled] { opacity: .7; transform: none; cursor: default; }

/* ===== 连续签到条 ===== */
.streak-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 206, 107, .12), rgba(255, 146, 63, .08));
  border: 1px solid rgba(255, 206, 107, .25);
}
.streak-box.is-empty { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .08); }
.sb-left { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sb-left b { font-size: 13.5px; color: #ffce6b; }
.streak-box.is-empty .sb-left b { color: rgba(237, 241, 248, .8); }
.sb-left small { font-size: 11.5px; color: rgba(237, 241, 248, .55); line-height: 1.4; }
.sb-right { flex: none; font-size: 12.5px; }
.sb-done { color: #9af0cf; }
.sb-todo { color: #ffce6b; font-weight: 600; }

.task-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px; color: rgba(237, 241, 248, .6);
}
.task-foot b { color: var(--accent); }
.tf-scale { font-size: 11px; color: rgba(237, 241, 248, .4); }

/* ===== 每日任务：手机端紧凑一档 =====
   任务从 6 条加到 7 条以后，原来的行高会让面板超出一屏、底部「今日合计」被切掉。
   这里把行内间距、字号、按钮收一档，7 条 + 合计一屏看完不用滚。 */
@media (max-width: 640px) {
  .task-list { gap: 6px; margin-top: 12px; }
  .task-row { padding: 9px 10px; gap: 8px; border-radius: 11px; }
  .tt-state { width: 16px; font-size: 14px; }
  .tt-text b { font-size: 13px; }
  .tt-text small { font-size: 11px; line-height: 1.35; }
  .tt-reward { font-size: 12.5px; }
  .tt-btn { padding: 6px 10px; font-size: 12px; white-space: nowrap; }
  .streak-box { padding: 10px 12px; gap: 8px; }
  .sb-left b { font-size: 13px; }
  .sb-left small { font-size: 11px; }
  .sb-right { font-size: 12px; }
  .task-foot { margin-top: 10px; padding-top: 10px; font-size: 11.5px; }
}

/* ===== 个人主页里的每日任务入口 ===== */
.acct-task-entry {
  display: flex; align-items: center; gap: 10px; width: 100%;
  margin-top: 12px; padding: 11px 14px; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .12), rgba(122, 92, 255, .1));
  border: 1px solid rgba(var(--accent-rgb), .28); color: #fff; text-align: left;
  transition: transform .18s, border-color .2s, box-shadow .22s;
}
.acct-task-entry:hover {
  border-color: rgba(var(--accent-rgb), .5); transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(var(--accent-rgb), .18);
}
.ate-ico { font-size: 18px; flex: none; }
.ate-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ate-text b { font-size: 13.5px; font-weight: 600; }
.ate-text small { font-size: 11.5px; color: rgba(237, 241, 248, .6); }
.ate-go { flex: none; color: var(--accent); font-size: 18px; }
.sb-todo { text-decoration: none; }
.sb-todo:hover { text-decoration: underline; }

/* ===== 身份总管理 · 积分列与调整弹窗 ===== */
.mt-pts { display: flex; align-items: center; }
.mt-pts-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: #ffd98f; background: rgba(255,206,107,.12);
  border: 1px solid rgba(255,206,107,.3);
  transition: .18s;
}
.mt-pts-btn:hover {
  background: rgba(255,206,107,.22); border-color: rgba(255,206,107,.55); color: #ffe9b8;
}

.pts-panel { width: var(--yw-modal-w); }
.pts-now {
  font-size: 13px; color: rgba(237,241,248,.66); text-align: center;
  padding: 10px 0 2px;
}
.pts-now b {
  font-size: 26px; color: #ffd98f; font-weight: 800;
  font-variant-numeric: tabular-nums; margin: 0 4px;
}
.pts-quick {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 10px;
}
.pts-quick button {
  padding: 10px 0; border-radius: 10px; cursor: pointer; font-family: inherit;
  font-size: 13.5px; font-weight: 700; color: #9af0cf;
  background: rgba(154,240,207,.1); border: 1px solid rgba(154,240,207,.28);
  transition: .16s;
}
.pts-quick button:hover { background: rgba(154,240,207,.2); border-color: rgba(154,240,207,.5); }
.pts-quick button.is-minus {
  color: #ff9b9b; background: rgba(255,120,120,.1); border-color: rgba(255,120,120,.28);
}
.pts-quick button.is-minus:hover { background: rgba(255,120,120,.2); border-color: rgba(255,120,120,.5); }

.pts-custom { display: flex; gap: 8px; margin-top: 4px; }
.pts-custom input {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  color: #fff; font-family: inherit; font-size: 13.5px;
}
.pts-custom input:focus { outline: none; border-color: rgba(var(--accent-rgb), .55); }
.pts-custom button {
  flex: none; padding: 10px 18px; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 700; color: #06202a;
  background: linear-gradient(135deg, var(--accent), var(--accent-pale, var(--accent)));
  border: none; transition: transform .15s, box-shadow .2s;
}
.pts-custom button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(var(--accent-rgb), .34); }
.pts-custom button:disabled { opacity: .6; cursor: default; }
.pts-tip { margin: 12px 0 0; font-size: 11.5px; line-height: 1.6; color: rgba(237,241,248,.45); }

/* ===== 羊窝执法 · 专属编号管理（羊主人卡片内） ===== */
.vna-form { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.vna-row { display: flex; gap: 9px; }
.vna-row input, .vna-row select {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  color: #fff; font-family: inherit; font-size: 13.5px;
}
.vna-row input::placeholder { color: rgba(237,241,248,.38); }
.vna-row input:focus, .vna-row select:focus {
  outline: none; border-color: rgba(255,206,107,.6);
}
.vna-row input:disabled { opacity: .55; cursor: not-allowed; }
.vna-row select option { background: #0d121c; color: #fff; }
.vna-row #vnaCode { flex: 0 0 40%; }
.vna-row #vnaPrice { flex: 1; }
.vna-row #vnaTier { flex: 0 0 34%; }

.vna-acts { display: flex; gap: 9px; margin-top: 2px; }
.vna-save {
  flex: 1; padding: 11px 0; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 700; color: #06202a;
  background: linear-gradient(135deg, #ffd98f, #ffb64f); border: none;
  transition: transform .15s, box-shadow .2s;
}
.vna-save:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(255,182,79,.32); }
.vna-save:disabled { opacity: .6; cursor: default; }
.vna-reset {
  flex: 0 0 28%; padding: 11px 0; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: 13.5px; color: rgba(237,241,248,.8);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
}
.vna-reset:hover { background: rgba(255,255,255,.14); color: #fff; }

.vna-hint { margin-top: 9px; font-size: 11.5px; color: #ffce8f; line-height: 1.5; }
.vna-hint:empty { display: none; }

.vna-list {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08);
  max-height: 46vh; overflow-y: auto;
}
.vna-count { font-size: 12px; color: rgba(237,241,248,.5); margin-bottom: 8px; }
.vna-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.03);
}
.vna-item + .vna-item { margin-top: 6px; }
.vna-item.is-sold { opacity: .55; }
.vna-no {
  flex: none; font-family: var(--font-serif); font-size: 15px; font-weight: 800;
  color: #ffe1a8; font-variant-numeric: tabular-nums;
}
.vna-meta { flex: none; font-size: 11.5px; color: rgba(237,241,248,.6); }
.vna-t {
  flex: 1; min-width: 0; font-size: 11.5px; color: rgba(237,241,248,.55);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vna-btns { flex: none; display: flex; gap: 6px; }
.vna-btns button {
  padding: 5px 11px; border-radius: 8px; cursor: pointer; font-family: inherit;
  font-size: 12px; font-weight: 600; transition: .16s;
}
.vna-e { color: #9ac8ff; background: rgba(111,182,255,.12); border: 1px solid rgba(111,182,255,.32); }
.vna-e:hover { background: rgba(111,182,255,.24); border-color: rgba(111,182,255,.6); }
.vna-d { color: #ff9b9b; background: rgba(255,120,120,.1); border: 1px solid rgba(255,120,120,.3); }
.vna-d:hover:not(:disabled) { background: rgba(255,120,120,.22); border-color: rgba(255,120,120,.55); }
.vna-d:disabled { opacity: .4; cursor: not-allowed; }
.vna-empty { font-size: 12.5px; color: rgba(237,241,248,.45); text-align: center; padding: 14px 0; }

@media (max-width: 560px) {
  .vna-row { flex-wrap: wrap; }
  .vna-row #vnaCode, .vna-row #vnaPrice, .vna-row #vnaTier { flex: 1 1 100%; }
  .vna-t { display: none; }
}

/* ===== 积分弹窗 · 最近变动 ===== */
.pts-txn {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.09);
}
.ptx-head {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 12px; font-weight: 700; color: rgba(237,241,248,.62);
  margin-bottom: 9px;
}
.ptx-head span { font-weight: 500; font-size: 11px; color: rgba(237,241,248,.38); }
.ptx-empty {
  margin: 0; padding: 10px 0 2px;
  font-size: 11.5px; line-height: 1.6; color: rgba(237,241,248,.4);
}
.ptx-row {
  display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: center;
  padding: 7px 9px; border-radius: 9px; background: rgba(255,255,255,.03);
}
.ptx-row + .ptx-row { margin-top: 5px; }
.ptx-d {
  min-width: 52px; text-align: center; padding: 4px 8px; border-radius: 7px;
  font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.ptx-d.is-plus  { color: #9af0cf; background: rgba(154,240,207,.13); }
.ptx-d.is-minus { color: #ff9b9b; background: rgba(255,120,120,.13); }
.ptx-d.is-zero  { color: rgba(237,241,248,.6); background: rgba(255,255,255,.06); }
.ptx-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ptx-txt b {
  font-size: 12px; font-weight: 600; color: rgba(237,241,248,.9);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ptx-txt small {
  font-size: 10.5px; color: rgba(237,241,248,.42);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ============================================================
   手机端排版修整（v132）
   起因：390px 下「警务查询」四块数字被挤成竖排单字；备案记录标题只剩 50px 宽；
        执法入口 8 张大卡把区块拉到 1280px；技术栈单列大卡 3100px；
        折线图 X 轴 30 个日期标签互相压。
   原则：全部关在 ≤560px 内，桌面端一个像素都不改。
   ============================================================ */
@media (max-width: 560px) {
  /* 纵向节奏收一档：每屏多看到一点内容 */
  section { padding: 64px 0; }
  .card { padding: 18px; }
  .chart-card { padding: 16px; }

  /* —— 流程步骤：两列已经够挤，内边距和字号各降一点，减少三行文案 —— */
  .flow-step { padding: 12px 10px; font-size: 11.5px; line-height: 1.55; }
  .flow-step b { width: 22px; height: 22px; line-height: 22px; font-size: 11px; margin-bottom: 6px; }

  /* —— 警务查询四宫格 ——
     原来 flex 一行四个 + 30px 间距，390px 下每格只剩 37~88px，
     「游客」被拆成上下两行单字，「执法官总数」也折了行。改 2×2。 */
  .police-nums {
    /* minmax(0,1fr)：1fr 的最小值是 min-content，窄屏（320）下会被单元格里
       那串数字撑开、整块顶出屏幕右边 19px。用 minmax(0,…) 直接把下限压到 0。 */
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px; margin-bottom: 12px;
    min-width: 0;
  }
  .police-nums > div { min-width: 0; }
  .police-nums b {
    display: block; font-size: 24px; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .police-nums span { font-size: 11.5px; line-height: 1.5; }
  /* 第 4 格是「登录后查看你的执法权限」这类长句，独占一整行 */
  .police-nums > div:nth-child(4) { grid-column: 1 / -1; }
  .police-nums > div:nth-child(4) b {
    font-size: 12.5px !important;          /* 覆盖 stats.js 里的行内 13px */
    font-weight: 600; white-space: normal; line-height: 1.55;
  }

  /* —— 备案记录：手机上标签竖着站左边，书名一行、编号日期一行 —— */
  .record-list { margin-top: 12px; max-height: 340px; }
  .record-list .rc {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "st title" "st meta";
    row-gap: 2px; column-gap: 10px;
    padding: 9px 11px;
  }
  .record-list .rc-st { grid-area: st; align-self: center; }
  .record-list .rc-title { grid-area: title; }
  .record-list .rc-meta { grid-area: meta; font-size: 10.5px; }

  /* —— 执法入口：一行一条，高度只有原来的一半 —— */
  .role-cards { gap: 7px; margin-top: 12px; }
  .role-card { padding: 9px 12px; grid-template-columns: 20px minmax(0, 1fr) auto; }
  .role-card .ico { font-size: 15px; }
  .role-card b { font-size: 13px; }
  .role-card p { font-size: 11px; white-space: normal; }   /* 窄屏（320）下这句 nowrap 会把卡片顶出屏幕 */

  /* —— 技术栈：单列大卡改「图标在左」，一张卡从 ~200 降到 ~130 —— */
  .tech-detail {
    grid-template-columns: 42px 1fr; gap: 8px 14px;
    padding: 16px; align-items: start;
  }
  .tech-detail .ico { font-size: 27px; grid-row: 1 / span 3; }
  .tech-detail h4 { font-size: 15.5px; }
  .tech-detail .role { margin: 0 0 6px; }
  .tech-detail p { font-size: 13px; line-height: 1.62; }

  /* —— 榜单行：编号徽章在 390px 下太占地方，名字被挤成「…」——
     徽章样式由 vanity-badge.js 运行时注入（在样式表之后），所以得用 !important 压它。 */
  .rank-row { gap: 8px; padding: 9px 10px; }
  .rank-row .rk { width: 24px; height: 24px; font-size: 11px; }
  .rank-row .rn { font-size: 13.5px; gap: 5px; }
  .rank-row .rv { font-size: 12.5px; }
  .rank-row .rn > .vn-badge {
    font-size: 9px !important;
    padding: 1px 5px 1px 4px !important;
    letter-spacing: 0 !important;
  }

  /* —— 图表：画布矮一点，图例两列 + 超长名字省略 —— */
  .chart-wrap { height: 196px; }
  .chart-card h4 { font-size: 14px; }
  .chart-card h4 span { display: block; margin: 3px 0 0; font-size: 11.5px; }
  .chart-legend {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 7px 12px; margin-top: 12px;
  }
  .chart-legend .lg {
    display: block; font-size: 11.5px;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  }
  .chart-legend .dot {
    display: inline-block; width: 8px; height: 8px;
    margin-right: 5px; vertical-align: middle;
  }
}

/* ============================================================
   手机端第二轮修整（v133）
   用户反馈：电脑端正常的东西到手机上全被放大 —— 官方 QQ 群海报被裁成竖条、
   支持计划 / 协议与合规 单列大卡、V 版横幅整块放大；
   开发数据中心 5 个格子在两列里永远剩半截。
   原则：仍然只改 ≤560px。
   ============================================================ */
@media (max-width: 560px) {
  /* —— 数据中心：5 格 → 2×2 + 第 5 格整行横条，不再「半截空着」 —— */
  .data-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .data-cell { padding: 15px 12px; }
  .data-cell b { font-size: 26px; }
  .data-cell span { font-size: 11.5px; }
  .data-cell:last-child {
    grid-column: 1 / -1;
    display: flex; align-items: baseline; justify-content: center;
    flex-wrap: wrap; gap: 4px 8px; padding: 13px 14px;
  }
  .data-cell:last-child span { margin-top: 0; }

  /* —— 官方 QQ 群海报：图放上面按 16:9 显示，文案在下面 ——
     原来整张照片铺满一张竖卡，cover 把横向的图裁得只剩中间一条。 */
  .join-hero { padding: 0 0 22px; }
  .join-hero .jh-bg {
    position: relative; inset: auto; width: 100%;
    aspect-ratio: 16 / 9; border-radius: 24px 24px 0 0;
    background-position: center 42%;
  }
  .join-hero:hover .jh-bg { transform: none; }
  .join-hero .jh-overlay { display: none; }
  .join-hero .jh-body { padding: 18px 16px 0; }
  .join-hero h3 { font-size: 22px; }
  .join-hero .qq-big { font-size: 34px; letter-spacing: 2px; margin: 10px 0 4px; }
  .join-hero .desc { font-size: 13px; }
  .benefit-row { margin: 14px 0 16px; gap: 7px; }
  .benefit-row .bf { font-size: 11.5px; padding: 6px 12px; }
  .join-hero .jh-ok { padding: 30px 16px; }

  /* —— 支持计划：三档改成图标 + 名称 + 价格 的横排小条 —— */
  .tier-grid { gap: 8px; }
  .tier {
    display: grid; grid-template-columns: 24px minmax(0, 1fr) auto;
    grid-template-areas: "ico name price" "ico desc desc";
    align-items: center; gap: 1px 10px;
    text-align: left; padding: 10px 13px; border-radius: 12px;
  }
  .tier .ico { grid-area: ico; font-size: 17px; }
  .tier b { grid-area: name; font-size: 13px; }
  .tier .price { grid-area: price; font-size: 13.5px; font-weight: 800; color: var(--accent); }
  .tier p { grid-area: desc; font-size: 11px; color: var(--muted); line-height: 1.5; }

  /* —— 协议与合规：六张卡改成横排小条 —— */
  .agree-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 18px; }
  .agree-card {
    display: grid; grid-template-columns: 24px minmax(0, 1fr);
    grid-template-areas: "ico name" "ico desc";
    align-items: center; gap: 1px 10px;
    padding: 10px 13px; border-radius: 12px;
  }
  .ag-ico { grid-area: ico; font-size: 17px; }
  .agree-card b { grid-area: name; font-size: 13px; }
  .agree-card span:last-child { grid-area: desc; font-size: 11px; }

  /* —— V 版 Win95 横幅：整体收一档 —— */
  .v-banner { padding: 20px 16px; border-radius: 18px; }
  .v-banner h3 { font-size: 20px; }
  .v-banner .tag { font-size: 12px; margin: 8px 0 10px; }
  .v-banner > p { font-size: 13px; line-height: 1.7; }
  .v-feat { grid-template-columns: 1fr; gap: 8px; margin: 16px 0; }
  .v-feat .vf {
    display: grid; grid-template-columns: 26px minmax(0, 1fr);
    grid-template-areas: "ico b" "ico p";
    align-items: center; gap: 0 10px; padding: 10px 13px; border-radius: 12px;
  }
  .v-feat .vf .ico { grid-area: ico; font-size: 18px; }
  .v-feat .vf b { grid-area: b; margin: 0; font-size: 13px; }
  .v-feat .vf p { grid-area: p; font-size: 11.5px; }
  .v-updates { margin-bottom: 18px; }
  .v-updates .vu { padding: 9px 12px; font-size: 12px; }
}

/* ============================================================
   手机端：内部滚动列表改成自动滚动（配合 assets/js/autoscroll.js）
   起因：签到榜 / 备案记录各自是个 overflow:auto 的小框，用户想滑页面时
        手指落进去就被吃掉。现在框做小、内容自走，手势全部还给页面。
   ============================================================ */
@media (max-width: 560px) {
  .record-list { max-height: 214px; }
  .rank-list { max-height: 206px; }
  .record-list.as-auto,
  .rank-list.as-auto {
    -webkit-mask-image: linear-gradient(180deg, #000 86%, rgba(0, 0, 0, .1) 100%);
    mask-image: linear-gradient(180deg, #000 86%, rgba(0, 0, 0, .1) 100%);
    overscroll-behavior: none;
  }
}

/* ============================================================
   手机端第三轮：字号整体收一档（v135）
   用户反馈：手机上字太大，像开了关怀版；V 版海报太长，不符合手机视觉。
   原则：≤560px 内调整，桌面完全不动。
   ============================================================ */
@media (max-width: 560px) {
  /* —— 全站标题层级 —— */
  .sec-title { font-size: 21px; margin-top: 8px; line-height: 1.3; }
  .sec-kicker { font-size: 10.5px; letter-spacing: 2.4px; gap: 8px; }
  .sec-kicker::before { width: 18px; }
  .sec-head.center .sec-kicker::after { width: 18px; }
  .sec-sub { font-size: 12.5px; margin-top: 6px; line-height: 1.7; }

  .card { padding: 16px; }
  .card h4 { font-size: 14px; }
  .police-grid h4 { font-size: 14px; margin-bottom: 10px; }
  .police-grid p { font-size: 12px; }
  .work-promo h3 { font-size: 19px; }
  .work-sub, .work-line { font-size: 12.5px; }

  /* —— 开发与投票 —— */
  .vc-work { font-size: 14.5px; }
  .vc-chapter { font-size: 10.5px; padding: 2px 8px; }
  .vc-score { margin-top: 10px; }
  .vc-score b { font-size: 27px; }
  .vc-score em { font-size: 12px; }
  .vc-score span { font-size: 11px; }
  .vc-foot { font-size: 11px; margin: 6px 0 12px; }
  .vote-bar { height: 8px; }
  .vote-btn { font-size: 12.5px; padding: 8px 16px; }
  .vote-thanks { font-size: 11px; margin-top: 8px; }
  .expect { padding: 16px 14px; gap: 16px; margin-top: 14px; }
  .donut { width: 102px; height: 102px; }
  .donut .d-num { font-size: 18px; }
  .expect .e-info h4 { font-size: 14px; }
  .expect .e-info .e-target { font-size: 12.5px; }
  .expect .e-info p { font-size: 12px; line-height: 1.6; }
  .expect .e-legend { font-size: 11.5px; gap: 12px; margin-top: 8px; }
  .expect .e-info .e-meta { font-size: 10.5px; }
  .road-grid { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
  .road-cell { padding: 12px; border-radius: 12px; }
  .road-cell .when { font-size: 10.5px; padding: 2px 8px; margin-bottom: 7px; }
  .road-cell h4 { font-size: 12.5px; line-height: 1.5; }

  /* —— 数字块与榜单 —— */
  .data-cell b { font-size: 21px; }
  .data-cell span { font-size: 11px; }
  .police-nums b { font-size: 20px; }
  .police-nums span { font-size: 10.5px; }
  .rank-row .rn { font-size: 12.8px; }
  .rank-row .rv { font-size: 12px; }
  .rank-row .rk { width: 22px; height: 22px; font-size: 10.5px; }
  .record-list .rc-title { font-size: 12.5px; }
  .record-list .rc-st { font-size: 10px; padding: 2px 7px; }
  .record-list .rc-meta { font-size: 10px; }
  .chart-card h4 { font-size: 13.5px; }

  /* —— V 版：整张海报压短一半 —— */
  .v-banner { padding: 18px 14px 16px; border-radius: 18px; }
  .v-banner h3 { font-size: 18px; }
  .v-banner .tag { font-size: 11px; margin: 6px 0 8px; }
  .v-banner > p {
    font-size: 12px; line-height: 1.65;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  }
  /* 特性：两列小标签，只留图标 + 名称，说明在手机上不铺 */
  .v-feat { grid-template-columns: 1fr 1fr; gap: 6px; margin: 12px 0; }
  .v-feat .vf {
    display: flex; align-items: center; gap: 7px;
    padding: 8px 10px; border-radius: 10px; min-width: 0;
  }
  .v-feat .vf .ico { font-size: 14px; flex: none; }
  .v-feat .vf b { font-size: 11.5px; margin: 0; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .v-feat .vf p { display: none; }
  /* 更新记录：一行一条，说明省略 */
  .v-updates { margin-bottom: 14px; }
  .v-updates h5 { font-size: 11.5px; margin-bottom: 7px; }
  .v-updates .vu {
    padding: 5px 9px; font-size: 11px; gap: 8px; margin-bottom: 5px;
    align-items: baseline; white-space: nowrap; overflow: hidden;
  }
  .v-updates .vu b { font-size: 10.5px; flex: none; }
  .v-updates .vu span { overflow: hidden; text-overflow: ellipsis; }
  .v-banner .btn { font-size: 13px; padding: 9px 18px; }
  #vNote { font-size: 11px !important; }
}

/* 手机端字号收窄的补充（v135 续）：几处独立海报卡标题 */
@media (max-width: 560px) {
  .poster-body h1 { font-size: 24px; }
  .poster-body .lead { font-size: 12.5px; line-height: 1.7; }
  .poster-btn { font-size: 12.5px; padding: 8px 16px; }
  .mall-p-title { font-size: 23px; }
}

/* ============================================================
   v142 · 弹窗「硬弹」修复 + 全站统一入场动效
   ------------------------------------------------------------
   病根：全站有 10 处写了 animation: amPop / amFade，但这两个
   @keyframes 只存在于 account.html 的内联样式里，全局样式表从来没
   定义过。别的地方（商品预览窗、排行榜窗、各种遮罩）浏览器拿到一个
   不存在的动画名，会把整条 animation 声明当无效丢弃 —— 表现就是
   「啪」一下硬弹出来、遮罩硬切一层黑。这里把定义补到全局。
   ============================================================ */

/* 遮罩：淡入 */
@keyframes amFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* 居中弹窗：淡入 + 从 96% 弹回原位
   ★ translate(-50%,-50%) 必须写进 keyframes：这些面板靠这组位移居中，
     只写 scale 的话，动画结束那一刻面板会被甩到左上角。 */
@keyframes amPop {
  from { opacity: 0; transform: translate(-50%, -46%) scale(.96); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* toast：位移之外补一层淡入，别像从桌子底下硬拽上来 */
.toast {
  opacity: 0;
  transition: transform .34s cubic-bezier(.22, 1, .36, 1), opacity .18s ease;
}
.toast.show { opacity: 1; }

/* 系统开了「减少动态效果」就全部收掉，别硬塞动画 */
@media (prefers-reduced-motion: reduce) {
  .rm-mask, .bm-mask, .am-mask, .ywm-mask,
  .rm-panel, .bm-panel, .am-panel, .ywm-panel {
    animation: none !important;
  }
  .toast { transition: none !important; }
}

/* 画廊灯箱：原来 .open 直接切 display:grid，整块图硬闪出来。
   这里让遮罩淡入、图片轻微放大落位。 */
@keyframes lbIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: none; }
}
.lightbox.open { animation: amFade .24s ease both; }
.lightbox.open img { animation: lbIn .3s cubic-bezier(.22, 1, .36, 1) both; }

/* 封禁提示屏：整屏砸下来太硬，给一层淡入 */
.yw-ban-screen { animation: amFade .3s ease both; }

/* ============================================================
   v142 · 积分小窗（商城里点「🪙 我的积分」弹出）
   ------------------------------------------------------------
   个人主页 account.html 的 #pointsModal 是把样式写在自己页面里的，
   商城页拿不到。这里按那边**一模一样**的数值补一份全局的（类名也照抄），
   于是两边是同一套外观，而不是「长得像」的两套。

   作用域是安全的：.acct-modal / .am-* 这一族类名只有积分小窗在用，
   之前全局没有它们的定位与尺寸定义（只有滚动条和 overscroll 的零散规则）。
   ============================================================ */
.acct-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.acct-modal.open { display: block; }

.am-mask {
  position: absolute; inset: 0;
  background: rgba(3, 5, 9, .72); backdrop-filter: blur(6px);
  animation: amFade .25s ease both;
}
.am-panel {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: var(--yw-modal-w); max-height: 86vh; overflow-y: auto;
  background: rgba(13, 18, 28, .96);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px;
  padding: 26px 24px 24px; box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
  animation: amPop .32s cubic-bezier(.22, 1, .36, 1) both;
  text-align: left;
}
.am-close {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(237, 241, 248, .8); font-size: 17px; cursor: pointer; line-height: 1;
  transition: .2s;
}
.am-close:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.am-panel h3 {
  margin: 0 0 6px; font-size: 17px; color: #fff; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.am-panel .sub { font-size: 12.5px; color: rgba(237, 241, 248, .6); margin: 0 0 18px; line-height: 1.7; }

/* 积分窗：宽一档，高度别做成一条扁带子。
   内容只有「每日任务 + 兑换码」两行，按内容自然排会是一条 660×270 的横带，
   在桌面端看着很扁；这里直接撑到统一的 --yw-modal-h（和「我拥有的」等高），
   并且整体垂直居中 —— 用 justify-content:center 而不是给底部 margin:auto，
   否则窗一高，中间就空出一个大洞，看着像少画了一块。 */
.am-panel.am-points {
  width: var(--yw-modal-w); height: var(--yw-modal-h);
  padding: 34px 38px 30px;
  /* 高度是定死的，所以三段式：标题贴顶 → 任务块吃满中间 → 提示与入口贴底。
     以前是整窗 justify-content:center，上下各空一大条，看着像没排完。 */
  display: flex; flex-direction: column; justify-content: flex-start;
}
/* 任务块（grid）吃掉中间那段高度，内容在带内居中：上面接标题、下面接入口，不空两头 */
.am-points .points-tasks { flex: 1 1 auto; align-content: center; }
.am-points h3 { font-size: 19px; }
.am-points .sub { font-size: 13.5px; line-height: 1.75; margin-bottom: 20px; }
/* 积分窗里的任务入口现在只有一个「每日任务」，别再摆成两列
   （两列会让它只占左半边，右边空一块，看着像少了个东西） */
.am-points .points-tasks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.am-points .task-entry-btn { padding: 19px 22px; gap: 16px; }
.am-points .te-ico { font-size: 26px; }
.am-points .te-main b { font-size: 17px; }
.am-points .te-main small { font-size: 13px; }
.am-points .te-go { font-size: 22px; }
.am-points .acct-links { margin-top: 0; padding-top: 0; }
.am-points .acct-links .acct-shop-link { padding: 14px 12px; font-size: 14px; }
/* 底部那句提示：整块内容已经由 .am-points 的 justify-content:center 居中了，
   这里只留正常间距，不要再给 margin:auto —— 那会把「提示 + 入口」单独顶到窗底，
   中间裂开一大块空白 */
.am-points .am-pts-tip {
  margin: 18px 0 12px; font-size: 12.5px; line-height: 1.6;
  color: rgba(237, 241, 248, .42);
}

/* 底部两枚链接（兑换码 / 进商城） */
.acct-links { display: flex; gap: 10px; margin-top: 14px; }
.acct-links .acct-shop-link {
  flex: 1; margin-top: 0; padding: 11px 10px; border-radius: 11px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .2s, border-color .2s;
  display: block; text-align: center; text-decoration: none;
  color: var(--accent);
}
.acct-links .acct-shop-link:hover {
  text-decoration: none; background: rgba(255, 255, 255, .09);
  border-color: rgba(var(--accent-rgb, 111, 182, 255), .4);
}
.acct-redeem-link { color: #ffd7a0 !important; }

/* 手机端：贴底抽屉（与账号页同款） */
@keyframes amSheet {
  from { opacity: 0; transform: translateY(44px); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 759px) {
  .am-panel, .am-panel.am-points {
    left: 0; right: 0; top: auto; bottom: 0;
    transform: none; width: 100%; max-width: none;
    /* 统一高度：默认 52vh（顶边落在屏幕中间附近），按住顶部横条可上下拖。
       变量由 sheet-drag.js 写在元素上，这里只负责读。 */
    height: var(--am-sheet-h, 52vh);
    max-height: 92vh; overflow-y: auto;
    /* 用 flex 纵向（不是 block）：窗高是固定的，内部要靠 flex:1 把内容吃满，
       才不会上面一坨、底下一大条空白。另外必须显式写 flex-start ——
       桌面 `.am-points` 是 `justify-content:center`，不复位的话横线（::before）会被居中。 */
    min-height: 0; display: flex; flex-direction: column; justify-content: flex-start;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    border-left: none; border-right: none; border-bottom: none;
    animation: amSheet .3s cubic-bezier(.22, 1, .36, 1) both;
    overscroll-behavior: contain;
  }
  /* ---------- 顶部抓握条：按住它上下拖，抽屉跟着手势变高变矮 ----------
     视觉上的那条横线仍然是 .am-panel::before 画的（保持原有版式与留白），
     .am-grip 只是盖在上面的一层透明触摸区 —— 这样加拖拽完全不影响排版。 */
  .am-grip {
    position: absolute; left: 0; right: 0; top: 0; height: 36px;
    cursor: grab; touch-action: none; z-index: 3;
  }
  .am-grip:active { cursor: grabbing; }
  /* 所有抽屉的关闭键都要压在抓握条之上（抓握条 z-index:3、高 36px，正好盖住右上角），
     否则「点 ✕」会被当成「按住横条开始拖」，窗关不掉。 */
  .rm-close, .bm-close, .am-close, .bw-x, .ywm-x { z-index: 5; }
  /* 拖动中不要有任何高度过渡，否则手指与窗之间会「打滑」 */
  .am-panel.is-dragging { animation: none !important; transition: none !important; }
  /* 松手吸附时给一段短过渡，看起来像被磁铁吸住 */
  .am-panel.is-snapping { transition: height .22s cubic-bezier(.22, 1, .36, 1); }

  .am-panel::before {
    content: ""; display: block; width: 38px; height: 4px; border-radius: 99px;
    background: rgba(255, 255, 255, .22); margin: -8px auto 14px;
  }
  .am-panel h3 { font-size: 16.5px; padding-right: 32px; }
  .am-panel .sub { font-size: 12.5px; margin-bottom: 14px; line-height: 1.65; }
  /* 关闭按钮必须压在抓握条上面（.am-grip 是 z-index:3、高 36px，正好盖住右上角），
     否则点 ✕ 会被当成按住横条，窗根本关不掉。 */
  .am-close { top: 10px; right: 12px; width: 34px; height: 34px; z-index: 5; }
  .am-points .points-tasks { grid-template-columns: 1fr; }
  .am-points .points-tasks .ptask:last-child:nth-child(odd) { grid-column: auto; }
  /* 桌面那套放大字号只服务「别做成扁带子」，手机上没必要跟着长 */
  .am-points h3 { font-size: 16.5px; }
  .am-points .sub { font-size: 12.5px; margin-bottom: 14px; }
  .am-points .task-entry-btn { padding: 15px 16px; gap: 13px; }
  .am-points .te-ico { font-size: 22px; }
  .am-points .te-main b { font-size: 15.5px; }
  .am-points .te-main small { font-size: 12px; }
  .am-points .te-go { font-size: 20px; }
  .am-points .acct-links { padding-top: 0; }
  .am-points .acct-links .acct-shop-link { padding: 12px 10px; font-size: 13.5px; }
  /* 手机上不靠 auto 撑，提示与上方任务之间给一点呼吸 */
  .am-points .am-pts-tip { margin: 12px 0 12px; }
}

/* 手机横屏 / 矮视口：贴底会太矮，改回居中宽扁 */
@media (max-height: 560px) and (max-width: 1000px) {
  .am-panel, .am-panel.am-points {
    left: 50%; right: auto; top: 50%; bottom: auto;
    transform: translate(-50%, -50%);
    width: min(94vw, 720px); max-height: 94vh;
    min-height: 0; display: block;
    border-radius: 18px; border: 1px solid rgba(255, 255, 255, .16);
    padding: 22px 24px 20px;
    animation: amPop .3s cubic-bezier(.22, 1, .36, 1) both;
  }
  .am-panel::before { display: none; }
}

/* 积分胶囊：现在能点开了，给个能点的暗示 */
.shop-points { cursor: pointer; transition: background .2s, border-color .2s, transform .18s; }
.shop-points:hover { background: rgba(255, 206, 107, .2); border-color: rgba(255, 206, 107, .62); transform: translateY(-1px); }
.shop-points:active { transform: translateY(0) scale(.985); }
.shop-points:focus-visible { outline: 2px solid rgba(255, 206, 107, .7); outline-offset: 3px; }

/* ---------- 积分窗：只剩「我有兑换码」一枚时的排布 ----------
   人已经在商城里，「进入羊窝商城」那个入口是废话，所以商城版不再长那一枚。
   单枚时不要继续按两列各占一半，给成整行一条（热区更大，也不留半块空）。
   ⚠️ margin-top 必须是 auto：窗被撑高之后，这一枚要跟着贴到窗底，
   否则多出来的空白会全堆在它下面（auto 在非 flex 容器里等于 0，安全）。 */
.acct-links.is-solo { margin-top: 0; }
.acct-links.is-solo .acct-shop-link {
  padding: 14px 12px; border-radius: 12px; font-size: 14px;
}

/* ---------- 弹窗退场（窗与窗的交接：先关这一层，落地后再弹下一层） ----------
   叠两层窗意味着两个遮罩、两份滚动锁、两个动画同时在跑，手机端还都是
   贴底抽屉，看起来像同一个窗被换了内容。这里给一层退场，交接完只留一个。 */
@keyframes amMaskOut { from { opacity: 1 } to { opacity: 0 } }
@keyframes amPanelOut {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to   { opacity: 0; transform: translate(-50%, -50%) scale(.955); }
}
@keyframes amSheetOut {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(42px); }
}
.acct-modal.is-closing .am-mask { animation: amMaskOut .17s ease both; }
.acct-modal.is-closing .am-panel { animation: amPanelOut .17s ease both; }
@media (max-width: 759px) {
  .acct-modal.is-closing .am-panel { animation: amSheetOut .18s ease both; }
}

@media (prefers-reduced-motion: reduce) {
  .am-mask, .am-panel { animation: none !important; }
  .shop-points, .shop-owned { transition: none !important; }
}

/* ============================================================
   商城 ·「🎒 我拥有的」小窗（owned-modal.js）
   ------------------------------------------------------------
   和积分窗同一套外壳（.acct-modal / .am-panel），里面换成
   「页签 + 已拥有网格」：点哪件换哪件，已换上的打勾置顶。
   ============================================================ */
/* 窗高必须写死成 height，不能只给 min-height：
   头像/背景/配色三个页签东西多，原来会被内容顶到 86vh，编号页签只有一张卡、
   又缩回 420 —— 每切一次页签，窗就跳一次高度。这里锁成统一的 --yw-modal-h，
   四个页签永远同一个尺寸，多的东西在 .ow-body 里自己滚。 */
.am-panel.am-owned {
  width: var(--yw-modal-w); height: var(--yw-modal-h); min-height: 0;
  max-height: var(--yw-modal-h); overflow: hidden;   /* 只让 .ow-body 滚，窗体自己不动 */
  padding: 30px 34px 24px;
  display: flex; flex-direction: column;
}
.am-owned h3 { font-size: 19px; }
.am-owned .sub { font-size: 13px; line-height: 1.7; margin-bottom: 16px; }

.ow-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.ow-tab {
  padding: 7px 16px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(237, 241, 248, .72);
  font-family: inherit; font-size: 13px; font-weight: 600;
  transition: background .2s, border-color .2s, color .2s;
}
.ow-tab:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.ow-tab.is-on {
  background: rgba(var(--accent-rgb, 111, 182, 255), .2);
  border-color: rgba(var(--accent-rgb, 111, 182, 255), .55);
  color: #fff;
}

/* 网格区自己滚：窗高固定，东西再多也不把窗撑长 */
.ow-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 4px; }
/* 编号页签内容少：整块在窗里垂直居中，不然窗被锁高后会空出大半截 */
.ow-body.is-solo {
  display: flex; flex-direction: column; justify-content: center;
  justify-content: safe center;   /* 号很多、超出一屏时从顶上排，不会被切掉开头 */
  overflow-y: auto;
}
/* flex 居中 + 内容比容器高时，溢出的那一头会被切掉。窗口极矮（分屏、小笔电）
   就别居中了，老老实实从顶排。 */
@media (max-height: 620px) {
  .am-panel.am-points, .ow-body.is-solo { justify-content: flex-start; }
}
.ow-body::-webkit-scrollbar { width: 6px; }
.ow-body::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-lit-rgb), .28); border-radius: 99px;
}
.ow-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px; padding-bottom: 4px;
}
.ow-it {
  position: relative; display: flex; flex-direction: column; gap: 7px;
  padding: 9px 9px 10px; border-radius: 14px; cursor: pointer;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  font-family: inherit; text-align: center;
  transition: background .18s, border-color .18s, transform .18s;
}
.ow-it:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); transform: translateY(-1px); }
.ow-it.is-on {
  background: rgba(var(--accent-rgb, 111, 182, 255), .14);
  border-color: rgba(var(--accent-rgb, 111, 182, 255), .58);
  cursor: default;
}
.ow-it.is-on:hover { transform: none; }
.ow-th {
  display: block; width: 100%; aspect-ratio: 1 / 1;
  flex: 0 0 auto;                 /* 不跟着 flex 拉伸，正方形才是正方形 */
  border-radius: 10px; overflow: hidden;
  background-color: rgba(255, 255, 255, .06);
  background-size: cover; background-position: center;
}
.ow-th.is-emoji {
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; line-height: 1;
  background: rgba(255, 255, 255, .05);
}
.ow-nm {
  font-size: 12px; color: #eef2f8; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ow-st { font-size: 10.5px; color: rgba(237, 241, 248, .45); }
.ow-it.is-on .ow-st { color: rgba(var(--accent-lit-rgb), .95); font-weight: 700; }
.ow-it.is-on::after {
  content: "✓"; position: absolute; top: 5px; right: 6px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--accent, #6fb6ff); color: #06121f;
  font-size: 11px; font-weight: 900; line-height: 17px; text-align: center;
}

.ow-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 46px 12px; text-align: center;
  height: 100%;              /* 空状态在整块网格区里居中，窗高了也不会缩在顶上 */
}
.ow-empty span { font-size: 30px; opacity: .75; }
.ow-empty b { font-size: 14px; color: #fff; }
.ow-empty i { font-size: 12px; color: rgba(237, 241, 248, .5); font-style: normal; }

/* 编号页签：名下每一个号各占一行（默认编号 / 套装编号 / 柜台号）
   每一行都是 <button>：点哪个就用哪个；正在用的那一行 disabled，只作展示 */
.ow-vns { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.ow-vns.is-busy { pointer-events: none; }
.ow-vn-row {
  display: flex; align-items: center; gap: 13px; width: 100%;
  padding: 14px 16px; border-radius: 15px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .09);
  font-family: inherit; text-align: left; color: inherit;
  transition: background .18s, border-color .18s, transform .18s;
}
.ow-vn-row:disabled { opacity: 1; }      /* 别让浏览器把「使用中」那行画灰 */
.ow-vn-row.is-click { cursor: pointer; }
.ow-vn-row.is-click:hover,
.ow-vn-row.is-click:focus-visible {
  background: rgba(255, 255, 255, .075);
  border-color: rgba(255, 255, 255, .24);
  transform: translateY(-1px);
  outline: none;
}
.ow-vn-row.is-click .ow-vn-tag {
  color: rgba(var(--accent-lit-rgb), .98);
  background: rgba(var(--accent-rgb, 111, 182, 255), .16);
  border-color: rgba(var(--accent-rgb, 111, 182, 255), .45);
}
.ow-vn-row.is-on {
  background: rgba(var(--accent-rgb, 111, 182, 255), .11);
  border-color: rgba(var(--accent-rgb, 111, 182, 255), .42);
}
.ow-vn-row .ow-vn-ico { width: 40px; height: 40px; border-radius: 12px; font-size: 19px; }
.ow-vn-tag.is-on {
  color: #eaf5ff;
  background: rgba(var(--accent-rgb, 111, 182, 255), .22);
  border-color: rgba(var(--accent-rgb, 111, 182, 255), .55);
}
/* 编号页签：只展示，不给换 */
.ow-vanity {
  display: flex; align-items: center; gap: 14px;
  padding: 18px; border-radius: 16px;
  background: rgba(var(--accent-rgb, 111, 182, 255), .1);
  border: 1px solid rgba(var(--accent-rgb, 111, 182, 255), .35);
}
.ow-vn-ico {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: rgba(255, 255, 255, .07);
}
.ow-vn-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ow-vn-tx b { font-family: var(--font-serif); font-size: 20px; color: #fff; letter-spacing: .02em; }
.ow-vn-tx span { font-size: 12px; color: rgba(237, 241, 248, .55); line-height: 1.55; }
.ow-vn-tag {
  flex: 0 0 auto; padding: 4px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; color: #ffe1a8;
  background: rgba(255, 206, 107, .14); border: 1px solid rgba(255, 206, 107, .38);
}
.ow-note {
  margin: 12px 2px 0; font-size: 11.5px; line-height: 1.6;
  color: rgba(237, 241, 248, .42);
}
.ow-tip {
  margin: 14px 0 0; padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 11.5px; color: rgba(237, 241, 248, .42);
}

@media (max-width: 759px) {
  /* 手机上仍是贴底抽屉，但尺寸要和桌面对齐成「固定高度 + 内部滚动」：
     以前这里是 height:auto，四个页签内容多寡不同 → 抽屉一会儿 690、一会儿 348，
     点一下页签整块往上跳，很难受。

     还有宽度的坑：桌面那条 `.am-panel.am-owned { width: var(--yw-modal-w) }` 的
     选择器权重（0,2,0）高于通用手机规则 `.am-panel`（0,1,0），于是手机上仍然是
     92vw = 359px，而 left 又被拉成 0 → 左边贴死、右边空出 31px。
     所以这里必须把 width / max-width 也显式写回来。 */
  .am-panel.am-owned {
    left: 0; right: 0; width: 100%; max-width: none;
    height: var(--am-sheet-h, 52vh); max-height: 92vh;
    display: flex; flex-direction: column;
    overflow: hidden;                 /* 抽屉本体不滚，滚动交给 .ow-body */
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  }
  .am-owned h3 { font-size: 16.5px; }
  .am-owned .sub { font-size: 12.5px; margin-bottom: 12px; }
  .ow-tabs { gap: 7px; margin-bottom: 12px; padding-bottom: 10px; }
  .ow-tab { padding: 6px 14px; font-size: 12.5px; }
  /* 吃满剩下的高度自己滚，别再让 max-height 参与（那样又会按内容变） */
  .ow-body { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; }
  /* 手机上固定 4 列：auto-fill + minmax 会按最宽那张算，结果只排 3 列、卡片大得能塞满半屏 */
  .ow-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .ow-it { padding: 7px 6px 8px; gap: 5px; border-radius: 12px; }
  .ow-th.is-emoji { font-size: 25px; }
  .ow-nm { font-size: 11px; }
  .ow-st { font-size: 9.5px; }
  .ow-it.is-on::after { width: 15px; height: 15px; font-size: 10px; line-height: 15px; top: 4px; right: 4px; }
  .ow-tip { margin-top: 12px; padding-top: 10px; font-size: 11px; }
}

/* ============================================================
   生日彩蛋：首屏徽标上方浮一枚蛋糕 🎂
   ------------------------------------------------------------
   只有 11 月 17 日（北京时间）才由 index.html 里的小脚本挂上，
   过了当天自动摘掉 —— 所以这里只负责「长什么样」，不管「什么时候出现」。
   绝对定位 + left/right:0 + margin:auto 做水平居中，transform 留给上下浮动，
   免得居中和动画抢同一个属性。加/删这个 span 不影响标题、副标题排版。
   ============================================================ */
.bday-cake {
  position: absolute; left: 0; right: 0; top: -80px;
  margin: 0 auto; width: max-content;
  line-height: 1; font-size: 58px;
  pointer-events: none; user-select: none; z-index: 2;
  animation: bdayBob 3.6s ease-in-out infinite,
             bdayGlow 3.6s ease-in-out infinite;
}
/* 两侧各一颗小星星，错开闪烁 */
.bday-cake::before, .bday-cake::after {
  content: "✨"; position: absolute; font-size: .52em; opacity: 0;
  animation: bdayTwinkle 2.9s ease-in-out infinite;
}
.bday-cake::before { left: -1.1em; top: .05em; }
.bday-cake::after  { right: -1.05em; bottom: -.05em; animation-delay: 1.4s; }

@keyframes bdayBob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-7px) rotate(4deg); }
}
/* 呼吸光晕：用 drop-shadow 给 emoji 描一圈暖光，别用 box-shadow（那是方块） */
@keyframes bdayGlow {
  0%, 100% { filter: drop-shadow(0 6px 16px rgba(255, 178, 88, .38)); }
  50%      { filter: drop-shadow(0 10px 30px rgba(255, 202, 128, .72)); }
}
@keyframes bdayTwinkle {
  0%, 100% { opacity: 0; transform: scale(.6) translateY(2px); }
  45%      { opacity: .9; transform: scale(1) translateY(-2px); }
}
@media (max-width: 759px) {
  .bday-cake { top: -58px; font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .bday-cake, .bday-cake::before, .bday-cake::after { animation: none; }
  .bday-cake::before, .bday-cake::after { opacity: .7; }
}

/* ============================================================
   全站开放开关（site-switches.js / site-guard.js）
   1) .sw-*   —— 羊窝执法里的开关面板
   2) .sw-closed-box / .swc-* —— 页面被关掉时的红色全屏提示
   ============================================================ */

/* ---------- 开关面板 ---------- */
.sw-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 14px 0 12px;
}
.sw-hint {
  flex: 1; min-width: 140px;
  font-size: 12.5px; line-height: 1.6; color: var(--muted);
}
.sw-hint b { color: var(--text); }
.sw-hint a { color: var(--accent-lit); text-decoration: underline; text-underline-offset: 2px; }

.sw-list { display: flex; flex-direction: column; gap: 8px; }

.sw-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-2);
  transition: border-color .18s ease, background .18s ease;
}
.sw-row.is-off {
  border-color: rgba(226, 109, 109, .38);
  background: rgba(226, 109, 109, .06);
}
.sw-info { flex: 1; min-width: 0; }
.sw-info b {
  display: block; font-size: 14px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sw-info small {
  display: block; margin-top: 2px;
  font-size: 11.5px; color: var(--muted); line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 开关本体：胶囊 + 圆点，纯 CSS，不依赖任何库 */
.sw-toggle {
  flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 6px;
  border-radius: 999px;
  border: 1px solid rgba(123, 201, 139, .45);
  background: rgba(123, 201, 139, .12);
  color: var(--green);
  font: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, opacity .18s;
  -webkit-tap-highlight-color: transparent;
}
.sw-toggle i {
  position: relative; display: block;
  width: 30px; height: 18px; border-radius: 999px;
  background: rgba(123, 201, 139, .45);
  transition: background .18s ease;
}
.sw-toggle i::after {
  content: ""; position: absolute; top: 2px; left: 14px;
  width: 14px; height: 14px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .45);
  transition: left .18s ease;
}
.sw-toggle[aria-checked="false"] {
  border-color: rgba(226, 109, 109, .45);
  background: rgba(226, 109, 109, .12);
  color: var(--red);
}
.sw-toggle em { font-style: normal; white-space: nowrap; letter-spacing: .2px; }
.sw-toggle[aria-checked="false"] i { background: rgba(226, 109, 109, .5); }
.sw-toggle[aria-checked="false"] i::after { left: 2px; }
.sw-toggle:disabled { opacity: .55; cursor: progress; }
.sw-toggle:focus-visible { outline: 2px solid var(--accent-lit); outline-offset: 2px; }

.sw-empty {
  padding: 26px 16px; text-align: center;
  color: var(--muted); font-size: 13px; line-height: 1.9;
  border: 1px dashed var(--line); border-radius: 12px;
}

/* ---------- 关闭后的整屏提示（红色全屏，与「账号封禁」页同一套视觉） ---------- */
html.sw-closed { overflow: hidden; height: 100%; }
html.sw-closed body {
  overflow: hidden;
  display: block;
  background: #b3101f;
}
/* 除了红屏，其他一律不显示（后加的节点也一并挡住，避免内容闪出来） */
html.sw-closed body > *:not(.sw-closed-box) { display: none !important; }

.sw-closed-box {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 36%, #e11d2f 0%, #b3101f 58%, #7e0a16 100%);
  color: #fff; text-align: center;
  animation: swCloseIn .45s ease both;
}
.swc-inner {
  max-width: 92vw; display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: swcRise .7s cubic-bezier(.22, 1, .36, 1) both;
}
/* 禁止标记：纯 CSS 圆环 + 斜杠，和封号页保持完全一致 */
.swc-mark {
  position: relative; width: clamp(86px, 23vw, 150px); aspect-ratio: 1 / 1;
  border-radius: 50%; border: clamp(7px, 2.2vw, 13px) solid #fff;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(0, 0, 0, .12);
}
.swc-mark::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 138%; height: clamp(7px, 2.2vw, 13px); border-radius: 99px; background: #fff;
  transform: translate(-50%, -50%) rotate(-45deg);
  box-shadow: 0 2px 7px rgba(0, 0, 0, .35);
}
.swc-mark::before {
  content: ""; position: absolute; inset: -16%; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .30);
  animation: swcRing 2.6s ease-out infinite;
}
.swc-text { margin-top: 18px; text-align: center; line-height: 1.5; }
.swc-kicker {
  font-size: clamp(11px, 2.9vw, 13px); font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
  margin-bottom: 10px;
}
.swc-title {
  font-size: clamp(19px, 5vw, 36px); font-weight: 800;
  letter-spacing: 1.2px; line-height: 1.45;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.swc-sub {
  margin-top: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: clamp(13px, 3.6vw, 17px); font-weight: 500; line-height: 1.6;
  color: rgba(255, 255, 255, .88); letter-spacing: .4px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
}
.swc-acts {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 36px;
}
.swc-act {
  padding: 9px 20px; border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .08);
  color: #fff; font-size: 13.5px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: background .18s ease, border-color .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.swc-act:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }
.swc-act-owner { border-color: #fff; background: rgba(255, 255, 255, .18); }

@keyframes swCloseIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes swcRise {
  0%   { opacity: 0; transform: translateY(16px) scale(.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes swcRing {
  0%   { opacity: .55; transform: scale(.92); }
  70%  { opacity: 0;   transform: scale(1.22); }
  100% { opacity: 0;   transform: scale(1.22); }
}

@media (max-width: 520px) {
  /* 手机上提示文字单独占一行，别和「全部开启」挤在一起 */
  .sw-hint { flex: 1 1 100%; }
  .sw-toolbar { gap: 8px; }
  .sw-row { padding: 11px 12px; gap: 10px; }
  .sw-toggle { padding: 4px 8px 4px 5px; }
  /* 红屏按钮：竖排铺满，拇指好点 */
  .swc-acts { width: 100%; max-width: 320px; gap: 10px; margin-top: 30px; }
  .swc-act { flex: 1 1 100%; text-align: center; padding: 11px 18px; }
}

/* 建表引导（表还没建时在面板顶部出现） */
.sw-setup { margin: 0 0 12px; }
.sw-setup-box {
  padding: 14px 15px;
  border: 1px solid rgba(226, 178, 88, .4);
  border-radius: 12px;
  background: rgba(226, 178, 88, .07);
  font-size: 12.8px; line-height: 1.85; color: var(--text);
}
.sw-setup-box > b { display: block; margin-bottom: 6px; font-size: 13.5px; }
.sw-setup-box ol { margin: 0 0 10px 18px; padding: 0; color: var(--muted); }
.sw-setup-box li { margin: 2px 0; }
.sw-setup-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.sw-sql { margin-top: 4px; }
.sw-sql summary {
  cursor: pointer; font-size: 12px; color: var(--accent-lit);
  list-style: none;
}
.sw-sql summary::-webkit-details-marker { display: none; }
.sw-sql summary::before { content: "▸ "; }
.sw-sql[open] summary::before { content: "▾ "; }
.sw-sql pre {
  margin-top: 8px; max-height: 220px; overflow: auto;
  padding: 10px 12px; border-radius: 8px;
  background: #070a11; border: 1px solid var(--line);
  font-size: 11.5px; line-height: 1.6; white-space: pre;
  color: #b9c4d6;
  -webkit-overflow-scrolling: touch;
}

/* ============================================================
   秘密小窝 · 首页大海报（.poster.hut）
   ------------------------------------------------------------
   2026-11-21：从「即将上线」占位卡改成整幅海报，点进站内二级页
   hut.html（不直接外跳），二级页里再给两个外部入口。

   2026-11-21 下午二次统一（用户要求「一律按我们的作品那种风格」）：
   原来这张在 hero 下面单独成一个 section，尺寸 2.48:1、左侧压暗、
   右下角还带一枚圆形箭头，跟下面那排竖排海报不是一路。
   现在整块并进 #posterStack，用同一个 .poster 模板：
   kicker + 大标题 + 一句话 + 按钮，和「我们的作品」那张一模一样，
   间距也是 .poster-stack 的统一 gap。这里只留图的裁切重心。
   ============================================================ */
.poster.hut .p-bg { background-position: center 54%; }
@media (max-width: 640px) {
  /* 手机是 1536/931 的框，横向裁得比较多，把重心往右挪到木屋上 */
  .poster.hut .p-bg { background-position: 74% center; }
}

/* ============================================================
   秘密小窝 · 二级页两个入口（hut.html）
   ============================================================ */
.hut-pick {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px; padding-bottom: 8px;
}
.hut-card {
  position: relative; display: block; isolation: isolate; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: #06090f; text-decoration: none; color: #fff;
  box-shadow: 0 20px 54px rgba(0, 0, 0, .5);
  transition: transform .45s cubic-bezier(.22,1,.36,1), border-color .4s, box-shadow .4s;
}
.hut-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), .55);
  box-shadow: 0 30px 72px rgba(0, 0, 0, .66), 0 0 0 1px rgba(var(--accent-rgb), .22);
}
.hut-card:focus-visible { outline: 2px solid var(--accent-lit); outline-offset: 4px; }
.hc-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transition: transform 1.3s cubic-bezier(.22,1,.36,1);
}
.hut-card:hover .hc-bg { transform: scale(1.045); }
.hc-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 70% at 0% 100%, rgba(var(--accent-rgb), .18), transparent 62%),
    linear-gradient(0deg, rgba(4,7,12,.96) 6%, rgba(4,7,12,.74) 38%,
                    rgba(4,7,12,.2) 72%, rgba(4,7,12,.04) 100%);
}
.hc-body {
  position: absolute; left: clamp(20px, 4%, 34px); right: clamp(20px, 4%, 34px);
  bottom: clamp(20px, 5%, 32px);
  display: flex; flex-direction: column; gap: 5px;
}
.hc-kicker {
  font-size: 10.5px; font-weight: 700; letter-spacing: 2.6px;
  color: var(--accent-lit); text-transform: uppercase;
}
.hc-name {
  font-family: var(--font-serif); font-weight: 800;
  font-size: clamp(20px, 2.1vw, 27px); line-height: 1.25;
  text-shadow: 0 4px 22px rgba(0, 0, 0, .7);
}
.hc-desc { font-size: 12.8px; line-height: 1.6; color: rgba(233, 237, 245, .74); }
.hc-go {
  margin-top: 8px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--accent-lit);
}
.hc-go i { font-style: normal; font-size: 13px; transition: transform .3s; }
.hut-card:hover .hc-go i { transform: translate(3px, -3px); }

.hut-tip {
  margin: 22px 0 0; text-align: center;
  font-size: 12.5px; color: var(--muted); line-height: 1.8;
}
.hut-tip b { color: var(--text); font-weight: 600; }

@media (max-width: 820px) {
  .hut-pick { grid-template-columns: 1fr; gap: 16px; }
  .hut-card { aspect-ratio: 3 / 2; border-radius: 18px; }
  .hc-desc { font-size: 12.2px; }
}

/* ============================================================
   手机端字号：按屏宽自适应（v173）
   ------------------------------------------------------------
   用户反馈：手机上的海报标题、区块标题依旧偏大，像「关怀版」；
   而且不同手机看到的字号一模一样，小屏机的字相对更大。
   做法：
     1) 所有展示级字号改成 clamp(下限, vw, 上限) —— 字号跟着屏宽走，
        360 的小屏机自然小一档，430 的大屏机自然大一档；
     2) 上限比旧值再收一档，手机上不再出现「一行字占满整屏」；
     3) 只动 ≤640px，桌面端一个像素都不改。
   正文小字（11~13px）维持原样，它们本来就偏小，再动就费眼了。
   ============================================================ */
@media (max-width: 640px) {
  /* 首屏轮播大字：JS 会按这一帧的文案长度再收一次，这里只管基准上限 */
  .hero h1 { --h1-size: clamp(28px, 10.8vw, 46px); }

  /* 六张主题海报 / 作品海报 / 秘密小窝 / 商城 */
  .poster .p-title { font-size: clamp(16px, 4.9vw, 23px); }
  .poster .p-desc { font-size: clamp(11px, 2.9vw, 12.5px); }
  .poster .p-kicker { font-size: clamp(8.5px, 2.35vw, 10px); }
  .work-promo.wp-poster .wp-title,
  .wp-poster .wp-title { font-size: clamp(17px, 5.2vw, 24px); }
  .hut-card .hc-title { font-size: clamp(19px, 5.9vw, 27px); }
  .mall-p-title { font-size: clamp(17px, 5.3vw, 24px); }

  /* 区块标题与副标 */
  .sec-title { font-size: clamp(17px, 4.9vw, 22px); }
  .sec-kicker { font-size: clamp(9px, 2.5vw, 11px); }
  .sec-sub { font-size: clamp(11.5px, 3.1vw, 13px); }
  .hero p.lead { font-size: clamp(12px, 3.15vw, 13.5px); }
  .hero-slogan { font-size: clamp(9px, 2.6vw, 11px); }
  .hero-badge { font-size: clamp(8.5px, 2.4vw, 10px); }
  .nav-logo { font-size: clamp(15px, 4vw, 17px); }
}

/* 纵向节奏也收一档：手机上少一点「一张海报一屏」的空旷感 */
@media (max-width: 560px) {
  section { padding: 54px 0; }
  .poster-stack { gap: 16px; padding-top: 4vh; }
  .sec-head { margin-bottom: 26px; }
}

/* 二级页（秘密小窝 / 作品 / 图书馆 …）的页头：手机上原来固定 34px 标题 +
   16px 正文（正文没写字号，吃的是 body 默认 16px），一屏几乎全是字。
   这里把页头标题、副标、以及「没写字号、跟着 body 走」的正文整体收一档。 */
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .page-hero { padding: 104px 0 32px; }
  .page-hero h1 { font-size: clamp(23px, 6.2vw, 30px); margin-top: 10px; }
  .page-hero p { font-size: clamp(12px, 3.15vw, 13.5px); margin-top: 8px; line-height: 1.8; }
  .manage-hero h1 { font-size: clamp(22px, 6vw, 29px); }
  .manage-hero p { font-size: 12.8px; }
  .hut-tip { font-size: 12px; line-height: 1.75; }
}

/* ============================================================
   个人主页「每日签到」卡：竖排时不许再出现大片空白（v174）
   ------------------------------------------------------------
   这个坑出现过两次，都跟 flex 基准值在竖排下变成高度有关：
   桌面端 .acct-signin 是横排，signin-side 的 220px 是宽度；
   手机上切成竖排后主轴变纵向，同一个 220px 就成了高度，标题下面
   凭空多出两百来像素。这里放在外链 CSS 里再兜一层，即使某个页面
   的内联样式旧了、没跟上，也不会露出空白。
   ============================================================ */
@media (max-width: 560px) {
  .acct-signin { flex-direction: column; align-items: stretch; }
  .acct-signin .signin-side { flex: 0 0 auto; min-width: 0; height: auto; }
  .acct-signin .acct-msg { flex: 0 0 auto; }
  .acct-signin #signinBtn { width: 100%; }
  #signinPanel .acct-entry-grid { margin-top: 0; }
}

/* ============================================================
   手机端：输入框字号不得低于 16px（防「聚焦自动放大」）
   ------------------------------------------------------------
   iOS Safari 有一条铁律：聚焦的输入控件如果计算字号 < 16px，
   它会自作主张把整个页面放大到刚好能看清 —— 而且你输完收起键盘，
   它经常不还原。表现就是「点一下搜索框，整页突然变大，再也缩不回去」，
   这跟 viewport 里的 user-scalable=no 无关，是 WebKit 的独立行为，
   唯一的解法就是把字号抬到 16px 以上。
   只在手机端生效；checkbox / radio / range 不涉及键盘，排除掉。
   ============================================================ */
@media (max-width: 640px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
  textarea,
  select {
    font-size: max(16px, 1em);
  }
}
