/* ================================================================
   NEXUS · Obsidian 设计系统
   近黑底 + 发丝边框 + 单强调色 + 轻字重大数字
   四套主题:gold(黑金) / ice(冰蓝) / violet(靛紫) / jade(翡翠)
   ================================================================ */

/* ---------- 主题变量 ---------- */
/* ================================================================
   NEXUS · Cloud-Tech 设计系统（v2.56.0 全站改版）
   深海蓝底 + 冰蓝主色 + 玻璃拟态 + 云雾光晕
   四套：cloud（默认·云科技）/ deepsea（深海·近黑）/ aurora（极光·青紫）/ frost（霜白·浅色）
   ================================================================ */

/* ---------- 云科技（默认） ---------- */
:root, [data-theme="cloud"], [data-theme="gold"] {
  /* 底色：深海到墨蓝的三级递进，比纯黑更「有空气感」 */
  --bg: #070B14;
  --bg-1: #0B1220;
  --bg-2: #101A2C;
  --panel: rgba(120, 180, 245, 0.045);
  --panel-2: rgba(130, 190, 255, 0.08);
  --line: rgba(130, 190, 255, 0.10);
  --line-2: rgba(140, 200, 255, 0.20);

  --text: #EAF3FF;
  --text-2: #93A9C4;
  --text-3: #5F748E;
  --text-body: #C6D8EC;
  --text-soft: #AEBFD4;

  /* 主色：冰蓝（相对黑金是「去暖增冷」，更科技） */
  --accent: #6FB8F5;
  --accent-2: #A5D6FF;
  --accent-ink: #061320;
  --accent-soft: rgba(111, 184, 245, 0.10);
  --accent-line: rgba(120, 195, 255, 0.38);

  --ice: #6FB8F5;
  --ice-soft: rgba(111, 184, 245, 0.09);
  --mint: #63D6C4;
  --rose: #F08EA8;
  --gold: #7FC0F0;
  --danger: #F0717F;

  --shadow-1: 0 8px 30px rgba(2, 8, 20, 0.42);
  --shadow-2: 0 20px 60px rgba(2, 8, 20, 0.58);
  --glow: 0 0 24px rgba(111, 184, 245, 0.16);

  /* 玻璃拟态三件套（v2.56.0） */
  --glass-bg: rgba(18, 30, 48, 0.62);
  --glass-bg-2: rgba(24, 38, 58, 0.78);
  --glass-line: rgba(150, 210, 255, 0.16);
  --glass-hi: rgba(220, 240, 255, 0.22);
  --glass-blur: 18px;
}

/* ---------- 深海（近黑，克制的极简科技） ---------- */
[data-theme="deepsea"], [data-theme="royal"] {
  --bg: #04070C;
  --bg-1: #070C14;
  --bg-2: #0B131E;
  --panel: rgba(255, 255, 255, 0.032);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #EEF4FA;
  --text-2: #8B9BAC;
  --text-3: #566675;
  --accent: #4FA8E8;
  --accent-2: #8CCBFA;
  --accent-ink: #041018;
  --accent-soft: rgba(79, 168, 232, 0.1);
  --accent-line: rgba(79, 168, 232, 0.4);
  --ice: #4FA8E8;
  --ice-soft: rgba(79, 168, 232, 0.09);
  --mint: #58C7B4;
  --rose: #E88AA2;
  --gold: #C9BE9E;
  --danger: #E86A78;
  --glass-bg: rgba(12, 20, 30, 0.66);
  --glass-bg-2: rgba(16, 26, 38, 0.82);
  --glass-line: rgba(140, 200, 255, 0.14);
}

/* ---------- 极光（青紫渐变，最有「未来感」） ---------- */
[data-theme="aurora"], [data-theme="amethyst"] {
  --bg: #070912;
  --bg-1: #0A0E1C;
  --bg-2: #0F1526;
  --panel: rgba(130, 170, 255, 0.045);
  --panel-2: rgba(140, 180, 255, 0.08);
  --line: rgba(130, 175, 255, 0.1);
  --line-2: rgba(150, 195, 255, 0.2);
  --text: #EDF2FF;
  --text-2: #97A5C8;
  --text-3: #616F94;
  --accent: #7FD8F0;
  --accent-2: #B9C2FF;
  --accent-ink: #06101A;
  --accent-soft: rgba(127, 216, 240, 0.1);
  --accent-line: rgba(150, 220, 255, 0.38);
  --ice: #7FD8F0;
  --ice-soft: rgba(127, 216, 240, 0.09);
  --mint: #74E0C8;
  --rose: #F095C0;
  --gold: #D6C49A;
  --danger: #F0718C;
  --glass-bg: rgba(16, 24, 44, 0.62);
  --glass-bg-2: rgba(22, 32, 56, 0.8);
  --glass-line: rgba(160, 220, 255, 0.16);
}

/* ---------- 霜白（浅色） ---------- */
[data-theme="frost"], [data-theme="snow"] {
  --bg: #F2F7FD;
  --bg-1: #FFFFFF;
  --bg-2: #EAF2FB;
  --panel: rgba(20, 60, 110, 0.035);
  --panel-2: rgba(20, 60, 110, 0.06);
  --line: rgba(20, 60, 110, 0.09);
  --line-2: rgba(20, 60, 110, 0.16);
  --text: #0F1D2E;
  --text-2: #53667C;
  --text-3: #8B9AAC;
  --text-body: #2C3E52;
  --text-soft: #445A70;
  --accent: #2E86D8;
  --accent-2: #1C6FBA;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(46, 134, 216, 0.1);
  --accent-line: rgba(46, 134, 216, 0.36);
  --ice: #2E86D8;
  --ice-soft: rgba(46, 134, 216, 0.08);
  --mint: #1F9D8B;
  --rose: #D0567E;
  --gold: #B08A45;
  --danger: #C94A5C;
  --shadow-1: 0 6px 22px rgba(20, 40, 70, 0.08);
  --shadow-2: 0 16px 46px rgba(20, 40, 70, 0.12);
  --glow: 0 0 22px rgba(46, 134, 216, 0.14);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-2: rgba(255, 255, 255, 0.86);
  --glass-line: rgba(30, 90, 150, 0.12);
  --glass-hi: rgba(255, 255, 255, 0.9);
}

/* 旧主题 id 兼容：ice / violet / jade / guofeng 统一归入云科技冷色系 */
[data-theme="ice"], [data-theme="violet"], [data-theme="jade"], [data-theme="guofeng"] {
  --bg: #070B14; --bg-1: #0B1220; --bg-2: #101A2C;
  --panel: rgba(120, 180, 245, 0.045); --panel-2: rgba(130, 190, 255, 0.08);
  --line: rgba(130, 190, 255, 0.10); --line-2: rgba(140, 200, 255, 0.20);
  --text: #EAF3FF; --text-2: #93A9C4; --text-3: #5F748E;
  --text-body: #C6D8EC; --text-soft: #AEBFD4;
  --accent: #6FB8F5; --accent-2: #A5D6FF; --accent-ink: #061320;
  --accent-soft: rgba(111, 184, 245, 0.10); --accent-line: rgba(120, 195, 255, 0.38);
  --ice: #6FB8F5; --ice-soft: rgba(111, 184, 245, 0.09);
  --mint: #63D6C4; --rose: #F08EA8; --gold: #7FC0F0; --danger: #F0717F;
  --glass-bg: rgba(18, 30, 48, 0.62); --glass-bg-2: rgba(24, 38, 58, 0.78);
  --glass-line: rgba(150, 210, 255, 0.16);
}

/* ---------- 绯域（v2.78.0 默认·深酒红×玫红×虹彩紫） ----------
 * 视觉基准：首页设计稿「顺发派域数创」——
 * 深酒红渐变底 + 玫红主色 + 虹彩紫边缘光 + 磨砂玻璃卡片 */
[data-theme="wine"] {
  --bg: #1A0B14;
  --bg-1: #220E1A;
  --bg-2: #2A0F20;
  --panel: rgba(209, 73, 121, 0.055);
  --panel-2: rgba(209, 73, 121, 0.10);
  --line: rgba(209, 73, 121, 0.16);
  --line-2: rgba(209, 73, 121, 0.32);

  --text: #F5E6EE;
  --text-2: #B897A6;
  --text-3: #82616F;
  --text-body: #EBD7E1;
  --text-soft: #D9BFCC;

  /* 主色：玫红高光；按钮深一档用 --btn-primary（#B22F5C） */
  --accent: #D14979;
  --accent-2: #F07BA4;
  --accent-ink: #FFF3F7;
  --accent-soft: rgba(209, 73, 121, 0.13);
  --accent-line: rgba(209, 73, 121, 0.45);
  --btn-primary: #B22F5C;

  /* 虹彩辅助：边缘光紫（接管原 ice 位），暖金/淡紫作点缀 */
  --ice: #9B5DE5;
  --ice-soft: rgba(155, 93, 229, 0.11);
  --mint: #C99EE0;
  --rose: #F07BA4;
  --gold: #E8B98F;
  --danger: #FF7A8A;

  --shadow-1: 0 8px 30px rgba(12, 4, 9, 0.5);
  --shadow-2: 0 20px 60px rgba(12, 4, 9, 0.65);
  --glow: 0 0 24px rgba(209, 73, 121, 0.22);

  --glass-bg: rgba(42, 15, 32, 0.62);
  --glass-bg-2: rgba(52, 20, 38, 0.78);
  --glass-line: rgba(240, 123, 164, 0.18);
  --glass-hi: rgba(255, 230, 240, 0.20);
  --glass-blur: 18px;
}
[data-theme="wine"] .btn-primary { background: linear-gradient(135deg, #B22F5C, #D14979); }
[data-theme="wine"] .btn-primary small { color: rgba(255, 235, 242, 0.78); }

/* ---------- 基础 ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
/* 桌面壳场景：杜绝任何残留元素把文档撑出滚动高度（否则页面可被滚偏，手机视觉不居中） */
html { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .35s ease;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
.hidden { display: none !important; }

/* 环境光:极微弱,随主题色 */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(1100px 700px at 18% -12%, var(--accent-soft), transparent 55%),
    radial-gradient(900px 600px at 88% 6%, var(--ice-soft), transparent 55%);
  opacity: .55;
  pointer-events: none; z-index: 0;
  transition: background .35s ease;
}

.num { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* ── 网页背景开启时：手机屏变半透明毛玻璃，虚化背景从屏后透出 ── */
html.desk-bg-on .phone-screen { background: transparent; }
/* 屏内背景层：与外围同源的视频/图片，虚化后垫在登录页与主界面之下 */
#screenBgLayer {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background-size: cover; background-position: center;
  filter: blur(var(--bg-screen-blur, 16px)) saturate(1.15);
  transform: scale(1.12);          /* 放大遮住虚化白边 */
}
#screenBgLayer.is-video video { width: 100%; height: 100%; object-fit: cover; }
/* 玻璃感内容底：主界面与登录页半透明，让虚化背景透出 */
html.desk-bg-on .app,
html.desk-bg-on #gate {
  background: color-mix(in srgb, var(--bg) 55%, transparent);
}
/* 登录舱底图由 app.js 按后台「登录页背景图」注入（见 applyBrand）。
 * v2.51.6 修复「先显示旧图再跳到新图」：此处不再写死 gold.jpg。
 * 首屏只用底色 + 暗角渐变（无图、无网络请求），配置就绪后一次性淡入正确背景，
 * 避免 `background-image` 从默认图切到上传图的视觉跳变。
 * 若配置接口失败，app.js 会回落到 /bg/gold.jpg，与旧版表现一致。 */
#gate,
html.desk-bg-on #gate {
  background:
    radial-gradient(ellipse 120% 80% at 50% 12%, rgba(63, 45, 20, .55), transparent 70%),
    radial-gradient(ellipse 120% 80% at 50% 100%, rgba(40, 28, 12, .5), transparent 72%),
    #17120c;
  transition: background-image .42s ease, background-color .3s ease;
}
#gate .gate-inner { text-shadow: 0 1px 8px rgba(0,0,0,.45); }
/* 登录页照片层：由 app.js 预加载完成后淡入，避免首屏先闪旧图再切新图 */
#gate .gate-photo {
  position: absolute; inset: 0; z-index: 0;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0;
  transition: opacity .46s ease;
  pointer-events: none;
}
#gate .gate-photo.on { opacity: 1; }
/* 登录页视频背景（v2.54.0）：视频压在图片封面之上，蒙层再压在视频之上。
   视频与封面都写死 z-index:0，靠 DOM 顺序（prepend 逆序插入）决定层级：
   photo → video → veil，避免 z-index 与 .gate-inner 抢层级。 */
#gate .gate-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  pointer-events: none;
  transition: opacity .6s ease;
  background: transparent;
}
/* 视频模式下的可读性蒙层：底色与暗角，透明度由后台「背景压暗程度」决定 */
#gate .gate-veil {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
/* 视频真正开始播放后，图片层必须彻底退出（opacity:0 + visibility:hidden）：
   video 元素在首帧/切帧时可能露出透明或黑边，图片若还在下面就会透出来，
   看起来就是「图片和视频叠在一起」。两者严格互斥，任一时刻只有一层可见。 */
#gate.gate-video-on .gate-photo {
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
/* 系统开了「减少动态效果」：不放视频，直接停在封面，尊重无障碍偏好 */
@media (prefers-reduced-motion: reduce) {
  #gate .gate-video { display: none; }
}
/* 蒙层叠在照片之上、内容之下（可读性优先） */
#gate { background-color: #17120c; }
html.desk-bg-on #gate { background-color: transparent; }
/* 底图自带纹理，隐藏 CSS 网格叠加层 */
#gate .gate-bg { display: none; }
html.desk-bg-on #gate,
html.desk-bg-on #gate .phone-screen {
  backdrop-filter: none;
}
html.desk-bg-on #gate .gate-inner {
  background: transparent;
}
/* v2.59.9 桌面端：登录舱整体收进手机屏内（不再 fixed 铺满视口）。
   此前 .gate 是 position:fixed，启动图/背景视频会铺满整个网页、溢出手机壳外；
   v2.59.4 的做法依赖「网页背景」开关（desk-bg-on）才生效，未开启时依旧铺满。
   现在 .gate 改为 absolute 住在 .phone-screen 里，图片天然被壳裁切——
   「图片在手机里」，壳与机身细节完整可见；全屏无壳模式（frame-bare）天然退化为铺满。 */
@media (min-width: 900px) {
  /* #gate 提高优先级：压过下方 .gate 基础规则的 position:fixed（源顺序在后） */
  #gate {
    position: absolute; inset: 0;
    padding: 24px 20px;
    overflow-y: auto;
    border-radius: 50px;   /* 对齐屏幕圆角（原来按壳外框 62px 裁会露出屏外一圈图） */
  }
  /* 照片层随舱填充屏幕即可；background-attachment:fixed 以视口为基准会裁切错位，改回随元素 */
  #gate .gate-photo { background-attachment: scroll; }
  /* 壳外区域交给页面本身的深色底 + 机身光晕，登录舱不再自绘外圈光晕 */
}

/* 玻璃边缘高光：让磨砂质感更真实 */
html.desk-bg-on .phone-screen::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; z-index: 60;
  background: linear-gradient(135deg, rgba(255,255,255,.07), transparent 32%, transparent 68%, rgba(255,255,255,.05));
}

/* ============================ 登录舱 ============================ */
.gate {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; overflow-y: auto;
}
.gate-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 50% 38%, #000 0%, transparent 72%);
  opacity: .5;
  animation: gridDrift 26s linear infinite;
}
@keyframes gridDrift { to { background-position: 52px 52px, 52px 52px; } }

.gate-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 420px; text-align: center;
  animation: rise .8s cubic-bezier(.2, .9, .25, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
/* 启动中：接口未返回前不显示任何按钮/文案（否则会先闪一版默认「演示」文案再被后台配置覆盖） */
.gate-boot { display: none; align-items: center; justify-content: center; gap: 7px; height: 120px; }
.gate.booting .gate-inner > *:not(.gate-boot) { visibility: hidden; }
.gate.booting .gate-boot { display: flex; }
.gate-boot-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); opacity: .35;
  animation: gate-boot-pulse 1.1s ease-in-out infinite;
}
.gate-boot-dot:nth-child(2) { animation-delay: .16s; }
.gate-boot-dot:nth-child(3) { animation-delay: .32s; }
@keyframes gate-boot-pulse { 0%, 100% { opacity: .25; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }

.brand-mark {
  width: 64px; height: 64px; margin: 0 auto 22px;
  display: grid; place-items: center;
  border-radius: 20px;
  background: var(--bg-1);
  border: 1px solid var(--accent-line);
  box-shadow: var(--glow);
  transition: .3s;
}
.brand-mark svg { width: 30px; height: 30px; }
.brand-mark.has-img { border-color: var(--hair); background-color: transparent; }
.gate-inner:hover .brand-mark { transform: translateY(-3px); box-shadow: 0 0 40px var(--accent-soft); }

/* 落地页页脚与维护公告 */
.gate-foot { margin-top: 30px; font-size: 10.5px; color: var(--text-3); letter-spacing: .08em; }
.gate-notice {
  margin: 18px auto 0; max-width: 380px; padding: 13px 18px;
  font-size: 12px; line-height: 1.7; color: var(--text-2);
  border: 1px solid var(--hair); border-radius: 12px; background: var(--bg-1);
}
body.maintenance .chain-ticker { display: none; }
/* 未登录只读浏览：顶栏隐藏余额入口 */
body.guest-browse .topbar-wallet { display: none; }

/* v2.90.1 推广链接落地：邀请提示条强调色 + 注册按钮脉冲高亮 */
.gate-notice.invite-notice {
  color: var(--accent); border-color: var(--accent); background: var(--accent-soft);
  font-weight: 500;
}
#gate .btn-primary.invite-cta { animation: inviteCtaPulse 1.8s ease-in-out infinite; }
@keyframes inviteCtaPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft); transform: scale(1); }
  50% { box-shadow: 0 0 0 12px transparent; transform: scale(1.025); }
}

.brand h1 {
  margin: 0; font-size: 38px; font-weight: 250;
  letter-spacing: .34em; text-indent: .34em;
  color: var(--text);
}
/* 登录页站名：香槟金高亮 + 外发光（后台「站点设计」可切换样式/关闭发光） */
.gate h1 {
  color: #f2d9a4;
  background: linear-gradient(180deg, #fbeecb 8%, #f0d49a 45%, #c99d55 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter:
    drop-shadow(0 0 10px rgba(240, 205, 138, .45))
    drop-shadow(0 0 26px rgba(226, 178, 96, .28));
}
.gate h1.t-white {
  background: none; -webkit-text-fill-color: currentColor; color: #fff; filter: none;
}
.gate h1.t-custom {
  background: none; -webkit-text-fill-color: currentColor; filter: none;
}
.gate h1.no-glow { filter: none; }
.brand-sub {
  margin: 12px 0 0; color: var(--text-3); font-size: 11px;
  letter-spacing: .42em; text-indent: .42em; text-transform: uppercase;
}
.brand-desc {
  color: var(--text-2); font-size: 13.5px; line-height: 2.1;
  margin: 26px 0 36px; font-weight: 300;
}

.gate-actions { display: grid; gap: 10px; }
.gate-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.btn {
  position: relative; padding: 15px 18px; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 14px; font-weight: 500; letter-spacing: .04em;
  transition: .25s; border: 1px solid var(--line-2);
}
.btn small { font-size: 11px; font-weight: 300; color: var(--text-3); letter-spacing: .02em; }
.btn-primary {
  background: var(--accent); border-color: transparent; color: var(--accent-ink);
  box-shadow: 0 10px 34px var(--accent-soft);
}
.btn-primary small { color: rgba(0, 0, 0, 0.55); }
[data-theme="gold"] .btn-primary small { color: #6B5A38; }
[data-theme="ice"] .btn-primary small { color: #3A5A74; }
[data-theme="violet"] .btn-primary small { color: #4A4370; }
[data-theme="jade"] .btn-primary small { color: #2F5C4B; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px var(--accent-soft); filter: brightness(1.05); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--panel); border-color: var(--accent-line); }
.btn:active { transform: scale(.98); }

.chain-ticker {
  margin-top: 34px; font-size: 10.5px; color: var(--text-3);
  letter-spacing: .14em; font-variant-numeric: tabular-nums;
}

/* ============================ App 外壳 ============================ */
.app {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  height: 100dvh; max-width: 480px; margin: 0 auto;
  background: var(--bg);
  animation: fadeIn .5s both;
}
@keyframes fadeIn { from { opacity: 0; } }

/* ---------------- 桌面端曲面屏手机外壳（仅大屏可见，移动端不显示，避免套娃） ----------------
   设计思路：用 CSS 3D 透视让屏幕左右边缘向后弯折，模拟曲面玻璃；
   叠加多层反光/高光/环境光，营造「手持 iPhone」的高级质感。
   全部装饰层 pointer-events:none，不影响任何交互。 */
.phone-wrap { display: contents; }
.phone-frame, .phone-screen, .phone-island,
.phone-glow, .screen-sheen, .screen-curve-l, .screen-curve-r,
.phone-texture, .phone-engrave { display: contents; }
.phone-btns { display: none; }

/* ---------------- 手机壳配色（用户可换壳，桌面端外框可见） ----------------
   hi=弧面高光 mid=中间调 low=暗部 base=机身底色 deep=最深层 edge=边缘过渡 glow=环境光晕 */
:root, [data-shell='titan'] {
  --shell-hi: #6b7180; --shell-mid: #3a3e48; --shell-low: #191b21;
  --shell-base: #14161b; --shell-deep: #0b0c0f; --shell-edge: #2a2d35;
  --shell-glow: rgba(90, 130, 200, .05);
}
[data-shell='gold'] {
  --shell-hi: #e8c877; --shell-mid: #9a7832; --shell-low: #453613;
  --shell-base: #2a2110; --shell-deep: #120e06; --shell-edge: #5c491c;
  --shell-glow: rgba(212, 175, 95, .07);
}
[data-shell='rose'] {
  --shell-hi: #e3ac9d; --shell-mid: #a9705f; --shell-low: #4e2f28;
  --shell-base: #32201b; --shell-deep: #150c0a; --shell-edge: #6a4438;
  --shell-glow: rgba(220, 160, 140, .06);
}
[data-shell='silver'] {
  --shell-hi: #d4d9df; --shell-mid: #8b9199; --shell-low: #41454b;
  --shell-base: #26292e; --shell-deep: #0d0e10; --shell-edge: #5a5f66;
  --shell-glow: rgba(200, 210, 225, .06);
}
[data-shell='obsidian'] {
  --shell-hi: #4a4f5c; --shell-mid: #23262e; --shell-low: #101218;
  --shell-base: #0a0b0f; --shell-deep: #040507; --shell-edge: #191c23;
  --shell-glow: rgba(120, 130, 160, .04);
}
[data-shell='blueti'] {
  --shell-hi: #8fa6c4; --shell-mid: #4a5f7d; --shell-low: #1f2c3d;
  --shell-base: #141e2b; --shell-deep: #080d14; --shell-edge: #2e4059;
  --shell-glow: rgba(120, 160, 220, .07);
}
[data-shell='jade'] {
  --shell-hi: #8fd0b4; --shell-mid: #47916f; --shell-low: #1d4433;
  --shell-base: #12291f; --shell-deep: #07120d; --shell-edge: #2a5a43;
  --shell-glow: rgba(110, 200, 160, .06);
}
/* 节日限定壳：新春红金 */
[data-shell='cny'] {
  --shell-hi: #f0c96a; --shell-mid: #b03030; --shell-low: #5c1414;
  --shell-base: #35090b; --shell-deep: #170203; --shell-edge: #7a1c1c;
  --shell-glow: rgba(220, 90, 70, .08);
}
/* 节日限定壳：圣诞绿金 */
[data-shell='xmas'] {
  --shell-hi: #e8d18a; --shell-mid: #2f7d4f; --shell-low: #123726;
  --shell-base: #0c2218; --shell-deep: #041009; --shell-edge: #1c5136;
  --shell-glow: rgba(200, 220, 130, .07);
}
/* 节日限定壳：情人节玫瑰金（粉） */
[data-shell='valentine'] {
  --shell-hi: #f5c0d0; --shell-mid: #c2557e; --shell-low: #5e1f3a;
  --shell-base: #38101f; --shell-deep: #1a050c; --shell-edge: #7d2c4c;
  --shell-glow: rgba(240, 140, 180, .08);
}

/* ---------------- 机身材质纹理（用户可换，叠加在中框之上） ----------------
   --tex-* 变量控制纹理层的密度/强度，材质由 data-material 切换 */
:root, [data-material='matte'] {
  --tex-layer: linear-gradient(0deg, transparent, transparent);
  --tex-opacity: 0;
  --tex-blend: normal;
}
[data-material='brushed'] {
  --tex-layer: repeating-linear-gradient(97deg,
      rgba(255, 255, 255, .085) 0px, rgba(255, 255, 255, 0) 1px,
      rgba(255, 255, 255, 0) 3px, rgba(0, 0, 0, .07) 4px,
      rgba(255, 255, 255, 0) 5px, rgba(255, 255, 255, .05) 6px);
  --tex-opacity: 1;
  --tex-blend: overlay;
}
[data-material='leather'] {
  --tex-layer:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .055) 0 1px, transparent 1.6px),
    radial-gradient(circle at 74% 64%, rgba(0, 0, 0, .16) 0 1.4px, transparent 2px),
    radial-gradient(circle at 44% 82%, rgba(255, 255, 255, .04) 0 1px, transparent 1.5px);
  --tex-opacity: .95;
  --tex-blend: overlay;
}
[data-material='frost'] {
  --tex-layer: repeating-conic-gradient(from 0deg at 50% 50%,
      rgba(255, 255, 255, .05) 0deg 2deg, rgba(0, 0, 0, .045) 2deg 4deg);
  --tex-opacity: .8;
  --tex-blend: overlay;
}

@media (min-width: 900px) {
  .phone-wrap {
    display: flex; align-items: center; justify-content: center;
    position: relative;
    min-height: 100dvh; padding: 46px 20px;
    perspective: 2400px;              /* 曲面屏 3D 透视基准 */
    perspective-origin: 50% 45%;
  }
  /* 机身环境光晕：桌面上投出一圈柔和光雾
     注意：必须用 absolute——父级 .phone-wrap 的 perspective 会让 fixed 退化，
     导致光晕底部超出视口、文档凭空多出可滚动高度（页面被滚下去后手机视觉偏上） */
  .phone-glow {
    display: block; position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 760px; height: 900px; pointer-events: none; z-index: 0;
    background: radial-gradient(ellipse 46% 42% at 50% 46%,
      color-mix(in srgb, var(--accent) 13%, transparent) 0%,
      color-mix(in srgb, var(--shell-glow) 8%, transparent) 45%, transparent 72%);
    filter: blur(28px);
  }

  /* ---- 机身：中框曲面 + 玻璃背板质感 ----
     壳色由 --shell-* 变量驱动，用户可在「外观」弹窗换壳（黄金 / 玫瑰金等） */
  .phone-frame {
    position: relative;
    display: block;
    width: 436px; height: min(904px, calc(100dvh - 92px));
    padding: 12px;
    border-radius: 62px;
    z-index: 1;
    /* 钛金属中框：多段渐变模拟弧面受光（颜色全部走壳色变量） */
    background:
      linear-gradient(90deg,
        var(--shell-deep) 0%, var(--shell-edge) 3%, var(--shell-hi) 7%, var(--shell-mid) 13%,
        var(--shell-low) 22%, var(--shell-base) 50%, var(--shell-low) 78%, var(--shell-mid) 87%,
        var(--shell-hi) 93%, var(--shell-edge) 97%, var(--shell-deep) 100%),
      linear-gradient(160deg, var(--shell-mid) 0%, var(--shell-base) 40%, var(--shell-deep) 65%, var(--shell-mid) 100%);
    background-blend-mode: overlay;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .26),       /* 顶部高光 */
      inset 0 -1px 0 rgba(0, 0, 0, .8),             /* 底部暗边 */
      inset 2px 0 3px rgba(255, 255, 255, .09),     /* 左弧面反光 */
      inset -2px 0 3px rgba(255, 255, 255, .09),    /* 右弧面反光 */
      inset 0 0 14px rgba(0, 0, 0, .38),            /* 轻内敛：过强会在四角压出暗斑，弧线断开 */
      0 2px 3px rgba(255, 255, 255, .05),
      0 42px 90px -28px rgba(0, 0, 0, .85),
      0 18px 44px -18px rgba(0, 0, 0, .6),
      0 0 0 1px rgba(0, 0, 0, .6);
    animation: phoneIn .9s cubic-bezier(.2, .8, .2, 1) both;
    transition: background .35s ease;
  }
  /* 中框内圈：金属倒角高光（宽度/模糊收敛，保证四角与外弧同心不脱节） */
  .phone-frame::before {
    content: ''; position: absolute; inset: 4.5px; border-radius: 57.5px;
    pointer-events: none; z-index: 5;
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, .07),
      inset 0 0 8px rgba(0, 0, 0, .28);
  }
  /* 中框内圈：贴近屏幕的黑色垫圈（1px 细线，避免圆角处出现明显黑圈断层） */
  .phone-frame::after {
    content: ''; position: absolute; inset: 9px; border-radius: 53px;
    pointer-events: none; z-index: 5;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .55);
  }
  @keyframes phoneIn {
    from { opacity: 0; transform: translateY(28px) scale(.965); }
    to   { opacity: 1; transform: none; }
  }

  /* ---- 机身材质纹理层：覆盖中框一圈（屏幕区域被挖空） ---- */
  .phone-texture {
    display: block; position: absolute; inset: 0; z-index: 2;
    pointer-events: none; border-radius: 62px;
    opacity: var(--tex-opacity, 0);
    mix-blend-mode: var(--tex-blend, normal);
    background-image: var(--tex-layer);
    background-size: 7px 7px, 11px 11px, 9px 9px;
    /* 挖空屏幕：中心透明，仅保留 12px 中框一圈显示纹理 */
    -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    padding: 12px;
    transition: opacity .3s ease;
  }
  /* 荔枝纹需要更大的tile才能看出颗粒 */
  [data-material='leather'] .phone-texture {
    background-image: var(--tex-layer);
    background-size: 14px 14px, 19px 19px, 16px 16px;
  }
  /* 磨砂需要更细密的散射 */
  [data-material='frost'] .phone-texture { background-size: 100% 100%; }

  /* ---- 机身刻字：中框底部内缘的真实刻印（随壳色联动） ---- */
  .phone-engrave {
    display: block; position: absolute; left: 50%; bottom: 20px;
    transform: translateX(-50%);
    z-index: 6; pointer-events: none;
    max-width: 300px; padding: 0 10px;
    font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-align: center;
    color: color-mix(in srgb, var(--shell-hi) 72%, #fff 12%);
    opacity: .72;
    text-shadow:
      0 1px 0 rgba(0, 0, 0, .85),
      0 -1px 0 rgba(255, 255, 255, .12);
    transition: color .35s ease;
  }
  .phone-engrave:empty { display: none; }
  /* 刻字时中框会变宽一点（底部留白），加个微小内陷质感 */
  .phone-engrave span {
    display: inline-block;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .6));
  }
  /* 移动端：壳/材质/刻字都不显示（外框不存在），但输入行仍可用于预设置 */

  /* ---- 屏幕：曲面玻璃本体 ---- */
  .phone-screen {
    display: block;
    position: relative; overflow: hidden;
    width: 100%; height: 100%;
    border-radius: 50px;
    background: var(--bg);
    /* 曲面屏关键：左右边缘双层暗角（快衰减+慢衰减）模拟柱面玻璃弯折 */
    box-shadow:
      inset 54px 0 70px -46px rgba(0, 0, 0, .98),   /* 左边缘弯曲暗角：远场 */
      inset 16px 0 26px -14px rgba(0, 0, 0, .5),    /* 左边缘弯曲暗角：近场 */
      inset -54px 0 70px -46px rgba(0, 0, 0, .98),  /* 右边缘弯曲暗角：远场 */
      inset -16px 0 26px -14px rgba(0, 0, 0, .5),   /* 右边缘弯曲暗角：近场 */
      inset 0 3px 10px rgba(255, 255, 255, .045),   /* 顶部玻璃反光 */
      inset 0 0 0 1px rgba(0, 0, 0, .9),
      0 0 0 3px rgba(5, 6, 11, .92),                /* 黑色屏幕包边：填平与中框之间的暗带，四角过渡一体 */
      0 0 8px rgba(0, 0, 0, .55);
  }

  /* 屏幕玻璃整体：斜向反光带（静态通透感）
     z-index 55：必须压在启动页 .gate(50) 之上，曲面弯折在登录页也可见；
     仍低于灵动岛(60)/扇形创作盘(65)/弹层(70)，不挡任何交互 */
  .screen-sheen {
    display: block; position: absolute; inset: 0; z-index: 55;
    pointer-events: none; border-radius: 50px;
    background:
      linear-gradient(115deg,
        rgba(255, 255, 255, .11) 0%,
        rgba(255, 255, 255, .055) 13%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, .028) 86%,
        rgba(255, 255, 255, .07) 100%);
    mix-blend-mode: screen;
  }
  /* 曲面屏两侧：真 3D 玻璃弯折层——外缘绕与主屏的接缝向后卷入，
     配合镜面高光线 + 折痕暗线，弯折弧度一眼可见 */
  .screen-curve-l, .screen-curve-r {
    display: block; position: absolute; top: 0; bottom: 0; width: 66px;
    z-index: 56; pointer-events: none;
  }
  .screen-curve-l {
    left: -8px; border-radius: 50px 0 0 50px;
    transform-origin: right center;
    transform: perspective(460px) rotateY(-27deg);
    background: linear-gradient(90deg,
      rgba(205, 222, 255, .32) 0%,   /* 外缘：弯折玻璃的环境反光 */
      rgba(140, 165, 210, .10) 5%,
      rgba(0, 0, 0, .46) 34%,
      rgba(0, 0, 0, .18) 64%,
      rgba(0, 0, 0, 0) 100%);
  }
  .screen-curve-r {
    right: -8px; border-radius: 0 50px 50px 0;
    transform-origin: left center;
    transform: perspective(460px) rotateY(27deg);
    background: linear-gradient(270deg,
      rgba(205, 222, 255, .32) 0%,
      rgba(140, 165, 210, .10) 5%,
      rgba(0, 0, 0, .46) 34%,
      rgba(0, 0, 0, .18) 64%,
      rgba(0, 0, 0, 0) 100%);
  }
  /* 外缘 1.5px 镜面高光线：曲面屏最标志性的竖向反光 */
  .screen-curve-l::before, .screen-curve-r::before {
    content: ''; position: absolute; top: 0; bottom: 0; width: 1.5px;
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .6) 10%,
      rgba(255, 255, 255, .22) 50%, rgba(255, 255, 255, .55) 90%,
      rgba(255, 255, 255, 0) 100%);
    filter: blur(.4px);
  }
  .screen-curve-l::before { left: 0; }
  .screen-curve-r::before { right: 0; }
  /* 与主屏接缝处的折痕暗线：交代「屏幕在这里开始弯」 */
  .screen-curve-l::after, .screen-curve-r::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 3px;
  }
  .screen-curve-l::after {
    right: 0; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .4));
  }
  .screen-curve-r::after {
    left: 0; background: linear-gradient(270deg, transparent, rgba(0, 0, 0, .4));
  }

  /* 灵动岛 */
  .phone-island {
    display: flex; align-items: center; justify-content: flex-end;
    position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    width: 100px; height: 27px; padding-right: 9px;
    border-radius: 15px; background: #040508; z-index: 60;
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, .07),
      0 1px 2px rgba(0, 0, 0, .8);
  }
  /* 灵动岛 = 换壳快捷入口：左侧小圆点实时显示当前壳色（CSS 变量自动联动），
     点击打开「外观」弹窗（主题 + 手机壳） */
  .phone-island { cursor: pointer; }
  .phone-island .pi-shell {
    width: 10px; height: 10px; border-radius: 50%;
    margin-right: auto; margin-left: 10px;
    background: linear-gradient(135deg, var(--shell-hi), var(--shell-base));
    box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .3), 0 0 6px color-mix(in srgb, var(--shell-hi) 45%, transparent);
    transition: transform .2s ease, background .35s ease;
  }
  .phone-island:hover .pi-shell { transform: scale(1.25); }
  .phone-island:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 1px 2px rgba(0, 0, 0, .8); }
  .phone-island .pi-lens {
    width: 7px; height: 7px; border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, #334765, #080a10 72%);
    box-shadow: inset 0 0 2px rgba(130, 180, 255, .6);
  }

  /* ---- 侧键：钛金属按键，带弧面受光（颜色随壳色联动） ---- */
  .phone-btns { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 4; }
  .phone-btns .pb {
    position: absolute; width: 4px;
    background: linear-gradient(90deg, var(--shell-deep) 0%, var(--shell-hi) 45%, var(--shell-mid) 100%);
    box-shadow:
      inset 0 0 0 .5px rgba(255, 255, 255, .14),
      0 1px 3px rgba(0, 0, 0, .7);
  }
  .pb-mute  { left: -4px; top: 118px; width: 4px; height: 30px; border-radius: 2px 0 0 2px; }
  .pb-vol-up { left: -4px; top: 178px; width: 4px; height: 56px; border-radius: 2px 0 0 2px; }
  .pb-vol-dn { left: -4px; top: 244px; width: 4px; height: 56px; border-radius: 2px 0 0 2px; }
  .pb-action { left: -4px; top: 330px; width: 4px; height: 40px; border-radius: 2px 0 0 2px; }
  .pb-power { right: -4px; top: 200px; width: 4px; height: 84px; border-radius: 0 2px 2px 0; }

  /* 壳内 App：撑满屏幕，去掉旧的外框约束 */
  .phone-wrap .app {
    height: 100%; max-width: none; margin: 0;
    animation: none;
  }
  /* 登录舱住在壳屏内（v2.59.9）：跟随屏幕圆角裁切，四角不会从圆角外露出（照片背景下呈「黑角」） */
  .phone-wrap #gate {
    border-radius: 50px;
    overflow: hidden;
  }
  /* 顶栏为灵动岛让位 */
  .phone-wrap .topbar { padding-top: 32px; }
  /* 底部安全区：home indicator 空间，避免圆角裁切内容 */
  .phone-wrap .tabbar { height: 90px; padding-bottom: 16px; }
  .phone-wrap .tabbar::before {
    content: ''; position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%);
    width: 132px; height: 4.5px; border-radius: 3px;
    background: color-mix(in srgb, var(--text) 30%, transparent);
  }
  /* 弹层限定在手机屏内（DOM 已置于 .phone-screen；移动端 .phone-screen 为 contents，不受影响）
     曲面装饰层 z-index 40~41，弹层需盖在其上（z-index 70） */
  .modal, .toast, .call-overlay, .ban-overlay {
    position: absolute !important;
    z-index: 70;
  }
  .toast { left: 50%; right: auto; }
  /* 扇形创作仪表盘同样限定在手机屏内，仍低于弹窗层 */
  .fab-dash { position: absolute !important; z-index: 65; }

  /* ---- 全屏无壳模式（html.frame-bare，外观弹窗可切换） ----
     去掉手机壳 / 灵动岛 / 侧键 / 玻璃反光，App 直接铺满整个浏览器视口，
     内容阅读面积最大化；移动端不受影响（该类只在 ≥900px 生效）。 */
  html.frame-bare .phone-wrap {
    display: block; position: static;
    min-height: 100dvh; padding: 0;
    perspective: none;
  }
  html.frame-bare .phone-frame {
    width: 100%; height: 100dvh;
    padding: 0; border-radius: 0;
    background: var(--bg);
    box-shadow: none;
    animation: none;
  }
  html.frame-bare .phone-frame::before,
  html.frame-bare .phone-frame::after { content: none; }
  /* 壳体装饰层全部隐藏 */
  html.frame-bare .phone-glow,
  html.frame-bare .phone-btns,
  html.frame-bare .phone-texture,
  html.frame-bare .phone-engrave,
  html.frame-bare .screen-sheen,
  html.frame-bare .screen-curve-l,
  html.frame-bare .screen-curve-r,
  html.frame-bare .phone-island { display: none !important; }
  /* 屏幕铺满视口，去掉曲面圆角与包边 */
  html.frame-bare .phone-screen {
    border-radius: 0;
    box-shadow: none;
  }
  html.frame-bare .phone-wrap #gate { border-radius: 0; }
  /* 灵动岛隐藏后，顶栏 / 底栏恢复常规安全区 */
  html.frame-bare .phone-wrap .topbar { padding-top: 0; }
  html.frame-bare .phone-wrap .tabbar { height: 76px; padding-bottom: 8px; }
  html.frame-bare .phone-wrap .tabbar::before { content: none; }
}


/* v2.94.3 顶栏三层重构：
   ① 品牌识别层——logo 放大 + 「π Nexus」加粗 + 下方短标签「Web3 数创存证与社交平台」
   ② 氛围背景层——深蓝紫渐变 + 星尘微光 + 霓虹顶缘光（玻璃拟态，不抢内容）
   ③ 功能入口层——搜索框收窄为辅助入口，右侧保留消息/通知/积分 */
.topbar {
  display: flex; align-items: center; gap: 10px;
  height: 64px; padding: 0 16px;
  /* v2.95.0：旧内核不支持 color-mix 时整条 background 会被丢弃，先给纯色兜底 */
  background: var(--bg-1);
  background:
    radial-gradient(130% 240% at 12% 0%, rgba(76, 68, 224, .16), transparent 52%),
    radial-gradient(130% 240% at 88% 0%, rgba(148, 84, 236, .13), transparent 52%),
    color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(24px) saturate(1.3);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
/* 星尘：确定性散布的微光点，极低存在感但有「空间入口感」 */
.topbar::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 6% 34%, rgba(255,255,255,.55), transparent 70%),
    radial-gradient(1px 1px at 17% 72%, rgba(214,196,255,.45), transparent 70%),
    radial-gradient(1.4px 1.4px at 29% 22%, rgba(255,255,255,.4), transparent 70%),
    radial-gradient(1px 1px at 41% 64%, rgba(186,206,255,.5), transparent 70%),
    radial-gradient(1.2px 1.2px at 54% 28%, rgba(255,255,255,.42), transparent 70%),
    radial-gradient(1px 1px at 67% 70%, rgba(214,196,255,.4), transparent 70%),
    radial-gradient(1.3px 1.3px at 79% 24%, rgba(255,255,255,.45), transparent 70%),
    radial-gradient(1px 1px at 91% 58%, rgba(186,206,255,.45), transparent 70%);
  opacity: .8;
}
/* 霓虹顶缘光：极细品牌色渐变线，Web3 高级感 */
.topbar::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1.5px;
  background: linear-gradient(90deg,
    transparent 4%,
    color-mix(in srgb, var(--accent-2, #F07BA4) 72%, transparent) 30%,
    color-mix(in srgb, var(--accent, #D14979) 66%, transparent) 62%,
    transparent 96%);
  opacity: .6; pointer-events: none; z-index: 0;
}
.topbar > * { position: relative; z-index: 1; }
.topbar-brand {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  border: none; background: none; padding: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.topbar-brand .logo-hex { width: 30px; height: 30px; color: var(--accent); display: inline-flex; filter: drop-shadow(0 0 8px var(--accent-soft)); }
.topbar-brand .logo-hex svg { width: 100%; height: 100%; }
.brand-block { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.logo-text { font-size: 16.5px; font-weight: 500; letter-spacing: .24em; color: var(--text); line-height: 1; white-space: nowrap; }
/* 品牌短标签：品牌色渐变文字，一眼知道平台定位 */
.logo-tagline {
  font-size: 9px; letter-spacing: .08em; line-height: 1; white-space: nowrap;
  color: var(--text-3);
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--accent-2, #F07BA4) 80%, transparent),
    color-mix(in srgb, var(--accent, #D14979) 80%, transparent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* 顶栏内嵌搜索框：辅助入口——收窄不占满，点击仍打开全站搜索层 */
.topbar-search {
  flex: 1 1 90px; max-width: 260px; min-width: 0; height: 36px; margin-left: auto;
  display: flex; align-items: center; gap: 7px;
  padding: 0 12px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--text-3); font-size: 13px; text-align: left;
  transition: .22s;
}
.topbar-search:hover { border-color: var(--accent-line); color: var(--text-2); }
.topbar-search svg { width: 15px; height: 15px; flex-shrink: 0; }
.topbar-search-hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 极窄屏：只留放大镜，避免挤压通知与积分 */
@media (max-width: 560px) {
  .topbar-search-hint { display: none; }
  .topbar-search { padding: 0 11px; justify-content: center; }
}
.topbar-chain {
  display: flex; align-items: center; gap: 6px;
  font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
}
.topbar-chain .dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 7px var(--mint); animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: .3; } }
.topbar-wallet {
  display: flex; align-items: baseline; gap: 4px;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  transition: .25s; flex-shrink: 0;
}
.topbar-wallet:hover { border-color: var(--accent); }
.topbar-wallet .wal { font-size: 12px; font-weight: 600; color: var(--accent-2); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.topbar-wallet .wal-unit { font-size: 9px; color: var(--text-3); letter-spacing: .1em; }

/* 顶栏操作区：通知 / 积分（搜索框已占满中段，此处不再 margin-left:auto） */
.topbar-acts { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.topbar-ico {
  position: relative; width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: transparent; color: var(--text-2);
  transition: .22s; flex-shrink: 0;
}
.topbar-ico:hover { border-color: var(--accent-line); color: var(--accent-2); background: var(--accent-soft); }
.topbar-ico svg { width: 17px; height: 17px; }
.topbar-badge {
  position: absolute; top: -3px; right: -3px; min-width: 15px; height: 15px;
  padding: 0 4px; border-radius: 999px;
  background: var(--danger, #e0808c); color: #fff;
  font-size: 9px; font-weight: 700; line-height: 15px; text-align: center;
  box-shadow: 0 0 0 2px var(--bg);
}

.view {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 0 0 84px;   /* 底栏 60px + 安全余量 */
  overscroll-behavior: contain;
  /* v3.11.9l 全站整页线条总框：一处生效、所有页面统一纳入（首页/广场的独立总框已移除） */
  margin: 0 8px;
  border: 1px solid rgba(240, 123, 164, 0.22);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(42, 15, 32, 0.3), rgba(19, 10, 26, 0.55));
  /* v3.11.9m 去掉滚动容器上的大模糊阴影：每帧重绘代价高（低端机马赛克/卡顿元凶） */
}
.view::-webkit-scrollbar { width: 0; }

/* ---- 发布弹窗：存证协议勾选 + 须知列表 ---- */
.compose-agree {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 12px; padding: 0 4px;
  font-size: 11.5px; color: var(--text-2); line-height: 1.7;
}
.agree-chk {
  width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px;
  display: grid; place-items: center;
  border: 1.5px solid var(--line-2); border-radius: 5px;
  background: transparent; cursor: pointer; transition: all .18s;
  padding: 0; color: transparent;
}
.agree-chk svg { width: 10px; height: 10px; }
.agree-chk.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.agree-txt a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
/* 存证须知独立浮层：盖在发布弹窗（.modal z-index 80）之上，不影响其下表单 */
.attest-layer {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px);
  animation: fadeIn .25s both;
}
.attest-layer-card {
  width: 100%; max-width: 500px; max-height: 86dvh; overflow-y: auto;
  background: var(--bg-1); border-top: 1px solid var(--line-2);
  border-radius: 26px 26px 0 0; padding: 24px 22px 32px;
  animation: sheetUp .36s cubic-bezier(.2,.9,.25,1) both;
}
.attest-layer-card::-webkit-scrollbar { width: 0; }

.attest-notice { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 2px; }
.attest-notice-li {
  display: flex; gap: 7px; font-size: 12.5px; line-height: 1.75; color: var(--text-body);
}
.attest-notice-li b { color: var(--accent); flex: none; font-weight: 600; }
/* 浮层内的「查看全文」链接行（存证须知 / 敏感信息授权书共用） */
.attest-layer-links { display: flex; gap: 12px; padding-left: 2px; }
.attest-layer-links a {
  font-size: 12.5px; color: var(--accent);
  text-decoration: underline; text-underline-offset: 2px;
}

/* ============================ 底部导航 ============================ */
.tabbar {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-around;
  height: 60px;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(28px) saturate(1.4);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 12;
}
/* 金弧曲线：横贯栏顶、在中央发布按钮处下凹 */
.tabbar-arc {
  position: absolute; top: -1px; left: 0; width: 100%; height: 26px;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(111, 184, 245, .45));
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10px; color: var(--text-3); padding: 7px 0 8px;
  letter-spacing: .06em; transition: .25s; position: relative;
}
.tab svg { width: 21px; height: 21px; transition: .25s; }
.tab:hover { color: var(--text-2); }
.tab.on { color: var(--accent); }
.tab.on svg { color: var(--accent); }
.tab.on::after {
  content: ''; position: absolute; bottom: 4px;
  width: 3.5px; height: 3.5px; border-radius: 50%; background: var(--accent);
}
.tab-post { flex: 0 0 auto; padding: 0 14px; }
.tab-plus {
  width: 44px; height: 44px; margin-top: -22px;
  display: grid; place-items: center;
  border-radius: 22px; color: var(--accent);
  background: var(--bg-1);
  background: color-mix(in srgb, var(--bg-1) 88%, #000);
  border: 2px solid var(--accent);
  box-shadow: 0 6px 20px rgba(111, 184, 245, .35), 0 0 0 4px var(--bg), 0 0 14px rgba(111, 184, 245, .35);
  transition: .3s;
}
.tab-plus svg { width: 17px; height: 17px; }
.tab-post:hover .tab-plus { transform: translateY(-3px) rotate(90deg); }

/* ============================ 通用组件 ============================ */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 26px 20px 12px;
}
/* 居中版 section 标题条（如「我的积分」）：与「退出登录」按钮同款 —— 通栏、居中、带边框 */
.section-head.center {
  justify-content: center;
  margin: 26px 20px 12px;
  padding: 14px 18px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
}
.section-head.center .section-title { text-align: center; font-size: 15px; font-weight: 500; letter-spacing: .06em; }
/* 居中模式下右侧小徽标（如「运行中」）与标题并排 */
.section-head.center .chip { margin-left: 12px; flex: none; align-self: center; }

/* 说明卡片（积分说明/即将过期等 note 内容）：带边框的卡片容器 + 内部正文 */
.note-box {
  margin: 12px 16px 0;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.note-box .section-head.center {
  margin: 0 0 10px;
  padding: 0;
  border: none;
  border-radius: 0;
}
.note-box .note-line {
  font-size: 13px; line-height: 1.8;
  color: var(--text-2);
}
/* 居中模式 + 右侧操作按钮：标题保持视觉居中，按钮绝对贴右 */
.section-head.center.has-aside { position: relative; }
.section-head.center.has-aside .head-aside {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  padding: 8px 14px;
}
.section-title {
  font-size: 19px; font-weight: 600; letter-spacing: .01em; line-height: 1.3;
}
.section-title small {
  display: block; font-size: 11px; color: var(--text-3); font-weight: 300;
  letter-spacing: .04em; margin-top: 3px;
}
.section-more { font-size: 12px; color: var(--text-3); letter-spacing: .04em; }
.section-more:hover { color: var(--accent); }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; padding: 18px;
}
.card-hot { border-color: var(--accent-line); }

.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 500; font-size: 14.5px; color: #fff;
  letter-spacing: .02em;
}
.avatar-sm { width: 28px; height: 28px; border-radius: 50%; font-size: 11.5px; }
.avatar-lg { width: 62px; height: 62px; border-radius: 50%; font-size: 22px; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2.5px 9px; border-radius: 999px; font-size: 10.5px;
  border: 1px solid var(--line); color: var(--text-2);
  letter-spacing: .04em; font-weight: 400;
}
/* 创作者标签：细金色小字，无背景色块（规范：金色只做文字/线条/图标点缀） */
.chip-neon { background: none; border: none; color: var(--accent); font-weight: 500; padding: 0; font-size: 10.5px; letter-spacing: .04em; }
.chip-mint { background: rgba(127, 201, 166, .09); border-color: rgba(127, 201, 166, .3); color: var(--mint); }
.chip-gold { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-2); }
.chip-hot { background: rgba(224, 128, 140, .09); border-color: rgba(224, 128, 140, .3); color: var(--rose); }

.btn-sm {
  padding: 7px 16px; border-radius: 999px; font-size: 12px; font-weight: 500;
  border: 1px solid var(--line-2); color: var(--text-2);
  letter-spacing: .04em; transition: .22s;
}
.btn-sm:hover { background: var(--panel); color: var(--text); }
.btn-neon {
  background: var(--accent); border-color: transparent; color: var(--accent-ink);
  box-shadow: 0 5px 18px var(--accent-soft);
}
/* 修复：移动端 tap 后 :hover 粘滞，.btn-sm:hover 的深底会盖掉金色选中底导致文字不可见 */
.btn-neon:hover, .btn-sm.btn-neon:hover, .btn-sm.btn-neon:active {
  background: var(--accent); color: var(--accent-ink); filter: brightness(1.06);
}
.btn-danger { color: var(--danger); border-color: rgba(222, 107, 120, .3); }

.mono { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; }
.hash { font-size: 10px; color: var(--text-3); font-family: ui-monospace, monospace; letter-spacing: .02em; }

/* 存证凭证条:hairline + 小字距 */
/* 存证条：冰蓝霜面（点睛卡），深蓝文字保证可读 */
.chain-strip {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px;
  margin-top: 12px; padding: 8px 11px; border-radius: 11px;
  border: 1px solid rgba(111, 184, 245, .4);
  background: linear-gradient(135deg, rgba(190, 226, 255, .16), rgba(120, 180, 245, .08));
  color: #CFE8FF; letter-spacing: .05em;
  box-shadow: inset 0 1px 0 rgba(220, 240, 255, .22);
}
/* 附加徽标（共X张 · 整体哈希确权）：不许被挤出条外，放不下就整块换行 */
.chain-strip .chip { flex: none; max-width: 100%; margin-left: auto !important; white-space: nowrap; }
.chain-strip .ico { color: #A5D6FF; display: inline-flex; flex: none; }
.chain-strip .ico svg { width: 11px; height: 11px; }
.chain-strip .mono, .chain-strip code { color: #CFE8FF; }
/* 长地址/哈希等无空格长串在窄屏内强制折行，防止溢出容器（注册页完整钱包地址等） */
.chain-strip > span, .chain-strip > code {
  min-width: 0; max-width: 100%;
  overflow-wrap: anywhere; word-break: break-all;
  line-height: 1.6;
}

/* ============================ 动态流 ============================ */
/* 分类标签栏：无背景色块，选中为古金字 + 文字下方 2px 金色短下划线 */
/* v2.94.3 功能入口层：推荐/动态/视频/长文导航吸顶在顶栏正下方，滚动常驻可见 */
.feed-tabs {
  display: flex; align-items: center; gap: 24px;
  height: 44px; padding: 0 20px; overflow-x: auto;
  /* v2.96.1 关键修复：滚动发生在 main.view 容器内（窗口不滚动），
     sticky top 相对滚动容器计算 —— main 顶缘正好在顶栏下缘，
     写 64px 会叠加出 64px 空缝（实际吸附在 128px），内容从缝里穿透。
     top:0 = 紧贴顶栏下缘。 */
  position: sticky; top: 0; z-index: 9;
  /* v2.95.0 兼容回退：旧内核（部分 Android WebView）不支持 color-mix()，
     整条 background 声明会被丢弃 → 吸顶栏全透明，下方内容滚动穿透（线上 bug）。
     先给一条所有浏览器都认的纯色兜底，支持 color-mix 的再覆盖为半透明毛玻璃。 */
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}
.feed-tabs::-webkit-scrollbar { height: 0; }
.ftab {
  position: relative; padding: 0 2px 10px; white-space: nowrap;
  border: none; background: none;
  font-size: 14px; color: var(--text-2);
  letter-spacing: .04em; transition: color .25s;
}
/* 下划线宽度过渡：点击会整页重渲染，故用自身 ::after 而非滑动指示器，避免闪跳 */
.ftab::after {
  content: ''; position: absolute; left: 50%; bottom: 0;
  width: 0; height: 2px; border-radius: 1px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width .25s ease;
}
.ftab:hover { color: var(--text); }
.ftab.on { color: var(--accent); }
.ftab.on::after { width: 100%; }

/* ==================== 广场双列网格 ====================
   仅作用于广场 Feed（class 挂在 Feed() 的容器上），窄屏自动降回单列。
   注意：以下所有规则都必须带 .feed-grid 前缀——.post 被详情页 / 收藏页 /
   话题页 / 个人主页等 6 处共用，写成全局选择器会一并污染它们。 */
/* ⚠️ minmax(0, 1fr) 而非 1fr：grid item 默认 min-width:auto，
   等价于 minmax(auto, 1fr)，列会拒绝收缩到内容的 min-content 以下 →
   在 412px 的「手机壳」里 2 列会撑到 267px×2（含 gap 共 546px）横向溢出。
   用 minmax(0, 1fr) 解除下限，再由下面的 min-width:0 / 省略号兜住长昵称。 */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 4px 20px 0;
  align-items: start;            /* 卡片各按自身高度，不被同行拉伸 */
}

/* .post 自带 margin:16px 16px 0，放进网格会与 gap 叠加成双重留白 →
   归零，左右留白统一由 .feed-grid 的 padding 控制
   （与 .topic-grid 同模式：卡片本身无 margin，靠栅格 padding 控留白） */
.feed-grid .post { margin: 0; padding: 16px; min-width: 0; overflow: hidden; }

/* 头部：窄列下收紧间距，避免昵称+时间+创作者徽标挤爆一行。
   min-width:0 是必须的——.post-who 是 flex 子项，不加就会被长昵称
   顶到 min-content（实测 190px），反过来把整列撑宽 */
.feed-grid .post-head { gap: 9px; min-width: 0; }
.feed-grid .post-who { min-width: 0; }
.feed-grid .post-name { font-size: 13px; gap: 5px; min-width: 0; overflow: hidden; }
.feed-grid .post-name > * { min-width: 0; }
.feed-grid .post-meta {
  font-size: 10.5px; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.feed-grid .post-badges { flex-shrink: 0; }/* 标题与正文：字号略降；首页简介最多 2 行（规范），超出省略 */
.feed-grid .post-title { font-size: 15px; margin-top: 10px; }
.feed-grid .post-body { font-size: 13px; line-height: 1.72; margin-top: 10px; }

/* v2.87.1 徽章独立行：窄列收窄左右留白，间距仍为正值（不再与作者行重叠） */
.feed-grid .post-badges { margin: 2px 4px 10px auto; max-width: 100%; }

/* 操作行：5+ 个按钮在窄列必然换行（.post-actions 本身已是 flex-wrap:wrap），
   收紧内距与图标尺寸，让「点赞/收藏/评论/打赏/分享」尽量折成紧凑两行 */
.feed-grid .post-actions { gap: 1px; row-gap: 1px; margin-top: 12px; padding-top: 11px; }
.feed-grid .pact { padding: 5px 7px; font-size: 11.5px; gap: 4px; }
/* 作者删除按钮：弱化的警示红，hover 才加重，避免误触观感 */
.pact-del { color: rgba(200, 90, 80, .75); }
.pact-del:hover { color: rgba(220, 80, 66, 1); }
.feed-grid .pact svg { width: 14px; height: 14px; }
/* 打赏按钮带金额（"打赏 123"）文字较长，窄列只留图标，免得整行被它顶开 */
.feed-grid .pact-tip span { display: none; }

/* 媒体：双列下高度上限收紧，避免单张图占满整屏 */
.feed-grid .post-video-el { max-height: 200px; }
.feed-grid .post-img { max-height: 200px; }
.feed-grid .post-img.clamped { max-height: 160px; }
.feed-grid .post-media-play { width: 44px; height: 44px; font-size: 15px; }
.feed-grid .post-media-hint { font-size: 10px; }

.feed-grid .post-tags { margin-top: 10px; gap: 5px; }
.feed-grid .tag { font-size: 11px; }

/* 广场双列骨架：与 .feed-grid 同栅格，避免加载态跳变 */
.sk-feedGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sk-feedGrid .sk-card { min-width: 0; }

/* 降级：窄屏（每列会挤到 160~190px）回到单列，并恢复单列时的排版尺度。
   注：媒体查询按视口宽度判断——桌面端视口 ≥900px 不命中，双列恒生效；
   移动端视口 <560px 命中，正确降级。 */
@media (max-width: 559px) {
  .feed-grid { grid-template-columns: 1fr; padding: 4px 20px 0; }
  .feed-grid .post { padding: 16px; }
  .feed-grid .post-title { font-size: 16.5px; }
  .feed-grid .post-body { font-size: 15px; line-height: 1.8; }
  .feed-grid .post-video-el { max-height: 300px; }
  .feed-grid .post-img { max-height: 320px; }
  .feed-grid .post-img.clamped { max-height: 220px; }
  .sk-feedGrid { grid-template-columns: 1fr; }
}
/* 商城分类栏：分类数徽标（分类由店主自由填写） */
.shop-cat-n {
  display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 7px;
  font-size: 10px; font-style: normal; background: var(--panel-2, #14161c); color: var(--text-3);
}
.ftab.on .shop-cat-n { background: rgba(255, 255, 255, .1); color: var(--accent-2); }
/* 上架表单：自定义分类快捷气泡 */
.myshop-cat-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 12px; }
.myshop-cat-quick.hidden { display: none; }
.myshop-cat-chip {
  padding: 5px 11px; border-radius: 999px; font-size: 11.5px; cursor: pointer;
  background: var(--panel-2, #14161c); border: 1px solid var(--line); color: var(--text-2);
  font-family: inherit;
}
.myshop-cat-chip:hover { border-color: var(--neon); color: var(--neon); }

.post {
  margin: 16px 20px 0; padding: 16px;
  /* 描金卡：暖金渐变卡底（顶部微光，向下沉入面板色） */
  background: linear-gradient(180deg, rgba(111, 184, 245, .06), rgba(111, 184, 245, .02) 40%, rgba(111, 184, 245, 0) 76%), var(--panel);
  border: 1px solid rgba(111, 184, 245, .3);
  border-radius: 16px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  animation: rise .45s both;
}
/* 点击卡片：轻微上浮 + 柔和阴影（移动端按压仍由 .post-clickable:active 兜底） */
.post:hover { border-color: rgba(111, 184, 245, .48); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0, 0, 0, .45), 0 0 14px rgba(111, 184, 245, .08); }
.post-head { display: flex; align-items: center; gap: 11px; }
.post-who { flex: 1; min-width: 0; }
/* 用户名行：昵称居左，@ID + 时间靠右同一行（降低信息堆叠） */
.post-namerow { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
/* @用户名 · 时间独占第二行并左对齐靠头像（特异性高于 .post-meta 的右对齐） */
.post-meta.post-idline { display: block; margin-left: 0; margin-top: 2px; max-width: 100%; text-align: left; }
.post-name { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; letter-spacing: .01em; min-width: 0; color: var(--text); }
.post-meta {
  margin-left: auto; flex: 0 0 auto;
  font-size: 11px; color: var(--text-3); letter-spacing: .02em;
  max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.post-body {
  margin-top: 12px; font-size: 15px; line-height: 1.8; color: var(--text-2);
  white-space: pre-wrap; word-break: break-word; font-weight: 400;
}
/* 长文案「展开 / 收起」按钮（信息流正文、视频文案共用） */
.text-toggle {
  display: inline-block; background: none; border: none; padding: 0 0 0 6px; margin: 0;
  font-size: 13px; font-weight: 500; color: var(--accent); cursor: pointer;
  letter-spacing: .04em; vertical-align: baseline; line-height: inherit;
}
.text-toggle:active { opacity: .7; }
/* 信息流内嵌媒体 */
.post-video { position: relative; margin-top: 12px; border-radius: 12px; overflow: hidden; background: var(--panel-2); }
/* 深色骨架占位 + 渐显：视频元数据就绪前显示柔和底色，避免黑块突兀 */
.post-video::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, var(--panel-2) 30%, var(--bg-2) 50%, var(--panel-2) 70%);
  background-size: 220% 100%;
  animation: media-skel 1.6s linear infinite;
  transition: opacity .45s ease;
}
.post-video.media-ready::before { opacity: 0; }
@keyframes media-skel {
  from { background-position: 140% 0; }
  to { background-position: -40% 0; }
}
.post-video-el {
  width: 100%; max-height: 300px; display: block; object-fit: cover;
  background: transparent; opacity: 0; transition: opacity .45s ease;
  /* v2.56.7 vivo 等国产内核：video 播放后走原生层，滚动时不遵守父容器的
     overflow/裁剪，画面会「漏」到卡片外甚至盖住底栏。强制提升为网页
     合成层后回归正常图层体系（Chrome 本来就正常，此规则对其无副作用）。 */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}
/* v2.56.9 详情页封面 + 全屏浮层播放 */
.post-video-cover {
  width: 100%; max-height: 300px; display: block; object-fit: cover;
  background: var(--panel-2, rgba(120, 180, 245, .06));
  cursor: pointer;
}
.video-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: #000;
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
}
.video-overlay-bar {
  flex: 0 0 auto;
  display: flex; align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 6px) 10px 6px;
  background: #000;
}
.video-overlay-back {
  border: 0; background: transparent; color: #fff;
  font-size: 16px; padding: 8px 10px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 2px;
}
.video-overlay-el {
  flex: 1 1 auto; width: 100%; min-height: 0;
  object-fit: contain; background: #000; display: block;
}
.video-overlay-x {
  position: absolute; top: calc(env(safe-area-inset-top, 0px) + 12px); right: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(20, 22, 28, .72); color: #fff;
  font-size: 17px; display: grid; place-items: center; cursor: pointer;
}
.post-video.media-ready .post-video-el { opacity: 1; }
.post-video-go {
  position: absolute; right: 10px; bottom: 10px;
  font-size: 11px; letter-spacing: .05em; color: #fff;
  background: rgba(8,8,12,.55); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 5px 12px;
  transition: .25s;
}
.post-video-go:hover { color: var(--accent-2); border-color: var(--accent-line); }
/* 封面缺失兜底：16:9 占位 + 居中播放图标，避免媒体区高度塌成 0 */
.post-video.post-video-blank { aspect-ratio: 16 / 9; }
.post-video.post-video-blank::after {
  content: '▶'; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%); z-index: 1;
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(8, 8, 12, .55); border: 1px solid rgba(255, 255, 255, .22);
  color: #fff; font-size: 22px; display: grid; place-items: center;
  padding-left: 5px; pointer-events: none;
}
.post-video-go { z-index: 2; }
.post-imgwrap { margin-top: 12px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.post-img { width: 100%; display: block; max-height: 320px; object-fit: cover; cursor: zoom-in; background: var(--bg-2); opacity: 0; transition: opacity .4s ease; }
.post-img.loaded, .post-img.complete { opacity: 1; }
.post-title { font-size: 18px; font-weight: 700; margin: 12px 0 0; letter-spacing: .01em; line-height: 1.5; color: var(--text); }
/* 话题标签：古金细字、无底色，标签间距一个空格量 */
.post-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.tag {
  font-size: 11.5px; color: var(--accent);
  letter-spacing: .02em; opacity: .9;
  background: none; padding: 0;
}
.post-actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px; row-gap: 2px; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid var(--line);
}
.pact {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 9px; border-radius: 10px; font-size: 12px;
  /* 淡米金色：比 text-3 更深更醒目，与古金主题呼应 */
  color: #d3bf97;
  transition: .22s; letter-spacing: .03em;
  white-space: nowrap; flex-shrink: 0;
}
.pact svg { width: 15px; height: 15px; }
.pact:hover { background: var(--panel-2); color: var(--text); }
/* 点亮态统一古金（点赞保留玫红，符合国内社区习惯） */
.pact.on { color: var(--accent); }
.pact.on svg { fill: currentColor; }
.pact-like.on { color: var(--rose); }
.pact-tip:hover, .pact-tip.on { color: var(--gold); }
/* 收藏按钮：金色高亮，与点赞（玫红）在视觉上区分 */
.pact-fav:hover { color: var(--gold); }
.pact-fav.on, .pact-fav.on svg { color: var(--gold); fill: currentColor; }
/* 浏览量：只读指标，不可点 */
.pact-view { cursor: default; pointer-events: none; color: var(--text-3); }
.pact-count { font-variant-numeric: tabular-nums; }

.comments { margin-top: 13px; display: grid; gap: 10px; }
.comment { display: flex; gap: 10px; font-size: 13px; }
.comment-body { flex: 1; }
.comment-name { color: var(--text-2); font-weight: 500; font-size: 12px; letter-spacing: .02em; }
.comment-text { color: var(--text-soft); margin-top: 2px; font-weight: 300; line-height: 1.65; }

/* ============================ 短视频 ============================ */
.video-wrap { scroll-snap-type: y mandatory; height: 100%; overflow-y: auto; }
.video-wrap::-webkit-scrollbar { width: 0; }
.vslide {
  scroll-snap-align: start;
  height: calc(100dvh - 74px);
  position: relative; display: flex; align-items: flex-end;
  padding: 24px 22px 32px; overflow: hidden;
}
.vslide-bg { position: absolute; inset: 0; opacity: .8; }
.vslide-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,5,8,.2) 0%, rgba(5,5,8,.45) 52%, rgba(5,5,8,.95) 100%);
}
/* 真实视频播放 */
.vslide-media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: #05060a; z-index: 1;
}
.vslide-media::after { content: ''; }
/* 视频上方保持底部渐变，保证文字可读 */
.vslide:has(.vslide-media)::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,5,8,.35) 0%, rgba(5,5,8,.05) 38%, rgba(5,5,8,.55) 74%, rgba(5,5,8,.94) 100%);
}
.vslide-dur {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  font-size: 11px; letter-spacing: .06em; color: rgba(255,255,255,.9);
  background: rgba(8,8,12,.5); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 3px 10px;
  font-variant-numeric: tabular-nums;
}
.vslide-sound {
  position: absolute; top: 16px; left: 16px; z-index: 5;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: rgba(255,255,255,.85); background: rgba(8,8,12,.46);
  backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.14); transition: .25s;
}
.vslide-sound svg { width: 15px; height: 15px; }
.vslide-sound:hover { color: var(--accent-2); border-color: var(--accent-line); }
.vslide-sound.on { color: var(--accent-2); }
.vslide-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text);
  background: rgba(10, 10, 12, .4); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .22);
  z-index: 3; transition: .3s;
}
/* 播放中：点击画面改为清屏切换，播放键弱化为极淡底钮保留暂停入口 */
.vslide-play.playing { opacity: .16; }
.vslide-play.playing:hover { opacity: 1; }
.vslide-play svg { width: 20px; height: 20px; margin-left: 2px; }
.vslide-play:hover { transform: translate(-50%, -50%) scale(1.08); border-color: var(--accent-line); color: var(--accent-2); }
.vslide-info { position: relative; z-index: 4; max-width: 76%; transition: opacity .26s ease, transform .26s ease; }
.vslide-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; letter-spacing: .01em; line-height: 1.5; }
.vslide-desc { font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.8; font-weight: 300; }
.vslide-author { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.vslide-side {
  position: absolute; right: 16px; bottom: 38px; z-index: 4;
  display: grid; gap: 20px; justify-items: center;
  transition: opacity .26s ease, transform .26s ease;
}
/* 轻触清屏：文字层与右侧操作栏淡出，只留纯画面（再轻触恢复） */
.vslide.clean .vslide-info { opacity: 0; transform: translateY(12px); pointer-events: none; }
.vslide.clean .vslide-side { opacity: 0; transform: translateX(14px); pointer-events: none; }
.vside { display: grid; justify-items: center; gap: 5px; font-size: 10.5px; color: rgba(255,255,255,.8); letter-spacing: .04em; }
.vside svg { width: 23px; height: 23px; transition: .25s; }
.vside:hover svg { transform: scale(1.12); }
.vside.on { color: var(--rose); }
.vside.on svg { fill: currentColor; }
.vside-tip svg { color: var(--gold); }
/* 短视频侧栏收藏：金色高亮 */
.vside-fav.on { color: var(--gold); }
.vside-fav.on svg { fill: currentColor; }

/* ============ 短视频：评论抽屉 ============ */
/* 就地弹层，不跳离视频流；底部对齐的半屏抽屉，关掉即回到原视频 */
.vcmt {
  display: flex; flex-direction: column;
  max-height: 72vh; min-height: 300px;
  margin: -14px -16px -16px;      /* 抵消 modal-card 内边距，让列表贴边滚动 */
}
.vcmt-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px; flex: 0 0 auto;
  border-bottom: 1px solid var(--line);
}
.vcmt-title { font-size: 14px; font-weight: 650; color: var(--text-1); }
.vcmt-close {
  width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto;
  border: 1px solid var(--line); background: transparent; color: var(--text-3);
  font-size: 12px; line-height: 1; cursor: pointer; transition: .2s;
}
.vcmt-close:hover { color: var(--text-1); border-color: var(--line-2); }
.vcmt-list {
  flex: 1; min-height: 120px; overflow-y: auto;
  padding: 12px 16px; display: flex; flex-direction: column; gap: 12px;
  -webkit-overflow-scrolling: touch;
}
.vcmt-empty {
  padding: 34px 12px; text-align: center;
  font-size: 12.5px; color: var(--text-3); line-height: 1.9;
}
.vcmt-empty .sub { font-size: 11.5px; opacity: .75; }
/* 输入区固定在抽屉底部，列表单独滚动 */
.vcmt .composer { flex: 0 0 auto; margin: 0; padding: 10px 16px 14px; border-top: 1px solid var(--line); }

/* 我的收藏页 */
.fav-more { margin: 14px auto 4px; display: block; width: min(60%, 240px); }
.fav-more.hidden { display: none; }

/* 官方频道（公告 / 广播） */
.channel-view { display: flex; flex-direction: column; min-height: calc(100vh - 120px); }
.channel-summary { margin: 10px 16px 0; padding: 9px 12px; font-size: 12px; color: var(--text-3); background: var(--panel-2); border-radius: 10px; line-height: 1.6; }
.channel-body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 16px 14px 8px; overflow-y: auto; }
.channel-msg { display: flex; align-items: flex-end; gap: 8px; }
.channel-msg.mine { flex-direction: row-reverse; }
.channel-msg-main { max-width: 86%; }
.channel-msg-who { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-3); margin-bottom: 4px; }
.channel-msg-time { font-size: 10px; opacity: .75; }
.channel-msg-text { padding: 10px 13px; border-radius: 4px 14px 14px 14px; background: var(--panel-2); font-size: 13.5px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.channel-msg.mine .channel-msg-text { background: linear-gradient(135deg, rgba(213,183,124,.16), rgba(213,183,124,.07)); border: 1px solid rgba(213,183,124,.28); border-radius: 14px 4px 14px 14px; }
.channel-msg-img { max-width: 100%; max-height: 300px; border-radius: 12px; display: block; }
.channel-msg-imgbox { cursor: pointer; max-width: min(70vw, 260px); }
.channel-msg-del { font-size: 10.5px; color: var(--text-3); opacity: 0; transition: .2s; padding: 4px 7px; flex-shrink: 0; }
.channel-msg:hover .channel-msg-del { opacity: 1; }
.channel-msg-del:hover { color: var(--rose); }
.channel-foot { padding: 8px 14px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.channel-input { display: flex; gap: 8px; }
.channel-input input { flex: 1; }
.channel-readonly { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 11px; font-size: 12px; color: var(--text-3); background: var(--panel-2); border-radius: 11px; }
.channel-readonly svg { width: 14px; height: 14px; color: var(--gold); }

/* ============================ 发布 · 媒体选择 ============================ */
.media-input { display: none; }
.media-box.dragging .media-drop { border-color: var(--accent); background: var(--accent-soft, rgba(213,183,124,.08)); }
.media-drop {
  display: grid; place-items: center; gap: 6px;
  padding: 26px 18px; text-align: center; cursor: pointer;
  border: 1px dashed var(--line-2); border-radius: 14px;
  background: var(--panel-2, rgba(255,255,255,.015));
  transition: .28s;
}
.media-drop:hover { border-color: var(--accent-line); background: rgba(213,183,124,.05); }
.media-drop-ico {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: var(--accent-2); border: 1px solid var(--line-2); margin-bottom: 2px;
}
.media-drop-ico svg { width: 17px; height: 17px; }
.media-drop-t { font-size: 13.5px; font-weight: 550; letter-spacing: .01em; }
.media-drop-s { font-size: 11.5px; color: var(--text-3); font-weight: 300; line-height: 1.7; }

.media-preview { position: relative; border-radius: 14px; overflow: hidden; background: #05060a; }
.media-video { width: 100%; max-height: 320px; display: block; object-fit: contain; background: #05060a; }
.media-img { width: 100%; max-height: 260px; display: block; object-fit: cover; }
.media-badge {
  position: absolute; left: 12px; bottom: 12px;
  font-size: 11px; letter-spacing: .06em; color: #fff;
  background: rgba(8,8,12,.62); backdrop-filter: blur(10px);
  border-radius: 20px; padding: 3px 10px; font-variant-numeric: tabular-nums;
}
.media-remove {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; color: #fff; background: rgba(8,8,12,.6); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18); transition: .25s;
}
.media-remove:hover { background: var(--rose, #E5484D); border-color: transparent; }
.media-meta {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-top: 9px; padding: 0 2px;
}
.media-name {
  font-size: 12.5px; font-weight: 500; color: var(--text-body, var(--text));
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 58%;
}
.media-info { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.media-hint { font-size: 11.5px; color: var(--text-3); font-weight: 300; line-height: 1.7; margin-top: 7px; min-height: 14px; }
.media-progress {
  height: 3px; border-radius: 3px; overflow: hidden; margin-top: 10px;
  background: var(--line); 
}
.media-progress i {
  display: block; height: 100%; width: 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .25s ease;
}

/* ============================ 商城 ============================ */
.shop-cats { display: flex; gap: 7px; padding: 14px 20px 6px; overflow-x: auto; }
.shop-cats::-webkit-scrollbar { height: 0; }
.goods-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 20px 0; }
.goods {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; transition: .3s; animation: rise .45s both;
}
.goods:hover { transform: translateY(-3px); border-color: var(--accent-line); }
.goods-cover { height: 102px; position: relative; }
.goods-cat {
  position: absolute; top: 10px; left: 10px;
  font-size: 9.5px; padding: 3px 8px; border-radius: 999px;
  background: rgba(0,0,0,.45); backdrop-filter: blur(8px);
  color: rgba(255,255,255,.85); letter-spacing: .06em;
}
.goods-body { padding: 13px 14px 15px; }
.goods-title { font-size: 13px; font-weight: 500; line-height: 1.5; height: 39px; overflow: hidden; color: #DDDDE4; }
.goods-price { display: flex; align-items: baseline; gap: 5px; margin-top: 9px; }
.goods-price b { font-size: 17px; color: var(--accent-2); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.goods-price span { font-size: 9.5px; color: var(--text-3); letter-spacing: .1em; }
.goods-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 10.5px; color: var(--text-3); letter-spacing: .04em; }

/* ============================ 积分账户 ============================ */
.wallet-hero {
  margin: 18px 20px 0; padding: 26px 24px; border-radius: 22px;
  background:
    radial-gradient(130% 110% at 88% -8%, var(--accent-soft), transparent 58%),
    var(--bg-1);
  border: 1px solid var(--line-2);
  position: relative; overflow: hidden;
}
.wallet-hero::before {
  content: ''; position: absolute; top: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
}
.wallet-label {
  font-size: 10px; color: var(--text-3);
  letter-spacing: .3em; text-transform: uppercase;
}
.wallet-amount {
  font-size: 42px; font-weight: 200; letter-spacing: -.015em;
  margin: 12px 0 4px; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.1;
}
.wallet-amount small { font-size: 13px; font-weight: 300; color: var(--text-3); margin-left: 9px; letter-spacing: .12em; }
.wallet-addr { font-size: 10.5px; color: var(--text-3); letter-spacing: .06em; }
.wallet-sub { display: flex; gap: 30px; margin-top: 24px; }
.wallet-sub div b { display: block; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.wallet-sub div span { font-size: 10px; color: var(--text-3); letter-spacing: .1em; }

/* 积分进度条（积分页 / 首页概览） */
.supply-box { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--hair); }
.supply-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--text-3); letter-spacing: .08em; margin-bottom: 10px; }
.supply-head b { color: var(--gold); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.supply-track { height: 4px; border-radius: 999px; background: var(--hair); overflow: hidden; }
.supply-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #7FC0F0, #F0DFB8); transition: width .5s ease; }
.supply-foot { margin-top: 9px; font-size: 10.5px; color: var(--text-3); letter-spacing: .04em; }
.wallet-ops { display: flex; gap: 10px; padding: 14px 20px 0; }
.wop {
  flex: 1; padding: 16px 8px; border-radius: 16px; text-align: center;
  border: 1px solid var(--line); background: var(--panel); transition: .25s;
}
.wop:hover { border-color: var(--accent-line); background: var(--accent-soft); transform: translateY(-2px); }
.wop-ico { display: inline-flex; margin-bottom: 7px; color: var(--accent); }
.wop-ico svg { width: 19px; height: 19px; }
.wop span:last-child { display: block; font-size: 11px; font-weight: 400; color: var(--text-2); letter-spacing: .06em; }
/* ============ 广告系统：顶部跑马灯 ============ */
.marquee {
  display: flex; align-items: center; gap: 8px;
  height: 30px; margin: 0 12px 8px;
  padding: 0 10px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden; position: relative;
  transition: height .25s ease, opacity .2s ease, margin .25s ease;
}
/* 关闭收起动画：高度归零 + 淡出后由 JS 移除节点 */
.marquee.closing { height: 0 !important; opacity: 0; margin-top: 0; margin-bottom: 0; }
/* 右侧关闭按钮（×）：淡灰，悬停提亮 */
.marquee-close {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; display: grid; place-items: center;
  border: none; background: none; color: var(--text-3); cursor: pointer;
  transition: color .2s; flex-shrink: 0;
}
.marquee-close svg { width: 12px; height: 12px; }
.marquee-close:hover { color: var(--text); }
/* 左侧固定标签：公告 / 推广 的视觉锚点，不随内容滚动 */
.marquee-label {
  display: flex; align-items: center; gap: 4px;
  flex: 0 0 auto; height: 100%;
  padding: 0 9px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .3px;
  color: var(--accent);
  background: var(--accent-soft);
  border-right: 1px solid var(--accent-line);
}
.marquee-label svg { width: 11px; height: 11px; }
/* 滚动区裁剪层：文字只在「公告」标签右侧区域内滚动，永不滑过标签 */
.marquee-clip { flex: 1 1 auto; overflow: hidden; min-width: 0; }
.marquee-track {
  display: inline-flex; align-items: center; gap: 28px;
  white-space: nowrap; will-change: transform;
  animation: marquee-scroll var(--mq-dur, 40s) linear infinite;
}
/* 两份内容各占 50%，位移 -50% 即完成一轮，循环处无缝衔接 */
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
/* 单条短公告：从右侧滚入、左侧滚出后重来（单份不复制，不会显示两遍） */
@keyframes marquee-single {
  from { transform: translateX(var(--clip-w, 100%)); }
  to { transform: translateX(-100%); }
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--text-2);
  text-decoration: none; cursor: default;
  flex: 0 0 auto;
}
a.marquee-item { cursor: pointer; }
a.marquee-item:hover .marquee-text { color: var(--accent); }
.marquee-tag {
  font-style: normal; font-size: 9px; line-height: 1;
  padding: 2.5px 4.5px; border-radius: 4px;
  border: 1px solid var(--line); color: var(--text-3);
  background: var(--panel); flex: 0 0 auto;
}
.marquee-tag.ad { color: var(--mint); border-color: var(--mint); }
.marquee-text { transition: color .2s; }
.marquee-go { color: var(--accent); font-size: 11px; }
/* 尊重系统「减少动态效果」偏好：改为静态横向滚动条 */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; overflow-x: auto; }
}

/* ============ 帖子速览条（筛选栏下的方形作品跑马） ============ */
.feed-ticker {
  height: 68px; margin: 0 16px 10px;
  display: flex; align-items: center;
  overflow: hidden; position: relative;
}
.ticker-track {
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px;
  white-space: nowrap; will-change: transform;
  animation: ticker-scroll var(--tk-dur, 54s) linear infinite;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
/* 方形作品缩略块：整块可点进详情（圆角与作品卡一致） */
.ticker-card {
  position: relative;
  width: 56px; height: 56px;
  padding: 0; border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel);
  overflow: hidden; flex: 0 0 auto; cursor: pointer;
  transition: border-color .2s, transform .2s;
}
/* 平时干净；悬浮浮现细金描边，呼应橱窗展厅的细金框调性 */
.ticker-card:hover { border-color: #6FB8F5; transform: translateY(-1px); }
/* 画框微弱质感：淡淡的暗压边，模拟展厅画框 */
.ticker-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), inset 0 -12px 16px -10px rgba(0, 0, 0, .26);
}
img.ticker-thumb,
video.ticker-thumb {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  opacity: 0; transition: opacity .4s;
}
img.ticker-thumb.loaded,
video.ticker-thumb.loaded { opacity: 1; }
/* v3.11.32 兜底改文字块：暗底金字（不再用亮白底+图标，暗色界面里不突兀） */
.ticker-card.ticker-fallback {
  background: linear-gradient(160deg, #1d222b, #262c37);
  display: flex; align-items: center; justify-content: center;
}
.ticker-card.ticker-fallback .ticker-ph {
  color: #d8b75a;
  font-size: 11px; line-height: 1.3; font-weight: 600;
  padding: 0 6px; text-align: center;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-all; opacity: .9;
}
.ticker-card.ticker-fallback .ticker-ph svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; overflow-x: auto; }
}

/* ============ 广告系统：投放弹窗 ============ */
/* 发布类型选择弹窗（深色，与全站黑金风格统一） */
.create-sheet .modal-title { color: var(--text); }
.create-note {
  margin-top: 14px; font-size: 11px; line-height: 1.7;
  color: var(--text-3); text-align: center;
}
.create-card { background: var(--panel-2); border-color: var(--line); }
.create-card:hover { background: var(--accent-soft); border-color: var(--accent-line); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }

/* ============ 曝光推广下单面板 ============ */
.promo-sheet { color: var(--text); }
.promo-sec { margin-top: 16px; }
.promo-label {
  font-size: 12px; color: var(--text-2); letter-spacing: .04em;
  margin-bottom: 8px;
}
.promo-posts {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 220px; overflow-y: auto;
}
.promo-post {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line);
  font-family: inherit; text-align: left; cursor: pointer;
  transition: .2s; color: var(--text);
}
.promo-post:hover { border-color: var(--accent-line); }
.promo-post.on { border-color: var(--accent); background: var(--accent-soft); }
.promo-post-thumb {
  width: 40px; height: 40px; border-radius: 8px; object-fit: cover;
  flex: 0 0 auto; display: block;
}
img.promo-post-thumb { opacity: 0; transition: opacity .35s; }
img.promo-post-thumb.loaded { opacity: 1; }
.promo-post-ph {
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-size: 15px; font-weight: 600; font-style: normal;
}
.promo-post-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.promo-post-meta b {
  font-size: 12.5px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.promo-post-meta i { font-style: normal; font-size: 10.5px; color: var(--text-3); }
.promo-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.promo-tier {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 11px 6px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line);
  font-family: inherit; cursor: pointer; transition: .2s;
}
.promo-tier b { font-size: 12.5px; color: var(--text); }
.promo-tier span { font-size: 11.5px; color: var(--accent); }
.promo-tier:hover { border-color: var(--accent-line); }
.promo-tier.on { border-color: var(--accent); background: var(--accent-soft); }
.promo-bal {
  margin-top: 14px; font-size: 11.5px; color: var(--text-3); text-align: right;
}
.promo-submit {
  width: 100%; margin-top: 10px; padding: 13px;
  border-radius: 12px; border: 1px solid var(--accent);
  background: var(--accent); color: #14110a;
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: .2s;
}
.promo-submit:hover { background: var(--accent-2, var(--accent)); }
.promo-submit.disabled, .promo-submit:disabled {
  background: transparent; color: var(--text-3); border-color: var(--line);
  cursor: not-allowed;
}
.promo-note {
  margin-top: 12px; font-size: 10.5px; line-height: 1.7;
  color: var(--text-3); text-align: center;
}

/* 曝光说明（放在需要曝光的入口页：我的作品 / 积分商城） */
.promo-explain {
  margin: 12px 16px 4px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel);
}
.promo-explain-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--accent);
  margin-bottom: 7px;
}
.promo-explain-title svg { width: 13px; height: 13px; }
.promo-explain-body { font-size: 11.5px; line-height: 1.85; color: var(--text-2); }

/* 我的作品列表 */
.works-list { display: flex; flex-direction: column; gap: 10px; padding: 8px 16px 20px; }
.work-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line);
  cursor: pointer; transition: .2s;
}
.work-item:hover { border-color: var(--accent-line); }
.work-thumb {
  width: 48px; height: 48px; border-radius: 10px;
  overflow: hidden; flex: 0 0 auto; position: relative;
  background: var(--panel-2);
}
.work-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .35s; }
.work-thumb img.loaded { opacity: 1; }
.work-thumb.is-text {
  display: grid; place-items: center;
  font-size: 17px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.work-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.work-title {
  font-size: 13px; font-weight: 500; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.work-sub { font-size: 10.5px; color: var(--text-3); }
.work-sub.on { color: var(--accent); }
/* 审核状态：待审（金）/ 驳回（红），与「曝光中」区分开 */
.work-sub.is-review { color: #e8b64c; }
.work-promo-btn.is-off { opacity: .34; filter: grayscale(1); cursor: not-allowed; }
/* 右下角推广图钉：默认低调，悬停变金 */
.work-promo-btn {
  width: 32px; height: 32px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 9px; border: 1px solid var(--line);
  background: transparent; color: var(--text-3);
  cursor: pointer; transition: .2s;
}
.work-promo-btn svg { width: 14px; height: 14px; }
.work-promo-btn:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

/* ===== 已删除作品的存证凭证（v2.55.12 方案B）=====
   视觉定位：灰调 + 低饱和金边，明确「已归档、只读」，但不显得像报错。
   条目整体降透明度，hover 不发光——不与在架作品抢注意力。 */
.voucher-section { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.voucher-empty-hint {
  font-size: 11px; line-height: 1.7; color: var(--text-3);
  padding: 10px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 55%, transparent);
  border: 1px dashed var(--line);
}
.voucher-head {
  display: flex; align-items: center; gap: 8px;
  padding: 0 2px 6px;
}
.voucher-head-title {
  font-size: 12px; letter-spacing: .5px; color: var(--text-2); font-weight: 500;
}
.voucher-head-count {
  font-size: 10.5px; color: var(--text-3);
  padding: 1px 6px; border-radius: 8px;
  background: color-mix(in srgb, var(--text-3) 12%, transparent);
}
.voucher-tip {
  font-size: 10.5px; line-height: 1.7; color: var(--text-3);
  padding: 0 2px 10px;
}
.voucher-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 10px; margin-bottom: 8px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 60%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  filter: saturate(.7);
  /* 只读：整条不可点（原文已删除，没有详情页可进） */
  cursor: default;
}
.voucher-thumb {
  width: 40px; height: 40px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 11px;
  color: color-mix(in srgb, var(--accent) 62%, var(--text-3));
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}
.voucher-thumb svg { width: 17px; height: 17px; }
.voucher-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.voucher-title {
  font-size: 12.5px; font-weight: 500;
  color: color-mix(in srgb, var(--text) 72%, transparent);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.voucher-sub { font-size: 10px; color: var(--text-3); }
.voucher-code {
  font-size: 10.5px; letter-spacing: .6px;
  color: color-mix(in srgb, var(--accent) 70%, var(--text-2));
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.voucher-hash {
  font-size: 9.5px; color: var(--text-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.voucher-acts { display: flex; flex-direction: column; gap: 5px; flex: 0 0 auto; }
.voucher-btn {
  padding: 5px 9px; border-radius: 8px;
  font-size: 10px; letter-spacing: .3px; white-space: nowrap;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer; transition: .18s;
  -webkit-tap-highlight-color: transparent;
}
.voucher-btn:hover, .voucher-btn:active {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.voucher-btn.is-link { color: color-mix(in srgb, var(--accent) 78%, var(--text-2)); }

/* 积分商城：作品曝光卡片 */
.mall-promo-card { border-color: var(--accent-line) !important; }
.mall-card-ico.kind-exposure { color: var(--accent); background: var(--accent-soft); }

.create-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 16px; }
.create-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  padding: 15px 14px; border-radius: 14px; text-align: left;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--text); font-family: inherit; cursor: pointer; transition: .2s;
}
.create-card:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.create-card-ico { color: var(--accent); display: inline-flex; }
.create-card-ico svg { width: 20px; height: 20px; }
.create-card b { font-size: 13.5px; }
.create-card-desc { font-size: 11px; color: var(--text-3); line-height: 1.5; }

.ad-counter { font-size: 11px; color: var(--text-3); text-align: right; margin-top: 5px; }
.ad-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ad-tier {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 11px 6px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--text-2); font-family: inherit; cursor: pointer; transition: .2s;
}
.ad-tier b { font-size: 12.5px; color: var(--text); }
.ad-tier span { font-size: 11.5px; color: var(--accent); }
.ad-tier:hover { border-color: var(--accent-line); }
.ad-tier.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.ad-cost {
  margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel-2);
  display: grid; gap: 7px;
}
.ad-cost-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.ad-cost-row b { color: var(--accent); font-size: 15px; }
.ad-cost-row.sub { font-size: 11.5px; color: var(--text-3); }
.ad-cost-warn { font-size: 11.5px; color: var(--rose, #ff6a5c); }
.ad-note {
  margin-top: 11px; padding: 10px 12px; border-radius: 11px;
  font-size: 11.5px; color: var(--text-3); line-height: 1.6;
  border: 1px dashed var(--line);
}

/* ============ 广告系统：评论区 ============ */
.composer-ad { margin-bottom: 8px; }
.ad-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  font-size: 11.5px; font-family: inherit;
  border: 1px dashed var(--line); background: transparent; color: var(--text-3);
  cursor: pointer; transition: .2s;
}
.ad-chip:hover { color: var(--accent); border-color: var(--accent-line); }
.ad-chip.on {
  color: var(--mint); border-style: solid;
  border-color: var(--mint); background: color-mix(in srgb, var(--mint) 12%, transparent);
}
.ad-chip-ico { font-size: 12px; }
.comment-ad-tag {
  font-style: normal; font-size: 10px; line-height: 1;
  margin-left: 6px; padding: 2px 5px; border-radius: 4px;
  color: var(--mint); border: 1px solid var(--mint);
  background: color-mix(in srgb, var(--mint) 10%, transparent);
}
.comment-body.is-ad {
  border-left: 2px solid color-mix(in srgb, var(--mint) 45%, transparent);
  padding-left: 10px; margin-left: -12px;
}
.comment-flag.danger { color: var(--rose, #ff6a5c); }
.composer-ad-off { font-size: 11.5px; color: var(--text-3); }

/* ============ 广告系统：我的广告 / 双 Tab ============ */
.ad-tabs {
  display: flex; gap: 4px; margin: 14px 0 12px;
  padding: 3px; border-radius: 12px;
  background: color-mix(in srgb, var(--line) 45%, transparent);
}
.ad-tab {
  flex: 1; padding: 8px 0; border: 0; border-radius: 9px;
  font-family: inherit; font-size: 12.5px; cursor: pointer;
  background: transparent; color: var(--text-3); transition: .18s;
}
.ad-tab.on { background: var(--panel); color: var(--text-1); box-shadow: 0 1px 6px rgba(0,0,0,.18); }
.ad-tab:hover:not(.on) { color: var(--text-2); }
.ad-pane-sub { font-size: 11.5px; color: var(--text-3); line-height: 1.6; margin-bottom: 10px; }

.ad-mine-list { display: grid; gap: 9px; max-height: 46vh; overflow-y: auto; }
.ad-mine-empty {
  padding: 26px 12px; text-align: center; font-size: 12.5px;
  color: var(--text-3); border: 1px dashed var(--line); border-radius: 13px; line-height: 1.8;
}
.ad-mine-empty .sub { font-size: 11.5px; color: var(--text-3); opacity: .75; }
.ad-mine-card {
  padding: 11px 12px; border-radius: 13px;
  border: 1px solid var(--line); background: var(--panel); transition: .2s;
}
.ad-mine-card:hover { border-color: var(--line-2); }
.ad-mine-card.off { opacity: .58; }
.ad-mine-head { display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; }
.ad-mine-text { font-size: 12.5px; line-height: 1.55; color: var(--text-1); word-break: break-word; }
.ad-mine-meta {
  display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 7px;
  font-size: 11px; color: var(--text-3);
}
.ad-mine-meta .truncate { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-mine-ops { display: flex; gap: 8px; margin-top: 10px; }
.ad-mine-ops .btn { flex: 1; padding: 7px 0; font-size: 12px; }
.ad-mine-tiers { display: flex; gap: 6px; margin-top: 8px; }
.ad-mine-tiers .ad-tier.sm { flex: 1; padding: 7px 4px; }
.ad-mine-tiers .ad-tier.sm b { font-size: 11.5px; }
.ad-mine-tiers .ad-tier.sm span { font-size: 10.5px; }

/* 发帖弹窗：评论区广告开关 */
.ad-opt-box .field { margin-bottom: 0; }

/* 状态胶囊：与后台同款，前台「我的广告」列表复用 */
.ad-st {
  font-style: normal; font-size: 10.5px; line-height: 1; white-space: nowrap;
  padding: 3px 7px; border-radius: 999px; flex: 0 0 auto;
  border: 1px solid var(--line); color: var(--text-3); background: rgba(255, 255, 255, .03);
}
.ad-st.active { color: var(--mint); border-color: var(--mint); background: color-mix(in srgb, var(--mint) 10%, transparent); }
.ad-st.expired { color: var(--text-3); }
.ad-st.removed { color: var(--rose, #ff6a5c); border-color: var(--rose, #ff6a5c); }

.tx-list { padding: 12px 20px 0; display: grid; gap: 8px; }
.tx {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px; border-radius: 15px;
  border: 1px solid var(--line); background: var(--panel);
  transition: .22s;
}
.tx:hover { border-color: var(--line-2); }
.tx-ico {
  width: 34px; height: 34px; border-radius: 12px;
  display: grid; place-items: center; flex: 0 0 auto;
}
.tx-ico svg { width: 14px; height: 14px; }
.tx-in { background: rgba(127, 201, 166, .08); color: var(--mint); }
.tx-out { background: rgba(222, 107, 120, .08); color: var(--danger); }
.tx-body { flex: 1; min-width: 0; }
.tx-title { font-size: 13px; font-weight: 500; letter-spacing: .01em; }
.tx-sub { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.tx-amt { font-size: 13.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tx-amt.in { color: var(--mint); }
.tx-amt.out { color: var(--danger); }

/* ============================ 社区话题卡 ============================ */
.prop {
  margin: 12px 20px 0; padding: 19px; border-radius: 18px;
  background: var(--panel); border: 1px solid var(--line); animation: rise .45s both;
}
.prop-id { font-size: 10px; font-family: ui-monospace, monospace; color: var(--ice); letter-spacing: .1em; }
.prop-title { font-size: 15px; font-weight: 600; margin: 8px 0 8px; line-height: 1.55; letter-spacing: .01em; }
.prop-summary { font-size: 12.5px; color: var(--text-2); line-height: 1.8; font-weight: 300; }
.vote-bar { height: 5px; border-radius: 99px; background: rgba(222, 107, 120, .18); overflow: hidden; margin: 15px 0 8px; }
.vote-fill { height: 100%; background: var(--accent); border-radius: 99px; transition: width .7s cubic-bezier(.2,.9,.25,1); }
.vote-stat { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.vote-ops { display: flex; gap: 9px; margin-top: 15px; }

/* ============================ 我的 ============================ */
.profile-hero {
  margin: 18px 20px 0; padding: 0 0 22px; border-radius: 22px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  position: relative; overflow: hidden;
}
/* 沉浸式封面背景：上传图片或 handle 同源渐变，底部遮罩融入卡片 */
.pf-cover { position: relative; height: 148px; overflow: hidden; }
.pf-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-cover-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, transparent 35%, rgba(10,11,16,.42) 78%, var(--bg-1) 100%);
  pointer-events: none;
}
.pf-cover-edit {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 11px; border-radius: 999px; cursor: pointer;
  font-size: 11px; color: var(--text-2); letter-spacing: .04em;
  background: rgba(10, 11, 16, 0.55); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px); transition: .2s;
}
.pf-cover-edit:hover { color: var(--accent-2); border-color: var(--accent-line); }
.pf-cover-edit svg { width: 13px; height: 13px; }
/* 头像行：悬浮于封面下缘 */
.pf-avatar-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 20px; margin-top: -34px; position: relative; z-index: 3;
}
.pf-avatar { position: relative; cursor: pointer; border-radius: 50%; }
.pf-avatar .avatar {
  width: 68px; height: 68px; border-radius: 50%; font-size: 24px;
  box-shadow: 0 0 0 3px var(--bg-1), 0 6px 20px rgba(0,0,0,.4);
}
.pf-avatar .avatar.avatar-img { overflow: hidden; }
.pf-avatar .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.pf-camera {
  position: absolute; right: -5px; bottom: -5px; z-index: 2;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; color: var(--accent-ink);
  background: var(--accent-2); border: 2.5px solid var(--bg-1);
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.pf-camera svg { width: 12px; height: 12px; }
.pf-info { padding: 12px 20px 0; }
.profile-top { display: flex; align-items: center; gap: 15px; position: relative; padding: 0 20px; }
.profile-name { font-size: 19px; font-weight: 600; letter-spacing: .01em; }
.profile-handle { font-size: 12px; color: var(--text-3); margin-top: 2px; letter-spacing: .04em; }
.profile-bio { margin: 15px 20px 0; font-size: 13px; color: var(--text-2); line-height: 1.85; font-weight: 300; }
.profile-stats { display: flex; margin-top: 20px; padding: 0 20px; }
.profile-stats div { flex: 1; }
.profile-stats b { display: block; font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.profile-stats span { font-size: 10px; color: var(--text-3); letter-spacing: .12em; }
/* 通用头像图片模式（信息流 / 评论 / 会话列表等小头像） */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
/* 编辑资料弹窗里的背景图预览 */
.pf-cover-edit-big {
  display: grid; place-items: center; border: 1px solid var(--line);
}
.pf-cover-edit-big img { position: absolute; inset: 0; }
.pf-cover-edit-big-t {
  position: relative; z-index: 1; font-size: 11px; letter-spacing: .06em; color: var(--text-2);
  background: rgba(10, 11, 16, 0.55); border: 1px solid rgba(255,255,255,.14);
  padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(6px);
}
[data-theme="frost"] .pf-cover-edit-big-t { background: rgba(255,255,255,.72); color: #4A4E5A; border-color: rgba(12,16,28,.15); }
[data-theme="snow"] .pf-cover-edit-big-t { background: rgba(255,255,255,.72); color: #4A4E5A; border-color: rgba(12,16,28,.15); }

.menu { margin: 14px 20px 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.menu-item {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 15.5px 17px; background: var(--panel);
  border-bottom: 1px solid var(--line);
  font-size: 13.5px; text-align: left; transition: .2s;
  color: var(--text-2); letter-spacing: .02em;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background: var(--panel-2); color: var(--text); }
.menu-ico { display: inline-flex; width: 20px; justify-content: center; color: var(--text-3); transition: .2s; }
.menu-item:hover .menu-ico { color: var(--accent); }
.menu-ico svg { width: 17px; height: 17px; }
.menu-arrow { margin-left: auto; color: var(--text-3); font-size: 13px; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 20px; }
.stat-box {
  padding: 17px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--line);
}
.stat-box b {
  display: block; font-size: 20px; font-weight: 300; font-variant-numeric: tabular-nums;
  letter-spacing: -.01em; color: var(--accent-2);
}
.stat-box span { font-size: 10.5px; color: var(--text-3); letter-spacing: .1em; }

/* 会话 / 聊天 */
.conv {
  display: flex; align-items: center; gap: 13px; padding: 14px 20px;
  border-bottom: 1px solid var(--line); transition: .2s; width: 100%; text-align: left;
  position: relative; /* v2.94.0 免打扰小铃铛的定位参照 */
}
.conv:hover { background: var(--panel); }
.conv-body { flex: 1; min-width: 0; }
.conv-name { font-size: 13.5px; font-weight: 500; letter-spacing: .01em; }
.conv-last { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1.5px; }
.conv-time { font-size: 10px; color: var(--text-3); letter-spacing: .04em; }

.chat-view { display: flex; flex-direction: column; height: calc(100dvh - 116px); }
/* v2.93.2：壳内 Tab 栏更高（90/76px），预留要同步加大，否则输入栏被 Tab 栏压住裁掉 */
.phone-wrap .chat-view { height: calc(100dvh - 148px); }
html.frame-bare .phone-wrap .chat-view { height: calc(100dvh - 134px); }
.chat-body { min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 11px; padding: 13px 20px; border-bottom: 1px solid var(--line); }
/* 聊天顶栏的纯图标按钮（语音 / 视频通话）：固定尺寸，图标清晰可点 */
.chat-head .btn-sm { color: var(--text); display: grid; place-items: center; width: 36px; height: 36px; padding: 0; flex: none; }
.chat-head .btn-sm svg { width: 18px; height: 18px; }
.chat-head .btn-sm:active { transform: scale(.94); }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 11px; }
.chat-body::-webkit-scrollbar { width: 0; }
.bubble {
  max-width: 74%; padding: 11px 15px; border-radius: 17px;
  font-size: 13px; line-height: 1.65; animation: rise .3s both; font-weight: 300;
}
.bubble.them { align-self: flex-start; background: var(--bg-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.bubble-tip { display: block; margin-top: 6px; font-size: 10.5px; color: var(--gold); }
.bubble.me .bubble-tip { color: rgba(0, 0, 0, 0.55); }
.chat-input { display: flex; gap: 7px; padding: 9px 14px; border-top: 1px solid var(--line); align-items: center; }
/* v2.93.2：输入栏图标按钮——svg 此前无尺寸规则塌成 0 宽（只见空圆圈），补齐尺寸 */
.chat-input .btn-sm { padding: 8px 10px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.chat-input .btn-sm svg { width: 16px; height: 16px; flex: none; }
/* v2.93.1 首次进入私聊的输入栏功能提示（v2.93.2 压缩高度，少占聊天空间） */
.chat-coach {
  display: flex; align-items: center; gap: 8px; margin: 6px 12px 0;
  padding: 6px 10px; border-radius: 10px;
  background: rgba(111, 184, 245, .10); border: 1px solid var(--accent-line);
}
.chat-coach-tx { flex: 1; font-size: 10.5px; line-height: 1.4; color: var(--text-2); }
.chat-coach-ok {
  flex-shrink: 0; padding: 4px 10px; border-radius: 999px; font-size: 10.5px;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
}
/* 打招呼限制提示条：对方回复前输入区锁定 */
.chat-lock {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--text-3); background: var(--bg-2, rgba(255,255,255,.02));
}
.chat-lock svg { font-size: 13px; }
.chat-input input {
  flex: 1; min-width: 0; padding: 11px 16px; border-radius: 999px; font-size: 13px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text); outline: none; transition: .2s;
}
.chat-input input:focus { border-color: var(--accent-line); }

/* ---- 消息增强：媒体气泡 / 群聊 / 用户选择器 ---- */
.bubble-media {
  display: block; margin-top: 6px; max-width: 220px; max-height: 260px;
  border-radius: 12px; object-fit: cover; cursor: pointer; background: rgba(0,0,0,.25);
}
.bubble.me .bubble-media { border: 1px solid rgba(0,0,0,.12); }
.bubble-system {
  align-self: center; font-size: 11px; color: var(--text-3); letter-spacing: .04em;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px;
}
.conv-group-ico {
  width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-soft), rgba(0,0,0,.2));
  border: 1px solid var(--line-2); color: var(--accent);
}
.conv-group-ico svg { width: 20px; height: 20px; }
.group-msg { display: flex; flex-direction: column; gap: 3px; max-width: 100%; }
.group-msg.me { align-items: flex-end; }
.group-sender { font-size: 10.5px; color: var(--text-3); padding-left: 4px; letter-spacing: .04em; }
.user-picker { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.user-pick {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; width: 100%;
  background: var(--panel); border: 1px solid var(--line); border-radius: 13px; transition: .2s; text-align: left;
}
.user-pick.on { border-color: var(--accent); background: var(--accent-soft); }

/* ---- 分享卡片 ---- */
.share-box {
  background: rgba(0,0,0,.3); border: 1px solid var(--line-2); border-radius: 14px;
  padding: 14px 16px; font-size: 13px; line-height: 1.8;
}
.share-text { color: var(--text-body); white-space: pre-wrap; word-break: break-word; }
.share-link { margin-top: 10px; font-size: 12px; color: var(--accent); word-break: break-all; user-select: all; }

/* ---- 音视频通话全屏界面 ---- */
.call-overlay {
  position: fixed; inset: 0; z-index: 999; background: #05060a;
  display: flex; flex-direction: column; animation: rise .26s both;
}
.call-videos { flex: 1; position: relative; overflow: hidden; }
.call-remote { width: 100%; height: 100%; object-fit: cover; background: #05060a; }
.call-local {
  position: absolute; right: 16px; top: 16px; width: 104px; height: 148px;
  object-fit: cover; border-radius: 14px; border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 8px 24px rgba(0,0,0,.5); background: #0b0d14; z-index: 2;
}
.call-audio-hint {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; color: #fff; font-size: 17px; letter-spacing: .04em;
}
.call-audio-hint .ico, .call-audio-hint svg { width: 46px; height: 46px; color: var(--accent); }
.call-panel {
  padding: 22px 20px 34px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: linear-gradient(to top, rgba(0,0,0,.9), transparent);
}
.call-title { font-size: 13px; color: rgba(255,255,255,.7); letter-spacing: .06em; }
.call-status { font-size: 22px; font-weight: 600; color: #fff; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.call-btns { display: flex; gap: 26px; margin-top: 6px; }
.call-btn {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  border: none; cursor: pointer; transition: .2s;
}
.call-btn svg { width: 26px; height: 26px; }
.call-btn.hang { background: #E5484D; color: #fff; }
.call-btn.accept { background: #30A46C; color: #fff; animation: pulse 1.6s infinite; }
.call-btn:active { transform: scale(.94); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(48,163,108,.5); } 50% { box-shadow: 0 0 0 14px rgba(48,163,108,0); } }

/* ============================ 表单 ============================ */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 11px; color: var(--text-2); margin-bottom: 7px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 15px; border-radius: 13px; font-size: 13.5px;
  background: rgba(0,0,0,.28); border: 1px solid var(--line); color: var(--text);
  outline: none; transition: .2s; font-weight: 300;
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.7; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field-hint { font-size: 11px; color: var(--text-3); margin-top: 6px; letter-spacing: .03em; }

/* ============================ 弹层 / Toast ============================ */
.modal {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: flex-end; justify-content: center;
  /* v2.56.4 遮罩加深：安卓部分内核 backdrop-blur 失效，0.66 太透会看到背后
     的视频块/亮色内容，观感像「内容剥落」。纯色压暗到 .8 不依赖模糊。 */
  background: rgba(4, 6, 12, .8);
  backdrop-filter: blur(8px);
  animation: fadeIn .25s both;
}
.modal-card {
  width: 100%; max-width: 500px; max-height: 86dvh; overflow-y: auto;
  background: var(--bg-1); border-top: 1px solid var(--line-2);
  border-radius: 26px 26px 0 0; padding: 24px 22px 32px;
  animation: sheetUp .36s cubic-bezier(.2,.9,.25,1) both;
}
.modal-card::-webkit-scrollbar { width: 0; }
.modal-title { font-size: 17px; font-weight: 600; letter-spacing: .01em; }
.modal-sub { font-size: 12px; color: var(--text-3); margin: 5px 0 20px; line-height: 1.7; }
.modal-close { position: sticky; top: 0; float: right; font-size: 18px; color: var(--text-3); }
/* 弹窗头部 + 右上角关闭按钮（外观弹窗等就地生效型弹窗必须能关闭） */
.modal-head { display: flex; align-items: flex-start; gap: 10px; }
.modal-head > div:first-child { flex: 1; min-width: 0; }
.modal-head .modal-sub { margin-bottom: 16px; }
.modal-x {
  flex: none; width: 30px; height: 30px; margin-top: 2px;
  display: grid; place-items: center; cursor: pointer;
  border-radius: 10px; background: var(--panel-2, #14161c);
  border: 1px solid var(--line); color: var(--text-3);
  transition: color .18s, border-color .18s;
}
.modal-x svg { width: 14px; height: 14px; }
.modal-x:hover { color: var(--text); border-color: var(--line-2); }
.shell-done { width: 100%; margin-top: 20px; }
.mnemonic-box {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px;
  padding: 16px; border-radius: 15px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  margin-bottom: 15px;
}
.mnemonic-box span {
  font-family: ui-monospace, monospace; font-size: 12px; padding: 6px 8px;
  border-radius: 9px; background: rgba(0,0,0,.3); text-align: center; color: var(--accent-2);
  letter-spacing: .03em;
}
.mnemonic-box span i { color: var(--text-3); font-style: normal; font-size: 9.5px; margin-right: 4px; }

.toast {
  position: fixed; left: 50%; bottom: 112px; transform: translateX(-50%);
  z-index: 99; padding: 12px 24px; border-radius: 999px;
  background: rgba(16, 16, 20, .96); border: 1px solid var(--line-2);
  font-size: 12.5px; letter-spacing: .03em; box-shadow: var(--shadow-2); backdrop-filter: blur(14px);
  animation: toastIn .3s cubic-bezier(.2,.9,.25,1) both; max-width: 86%; text-align: center;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 14px); } }
.toast.ok { border-color: rgba(127, 201, 166, .45); color: var(--mint); }
.toast.err { border-color: rgba(222, 107, 120, .45); color: var(--danger); }

.empty { text-align: center; padding: 74px 24px; color: var(--text-3); font-size: 12.5px; letter-spacing: .06em; }
.empty-ico { display: flex; justify-content: center; margin-bottom: 16px; color: var(--text-3); opacity: .5; }
.empty-ico svg { width: 34px; height: 34px; }

.loader { display: grid; place-items: center; padding: 64px; }
.loader span {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--line-2); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================ 主题选择器 ============================ */
.theme-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 6px; max-height: 52vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.theme-grid::-webkit-scrollbar { width: 4px; }
.theme-grid::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
.theme-grid::-webkit-scrollbar-track { background: transparent; }
.theme-opt {
  position: relative; padding: 11px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--panel);
  display: flex; align-items: center; gap: 12px; transition: .25s; text-align: left;
}
.theme-opt:hover { border-color: var(--line-2); }
.theme-opt.on { border-color: var(--accent-line); background: var(--accent-soft); }
.theme-dot {
  width: 30px; height: 30px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(128, 128, 128, 0.18);
}
.theme-dot svg { width: 13px; height: 13px; color: #fff; }
.theme-opt .theme-txt { flex: 1; min-width: 0; }
.theme-name { font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.theme-desc { font-size: 10.5px; color: var(--text-3); margin-top: 1px; letter-spacing: .04em; }
.theme-check { color: var(--accent); display: inline-flex; }
.theme-check svg { width: 15px; height: 15px; }

/* 虚化强度滑块（网页背景） */
.bg-fx { display: flex; flex-direction: column; gap: 14px; }
.bg-fx-row { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 10px; background: var(--panel); }
.bg-fx-head { display: flex; align-items: baseline; justify-content: space-between; }
.bg-fx-name { font-size: 12.5px; font-weight: 500; }
.bg-fx-val { font-size: 12px; color: var(--accent); font-weight: 600; }
.bg-fx-hint { font-size: 10.5px; color: var(--text-3); margin-top: 2px; letter-spacing: .03em; }
.bg-fx-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 22px; margin: 4px 0 0; background: transparent; cursor: pointer;
}
.bg-fx-range::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent) var(--pct, 50%), var(--line-2) var(--pct, 50%));
}
.bg-fx-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%; margin-top: -6px;
  background: #fff; border: 2px solid var(--accent);
  box-shadow: 0 1px 6px rgba(0,0,0,.35); transition: transform .15s;
}
.bg-fx-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.bg-fx-range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-2); }
.bg-fx-range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
.bg-fx-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }
.bg-fx.is-idle { opacity: .62; }
/* 限定壳标签（新春 / 圣诞 / 情人节） */
.theme-fest {
  display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 6px;
  font-size: 9.5px; font-weight: 500; vertical-align: 1px;
  background: linear-gradient(135deg, rgba(240, 200, 110, .2), rgba(200, 80, 80, .18));
  color: #f0c96a; border: 1px solid rgba(240, 200, 110, .3);
}
/* 机身刻字输入行 */
.shell-engrave-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.shell-engrave-input {
  background: var(--panel-2, #14161c); border: 1px solid var(--line); color: var(--text);
  border-radius: 11px; padding: 10px 12px; font-size: 13px; outline: none; width: 100%;
  font-family: inherit; letter-spacing: .06em;
}
.shell-engrave-input:focus { border-color: var(--accent-line); }
.shell-engrave-clear {
  background: transparent; border: 1px solid var(--line); color: var(--text-3); cursor: pointer;
}
.shell-engrave-clear:hover { color: var(--text-2); border-color: var(--line-2); }
/* 外观弹窗内容较长：整体限高可滚动 */
#modalCard { max-height: min(86dvh, 780px); overflow-y: auto; scrollbar-width: thin; }

/* 桌面端 */
@media (min-width: 560px) {
  .app { border-radius: 0; }
}

/* ---------- 浅色主题专项适配 ---------- */

/* 环境光：浅色下减弱，避免发灰发浊 */
[data-theme="frost"] body::before { opacity: .35; }
[data-theme="snow"] body::before { opacity: .35; }
[data-theme="frost"] body::after, [data-theme="snow"] body::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(900px 560px at 88% 4%, rgba(91, 135, 184, 0.05), transparent 60%);
}

/* 头像文字：浅色底上用白字（accent 更实） */
[data-theme="frost"] .avatar { color: #fff; }
[data-theme="snow"] .avatar { color: #fff; }

/* 卡片/面板：浅色下用实色白底 + 柔和阴影，替代半透明白 */
[data-theme="frost"] .profile-hero, [data-theme="snow"] .profile-hero,
[data-theme="frost"] .stat-box, [data-theme="snow"] .stat-box,
[data-theme="frost"] .menu, [data-theme="snow"] .menu,
[data-theme="frost"] .panel, [data-theme="snow"] .panel,
[data-theme="frost"] .card, [data-theme="snow"] .card,
[data-theme="frost"] .rank-list, [data-theme="snow"] .rank-list,
[data-theme="frost"] .invite-card, [data-theme="snow"] .invite-card,
[data-theme="frost"] .kyc-card, [data-theme="snow"] .kyc-card,
[data-theme="frost"] .kyc-info, [data-theme="snow"] .kyc-info,
[data-theme="frost"] .theme-opt, [data-theme="snow"] .theme-opt {
  background: var(--bg-1);
  box-shadow: var(--shadow-1);
}
[data-theme="frost"] .invite-card, [data-theme="snow"] .invite-card {
  background: linear-gradient(180deg, rgba(199, 154, 62, 0.06), transparent 60%), var(--bg-1);
}

/* 顶栏 / 底部导航：毛玻璃在浅色下需提高不透明度 */
[data-theme="frost"] .topbar, [data-theme="snow"] .topbar,
[data-theme="frost"] .tabbar { background: rgba(255, 255, 255, 0.86); }
[data-theme="snow"] .tabbar { background: rgba(255, 255, 255, 0.86); }

/* 悬浮发布键：金底上用白字 */
[data-theme="frost"] .tab-plus { color: var(--accent-ink); }
[data-theme="snow"] .tab-plus { color: var(--accent-ink); }

/* 大数字保持深色字，避免浅色下失去对比 */
[data-theme="frost"] .wallet-balance, [data-theme="snow"] .wallet-balance,
[data-theme="frost"] .kpi-value { color: var(--text); }
[data-theme="snow"] .kpi-value { color: var(--text); }

/* 视频沉浸页保持深色（视频本身是暗底） */
[data-theme="frost"] .vslide-title, [data-theme="snow"] .vslide-title,
[data-theme="frost"] .vslide-desc, [data-theme="snow"] .vslide-desc,
[data-theme="frost"] .vside { color: rgba(255, 255, 255, 0.85); }
[data-theme="snow"] .vside { color: rgba(255, 255, 255, 0.85); }
[data-theme="frost"] .vside-ico { border-color: rgba(255, 255, 255, 0.22); }
[data-theme="snow"] .vside-ico { border-color: rgba(255, 255, 255, 0.22); }

/* 输入框在浅色下用白底 */
[data-theme="frost"] input, [data-theme="snow"] input,
[data-theme="frost"] textarea, [data-theme="snow"] textarea,
[data-theme="frost"] .search-bar input, [data-theme="snow"] .search-bar input {
  background: #fff;
  border-color: var(--line);
}
[data-theme="frost"] input:focus, [data-theme="snow"] input:focus,
[data-theme="frost"] textarea:focus { border-color: var(--accent-line); }
[data-theme="snow"] textarea:focus { border-color: var(--accent-line); }

/* 弹窗遮罩与面板 */
[data-theme="frost"] .modal-mask { background: rgba(20, 24, 40, 0.28); }
[data-theme="snow"] .modal-mask { background: rgba(20, 24, 40, 0.28); }
[data-theme="frost"] .modal-card, [data-theme="snow"] .modal-card {
  background: #fff;
  box-shadow: 0 30px 70px rgba(20, 24, 40, 0.18);
}
[data-theme="frost"] .toast { background: rgba(255, 255, 255, 0.98); border-color: var(--line-2); color: var(--text); }
[data-theme="snow"] .toast { background: rgba(255, 255, 255, 0.98); border-color: var(--line-2); color: var(--text); }
[data-theme="frost"] .mnemonic-box span { background: #fff; border-color: var(--line); }
[data-theme="snow"] .mnemonic-box span { background: #fff; border-color: var(--line); }

/* 发丝金色顶线在浅色下改用更深的金 */
[data-theme="frost"] .wallet-hero::before { opacity: .7; }
[data-theme="snow"] .wallet-hero::before { opacity: .7; }

/* 代码/哈希文字 */
[data-theme="frost"] .hash, [data-theme="snow"] .hash,
[data-theme="frost"] .mono { color: var(--text-2); }
[data-theme="snow"] .mono { color: var(--text-2); }

/* 媒体选择区：浅色下用浅底 + 明确虚线边框 */
[data-theme="frost"] .media-drop { background: #F7F8FB; border-color: var(--line-2); }
[data-theme="snow"] .media-drop { background: #F7F8FB; border-color: var(--line-2); }
[data-theme="frost"] .media-drop:hover { background: rgba(199, 154, 62, .06); }
[data-theme="snow"] .media-drop:hover { background: rgba(199, 154, 62, .06); }
[data-theme="frost"] .media-drop-ico { border-color: var(--line-2); }
[data-theme="snow"] .media-drop-ico { border-color: var(--line-2); }
[data-theme="frost"] .media-preview { background: #0E0F16; }
[data-theme="snow"] .media-preview { background: #0E0F16; }
[data-theme="frost"] .media-name { color: var(--text); }
[data-theme="snow"] .media-name { color: var(--text); }
[data-theme="frost"] .media-hint { color: var(--text-2); }
[data-theme="snow"] .media-hint { color: var(--text-2); }

/* ================================================================
   实名认证（KYC）
   ================================================================ */
.profile-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* @handle 内联显示：紧跟昵称旁边的小号灰字 */
.profile-handle-inline { font-size: 12.5px; color: var(--text-3); letter-spacing: .03em; transform: translateY(1px); }
.kyc-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px 2px 6px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.kyc-badge svg { width: 11px; height: 11px; }

.menu-tail { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.menu-hint { font-size: 11.5px; color: var(--text-3); letter-spacing: .02em; }
.menu-item:hover .menu-hint { color: var(--text-2); }

.kyc-card {
  margin: 0 20px 14px; padding: 26px 20px; border-radius: 18px; text-align: center;
  border: 1px solid var(--line); background: var(--panel);
}
.kyc-card.done {
  border-color: var(--accent-line);
  background: radial-gradient(120% 100% at 50% -20%, var(--accent-soft), transparent 62%), var(--panel);
}
.kyc-seal {
  width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; color: var(--accent-ink);
  background: var(--accent); box-shadow: 0 0 30px var(--accent-soft);
}
.kyc-seal svg { width: 26px; height: 26px; stroke-width: 2; }
.kyc-done-title { font-size: 17px; font-weight: 600; letter-spacing: .02em; }
.kyc-done-sub { font-size: 12px; color: var(--text-3); margin-top: 5px; letter-spacing: .04em; }

.kyc-intro { margin: 0 20px 14px; }
.kyc-intro-title { font-size: 13.5px; font-weight: 600; margin-bottom: 12px; }
.kyc-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.kyc-points li { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: var(--text-2); line-height: 1.55; }
.kyc-points li svg { width: 14px; height: 14px; color: var(--accent); flex: 0 0 auto; margin-top: 2px; }

/* KYC 表单卡片：与上方说明卡片（.kyc-intro）同边距对齐 */
.kyc-form {
  margin: 0 20px 14px; padding: 18px 16px 14px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--panel);
}
.kyc-form .field:last-of-type { margin-bottom: 8px; }

/* 直接挂在页面根上的说明条：左右留边与卡片对齐 */
.chain-strip.margined { margin: 12px 20px 0; }

.kv-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.kv-row:last-child { border-bottom: none; }
.kv-k { font-size: 12px; color: var(--text-3); flex: 0 0 auto; letter-spacing: .04em; }
.kv-v { font-size: 12.5px; color: var(--text); text-align: right; word-break: break-all; }
.kv-v.hash { font-family: ui-monospace, monospace; font-size: 11px; color: var(--text-2); }

/* ---- 实名认证 · 存证凭证卡片（边框圆角 + 虚线分隔） ---- */
.kyc-info {
  margin: 14px 20px; border: 1px solid var(--line-2); border-radius: 16px;
  background: var(--panel); overflow: hidden;
}
.kyc-info-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
  background: var(--accent-soft);
}
.kyc-info-title { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--text); }
.kyc-info .kv-row {
  padding: 12.5px 16px; gap: 14px; align-items: baseline;
  border-bottom: none;
}
.kyc-info .kv-row + .kv-row { border-top: 1px dashed var(--line); }
.kyc-info .kv-k { width: 60px; font-size: 11.5px; }
.kyc-info .kv-v { flex: 1; line-height: 1.7; }
.kyc-info .kv-v.hash { font-size: 11px; line-height: 1.8; letter-spacing: .01em; }

.form-err { font-size: 12px; color: var(--danger); min-height: 16px; margin-top: 4px; }
.field-tip { font-size: 11.5px; color: var(--text-3); min-height: 16px; margin: -6px 0 4px; }
.field-tip.ok { color: var(--mint); }
.field-tip.err { color: var(--danger); }

/* v2.37.0 忘记密码入口：低调但可点击，与左侧说明同行对齐 */
.forgot-link {
  font-size: 11.5px;
  color: var(--accent-2, #c9a227);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 10px;
  border-bottom: 1px dashed rgba(201, 162, 39, .45);
  cursor: pointer;
}
.forgot-link:hover { color: var(--accent, #e0c070); }

/* v2.84.2 登录密码「按住显示」按钮：眼睛图标叠在输入框右侧，按住临时明文、松手恢复 */
.pwd-wrap { position: relative; display: flex; align-items: center; }
.pwd-wrap input { width: 100%; padding-right: 42px; }
.pwd-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: none; background: transparent; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3, #9aa5b8); cursor: pointer; padding: 0;
  -webkit-tap-highlight-color: transparent; touch-action: none; user-select: none;
  transition: color .15s ease, background-color .15s ease;
}
.pwd-eye:hover { color: var(--accent, #e0c070); background: rgba(255, 255, 255, .06); }
.pwd-eye:active { color: var(--accent, #e0c070); }
.pwd-eye svg { width: 19px; height: 19px; pointer-events: none; }

/* ================================================================
   分享推荐
   ================================================================ */
.invite-card {
  margin: 0 20px 16px; padding: 22px 20px; border-radius: 18px;
  border: 1px solid var(--accent-line);
  background: radial-gradient(130% 110% at 88% -10%, var(--accent-soft), transparent 58%), var(--bg-1);
  position: relative; overflow: hidden;
}
.invite-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
}
.invite-label { font-size: 11px; color: var(--text-3); letter-spacing: .18em; text-transform: uppercase; }
.invite-code-row { display: flex; align-items: center; gap: 12px; margin: 12px 0 14px; }
.invite-code {
  font-size: 25px; font-weight: 300; letter-spacing: .1em; color: var(--accent);
  flex: 1; word-break: break-all; line-height: 1.2;
}
.invite-code-row .btn-sm { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; }
.invite-code-row .btn-sm svg { width: 13px; height: 13px; }
.invite-rule { font-size: 11.5px; color: var(--text-3); line-height: 1.6; }

.invite-stats { display: flex; gap: 24px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.invite-stats > div { display: flex; flex-direction: column; gap: 3px; }
.invite-stats b { font-size: 20px; font-weight: 300; font-variant-numeric: tabular-nums; color: var(--text); }
.invite-stats span { font-size: 10.5px; color: var(--text-3); letter-spacing: .1em; }

.tx-plus { color: var(--accent); }
.rank-list { margin: 0 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.rank-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px;
  border-bottom: 1px solid var(--line); font-size: 13px;
}
.rank-row:last-child { border-bottom: none; }
.rank-no {
  width: 22px; height: 22px; border-radius: 7px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 11px; font-weight: 600;
  color: var(--text-3); background: var(--panel-2);
}
.rank-row.top .rank-no { color: var(--accent-ink); background: var(--accent); }
.rank-name { flex: 1; color: var(--text); }
.rank-val { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }


/* ================================================================
   账号安全 · 邮箱二次验证（2FA）
   ================================================================ */

/* 转账弹窗内的安全提示条 */
.sec-bar {
  display: flex; align-items: center; gap: 9px; padding: 11px 13px;
  border-radius: 12px; font-size: 12px; line-height: 1.5; margin-bottom: 14px;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-2);
}
.sec-bar svg { width: 15px; height: 15px; flex: 0 0 auto; }
.sec-bar.warn { background: rgba(224, 128, 140, 0.09); border-color: rgba(224, 128, 140, 0.3); color: var(--rose); }
.sec-bar .sec-bar-t { flex: 1; }

/* 验证码弹窗 */
.code-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 18px; }
.code-shield {
  width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center;
  border-radius: 14px; background: var(--accent-soft); color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.code-shield svg { width: 22px; height: 22px; }
.code-mail {
  display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 11px;
  margin-bottom: 16px; font-size: 12.5px; color: var(--text-2);
  background: rgba(0, 0, 0, 0.26); border: 1px solid var(--line);
}
.code-mail svg { width: 15px; height: 15px; color: var(--accent); flex: 0 0 auto; }
.code-mail span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.code-input {
  width: 100%; text-align: center; letter-spacing: .55em; text-indent: .55em;
  font-size: 25px; font-weight: 300; font-family: ui-monospace, monospace;
  padding: 15px 12px; border-radius: 13px;
  background: rgba(0, 0, 0, 0.34); border: 1px solid var(--line); color: var(--text);
  outline: none; transition: .2s; font-variant-numeric: tabular-nums;
}
.code-input:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.code-input::placeholder { color: var(--text-3); letter-spacing: .55em; }

/* 演示模式验证码展示 */
.code-demo {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 11px 13px; border-radius: 12px; margin-bottom: 12px; font-size: 12px;
  background: rgba(127, 201, 166, 0.08); border: 1px dashed rgba(127, 201, 166, 0.36); color: var(--text-2);
}
.code-demo svg { width: 15px; height: 15px; color: var(--mint); flex: 0 0 auto; }
.code-demo b {
  color: var(--mint); font-family: ui-monospace, monospace; font-size: 16px;
  letter-spacing: .14em; margin-left: 2px;
}
.code-demo .btn-sm { margin-left: auto; }

.code-resend {
  display: block; width: 100%; margin-top: 12px; padding: 10px;
  border-radius: 11px; font-size: 12.5px; color: var(--text-2);
  background: var(--panel); border: 1px solid var(--line); transition: .2s;
}
.code-resend:hover:not(:disabled) { color: var(--text); background: var(--panel-2); border-color: var(--line-2); }
.code-resend:disabled { opacity: .5; cursor: not-allowed; font-variant-numeric: tabular-nums; }

/* 「我的」页账号安全入口状态点 */
.menu-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 8px var(--mint); flex: 0 0 auto;
}
.menu-dot.off { background: var(--text-3); box-shadow: none; }

/* 浅色主题适配 */
[data-theme="frost"] .code-shield { background: rgba(199, 154, 62, 0.12); }
[data-theme="snow"] .code-shield { background: rgba(199, 154, 62, 0.12); }
[data-theme="frost"] .code-mail { background: #F7F8FB; }
[data-theme="snow"] .code-mail { background: #F7F8FB; }
[data-theme="frost"] .code-input { background: #fff; }
[data-theme="snow"] .code-input { background: #fff; }
[data-theme="frost"] .code-demo, [data-theme="snow"] .code-demo {
  background: rgba(46, 146, 106, 0.07); border-color: rgba(46, 146, 106, 0.3);
}
[data-theme="frost"] .code-demo svg, [data-theme="frost"] .code-demo b { color: #2E926A; }
[data-theme="snow"] .code-demo svg, [data-theme="snow"] .code-demo b { color: #2E926A; }
[data-theme="frost"] .sec-bar { background: rgba(199, 154, 62, 0.1); color: #8A6A1E; }
[data-theme="snow"] .sec-bar { background: rgba(199, 154, 62, 0.1); color: #8A6A1E; }
[data-theme="frost"] .sec-bar.warn { background: rgba(196, 74, 92, 0.08); color: #C44A5C; }
[data-theme="snow"] .sec-bar.warn { background: rgba(196, 74, 92, 0.08); color: #C44A5C; }
[data-theme="frost"] .code-resend { background: #F7F8FB; }
[data-theme="snow"] .code-resend { background: #F7F8FB; }

/* 账号封禁提示（覆盖全屏，阻断式） */
.ban-overlay {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: rgba(6, 8, 14, 0.82); backdrop-filter: blur(10px); padding: 24px;
  animation: banFade .28s ease;
}
@keyframes banFade { from { opacity: 0 } to { opacity: 1 } }
.ban-card {
  width: 100%; max-width: 380px; padding: 30px 26px 26px; border-radius: 20px; text-align: center;
  background: linear-gradient(160deg, rgba(30, 20, 22, 0.98), rgba(14, 12, 16, 0.99));
  border: 1px solid rgba(224, 128, 140, 0.28);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.ban-ico {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px; display: grid; place-items: center;
  font-size: 26px; background: rgba(224, 128, 140, 0.12); border: 1px solid rgba(224, 128, 140, 0.3);
}
.ban-title { font-size: 17px; font-weight: 700; letter-spacing: .4px; color: var(--rose, #E0808C); }
.ban-msg { margin-top: 12px; font-size: 13px; line-height: 1.7; color: var(--text-2, #C6C8CF); }
.ban-hint { margin-top: 10px; font-size: 11.5px; line-height: 1.7; color: var(--text-3, #7A7D88); }
.ban-btn {
  margin-top: 22px; width: 100%; padding: 12px; border-radius: 11px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--accent-ink, #14100A);
  background: var(--accent-2, #7FC0F0); border: none; transition: .2s;
}
.ban-btn:hover { filter: brightness(1.08); }
[data-theme="frost"] .ban-overlay { background: rgba(240, 241, 245, 0.86); }
[data-theme="snow"] .ban-overlay { background: rgba(240, 241, 245, 0.86); }
[data-theme="frost"] .ban-card { background: #fff; box-shadow: 0 20px 60px rgba(20, 24, 40, 0.18); }
[data-theme="snow"] .ban-card { background: #fff; box-shadow: 0 20px 60px rgba(20, 24, 40, 0.18); }
[data-theme="frost"] .ban-msg { color: #4A4E5A; }
[data-theme="snow"] .ban-msg { color: #4A4E5A; }

/* ---- 消息打赏弹窗 ---- */
.tip-quick { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.tip-chip {
  padding: 8px 14px; border-radius: 999px; font-size: 12.5px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--text-2);
  transition: all .15s;
}
.tip-chip:hover { border-color: var(--accent-line); color: var(--text); }
.tip-chip.on {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-soft); font-weight: 600;
}
.tip-actions { display: flex; gap: 10px; margin-top: 6px; }

/* ---- 登录方式切换 ---- */
.login-seg {
  display: flex; gap: 6px; padding: 4px; margin: 0 0 16px;
  border-radius: 12px; background: rgba(0,0,0,.24); border: 1px solid var(--line);
}
.login-seg-btn {
  flex: 1; padding: 9px 0; border-radius: 9px; font-size: 12.5px; cursor: pointer;
  border: none; background: transparent; color: var(--text-3); transition: all .15s;
}
.login-seg-btn.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
/* v2.93.5 修正：主站主题挂 <html>（documentElement），body[data-theme] 永不命中 */
[data-theme="frost"] .login-seg { background: #EEF3FA; }
[data-theme="snow"] .login-seg { background: #EEF3FA; }
[data-theme="frost"] .login-seg-btn.on { background: #fff; box-shadow: 0 1px 4px rgba(12,16,28,.1); }
[data-theme="snow"] .login-seg-btn.on { background: #fff; box-shadow: 0 1px 4px rgba(12,16,28,.1); }

/* ---- 帖子置顶徽标（贴卡片右侧） ----
   规范：小图钉线性金色图标 + 小字，细字标签无背景色块（禁大块金色） */
.pin-badge {
  display: block; width: fit-content; margin: 12px 16px -6px auto;
  padding: 2px 6px; border-radius: 8px; font-size: 11px; letter-spacing: .05em;
  color: var(--accent); border: none; background: none;
}
.pin-badge { display: inline-flex; align-items: center; gap: 4px; }
.pin-badge svg { width: 11px; height: 11px; }
.pin-badge.site { color: var(--accent); font-weight: 500; }
/* 通用标签细金化（创作者等）：无底色、无边框（定义见 .chip-neon 主段） */

/* ---- 内容管理员操作 ---- */
.mod-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 13px 14px; border-radius: 13px; cursor: pointer; text-align: left;
  border: 1px solid var(--line); background: rgba(255,255,255,.02); color: var(--text);
  transition: background .15s, border-color .15s;
}
.mod-row:hover { background: rgba(255,255,255,.05); border-color: var(--line-2); }
.mod-row.danger:hover { border-color: rgba(222,60,80,.4); background: rgba(222,60,80,.06); }
.mod-arrow { color: var(--text-3); font-size: 16px; }

/* ---- 评论媒体（图片 / 视频回复） ---- */
.comment-media {
  display: block; max-width: min(280px, 100%); max-height: 220px; margin-top: 6px;
  border-radius: 12px; border: 1px solid var(--line); object-fit: cover;
}
.comment-media-box { cursor: zoom-in; display: inline-block; max-width: min(280px, 100%); }
video.comment-media { width: min(280px, 100%); cursor: default; background: #000; }
body[data-theme="frost"] .mod-row { background: #FAFBFC; }
body[data-theme="snow"] .mod-row { background: #FAFBFC; }
body[data-theme="frost"] .mod-row:hover { background: #F2F4F8; }
body[data-theme="snow"] .mod-row:hover { background: #F2F4F8; }

/* ============================ 广场折叠卡片 ============================ */
/* 信息流只展示摘要，点击整卡进入详情页 */
.post-clickable { cursor: pointer; }
.post-clickable:active { transform: scale(.995); }

/* 正文行数截断 + 底部渐隐，提示还有更多内容（首页网格内为 2 行，见 .feed-grid 前缀规则） */
.post-body.clamped {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; position: relative; margin-bottom: 2px;
}
.feed-grid .post-body.clamped { -webkit-line-clamp: 2; }
/* 折叠媒体：视频封面 + 遮罩，图片压缩高度 */
.post-img.clamped { max-height: 220px; }
/* 遮罩只做极轻压暗，不再承载文字：画面本身是视觉核心 */
.post-media-veil {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(5,5,8,.16);
  transition: background .25s;
}
.post:hover .post-media-veil { background: rgba(5,5,8,.28); }
/* 简约细圆环播放按钮：居中悬浮、半透明白、hover 转古金，无文字 */
.post-media-play {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: rgba(255,255,255,.88);
  background: rgba(10,10,10,.22);
  border: 1.5px solid rgba(255,255,255,.55);
  backdrop-filter: blur(2px);
  transition: color .25s, border-color .25s, transform .25s, background .25s;
}
.post-media-play svg { width: 17px; height: 17px; margin-left: 2px; }
.post:hover .post-media-play,
.post-media-play:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(10,10,10,.42);
  transform: scale(1.04);
}
/* 旧版提示条：保留类名兼容，但不再渲染在主卡片 */
.post-media-hint {
  font-size: 11px; letter-spacing: .06em; color: rgba(255,255,255,.82);
  padding: 4px 11px; border-radius: 999px;
  background: rgba(8,8,12,.5); border: 1px solid rgba(255,255,255,.14);
}
.post-media-hint.image {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  white-space: nowrap;
}
.post-imgwrap { position: relative; }

/* ============================ 评论输入（图文一体） ============================ */
.composer { margin-top: 10px; }
.composer-row { display: flex; align-items: center; gap: 8px; }
.composer-media { padding: 8px 10px; display: grid; place-items: center; flex: none; }
.composer-media svg { width: 15px; height: 15px; }
.composer-preview {
  position: relative; width: fit-content; margin-bottom: 9px;
  border-radius: 13px; overflow: hidden; border: 1px solid var(--accent-line);
  background: rgba(0,0,0,.3);
}
.composer-pv-media { display: block; line-height: 0; }
.composer-pv-el { display: block; width: 132px; height: 96px; object-fit: cover; }
.composer-pv-badge {
  position: absolute; left: 7px; bottom: 7px; font-size: 10px; letter-spacing: .04em;
  padding: 2px 7px; border-radius: 6px; color: #fff;
  background: rgba(8,8,12,.66); border: 1px solid rgba(255,255,255,.16);
}
.composer-pv-del {
  position: absolute; right: 6px; top: 6px; width: 21px; height: 21px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; color: #fff; cursor: pointer;
  background: rgba(8,8,12,.7); border: 1px solid rgba(255,255,255,.2);
}
.composer-pv-del:hover { background: rgba(222,60,80,.8); border-color: transparent; }

/* ============================ 内容详情页 ============================ */
.post-detail { padding-bottom: 8px; }
.post-detail .post { margin-top: 6px; }
.pd-comment-head {
  margin: 18px 20px 4px; font-size: 12.5px; letter-spacing: .05em; color: var(--text-2);
  font-weight: 500;
}
.pd-comment-list { margin: 0 20px; }
.pd-comment-list .comments { margin-top: 0; }

/* 评论媒体（图片 / 视频回复） */
.comment-media {
  display: block; max-width: min(260px, 100%); max-height: 200px; margin-top: 7px;
  border-radius: 12px; border: 1px solid var(--line); object-fit: cover; cursor: zoom-in;
}
video.comment-media { width: min(260px, 100%); cursor: default; background: #000; }

body[data-theme="frost"] .composer-preview { background: rgba(12,16,28,.03); }
body[data-theme="snow"] .composer-preview { background: rgba(12,16,28,.03); }

/* ============================ 更换手机号 / 弹窗操作区 ============================ */
.modal-acts { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-end; }
.modal-acts .btn-neon { padding: 10px 22px; border-radius: 12px; }
.chip-btn {
  cursor: pointer; font-family: inherit; transition: .22s;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
}
.chip-btn:hover { border-color: var(--accent-line); color: var(--accent); }
.chip-btn::after { content: ' ✎'; font-size: 9.5px; opacity: .55; }

/* 消息未读气泡（底部 tab + 会话列表） */
.tab-badge {
  position: absolute; top: 4px; right: calc(50% - 26px);
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #E5484D; color: #fff;
  font-size: 9.5px; font-weight: 600; line-height: 16px; text-align: center;
  box-shadow: 0 0 0 2px var(--bg-0);
}
.conv-unread {
  flex: 0 0 auto; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: #E5484D; color: #fff;
  font-size: 10.5px; font-weight: 600; line-height: 18px; text-align: center;
  align-self: center;
}
.menu-unread { color: #E5484D !important; font-weight: 600; }

/* ==================== 付费内容（付费帖子 / 付费视频） ==================== */
/* 卡片内遮罩式付费门：服务端已截断正文与媒体，这里只负责视觉呈现 */
.paid-gate { position: relative; border-radius: 12px; overflow: hidden; }
.paid-excerpt {
  position: relative; z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
  margin-bottom: -22px;
}
.paid-veil {
  position: relative; z-index: 1;
  margin-top: 0; padding: 24px 16px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, var(--bg-1) 46%, var(--bg-1) 100%);
  cursor: pointer;
  text-align: center;
}
.paid-lock {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft, rgba(0,0,0,.05)); color: var(--accent);
  border: 1px solid var(--accent-line); flex: 0 0 auto;
}
.paid-lock svg { width: 18px; height: 18px; }
.paid-price-line { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.paid-price-line b { font-size: 15px; color: var(--accent); letter-spacing: .2px; }
.paid-price-line span { font-size: 11.5px; color: var(--text-3); }
.paid-count { font-size: 11px; color: var(--text-3); }
.paid-buy { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; }
.paid-buy svg { width: 13px; height: 13px; }

/* 发布器内付费开关与邀请进度 */
.paid-field {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 13px; background: rgba(255,255,255,.02);
}
.paid-row { display: flex; flex-direction: column; gap: 10px; }
.paid-row .field { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
.paid-row-head { display: flex; align-items: center; gap: 6px; }
.paid-row-title { font-size: 12.5px; color: var(--text-1); font-weight: 500; }
.paid-row .switch {
  position: relative; width: 42px; height: 24px; flex: 0 0 auto;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.06); cursor: pointer; transition: .18s;
}
.paid-row .switch.on { background: var(--accent); border-color: transparent; }
.paid-row .switch.on::after {
  content: ''; position: absolute; top: 3px; left: 21px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-ink, #fff); transition: .18s;
}
.paid-row .switch:not(.on)::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--text-3); transition: .18s;
}
.paid-row .switch.disabled { opacity: .45; cursor: not-allowed; }
.paid-progress { display: flex; flex-direction: column; gap: 6px; }
.paid-progress-bar {
  height: 5px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.07);
}
.paid-progress-bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width .3s; }
.paid-progress-text { font-size: 11.5px; color: var(--text-3); line-height: 1.5; }
.paid-price-line { flex-direction: row; }
.paid-field .paid-price-line { align-items: center; gap: 8px; }
.paid-field .paid-price-line input { flex: 1; min-width: 0; }
.paid-price-unit { font-size: 12.5px; color: var(--text-3); flex: 0 0 auto; }
.paid-price-hint { font-size: 11px; color: var(--text-3); line-height: 1.5; }

/* 付费发布 · 实名认证门槛提示 */
.paid-kyc-tip {
  padding: 11px 12px; border-radius: 10px;
  border: 1px solid rgba(255, 176, 60, .28);
  background: rgba(255, 176, 60, .07);
}
.paid-kyc-title { font-size: 12.5px; font-weight: 600; color: var(--text-1); margin-bottom: 4px; }
.paid-kyc-desc { font-size: 11.5px; line-height: 1.6; color: var(--text-3); }

/* 短视频页付费遮罩 */
.vslide-paid {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: rgba(2,3,8,.58); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  text-align: center; padding: 24px;
}
.vslide-paid .paid-price-line b { font-size: 17px; }

/* ==================== 全站推荐倒计时 ==================== */
.pin-stack { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.pin-countdown {
  font-size: 10.5px; letter-spacing: .02em; color: var(--text-3);
  font-variant-numeric: tabular-nums; padding-left: 2px;
}

/* ==================== 每日签到 ==================== */
.checkin-card {
  margin: 16px 20px 0; padding: 15px 16px; border-radius: 16px;
  border: 1px solid var(--accent-line);
  background: linear-gradient(135deg, var(--accent-soft, rgba(255,215,120,.08)), transparent 70%);
}
.checkin-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.checkin-title { font-size: 15px; font-weight: 600; letter-spacing: .01em; }
.checkin-streak {
  font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px;
  color: var(--accent); background: var(--accent-soft, rgba(255,215,120,.1));
  border: 1px solid var(--accent-line); flex: 0 0 auto;
}
.checkin-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin: 13px 0 0; padding: 11px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.checkin-stat { text-align: center; }
.checkin-stat b { display: block; font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.checkin-stat.warn b { color: var(--accent); }
.checkin-stat span { display: block; margin-top: 3px; font-size: 10.5px; color: var(--text-3); }
.checkin-tip { margin: 11px 0 0; font-size: 11px; line-height: 1.6; color: var(--text-3); }
.checkin-btn { width: 100%; margin-top: 12px; }
.checkin-btn.done { opacity: .55; }

/* ============================ 热度排序 ============================ */
/* 排序切换条：独立于分类 tab 的一行，右侧跟点燃门槛说明 */
/* 内容筛选栏：纯文字按钮，选中为古金色 + 金色下划线（与顶部推荐 tab 一套交互规则） */
.feed-sort { display: flex; align-items: center; gap: 20px; min-height: 44px; height: auto; padding: 4px 20px; }
.fsort {
  position: relative;
  padding: 0 2px 10px; border: none; background: none;
  font-size: 14px; white-space: nowrap;
  color: var(--text-2); font-family: inherit;
  letter-spacing: .03em; transition: color .25s;
}
/* 金色下划线：宽度过渡与顶部 .ftab 同一套（点击整页重渲染，用自身 ::after 避免闪跳） */
.fsort:not(.fsort-filter)::after {
  content: ''; position: absolute; left: 50%; bottom: 0;
  width: 0; height: 2px; border-radius: 1px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width .25s ease;
}
.fsort:hover { color: var(--text); }
.fsort.on { color: var(--accent); }
.fsort.on:not(.fsort-filter)::after { width: 100%; }
.fsort-filter {
  margin-left: auto; display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--text-2);
}
.fsort-filter svg { width: 13px; height: 13px; }
.fsort-filter:hover { color: var(--accent); }

/* 评分筛选弹窗：底部弹出式选项列表 */
.filter-sheet { display: flex; flex-direction: column; gap: 8px; }
.filter-opt {
  padding: 12px 14px; border-radius: 8px; text-align: left;
  border: 1px solid var(--line); background: var(--bg-1);
  color: var(--text-2); font-size: 15px; font-family: inherit;
  transition: .2s;
}
.filter-opt:hover { border-color: var(--line-2); color: var(--text); }
.filter-opt.on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

/* 卡片徽标区：独立占行、右对齐；v2.87.1 去掉旧的 -6px 负边距（会把下一行
   头像昵称拉上来重叠），改为正间距，与作者行之间留出呼吸感 */
.post-badges {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  justify-content: flex-end; gap: 6px;
  margin: 2px 16px 8px auto; width: fit-content; max-width: calc(100% - 32px);
}
/* 徽标进容器后由容器统一控制外边距，避免双重缩进 */
.post-badges .pin-badge { margin: 0; }

/* 置顶徽标堆叠（徽标 + 倒计时两行）与头像行的间距：
   详情页大卡里紧贴 VIP 徽章/创作者标签会挤成一团（用户反馈「太挤」），
   拉开垂直间距并给倒计时行留出右对齐的内边距 */
.pin-stack { row-gap: 3px; }
.pin-countdown { padding-right: 2px; }
.post-detail .post-badges { margin: 6px 16px 6px auto; }
@media (max-width: 560px) {
  .post-detail .post-badges { margin: 8px 14px 2px auto; }
  .pin-stack { row-gap: 4px; }
}

/* 热度标签 */
.chip-rise { background: rgba(127, 201, 166, .09); border-color: rgba(127, 201, 166, .3); color: var(--mint); }
/* 🔥 热榜「点燃」态：暖色渐变 + 呼吸微光，视觉上明显区别于普通标签 */
.chip-hot.fire {
  background: linear-gradient(120deg, rgba(224, 128, 140, .22), rgba(245, 166, 35, .22));
  border-color: rgba(224, 128, 140, .45);
  color: #ffb4a2;
  font-weight: 600;
  animation: fireBreath 2.4s ease-in-out infinite;
}
@keyframes fireBreath {
  0%, 100% { box-shadow: 0 0 8px rgba(224, 128, 140, .2); }
  50% { box-shadow: 0 0 16px rgba(245, 166, 35, .45); }
}
/* 互动行内的热度分数；hover 提示维度明细由 title 属性提供 */
.pact-heat {
  margin-left: auto; font-size: 10.5px; color: var(--text-3);
  font-variant-numeric: tabular-nums; white-space: nowrap; cursor: help;
  padding: 0 4px; flex-shrink: 0;
}
.pact-heat.fire { color: #e0808c; font-weight: 600; }
.pact-heat.rise { color: var(--mint); }
/* 无障碍：尊重系统「减弱动效」设置 */
@media (prefers-reduced-motion: reduce) {
  .chip-hot.fire { animation: none; }
}

/* ==================== 通知中心 ==================== */
.notif-tools { display: flex; gap: 6px; }
.notif-tools .btn-sm { font-size: 11px; padding: 5px 9px; }

.notif-filter { display: flex; gap: 6px; padding: 0 20px 12px; flex-wrap: wrap; }
.nfilter {
  font-size: 11.5px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--text-2);
  transition: .2s;
}
.nfilter:hover { border-color: var(--accent-line); color: var(--text); }
.nfilter.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-2); font-weight: 600; }
.nfilter-unread { margin-left: auto; }

.notif-list { display: flex; flex-direction: column; gap: 2px; padding: 0 14px; }
.notif {
  position: relative; display: flex; gap: 11px; align-items: flex-start;
  padding: 13px 12px; border-radius: 14px; cursor: pointer;
  border: 1px solid transparent; transition: .2s;
}
.notif:hover { background: var(--surface-2, rgba(255,255,255,.03)); }
.notif.unread { background: var(--accent-soft); border-color: var(--accent-line); }
.notif.unread::before {
  content: ''; position: absolute; left: 3px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent-2);
  box-shadow: 0 0 6px var(--accent-2);
}
.notif.gone { opacity: 0; transform: translateX(14px); }

.notif-ico {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--surface-2, rgba(255,255,255,.03));
  overflow: hidden; color: var(--text-2);
}
.notif-ico svg { width: 17px; height: 17px; }
.notif-ico img { width: 100%; height: 100%; object-fit: cover; }
.notif.t-like .notif-ico { color: #e0808c; border-color: rgba(224,128,140,.32); background: rgba(224,128,140,.09); }
.notif.t-tip .notif-ico { color: #e8c37a; border-color: rgba(232,195,122,.32); background: rgba(232,195,122,.09); }
.notif.t-comment .notif-ico { color: var(--accent-2); border-color: var(--accent-line); background: var(--accent-soft); }
.notif.t-follow .notif-ico { color: var(--mint, #7FC9A6); border-color: rgba(127,201,166,.32); background: rgba(127,201,166,.09); }

.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 13px; line-height: 1.45; color: var(--text); word-break: break-word; }
.notif-title b { font-weight: 600; color: var(--text); }
.notif-amt { color: #e8c37a; font-weight: 600; font-variant-numeric: tabular-nums; }
.notif-text {
  font-size: 12px; color: var(--text-3); margin-top: 3px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.notif-time { font-size: 10.5px; color: var(--text-3); margin-top: 5px; letter-spacing: .02em; }
.notif-del {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; background: transparent; color: var(--text-3);
  opacity: 0; transition: .2s;
}
.notif:hover .notif-del { opacity: 1; }
.notif-del:hover { color: var(--danger, #e0808c); border-color: rgba(224,128,140,.3); background: rgba(224,128,140,.08); }
.notif-del svg { width: 13px; height: 13px; }
.notif-more { text-align: center; font-size: 11px; color: var(--text-3); padding: 16px 0 6px; }

/* 消息页的通知入口 */
.notif-entry {
  border: 1px solid var(--accent-line) !important;
  background: var(--accent-soft) !important;
  margin: 0 20px 8px;
  width: calc(100% - 40px);
  border-radius: 14px;
  overflow: hidden;
}
.notif-entry-ico { color: var(--accent-2) !important; }
.notif-entry-ico svg { width: 19px; height: 19px; }

/* ==================== 全站搜索 ==================== */
.search-view { padding-bottom: 20px; }
.search-head { padding: 4px 20px 12px; }
.search-box {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2, rgba(255,255,255,.03));
  transition: .22s;
}
.search-box:focus-within { border-color: var(--accent-line); background: var(--accent-soft); }
.search-box > svg { width: 16px; height: 16px; color: var(--text-3); flex-shrink: 0; }
.search-input {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 14px;
}
.search-input::placeholder { color: var(--text-3); }
.search-clear {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-3, rgba(255,255,255,.07)); color: var(--text-3); border: none;
}
.search-clear svg { width: 12px; height: 12px; }

.search-sug {
  margin: -6px 20px 10px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface, var(--bg-2, #12141a));
  box-shadow: 0 14px 34px rgba(0,0,0,.32);
}
.sug-item {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: transparent; border: none; text-align: left;
  color: var(--text-2); font-size: 12.5px; transition: .16s;
}
.sug-item:hover { background: var(--accent-soft); color: var(--text); }
.sug-ico { width: 15px; height: 15px; color: var(--text-3); flex-shrink: 0; display: inline-flex; }
.sug-ico svg { width: 100%; height: 100%; }
.sug-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug-sub { font-size: 10.5px; color: var(--text-3); flex-shrink: 0; }

.search-kinds { display: flex; gap: 6px; padding: 0 20px 12px; flex-wrap: wrap; }
.skind {
  font-size: 11.5px; padding: 5px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--text-2); transition: .2s;
}
.skind:hover { border-color: var(--accent-line); color: var(--text); }
.skind.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-2); font-weight: 600; }

.search-count { display: flex; align-items: baseline; gap: 8px; padding: 0 20px 12px; font-size: 12.5px; color: var(--text-3); }
.sc-num { color: var(--accent-2); font-weight: 600; font-variant-numeric: tabular-nums; }

.search-group-title {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3); padding: 9px 20px 8px;
}

.search-tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 20px 6px; }
.stag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 12px;
  border: 1px solid var(--line); background: transparent; color: var(--accent-2);
  transition: .2s;
}
.stag:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.stag-n { font-size: 10px; color: var(--text-3); font-variant-numeric: tabular-nums; }

.search-users { display: flex; flex-direction: column; gap: 2px; padding: 0 14px 4px; }

.search-post {
  width: 100%; display: flex; gap: 12px; align-items: flex-start; text-align: left;
  padding: 12px 10px; margin: 0 10px; border-radius: 14px;
  background: transparent; border: 1px solid transparent; transition: .2s;
}
.search-post:hover { background: var(--surface-2, rgba(255,255,255,.03)); border-color: var(--line); }
.sp-thumb {
  width: 54px; height: 54px; border-radius: 12px; flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--surface-2, rgba(255,255,255,.03));
  color: var(--text-3);
}
.sp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-thumb svg { width: 19px; height: 19px; }
.sp-info { flex: 1; min-width: 0; }
.sp-title { font-size: 13.5px; font-weight: 500; color: var(--text); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-snippet { font-size: 11.5px; color: var(--text-3); margin-top: 3px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sp-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 10.5px; color: var(--text-3); flex-wrap: wrap; }
.sp-dot { color: var(--text-3); }
.sp-stat { display: inline-flex; align-items: center; gap: 3px; }
.sp-stat svg { width: 11px; height: 11px; }
.sr-mark { background: rgba(232,195,122,.22); color: #e8c37a; border-radius: 3px; padding: 0 2px; }

@media (prefers-reduced-motion: reduce) {
  .notif, .search-post, .sug-item { transition: none; }
}

/* ==================== 内容合集 ==================== */
.pf-tabs {
  display: flex; align-items: center; gap: 6px;
  padding: 16px 20px 12px; border-bottom: 1px solid var(--line);
}
.pf-tab {
  font-size: 12.5px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--text-2); transition: .2s;
}
.pf-tab:hover { border-color: var(--accent-line); color: var(--text); }
.pf-tab.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-2); font-weight: 600; }
.pf-tab-new { margin-left: auto; font-size: 11.5px; padding: 5px 11px; }

.coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; padding: 4px 16px 8px; }
.coll-card {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%;
  padding: 12px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--surface-2, rgba(255,255,255,.02)); transition: .22s;
}
.coll-card:hover { border-color: var(--accent-line); background: var(--accent-soft); transform: translateY(-1px); }
.coll-cover {
  position: relative; width: 62px; height: 62px; border-radius: 12px; flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--accent-soft); color: var(--accent-2);
}
.coll-cover img { width: 100%; height: 100%; object-fit: cover; }
.coll-cover svg { width: 22px; height: 22px; }
.coll-count {
  position: absolute; left: 0; right: 0; bottom: 0; text-align: center;
  font-size: 9px; padding: 2px 0; letter-spacing: .04em;
  background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(4px);
}
.coll-draft {
  position: absolute; top: 3px; right: 3px; font-size: 8.5px; padding: 1px 5px;
  border-radius: 999px; background: rgba(224,128,140,.85); color: #fff;
}
.coll-info { flex: 1; min-width: 0; }
.coll-title { font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.coll-summary { font-size: 11.5px; color: var(--text-3); margin-top: 3px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.coll-meta { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 10.5px; color: var(--text-3); flex-wrap: wrap; }

.coll-head { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px 14px; }
.coll-head-cover {
  width: 78px; height: 78px; border-radius: 16px; flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--accent-soft); color: var(--accent-2);
}
.coll-head-cover img { width: 100%; height: 100%; object-fit: cover; }
.coll-head-cover svg { width: 26px; height: 26px; }
.coll-head-info { flex: 1; min-width: 0; }
.coll-head-title { font-size: 17px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; line-height: 1.35; }
.coll-head-meta { font-size: 11.5px; color: var(--text-3); margin-top: 6px; }
.coll-head-summary { font-size: 12.5px; color: var(--text-2); margin-top: 8px; line-height: 1.6; }

.coll-acts { display: flex; gap: 7px; padding: 0 20px 14px; flex-wrap: wrap; }

.coll-items { display: flex; flex-direction: column; gap: 6px; padding: 4px 16px 10px; }
.coll-item {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  padding: 12px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface-2, rgba(255,255,255,.02)); transition: .2s;
}
.coll-item:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.ci-idx {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent-2); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.ci-body { flex: 1; min-width: 0; }
.ci-title { font-size: 13.5px; font-weight: 500; color: var(--text); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ci-note { font-size: 11.5px; color: var(--accent-2); margin-top: 4px; opacity: .85; }
.ci-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 10.5px; color: var(--text-3); }
.ci-ops { display: flex; flex-direction: column; gap: 3px; flex-shrink: 0; }
.ci-op {
  width: 24px; height: 24px; border-radius: 7px; font-size: 12px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: transparent; color: var(--text-3); transition: .18s;
}
.ci-op:hover:not(:disabled) { border-color: var(--accent-line); color: var(--accent-2); background: var(--accent-soft); }
.ci-op:disabled { opacity: .28; cursor: not-allowed; }
.ci-op.danger:hover:not(:disabled) { border-color: rgba(224,128,140,.45); color: #e0808c; background: rgba(224,128,140,.1); }

/* 添加到合集的选人/选内容列表 */
.pick-list {
  max-height: 260px; overflow-y: auto; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2, rgba(255,255,255,.02));
}
.pick-row {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 10px 12px; background: transparent; border: none;
  border-bottom: 1px solid var(--line); color: var(--text-2); transition: .16s;
}
.pick-row:last-child { border-bottom: none; }
.pick-row:hover { background: var(--accent-soft); }
.pick-row.on { background: var(--accent-soft); }
.pick-row.on .pick-check { color: var(--accent-2); font-weight: 700; }
.pick-main { flex: 1; min-width: 0; }
.pick-title { font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-sub { font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
.pick-check { flex-shrink: 0; font-size: 14px; color: var(--text-3); }

@media (max-width: 420px) {
  .coll-grid { grid-template-columns: 1fr; }
  .coll-head { padding: 14px 16px 12px; }
  .coll-head-cover { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .coll-card, .coll-item, .pf-tab { transition: none; }
}

/* 我的专栏合集区（「我的」页内） */
.coll-mine { padding: 0 0 6px; }
.coll-mine-bar { display: flex; align-items: center; gap: 10px; padding: 0 20px 12px; }
.coll-mine-hint { font-size: 11.5px; color: var(--text-3); }

/* ==================== PWA 安装引导 ==================== */
.install-guide { padding: 22px 20px 18px; }
.install-guide h3 { margin: 0 0 10px; font-size: 17px; color: var(--text); }
.install-guide p { margin: 0 0 12px; font-size: 13px; line-height: 1.65; color: var(--text-2); }
.install-guide ol { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; }
.install-guide li { font-size: 13px; line-height: 1.6; color: var(--text-2); }
.install-guide li b { color: var(--accent); font-weight: 600; }
.install-note { font-size: 11.5px !important; color: var(--text-3) !important; }
.install-guide .btn { width: 100%; margin-top: 4px; }

/* ---------------- 移动端紧凑化（≤600px 真机：消息页 / 我的页 / 顶栏） ----------------
   手机浏览器（尤其开启过字体放大 / 强制缩放的机型）下顶栏容易溢出、卡片偏松。
   本块必须位于文件末尾（同特异性下靠后者胜出），配合 viewport maximum-scale=1 防裁切。 */
@media (max-width: 600px) {
  /* 顶栏：收紧间距与字号，保证余额在 320px 宽下也不被裁切 */
  .topbar { gap: 8px; padding: 12px 14px 11px; }
  .logo-text { font-size: 12.5px; letter-spacing: .24em; }
  .topbar-chain { font-size: 9.5px; padding: 3px 8px; }
  .topbar-ico { width: 31px; height: 31px; }
  .topbar-acts { gap: 6px; }
  .topbar-wallet { padding: 6px 11px; }
  .topbar-wallet .wal { font-size: 12.5px; }
  .topbar-wallet .wal-unit { font-size: 8.5px; }

  /* 区块标题：上间距与内边距收紧 */
  .section-head { padding: 18px 16px 10px; }
  .section-head.center { margin: 18px 16px 10px; padding: 11px 14px; border-radius: 12px; }
  .section-head.center.has-aside .head-aside { padding: 6px 12px; right: 10px; }
  .section-title { font-size: 17px; }

  /* 消息页：会话行紧凑化 */
  .conv { padding: 11px 14px; gap: 11px; }
  .conv-group-ico { width: 38px; height: 38px; border-radius: 12px; }
  .conv-group-ico svg { width: 18px; height: 18px; }
  .conv-name { font-size: 13px; }
  .conv-last { font-size: 11px; }

  /* 我的页：主页头部紧凑化 */
  .pf-cover { height: 116px; }
  .pf-avatar-row { padding: 0 16px; margin-top: -28px; }
  .pf-avatar .avatar { width: 58px; height: 58px; border-radius: 50%; font-size: 20px; }
  .pf-info { padding: 10px 16px 0; }
  .profile-name { font-size: 17px; }
  .profile-bio { margin: 11px 16px 0; font-size: 12.5px; line-height: 1.7; }
  .profile-stats { margin-top: 14px; padding: 0 16px; }
  .profile-stats b { font-size: 15.5px; }

  /* 我的页：积分网格与签到卡紧凑化 */
  .stat-grid { gap: 8px; padding: 0 16px; }
  .stat-box { padding: 13px; border-radius: 13px; }
  .stat-box b { font-size: 17px; }
  .checkin-card { margin: 14px 16px 0; padding: 13px 14px; border-radius: 13px; }
  .notif-entry { margin: 0 16px 8px; width: calc(100% - 32px); border-radius: 12px; }
  .checkin-stats { margin: 10px 0 0; padding: 9px 0; }
  .checkin-stat b { font-size: 14.5px; }
  .checkin-tip { font-size: 10.5px; }
  .checkin-btn { margin-top: 10px; }

  /* 我的页：菜单列表紧凑化 */
  .menu { margin-top: 12px !important; }
  .menu-item { padding: 13px 14px; font-size: 13px; gap: 12px; }
}

/* ==================== 直播（视频直播 + 连麦 + 打赏） ==================== */

.live-page { padding: 0 0 20px; }
.live-page-head {
  display: flex; align-items: center; gap: 10px;
  padding: 22px 20px 14px;
}
.live-page-title { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; letter-spacing: .04em; }
.live-page-title svg { width: 19px; height: 19px; color: var(--accent); }
.live-page-sub { font-size: 11px; color: var(--text-3); letter-spacing: .04em; flex: 1; }
.live-start-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; font-size: 12.5px; }
.live-start-btn svg { width: 14px; height: 14px; }

.live-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 16px; }
.live-sec-title { grid-column: 1 / -1; font-size: 12.5px; font-weight: 600; color: var(--text-2); letter-spacing: .06em; padding: 10px 4px 0; }

.live-card { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: .2s; padding: 0; }
.live-card:hover { border-color: var(--line-2); transform: translateY(-1px); }
.live-card.off { opacity: .55; }
.live-card-cover {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 20% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
              linear-gradient(160deg, rgba(255,255,255,.05), rgba(0,0,0,.4)), var(--panel-2, #14161c);
}
.live-card-avatar .avatar { width: 52px; height: 52px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.live-badge {
  position: absolute; top: 8px; left: 8px; font-size: 9.5px; letter-spacing: .05em;
  padding: 3px 8px; border-radius: 999px; color: #fff;
  background: linear-gradient(90deg, #ff4d6d, #ff7a45); font-weight: 600;
}
.live-badge.gray { background: rgba(255,255,255,.16); color: var(--text-2); }
.live-viewers {
  position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; color: var(--text-2); background: rgba(0,0,0,.5); padding: 3px 8px; border-radius: 999px;
}
.live-viewers svg { width: 11px; height: 11px; }
.live-card-title { font-size: 12.5px; font-weight: 500; padding: 9px 11px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-card-meta { display: flex; align-items: center; gap: 6px; padding: 6px 11px 11px; }
.live-card-host { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--text-3); min-width: 0; }
.live-card-host .avatar { width: 16px; height: 16px; border-radius: 50%; }
.live-card-host span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-card-gift { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font-size: 10px; color: var(--gold); }
.live-card-gift svg { width: 11px; height: 11px; }

/* 直播间全屏层 */
.live-overlay {
  position: absolute; inset: 0; z-index: 70; overflow: hidden;
  background: #000; display: flex; flex-direction: column;
  animation: fadeIn .25s ease;
}
.live-main-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0a0b0e; }
.live-main-video.mirror { transform: scaleX(-1); }
.live-tiles { position: absolute; right: 12px; top: 92px; display: flex; flex-direction: column; gap: 8px; z-index: 3; }
.live-tile {
  width: 92px; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; position: relative;
  border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 18px rgba(0,0,0,.5); background: #14161c;
}
.live-tile video { width: 100%; height: 100%; object-fit: cover; }
.live-tile-name {
  position: absolute; left: 0; right: 0; bottom: 0; font-size: 9px; text-align: center;
  padding: 2px 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff;
}
.live-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 4;
  display: flex; align-items: center; gap: 8px; padding: 14px 14px 0;
}
.live-top-title {
  flex: 1; min-width: 0; font-size: 13px; font-weight: 500; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.live-chip {
  display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: #fff;
  background: rgba(0,0,0,.5); padding: 4px 9px; border-radius: 999px; flex: none;
}
.live-chip svg { width: 12px; height: 12px; }
.live-chip.gold { color: var(--gold); }
.live-btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10px; color: #fff; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.18);
  padding: 9px 13px; border-radius: 14px; backdrop-filter: blur(8px); transition: .2s;
}
.live-btn svg { width: 17px; height: 17px; }
.live-btn:active { transform: scale(.94); }
.live-btn.round { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border-radius: 50%; flex: none; }
.live-btn.round svg { width: 16px; height: 16px; }
.live-btn.gold { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.live-btn.danger { color: #ff6b81; border-color: rgba(255,107,129,.45); }
.live-btn.off { opacity: .45; }
.live-btn.on { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 50%, transparent); }

.live-status {
  position: absolute; top: 58px; left: 0; right: 0; text-align: center; z-index: 4;
  font-size: 11px; color: rgba(255,255,255,.85); text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.live-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; align-items: flex-end; justify-content: center; gap: 12px;
  padding: 0 20px calc(20px + env(safe-area-inset-bottom));
}
.live-raise-bar {
  position: absolute; left: 14px; right: 14px; bottom: 92px; z-index: 5;
  display: flex; align-items: center; gap: 8px;
  background: rgba(10,11,14,.86); border: 1px solid rgba(255,255,255,.14);
  border-radius: 13px; padding: 9px 12px; backdrop-filter: blur(10px);
}
.live-raise-title { font-size: 11px; color: var(--accent-2); font-weight: 600; letter-spacing: .04em; }
.live-raise-name { flex: 1; font-size: 12px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-btn { font-size: 10.5px; padding: 5px 12px; border-radius: 999px; font-weight: 600; }
.mini-btn.ok { background: var(--accent); color: #10131a; }
.mini-btn.no { background: rgba(255,255,255,.12); color: var(--text-2); }

.gift-note { font-size: 11px; color: var(--text-3); margin: 0 0 12px; line-height: 1.6; }
.gift-amounts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }
.gift-amt {
  padding: 10px 0; border-radius: 11px; font-size: 12.5px; font-weight: 600; text-align: center;
  background: var(--panel-2, #14161c); border: 1px solid var(--line); color: var(--text); transition: .15s;
}
.gift-amt.on { border-color: var(--gold); color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); }

@media (max-width: 600px) {
  .live-grid { gap: 10px; padding: 0 14px; }
  .live-page-head { padding: 18px 14px 12px; }
  .live-tiles { top: 78px; right: 10px; }
  .live-tile { width: 76px; }
  .live-bottom { padding: 0 14px calc(16px + env(safe-area-inset-bottom)); gap: 10px; }
  .live-raise-bar { bottom: 86px; left: 10px; right: 10px; }
}

/* ==================== 语音直播 + 用户小店 ==================== */

/* 开播形态选择 */
.live-mode-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.live-mode {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 8px; border-radius: 14px; text-align: center;
  background: var(--panel-2, #14161c); border: 1.5px solid var(--line); transition: .15s;
}
.live-mode svg { width: 22px; height: 22px; color: var(--text-2); }
.live-mode b { font-size: 13px; color: var(--text); font-weight: 600; }
.live-mode span { font-size: 10px; color: var(--text-3); }
.live-mode.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.live-mode.on svg { color: var(--accent); }
.live-badge.voice { top: 34px; background: linear-gradient(90deg, #7c5cff, #4da3ff); }

/* 语音直播主画面 */
.live-overlay.audio .live-main-video { visibility: hidden; }
.live-voice-hero {
  display: none; position: absolute; inset: 0; z-index: 1;
  flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background:
    radial-gradient(90% 60% at 50% 22%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%),
    linear-gradient(180deg, #191b22, #0a0b0e);
}
.live-overlay.audio .live-voice-hero { display: flex; }
.live-voice-avatar .avatar { width: 96px; height: 96px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 10px 40px color-mix(in srgb, var(--accent) 35%, transparent); }
.live-voice-name { font-size: 15px; font-weight: 600; color: #fff; letter-spacing: .04em; }
.live-voice-hint { font-size: 10.5px; color: rgba(255,255,255,.55); letter-spacing: .12em; }
.live-voice-wave { display: flex; align-items: flex-end; gap: 4px; height: 30px; }
.live-voice-wave i {
  width: 4px; border-radius: 2px; background: linear-gradient(180deg, var(--accent), var(--accent-2));
  animation: liveWave 1s ease-in-out infinite;
}
.live-voice-wave i:nth-child(1) { height: 30%; animation-delay: 0s; }
.live-voice-wave i:nth-child(2) { height: 65%; animation-delay: .12s; }
.live-voice-wave i:nth-child(3) { height: 100%; animation-delay: .24s; }
.live-voice-wave i:nth-child(4) { height: 70%; animation-delay: .36s; }
.live-voice-wave i:nth-child(5) { height: 95%; animation-delay: .48s; }
.live-voice-wave i:nth-child(6) { height: 55%; animation-delay: .6s; }
.live-voice-wave i:nth-child(7) { height: 35%; animation-delay: .72s; }
@keyframes liveWave {
  0%, 100% { transform: scaleY(.4); }
  50% { transform: scaleY(1); }
}
/* 语音连麦小窗：头像卡 */
.live-tile.voice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }
.live-tile.voice audio { display: none; }
.live-tile-avatar .avatar { width: 40px; height: 40px; border-radius: 50%; }
.live-voice-wave.mini { height: 16px; gap: 3px; }
.live-voice-wave.mini i { width: 3px; }

/* ---------- 用户小店 ---------- */
.ushop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 4px 2px; }
.ushop-card { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; padding: 0; transition: .2s; }
.ushop-card:hover { border-color: var(--line-2); transform: translateY(-1px); }
.ushop-cover { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: var(--panel-2, #14161c); }
.ushop-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ushop-cover-hex { font-size: 26px; color: rgba(255,255,255,.75); }
.ushop-title { font-size: 12.5px; font-weight: 500; padding: 9px 11px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ushop-meta { display: flex; align-items: baseline; justify-content: space-between; padding: 5px 11px 11px; }
.ushop-price { font-size: 13px; color: var(--gold); }
.ushop-stock { font-size: 10px; color: var(--text-3); }

.myshop-page { padding: 0 0 24px; }
.myshop-head { display: flex; flex-direction: column; gap: 3px; padding: 22px 20px 14px; }
.myshop-switch-row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 4px 16px 12px; padding: 14px 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 15px;
}
.myshop-switch-title { font-size: 13.5px; font-weight: 600; }
.myshop-switch-sub { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.shop-switch { position: relative; width: 46px; height: 26px; border-radius: 999px; background: rgba(128,128,128,.35); transition: .2s; flex: none; }
.shop-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.shop-switch.on { background: var(--accent); }
.shop-switch.on::after { left: 23px; }
.myshop-add { display: inline-flex; align-items: center; gap: 6px; margin: 0 16px 14px; padding: 9px 18px; font-size: 12.5px; }
.myshop-add svg { width: 14px; height: 14px; }
.myshop-list-wrap { padding: 0 16px; }
.myshop-list { display: flex; flex-direction: column; gap: 10px; }
.myshop-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
}
.myshop-thumb { position: relative; width: 52px; height: 52px; border-radius: 11px; overflow: hidden; flex: none; background: var(--panel-2, #14161c); display: grid; place-items: center; }
.myshop-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.myshop-item-info { flex: 1; min-width: 0; }
.myshop-item-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.myshop-item-meta { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.myshop-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.myshop-form-row input, .modal-form input, .modal-form textarea, .modal-form select {
  background: var(--panel-2, #14161c); border: 1px solid var(--line); color: var(--text);
  border-radius: 11px; padding: 11px 12px; font-size: 13px; outline: none; width: 100%;
}
.modal-form textarea { resize: vertical; margin-bottom: 12px; font-family: inherit; }
.modal-form input { margin-bottom: 12px; }
.modal-form select { margin-bottom: 12px; }
.myshop-cover-btn { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 12px; }
.myshop-cover-prev { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; display: block; margin-bottom: 12px; }

@media (max-width: 600px) {
  .ushop-grid { gap: 10px; }
  .myshop-switch-row { margin: 4px 14px 12px; }
  .myshop-list-wrap { padding: 0 14px; }
  .live-mode-row { gap: 8px; }
}

/* ==================== 店铺页（固定 4 模块） ==================== */
.shop-page { padding: 0 0 24px; }
.shop-closed { padding: 30px 16px 40px; text-align: center; }
.shop-closed-btn { margin-top: 14px; }

/* 模块 1：店主主页卡 */
.shop-hero {
  position: relative; margin: 0 20px 18px; border-radius: 20px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
}
.shop-hero-cover { position: relative; height: 104px; overflow: hidden; }
.shop-hero-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-hero-cover-fallback::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .16), transparent 58%);
}
.shop-hero-main { position: relative; padding: 0 16px 16px; }
/* 精简名片卡：无封面图 / 头像 / 简介，仅保留管理入口与经营数据 */
.shop-hero-slim .shop-hero-main { padding: 16px; }
.shop-hero-slim .shop-hero-info { padding-top: 0; }
.shop-hero-avatar { width: 62px; height: 62px; border-radius: 50%; margin-top: -31px; border: 3px solid var(--panel); display: block; }
.shop-hero-info { padding-top: 10px; }
.shop-hero-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shop-hero-nick { font-size: 17px; font-weight: 600; }
.shop-kyc-badge {
  font-size: 10px; padding: 2px 7px; border-radius: 7px;
  background: rgba(46, 204, 113, .16); color: #2ecc71; border: 1px solid rgba(46, 204, 113, .3);
}
.shop-manage-btn {
  margin-left: auto; font-size: 11px; padding: 5px 10px; border-radius: 9px; cursor: pointer;
  background: var(--panel-2, #14161c); border: 1px solid var(--line); color: var(--text-2);
}
.shop-manage-btn:hover { border-color: var(--neon); color: var(--neon); }
.shop-hero-handle { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.shop-hero-bio { font-size: 12.5px; color: var(--text-2); margin-top: 8px; line-height: 1.55; }

.shop-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.shop-stat {
  background: var(--panel-2, #14161c); border: 1px solid var(--line); border-radius: 12px;
  padding: 9px 4px; text-align: center;
}
.shop-stat b { display: block; font-size: 15px; font-weight: 600; line-height: 1.2; }
.shop-stat span { display: block; font-size: 10px; color: var(--text-3); margin-top: 3px; }
.shop-stat-credit b { color: #f5a623; }

.shop-credit-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.shop-credit-label { font-size: 11px; color: var(--text-3); flex: none; }
.shop-credit-bar { flex: 1; height: 5px; border-radius: 3px; background: var(--panel-2, #14161c); overflow: hidden; }
.shop-credit-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #f5a623, var(--neon)); }
.shop-credit-level { font-size: 11px; color: #f5a623; flex: none; }

/* 模块通用头 */
.shop-section { margin: 0 20px 18px; }
.shop-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.shop-section-title { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; }
.shop-section-title svg { width: 16px; height: 16px; color: var(--neon); }
.shop-section-more { font-size: 11px; color: var(--text-3); }

/* 商品卡评分行 */
.ushop-rate { font-size: 11px; color: #f5a623; margin-top: 4px; }

/* 模块 3：店铺动态时间线 */
.shop-feed { display: flex; flex-direction: column; gap: 2px; }
.shop-feed-item { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.shop-feed-item:last-child { border-bottom: none; }
.shop-feed-dot {
  flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  background: var(--panel-2, #14161c); border: 1px solid var(--line);
}
.shop-feed-dot svg { width: 15px; height: 15px; }
.shop-feed-item.new .shop-feed-dot { color: var(--neon); border-color: rgba(120, 200, 255, .3); }
.shop-feed-item.ship .shop-feed-dot { color: #4aa8ff; }
.shop-feed-item.review .shop-feed-dot { color: #f5a623; border-color: rgba(245, 166, 35, .3); }
.shop-feed-body { flex: 1; min-width: 0; }
.shop-feed-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shop-feed-tag {
  font-size: 10px; padding: 1px 7px; border-radius: 6px; color: var(--text-2);
  background: var(--panel-2, #14161c); border: 1px solid var(--line);
}
.shop-feed-stars { font-size: 11px; color: #f5a623; letter-spacing: 1px; }
.shop-feed-time { font-size: 10.5px; color: var(--text-3); margin-left: auto; }
.shop-feed-title { font-size: 13px; font-weight: 500; margin-top: 5px; }
.shop-feed-text { font-size: 12px; color: var(--text-2); margin-top: 3px; line-height: 1.5; word-break: break-word; }
.shop-feed-by { font-size: 11px; color: var(--text-3); margin-top: 5px; }

/* 模块 4：售后与服务三宫格 */
.shop-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shop-svc {
  display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: pointer;
  padding: 15px 6px; border-radius: 15px; background: var(--panel); border: 1px solid var(--line);
  color: var(--text); font-family: inherit; transition: border-color .18s, transform .18s;
}
.shop-svc:hover { border-color: var(--neon); transform: translateY(-1px); }
.shop-svc.disabled { opacity: .45; cursor: not-allowed; }
.shop-svc.disabled:hover { border-color: var(--line); transform: none; }
.shop-svc-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--panel-2, #14161c); border: 1px solid var(--line); }
.shop-svc-ico svg { width: 17px; height: 17px; color: var(--neon); }
.shop-svc-label { font-size: 12.5px; font-weight: 500; }
.shop-svc-sub { font-size: 10.5px; color: var(--text-3); }

/* 店铺页售后工单条 */
.shop-ticket-box { margin-top: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 15px; padding: 12px; }
.shop-ticket-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-2); margin-bottom: 9px; }
.shop-ticket-pending { font-size: 10.5px; color: #f5a623; }
.shop-ticket-done { font-size: 10.5px; color: #2ecc71; }
.shop-ticket { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid var(--line); }
.shop-ticket-body { flex: 1; min-width: 0; }
.shop-ticket-title { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-ticket-sub { font-size: 11px; color: var(--text-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-ticket-status { font-size: 10.5px; padding: 2px 8px; border-radius: 7px; flex: none; }
.shop-ticket-status.pending { color: #f5a623; background: rgba(245, 166, 35, .13); }
.shop-ticket-status.resolved { color: #2ecc71; background: rgba(46, 204, 113, .13); }
.shop-ticket-status.rejected { color: #e74c3c; background: rgba(231, 76, 60, .13); }

/* ---------- 物品展示橱窗（纯展示 · 无交易） ---------- */
.showcase-page .shop-stat-credit { display: none; }
/* 展示状态标签：中性色，不用价格的金色，避免暗示「有价」 */
.ushop-state { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
/* 合规声明条：弱化视觉权重，但要能被读到 */
.showcase-notice {
  margin: 14px 0 4px; padding: 12px 14px;
  background: var(--panel-2, #14161c);
  border: 1px solid var(--line); border-radius: 15px;
}
.showcase-notice-title { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.showcase-notice-title svg { width: 14px; height: 14px; color: var(--neon); }
.showcase-notice-body { font-size: 11.5px; line-height: 1.65; color: var(--text-3); }
/* 橱窗页「添加展示物品」整宽主按钮（原在标题栏右侧，窄屏会压住标题） */
.myshop-add { display: flex; width: calc(100% - 32px); margin: 12px 16px 4px; justify-content: center; }
.shop-ticket-act {
  flex: none; font-size: 11px; padding: 5px 10px; border-radius: 8px; cursor: pointer;
  background: var(--panel-2, #14161c); border: 1px solid var(--line); color: var(--neon);
}
.shop-ticket-more { display: block; width: 100%; margin-top: 9px; font-size: 11.5px; color: var(--neon); background: none; border: none; cursor: pointer; padding: 4px; }

/* 售后 / 评价弹窗 */
.shop-as-form, .shop-review-form { display: block; }
.shop-as-label { font-size: 11.5px; color: var(--text-3); margin: 12px 0 6px; }
.shop-as-reply { width: 100%; resize: vertical; font-family: inherit; }
.shop-as-orderbox { display: block; }
.shop-as-order, .shop-review-prod {
  background: var(--panel-2, #14161c); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 12px; font-size: 12.5px; display: flex; flex-direction: column; gap: 4px;
}
.shop-as-order span { font-size: 11px; color: var(--text-3); }
.shop-as-empty { font-size: 12px; color: var(--text-3); padding: 12px; text-align: center; }
.shop-as-info { background: var(--panel-2, #14161c); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.shop-as-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.shop-as-row span { font-size: 11.5px; color: var(--text-3); }
.shop-as-detail { font-size: 12px; color: var(--text-2); margin-top: 8px; line-height: 1.5; }
.shop-as-by { font-size: 11px; color: var(--text-3); margin-top: 7px; }
.shop-as-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.shop-as-reject { background: transparent; border: 1px solid rgba(231, 76, 60, .45); color: #e74c3c; }
.shop-as-submit { width: 100%; margin-top: 14px; }
.shop-review-prod { margin-top: 4px; font-size: 13px; font-weight: 500; }
.shop-review-stars { display: flex; gap: 8px; }
.shop-review-star { background: none; border: none; cursor: pointer; font-size: 27px; line-height: 1; color: var(--line); padding: 0; transition: color .15s, transform .15s; }
.shop-review-star.on { color: #f5a623; }
.shop-review-star:hover { transform: scale(1.08); }

/* 订单页评价 / 售后操作 */
.tx-order { flex-wrap: wrap; }
.order-acts { display: flex; gap: 7px; width: 100%; margin-top: 9px; flex-wrap: wrap; }
.order-act {
  font-size: 11.5px; padding: 5px 11px; border-radius: 9px; cursor: pointer;
  background: var(--panel-2, #14161c); border: 1px solid var(--line); color: var(--text-2);
}
.order-act:hover { border-color: var(--neon); color: var(--neon); }
.order-act.review { color: #f5a623; border-color: rgba(245, 166, 35, .32); }
.order-review-done { font-size: 11px; color: #f5a623; margin-top: 5px; }
.order-as-tag { font-size: 11px; margin-top: 5px; display: inline-block; padding: 2px 8px; border-radius: 7px; }
.order-as-tag.pending { color: #f5a623; background: rgba(245, 166, 35, .13); }
.order-as-tag.resolved { color: #2ecc71; background: rgba(46, 204, 113, .13); }
.order-as-tag.rejected { color: #e74c3c; background: rgba(231, 76, 60, .13); }

/* 移动端紧凑块（同特异性，必须放文件末尾） */
@media (max-width: 600px) {
  .shop-hero { margin: 0 14px 15px; border-radius: 17px; }
  .shop-section { margin: 0 14px 15px; }
  .shop-hero-cover { height: 88px; }
  .shop-stats { gap: 6px; }
  .shop-stat { padding: 8px 2px; border-radius: 11px; }
  .shop-stat b { font-size: 13.5px; }
  .shop-stat span { font-size: 9.5px; }
  .shop-services { gap: 8px; }
  .shop-svc { padding: 13px 4px; border-radius: 13px; }
  .shop-svc-label { font-size: 11.5px; }
  .shop-svc-sub { font-size: 9.5px; }
  .shop-review-star { font-size: 24px; }
  .shop-feed-title { font-size: 12.5px; }
}

/* ============================ 山海乐园 ============================ */
.shan-hub { max-width: 640px; margin: 0 auto; padding: 14px 14px 30px; }
.shan-hero {
  position: relative; border-radius: 18px; padding: 26px 20px; text-align: center; overflow: hidden;
  background: linear-gradient(135deg, #1b2536, #233450 55%, #2c2440);
  border: 1px solid color-mix(in srgb, var(--line, #2a3550) 70%, transparent);
}
.shan-hero::before {
  content: '⛰️ 🌊 🐉'; position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center;
  font-size: 54px; opacity: .08; letter-spacing: 18px; pointer-events: none;
}
.shan-hero-title { font-size: 24px; font-weight: 800; background: linear-gradient(90deg, #ffd98a, #ff9d5c, #e8b96a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shan-hero-sub { margin-top: 6px; font-size: 12px; color: var(--muted, #8fa0bd); }
.shan-agrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }

.shan-games { display: grid; grid-template-columns: 1fr; gap: 10px; }
.shan-game-card {
  display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  padding: 14px; border-radius: 14px; border: 1px solid var(--line, #2a3550);
  background: var(--card, #141c2b); color: var(--fg, #e8eefb); transition: transform .15s, border-color .15s;
}
.shan-game-card:active { transform: scale(.98); border-color: #e8b96a; }
.shan-game-ico { font-size: 30px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, #e8b96a 12%, transparent); flex: none; }
.shan-game-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.shan-game-info b { font-size: 15px; }
.shan-game-info span { font-size: 12px; color: var(--muted, #8fa0bd); }
.shan-game-best { font-style: normal; font-size: 11px; color: #e8b96a; }
.shan-game-go { font-size: 22px; color: var(--muted, #8fa0bd); }

.shan-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shan-badge {
  border: 1px solid var(--line, #2a3550); border-radius: 14px; padding: 12px 8px; text-align: center;
  display: flex; flex-direction: column; gap: 3px; background: var(--card, #141c2b); filter: grayscale(1); opacity: .5;
}
.shan-badge.on { filter: none; opacity: 1; border-color: color-mix(in srgb, #e8b96a 45%, transparent); box-shadow: 0 0 18px color-mix(in srgb, #e8b96a 12%, transparent); }
.shan-badge-ico { font-size: 26px; }
.shan-badge b { font-size: 13px; }
.shan-badge span { font-size: 10.5px; color: var(--muted, #8fa0bd); }

.shan-dex { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.shan-dex-item {
  border: 1px solid var(--line, #2a3550); border-radius: 12px; padding: 10px 4px; text-align: center;
  display: flex; flex-direction: column; gap: 2px; background: var(--card, #141c2b); opacity: .45; cursor: default;
}
.shan-dex-item.on { opacity: 1; cursor: pointer; border-color: color-mix(in srgb, #e8b96a 40%, transparent); }
.shan-dex-emoji { font-size: 24px; }
.shan-dex-item b { font-size: 12px; }
.shan-dex-from { font-size: 9.5px; color: var(--muted, #8fa0bd); }

.shan-board { display: flex; flex-direction: column; gap: 6px; }
.shan-board-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  background: var(--card, #141c2b); border: 1px solid var(--line, #2a3550); font-size: 13px;
}
.shan-board-row.me { border-color: #e8b96a; }
.shan-rank { width: 30px; text-align: center; flex: none; }
.shan-board-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shan-board-row i { font-style: normal; color: #e8b96a; font-size: 12px; }
.shan-footnote { margin-top: 16px; font-size: 11px; color: var(--muted, #8fa0bd); text-align: center; }

/* ---- 游戏内 ---- */
.shan-game { max-width: 560px; margin: 0 auto; padding: 12px 12px 30px; }
.shan-game-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.shan-back { background: none; border: 1px solid var(--line, #2a3550); color: var(--muted, #8fa0bd); border-radius: 10px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.shan-game-head b { font-size: 17px; }
.shan-scorebar { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.shan-stat { background: var(--card, #141c2b); border: 1px solid var(--line, #2a3550); border-radius: 10px; padding: 6px 10px; font-size: 12px; color: var(--muted, #8fa0bd); }
.shan-stat b { color: var(--fg, #e8eefb); }
.shan-arena { min-height: 300px; }
.shan-tip { font-size: 12px; color: var(--muted, #8fa0bd); margin: 0 0 10px; }

/* 拼图 */
.shan-puzzle { display: grid; gap: 5px; max-width: 400px; margin: 0 auto; }
.shan-puzzle.g3 { grid-template-columns: repeat(3, 1fr); }
.shan-puzzle.g4 { grid-template-columns: repeat(4, 1fr); }
.shan-pz {
  position: relative; aspect-ratio: 1; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, #2a3a58, #1a2438); border: 1px solid var(--line, #2a3550);
  display: grid; place-items: center; transition: transform .12s, border-color .12s;
}
.shan-pz.sel { border-color: #e8b96a; transform: scale(.94); box-shadow: 0 0 12px color-mix(in srgb, #e8b96a 35%, transparent); }
.shan-pz.last { background: linear-gradient(135deg, #3a3050, #241c34); }
.shan-pz-emoji { font-size: clamp(20px, 8vw, 34px); filter: hue-rotate(140deg) saturate(1.6); }
.shan-pz-n { position: absolute; top: 3px; left: 5px; font-style: normal; font-size: 10px; color: #e8b96a; }
.shan-puzzle.urgent .shan-pz { border-color: color-mix(in srgb, #ff6a5c 40%, transparent); }

/* 答题 / 飞花令 */
.shan-quiz-card { display: flex; flex-direction: column; gap: 10px; }
.shan-quiz-q { font-size: 16px; line-height: 1.6; margin: 0; }
.shan-quiz-opt {
  text-align: left; padding: 13px 16px; border-radius: 12px; font-size: 14px; cursor: pointer;
  background: var(--card, #141c2b); border: 1px solid var(--line, #2a3550); color: var(--fg, #e8eefb);
  transition: border-color .15s, background .15s;
}
.shan-quiz-opt.right { border-color: #4cd98a; background: color-mix(in srgb, #4cd98a 12%, transparent); }
.shan-quiz-opt.wrong { border-color: #ff6a5c; background: color-mix(in srgb, #ff6a5c 12%, transparent); }
.shan-feihua-up { font-size: 22px; text-align: center; margin: 18px 0 4px; color: #ffd98a; letter-spacing: 2px; }

/* 消消乐 */
.shan-m3 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 420px; margin: 0 auto; }
.shan-m3-c { aspect-ratio: 1; font-size: clamp(16px, 6vw, 26px); border-radius: 9px; cursor: pointer; display: grid; place-items: center; background: var(--card, #141c2b); border: 1px solid var(--line, #2a3550); transition: transform .12s; }
.shan-m3-c.sel { border-color: #e8b96a; transform: scale(.9); }
.shan-m3-c.pop { animation: shanPop .2s ease; }
@keyframes shanPop { 0% { transform: scale(1); } 50% { transform: scale(1.25); opacity: .4; } 100% { transform: scale(.9); opacity: .2; } }

/* 寻踪 */
.shan-hunt { display: grid; gap: 5px; max-width: 420px; margin: 0 auto; }
.shan-hunt.g5 { grid-template-columns: repeat(5, 1fr); }
.shan-hunt-c { aspect-ratio: 1; border-radius: 10px; cursor: pointer; display: grid; place-items: center; font-size: clamp(16px, 6vw, 26px); background: linear-gradient(135deg, #233048, #16202f); border: 1px solid var(--line, #2a3550); transition: transform .12s; }
.shan-hunt-c:active { transform: scale(.94); }
.shan-hunt-c.open { background: var(--card, #141c2b); cursor: default; }
.shan-hunt-q { opacity: .55; font-size: .8em; }
.shan-hunt-bg { opacity: .35; }

/* 结算 */
.shan-settle { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px 0; text-align: center; }
.shan-settle-ico { font-size: 52px; }
.shan-settle h3 { margin: 0; font-size: 20px; }
.shan-settle-score { margin: 0; font-size: 15px; color: var(--muted, #8fa0bd); }
.shan-settle-pts { margin: 0; font-size: 18px; font-weight: 700; color: #e8b96a; }
.shan-pop-badge {
  background: color-mix(in srgb, #e8b96a 14%, transparent); border: 1px solid #e8b96a; color: #ffd98a;
  border-radius: 20px; padding: 7px 16px; font-size: 13px; animation: shanPopIn .4s ease;
}
@keyframes shanPopIn { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.shan-settle-btns { display: flex; gap: 10px; margin-top: 8px; }

@media (max-width: 400px) {
  .shan-dex { grid-template-columns: repeat(3, 1fr); }
  .shan-badges { grid-template-columns: repeat(2, 1fr); }
  .shan-hero-title { font-size: 20px; }
}

/* ==================== 举报 + 拉黑 ==================== */
.report-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.report-opt {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: var(--card, #141c2b); border: 1px solid var(--line, #2a3550);
  color: var(--fg, #e8eefb); font-size: 14px; cursor: pointer; text-align: left; transition: border-color .15s, background .15s;
}
.report-opt:hover { border-color: var(--neon, #5cc8ff); }
.report-opt.on { border-color: var(--neon, #5cc8ff); background: color-mix(in srgb, var(--neon, #5cc8ff) 12%, transparent); }
.report-dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--text-3, #8fa0bd); flex: 0 0 14px; }
.report-opt.on .report-dot { border-color: var(--neon, #5cc8ff); background: var(--neon, #5cc8ff); box-shadow: inset 0 0 0 3px var(--card, #141c2b); }
.report-detail {
  width: 100%; margin-top: 12px; min-height: 72px; resize: vertical; padding: 10px 12px; border-radius: 10px;
  background: var(--card, #141c2b); border: 1px solid var(--line, #2a3550); color: var(--fg, #e8eefb); font-size: 13px; box-sizing: border-box;
}
.comment-flag {
  margin-top: 5px; padding: 0; background: none; border: none; cursor: pointer;
  font-size: 11px; color: var(--text-3, #8fa0bd); opacity: .55; transition: opacity .15s, color .15s;
}
.comment-flag:hover { opacity: 1; color: var(--rose, #ff6a5c); }
.btn-sm.icon-only { padding: 6px 8px; display: inline-grid; place-items: center; }
.btn-sm.icon-only svg { width: 16px; height: 16px; }
.block-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; max-height: 320px; overflow-y: auto; }
.block-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card, #141c2b); border: 1px solid var(--line, #2a3550); }
.block-user { display: flex; align-items: center; gap: 10px; cursor: pointer; min-width: 0; flex: 1; }
.block-name { font-size: 13.5px; font-weight: 600; }
.block-handle { font-size: 11.5px; color: var(--text-3, #8fa0bd); }
.menu-item.danger span { color: var(--rose, #ff6a5c); }

/* ==================== 通知偏好 ==================== */
.pref-box { margin-top: 14px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line, #2a3550); }
.pref-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; background: var(--card, #141c2b); border-bottom: 1px solid var(--line, #2a3550); }
.pref-row:last-child { border-bottom: none; }
.pref-text { flex: 1; min-width: 0; }
.pref-label { font-size: 13.5px; font-weight: 600; }
.pref-desc { font-size: 11.5px; color: var(--text-3, #8fa0bd); margin-top: 3px; line-height: 1.4; }
.switch { position: relative; width: 44px; height: 25px; border-radius: 13px; border: none; cursor: pointer; background: var(--line, #2a3550); transition: background .2s; flex: 0 0 44px; padding: 0; }
.switch::after { content: ''; position: absolute; top: 2.5px; left: 2.5px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: var(--neon, #5cc8ff); }
.switch.on::after { transform: translateX(19px); }
.switch:disabled { opacity: .6; cursor: wait; }
.pref-sec-title { font-size: 12.5px; font-weight: 600; color: var(--text-3, #8fa0bd); margin: 16px 0 9px; }
.pref-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pref-chip { padding: 7px 14px; border-radius: 18px; font-size: 12.5px; cursor: pointer; background: var(--card, #141c2b); border: 1px solid var(--line, #2a3550); color: var(--fg, #e8eefb); transition: all .15s; }
.pref-chip.on { background: color-mix(in srgb, var(--rose, #ff6a5c) 16%, transparent); border-color: var(--rose, #ff6a5c); color: var(--rose, #ff6a5c); }
.pref-foot { font-size: 11.5px; color: var(--text-3, #8fa0bd); margin-top: 12px; line-height: 1.5; }

/* ==================== 话题广场 / 热搜榜 ==================== */
.hot-board { margin: 14px 16px 0; border-radius: 16px; padding: 14px 16px; background: linear-gradient(150deg, color-mix(in srgb, var(--rose, #ff6a5c) 10%, var(--card, #141c2b)), var(--card, #141c2b)); border: 1px solid var(--line, #2a3550); }
.hot-board-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.hot-board-title { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; }
.hot-flame { font-size: 15px; }
.hot-board-sub { font-size: 11px; color: var(--text-3, #8fa0bd); }
.hot-row { width: 100%; display: flex; align-items: center; gap: 11px; padding: 9px 2px; background: none; border: none; border-bottom: 1px dashed var(--line, #2a3550); cursor: pointer; text-align: left; color: inherit; }
.hot-row:last-child { border-bottom: none; }
.hot-rank { flex: 0 0 22px; font-size: 14px; font-weight: 700; font-style: italic; color: var(--text-3, #8fa0bd); }
.hot-rank.top1 { color: #ff6a5c; } .hot-rank.top2 { color: #ffab52; } .hot-rank.top3 { color: #e8b96a; }
.hot-name { flex: 1; font-size: 13.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-meta { font-size: 11px; color: var(--text-3, #8fa0bd); }
.topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 14px 16px; }
.topic-card { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--card, #141c2b); border: 1px solid var(--line, #2a3550); cursor: pointer; text-align: left; color: inherit; padding: 0; transition: border-color .15s, transform .12s; }
.topic-card:hover { border-color: var(--neon, #5cc8ff); transform: translateY(-2px); }
.topic-cover { position: relative; aspect-ratio: 16/10; display: grid; place-items: center; background: linear-gradient(135deg, hsl(210,40%,26%), hsl(240,40%,16%)); }
.topic-cover img { width: 100%; height: 100%; object-fit: cover; }
.topic-cover.empty .topic-cover-hash { font-size: 38px; font-weight: 800; color: rgba(255,255,255,.12); }
.topic-feat { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 10px; font-size: 10.5px; background: color-mix(in srgb, var(--gold, #e8b96a) 85%, transparent); color: #1a1206; font-weight: 700; }
.topic-info { padding: 10px 12px 12px; }
.topic-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-summary { font-size: 11.5px; color: var(--text-3, #8fa0bd); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-stats { display: flex; gap: 10px; margin-top: 7px; font-size: 11px; color: var(--text-3, #8fa0bd); }
.topic-hero { position: relative; margin: 14px 16px 0; border-radius: 16px; overflow: hidden; min-height: 132px; background-size: cover; background-position: center; background-color: var(--card, #141c2b); }
.topic-hero-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,10,20,.25), rgba(6,10,20,.82)); }
.topic-hero-inner { position: relative; padding: 20px 18px; }
.topic-hero-name { font-size: 21px; font-weight: 800; }
.topic-hero-summary { font-size: 12.5px; color: rgba(255,255,255,.72); margin-top: 6px; }
.topic-hero-stats { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.8); }
.topic-follow-wrap { padding: 12px 16px 0; }
.topic-follow-btn { width: 100%; }
.chip-filter-row { display: flex; gap: 8px; padding: 12px 16px 0; flex-wrap: wrap; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.topic-chips.following { padding: 12px 16px 0; }
.topic-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 14px; font-size: 12.5px; background: color-mix(in srgb, var(--neon, #5cc8ff) 14%, transparent); border: 1px solid color-mix(in srgb, var(--neon, #5cc8ff) 42%, transparent); color: var(--neon, #5cc8ff); }
.topic-chip-x { cursor: pointer; opacity: .7; font-size: 11px; }
.topic-chip-x:hover { opacity: 1; }
.topic-chip-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 16px; font-size: 12.5px; background: var(--card, #141c2b); border: 1px solid var(--line, #2a3550); color: inherit; cursor: pointer; }
.topic-chip-btn:hover { border-color: var(--neon, #5cc8ff); }
.topic-chip-n { font-size: 10.5px; color: var(--text-3, #8fa0bd); }
.topic-suggest { margin-top: 8px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line, #2a3550); }
.topic-suggest-item { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; background: var(--card, #141c2b); border: none; border-bottom: 1px solid var(--line, #2a3550); cursor: pointer; color: inherit; font-size: 13px; text-align: left; }
.topic-suggest-item:last-child { border-bottom: none; }
.topic-suggest-n { font-size: 11px; color: var(--text-3, #8fa0bd); }

/* ==================== 草稿箱 ==================== */
.draft-bar { display: flex; gap: 9px; margin-top: 10px; }
.draft-bar .btn-sm { flex: 1; }
.draft-list { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; }
.draft-card { border-radius: 14px; padding: 13px 15px; background: var(--card, #141c2b); border: 1px solid var(--line, #2a3550); }
.draft-head { display: flex; align-items: center; justify-content: space-between; }
.draft-badge { font-size: 11px; padding: 2px 9px; border-radius: 10px; background: var(--line, #2a3550); color: var(--text-3, #8fa0bd); }
.draft-badge.sched { background: color-mix(in srgb, var(--neon, #5cc8ff) 16%, transparent); color: var(--neon, #5cc8ff); }
.draft-time { font-size: 11px; color: var(--text-3, #8fa0bd); }
.draft-title { font-size: 14.5px; font-weight: 600; margin-top: 8px; }
.draft-body { font-size: 12.5px; color: var(--text-2, #c3cddf); margin-top: 5px; line-height: 1.5; }
.draft-thumb { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; margin-top: 9px; }
.draft-thumb.video { display: grid; place-items: center; background: var(--line, #2a3550); font-size: 12px; width: 84px; height: 84px; }
.draft-sched { font-size: 11.5px; color: var(--neon, #5cc8ff); margin-top: 8px; }
.draft-actions { display: flex; gap: 8px; margin-top: 11px; flex-wrap: wrap; }
.dt-input { width: 100%; padding: 10px 12px; border-radius: 10px; background: var(--card, #141c2b); border: 1px solid var(--line, #2a3550); color: var(--fg, #e8eefb); font-size: 13.5px; box-sizing: border-box; }
.quick-row { display: flex; gap: 8px; margin-top: 9px; flex-wrap: wrap; }

/* ==================== 等级体系 ==================== */
.lvl-badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 9px; font-size: 10.5px; font-weight: 700; vertical-align: middle; }
.lvl-badge i { font-style: normal; }
.lvl-badge.lvl-low { background: rgba(143,160,189,.18); color: #9fb0c9; }
.lvl-badge.lvl-mid { background: rgba(92,200,255,.16); color: #5cc8ff; }
.lvl-badge.lvl-high { background: rgba(232,185,106,.18); color: #e8b96a; }
.lvl-badge.lvl-top { background: linear-gradient(120deg, rgba(255,106,92,.25), rgba(232,185,106,.25)); color: #ffb27a; }
.lvl-page { padding: 0 0 30px; }
.lvl-body { display: flex; flex-direction: column; gap: 12px; padding: 12px 16px 0; }

/* ---- UBB 风格标签 ---- */
.ub-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .2px; color: var(--neon, #5cc8ff); background: color-mix(in srgb, var(--neon, #5cc8ff) 12%, transparent); border: 1px solid color-mix(in srgb, var(--neon, #5cc8ff) 34%, transparent); border-radius: 6px; padding: 1px 7px; flex: 0 0 auto; }

/* ---- 统一区块容器 ---- */
.ub-box { border-radius: 16px; padding: 16px; background: var(--card, #141c2b); border: 1px solid var(--line, #2a3550); }
.ub-box-head { display: flex; align-items: center; gap: 9px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line, #2a3550); }
.ub-box-title { font-size: 13px; font-weight: 600; color: var(--text-2, #b6c4dc); }

/* ---- 等级卡 ---- */
.lvl-card { border-radius: 18px; padding: 18px; background: linear-gradient(140deg, color-mix(in srgb, var(--neon, #5cc8ff) 16%, var(--card, #141c2b)), var(--card, #141c2b)); border: 1px solid var(--line, #2a3550); }
.lvl-top { display: flex; align-items: center; gap: 14px; }
.lvl-big { font-size: 30px; font-weight: 900; font-style: italic; line-height: 1; background: linear-gradient(120deg, #5cc8ff, #e8b96a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lvl-name-box { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lvl-name { font-size: 17px; font-weight: 700; }
.lvl-exp-text { font-size: 12px; color: var(--text-3, #8fa0bd); }
.lvl-top .ub-tag { margin-left: auto; }
.lvl-progress { margin-top: 16px; }
.lvl-progress-bar { height: 9px; border-radius: 5px; background: var(--line, #2a3550); overflow: hidden; }
.lvl-progress-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #5cc8ff, #e8b96a); transition: width .4s; }
.lvl-progress-text { font-size: 11.5px; color: var(--text-3, #8fa0bd); margin-top: 7px; }

/* ---- 经验来源 ---- */
.lvl-src-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.lvl-src { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; background: color-mix(in srgb, var(--neon, #5cc8ff) 6%, var(--card, #141c2b)); border: 1px solid var(--line, #2a3550); }
.lvl-src b { font-size: 15px; color: var(--neon, #5cc8ff); }
.lvl-src span { font-size: 11px; color: var(--text-3, #8fa0bd); }

/* ---- 等级榜 ---- */
.lvl-board { display: flex; flex-direction: column; }
.lvl-board-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; background: none; border: none; border-bottom: 1px solid var(--line, #2a3550); cursor: pointer; color: inherit; text-align: left; width: 100%; }
.lvl-board-row:last-child { border-bottom: none; }
.lvl-board-rank { flex: 0 0 20px; font-size: 13px; font-weight: 700; font-style: italic; color: var(--text-3, #8fa0bd); }
.lvl-board-rank.top { color: #e8b96a; }
.lvl-board-name { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lvl-board-handle { font-size: 11px; color: var(--text-3, #8fa0bd); }
.lvl-board-lv { font-size: 12px; font-weight: 700; color: #5cc8ff; }

/* ---- 经验明细 ---- */
.lvl-logs { display: flex; flex-direction: column; }
.lvl-log-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line, #2a3550); }
.lvl-log-row:last-child { border-bottom: none; }
.lvl-log-main { flex: 1; min-width: 0; }
.lvl-log-src { font-size: 13px; }
.lvl-log-note { font-size: 11px; color: var(--text-3, #8fa0bd); margin-top: 2px; }
.lvl-log-amt { font-size: 13px; font-weight: 700; color: #4cd98a; }
.lvl-log-time { font-size: 11px; color: var(--text-3, #8fa0bd); flex: 0 0 auto; }

/* ==================== 个人主页等级进度条 ==================== */
.pf-level-bar { margin-top: 10px; max-width: 340px; }
.pf-level-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-3); margin-bottom: 5px; }
.pf-level-track { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.pf-level-track > i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--neon), var(--gold, #e8b96a)); transition: width .5s ease; }
.comment-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ==================== 店主经营数据看板 ==================== */
.myshop-dash-entry { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 15px; margin-bottom: 14px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(120deg, rgba(92,200,255,.08), rgba(232,185,106,.06)); cursor: pointer; text-align: left; color: var(--text); }
.myshop-dash-entry:hover { border-color: var(--neon); }
.myshop-dash-entry .mde-text { flex: 1; }
.myshop-dash-entry .mde-title { font-size: 13.5px; font-weight: 600; }
.myshop-dash-entry .mde-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }

.shopdash-page { padding-bottom: 40px; }
.sd-range { display: flex; gap: 8px; margin-bottom: 14px; }
.sd-range-btn { padding: 5px 14px; border-radius: 16px; font-size: 12px; border: 1px solid var(--line); background: transparent; color: var(--text-2); cursor: pointer; }
.sd-range-btn.on { background: var(--neon); border-color: var(--neon); color: #04121c; font-weight: 600; }

.sd-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.sd-kpi { padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.sd-kpi.up { border-color: rgba(255,106,92,.45); }
.sd-kpi.down { border-color: rgba(106,220,150,.45); }
.sd-kpi-label { font-size: 11px; color: var(--text-3); }
.sd-kpi-value { font-size: 19px; font-weight: 700; margin: 5px 0 3px; letter-spacing: .3px; }
.sd-kpi-sub { font-size: 10.5px; color: var(--text-3); }

.sd-todo { border-radius: 12px; border: 1px solid rgba(232,185,106,.35); background: rgba(232,185,106,.07); overflow: hidden; margin-bottom: 14px; }
.sd-todo-row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; font-size: 12.5px; border-bottom: 1px solid rgba(232,185,106,.14); }
.sd-todo-row:last-child { border-bottom: 0; }
.sd-todo-row:hover { background: rgba(232,185,106,.08); }
.sd-todo-ico { font-size: 14px; }
.sd-todo-text { flex: 1; }

.sd-card { border-radius: 12px; border: 1px solid var(--line); background: var(--card); padding: 14px; margin-bottom: 14px; }
.sd-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sd-card-title { font-size: 13px; font-weight: 600; }
.sd-card-hint { font-size: 10.5px; color: var(--text-3); }
.sd-note { font-size: 11px; color: var(--text-3); margin-top: 10px; }

/* SVG 折线图 */
.rv-chart { width: 100%; height: 200px; display: block; overflow: visible; }
.rv-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.rv-axis { fill: var(--text-3); font-size: 10px; }
.rv-line { fill: none; stroke: var(--neon); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.rv-area { fill: rgba(92,200,255,.14); stroke: none; }
.rv-dot { fill: var(--neon); stroke: var(--card); stroke-width: 1.5; cursor: pointer; }
.rv-dot:hover { r: 5; }

/* 商品排行 */
.sd-top-list { display: flex; flex-direction: column; gap: 2px; }
.sd-top-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.sd-top-row:last-child { border-bottom: 0; }
.sd-top-rank { width: 20px; text-align: center; font-size: 12px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }
.sd-top-rank.rk-1 { color: #e8b96a; }
.sd-top-rank.rk-2 { color: #b9c6d8; }
.sd-top-rank.rk-3 { color: #cf9469; }
.sd-top-thumb { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; flex: 0 0 auto; background: var(--line); }
.sd-top-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sd-top-info { flex: 1; min-width: 0; }
.sd-top-title { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-top-meta { font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
.sd-top-gmv { display: flex; align-items: baseline; gap: 3px; font-size: 11px; color: var(--neon); flex: 0 0 auto; }
.sd-top-gmv b { font-size: 13.5px; }

/* 评价分布 */
.sd-dist { display: flex; flex-direction: column; gap: 9px; }
.sd-dist-row { display: flex; align-items: center; gap: 10px; }
.sd-stars { display: flex; gap: 1px; font-size: 11px; color: var(--line); flex: 0 0 auto; }
.sd-stars .on { color: #e8b96a; }
.sd-dist-track { flex: 1; height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; }
.sd-dist-track > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #e8b96a, var(--neon)); }
.sd-dist-num { font-size: 10.5px; color: var(--text-3); flex: 0 0 62px; text-align: right; }

/* 售后小卡 */
.sd-mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.sd-mini { padding: 11px 12px; border-radius: 10px; background: rgba(255,255,255,.025); border: 1px solid var(--line); text-align: center; }
.sd-mini.warn { border-color: rgba(232,185,106,.45); background: rgba(232,185,106,.08); }
.sd-mini-value { font-size: 18px; font-weight: 700; }
.sd-mini-label { font-size: 10.5px; color: var(--text-3); margin-top: 3px; }

/* 优质客户 */
.sd-cust-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.sd-cust-row:last-child { border-bottom: 0; }
.sd-cust-row:hover { background: rgba(255,255,255,.02); }
.sd-cust-info { flex: 1; min-width: 0; }
.sd-cust-name { font-size: 12.5px; font-weight: 500; }
.sd-cust-meta { font-size: 10.5px; color: var(--text-3); margin-top: 2px; }

/* ==================== 骨架屏 Skeleton ==================== */
.sk-wrap { display: flex; flex-direction: column; gap: 12px; padding: 14px 0; }
.sk-line, .sk-block { display: block; border-radius: 6px; background: linear-gradient(90deg, var(--line) 25%, rgba(255,255,255,.055) 37%, var(--line) 63%); background-size: 400% 100%; animation: skShimmer 1.4s ease-in-out infinite; }
.sk-line { height: 11px; }
.sk-line.sk-thin { height: 8px; opacity: .7; }
.sk-line.sk-h1 { height: 18px; }
.sk-line.sk-pill { height: 26px; border-radius: 13px; }
.sk-block { height: 14px; }
.sk-block.sk-round { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.sk-block.sk-media { width: 100%; border-radius: 14px; }
.sk-block.sk-cover { width: 100%; height: 132px; border-radius: 0; }
.sk-row { display: flex; align-items: center; gap: 10px; }
.sk-row.sk-gap { gap: 12px; }
.sk-col { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sk-col.sk-center { align-items: center; }
.sk-overlap { margin-top: -34px; padding: 0 16px; }
.sk-card { border: 1px solid var(--line); border-radius: 16px; padding: 15px; background: var(--panel); display: flex; flex-direction: column; gap: 10px; }
.sk-detail { gap: 13px; }
.sk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 4px 0 8px; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.sk-cell { border: 1px solid var(--line); border-radius: 13px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: var(--panel); }
.sk-lrow { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.sk-trow { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
@keyframes skShimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { .sk-line, .sk-block { animation: none; } }

/* ==================== 图片预览 Lightbox ==================== */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(4,5,8,.94); opacity: 0; transition: opacity .2s ease; display: grid; place-items: center; }
.lightbox.in { opacity: 1; }
.lightbox.out { opacity: 0; }
.lb-box { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.lb-stage { display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; touch-action: none; }
.lb-stage.dragging { cursor: grabbing; }
.lb-img { max-width: 94vw; max-height: 82vh; border-radius: 10px; transition: transform .12s ease-out; will-change: transform; user-select: none; }
/* v2.87.0 加载态：图片未就绪时中央转圈（避免「只有水印的黑屏」观感） */
.lb-stage.loading::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px;
  margin: -17px 0 0 -17px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.16); border-top-color: rgba(140, 200, 255, .85);
  animation: lb-spin .8s linear infinite; z-index: 4; pointer-events: none;
}
@keyframes lb-spin { to { transform: rotate(360deg); } }
/* v2.87.0 加载失败兜底卡：图片 onerror 时替代黑屏，可一键重试 */
.lb-fallback {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  max-width: 78vw; padding: 22px 26px; border-radius: 14px; text-align: center;
  background: rgba(18, 22, 30, .82); border: 1px solid rgba(111, 184, 245, .28);
  z-index: 4;
}
.lb-fallback.hidden { display: none; }
.lb-fb-ico { font-size: 30px; }
.lb-fallback p { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--text-2); }
.lb-btn { position: absolute; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); background: rgba(20,22,28,.72); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px); }
.lb-btn svg { width: 19px; height: 19px; }
.lb-btn:hover { background: rgba(40,44,54,.9); }
.lb-close { top: max(18px, env(safe-area-inset-top)); right: 18px; }
.lb-prev { left: 14px; top: 50%; margin-top: -21px; }
.lb-next { right: 14px; top: 50%; margin-top: -21px; }
.lb-counter { position: absolute; top: max(24px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); font-size: 12px; color: rgba(255,255,255,.72); padding: 4px 12px; border-radius: 20px; background: rgba(20,22,28,.66); backdrop-filter: blur(8px); }
.lb-cap { position: absolute; bottom: max(22px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); max-width: 86vw; text-align: center; font-size: 12px; color: rgba(255,255,255,.8); padding: 6px 14px; border-radius: 10px; background: rgba(20,22,28,.62); backdrop-filter: blur(8px); }
.lb-cap:empty { display: none; }
@media (max-width: 520px) { .lb-prev, .lb-next { display: none; } }

/* 可点开放的图片光标提示 */
.post-media img, .pd-media img, .comment-media img, .chat-body img { cursor: zoom-in; }

/* ==================== 下拉刷新 ==================== */
.pull-ind { display: flex; align-items: center; justify-content: center; overflow: hidden; transition: height .22s cubic-bezier(.3,.8,.4,1); color: var(--text-3); font-size: 11.5px; letter-spacing: .06em; }
.pull-ico { display: inline-flex; align-items: center; gap: 6px; }
.pull-ind.spin .pull-ico::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 1.6px solid var(--line); border-top-color: var(--neon); animation: pullSpin .7s linear infinite; }
@keyframes pullSpin { to { transform: rotate(360deg); } }

/* ==================== 空状态插画 ==================== */
.empty.empty-art { padding: 58px 24px 64px; }
.empty-illus { position: relative; width: 100px; height: 100px; margin: 0 auto 14px; display: grid; place-items: center; }
.empty-ring { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--neon); animation: emptySpin 26s linear infinite; }
.empty-ico { display: grid; place-items: center; color: var(--text-3); opacity: .62; }
.empty-ico svg { width: 34px; height: 34px; }
.empty-text { font-size: 12.5px; color: var(--text-3); letter-spacing: .06em; line-height: 1.7; }
.empty-act { margin-top: 18px; }
@keyframes emptySpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .empty-ring { animation: none; } }

/* ==================== 命令面板 + 快捷键帮助 ==================== */
.cmdk { display: flex; flex-direction: column; gap: 12px; }
.cmdk-input { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.32); color: var(--text); font-size: 14px; outline: none; }
.cmdk-input:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.cmdk-list { display: flex; flex-direction: column; gap: 4px; max-height: 46vh; overflow: auto; }
.cmdk-item { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 11px; border: 1px solid transparent; background: transparent; color: var(--text); cursor: pointer; text-align: left; font-size: 13.5px; }
.cmdk-item.on { background: var(--accent-soft); border-color: var(--accent-line); }
.cmdk-ico { display: grid; place-items: center; width: 20px; height: 20px; color: var(--text-3); flex: none; }
.cmdk-item.on .cmdk-ico { color: var(--neon); }
.cmdk-ico svg { width: 17px; height: 17px; }
.cmdk-text { flex: 1; }
.cmdk-enter { font-size: 11px; color: var(--text-3); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); }
.cmdk-empty { padding: 22px; text-align: center; color: var(--text-3); font-size: 12.5px; }
.hotkey-list { display: flex; flex-direction: column; gap: 2px; }
.hotkey-row { display: flex; align-items: center; gap: 14px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.hotkey-row:last-child { border-bottom: 0; }
.hotkey-key { flex: 0 0 118px; font-size: 11px; font-weight: 600; color: var(--neon); background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 7px; padding: 5px 9px; text-align: center; }
.hotkey-desc { font-size: 12.5px; color: var(--text-2); }

/* ==================== 每日任务中心 ==================== */
.task-page { padding-bottom: 20px; }
.task-hero { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 16px; margin: 0 16px 14px; background: linear-gradient(135deg, rgba(213,183,124,.14), rgba(213,183,124,.04)); border: 1px solid var(--line); }
.task-pts { text-align: center; flex: 0 0 auto; }
.task-pts-num { font-size: 30px; font-weight: 700; color: var(--neon); line-height: 1.1; }
.task-pts-label { font-size: 10.5px; color: var(--text-3); margin-top: 4px; letter-spacing: .08em; }
.task-prog { flex: 1; min-width: 0; }
.task-prog-head { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); margin-bottom: 8px; }
.task-prog-track { height: 8px; border-radius: 5px; background: rgba(0,0,0,.35); overflow: hidden; }
.task-prog-track > i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--accent-line), var(--neon)); transition: width .4s cubic-bezier(.3,.8,.4,1); }
.task-claim-all { display: block; width: calc(100% - 32px); margin: 0 16px 14px; }
.task-list { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.task-item { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.task-item.done { border-color: rgba(213,183,124,.34); }
.task-item.claimed { opacity: .62; }
.task-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.05); color: var(--neon); }
.task-ico svg { width: 19px; height: 19px; }
.task-info { flex: 1; min-width: 0; }
.task-name { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.task-reward { font-size: 11px; color: var(--neon); background: rgba(213,183,124,.12); border-radius: 6px; padding: 1px 7px; }
.task-progress { display: flex; align-items: center; gap: 9px; margin-top: 8px; }
.task-track { flex: 1; height: 6px; border-radius: 4px; background: rgba(0,0,0,.35); overflow: hidden; }
.task-track > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent-line), var(--neon)); transition: width .35s ease; }
.task-count { font-size: 10.5px; color: var(--text-3); flex: 0 0 auto; }
.task-claim { flex: 0 0 auto; }
.task-goto { flex: 0 0 auto; }
.task-done-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-3); flex: 0 0 auto; }
.task-done-tag svg { width: 13px; height: 13px; }
.task-tip { padding: 18px 20px; font-size: 11px; color: var(--text-3); line-height: 1.8; text-align: center; }

/* ==================== 积分商城 ==================== */
.mall-page { padding-bottom: 20px; }
.mall-balance { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-radius: 14px; margin: 0 16px 12px; background: linear-gradient(135deg, rgba(213,183,124,.16), rgba(213,183,124,.03)); border: 1px solid var(--line); }
.mall-bal-left { flex: 1; display: flex; align-items: baseline; gap: 9px; }
.mall-bal-label { font-size: 11.5px; color: var(--text-3); }
.mall-bal-num { font-size: 25px; font-weight: 700; color: var(--neon); }
.mall-credit-tip { margin: 0 16px 12px; padding: 10px 14px; border-radius: 11px; font-size: 11.5px; color: var(--neon); background: rgba(213,183,124,.09); border: 1px solid rgba(213,183,124,.22); }
.mall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; padding: 0 16px; }
.mall-card { display: flex; flex-direction: column; gap: 9px; padding: 15px; border-radius: 15px; border: 1px solid var(--line); background: var(--panel); }
.mall-card.sold-out { opacity: .58; }
.mall-card-head { display: flex; align-items: center; justify-content: space-between; }
.mall-card-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.05); color: var(--neon); }
.mall-card-ico svg { width: 17px; height: 17px; }
.mall-card-ico.kind-promote { color: #e8a05a; }
.mall-card-ico.kind-badge { color: #7cc6e8; }
.mall-kind-tag { font-size: 10px; color: var(--text-3); letter-spacing: .06em; }
.mall-card-title { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.mall-card-sub { font-size: 11px; color: var(--text-3); line-height: 1.6; }
.mall-card-cost { display: flex; align-items: baseline; gap: 4px; color: var(--neon); }
.mall-card-cost b { font-size: 20px; font-weight: 700; }
.mall-card-cost span { font-size: 10.5px; color: var(--text-3); }
.mall-card-meta { font-size: 10.5px; color: var(--text-3); }
.mall-card-meta .warn { color: #de6b78; }
.mall-btn { width: 100%; margin-top: 2px; }
.redeem-list { display: flex; flex-direction: column; gap: 2px; max-height: 52vh; overflow: auto; }
.redeem-row { display: flex; align-items: center; gap: 11px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.redeem-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.05); color: var(--neon); flex: none; }
.redeem-ico svg { width: 15px; height: 15px; }
.redeem-body { flex: 1; min-width: 0; }
.redeem-title { font-size: 12.5px; font-weight: 500; }
.redeem-time { font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
.redeem-cost { font-size: 12px; color: var(--text-3); flex: none; }

/* ==================== 领券中心 ==================== */
.coupon-page { padding-bottom: 20px; }
.coupon-list { display: flex; flex-direction: column; gap: 11px; padding: 0 16px; }
.coupon-card { display: flex; align-items: center; gap: 13px; padding: 14px; border-radius: 15px; border: 1px solid var(--line); background: var(--panel); position: relative; overflow: hidden; }
.coupon-card::before { content: ''; position: absolute; left: 96px; top: 0; bottom: 0; width: 1px; border-left: 1px dashed var(--line); }
.coupon-card.claimed { opacity: .58; }
.coupon-left { flex: 0 0 82px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--neon); }
.coupon-left b { font-size: 24px; font-weight: 700; line-height: 1.1; }
.coupon-left span { font-size: 10.5px; color: var(--text-3); }
.coupon-mid { flex: 1; min-width: 0; padding-left: 6px; }
.coupon-title { font-size: 13px; font-weight: 600; }
.coupon-cond { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.coupon-meta { font-size: 10.5px; color: var(--text-3); margin-top: 4px; }
.coupon-btn { flex: 0 0 auto; padding: 7px 15px; border-radius: 17px; font-size: 11.5px; cursor: pointer; border: 1px solid var(--accent-line); background: rgba(213,183,124,.12); color: var(--neon); }
.coupon-btn:disabled { border-color: var(--line); background: transparent; color: var(--text-3); cursor: default; }
.coupon-bag { display: flex; flex-direction: column; gap: 9px; max-height: 52vh; overflow: auto; }
.coupon-mini { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.coupon-mini-amt { flex: 0 0 48px; text-align: center; color: var(--neon); }
.coupon-mini-amt b { font-size: 17px; font-weight: 700; }
.coupon-mini-info { flex: 1; min-width: 0; }
.coupon-mini-title { font-size: 12.5px; font-weight: 500; }
.coupon-mini-cond { font-size: 10.5px; color: var(--text-3); margin-top: 3px; }

/* ==================== 购物车 ==================== */
.cart-page { padding-bottom: 20px; }
.cart-list { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.cart-row { display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.cart-ck { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; display: grid; place-items: center; flex: none; cursor: pointer; color: transparent; padding: 0; }
.cart-ck.on { background: var(--accent-line); border-color: var(--accent-line); color: var(--accent-ink); }
.cart-ck svg { width: 12px; height: 12px; }
.cart-thumb { width: 56px; height: 56px; border-radius: 11px; overflow: hidden; flex: none; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { flex: 1; min-width: 0; }
.cart-title { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-spec { font-size: 10.5px; color: var(--text-3); margin-top: 3px; }
.cart-price { font-size: 12.5px; color: var(--neon); margin-top: 4px; font-weight: 600; }
.cart-qty { display: flex; align-items: center; gap: 2px; flex: none; }
.cart-qty button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; font-size: 14px; }
.cart-qty span { min-width: 24px; text-align: center; font-size: 12.5px; }
.cart-rm { width: 26px; height: 26px; border-radius: 8px; border: 0; background: transparent; color: var(--text-3); cursor: pointer; flex: none; }
.cart-rm svg { width: 14px; height: 14px; }
.cart-foot { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-top: 14px; border-top: 1px solid var(--line); position: sticky; bottom: 74px; background: var(--bg); }
.cart-total { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cart-total span { font-size: 11px; color: var(--text-3); }
.cart-total b { font-size: 18px; color: var(--neon); }
.cart-pay { flex: 0 0 auto; min-width: 130px; }
.cart-clear { display: block; margin: 14px auto 0; }
.buy-spec { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 11px; background: rgba(255,255,255,.04); border: 1px solid var(--line); margin-bottom: 13px; font-size: 12.5px; }
.buy-spec-label { color: var(--text-3); font-size: 11.5px; }
.buy-spec-val { color: var(--neon); font-weight: 500; }

/* ==================== 提到我的 ==================== */
.mention-page { padding-bottom: 20px; }
.mention-list { display: flex; flex-direction: column; gap: 2px; padding: 0 16px; }
.mention-row { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 13px; cursor: pointer; }
.mention-row:hover { background: rgba(255,255,255,.025); }
.mention-row.unread { background: rgba(213,183,124,.06); }
.mention-info { flex: 1; min-width: 0; }
.mention-who { font-size: 12.5px; }
.mention-who b { font-weight: 600; }
.mention-who span { color: var(--text-3); }
.mention-excerpt { font-size: 11.5px; color: var(--text-2); margin-top: 5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mention-time { font-size: 10.5px; color: var(--text-3); margin-top: 5px; }

/* ==================== 分享海报 ==================== */
.poster-canvas { width: 100%; height: auto; border-radius: 14px; display: block; }
.poster-holder { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0b0d12; }
.poster-actions { display: flex; gap: 9px; margin-top: 14px; }
.poster-actions .btn { padding: 12px; }

/* ==================== 商品规格 SKU ==================== */
.sku-modal { display: flex; flex-direction: column; gap: 12px; }
.sku-price-box { display: flex; align-items: baseline; gap: 6px; }
.sku-price-label { font-size: 11.5px; color: var(--text-3); }
.sku-price-num { font-size: 26px; font-weight: 700; color: var(--neon); }
.sku-price-unit { font-size: 12px; color: var(--text-3); }
.sku-groups { display: flex; flex-direction: column; gap: 14px; }
.sku-group-name { font-size: 11.5px; color: var(--text-3); margin-bottom: 8px; letter-spacing: .06em; }
.sku-vals { display: flex; flex-wrap: wrap; gap: 8px; }
.sku-val { padding: 8px 15px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 12.5px; cursor: pointer; transition: all .15s; }
.sku-val:hover { border-color: var(--accent-line); }
.sku-val.on { background: rgba(213,183,124,.15); border-color: var(--accent-line); color: var(--neon); font-weight: 600; }
.sku-val.off { opacity: .34; text-decoration: line-through; cursor: not-allowed; }
.sku-stock { font-size: 11.5px; color: var(--text-3); }
.sku-stock.warn { color: #de6b78; }
.sku-edit-list { display: flex; flex-direction: column; gap: 8px; max-height: 42vh; overflow: auto; }
.sku-edit-row { display: flex; gap: 6px; }
.sku-in { flex: 1; min-width: 0; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line); background: rgba(0,0,0,.3); color: var(--text); font-size: 12px; outline: none; }
.sku-in:focus { border-color: var(--accent-line); }
.sku-in-num { flex: 0 0 64px; }
.sku-del { flex: 0 0 32px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--text-3); cursor: pointer; }
.sku-del svg { width: 14px; height: 14px; }
.sku-add { width: 100%; }

/* ==================== 物流时间轴 ==================== */
.logi-box { max-height: 54vh; overflow: auto; }
.logi-timeline { display: flex; flex-direction: column; }
.logi-node { display: flex; gap: 13px; }
.logi-rail { display: flex; flex-direction: column; align-items: center; flex: none; }
.logi-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); background: var(--panel); color: var(--text-3); flex: none; }
.logi-dot svg { width: 13px; height: 13px; }
.logi-node.latest .logi-dot { border-color: var(--accent-line); background: rgba(213,183,124,.15); color: var(--neon); }
.logi-line { flex: 1; width: 1.5px; background: var(--line); min-height: 26px; }
.logi-body { flex: 1; min-width: 0; padding-bottom: 18px; }
.logi-title { font-size: 12.5px; font-weight: 500; }
.logi-node.latest .logi-title { color: var(--neon); font-weight: 600; }
.logi-desc { font-size: 11.5px; color: var(--text-2); margin-top: 5px; line-height: 1.6; }
.logi-time { font-size: 10.5px; color: var(--text-3); margin-top: 5px; }
.logi-add { width: 100%; margin-top: 8px; }
.logi-picks { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.logi-pick { padding: 7px 13px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--text-2); font-size: 11.5px; cursor: pointer; }
.logi-pick.on { background: rgba(213,183,124,.14); border-color: var(--accent-line); color: var(--neon); }
.logi-ta { width: 100%; padding: 12px; border-radius: 11px; border: 1px solid var(--line); background: rgba(0,0,0,.3); color: var(--text); font-size: 12.5px; resize: vertical; outline: none; font-family: inherit; }
.logi-ta:focus { border-color: var(--accent-line); }

/* ==================== 通知分类条 ==================== */
.notif-cats { display: flex; gap: 4px; padding: 0 16px 10px; }
.ncat { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 6px; border-radius: 11px; border: 1px solid transparent; background: rgba(255,255,255,.03); color: var(--text-3); font-size: 12.5px; cursor: pointer; }
.ncat.on { background: rgba(213,183,124,.13); border-color: var(--accent-line); color: var(--neon); font-weight: 600; }
.ncat-badge { min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: #de6b78; color: #fff; font-size: 10px; font-weight: 600; display: grid; place-items: center; line-height: 1; }

/* ==================== 搜索历史 + 热搜榜 ==================== */
.search-group-title.has-act { display: flex; align-items: center; justify-content: space-between; }
.sgh-act { font-size: 11px; color: var(--text-3); background: transparent; border: 0; cursor: pointer; padding: 0; }
.sgh-act:hover { color: var(--neon); }
.hist-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 16px; }
.hist-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 17px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text-2); font-size: 12px; cursor: pointer; }
.hist-chip:hover { border-color: var(--accent-line); color: var(--neon); }
.hist-n { font-size: 9.5px; color: var(--text-3); background: rgba(255,255,255,.06); border-radius: 7px; padding: 1px 5px; }
.hist-x { display: inline-flex; opacity: .5; }
.hist-x:hover { opacity: 1; color: #de6b78; }
.hist-x svg { width: 11px; height: 11px; }
.trend-list { display: flex; flex-direction: column; padding: 0 16px 16px; }
.trend-item { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-radius: 10px; border: 0; background: transparent; color: var(--text); cursor: pointer; text-align: left; }
.trend-item:hover { background: rgba(255,255,255,.03); }
.trend-rank { flex: 0 0 22px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--text-3); font-family: ui-monospace, monospace; }
.trend-rank.r1 { color: #e85a5a; }
.trend-rank.r2 { color: #e89a5a; }
.trend-rank.r3 { color: #e8c95a; }
.trend-word { flex: 1; font-size: 13px; }
.trend-hot { font-size: 9.5px; padding: 1px 6px; border-radius: 6px; background: rgba(232,90,90,.16); color: #e85a5a; }
.trend-hits { font-size: 10.5px; color: var(--text-3); }

/* ==================== 主页信息流分栏 ==================== */
.pf-feed { display: flex; flex-direction: column; }
.pf-feed-more { text-align: center; padding: 18px; font-size: 11px; color: var(--text-3); }

/* ==================== 上拉加载更多页脚 ==================== */
.feed-foot {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 18px 0 26px;
}
.feed-foot-txt { font-size: 11.5px; color: var(--text-3); letter-spacing: .5px; }
.feed-foot-txt::before {
  content: ''; display: inline-block; width: 11px; height: 11px; margin-right: 7px;
  vertical-align: -1px; border: 1.6px solid var(--line-2); border-top-color: var(--brand, #4a8cff);
  border-radius: 50%; animation: spin360 .7s linear infinite;
}
@keyframes spin360 { to { transform: rotate(360deg); } }

/* ==================== 通用小标签（chip / 脉冲点） ==================== */
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 11px;
  font-size: 10.5px; line-height: 1.6; border: 1px solid var(--line); background: var(--panel); color: var(--text-3);
  white-space: nowrap;
}
.chip-warn { background: rgba(213, 183, 124, .12); border-color: var(--accent-line); color: var(--accent); }
.chip-mint { background: rgba(127, 201, 166, .12); border-color: rgba(127, 201, 166, .3); color: var(--mint, #7FC9A6); }
.chip-dim { background: var(--panel); border-color: var(--line); color: var(--text-3); }
.dot-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block;
  animation: dotPulse 1.4s ease-in-out infinite;
}
@keyframes dotPulse { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .dot-pulse { animation: none; opacity: .8; } }

/* ==================== UBB 富文本标签 ==================== */
.ubb-b { font-weight: 700; }
.ubb-i { font-style: italic; }
.ubb-u { text-decoration: underline; text-underline-offset: 2px; }
.ubb-s { text-decoration: line-through; }
.ubb-center { display: block; text-align: center; }
.ubb-inline { display: inline; }
.ubb-plain { display: inline; }
.ubb-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.ubb-link:hover { opacity: .85; }
.ubb-img {
  display: block; max-width: min(100%, 420px); max-height: 320px; border-radius: 12px;
  margin: 8px 0; border: 1px solid var(--line); object-fit: contain;
}
.ubb-code {
  display: block; margin: 8px 0; padding: 11px 13px; border-radius: 10px;
  background: rgba(0, 0, 0, .32); border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px;
  line-height: 1.65; overflow-x: auto; white-space: pre-wrap; word-break: break-all;
}
.ubb-quote {
  display: block; margin: 8px 0; padding: 9px 13px; border-radius: 10px;
  border-left: 3px solid var(--accent-line); background: var(--panel);
  color: var(--text-2); font-size: 13px; line-height: 1.7;
}

/* ==================== 收款码 ==================== */
.receive-qr { display: flex; justify-content: center; margin: 4px 0 18px; }
.receive-canvas {
  width: 200px; height: 200px; border-radius: 14px; background: #fff; padding: 9px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .4);
}
.receive-card {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  text-align: center; padding: 16px; margin-bottom: 14px;
}
.receive-avatar { border-radius: 50%; overflow: hidden; }
.receive-name { font-size: 14px; font-weight: 600; color: var(--text-1); }
.receive-addr {
  font-size: 11.5px; word-break: break-all; color: var(--text-3); line-height: 1.75;
  font-family: var(--mono, ui-monospace, monospace);
}
.receive-ops { display: flex; gap: 10px; }

/* ==================== 邀请二维码 ==================== */
.invite-qr-entry {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 16px;
  padding: 12px 14px; border-radius: 14px; cursor: pointer; text-align: left;
  background: var(--panel); border: 1px solid var(--accent-line);
  transition: border-color .15s, background .15s, transform .12s;
}
.invite-qr-entry:hover { background: var(--accent-soft); transform: translateY(-1px); }
.invite-qr-preview {
  flex: 0 0 auto; width: 76px; height: 76px; border-radius: 10px; overflow: hidden;
  background: #fff; padding: 4px; box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.invite-qr-preview canvas { width: 100%; height: 100%; display: block; }
.invite-qr-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.invite-qr-body b { font-size: 13.5px; color: var(--text-1); }
.invite-qr-body span { font-size: 11.5px; color: var(--text-3); line-height: 1.5; }
.invite-qr-go { display: inline-flex; color: var(--accent); flex: 0 0 auto; }
.invite-qr-go svg { width: 20px; height: 20px; }

/* 弹层内的竖版分享图 */
.invite-poster-wrap .invite-canvas { max-height: 62vh; }

/* ==================== 「我的」页分组双列菜单 ==================== */
.menu-group { margin-top: 16px; }
.menu-group-title {
  padding: 0 14px 8px; font-size: 11px; font-weight: 600;
  letter-spacing: .14em; color: var(--text-3); text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.menu-group-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 0 11px; }
.menu-card {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 12px 11px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px;
  font-size: 13px; text-align: left; transition: .18s; color: var(--text-2);
}
.menu-card:hover { background: var(--panel-2); color: var(--text); border-color: var(--accent-line); transform: translateY(-1px); }
.menu-card:hover .menu-ico { color: var(--accent); }
.menu-card .menu-ico { width: 22px; }
.menu-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.menu-card-body b { font-size: 13px; font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-card-hint { font-size: 10.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-card .menu-dot { flex: 0 0 auto; }

/* ==================== 页脚备案信息 ====================
 * 出现在登录页底部、二级页面底部与「关于与帮助」页底部。
 * 监管要求备案号可点击跳转，故统一使用 <a>；字号刻意压小，不喧宾夺主。 */
.gate-foot { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.gf-line { font-size: 10.5px; color: var(--text-3); letter-spacing: .04em; line-height: 1.6; text-align: center; }
.gf-beian { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.gf-link { color: var(--text-3); text-decoration: none; transition: color .18s; }
.gf-link:hover { color: var(--accent); }
.gf-dot { color: var(--text-3); opacity: .5; }
.gf-extra { max-width: 320px; opacity: .85; }

/* ==================== 自定义二级页面 ==================== */
.page-view { padding-bottom: 12px; }
.page-article {
  margin: 4px 16px 0; padding: 22px 20px 26px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
}
.page-title {
  margin: 0 0 8px; font-size: 20px; font-weight: 600; line-height: 1.4;
  color: var(--text); letter-spacing: .01em;
}
.page-meta {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: 11px; color: var(--text-3); padding-bottom: 14px;
  border-bottom: 1px solid var(--line); margin-bottom: 16px;
}
.page-dot { color: var(--text-3); opacity: .5; }
.page-summary {
  margin: 0 0 16px; padding: 12px 14px;
  font-size: 12.5px; line-height: 1.75; color: var(--text-2);
  background: var(--panel-2); border-left: 2px solid var(--accent);
  border-radius: 0 10px 10px 0;
}
.page-content { font-size: 14px; line-height: 1.85; color: var(--text-2); }
.page-content p { margin: 0 0 14px; }
.page-content p:last-child { margin-bottom: 0; }
.page-content h1, .page-content h2, .page-content h3 { color: var(--text); font-weight: 600; margin: 22px 0 10px; line-height: 1.5; }
.page-content h1 { font-size: 17px; }
.page-content h2 { font-size: 15.5px; }
.page-content h3 { font-size: 14.5px; }
.page-content img { max-width: 100%; border-radius: 12px; display: block; margin: 12px 0; }
.page-content a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.page-content ul, .page-content ol { padding-left: 20px; margin: 0 0 14px; }
.page-content li { margin-bottom: 6px; }
.page-content blockquote {
  margin: 0 0 14px; padding: 10px 14px; color: var(--text-2);
  border-left: 2px solid var(--accent-line); background: var(--panel-2); border-radius: 0 10px 10px 0;
}
.page-content code {
  padding: 2px 6px; border-radius: 6px; font-size: 12.5px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
}
.page-empty { color: var(--text-3); font-size: 13px; }
.page-footer {
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: 10.5px; color: var(--text-3); line-height: 1.6; text-align: center;
}
.page-beian { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.page-footer a { color: var(--text-3); text-decoration: none; }
.page-footer a:hover { color: var(--accent); }

/* 页面目录 */
.page-list { margin: 4px 16px 0; display: flex; flex-direction: column; gap: 9px; }
.page-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 15px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px;
  text-align: left; transition: .18s; color: var(--text-2);
}
.page-row:hover { background: var(--panel-2); border-color: var(--accent-line); transform: translateY(-1px); }
.page-row:hover .page-row-ico { color: var(--accent); }
.page-row-ico { display: inline-flex; color: var(--text-3); flex: 0 0 auto; transition: color .18s; }
.page-row-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.page-row-title { font-size: 13.5px; font-weight: 600; color: var(--text); }
.page-row-sub { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 广场首页 · 二级页面快捷入口（后台勾选「在广场首页展示入口」的页面） */
.feed-page-links {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 2px 16px 10px;
}
.fpage-link {
  padding: 7px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--text-2);
  background: var(--panel); border: 1px solid var(--line);
  transition: .18s; max-width: 46vw;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fpage-link:hover { color: var(--accent); border-color: var(--accent-line); background: var(--panel-2); }

/* 广场首页 · 自定义区块（后台直接编辑的 UBB 内容卡片） */
.feed-block {
  margin: 2px 16px 12px; padding: 16px 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
}
.feed-block-title {
  font-size: 12px; font-weight: 650; color: var(--accent);
  letter-spacing: .06em; margin-bottom: 8px;
}
.feed-block-body { font-size: 13.5px; line-height: 1.8; color: var(--text-2); }
.feed-block-body p { margin: 0 0 10px; }
.feed-block-body p:last-child { margin-bottom: 0; }
.feed-block-body img { max-width: 100%; border-radius: 10px; }
/* 单行模式：只显示一行（如「本站公告」「记录创作，结识同好」），不套卡片 */
.feed-block-inline {
  margin: 2px 16px 12px; padding: 0 18px;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-2); line-height: 2.4;
  white-space: nowrap; overflow: hidden;
  border: 1px solid rgba(111, 184, 245, .32); border-radius: 12px;
  background: rgba(111, 184, 245, .05);
}
/* 单行套 [color=X]：线条/圆点跟随该色（views.js 会加 .tinted 并写 --fbi-c） */

/* 发布弹窗内的社区公约一句话提示：完整两行展示，不截断 */
.compose-covenant {
  margin: 0 0 14px; padding: 9px 14px;
  font-size: 12px; color: var(--text-2); line-height: 1.8;
  white-space: normal; word-break: break-all;
  border: 1px solid rgba(111, 184, 245, .32); border-radius: 12px;
  background: rgba(111, 184, 245, .05);
}

/* 发布弹窗返回按钮：标题左上方，退出发布不发布 */
.modal-back {
  display: inline-block; margin-bottom: 8px;
  padding: 4px 12px; border: none; background: none;
  font-size: 13px; color: var(--text-3); letter-spacing: .04em;
  cursor: pointer; transition: .2s;
}
.modal-back:hover { color: var(--accent); }
.feed-block-inline.tinted { border-color: var(--fbi-c, var(--accent)); }
.feed-block-inline.tinted .fbi-dot { color: var(--fbi-c, var(--accent)); }
.feed-block-inline .fbi-dot { color: var(--accent); flex: none; font-size: 12px; }
.feed-block-inline .ubb-p, .feed-block-inline p { margin: 0; overflow: hidden; text-overflow: ellipsis; }

/* ── UBB 新标签：文字底色 / 信息框 / 分区框 ── */
.ubb-bg {
  padding: 1px 6px; border-radius: 6px;
  font-weight: 600;
}
.ubb-box {
  display: block; margin: 10px 0; padding: 12px 14px;
  border: 1px solid var(--accent-line, var(--line)); border-radius: 12px;
  background: var(--panel-2, rgba(255,255,255,.03));
  font-size: 13px; line-height: 1.8; color: var(--text-2);
}
.ubb-box .ubb-box:last-child { margin-bottom: 0; }
.ubb-frame {
  display: block; margin: 12px 0;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.ubb-frame-title {
  padding: 8px 14px; font-size: 12px; font-weight: 650; letter-spacing: .06em;
  color: var(--accent); background: var(--panel-2, rgba(255,255,255,.04));
  border-bottom: 1px solid var(--line);
}
.ubb-frame-body { padding: 12px 14px; font-size: 13px; line-height: 1.8; color: var(--text-2); }
.ubb-frame-body :last-child { margin-bottom: 0; }
.feed-block-body a { color: var(--accent); text-decoration: none; }
.feed-block-body blockquote {
  margin: 0 0 10px; padding: 8px 12px; border-left: 2px solid var(--accent-line);
  background: var(--panel-2); border-radius: 0 8px 8px 0;
}

/* 橱窗「添加展示物品」选择弹层 */
.pick-sheet { display: flex; flex-direction: column; gap: 10px; }
.pick-thumb {
  width: 42px; height: 42px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  background: var(--panel-2); display: grid; place-items: center;
}
.pick-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick-thumb-hex { color: var(--text-3); font-size: 15px; }
.pick-mid { flex: 1; min-width: 0; }
.pick-sub-off { color: #e0808c; }
.myshop-item .btn-sm { flex-shrink: 0; }

/* ============================ 合规能力（v2.10.0） ============================ */

/* ---- 注册协议勾选 ---- */
.agree-row {
  display: flex; align-items: flex-start; gap: 9px;
  margin: 14px 0 4px; padding: 10px 12px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--panel);
  cursor: pointer; transition: border-color .2s;
}
.agree-row:hover { border-color: var(--line-2); }
.agree-row input[type="checkbox"] {
  width: 16px; height: 16px; margin: 1px 0 0; flex: 0 0 16px;
  accent-color: var(--accent); cursor: pointer;
}
.agree-txt { font-size: 11.5px; line-height: 1.65; color: var(--text-2); }
.agree-link {
  padding: 0; border: none; background: none; cursor: pointer;
  color: var(--accent); font-size: 11.5px; font-family: inherit;
  text-decoration: underline; text-underline-offset: 2px;
}
.agree-link:hover { filter: brightness(1.15); }
.agree-row.shake { animation: agreeShake .45s ease; border-color: var(--danger); }
@keyframes agreeShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

/* ---- 协议阅读弹窗 ---- */
.legal-modal { display: flex; flex-direction: column; max-height: 76vh; }
.legal-head { flex: none; }
.legal-body {
  flex: 1 1 auto; overflow-y: auto; margin: 4px -4px 0; padding: 0 4px;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.legal-body::-webkit-scrollbar { width: 4px; }
.legal-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
.legal-bar { flex: none; padding-top: 12px; }

/* Markdown 正文排版 */
.md { font-size: 13px; line-height: 1.85; color: var(--text-2); }
.md h3, .md h4, .md h5, .md h6 {
  color: var(--text); font-weight: 600; letter-spacing: .01em;
  margin: 20px 0 8px; line-height: 1.45;
}
.md h3 { font-size: 15px; }
.md h4 { font-size: 13.5px; }
.md h5, .md h6 { font-size: 12.5px; }
.md p { margin: 0 0 11px; }
.md strong { color: var(--text); font-weight: 600; }
.md code {
  padding: 1px 5px; border-radius: 5px; font-family: ui-monospace, Menlo, monospace;
  font-size: 11.5px; background: var(--panel-2); color: var(--accent);
}
.md-list { margin: 0 0 12px; padding-left: 20px; }
.md-list li { margin: 3px 0; }
.md-quote {
  margin: 0 0 12px; padding: 9px 13px; border-left: 2px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 10px 10px 0; font-size: 12.5px;
}
.md-hr { height: 0; margin: 20px 0; border: none; border-top: 1px solid var(--line); }
.md-table {
  width: 100%; border-collapse: collapse; margin: 0 0 14px;
  font-size: 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.md-table th {
  padding: 8px 10px; text-align: left; font-weight: 600; color: var(--text);
  background: var(--panel-2); border-bottom: 1px solid var(--line);
}
.md-table td { padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }

/* ---- 协议升级重新同意 ---- */
.legal-update-list { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 14px; }
.legal-update-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--text); font-size: 13px; transition: .2s;
}
.legal-update-item:hover { border-color: var(--accent-line); background: var(--accent-soft); }

/* ---- 举报：紧急类别 ---- */
.report-hint {
  padding: 8px 11px; margin-bottom: 2px; border-radius: 9px;
  font-size: 10.5px; line-height: 1.6; color: var(--text-3);
  background: var(--panel-2); border: 1px dashed var(--line-2);
}
.report-opt.urgent { border-color: color-mix(in srgb, var(--danger) 34%, var(--line)); }
.report-opt.urgent:hover { border-color: var(--danger); }
.report-opt.urgent .report-dot { border-color: color-mix(in srgb, var(--danger) 70%, transparent); }
.report-opt.urgent.on {
  border-color: var(--danger);
  background: color-mix(in srgb, var(--danger) 11%, transparent);
}
.report-opt.urgent.on .report-dot { border-color: var(--danger); background: var(--danger); }

/* ---- 数据导出 ---- */
.export-box {
  display: flex; flex-direction: column; gap: 1px; margin: 2px 0 10px;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
}
.export-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 10px 13px; background: var(--panel); font-size: 11.5px;
}
.export-row b { font-size: 12px; font-weight: 500; color: var(--text); flex: none; }
.export-row span { color: var(--text-3); text-align: right; line-height: 1.5; }

/* ---- 注销 ---- */
.danger-list { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--danger) 7%, var(--panel)); border: 1px solid color-mix(in srgb, var(--danger) 22%, var(--line)); }
.danger-item { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; line-height: 1.6; color: var(--text-2); }
.danger-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--danger); flex: none; margin-top: 7px; }
.danger-note {
  display: flex; flex-direction: column; gap: 4px; margin: 4px 0 14px; padding: 11px 13px;
  border-radius: 11px; font-size: 11.5px; line-height: 1.65;
  background: color-mix(in srgb, var(--danger) 9%, transparent); color: var(--text-2);
}
.danger-note b { color: var(--danger); font-weight: 600; }
.btn.btn-danger {
  background: color-mix(in srgb, var(--danger) 16%, transparent);
  border-color: color-mix(in srgb, var(--danger) 40%, transparent);
  color: var(--danger);
}
.btn.btn-danger:hover { background: color-mix(in srgb, var(--danger) 24%, transparent); }

/* ---- 登录设备 ---- */
.device-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.device-row {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--panel);
}
.device-row.current { border-color: var(--accent-line); background: var(--accent-soft); }
.device-ico { width: 30px; height: 30px; flex: none; display: grid; place-items: center;
  border-radius: 9px; background: var(--panel-2); color: var(--text-2); }
.device-ico svg { width: 15px; height: 15px; }
.device-info { flex: 1; min-width: 0; }
.device-name { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; }
.device-cur { padding: 0 5px; border-radius: 5px; font-size: 9.5px; font-weight: 500;
  background: var(--accent); color: var(--accent-ink); }
.device-meta { margin-top: 2px; font-size: 10px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- 青少年模式 ---- */
.teen-box {
  display: flex; flex-direction: column; gap: 1px; margin: 4px 0 14px;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
}
.teen-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 13px; background: var(--panel); font-size: 12px; color: var(--text-2);
}
.teen-row b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); font-size: 13px; cursor: pointer;
}
/* v2.88.1 合集弹窗修复：.field label 的 display:block 优先级高于 .switch-row，
   会把开关行打回块级布局（开关与文字堆叠重叠）；此处提高优先级钉回 flex */
.field label.switch-row,
.switch-row {
  display: flex;
}
.switch-row input { display: none; }
.switch {
  position: relative; width: 40px; height: 23px; flex: none; border-radius: 999px;
  background: var(--line-2); transition: background .22s;
}
.switch::after {
  content: ''; position: absolute; top: 2.5px; left: 2.5px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: transform .22s;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.switch-row input:checked + .switch { background: var(--accent); }
.switch-row input:checked + .switch::after { transform: translateX(17px); }

/* 宵禁 / 超时拦截层 */
.teen-guard {
  position: fixed; inset: 0; z-index: 9998;
  display: grid; place-items: center; padding: 28px;
  background: radial-gradient(circle at 50% 30%, #16203a, #070a10 70%);
}
.teen-guard-card { text-align: center; max-width: 300px; }
.teen-guard-logo { width: 54px; height: 54px; border-radius: 15px; opacity: .9; margin-bottom: 18px; }
.teen-guard-title { font-size: 17px; font-weight: 600; color: #f2f4f8; letter-spacing: .02em; }
.teen-guard-sub { margin-top: 10px; font-size: 12px; line-height: 1.8; color: rgba(242,244,248,.55); }

/* 访客模式下的协议入口（登录页页脚） */
.gate-legal { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap;
  margin-top: 14px; font-size: 10.5px; color: var(--text-3); }
.gate-legal button { padding: 0 2px; border: none; background: none; cursor: pointer;
  color: var(--text-3); font-size: 10.5px; font-family: inherit; text-decoration: underline; text-underline-offset: 2px; }
.gate-legal button:hover { color: var(--accent); }

/* 后台：紧急举报工单 */
.rp-card.urgent { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.rp-card.urgent.rp-card.done { border-color: var(--line); }

/* ==================== 原创内容存证卡片 ==================== */
.attest-box {
  margin: 14px 16px 18px;
  padding: 15px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 5%, transparent), transparent 60%);
}
.attest-head { display: flex; align-items: center; gap: 9px; }
.attest-ico { display: inline-flex; color: var(--accent); }
.attest-head-txt { flex: 1; min-width: 0; }
.attest-title { font-size: 13px; font-weight: 600; color: var(--text-1); letter-spacing: .02em; }
.attest-sub { margin-top: 3px; font-size: 10.5px; color: var(--text-3); }

.attest-grid { margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--line); }
.attest-row { display: flex; gap: 10px; padding: 5px 0; font-size: 11.5px; }
.attest-k { flex: 0 0 62px; color: var(--text-3); }
.attest-v { flex: 1; min-width: 0; color: var(--text-2); }
.attest-v.mono, .attest-code {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 10.5px; word-break: break-all; color: var(--text-2);
}

.attest-verify { margin-top: 10px; }
.attest-vresult:empty { display: none; }
.attest-vline {
  display: flex; align-items: center; gap: 7px;
  margin-top: 10px; padding: 9px 11px; border-radius: 9px; font-size: 11.5px; line-height: 1.5;
}
.attest-vline.ok { background: color-mix(in srgb, var(--ok, #3ddc97) 12%, transparent); color: var(--ok, #3ddc97); }
.attest-vline.bad { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.attest-vdot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.attest-vhint { margin-top: 7px; font-size: 10px; line-height: 1.6; color: var(--text-3); }

.attest-acts { margin-top: 11px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.attest-cert { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.attest-cert .attest-k { flex: 0 0 auto; }
.attest-code { flex: 1; min-width: 0; color: var(--accent); }

.attest-note {
  margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 10px; line-height: 1.7; color: var(--text-3);
}

/* ==================== 新手引导 ====================
 * 全屏覆盖层，与「弹窗」区分：引导是流程而非单次对话，因此占满屏幕、
 * 自带进度条与步进导航，不依赖 modal 的底部抽屉语义。 */
.guide {
  position: fixed; inset: 0; z-index: 95;
  display: flex; flex-direction: column;
  background: var(--bg);
  animation: fadeIn .28s both;
}
.guide-top {
  flex: none; display: flex; align-items: center; gap: 12px;
  padding: 18px 20px 0;
}
.guide-brand {
  flex: 1; min-width: 0; font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
}
.guide-skip {
  flex: none; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  font-size: 12px; color: var(--text-3); background: transparent;
  border: 1px solid var(--line-2);
}
.guide-skip:hover { color: var(--text-2); border-color: var(--text-3); }
.guide-bar {
  flex: none; height: 3px; margin: 14px 20px 0;
  background: var(--line); border-radius: 2px; overflow: hidden;
}
.guide-bar > i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .42s cubic-bezier(.2,.9,.25,1);
}
.guide-body {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 26px 24px 12px; display: flex; flex-direction: column;
}
.guide-body::-webkit-scrollbar { width: 0; }
.guide-step-no {
  flex: none; font-size: 11px; color: var(--text-3);
  letter-spacing: .14em; margin-bottom: 12px;
}
.guide-icon {
  flex: none; width: 52px; height: 52px; margin-bottom: 20px;
  display: grid; place-items: center; border-radius: 16px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent);
}
.guide-h {
  flex: none; margin: 0 0 12px; font-size: 24px; line-height: 1.34;
  font-weight: 600; color: var(--text); letter-spacing: -.01em;
}
.guide-p {
  flex: none; margin: 0; font-size: 14px; line-height: 1.85;
  color: var(--text-2);
}
.guide-extra { flex: none; margin-top: 20px; }
.guide-done-chip {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; color: var(--mint);
  background: rgba(127, 201, 166, .1); border: 1px solid rgba(127, 201, 166, .28);
}
.guide-foot {
  flex: none; padding: 14px 24px calc(22px + env(safe-area-inset-bottom));
  display: flex; gap: 10px;
}
.guide-btn {
  flex: 1; height: 48px; border-radius: 14px; cursor: pointer;
  font-size: 15px; font-weight: 600; border: 1px solid transparent;
}
.guide-btn.primary { background: var(--accent); color: var(--accent-ink); }
.guide-btn.primary:active { transform: scale(.985); }
.guide-btn.ghost {
  flex: 0 0 96px; background: transparent; color: var(--text-2);
  border-color: var(--line-2);
}
.guide-btn.ghost:disabled { opacity: .35; cursor: default; }
/* 引导第三按钮（去操作）：与「上一步」并排，主按钮保持最宽 */
.guide-btn.guide-act { flex: 1.2; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 引导内的清单（恢复码要点、积分规则等） */
.guide-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.guide-list li {
  display: flex; gap: 10px; font-size: 13px; line-height: 1.7; color: var(--text-2);
}
.guide-list li > b {
  flex: none; width: 18px; height: 18px; margin-top: 2px;
  display: grid; place-items: center; border-radius: 6px;
  font-size: 10px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
}
.guide-card {
  padding: 14px 16px; border-radius: 14px;
  background: var(--bg-1); border: 1px solid var(--line);
}
.guide-kv { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; padding: 5px 0; }
.guide-kv > span:first-child { color: var(--text-3); }
.guide-kv > span:last-child { color: var(--text); font-variant-numeric: tabular-nums; }
.guide-mnemonic {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
}
.guide-mnemonic > span {
  padding: 5px 9px; border-radius: 8px; font-size: 12px;
  font-family: ui-monospace, Menlo, monospace;
  background: var(--bg-2); color: var(--text-2); border: 1px solid var(--line);
}
.guide-icon svg { width: 26px; height: 26px; }
.guide-icon .ico { display: inline-flex; }

/* 解锁确认弹窗：费用明细 + 不可退勾选 */
.unlock-rows {
  margin: 14px 0 0; padding: 12px 14px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line);
}
.unlock-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; padding: 4px 0; color: var(--text-2);
}
.unlock-row > b { color: var(--accent); font-size: 15px; font-variant-numeric: tabular-nums; }
.unlock-row .unlock-short { color: var(--danger); }
.unlock-agree {
  display: flex; gap: 8px; align-items: flex-start; cursor: pointer;
  margin: 14px 0; font-size: 11.5px; line-height: 1.7; color: var(--text-3);
}
.unlock-agree input { margin-top: 2px; flex: none; accent-color: var(--accent); }
.unlock-agree b { color: var(--text-2); font-weight: 600; }
.unlock-tip-err {
  margin: 14px 0; padding: 10px 12px; border-radius: 10px;
  font-size: 12px; line-height: 1.6; color: var(--danger);
  background: rgba(222, 107, 120, .08); border: 1px solid rgba(222, 107, 120, .25);
}

/* ==================== 视觉画廊（广场 · 画廊视图） ====================
   设计目标：让「作品」以作品的方式呈现——媒体按原始比例铺满列宽，
   信息默认隐去、悬停时才上浮，整屏几乎全是画面本身。
   仅作用于 .gal-* 类，不影响其它页面的 .post 卡片。 */

.feed-view-toggle { display: inline-flex; gap: 2px; margin-left: auto; padding: 2px; border-radius: 9px;
  background: color-mix(in srgb, var(--text) 5%, transparent); border: 1px solid var(--line); }
.feed-sort .feed-view-toggle { margin-left: auto; }
.fview {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px;
  border: none; border-radius: 7px; background: none; cursor: pointer;
  font: inherit; font-size: 11.5px; color: var(--text-3); transition: all .22s;
}
.fview svg { width: 13px; height: 13px; }
.fview:hover { color: var(--text-2); }
.fview.on { color: var(--text); background: color-mix(in srgb, var(--text) 9%, transparent);
  box-shadow: 0 1px 3px rgba(0,0,0,.25); }

/* ---- 瀑布流栅格 ---- */
/* 瀑布流整体区域：与帖子卡同款金线包边 + 暖金渐变底 */
.gal-grid {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 10px 20px 4px; padding: 8px;
  border: 1px solid rgba(111, 184, 245, .3); border-radius: 18px;
  background: linear-gradient(160deg, rgba(111, 184, 245, .07), rgba(111, 184, 245, .02) 45%, transparent);
}
.gal-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

/* ---- 作品卡片 ---- */
.gal-card {
  position: relative; display: block; border-radius: 14px; overflow: hidden;
  cursor: pointer; background: var(--panel-2); isolation: isolate;
  box-shadow: 0 2px 10px rgba(0,0,0,.28), 0 0 0 1px rgba(111, 184, 245, .3); /* 全主题瀑布流描金边 */
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease;
  will-change: transform;
}
.gal-card:hover, .gal-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 38px -12px rgba(0,0,0,.7), 0 0 0 1px rgba(111, 184, 245, .55), 0 0 16px rgba(111, 184, 245, .1);
  outline: none;
}
.gal-media { position: relative; display: block; width: 100%; overflow: hidden; background: var(--panel-3, #17181d); }
.gal-media img, .gal-media video {
  display: block; width: 100%; height: auto; object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .5s;
}
.gal-card:hover .gal-media img, .gal-card:hover .gal-media video { transform: scale(1.045); }
/* 极端长宽比：限制在合理高度内，避免一条细长条撑满整列 */
.gal-media.extreme img, .gal-media.extreme video { max-height: 420px; object-fit: cover; }
.gal-media.broken { min-height: 120px; }

/* 视频角标 */
.gal-badge {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  height: 20px; padding: 0 8px; border-radius: 6px;
  font-size: 10px; letter-spacing: .04em; color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.42); backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.14);
}
.gal-badge-dot { width: 5px; height: 5px; border-radius: 50%; background: #ff5a5f; box-shadow: 0 0 6px #ff5a5f; }

/* 悬浮信息层：默认隐去，悬停上浮 */
.gal-info {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 26px 11px 10px;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.42) 55%, transparent 100%);
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s ease, transform .35s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.gal-card:hover .gal-info, .gal-card:focus-visible .gal-info { opacity: 1; transform: none; }
.gal-title {
  font-size: 12.5px; line-height: 1.45; color: #fff; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.gal-by { display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 10px; color: rgba(255,255,255,.62); }
.gal-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .7; }
.gal-sep { opacity: .5; }

/* 凭证编号 / 审核状态 */
.gal-token {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  font-family: var(--mono, ui-monospace, monospace); font-size: 9.5px; letter-spacing: .03em;
  padding: 2px 6px; border-radius: 5px; color: rgba(255,255,255,.8);
  background: rgba(0,0,0,.34); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .3s;
}
.gal-card:hover .gal-token { opacity: 1; }
.gal-state {
  position: absolute; top: 8px; left: 8px; z-index: 4;
  padding: 2px 7px; border-radius: 5px; font-size: 10px;
  color: #f0c96a; background: rgba(0,0,0,.55); border: 1px solid rgba(240,201,106,.35);
}
.gal-state.bad { color: #ff8b8b; border-color: rgba(255,139,139,.35); }

/* 进场动效：逐张淡入上浮 */
.gal-in { opacity: 0; transform: translateY(18px) scale(.985); }
.gal-in.gal-shown {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}

/* ==================== 全屏灯箱 ==================== */
body.gal-lb-open { overflow: hidden; }
.gal-lb {
  position: fixed; inset: 0; z-index: 4000;
  display: grid; grid-template-columns: 1fr 300px; grid-template-rows: 1fr 74px;
  opacity: 0; transition: opacity .24s ease;
}
.gal-lb.in { opacity: 1; }
.gal-lb.out { opacity: 0; }
.gal-lb-backdrop {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, rgba(10,11,14,.94), rgba(3,4,6,.985));
  backdrop-filter: blur(24px) saturate(.9);
  -webkit-backdrop-filter: blur(24px) saturate(.9);
}
.gal-lb-stage {
  position: relative; z-index: 1; grid-column: 1; grid-row: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 34px 60px; min-width: 0; min-height: 0;
}
.gal-lb-media { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.gal-lb-img, .gal-lb-video {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  border-radius: 6px; object-fit: contain; display: block;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.95);
}
.gal-lb.in .gal-lb-img, .gal-lb.in .gal-lb-video { animation: lbIn .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes lbIn { from { opacity: 0; transform: scale(.975); } to { opacity: 1; transform: none; } }

.gal-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 24px; line-height: 1; padding-bottom: 4px;
  transition: all .24s;
}
.gal-lb-nav:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); color: #fff; transform: translateY(-50%) scale(1.05); }
.gal-lb-nav.prev { left: 14px; }
.gal-lb-nav.next { right: 14px; }
.gal-lb-close {
  position: absolute; top: 16px; right: 16px; z-index: 4;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font-size: 14px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.72); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); transition: all .22s;
}
.gal-lb-close:hover { background: rgba(255,255,255,.14); color: #fff; }

/* 右侧信息面板（玻璃拟态） */
.gal-lb-side {
  position: relative; z-index: 1; grid-column: 2; grid-row: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 12px; padding: 26px 24px;
  border-left: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(to left, rgba(255,255,255,.035), transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.gal-lb-author { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.gal-lb-avatar {
  width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #12141a;
  border: 1px solid rgba(255,255,255,.18);
}
.gal-lb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gal-lb-nick { font-size: 13px; color: rgba(255,255,255,.92); font-weight: 500; }
.gal-lb-handle { font-size: 11px; color: rgba(255,255,255,.42); margin-top: 1px; }
.gal-lb-title {
  margin: 0; font-size: 17px; line-height: 1.5; font-weight: 500; color: #fff;
  letter-spacing: .01em;
}
.gal-lb-meta { display: flex; align-items: center; gap: 10px; font-size: 10.5px; color: rgba(255,255,255,.38);
  font-family: var(--mono, ui-monospace, monospace); letter-spacing: .04em; }
.gal-lb-open {
  margin-top: 4px; height: 34px; border-radius: 9px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.82); font: inherit; font-size: 12px;
  transition: all .22s;
}
.gal-lb-open:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.22); }

/* 底部缩略图条 */
.gal-lb-strip {
  position: relative; z-index: 1; grid-column: 1 / -1; grid-row: 2;
  display: flex; align-items: center; gap: 6px; padding: 8px 16px;
  overflow-x: auto; overflow-y: hidden;
  border-top: 1px solid rgba(255,255,255,.06);
  scrollbar-width: none;
}
.gal-lb-strip::-webkit-scrollbar { display: none; }
.gal-thumb {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 7px; overflow: hidden;
  padding: 0; cursor: pointer; background: rgba(255,255,255,.05);
  border: 1px solid transparent; opacity: .42; transition: all .24s;
  display: grid; place-items: center;
}
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-thumb:hover { opacity: .8; }
.gal-thumb.on { opacity: 1; border-color: var(--accent); transform: scale(1.06); }
.gal-thumb-ph { color: rgba(255,255,255,.5); font-size: 13px; }

/* 窄屏（手机壳内）：灯箱改为上下结构，隐藏缩略图条 */
@media (max-width: 899px) {
  .gal-lb { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .gal-lb-side { grid-column: 1; grid-row: 2; padding: 14px 18px 18px; border-left: none;
    border-top: 1px solid rgba(255,255,255,.07); justify-content: flex-start; }
  .gal-lb-stage { padding: 20px 14px; }
  .gal-lb-strip { display: none; }
  .gal-lb-title { font-size: 15px; }
  .gal-lb-nav { width: 36px; height: 36px; font-size: 20px; }
}

/* ============================ 3D 数字展厅 v2（弧形美术馆） ============================ */
.hall3d {
  position: fixed; inset: 0; z-index: 6000;
  background: #111217;                 /* 深炭灰，非纯黑 */
  overflow: hidden;
  animation: hall-fade .5s ease both;
}
@keyframes hall-fade { from { opacity: 0 } to { opacity: 1 } }
.hall3d-canvas { display: block; width: 100%; height: 100%; }
body.hall3d-open { overflow: hidden; }

/* 载入层 */
.hall3d-loading {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center; gap: 14px; align-content: center;
  background: radial-gradient(60% 50% at 50% 45%, rgba(22,22,28,.92), #111217 70%);
  transition: opacity .7s ease, visibility .7s;
}
.hall3d-loading.gone { opacity: 0; visibility: hidden; }
.hall3d-spin {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid rgba(111,184,245,.18);
  border-top-color: rgba(111,184,245,.85);
  animation: hall-spin 1.1s linear infinite;
}
@keyframes hall-spin { to { transform: rotate(360deg) } }
.hall3d-ltxt { font-size: 11.5px; letter-spacing: .26em; color: rgba(200,200,208,.6); }
.hall3d-fail { text-align: center; font-size: 14px; line-height: 1.9; color: #c8c8d0; }
.hall3d-fail span { font-size: 12px; color: rgba(255,255,255,.42); }

/* HUD：极简、弱存在感 */
.hall3d-hud {
  position: absolute; left: 0; right: 0; top: 0; z-index: 4;
  display: flex; align-items: center;
  padding: 18px 24px;
  background: linear-gradient(to bottom, rgba(10,10,14,.55), rgba(10,10,14,0));
  pointer-events: none;
}
.hall3d-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; letter-spacing: .2em; color: rgba(200,200,208,.55);
}
.hall3d-brand i {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(111,184,245,.85);
  box-shadow: 0 0 10px rgba(111,184,245,.5);
}
/* 退出按钮：极简小字、低透明度，hover 才明显 */
.hall3d-exit {
  margin-left: auto; pointer-events: auto;
  padding: 6px 14px; border-radius: 999px; cursor: pointer;
  font-size: 11.5px; letter-spacing: .08em;
  color: rgba(200,200,208,.45);
  background: transparent;
  border: 1px solid rgba(200,200,208,.14);
  backdrop-filter: blur(8px);
  transition: color .25s, border-color .25s;
}
.hall3d-exit:hover { color: rgba(232,222,198,.95); border-color: rgba(111,184,245,.45); }

/* 操作提示：底部极淡小字 */
.hall3d-tipbar {
  position: absolute; top: 58px; left: 0; right: 0; z-index: 4;
  text-align: center; pointer-events: none;
  font-size: 10.5px; letter-spacing: .12em; color: rgba(200,200,208,.3);
}

/* 底部导航胶囊 */
.hall3d-nav {
  position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%);
  z-index: 4; display: flex; align-items: center; gap: 12px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(14,15,19,.55);
  border: 1px solid rgba(200,200,208,.1);
  backdrop-filter: blur(14px);
}
.hall3d-btn {
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  font-size: 16px; line-height: 1; color: rgba(232,224,206,.8);
  background: transparent;
  border: 1px solid rgba(200,200,208,.14);
  transition: background .25s, border-color .25s;
}
.hall3d-btn:hover { background: rgba(111,184,245,.14); border-color: rgba(111,184,245,.4); }
.hall3d-idx { font-size: 10.5px; letter-spacing: .14em; color: rgba(200,200,208,.5); min-width: 42px; text-align: center; }

/* 底部作品信息：纤细浅灰、弱化存在感 */
.hall3d-plate {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 4; text-align: center; pointer-events: none;
  display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.hall3d-plate b {
  font-size: 17px; font-weight: 400; letter-spacing: .06em; color: rgba(230,221,200,.92);
  text-shadow: 0 2px 16px rgba(0,0,0,.85);
}
.hall3d-plate span { font-size: 11.5px; color: rgba(200,200,208,.55); letter-spacing: .08em; }
.hall3d-plate em { font-size: 10px; font-style: normal; color: rgba(200,200,208,.32); letter-spacing: .12em; }
.hall3d-plate.pop { animation: platePop .55s cubic-bezier(.22,.9,.3,1) both; }
@keyframes platePop {
  from { opacity: 0; transform: translateX(-50%) translateY(8px) }
  to { opacity: 1; transform: translateX(-50%) translateY(0) }
}

/* 悬浮轻浮窗：跟随鼠标，低干扰 */
.hall3d-pop {
  position: absolute; z-index: 5; pointer-events: none;
  max-width: 220px; padding: 9px 12px; border-radius: 10px;
  background: rgba(12,13,17,.86);
  border: 1px solid rgba(111,184,245,.22);
  backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(4px);
  transition: opacity .22s ease, transform .22s ease;
}
.hall3d-pop.on { opacity: 1; transform: translateY(0); }
.hall3d-pop b { display: block; font-size: 12px; font-weight: 500; color: #e6ddc8; margin-bottom: 2px; }
.hall3d-pop span { display: block; font-size: 10.5px; line-height: 1.5; color: rgba(200,200,208,.6); }

@media (max-width: 899px) {
  .hall3d-hud { padding: 14px 16px; }
  .hall3d-tipbar { display: none; }
  .hall3d-nav { bottom: 104px; }
  .hall3d-plate { bottom: 42px; }
  .hall3d-plate b { font-size: 15px; }
}

/* 展厅入口：金色描边区分于「画廊/卡片」纯视图切换 */
.fview.fview-hall {
  border-color: rgba(216,184,120,.42);
  color: rgba(240,228,200,.95);
}
.fview.fview-hall:hover {
  background: rgba(216,184,120,.14);
  border-color: rgba(216,184,120,.7);
}

/* ============================ 详情页 · 作品展台 ============================ */
/* 带图作品：大图无裁切 + 取作品主色做环境光晕，让页面随作品「呼吸」 */
.post-imgwrap.pd-hero {
  position: relative;
  margin: 16px -8px 4px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.07);
  background:
    radial-gradient(120% 90% at 50% 0%,
      rgba(var(--art-r, 120), var(--art-g, 110), var(--art-b, 90), .22),
      rgba(8, 9, 13, 0) 65%),
    linear-gradient(180deg, rgba(16,17,22,.9), rgba(10,11,15,.96));
  padding: 14px;
  box-shadow:
    0 18px 60px -22px rgba(var(--art-r, 120), var(--art-g, 110), var(--art-b, 90), .35),
    inset 0 1px 0 rgba(255,255,255,.05);
  transition: box-shadow .8s ease, background .8s ease;
}
.post-imgwrap.pd-hero .post-img {
  max-height: 560px;
  border-radius: 10px;
  object-fit: contain;
  background: transparent;
}
/* 主色取到后：光晕增强一档，形成「点亮」的过渡 */
.post-imgwrap.pd-hero.hero-tinted { isolation: isolate; }
.post-imgwrap.pd-hero.hero-tinted::after {
  content: ''; position: absolute; inset: -1px; border-radius: 16px;
  pointer-events: none;
  border: 1px solid rgba(var(--art-r, 120), var(--art-g, 110), var(--art-b, 90), .28);
}

/* ============================ 数值说明（积分 / 等级 / 信誉） ============================ */
/* 统计卡可点：让「看不懂的数字」有入口，副标直接回答「差多少」 */
.stat-box.stat-box-tap {
  cursor: pointer; position: relative;
  transition: border-color .2s ease, background .2s ease, transform .12s ease;
}
.stat-box.stat-box-tap:hover { border-color: rgba(216,184,120,.38); background: color-mix(in srgb, var(--panel) 88%, rgba(216,184,120,.08)); }
.stat-box.stat-box-tap:active { transform: scale(.985); }
.stat-box.stat-box-tap::after {
  content: '?'; position: absolute; right: 12px; top: 11px;
  width: 15px; height: 15px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 9.5px; color: var(--text-3);
  border: 1px solid var(--line);
  opacity: .7;
}
.stat-box.stat-box-tap:hover::after { color: var(--accent); border-color: rgba(216,184,120,.5); opacity: 1; }
.stat-hint {
  display: block; margin-top: 5px; font-style: normal;
  font-size: 10px; line-height: 1.4; letter-spacing: .02em;
  color: var(--text-3); opacity: .85;
}

/* 说明弹层 */
.numdef { max-height: 68vh; overflow-y: auto; padding-right: 2px; }
.numdef-hero {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; margin: 16px 0 14px;
  padding: 16px 18px; border-radius: 16px;
  background: linear-gradient(150deg, rgba(216,184,120,.12), rgba(216,184,120,.02));
  border: 1px solid rgba(216,184,120,.2);
}
.numdef-big { display: flex; align-items: baseline; gap: 8px; }
.numdef-big b { font-size: 30px; font-weight: 300; letter-spacing: -.02em; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.numdef-big span { font-size: 13px; color: rgba(240,228,200,.8); letter-spacing: .06em; }
.numdef-side { text-align: right; }
.numdef-side b { display: block; font-size: 17px; font-weight: 400; color: var(--text); font-variant-numeric: tabular-nums; }
.numdef-side span { font-size: 10px; color: var(--text-3); letter-spacing: .08em; }

/* 进度条 */
.numdef-progress { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; }
.numdef-bar { flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.numdef-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, rgba(216,184,120,.55), var(--accent-2, #e8d7a8));
  box-shadow: 0 0 10px rgba(216,184,120,.45);
  transition: width .6s cubic-bezier(.22,.9,.3,1);
}
.numdef-pct { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }

/* 差距提示条 */
.numdef-callout {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 11px 14px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  margin-bottom: 12px;
}
.numdef-callout.warn { background: rgba(222,120,60,.08); border-color: rgba(222,120,60,.28); }
.numdef-callout-k { font-size: 11.5px; color: var(--text-2); letter-spacing: .04em; }
.numdef-callout b { font-size: 13px; color: var(--accent-2); font-weight: 500; }

.numdef-line {
  display: flex; align-items: baseline; gap: 8px;
  padding: 8px 0; border-bottom: 1px dashed var(--line);
  margin-bottom: 12px;
}
.numdef-k { font-size: 11.5px; color: var(--text-3); }
.numdef-v { font-size: 12.5px; color: var(--text); font-variant-numeric: tabular-nums; }
.numdef-hint { margin-left: auto; font-size: 10.5px; color: var(--text-3); opacity: .8; }

.numdef-note {
  font-size: 11.5px; line-height: 1.75; color: var(--text-2);
  background: rgba(255,255,255,.03); border-left: 2px solid rgba(216,184,120,.4);
  padding: 10px 12px; border-radius: 0 10px 10px 0; margin-bottom: 14px;
}
.numdef-note.ok { border-left-color: rgba(90,200,150,.6); color: rgba(190,235,215,.9); }

.numdef-sec { margin-bottom: 14px; }
.numdef-sec-title {
  font-size: 11px; letter-spacing: .14em; color: var(--text-3);
  margin-bottom: 9px; text-transform: uppercase;
}
.numdef-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.numdef-cell {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 9px 11px; border-radius: 10px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
}
.numdef-cell span { font-size: 11px; color: var(--text-2); }
.numdef-cell b { font-size: 11.5px; font-weight: 500; color: var(--accent-2); }

/* 等级 / 信誉阶梯 */
.numdef-ladder { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.numdef-lrow {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; font-size: 11.5px;
  border-bottom: 1px solid var(--line);
}
.numdef-lrow:last-child { border-bottom: 0; }
.numdef-lrow.on { background: rgba(216,184,120,.1); }
.numdef-lrow.done { opacity: .62; }
.numdef-lv { font-variant-numeric: tabular-nums; color: var(--text-3); min-width: 40px; }
.numdef-lrow.on .numdef-lv { color: var(--accent-2); font-weight: 500; }
.numdef-lname { color: var(--text-2); flex: 1; }
.numdef-lexp { color: var(--text-3); font-variant-numeric: tabular-nums; }
.numdef-ltag {
  font-size: 9.5px; padding: 1px 7px; border-radius: 999px;
  color: var(--accent-2); border: 1px solid rgba(216,184,120,.42);
  letter-spacing: .04em;
}
.numdef-ltag.done { color: var(--text-3); border-color: var(--line); }

.numdef-foot { font-size: 10.5px; color: var(--text-3); line-height: 1.7; margin-top: 4px; }

/* 换一批：仅在画廊视图显示 */
.fview.fview-shuffle.hidden { display: none; }

/* ============================ 画廊视图布局修正 ============================ */
/* 画廊模式下外层列表脱离双列网格：瀑布流与文字卡各自全宽排列 */
/* 画廊模式下取消网格自身的 16px padding：gal-grid 自带 20px 边距，
   叠加会变成 36px 导致广场瀑布流/帖子看起来很窄（个人主页无此问题） */
.feed-grid.is-gallery { display: block; padding: 0; }
/* 画廊下方的纯文字作品：单列纵向，与瀑布流视觉衔接 */
.gal-textlist { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
/* 工具条：禁止按钮文字竖排折行，放不下就整条换行 */
.feed-sort { flex-wrap: wrap; row-gap: 8px; }
.fsort, .fview { white-space: nowrap; flex: none; }
/* 窄容器（手机壳 / 移动端）：视图切换收成纯图标，节省横向空间 */
@media (max-width: 899px) {
  .fview span, .fview-hall span { display: none; }
  .fview { padding: 7px 9px; }
}

/* 桌面端手机壳内（容器仅 ~412px 但视口是桌面）：视图切换同样收成纯图标 */
@media (min-width: 900px) {
  .phone-screen .fview span, .phone-screen .fview-hall span { display: none; }
  .phone-screen .fview { padding: 7px 9px; }
}

/* ===== 作品展示风格（发布器选择，详情页大图生效） ===== */
.post-imgwrap.dstyle-gold,
.post-imgwrap.dstyle-ink,
.post-imgwrap.dstyle-neon {
  position: relative;
  padding: 18px;
  border-radius: 14px;
  overflow: hidden;
}
.post-imgwrap.dstyle-gold .post-img,
.post-imgwrap.dstyle-ink .post-img,
.post-imgwrap.dstyle-neon .post-img {
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

/* 暗金展台：黑金径向光 + 底部金色椭圆光晕 + 暗金细边 */
.post-imgwrap.dstyle-gold {
  background:
    radial-gradient(120% 90% at 50% 108%, rgba(111,184,245,.42), transparent 58%),
    radial-gradient(140% 120% at 50% -10%, #2a2417, #121117 62%);
  border: 1px solid rgba(111,184,245,.45);
  box-shadow: 0 10px 34px rgba(0,0,0,.5), inset 0 0 24px rgba(111,184,245,.10);
}
.post-imgwrap.dstyle-gold::after {
  content: '';
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
  width: 62%; height: 16px; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,215,140,.55), rgba(255,215,140,0) 70%);
  filter: blur(2px);
}

/* 水墨国风：宣纸底 + 淡墨晕圈 + 墨色细边 */
.post-imgwrap.dstyle-ink {
  background:
    radial-gradient(90% 70% at 22% 14%, rgba(60,60,66,.10), transparent 55%),
    radial-gradient(80% 60% at 82% 88%, rgba(60,60,66,.12), transparent 52%),
    linear-gradient(160deg, #f4f1e9, #e9e5da 68%, #e2ddcf);
  border: 1px solid rgba(70,66,58,.4);
  box-shadow: 0 8px 26px rgba(50,46,38,.22);
}
.post-imgwrap.dstyle-ink::after {
  content: '';
  position: absolute; right: 10px; top: 10px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid rgba(60,58,52,.28);
  box-shadow: inset 0 0 0 6px rgba(244,241,233,.9), inset 0 0 0 7px rgba(60,58,52,.22);
}

/* 霓虹夜色：深夜底 + 品红/青双色光晕 + 发光描边 */
.post-imgwrap.dstyle-neon {
  background:
    radial-gradient(70% 55% at 18% 8%, rgba(255,60,172,.28), transparent 55%),
    radial-gradient(70% 55% at 86% 92%, rgba(0,229,255,.24), transparent 55%),
    linear-gradient(150deg, #191426, #101018 70%);
  border: 1px solid rgba(255,60,172,.5);
  box-shadow: 0 0 22px rgba(255,60,172,.18), 0 0 44px rgba(0,229,255,.10);
}

/* 3D 旋转展示：有厚度的藏品卡（参考数字藏品 App）——
   正面作品图 / 背面存证铭牌 / 四周金属侧面，带固定倾角绕 Y 轴旋转，
   侧面厚度清晰可见，不再是「纸片翻面」。 */
.post-imgwrap.dstyle-spin {
  perspective: 1100px;
  overflow: visible; /* 旋转盒带 translateZ 投影，不能被展台裁剪 */
}
.post-imgwrap.dstyle-spin .d3-card {
  --thk: 14px;                       /* 卡片厚度 */
  position: relative;
  transform-style: preserve-3d;
  animation: dstyle-rotate 11s linear infinite;
  will-change: transform;
  border-radius: 12px;
}
/* 正面：作品图抬起厚度的一半 */
.post-imgwrap.dstyle-spin .d3-card .post-img {
  animation: none !important;
  transform: translateZ(calc(var(--thk) / 2));
  backface-visibility: hidden;
}
/* 通用面：不做 backface 隐藏——侧面在旋转全程两面都要可见 */
.post-imgwrap.dstyle-spin .d3-face {
  position: absolute;
  border-radius: 10px;
  backface-visibility: visible;
}
/* 金属侧面：竖向拉丝渐变，左亮右暗模拟单侧打光。
   面的实际尺寸 = 厚度 × 卡高/宽，定位在卡片边缘并转 90° 立起来。 */
.post-imgwrap.dstyle-spin .d3-sl {
  top: 0; bottom: 0; left: calc(var(--thk) / -2); width: var(--thk);
  background: linear-gradient(180deg, #efe6cf, #b7a26d 18%, #7c6a3c 55%, #4a3e22 90%);
  transform: rotateY(90deg) translateZ(calc(var(--thk) / 2));
}
.post-imgwrap.dstyle-spin .d3-sr {
  top: 0; bottom: 0; right: calc(var(--thk) / -2); width: var(--thk);
  background: linear-gradient(180deg, #d9ccab, #a08c58 20%, #6a5930 55%, #3c321c 90%);
  transform: rotateY(-90deg) translateZ(calc(var(--thk) / 2));
}
/* 顶 / 底面：金属横纹 */
.post-imgwrap.dstyle-spin .d3-st {
  left: 0; right: 0; top: calc(var(--thk) / -2); height: var(--thk);
  background: linear-gradient(90deg, #cfc19d, #8f7c4c 60%, #5d4e2b);
  transform: rotateX(90deg) translateZ(calc(var(--thk) / -2));
}
.post-imgwrap.dstyle-spin .d3-sb {
  left: 0; right: 0; bottom: calc(var(--thk) / -2); height: var(--thk);
  background: linear-gradient(90deg, #b7a67e, #7a6738 60%, #463a1f);
  transform: rotateX(-90deg) translateZ(calc(var(--thk) / -2));
}
/* 背面：暗金铭牌——存证标识 + 标题 + 编号 */
.post-imgwrap.dstyle-spin .d3-back {
  inset: 0;
  background:
    radial-gradient(120% 100% at 50% 110%, rgba(111,184,245,.30), transparent 60%),
    linear-gradient(160deg, #26221a, #15130f 70%);
  border: 1px solid rgba(111,184,245,.55);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 18px; text-align: center;
  transform: rotateY(180deg) translateZ(calc(var(--thk) / 2));
  backface-visibility: hidden;
}
.post-imgwrap.dstyle-spin .d3-back-mark {
  font-size: 11px; letter-spacing: .28em; color: var(--accent, #6FB8F5);
}
.post-imgwrap.dstyle-spin .d3-back-title {
  font-size: 17px; color: #EAF3FF; font-weight: 650;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.post-imgwrap.dstyle-spin .d3-back-sub {
  font-style: normal; font-size: 11px; color: rgba(147,169,196,.75);
  letter-spacing: .12em;
}
/* 旋转动画：固定 12° 俯角让顶面/厚度进入视野，上下轻微悬浮 */
@keyframes dstyle-rotate {
  0%   { transform: rotateX(12deg) rotateY(0deg)   translateY(0); }
  25%  { transform: rotateX(12deg) rotateY(90deg)  translateY(-5px); }
  50%  { transform: rotateX(12deg) rotateY(180deg) translateY(0); }
  75%  { transform: rotateX(12deg) rotateY(270deg) translateY(-5px); }
  100% { transform: rotateX(12deg) rotateY(360deg) translateY(0); }
}
/* 用户偏好减少动效时尊重系统设置 */
@media (prefers-reduced-motion: reduce) {
  .post-imgwrap.dstyle-spin .d3-card { animation: none; }
  .post-imgwrap.dstyle-spin .d3-card .post-img { transform: none; }
}

/* 发布器：展示风格选择 chips */
.dstyle-field { margin-top: -4px; }
.dstyle-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dstyle-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line, rgba(255,255,255,.14));
  background: var(--bg-2, rgba(255,255,255,.05));
  color: var(--text-2, inherit);
  font-size: 12.5px; cursor: pointer; transition: all .18s;
}
.dstyle-chip.on {
  border-color: var(--accent, #6FB8F5);
  color: var(--accent, #6FB8F5);
  background: rgba(111,184,245,.10);
  box-shadow: 0 0 10px rgba(111,184,245,.18);
}

/* ===== 个人主页改版（版本A：白底 + 品牌金 #6FB8F5 强调） ===== */
:root { --brand-gold: #6FB8F5; --brand-gold-soft: rgba(111, 184, 245, .12); }

/* 进入渐入动画：hero 与头像柔和浮现 */
.profile-hero { animation: pf-enter .45s ease-out both; }
@keyframes pf-enter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 封面：底部渐变蒙层加强 + 右下角存证标识 + 无封面默认微水泥展厅 */
.pf-cover { height: 152px; }
.pf-cover-mask {
  background: linear-gradient(180deg, rgba(0,0,0,.06) 0%, transparent 40%, rgba(12,12,16,.38) 76%, var(--bg-1) 100%);
}
.pf-cover-default::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.022) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.016) 0 1px, transparent 1px 4px);
  opacity: .8;
}
.pf-cover-badge {
  position: absolute; right: 12px; bottom: 10px; z-index: 2;
  font-size: 10px; letter-spacing: .14em;
  color: rgba(255,255,255,.62);
  background: rgba(10,10,14,.34);
  border: 1px solid rgba(111,184,245,.30);
  border-radius: 999px; padding: 3px 10px;
  backdrop-filter: blur(6px);
}

/* 头像：哑光金色圆环（与展厅画框同款），柔和阴影 */
.pf-avatar .avatar {
  width: 70px; height: 70px;
  box-shadow:
    0 0 0 2px rgba(111, 184, 245, .85),
    0 0 0 5.5px var(--bg-1),
    0 8px 22px rgba(20, 16, 6, .18);
}

/* 关注 / 私信按钮：金色主按钮 + 白底细边次按钮 */
.pf-follow-gold {
  background: var(--brand-gold) !important;
  color: #fff !important;
  border: 1px solid var(--brand-gold) !important;
  border-radius: 999px;
  padding: 7px 22px;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(111, 184, 245, .30);
  transition: .2s;
}
.pf-follow-gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.pf-followed {
  background: transparent !important;
  color: var(--brand-gold) !important;
  border: 1px solid rgba(111, 184, 245, .45) !important;
  border-radius: 999px;
  padding: 7px 22px;
  font-weight: 500;
  transition: .2s;
}
.pf-dm {
  background: var(--bg-1, #fff) !important;
  color: var(--text-2) !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px;
  padding: 7px 20px;
  transition: .2s;
}
.pf-dm:hover { border-color: rgba(111,184,245,.5); color: var(--brand-gold); }

/* 用户名与等级：名字加大加粗；等级徽章统一浅金底细字 */
.profile-name { font-size: 22px; font-weight: 700; letter-spacing: .01em; }
.profile-name-row .profile-handle-inline { font-size: 12.5px; color: var(--text-3); font-weight: 400; }
.lvl-badge, .lvl-badge.lvl-low, .lvl-badge.lvl-mid {
  background: var(--brand-gold-soft);
  color: #b08d2e;
  font-weight: 500;
  border: 1px solid rgba(111, 184, 245, .28);
}
.lvl-badge.lvl-high, .lvl-badge.lvl-top {
  background: var(--brand-gold-soft);
  color: #b08d2e;
  border: 1px solid rgba(111, 184, 245, .32);
}

/* 链上地址行：小字浅灰 + 复制图标 + 存证注释 */
.pf-addr-row {
  display: flex; align-items: center; gap: 7px;
  margin-top: 9px; flex-wrap: wrap;
}
.pf-addr { font-size: 11.5px; color: var(--text-3); letter-spacing: .03em; }
.pf-addr-copy {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 6px;
  border: none; background: transparent; color: var(--text-3);
  cursor: pointer; transition: .18s; padding: 0;
}
.pf-addr-copy svg { width: 12.5px; height: 12.5px; }
.pf-addr-copy:hover { color: var(--brand-gold); background: var(--brand-gold-soft); }
.pf-addr-note {
  font-size: 10px; letter-spacing: .10em;
  color: #b08d2e; opacity: .8;
  border-left: 2px solid rgba(111, 184, 245, .35);
  padding-left: 6px;
}

/* 简介：折叠态 3 行截断 + 展开按钮 */
.profile-bio.clamped-bio span {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.pf-bio-more {
  display: inline-block; margin-top: 4px;
  border: none; background: none; padding: 0;
  font-size: 12px; color: var(--brand-gold); cursor: pointer;
  letter-spacing: .04em;
}

/* 数据栏：数字大粗黑、小字浅灰、悬浮上浮、无分割线；信誉金色点缀 */
.profile-stats { gap: 8px; }
.profile-stats .pf-stat {
  flex: 1; text-align: center; border-radius: 12px;
  transition: transform .2s ease, background .2s ease; cursor: default;
}
.profile-stats .pf-stat:hover { transform: translateY(-3px); background: rgba(111,184,245,.05); }
.profile-stats b {
  display: block; font-size: 20px; font-weight: 700;
  color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.profile-stats span { font-size: 10px; color: var(--text-3); letter-spacing: .14em; }
.profile-stats .pf-stat-rep b { color: #b08d2e; }
.profile-stats .pf-stat-rep span::after {
  content: ' ✦'; color: var(--brand-gold); font-size: 9px;
}

/* Tab 栏：去胶囊色块，选中 = 金字 + 金色短下划线 */
.pf-tabs { gap: 4px; border-bottom: 1px solid var(--line); }
.pf-tab {
  position: relative;
  border: none !important; background: transparent !important;
  border-radius: 0 !important;
  padding: 8px 13px 10px;
  color: var(--text-2);
  font-size: 13px; letter-spacing: .03em;
  display: inline-flex; align-items: center; gap: 5px;
  transition: color .2s;
}
.pf-tab svg { width: 13px; height: 13px; }
.pf-tab::after {
  content: '';
  position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%) scaleX(0);
  width: 20px; height: 2.5px; border-radius: 2px;
  background: var(--brand-gold);
  transition: transform .22s ease;
}
.pf-tab:hover { color: var(--text); }
.pf-tab.on { color: var(--brand-gold); font-weight: 600; }
.pf-tab.on::after { transform: translateX(-50%) scaleX(1); }
.pf-tab-new { border-radius: 999px !important; }

/* 橱窗 → 个人虚拟美术馆直达横幅 */
.pf-hall-card {
  display: flex; align-items: center; gap: 12px;
  width: calc(100% - 32px); margin: 12px 16px 0;
  padding: 14px 16px; text-align: left;
  border-radius: 16px; cursor: pointer;
  background: linear-gradient(135deg, rgba(111,184,245,.10), rgba(111,184,245,.03) 55%, transparent);
  border: 1px solid rgba(111, 184, 245, .40);
  transition: .22s;
}
.pf-hall-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(111,184,245,.16); border-color: var(--brand-gold); }
.pf-hall-ico {
  display: grid; place-items: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--brand-gold-soft); color: var(--brand-gold);
}
.pf-hall-ico svg { width: 20px; height: 20px; }
.pf-hall-main { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pf-hall-t { font-size: 13.5px; font-weight: 650; color: var(--text); }
.pf-hall-s { font-style: normal; font-size: 11px; color: var(--text-3); letter-spacing: .03em; }
.pf-hall-go { font-size: 12px; color: var(--brand-gold); font-weight: 600; letter-spacing: .05em; }

/* ===== 个人专属展厅（一人一馆） ===== */
/* 顶部右侧按钮组：自动漫游 / 明暗切换 / 退出 */
.hall3d-topbtns { display: flex; align-items: center; gap: 8px; }
.hall3d-auto, .hall3d-mood {
  padding: 5px 12px; border-radius: 999px; cursor: pointer;
  font-size: 11px; letter-spacing: .06em; transition: .2s;
  color: rgba(232,222,198,.55);
  background: rgba(20,20,26,.42);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
}
.hall3d-auto:hover, .hall3d-mood:hover { color: rgba(232,222,198,.95); border-color: rgba(111,184,245,.45); }
.hall3d-auto.on { color: var(--accent, #6FB8F5); border-color: rgba(111,184,245,.55); }

/* 展厅简介：标题下一行，浅金细字 */
.hall3d-intro {
  position: absolute; top: 52px; left: 0; right: 0; z-index: 5;
  text-align: center; pointer-events: none;
  font-size: 11.5px; letter-spacing: .12em;
  color: rgba(111,184,245,.62);
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

/* HUD 静置变淡（4 秒无操作），任何操作唤醒 */
.hall3d-hud, .hall3d-intro, .hall3d-tipbar { transition: opacity .8s ease; }
.hall3d.hud-idle .hall3d-hud, .hall3d.hud-idle .hall3d-intro, .hall3d.hud-idle .hall3d-tipbar { opacity: .14; }
.hall3d.hud-idle:hover .hall3d-hud, .hall3d.hud-idle:hover .hall3d-intro, .hall3d.hud-idle:hover .hall3d-tipbar { opacity: 1; }

/* 浅色展厅模式：顶部文字改深色保证可读 */
.hall3d.hall3d-cool .hall3d-brand span { color: rgba(60,56,48,.85); }
.hall3d.hall3d-cool .hall3d-intro { color: rgba(90,84,70,.72); text-shadow: none; }
.hall3d.hall3d-cool .hall3d-exit, .hall3d.hall3d-cool .hall3d-auto, .hall3d.hall3d-cool .hall3d-mood {
  color: rgba(70,66,58,.7); background: rgba(255,255,255,.5); border-color: rgba(0,0,0,.12);
}

/* 橱窗横幅上的设置按钮 */
.pf-hall-set {
  flex-shrink: 0; padding: 5px 11px; border-radius: 999px; cursor: pointer;
  font-size: 11px; color: var(--text-3);
  background: transparent; border: 1px dashed var(--line);
  transition: .2s;
}
.pf-hall-set:hover { color: var(--brand-gold); border-color: rgba(111,184,245,.5); }

/* 展厅设置弹窗 */
.hall-set-lights { display: flex; gap: 10px; margin-top: 7px; }
.hall-set-light {
  flex: 1; display: flex; flex-direction: column; gap: 3px; align-items: flex-start;
  padding: 10px 13px; border-radius: 12px; cursor: pointer; text-align: left;
  border: 1px solid var(--line); background: var(--surface-2, rgba(255,255,255,.03));
  transition: .2s;
}
.hall-set-light b { font-size: 12.5px; color: var(--text); }
.hall-set-light span { font-size: 10.5px; color: var(--text-3); }
.hall-set-light.on { border-color: var(--brand-gold); background: rgba(111,184,245,.08); }
.hall-set-light.on b { color: var(--brand-gold); }
.hall-set-pins { display: flex; gap: 9px; overflow-x: auto; margin-top: 7px; padding-bottom: 4px; }
.hall-set-pin {
  position: relative; flex: 0 0 auto; width: 64px; height: 64px;
  border-radius: 10px; overflow: hidden; cursor: pointer; padding: 0;
  border: 2px solid transparent; transition: .18s;
}
.hall-set-pin img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hall-set-pin.on { border-color: var(--brand-gold); }
.hall-set-pin-star {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 9px; text-align: center; padding: 2px 0;
  color: #fff; background: rgba(0,0,0,.45); letter-spacing: .05em;
}
.hall-set-pin.on .hall-set-pin-star { background: rgba(111,184,245,.85); }
.hall-set-empty { font-size: 11.5px; color: var(--text-3); }

/* 个人主页「作品画廊跑马」：与首页速览条同款，仅微调留白贴合主页卡片节奏 */
.pf-ticker { margin: 2px 16px 12px; }

/* 个人主页动态排序条：复用首页 .feed-sort/.fsort；水平留白与全站统一（20px），不再额外缩进 */
.pf-sort { margin: 0 0 10px; }

/* 个人主页用户公告跑马：与首页公告同款，贴合主页卡片留白 */
.pf-marquee { margin: 12px 16px 0; }

/* 个人主页标语条：品牌金描边（未设颜色时），与首页单行区块同款底型 */
.pf-motto { margin: 2px 16px 10px; border-color: color-mix(in srgb, var(--brand-gold, #6FB8F5) 46%, transparent); }
.pf-motto.tinted { border-color: var(--fbi-c, var(--accent)); }

/* ============================ 灵动视觉微交互 ============================ */
/* ① 页面切换过渡：内容渐显上浮 */
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.view.v-in { animation: viewIn .32s cubic-bezier(.2,.8,.25,1) both; }

/* ② 点赞：爱心弹跳 + 粒子飞散 */
@keyframes likePop { 0% { transform: scale(1); } 35% { transform: scale(1.45) rotate(-8deg); } 65% { transform: scale(.92); } 100% { transform: scale(1); } }
.pact-like.liked-pop svg { animation: likePop .5s cubic-bezier(.2,.8,.25,1); }
.heart-fly {
  position: fixed; z-index: 95; pointer-events: none;
  width: 16px; height: 16px; opacity: .95;
  animation: heartFly .78s cubic-bezier(.15,.6,.35,1) forwards;
}
.heart-fly svg { width: 100%; height: 100%; fill: currentColor; }
@keyframes heartFly {
  0% { transform: translate(0, 0) scale(.4); opacity: .95; }
  70% { opacity: .9; }
  100% { transform: translate(var(--fx), var(--fy)) scale(1.1); opacity: 0; }
}

/* ③ 主按钮金光扫过（hover / 点击反馈） */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.32), transparent);
  transform: skewX(-18deg); pointer-events: none;
}
.btn-primary:hover::after, .btn-primary:active::after {
  animation: goldSweep .7s ease;
}
@keyframes goldSweep { from { left: -80%; } to { left: 130%; } }

/* ④ 瀑布流卡片：hover 轻浮起 + 侧影加深（桌面端） */
@media (hover: hover) {
  .gal-card { transition: transform .28s cubic-bezier(.2,.8,.25,1), box-shadow .28s, border-color .28s; }
  .gal-card:hover { transform: translateY(-4px); }
}

/* ⑤ 底部导航切换：图标弹跳反馈 */
.tab.on svg { animation: tabBounce .34s cubic-bezier(.2,.8,.25,1); }
@keyframes tabBounce { 0% { transform: scale(1); } 45% { transform: scale(1.22) translateY(-2px); } 100% { transform: scale(1); } }

/* ============================ 视差 / 欢迎动画 / 设置行 ============================ */
/* 主页封面视差：初始放大留余量，滚动下沉由 JS 控制 */
.pf-parallax { overflow: hidden; }
.pf-parallax .pf-parallax-img { transform: scale(1.16); will-change: transform; transition: transform .08s linear; }

/* 外观弹窗：跟随系统 / 轻音效 设置行 */
.auto-theme-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; margin-bottom: 10px; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel);
  cursor: pointer; transition: .2s; text-align: left;
}
.auto-theme-row.on { border-color: rgba(111, 184, 245, .4); }
.auto-theme-txt { flex: 1; min-width: 0; }
.auto-theme-pill {
  flex: none; padding: 4px 10px; border-radius: 999px; font-size: 11px; letter-spacing: .04em;
  color: var(--text-3); border: 1px solid var(--line-2);
}
.auto-theme-row.on .auto-theme-pill { color: var(--accent); border-color: rgba(111, 184, 245, .45); background: rgba(111, 184, 245, .08); }

/* 首次进入欢迎开场：logo 汇聚亮起 + 品牌语，1.7s 后淡出 */
.welcome-overlay {
  position: fixed; inset: 0; z-index: 98;
  display: grid; place-items: center; align-content: center; gap: 18px;
  background: radial-gradient(ellipse at 50% 42%, rgba(28, 24, 14, .97), rgba(8, 8, 10, .99));
  animation: welcomeIn .5s ease both;
}
.welcome-logo {
  width: 84px; height: 84px; border-radius: 22px;
  box-shadow: 0 12px 48px rgba(111, 184, 245, .4), 0 0 0 2px rgba(111, 184, 245, .35);
  animation: logoGather .9s cubic-bezier(.2,.8,.25,1) both;
}
.welcome-ring {
  position: absolute; width: 150px; height: 150px; border-radius: 50%;
  border: 1px solid rgba(111, 184, 245, .3);
  animation: ringPulse 1.4s ease-out infinite;
}
.welcome-word { font-size: 13px; color: #D9C7A3; letter-spacing: .22em; animation: wordIn .8s .35s ease both; }
@keyframes logoGather { from { opacity: 0; transform: scale(.5) translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes wordIn { from { opacity: 0; letter-spacing: .5em; } to { opacity: 1; } }
@keyframes ringPulse { 0% { transform: scale(.75); opacity: .8; } 100% { transform: scale(1.25); opacity: 0; } }
.welcome-overlay.out { animation: welcomeOut .55s ease both; }
@keyframes welcomeOut { to { opacity: 0; } }

/* ==================== 灵动功能包 v2.24.0 ==================== */

/* ---- 发布表单：时间胶囊 + 共创接龙 ---- */
.compose-magic { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.magic-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid rgba(111,184,245,.25); border-radius: 12px; background: rgba(111,184,245,.05); cursor: pointer; }
.magic-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.magic-label svg { width: 15px; height: 15px; }
.magic-select { flex: 1; background: transparent; color: var(--ink); border: none; font-size: 13px; outline: none; }
.magic-select option { color: #222; background: #fff; }
.magic-check { width: 17px; height: 17px; accent-color: var(--accent); }
.magic-note { font-size: 12px; color: var(--ink-2, #999); }

/* ---- 发布弹窗：更多创作工具收纳区（v2.53.1） ----
   此前模板/AI/胶囊三段平铺十几个按钮，视觉过载。统一收进一张卡片：
   折叠态只有一行摘要；展开后内部条目沿用原有组件样式，不另起炉灶。 */
.compose-extras {
  margin: 2px 0 14px;
  border: 1px solid var(--line-2); border-radius: 14px;
  background: var(--bg-1); overflow: hidden;
  transition: border-color .2s;
}
.compose-extras-head {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 12px 14px; border: none; background: none; cursor: pointer;
  text-align: left; transition: background .2s;
}
.compose-extras-head:active { background: rgba(111,184,245,.05); }
.compose-extras-ico { display: inline-flex; color: var(--accent); flex: none; }
.compose-extras-ico svg { width: 15px; height: 15px; }
.compose-extras-title { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.compose-extras-sub {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 11.5px; color: var(--text-3);
}
.compose-extras-badge {
  flex: none; padding: 1.5px 8px; border-radius: 99px;
  font-size: 10.5px; font-weight: 600;
  color: var(--accent); background: rgba(111,184,245,.14);
  border: 1px solid rgba(111,184,245,.32);
}
.compose-extras-chev { display: inline-flex; color: var(--text-3); flex: none; transition: transform .25s; }
.compose-extras-chev svg { width: 14px; height: 14px; }
.compose-extras-head.open .compose-extras-chev { transform: rotate(180deg); }
.compose-extras-body {
  padding: 2px 14px 14px; border-top: 1px solid var(--line-2);
  animation: fadeIn .22s both;
}
.compose-extras-body .field { margin-bottom: 10px; }
.compose-extras-body .compose-covenant { margin: 10px 0 0; }

/* 作品保护设置折叠卡：body 就是 vp-field，补内边距与分隔线（与 extras-body 视觉一致） */
.compose-extras-protect { margin: 0 0 14px; }
.compose-extras-protect > .vp-field {
  padding: 2px 14px 14px; border-top: 1px solid var(--line-2);
  margin: 0;
}
.compose-extras-protect > .vp-field.hidden { display: none; }

/* ---- 详情页：朗读条 ---- */
.tts-bar { display: flex; align-items: center; gap: 10px; margin: 10px 16px 0; padding: 10px 12px; border: 1px dashed rgba(111,184,245,.35); border-radius: 12px; background: rgba(111,184,245,.04); }
.tts-btn svg { width: 14px; height: 14px; }
.tts-note { font-size: 12px; color: var(--ink-2, #999); }

/* ---- 详情页：时间胶囊封存徽标 ---- */
.capsule-seal { display: flex; align-items: center; gap: 8px; margin: 10px 16px 0; padding: 10px 12px; border-radius: 12px; background: linear-gradient(120deg, rgba(111,184,245,.14), rgba(111,184,245,.05)); border: 1px solid rgba(111,184,245,.4); color: var(--accent); font-size: 13px; }
.capsule-seal svg { width: 16px; height: 16px; flex: none; }

/* ---- 详情页：共创接龙 ---- */
.relay-box { margin: 14px 16px 0; padding: 12px; border: 1px solid rgba(111,184,245,.3); border-radius: 14px; background: rgba(111,184,245,.04); }
.relay-head { display: flex; align-items: center; gap: 7px; font-weight: 700; color: var(--accent); font-size: 14px; margin-bottom: 10px; }
.relay-head svg { width: 16px; height: 16px; }
.relay-list { display: flex; flex-direction: column; gap: 8px; }
.relay-item { padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid rgba(111,184,245,.14); }
.relay-item-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.relay-who { font-size: 12px; font-weight: 700; color: var(--accent); }
.relay-time { font-size: 11px; color: var(--ink-2, #999); }
.relay-text { font-size: 13.5px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.relay-input-row { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.relay-input { flex: 1; min-height: 64px; resize: vertical; padding: 9px 10px; border-radius: 10px; border: 1px solid rgba(111,184,245,.3); background: rgba(0,0,0,.18); color: var(--ink); font-size: 13.5px; font-family: inherit; outline: none; }
.relay-input:focus { border-color: var(--accent); }

/* ---- 主页：声音签名 ---- */
.pf-voice-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.pf-voice-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(111,184,245,.5); background: rgba(111,184,245,.1); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.pf-voice-btn:hover { background: rgba(111,184,245,.22); }
.pf-voice-btn svg { width: 16px; height: 16px; }
.pf-voice-note { font-size: 12.5px; color: var(--ink-2, #999); }

/* ---- 主页：成就徽章墙 ---- */
.pf-badges { margin: 12px 16px 0; padding: 12px; border: 1px solid rgba(111,184,245,.25); border-radius: 14px; background: linear-gradient(160deg, rgba(111,184,245,.06), transparent 55%); }
.pf-badges-head { font-size: 12.5px; font-weight: 700; color: var(--accent); margin-bottom: 9px; letter-spacing: .5px; }
.pf-badges-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; font-size: 11.5px; border: 1px solid rgba(255,255,255,.08); color: var(--ink-2, #888); opacity: .5; }
.pf-badge svg { width: 13px; height: 13px; }
.pf-badge.earned { opacity: 1; color: var(--accent); border-color: rgba(111,184,245,.5); background: rgba(111,184,245,.1); box-shadow: 0 1px 6px rgba(111,184,245,.15); }

/* ---- 首页：每日灵感卡 ---- */
.inspire-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 16px 0; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(111,184,245,.35); background: linear-gradient(140deg, rgba(111,184,245,.12), rgba(111,184,245,.03) 60%, transparent); }
.inspire-main { min-width: 0; }
.inspire-kicker { font-size: 11px; letter-spacing: 1px; color: var(--accent); font-weight: 700; margin-bottom: 3px; }
.inspire-title { font-size: 14.5px; font-weight: 700; margin-bottom: 2px; }
.inspire-tip { font-size: 12px; color: var(--ink-2, #999); }
.inspire-acts { display: flex; align-items: center; gap: 6px; flex: none; }
.inspire-close { width: 26px; height: 26px; border-radius: 50%; border: none; background: transparent; color: var(--ink-2, #999); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.inspire-close svg { width: 14px; height: 14px; }
.inspire-close:hover { color: var(--ink); background: rgba(255,255,255,.06); }

/* ---- 首页：那年今天 ---- */
.memory-card { margin: 10px 16px 0; padding: 11px 13px; border-radius: 14px; border: 1px dashed rgba(111,184,245,.45); background: rgba(111,184,245,.05); }
.memory-head { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.memory-head svg { width: 14px; height: 14px; }
.memory-list { display: flex; flex-direction: column; gap: 6px; }
.memory-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.memory-txt { font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Ctrl+K 命令面板 ---- */
.cmdk { min-width: 320px; }
.cmdk-sub { font-size: 12px; color: var(--ink-2, #999); margin: 4px 0 10px; }
.cmdk-input { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(111,184,245,.4); background: rgba(0,0,0,.2); color: var(--ink); font-size: 14px; outline: none; }
.cmdk-input:focus { border-color: var(--accent); }
.cmdk-list { margin-top: 8px; max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.cmdk-row { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 9px; cursor: pointer; font-size: 13.5px; }
.cmdk-row:hover { background: rgba(111,184,245,.1); }
.cmdk-row svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.cmdk-hint { margin-left: auto; font-size: 11px; color: var(--ink-2, #888); }

/* 画廊模式修正：.feed-grid .post 的 margin:0 会连带命中画廊单列文字卡，
   导致帖子与瀑布流金框左右不对齐——画廊模式下统一对齐到工具条 20px 边缘 */
.feed-grid.is-gallery .post { margin: 16px 20px 0; }

/* ---- 积分抽奖 ---- */
.lottery-sub { font-size: 12px; color: var(--ink-2, #999); margin: 4px 0 14px; line-height: 1.5; }
.lottery-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 10px 0 4px; }
.lottery-dial { width: 128px; height: 128px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 3px solid rgba(111,184,245,.6);
  background: radial-gradient(circle at 50% 38%, rgba(111,184,245,.28), rgba(111,184,245,.06) 62%, transparent);
  box-shadow: 0 0 26px rgba(111,184,245,.22), inset 0 0 18px rgba(111,184,245,.14); }
.lottery-dial svg { width: 44px; height: 44px; color: var(--accent); }
.lottery-dial.spinning { animation: lotterySpin .7s linear infinite; }
@keyframes lotterySpin { to { transform: rotate(360deg); } }
.lottery-go { padding: 11px 42px; border-radius: 999px; border: none; cursor: pointer; font-size: 15px; font-weight: 800; letter-spacing: 2px;
  color: #241c08; background: linear-gradient(160deg, #ecd28a, var(--accent)); box-shadow: 0 4px 18px rgba(111,184,245,.4); }
.lottery-go:disabled { opacity: .6; }
.lottery-result { margin-top: 12px; }
.lottery-prize { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px;
  border: 1px solid rgba(111,184,245,.5); background: rgba(111,184,245,.1); color: var(--accent); font-size: 14.5px; font-weight: 700; }
.lottery-prize svg { width: 18px; height: 18px; }
.lottery-pool-title { font-size: 12px; font-weight: 700; color: var(--accent); margin: 14px 0 6px; letter-spacing: 1px; }
.lottery-pool-row, .lottery-hist-row { display: flex; justify-content: space-between; padding: 7px 2px; font-size: 13px; border-bottom: 1px dashed rgba(111,184,245,.15); }
.lottery-pool-pct { color: var(--accent); }
.lottery-hist-empty { font-size: 12.5px; color: var(--ink-2, #999); padding: 6px 0; }
.lottery-hist-time { font-size: 11.5px; color: var(--ink-2, #999); }

/* ---- v2.24.2 宽度统一：瀑布流 / 帖子卡 / 工具条按钮三者边缘对齐（20px） ---- */
.pf-page .post, .profile-root .post { margin-left: 20px; margin-right: 20px; }
.gal-textlist .post { margin-left: 20px !important; margin-right: 20px !important; }

/* ==================== v2.25.0 特色功能包 ==================== */
/* 投票卡 */
.poll-box { margin: 16px 20px 0; padding: 14px; border: 1px solid var(--line, rgba(255,255,255,.1)); border-radius: 14px; background: var(--card-bg, rgba(255,255,255,.03)); }
.poll-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 600; }
.poll-title { font-size: 14px; }
.poll-opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; cursor: pointer; overflow: hidden; margin-bottom: 8px; background: rgba(255,255,255,.04); transition: transform .15s; }
.poll-opt:active { transform: scale(.98); }
.poll-opt.mine { outline: 1px solid var(--accent, #f5d67b); }
.poll-bar { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(245,214,123,.25), rgba(245,214,123,.08)); transition: width .4s ease; }
.poll-label, .poll-meta { position: relative; font-size: 13px; }
.poll-meta { color: var(--text-3, #999); font-size: 12px; white-space: nowrap; }
.poll-total { font-size: 12px; color: var(--text-3, #999); margin-top: 2px; }

/* 语音评论 */
.comment-voice .comment-voice-au { width: min(320px, 100%); height: 36px; }
.composer-media.recording { animation: pulse-rec 1s infinite; color: #ff5a7a; }
@keyframes pulse-rec { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* 年度报告 */
.annual-modal { max-width: 420px; }
.annual-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.annual-hero, .annual-kw, .annual-top { grid-column: 1 / -1; }
.annual-hero { text-align: center; padding: 18px 0 8px; }
.annual-year { font-size: 20px; font-weight: 700; color: var(--accent, #f5d67b); }
.annual-motto { font-size: 13px; color: var(--text-3, #999); margin-top: 4px; }
.annual-stat { text-align: center; padding: 14px 6px; border-radius: 12px; background: rgba(255,255,255,.04); }
.annual-stat b { display: block; font-size: 22px; }
.annual-stat span { font-size: 12px; color: var(--text-3, #999); }
.annual-kw-label { display: block; font-size: 12px; color: var(--text-3, #999); margin-bottom: 6px; }
.annual-kw-row { display: flex; gap: 8px; flex-wrap: wrap; }
.annual-kw-row b { padding: 4px 12px; border-radius: 999px; background: rgba(245,214,123,.15); color: var(--accent, #f5d67b); font-size: 13px; }
.annual-top { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); }
.annual-top-title { font-size: 14px; font-weight: 600; }
.annual-top-meta { font-size: 12px; color: var(--text-3, #999); }
.annual .btn { width: 100%; margin-top: 14px; }

/* 同好发现 */
.peers { display: flex; flex-direction: column; gap: 8px; }
.peer-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.04); }
.peer-info { flex: 1; min-width: 0; }
.peer-name { font-weight: 600; font-size: 14px; }
.peer-topics { font-size: 12px; color: var(--text-3, #999); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 深夜护眼 */
body.night-dim::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999; background: rgba(20, 10, 40, .18); mix-blend-mode: multiply; }
.dim-opt { display: flex; align-items: center; padding: 12px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; margin-top: 8px; background: rgba(255,255,255,.04); }
.dim-opt.on { border-color: var(--accent, #f5d67b); }
.dim-opt-body b { display: block; font-size: 14px; }
.dim-opt-body span { font-size: 12px; color: var(--text-3, #999); }

/* 等级权益 */
.perk-list { display: flex; flex-direction: column; gap: 8px; }
.perk-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); opacity: .55; }
.perk-row.got { opacity: 1; border: 1px solid rgba(245,214,123,.35); }
.perk-lv { font-weight: 700; color: var(--accent, #f5d67b); font-size: 13px; min-width: 42px; }
.perk-body { flex: 1; min-width: 0; }
.perk-body b { display: block; font-size: 13px; }
.perk-body span { font-size: 12px; color: var(--text-3, #999); }
.perk-tag { font-size: 11px; color: var(--text-3, #999); white-space: nowrap; }
.perk-row.got .perk-tag { color: var(--accent, #f5d67b); }

/* 滚动进度条 */
#scrollProgress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--accent, #f5d67b), #ff9d5c); z-index: 10000; border-radius: 0 3px 3px 0; transition: width .1s linear; }

/* 生日彩带 */
.cake-bit { position: fixed; top: -12px; width: 8px; height: 14px; border-radius: 2px; z-index: 10001; pointer-events: none; animation: cake-fall linear forwards; }
@keyframes cake-fall { to { transform: translateY(110vh) rotate(540deg); } }

/* ==================== v2.26.0 社交特色包 ==================== */
/* 闪现帖/系列 */
.flash-seal { border-color: rgba(255,122,89,.5); }
.series-chip { display: flex; align-items: center; gap: 6px; margin: 12px 20px 0; padding: 8px 12px; border-radius: 999px; background: rgba(122,184,255,.12); color: #7ab8ff; font-size: 13px; width: fit-content; }
.bookbag-btn { margin: 12px 20px 0; display: block; width: calc(100% - 40px); text-align: left; }

/* Profile 系列与周榜 */
.pf-extra { margin: 12px 20px 0; display: flex; flex-direction: column; gap: 10px; }
.rocket-badge { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: linear-gradient(90deg, rgba(245,214,123,.18), rgba(255,157,92,.08)); border: 1px solid rgba(245,214,123,.4); font-size: 13px; font-weight: 600; }
.pf-series-head { font-size: 13px; color: var(--text-3, #999); }
.pf-series-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); }
.pf-series-info { flex: 1; min-width: 0; }
.pf-series-info b { font-size: 14px; display: block; }
.pf-series-meta { font-size: 12px; color: var(--text-3, #999); }

/* 表情包 */
.stk-panel { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; margin: 6px 12px 0; border-radius: 12px; background: rgba(255,255,255,.05); }
.stk-item { width: 44px; height: 44px; padding: 2px; border-radius: 10px; background: transparent; border: none; cursor: pointer; }
.stk-item:hover { background: rgba(255,255,255,.08); }
.stk-item img { width: 100%; height: 100%; }
.ubb-sticker { width: 72px; height: 72px; vertical-align: middle; margin: 2px; }

/* 离线书袋 */
.bookbag-modal .bb-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.04); margin-top: 8px; }
.bb-info { flex: 1; min-width: 0; }
.bb-info b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-meta { font-size: 12px; color: var(--text-3, #999); }
.bb-content { font-size: 14px; line-height: 1.7; white-space: pre-wrap; max-height: 55vh; overflow: auto; margin-top: 10px; }

/* ============ v2.27 效率与彩蛋包 ============ */
/* AI 摘要金句卡弹窗 */
.summary-card-modal .sum-text { font-size: 14px; line-height: 1.7; margin: 10px 0; white-space: pre-wrap; }
.summary-card-modal .sum-quote { margin: 12px 0; padding: 10px 14px; border-left: 3px solid var(--accent, #7cf2c0); background: rgba(127,255,200,.06); border-radius: 8px; font-size: 13.5px; }
/* 版本历史 */
.revisions-modal .rev-list { max-height: 46vh; overflow: auto; margin: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.rev-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: rgba(127,127,127,.07); border-radius: 10px; }
.rev-row .rev-meta { font-size: 11px; color: var(--text-3, #889); min-width: 118px; }
.rev-row .rev-snip { flex: 1; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 语音随笔 */
.muse-modal .muse-rec { width: 100%; padding: 12px; font-size: 15px; margin: 10px 0 6px; }
.muse-modal .muse-st { font-size: 12px; margin-bottom: 10px; min-height: 18px; }
.muse-modal .muse-input { width: 100%; min-height: 56px; padding: 10px; border-radius: 10px; border: 1px solid rgba(127,127,127,.25); background: rgba(127,127,127,.06); color: inherit; font-size: 13px; resize: vertical; margin-bottom: 8px; }
.muse-list { margin-top: 10px; max-height: 38vh; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.muse-row { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; background: rgba(127,127,127,.07); border-radius: 10px; }
.muse-row .muse-text { flex: 1; }
.muse-row .muse-time { font-size: 10.5px; color: var(--text-3, #889); }
.muse-row p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; }
/* 写作目标 */
.goal-modal .goal-label { font-size: 12.5px; color: var(--text-2, #aab); }
.goal-modal .goal-input { width: 100px; padding: 8px 10px; margin: 8px 0 12px; border-radius: 10px; border: 1px solid rgba(127,127,127,.25); background: rgba(127,127,127,.06); color: inherit; font-size: 15px; }
.goal-progress { margin: 12px 0; }
.goal-bar { height: 10px; border-radius: 6px; background: rgba(127,127,127,.15); overflow: hidden; }
.goal-bar-in { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #7cf2c0, #4cc9f0); transition: width .4s; }
/* 词云墙 */
.wordwall-cv { width: 100%; border-radius: 12px; background: rgba(10,14,30,.55); margin: 10px 0; }
.ww-row { display: flex; gap: 8px; }
.ww-input { flex: 1; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(127,127,127,.25); background: rgba(127,127,127,.06); color: inherit; font-size: 13px; }
/* 漂流瓶 */
.bottle-modal .bottle-input { width: 100%; min-height: 64px; padding: 10px; border-radius: 10px; border: 1px solid rgba(127,127,127,.25); background: rgba(127,127,127,.06); color: inherit; font-size: 13px; resize: vertical; margin: 8px 0; }
.bottle-show { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.bottle-text { margin: 0; padding: 12px 14px; border-left: 3px solid #4cc9f0; background: rgba(76,201,240,.08); border-radius: 8px; font-size: 13.5px; line-height: 1.6; }
.bottle-mine { padding: 10px 12px; background: rgba(127,127,127,.07); border-radius: 10px; }
.bottle-mine .bottle-reply { margin: 4px 0 0 12px; font-size: 12.5px; color: var(--text-2, #aab); }
/* 评论置顶标记 */
.comment-pin-tag { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 8px; font-size: 10.5px; font-style: normal; background: rgba(255,212,121,.16); color: #ffd479; border: 1px solid rgba(255,212,121,.35); }
/* 快捷回复短语 */
.qp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.qp-chip { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; border: 1px solid rgba(127,127,127,.28); background: rgba(127,127,127,.07); color: var(--text-2, #aab); cursor: pointer; }
.qp-chip:active { background: rgba(124,242,192,.15); }
.qp-chip.qp-edit { min-width: 30px; }
/* 智能降噪：已读卡片折叠 */
.dn-fold { position: relative; max-height: 74px; overflow: hidden; opacity: .55; filter: grayscale(.4); cursor: pointer; }
.dn-fold .dn-tag { position: absolute; inset: auto 0 0 0; padding: 4px 12px; font-size: 11px; color: var(--text-3, #889); background: linear-gradient(transparent, rgba(0,0,0,.25)); pointer-events: none; }
/* 浮窗播放条 */
.tts-float { position: fixed; left: 50%; transform: translateX(-50%); bottom: 74px; z-index: 900; display: flex; align-items: center; gap: 10px; max-width: min(92vw, 420px); padding: 8px 12px; border-radius: 999px; background: rgba(18,22,40,.92); color: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.35); backdrop-filter: blur(8px); }
.tts-float-txt { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tts-float-stop { border: none; background: rgba(255,255,255,.14); color: #fff; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: 11px; }
/* 合租搭档标识 */
.coll-partner { color: #7cf2c0 !important; }
/* 节气皮肤：按季节给界面一层极淡的环境色调（不用 body filter——
   移动端浏览器上 body 滤镜会破坏 backdrop-filter / 固定定位图层，导致灯箱白屏） */
body.solar-spring::after, body.solar-summer::after, body.solar-autumn::after, body.solar-winter::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .05;
}
.solar-lichun, .solar-yushui, .solar-jingzhe, .solar-chunfen, .solar-qingming, .solar-guyu { --solar-tint: 120, 240, 170; }
.solar-lixia, .solar-xiaoman, .solar-mangzhong, .solar-xiazhi, .solar-xiaoshu, .solar-dashu { --solar-tint: 255, 200, 110; }
.solar-liqiu, .solar-chushu, .solar-bailu, .solar-qiufen, .solar-hanlu, .solar-shuangjiang { --solar-tint: 255, 170, 100; }
.solar-lidong, .solar-xiaoxue, .solar-daxue, .solar-dongzhi, .solar-xiaohan, .solar-dahan { --solar-tint: 130, 180, 255; }
body[class*="solar-"]::after { background: radial-gradient(ellipse at 50% 0%, rgb(var(--solar-tint, 130, 180, 255)), transparent 70%); }
/* 评论框：按钮不压缩、输入框可收缩，发送按钮永不被挤出屏幕 */
.composer-row { flex-wrap: nowrap; }
.composer-row > button, .composer-row > .btn-sm { flex-shrink: 0; }
.composer-row input { min-width: 0; width: auto; }
/* 快捷短语：单行横滑，不再撑高回复区 */
.qp-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 2px; }
.qp-chips::-webkit-scrollbar { display: none; }
.qp-chip { white-space: nowrap; flex-shrink: 0; }
/* 常用语自定义弹窗 */
.qp-edit-ta { width: 100%; min-height: 120px; padding: 10px; border-radius: 10px; border: 1px solid rgba(127,127,127,.25); background: rgba(127,127,127,.06); color: inherit; font-size: 13px; resize: vertical; margin-top: 10px; }
/* 灯箱图片加载失败兜底 */
.gal-lb-fallback { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text-2, #aab); font-size: 13px; background: rgba(255,255,255,.04); border: 1px dashed rgba(127,127,127,.3); border-radius: 14px; padding: 28px 30px; }
.gal-lb-fallback div { font-size: 34px; }

/* ==================== v2.28 派域大派对包 ==================== */
/* 夜航帖徽标 */
.night-seal { background: linear-gradient(90deg, rgba(64,52,120,.5), rgba(30,30,64,.35)); }
/* 接龙成书按钮 */
.relay-book-btn { margin-top: 8px; }
/* 读者竞猜 */
.guess-box { margin: 14px 16px; padding: 14px; border-radius: 14px; background: rgba(127,127,255,.07); border: 1px solid rgba(127,127,255,.22); }
.guess-title { font-size: 14px; }
.guess-pool { font-size: 12px; color: var(--text-2, #aab); margin: 6px 0 10px; }
.guess-list { display: flex; flex-direction: column; gap: 8px; }
.guess-opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 10px; background: rgba(127,127,127,.08); overflow: hidden; font-size: 13px; }
.guess-opt.mine { outline: 1px solid rgba(120,220,160,.55); }
.guess-opt.win { outline: 1.5px solid rgba(240,200,90,.8); }
.guess-opt-row { display: flex; gap: 8px; margin: 6px 0; }
.guess-opt-row input { flex: 1; min-width: 0; }
.guess-modal input, .guess-modal select { width: 100%; margin: 6px 0; }
/* 寻宝谜题 */
.treasure-box { margin: 14px 16px; padding: 14px; border-radius: 14px; background: rgba(200,150,60,.08); border: 1px solid rgba(200,150,60,.3); }
.treasure-title { font-size: 14px; }
.treasure-q { font-size: 13px; margin: 8px 0; }
.treasure-input-row { display: flex; gap: 8px; margin-top: 8px; }
.treasure-input-row input { flex: 1; min-width: 0; }
.treasure-wins { margin: 6px 0; }
.treasure-win-row { font-size: 12px; color: var(--text-2, #aab); }
.treasure-won { display: inline-block; margin-top: 6px; }
.treasure-modal input { width: 100%; margin: 6px 0; }
/* 里程碑 */
.ms-box { margin: 14px 16px 4px; }
.ms-title { font-size: 12px; color: var(--text-2, #aab); margin-bottom: 6px; }
.ms-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-chip { font-size: 11px; }
/* AI 配图 */
.illu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.illu-cell { border-radius: 12px; overflow: hidden; cursor: pointer; border: 2px solid transparent; }
.illu-cell:active { border-color: var(--accent, #7cf); }
.illu-cell img { width: 100%; display: block; }
/* 写作 PK 台 */
.pk-card { border-radius: 14px; background: rgba(127,127,127,.06); padding: 12px; margin: 10px 0; }
.pk-card.done { opacity: .75; }
.pk-topic { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.pk-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pk-side { padding: 10px; border-radius: 10px; background: rgba(127,127,127,.08); font-size: 12px; }
.pk-side.win { outline: 1.5px solid rgba(240,200,90,.75); }
.pk-side-title { font-weight: 600; margin-bottom: 4px; }
.pk-side-meta { color: var(--text-2, #aab); }
.pk-result { margin-top: 8px; font-size: 12px; color: var(--gold, #e8c76a); }
.pk-pick-list { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; }
.pk-pick-row { text-align: left; padding: 10px 12px; border-radius: 10px; background: rgba(127,127,127,.07); border: 0; color: inherit; font-size: 13px; }
/* 盲盒 */
.blindbox-modal { text-align: center; }
.blindbox-gift { font-size: 64px; margin: 18px 0; }
.blindbox-gift.shaking { animation: bb-shake .5s infinite; }
@keyframes bb-shake { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.blindbox-title { font-size: 15px; font-weight: 600; margin: 8px 0 4px; }
.blindbox-meta { font-size: 12px; color: var(--text-2, #aab); margin-bottom: 10px; }
/* 同城书友 / 师徒公用输入行 */
.nb-set-row { display: flex; gap: 8px; margin: 10px 0; }
.nb-set-row input { flex: 1; min-width: 0; }
.nb-user { padding: 10px 12px; border-radius: 10px; background: rgba(127,127,127,.06); margin: 8px 0; font-size: 13px; cursor: pointer; }
.nb-name { font-weight: 600; }
.nb-meta { font-size: 12px; color: var(--text-2, #aab); margin-top: 2px; }
/* 师徒 */
.mentor-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(127,127,127,.06); margin: 8px 0; font-size: 13px; }
.mentor-acts { display: flex; gap: 6px; }
/* 时光慢递 */
.slowletter-opts { display: flex; gap: 8px; margin: 10px 0; }
.slowletter-opts select { flex: 1; min-width: 0; }
.slowletter-card { padding: 10px 12px; border-radius: 10px; background: rgba(127,127,127,.06); margin: 8px 0; font-size: 13px; }
.slowletter-meta { font-size: 11.5px; color: var(--text-2, #aab); margin-top: 4px; }
/* 创作树 */
.garden-modal { text-align: center; }
.garden-tree { font-size: 72px; margin: 16px 0 8px; }
.garden-stage { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.garden-bar { height: 8px; border-radius: 4px; background: rgba(127,127,127,.15); overflow: hidden; margin: 8px 0; }
.garden-bar i { display: block; height: 100%; background: linear-gradient(90deg, #58c98b, #9ddc6e); border-radius: 4px; }
/* 一周一问 */
.weeklyq-question { font-size: 14px; font-weight: 600; padding: 12px; border-radius: 12px; background: rgba(127,127,255,.08); margin: 10px 0; }
.weeklyq-mine { padding: 12px; border-radius: 12px; background: rgba(88,201,139,.1); margin: 10px 0; font-size: 13px; }
.weeklyq-wall { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow: auto; }
.weeklyq-card { padding: 10px 12px; border-radius: 10px; background: rgba(127,127,127,.06); font-size: 13px; }
.weeklyq-meta { font-size: 11.5px; color: var(--text-2, #aab); margin-top: 4px; }

/* ==================== v2.29 城市漫游包 ==================== */
/* 段评弹幕 */
.danmaku-wrap { position: relative; }
.danmaku-bar { display: flex; align-items: center; gap: 8px; margin: 10px 16px 0; padding: 8px 10px; border-radius: 12px; background: rgba(127,127,255,.08); border: 1px solid rgba(127,127,255,.2); }
.danmaku-label { font-size: 12px; font-weight: 600; flex-shrink: 0; }
.danmaku-strip { flex: 1; display: flex; gap: 6px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.danmaku-strip::-webkit-scrollbar { display: none; }
.danmaku-chip { flex-shrink: 0; font-size: 11.5px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.1); animation: dm-in .4s ease; }
@keyframes dm-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.danmaku-send { flex-shrink: 0; }
.danmaku-modal input, .danmaku-modal select { width: 100%; margin: 6px 0; }
/* 接龙大逃杀 */
.br-status { padding: 12px; border-radius: 12px; background: rgba(255,120,90,.1); border: 1px solid rgba(255,120,90,.3); margin: 10px 0; }
.br-status.done { background: rgba(240,200,90,.1); border-color: rgba(240,200,90,.35); }
.br-meta { display: block; font-size: 12px; color: var(--text-2, #aab); margin-top: 4px; }
.br-past, .br-entry { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 10px; background: rgba(127,127,127,.06); margin: 6px 0; font-size: 13px; }
.br-entry { flex-direction: column; align-items: stretch; }
.br-entry-meta { font-size: 11px; color: var(--text-2, #aab); }
.br-entry-text { font-size: 13px; margin-top: 2px; }
/* 风格改写 */
.restyle-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.restyle-preview { min-height: 110px; max-height: 220px; overflow: auto; padding: 12px; border-radius: 12px; background: rgba(127,127,127,.07); font-size: 13.5px; line-height: 1.7; white-space: pre-wrap; margin: 8px 0; }
/* 今日词条 */
/* v2.56.2 今日词条弹窗美化：词卡改冰蓝霜面、字号收敛；输入框/按钮/词墙头统一玻璃风 */
.dailyword-title { font-size: 17px; }
.dailyword-sub { font-size: 11.5px; }
.dailyword-word {
  font-size: 20px; font-weight: 700; text-align: center; padding: 16px 14px;
  border-radius: 14px; margin: 12px 0;
  background:
    linear-gradient(180deg, rgba(190, 226, 255, .09), rgba(120, 180, 245, .04) 60%, transparent),
    var(--glass-bg, rgba(18, 30, 48, .6));
  border: 1px solid var(--glass-line, rgba(150, 210, 255, .16));
  box-shadow: inset 0 1px 0 var(--glass-hi, rgba(220, 240, 255, .2));
  letter-spacing: .04em;
}
.dailyword-input {
  width: 100%; min-height: 84px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--accent-line, rgba(120, 195, 255, .38));
  background: rgba(111, 184, 245, .07);
  color: inherit; font-size: 13.5px; line-height: 1.65; resize: vertical;
  margin: 4px 0 10px; box-sizing: border-box;
}
.dailyword-input::placeholder { color: var(--text-3, #93A9C4); }
.dailyword-input:focus { outline: none; border-color: var(--accent, #6FB8F5); box-shadow: 0 0 0 3px rgba(111, 184, 245, .14); }
.dailyword-go { width: 100%; padding: 10px 0; font-size: 13.5px; border-radius: 12px; }
.dailyword-wall-head {
  margin: 14px 0 8px; font-size: 11.5px; letter-spacing: .08em;
  color: var(--text-2, #93A9C4); display: flex; align-items: center; gap: 6px;
}
/* 写作基因 */
.gene-modal { text-align: center; }
.gene-cv-wrap { border-radius: 14px; overflow: hidden; margin: 10px 0; }
.gene-cv { width: 100%; display: block; }

/* ==================== v2.29.1 合规护栏 ==================== */
.odds-toggle { margin: 4px 0 0; }
.odds-box { display: none; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(127,127,127,.07); text-align: left; }
.odds-box.open { display: block; }
.odds-rule { font-size: 11.5px; color: var(--text-2, #aab); margin: 4px 0; line-height: 1.6; }

/* ==================== v2.30 深夜咖啡馆包 ==================== */
/* 节气邮票 */
.stamp-chip { display: inline-flex; margin: 10px 16px 0; }
.stamp-seal { font-size: 11.5px; padding: 4px 10px; border-radius: 6px; border: 1.5px dashed rgba(240,200,90,.7); color: var(--gold, #e8c76a); background: rgba(240,200,90,.08); transform: rotate(-2deg); }
/* 追更书架 */
.shelf-card { padding: 12px; border-radius: 12px; background: rgba(127,127,127,.06); margin: 10px 0; font-size: 13px; }
.shelf-name { font-weight: 600; }
.shelf-meta { font-size: 11.5px; color: var(--text-2, #aab); margin: 4px 0; }
.shelf-latest { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; background: rgba(127,127,255,.08); margin: 6px 0; font-size: 12.5px; }
/* 创作塔罗 */
.tarot-modal { text-align: center; }
.tarot-stage { display: flex; justify-content: center; margin: 20px 0; }
.tarot-card { width: 150px; height: 230px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; transition: transform .3s ease; }
.tarot-card.back { background: linear-gradient(135deg, #2a1f4d, #0b3d2e); border: 1.5px solid rgba(240,200,90,.5); }
.tarot-back-mark { font-size: 44px; color: rgba(240,200,90,.8); }
.tarot-card.front { background: linear-gradient(160deg, #1a1040, #0b3d2e); border: 1.5px solid rgba(240,200,90,.8); }
.tarot-card.flipping { transform: rotateY(90deg) scale(.9); }
.tarot-name { font-size: 22px; font-weight: 700; color: #ffd76e; }
.tarot-msg { font-size: 13px; color: rgba(255,255,255,.85); padding: 0 12px; }
.tarot-result { margin-top: 8px; }
.tarot-prompt { font-size: 13.5px; padding: 12px; border-radius: 12px; background: rgba(255,215,110,.1); margin-bottom: 8px; }
/* 断点续写 */
.resume-card { padding: 12px; border-radius: 12px; background: rgba(127,127,127,.06); margin: 10px 0; font-size: 13px; }
.resume-title { font-weight: 600; }
.resume-snippet { font-size: 12px; color: var(--text-2, #aab); margin: 4px 0; }
.resume-meta { font-size: 11.5px; color: var(--gold, #e8c76a); }
.resume-card .btn-sm { margin-top: 6px; }
/* 写作热力图 */
.heat-grid { display: grid; grid-template-columns: repeat(26, 1fr); gap: 3px; margin: 12px 0; }
.heat-cell { width: 100%; aspect-ratio: 1; border-radius: 2px; background: rgba(127,127,127,.12); display: inline-block; }
.heat-cell.lv1 { background: rgba(88,201,139,.35); }
.heat-cell.lv2 { background: rgba(88,201,139,.6); }
.heat-cell.lv3 { background: rgba(88,201,139,.85); }
.heat-cell.lv4 { background: #58c98b; }
.heat-legend { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-2, #aab); }
.heat-legend .heat-cell { width: 12px; }
/* 著作等身墙 */
.wall-modal { text-align: center; }
.wall-chars { font-size: 30px; font-weight: 700; color: #ffd76e; margin: 12px 0; }
.wall-book { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 12.5px; }
.wall-book-name { width: 84px; text-align: left; flex-shrink: 0; }
.wall-book-bar { flex: 1; height: 10px; border-radius: 5px; background: rgba(127,127,127,.12); overflow: hidden; }
.wall-book-bar i { display: block; height: 100%; background: linear-gradient(90deg, #58c98b, #9ddc6e); border-radius: 5px; }
.wall-book-copies { width: 52px; text-align: right; flex-shrink: 0; color: var(--text-2, #aab); }
/* 节气邮票册 */
.stamps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.stamp-cell { padding: 10px 4px; border-radius: 10px; background: rgba(127,127,127,.07); text-align: center; opacity: .45; }
.stamp-cell.got { opacity: 1; outline: 1.5px dashed rgba(240,200,90,.6); background: rgba(240,200,90,.08); }
.stamp-term { font-size: 13px; font-weight: 600; }
.stamp-count { font-size: 11px; color: var(--text-2, #aab); margin-top: 2px; }

/* ═══════ v2.31 时间胶囊包 ═══════ */
/* ① 给未来的信 */
.fl-input { width: 100%; box-sizing: border-box; padding: 10px 12px; margin: 6px 0; border: 1px solid var(--line, rgba(255,255,255,.14)); border-radius: 10px; background: rgba(255,255,255,.05); color: inherit; font-size: 14px; }
.fl-textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; margin: 6px 0; border: 1px solid var(--line, rgba(255,255,255,.14)); border-radius: 10px; background: rgba(255,255,255,.05); color: inherit; font-size: 14px; resize: vertical; font-family: inherit; }
.fl-days { display: flex; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.fl-day { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line, rgba(255,255,255,.18)); background: transparent; color: inherit; cursor: pointer; font-size: 13px; }
.fl-day.on { background: linear-gradient(135deg, #7c5cff, #4a90d9); color: #fff; border-color: transparent; }
.fl-send { display: block; width: 100%; margin-top: 10px; padding: 10px; }
.fl-card { border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 12px; padding: 12px; margin: 8px 0; }
.fl-card.locked { opacity: .85; background: repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 8px, transparent 8px 16px); }
.fl-card-title { font-weight: 600; font-size: 14px; }
.fl-card-hint { font-size: 12px; opacity: .7; margin-top: 4px; }
.fl-card-meta { font-size: 12px; opacity: .6; margin: 6px 0; }
.fl-card-content { font-size: 14px; line-height: 1.7; white-space: pre-wrap; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line, rgba(255,255,255,.15)); }
/* ② 年度创作切片 */
.slices-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.slice-card { border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 10px; padding: 8px 6px; text-align: center; min-height: 74px; opacity: .45; }
.slice-card.got { opacity: 1; border-color: rgba(124,92,255,.55); background: linear-gradient(160deg, rgba(124,92,255,.12), rgba(74,144,217,.08)); }
.slice-m { font-size: 13px; font-weight: 700; }
.slice-stat { font-size: 11px; opacity: .8; margin-top: 4px; }
.slice-hot, .slice-fans { font-size: 10px; opacity: .65; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ③ 回声信箱 */
.echo-card { border-left: 3px solid #4a90d9; border-radius: 8px; background: rgba(255,255,255,.04); padding: 10px 12px; margin: 8px 0; cursor: pointer; }
.echo-post { font-size: 12px; opacity: .7; }
.echo-content { font-size: 14px; line-height: 1.6; margin: 6px 0; }
.echo-meta { font-size: 11px; opacity: .5; }
.echo-bar { margin: 10px 0; }
.echo-btn { border: 1px dashed rgba(74,144,217,.6); }
/* ④ 倒计时接龙 */
.cd-start { display: flex; gap: 8px; margin: 8px 0 4px; }
.cd-start .fl-input { flex: 1; margin: 0; }
.cd-card { border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 12px; padding: 12px; margin: 8px 0; }
.cd-card.sealed { opacity: .75; }
.cd-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cd-prompt { font-weight: 700; font-size: 14px; }
.cd-left { font-size: 12px; color: #ff9d5c; font-variant-numeric: tabular-nums; }
.cd-meta { font-size: 12px; opacity: .65; margin: 6px 0; }
.cd-mine { font-size: 12px; opacity: .6; }
/* ⑤ 时间博物馆 */
.museum-masthead { text-align: center; font-family: Georgia, 'Songti SC', serif; font-size: 18px; letter-spacing: 4px; border-top: 2px double currentColor; border-bottom: 2px double currentColor; padding: 8px 0; margin: 10px 0; opacity: .85; }
.museum-item { border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 8px; padding: 10px 12px; margin: 8px 0; cursor: pointer; background: rgba(255,255,255,.03); }
.museum-item:hover { border-color: rgba(255,255,255,.3); }
.museum-date { font-size: 11px; opacity: .55; font-family: Georgia, serif; }
.museum-title { font-size: 15px; font-weight: 700; margin: 4px 0; font-family: Georgia, 'Songti SC', serif; }
.museum-excerpt { font-size: 12px; opacity: .7; line-height: 1.6; }
.museum-by { font-size: 11px; opacity: .5; margin-top: 4px; }
/* ⑥ 创作纪念日 */
.anniv-timeline { position: relative; padding-left: 18px; }
.anniv-timeline::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(#7c5cff, #4a90d9); opacity: .4; }
.anniv-card { position: relative; border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 10px; padding: 10px 12px; margin: 10px 0; background: rgba(255,255,255,.03); }
.anniv-card::before { content: ''; position: absolute; left: -18px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: #7c5cff; box-shadow: 0 0 6px #7c5cff; }
.anniv-card.today { border-color: rgba(124,92,255,.7); background: linear-gradient(160deg, rgba(124,92,255,.15), rgba(74,144,217,.08)); }
.anniv-label { font-weight: 700; font-size: 14px; }
.anniv-date { font-size: 12px; opacity: .75; margin-top: 3px; }
.anniv-next { font-size: 11px; opacity: .5; margin-top: 3px; }

/* ═══════ 功能图鉴 ═══════ */
.pack-card { border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 14px; padding: 12px; margin: 10px 0; }
.pack-purple { background: linear-gradient(150deg, rgba(124,92,255,.10), rgba(74,144,217,.05)); }
.pack-brown { background: linear-gradient(150deg, rgba(255,157,92,.10), rgba(255,90,122,.05)); }
.pack-blue { background: linear-gradient(150deg, rgba(74,144,217,.10), rgba(90,208,192,.05)); }
.pack-pink { background: linear-gradient(150deg, rgba(255,90,122,.10), rgba(124,92,255,.05)); }
.pack-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.pack-name { font-size: 15px; font-weight: 700; }
.pack-ver { font-size: 11px; opacity: .5; font-variant-numeric: tabular-nums; }
.pack-items { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pack-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid transparent; text-align: left; color: inherit; }
.pack-item.live { cursor: pointer; }
.pack-item.live:hover { border-color: rgba(124,92,255,.5); background: rgba(124,92,255,.08); }
.pack-item-name { font-size: 13px; font-weight: 600; }
.pack-item-desc { font-size: 11px; opacity: .6; }

/* 弹窗统一关闭按钮 */
.modal-x { position: absolute; top: 10px; right: 12px; z-index: 5; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line, rgba(255,255,255,.18)); background: rgba(0,0,0,.35); color: inherit; font-size: 15px; cursor: pointer; line-height: 1; }
.modal-x:hover { background: rgba(255,255,255,.12); }
#modalCard { position: relative; }

/* ═══════ 一周一问 / 今日词条 排版美化 ═══════ */
.weeklyq-question {
  position: relative; font-size: 16px; font-weight: 700; line-height: 1.6;
  padding: 16px 16px 16px 20px; margin: 12px 0;
  background: linear-gradient(135deg, rgba(127,127,255,.13), rgba(88,201,139,.08));
  border-radius: 14px; border-left: 4px solid #7f7fff;
}
.weeklyq-question::before { content: 'Q'; position: absolute; right: 10px; bottom: 2px; font-size: 44px; font-weight: 800; opacity: .07; font-family: Georgia, serif; }
.weeklyq-mine { padding: 14px; border-radius: 12px; background: linear-gradient(135deg, rgba(88,201,139,.12), rgba(88,201,139,.05)); margin: 10px 0; font-size: 13.5px; line-height: 1.7; border: 1px solid rgba(88,201,139,.25); }
.weeklyq-mine b { font-size: 12px; letter-spacing: .1em; opacity: .75; }
.weeklyq-mine p { margin: 6px 0; }
.weeklyq-wall { display: grid; grid-template-columns: 1fr; gap: 8px; max-height: 300px; overflow: auto; padding: 2px; scrollbar-width: thin; }
.weeklyq-card {
  position: relative; padding: 11px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.65;
  background: rgba(127,127,127,.06); border: 1px solid var(--line, rgba(255,255,255,.07));
}
.weeklyq-card .weeklyq-text { display: block; white-space: pre-wrap; word-break: break-word; }
.weeklyq-card .weeklyq-meta { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 11.5px; color: var(--text-3, rgba(255,255,255,.45)); }
.weeklyq-card .weeklyq-meta::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, #7c5cff, #4a90d9); opacity: .8; }
.dailyword-word {
  position: relative; font-size: 21px; font-weight: 700; letter-spacing: .08em; text-align: center;
  padding: 22px 16px; border-radius: 16px; margin: 12px 0; overflow: hidden;
  background: linear-gradient(120deg, rgba(111,184,245,.13), rgba(126,140,235,.09));
  border: 1px solid var(--accent-line, rgba(120,195,255,.38));
  text-shadow: 0 2px 12px rgba(111,184,245,.28);
}
.dailyword-word::before { content: '「'; position: absolute; left: 10px; top: 2px; font-size: 26px; opacity: .25; }
.dailyword-word::after { content: '」'; position: absolute; right: 10px; bottom: 0; font-size: 26px; opacity: .25; }
.dailyword-modal .bottle-input, .weeklyq-modal .bottle-input { min-height: 90px; }

/* ==================== v2.39.0 会员（增值工具） ==================== */

/* π6 金色圆角小标 */
.vip-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1px 7px; margin-left: 6px; border-radius: 6px;
  font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: .3px;
  color: #6b4a00; background: linear-gradient(135deg, #ffe9a8, #f5c542);
  border: 1px solid rgba(180,130,20,.35); vertical-align: middle;
  text-shadow: 0 1px 0 rgba(255,255,255,.4); flex: none; white-space: nowrap;
}
.vip-badge-lg { font-size: 13px; padding: 3px 11px; border-radius: 8px; }

/* ===== 668·π 三档会员标识（v2.44.0）：统一主色米金 #6FB8F5 ===== */
/* 月卡：淡金透底 + 亮金字 + 微光晕（简约但金黄提亮，暗色背景下不发灰） */
.vip-badge.vb-month {
  color: #f6dd8a;
  background: linear-gradient(135deg, rgba(111,184,245,.26), rgba(111,184,245,.10));
  border: 1px solid rgba(230,196,92,.85);
  box-shadow:
    inset 0 1px 0 rgba(255,240,190,.28),
    0 0 8px rgba(111,184,245,.28);
  text-shadow: 0 0 6px rgba(244,214,120,.55), 0 1px 0 rgba(90,60,0,.35);
  font-weight: 700;
}
/* 季卡：实心填充款 */
.vip-badge.vb-quarter {
  color: #4a3400;
  background: linear-gradient(135deg, #e8c964, #6FB8F5);
  border: 1px solid #b8942c;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}
/* 年卡：浮雕光影 + 高光质感（顶配） */
.vip-badge.vb-year {
  color: #3d2a00;
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 46%),
    linear-gradient(135deg, #f7e6a8 0%, #6FB8F5 46%, #b08a1e 74%, #e6cc7a 100%);
  border: 1px solid rgba(122,90,10,.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    inset 0 -1px 1px rgba(120,84,0,.35),
    0 1px 2px rgba(0,0,0,.28),
    0 0 0 1px rgba(255,255,255,.18);
  text-shadow: 0 1px 0 rgba(255,255,255,.6), 0 -1px 0 rgba(120,84,0,.18);
  font-weight: 800;
  letter-spacing: .4px;
}

/* 会员中心 */
.vip-page { padding-bottom: 40px; }
.vip-hero {
  margin: 14px; padding: 22px 18px; border-radius: 16px;
  background: linear-gradient(135deg, #2b2416, #17140e);
  border: 1px solid rgba(111,184,245,.28);
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.vip-hero-on { background: linear-gradient(135deg, #3a2f14, #1d180b); border-color: rgba(245,197,66,.5); }
.vip-hero-brand { display: flex; align-items: center; gap: 8px; }
.vip-hero-name { font-size: 17px; font-weight: 700; color: #f5d97a; letter-spacing: 1px; }
.vip-hero-line { margin-top: 10px; font-size: 15px; font-weight: 600; color: #fff; }
.vip-hero-sub { margin-top: 6px; font-size: 12px; color: rgba(255,255,255,.55); line-height: 1.6; }

.vip-tools { margin: 0 14px; display: grid; gap: 8px; }
.vip-tool {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  border-radius: 12px; background: var(--card, #fff); border: 1px solid var(--line, rgba(0,0,0,.08));
}
.vip-tool.on { border-color: rgba(245,197,66,.45); }
.vip-tool-ico { font-size: 22px; flex: none; }
.vip-tool-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.vip-tool-info b { font-size: 14px; }
.vip-tool-info span { font-size: 12px; color: var(--dim, #888); }

.vip-compliance {
  margin: 12px 14px; padding: 10px 14px; border-radius: 10px;
  font-size: 12px; line-height: 1.7; color: #7a6a3a;
  background: rgba(245,197,66,.08); border: 1px dashed rgba(180,130,20,.3);
}

.vip-btn-gold {
  background: linear-gradient(135deg, #f5c542, #d9a520) !important;
  color: #4a3500 !important; font-weight: 700; border: none;
}
.vip-btn-gold-text { color: #b8860b; }

.vip-activate { margin: 6px 14px; }
.vip-code-row { display: flex; gap: 8px; }
.vip-code-row .input { flex: 1; min-width: 0; font-family: ui-monospace, monospace; letter-spacing: 1px; }

.vip-plans { margin: 0 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.vip-plan { padding: 14px; border-radius: 12px; background: var(--card, #fff); border: 1px solid var(--line, rgba(0,0,0,.08)); display: grid; gap: 6px; }
.vip-plan-label { font-size: 13px; font-weight: 700; color: #b8860b; }
.vip-plan-price b { font-size: 22px; }
.vip-plan-price span { font-size: 12px; color: var(--dim, #888); }
.vip-plan-per { font-size: 11px; color: var(--dim, #888); }
.vip-plan-feats { font-size: 11px; color: var(--dim, #888); line-height: 1.6; }

.vip-order {
  margin: 8px 14px; padding: 12px 14px; border-radius: 12px;
  background: var(--card, #fff); border: 1px solid var(--line, rgba(0,0,0,.08));
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.vip-order-info { display: grid; gap: 3px; min-width: 0; }
.vip-order-info b { font-size: 13px; }
.vip-order-info span { font-size: 11px; color: var(--dim, #888); }
.vip-order-right { display: grid; gap: 4px; justify-items: end; flex: none; }
.vip-order-right b { font-size: 14px; }

/* 无权限弹窗 */
.vip-req-modal { text-align: center; }
.vip-req-note {
  margin-top: 14px; padding: 10px 14px; border-radius: 10px;
  font-size: 12px; line-height: 1.7; color: #7a6a3a; text-align: left;
  background: rgba(245,197,66,.08); border: 1px dashed rgba(180,130,20,.3);
}
.vip-req-actions { display: flex; gap: 10px; margin-top: 16px; }
.vip-req-actions button { flex: 1; }

/* 水印工具弹窗 */
.wm-modal { max-width: 640px; }
.wm-tpl-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.wm-drop {
  padding: 26px; text-align: center; border-radius: 12px; cursor: pointer;
  border: 1.5px dashed rgba(180,130,20,.4); background: rgba(245,197,66,.05);
  font-size: 14px; color: var(--dim, #888); margin-bottom: 10px;
}
.wm-canvas { width: 100%; border-radius: 10px; background: #f4f4f4; display: none; }
.wm-canvas:not([width="300"]) { display: block; }
.wm-opts { display: grid; gap: 10px; margin-top: 10px; }
.wm-opt { display: flex; align-items: center; gap: 10px; }
.wm-opt > span { font-size: 12px; color: var(--dim, #888); flex: none; width: 60px; }
.wm-opt .input { flex: 1; }
.wm-opt input[type="range"] { flex: 1; }
.wm-opa-val { font-size: 12px; width: 32px; text-align: right; }
.wm-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.wm-quota { font-size: 12px; color: var(--dim, #888); }

/* 存证页批量操作条（会员） */
.attest-batch-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 10px 14px; padding: 10px 12px; border-radius: 12px;
  background: var(--card, #fff); border: 1px solid var(--line, rgba(0,0,0,.08));
}
.attest-batch-bar .count { font-size: 12px; color: var(--dim, #888); }

/* v2.39 存证条目：按钮变多后保证短码不被挤压、按钮不重叠 */
.attest-acts { row-gap: 8px; }
.attest-acts .btn-sm { flex: 0 0 auto; white-space: nowrap; }
.attest-cert { flex: 1 1 100%; }
.attest-code { word-break: break-all; letter-spacing: .5px; }

/* ===== v2.40.0 P1：多版本项目归档 ===== */
.pj-timeline { max-height: 46vh; overflow: auto; padding: 4px 2px; }
.pj-tl-item { display: flex; gap: 12px; position: relative; padding: 0 0 16px 2px; }
.pj-tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent, #6FB8F5); margin-top: 5px; flex: 0 0 auto; position: relative; }
.pj-tl-dot::after { content: ''; position: absolute; left: 50%; top: 12px; bottom: -14px; width: 1px; background: rgba(111,184,245,.35); transform: translateX(-50%); }
.pj-tl-item:last-child .pj-tl-dot::after { display: none; }
.pj-tl-main { flex: 1; min-width: 0; }
.pj-tl-head { display: flex; align-items: center; gap: 8px; }
.pj-tl-head b { font-size: 14px; }
.pj-tl-sub { font-size: 12px; color: var(--muted, #8a8f99); margin-top: 2px; }
.pj-tl-note { font-size: 12px; color: var(--accent, #6FB8F5); margin-top: 2px; }
.pj-tl-acts { display: flex; gap: 8px; margin-top: 6px; }
.pj-cand-list { max-height: 46vh; overflow: auto; display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.pj-cand { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; }
.pj-cand-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pj-cand-info b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-cand-info span { font-size: 11px; color: var(--muted, #8a8f99); }

/* ===== v2.40.0 P1：置顶推广 ===== */
.pin-strip { margin: 0 16px 10px; border: 1px solid rgba(111,184,245,.30); border-radius: 14px; padding: 10px 12px; background: linear-gradient(135deg, rgba(111,184,245,.10), rgba(111,184,245,.03)); }
.pin-strip-head { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent, #6FB8F5); margin-bottom: 8px; font-weight: 600; }
.pin-strip-row { display: flex; gap: 10px; overflow-x: auto; }
.pin-strip-item { flex: 0 0 auto; width: 120px; cursor: pointer; }
.pin-strip-item img { width: 100%; height: 76px; object-fit: cover; border-radius: 8px; display: block; }
.pin-strip-txt { margin-top: 4px; display: flex; flex-direction: column; }
.pin-strip-txt b { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pin-strip-txt span { font-size: 11px; color: var(--muted, #8a8f99); }
.pin-day-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 6px; }
.pin-price-line { font-size: 15px; font-weight: 700; color: var(--accent, #6FB8F5); margin-bottom: 4px; }
.pin-info { font-size: 12px; color: var(--muted, #8a8f99); }
/* 我的项目页头：标题居中时给右侧按钮留位，避免重叠 */
.pj-head .section-title { max-width: 46%; margin-left: 0; }
.pj-head .head-aside { flex-wrap: nowrap; }

/* v2.40.1 修复：居中标题 + 右侧按钮时，窄屏下标题被按钮压住（如「我的存证」页头）。
   给标题留出右侧按钮区的安全宽度，超出自动换行，不再重叠 */
.section-head.center.has-aside .section-title {
  max-width: calc(100% - 200px);
  margin: 0 auto;
}
@media (max-width: 420px) {
  .section-head.center.has-aside .section-title { max-width: calc(100% - 170px); }
}

/* v2.40.1 彻底修复：居中标题 + 右侧按钮改为常规 flex 布局，
   按钮不再绝对定位悬浮，任何屏宽都不会压住标题 */
.section-head.center.has-aside { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.section-head.center.has-aside .section-title { flex: 1 1 auto; min-width: 0; }
.section-head.center.has-aside .head-aside { position: static; transform: none; padding: 0; flex: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* 窄屏（<=480px）：标题独占一行居中，按钮组整体换到下一行右对齐，
   两不遮挡、标题不挤压 */
@media (max-width: 480px) {
  .section-head.center.has-aside { flex-wrap: wrap; }
  .section-head.center.has-aside .section-title { flex: 1 1 100%; text-align: center; }
  .section-head.center.has-aside .head-aside { flex: 1 1 100%; justify-content: center; flex-wrap: wrap; row-gap: 6px; }
}

/* ===== v2.41 会员页优化：套餐单列 + FAQ 折叠 ===== */
.vip-plans-col { display: flex; flex-direction: column; gap: 12px; padding: 0 16px; }
.vip-plans-col .vip-plan { width: 100%; }
.vip-plan-featlist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.vip-plan-featlist li { font-size: 12px; color: var(--text-2, #b8bdc7); line-height: 1.5; text-align: left; }
.vip-faq { margin: 4px 16px 8px; border: 1px solid var(--line, rgba(255,255,255,.1)); border-radius: 12px; background: rgba(255,255,255,.02); }
.vip-faq-summary { list-style: none; cursor: pointer; padding: 12px 14px; font-size: 13px; color: var(--text-3, #8a8f99); display: flex; align-items: center; justify-content: space-between; }
.vip-faq-summary::-webkit-details-marker { display: none; }
.vip-faq-summary::after { content: '›'; transform: rotate(90deg); color: var(--text-3, #8a8f99); font-size: 14px; transition: transform .2s; }
.vip-faq[open] .vip-faq-summary::after { transform: rotate(-90deg); }
.vip-faq-list { padding: 0 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.vip-faq-q { font-size: 12px; color: var(--text-2, #b8bdc7); font-weight: 600; line-height: 1.5; }
.vip-faq-a { font-size: 12px; color: var(--text-3, #8a8f99); line-height: 1.7; }
.vip-faq-note { margin: 0 16px 20px; font-size: 11px; color: var(--text-3, #8a8f99); opacity: .75; line-height: 1.6; }

/* ===== v2.41.1 新建项目弹窗：高级表单风格 ===== */
.pj-create { padding: 20px 18px 18px; }
.pj-create-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.pj-create-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(111,184,245,.22), rgba(111,184,245,.08)); border: 1px solid rgba(111,184,245,.4); color: var(--accent, #6FB8F5); }
.pj-create-headtxt { flex: 1; min-width: 0; }
.pj-create-headtxt .modal-title { font-size: 17px; text-align: left; margin: 2px 0 4px; }
.pj-create-sub { font-size: 12px; color: var(--text-3, #8a8f99); line-height: 1.6; }
.pj-field { margin-bottom: 14px; }
.pj-label { display: block; font-size: 12px; color: var(--text-3, #8a8f99); letter-spacing: .05em; margin-bottom: 6px; font-weight: 600; }
.pj-input { width: 100%; box-sizing: border-box; background: rgba(255,255,255,.04); border: 1px solid var(--line-2, rgba(255,255,255,.12)); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--text, #fff); }
.pj-input:focus { outline: none; border-color: rgba(111,184,245,.6); box-shadow: 0 0 0 3px rgba(111,184,245,.12); }
.pj-textarea { resize: none; min-height: 58px; line-height: 1.5; }
.pj-limit-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pj-limit { font-size: 12px; padding: 6px 12px; }
.pj-limit-hint { font-size: 11px; color: var(--text-3, #8a8f99); margin-top: 7px; line-height: 1.5; }
.pj-create-acts { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.pj-go { width: 100%; padding: 13px 0; font-size: 15px; letter-spacing: .08em; border-radius: 12px; }
.pj-cancel { width: 100%; padding: 11px 0; background: transparent; border: none; color: var(--text-3, #8a8f99); font-size: 14px; }

/* v2.41.2 激活码输入框下方淡色使用说明 */
.vip-code-hint { margin: 8px 2px 0; font-size: 11px; color: var(--text-3, #8a8f99); opacity: .8; line-height: 1.5; }

/* ==================== v2.42.0 方案 B 会员增值权益 ==================== */

/* 草稿批量导入 */
.pj-input-hint { margin: 6px 2px 0; font-size: 11px; color: var(--text-3, #8a8f99); opacity: .85; }

/* 我的存证 · 高级检索条（会员权益 attest_search） */
.attest-search-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 16px 10px; padding: 10px 12px; background: var(--bg-2, rgba(255,255,255,.04)); border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: 12px; }
.attest-search-bar .input { flex: 1 1 140px; min-width: 0; padding: 8px 10px; font-size: 13px; }
.attest-search-bar .as-sep { font-size: 11px; color: var(--text-3, #8a8f99); }
@media (max-width: 480px) { .attest-search-bar .input { flex: 1 1 100%; } }

/* 主页美化模板（profile_themes） */
.pf-theme-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 16px 0; }
.pf-theme-label { font-size: 12px; color: var(--accent, #6FB8F5); font-weight: 600; }
/* 米金典雅：封面加米金渐变，数据栏金字 */
.pf-theme-gold .pf-cover-default, .pf-theme-gold .pf-cover { box-shadow: inset 0 0 0 1px rgba(111,184,245,.35), inset 0 -60px 120px rgba(111,184,245,.10); }
.pf-theme-gold .profile-name { color: var(--accent, #6FB8F5); }
.pf-theme-gold .profile-stats b { color: var(--accent, #6FB8F5); }
/* 金边画框：主页内容区描金色细边 */
.pf-theme-frame .profile-hero { border: 1px solid rgba(111,184,245,.45); border-radius: 16px; padding-bottom: 8px; box-shadow: 0 0 0 4px rgba(111,184,245,.08); }
.pf-theme-frame .pf-cover { border-radius: 14px 14px 0 0; }
/* 鎏金水墨：封面叠墨色晕染，简介斜体金字点缀 */
.pf-theme-ink .pf-cover-default { background: radial-gradient(100% 120% at 70% 20%, rgba(0,0,0,.55), transparent 60%), linear-gradient(160deg, #2b2620, #14120e 72%) !important; }
.pf-theme-ink .profile-bio { color: #d8c9a3; }

/* 高级水印：选项组复用 wm-opts，无需额外样式 */

/* v2.43.0 3D 展厅纳入年度会员：承诺区补充淡色小字 + 页面底部温馨提示 */
.vip-compliance-sub { opacity: .62; font-size: 11.5px; }
.vip-bottom-note { text-align: center; margin: 16px 16px 28px; opacity: .72; }
/* 未开通展厅的横幅：弱化箭头，保留可点 */
.pf-hall-card .pf-hall-go:empty { display: none; }

/* v2.44.0 668·π 品牌闭环：π 符号隔离声明（风控缓冲，必须始终可见、不可点击隐藏） */
.vip-pi-disclaimer { margin-top: 6px; font-size: 11px; line-height: 1.7; opacity: .55; }
.vip-pi-disclaimer::before { content: ''; display: block; width: 28px; height: 1px; margin: 0 auto 6px; background: currentColor; opacity: .35; }

/* v2.43.1 动态页顶部 3D 展厅快捷入口 */
.pf-hall-quick { display: flex; align-items: center; gap: 10px; margin: 0 16px 12px; padding: 12px 14px; border: 1px solid rgba(111,184,245,.35); border-radius: 14px; background: linear-gradient(135deg, rgba(111,184,245,.10), rgba(111,184,245,.03)); cursor: pointer; }
.pf-hall-quick svg { width: 20px; height: 20px; color: var(--accent, #6FB8F5); flex: none; }
.pf-hall-quick-t { font-weight: 700; font-size: 14px; color: var(--accent, #6FB8F5); }
.pf-hall-quick-s { font-size: 12px; color: var(--text-3, #8a8f99); margin-left: auto; }

/* ===== v2.46.0 帖子卡片背景图 ===== */
.post { position: relative; overflow: hidden; }
.post-cardbg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  pointer-events: none;
}
/* 双层蒙层：整体压暗 + 左深右浅横渐变 + 底部加深，保证文字/按钮可读 */
.has-cardbg::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(18,14,10,.30), rgba(18,14,10,.44) 55%, rgba(18,14,10,.80)),
              linear-gradient(90deg, rgba(18,14,10,.42), rgba(18,14,10,.10) 60%, rgba(18,14,10,.24));
  pointer-events: none;
}
.has-cardbg > *:not(.post-cardbg) { position: relative; z-index: 1; }
.has-cardbg .post-body, .has-cardbg .post-title { text-shadow: 0 1px 3px rgba(0,0,0,.55); }
/* 发布弹窗内的卡片背景选择器 */
.cardbg-box { margin-top: 8px; }
.cardbg-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 22px 12px; border: 1.5px dashed rgba(111,184,245,.45);
  border-radius: 12px; color: var(--muted, #b9a77e); font-size: 13px; cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.cardbg-drop:hover { border-color: rgba(111,184,245,.8); background: rgba(111,184,245,.05); }
.cardbg-preview {
  position: relative; height: 130px; border-radius: 12px; overflow: hidden;
  background-size: cover; background-position: center; border: 1px solid rgba(111,184,245,.35);
}
.cardbg-preview .cardbg-tag {
  position: absolute; right: 8px; top: 8px; z-index: 2;
}
.cardbg-tag {
  padding: 3px 10px; font-size: 12px; border-radius: 999px;
  background: rgba(0,0,0,.55); color: #e8c878; border: 1px solid rgba(111,184,245,.4);
  cursor: pointer;
}
.cardbg-tag:hover { color: #ffd98a; border-color: rgba(111,184,245,.8); }
/* 非会员锁定态：整体降透明度 + 虚线变灰，明示不可用但保留权益可见性 */
.cardbg-drop.cardbg-locked {
  opacity: .62; cursor: not-allowed;
  border-color: rgba(150,140,120,.35); color: var(--muted, #9a8f7a);
}
.cardbg-drop.cardbg-locked:hover { border-color: rgba(150,140,120,.35); background: none; }
.cardbg-drop.cardbg-locked .compose-extras-badge { flex: none; }

/* ===== v2.51.17 卡片动图背景（视频） ===== */
/* 视频层与图片层共用 .post-cardbg 定位，额外做两件事：
   1) object-fit 铺满且裁切（不允许出现黑边/拉伸）
   2) 首帧解码前先隐掉，避免黑底一闪；解码失败则回落到纯暗色底 */
.post-cardbg-video {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  background: #14110c; opacity: 0; transition: opacity .45s ease;
  /* 方案要求的轻虚化：弱化画面细节防抢内容；scale 抵消 blur 边缘露底 */
  filter: blur(2px) saturate(.92);
  transform: scale(1.06);
}
.post-cardbg-video.cbvid-ready { opacity: 1; }
.post-cardbg-video.cbvid-fail { opacity: 0; }
/* 静态降级（用户关开关 / 省流量 / 弱网）：只显示首帧，同样保持虚化压暗 */
.post-cardbg-video.cbvid-static { opacity: 1; animation: none; }
.has-cardbg-video::before {
  /* 动图背景比静图更容易干扰阅读，蒙层再压深一档（方案要求 40%~55% 压暗为底线） */
  background: linear-gradient(180deg, rgba(18,14,10,.46), rgba(18,14,10,.58) 55%, rgba(18,14,10,.86)),
              linear-gradient(90deg, rgba(18,14,10,.55), rgba(18,14,10,.18) 60%, rgba(18,14,10,.34));
}
/* 发布会话里的动图背景预览 */
.cardbg-preview.is-video { background: #14110c; }
.cardbg-preview-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.cardbg-preview.is-video .cardbg-tag { background: rgba(0,0,0,.68); }
/* 低电量/省流量模式：直接冻结动图背景，只保留首帧 */
@media (prefers-reduced-motion: reduce) {
  .post-cardbg-video { animation: none; }
}

/* ══════════════════════════════════════════════════════════════
   v2.47.0 全站高级感精修层（东方审美 · 黑金鎏金 · 统一作用于所有页面）
   原则：金箔渐变按钮 / 玻璃拟态弹层 / 描边高光卡片 / 聚焦光晕输入框
   ══════════════════════════════════════════════════════════════ */

/* ---------- 0. 全局底色氛围：暗夜鎏金环境光（三层极淡光斑，静而不喧） ---------- */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(111,184,245,.075), transparent 62%),
    radial-gradient(760px 480px at 108% 24%, rgba(111,184,245,.045), transparent 60%),
    radial-gradient(720px 520px at -12% 78%, rgba(143,184,216,.03), transparent 62%);
}
/* 全局字距与数字排版：标题更凝练，数字等宽不跳动 */
h1, h2, h3, .modal-title, .sec-title { letter-spacing: .015em; }
.post-meta, .gal-by, .stat-num, .balance-num, [class*="count"], [class*="num"] { font-variant-numeric: tabular-nums; }
/* 精修滚动条：细金线 */
*::-webkit-scrollbar { width: 5px; height: 5px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(111,184,245,.4), rgba(111,184,245,.15)); border-radius: 99px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(111,184,245,.6); }
::selection { background: rgba(111,184,245,.32); color: #fff; }

/* ---------- 1. 主按钮：鎏金渐变 + 内描边高光 + 悬停流光扫过 ---------- */
.btn-primary {
  background: linear-gradient(168deg, #CFE8FF 0%, var(--accent) 34%, #2E6EA8 82%, #245A8C 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,244,214,.75),
    inset 0 -1px 0 rgba(90,62,10,.4),
    0 10px 30px rgba(111,184,245,.24), 0 2px 8px rgba(0,0,0,.4);
  overflow: hidden; position: relative;
}
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.34), transparent);
  transform: skewX(-18deg); transition: left .55s ease; pointer-events: none;
}
.btn-primary:hover { filter: none; }
.btn-primary:hover::after { left: 135%; }
.btn-primary:active { transform: scale(.98) translateY(0); }
.btn-ghost {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008));
  border-color: var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.btn-ghost:hover { border-color: var(--accent-line); background: var(--accent-soft); box-shadow: 0 6px 22px rgba(111,184,245,.1); }
.btn-sm { transition: .22s; }
.btn-sm:hover { border-color: var(--accent-line); color: var(--accent-2); }
/* 危险按钮：暗红鎏边 */
.btn-danger, .btn-sm.danger { box-shadow: inset 0 1px 0 rgba(255,190,190,.18), 0 8px 24px rgba(222,107,120,.18); }

/* ---------- 2. 输入框：暗玉质感 + 聚焦金环渐亮 ---------- */
.field input, .field textarea, .field select {
  background: linear-gradient(180deg, rgba(0,0,0,.38), rgba(0,0,0,.26));
  border-color: rgba(255,255,255,.07);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.45), inset 0 -1px 0 rgba(255,255,255,.03);
  border-radius: 12px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); font-weight: 300; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(111,184,245,.55);
  background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,.2));
  box-shadow: 0 0 0 3px rgba(111,184,245,.13), 0 6px 22px rgba(111,184,245,.08), inset 0 1px 3px rgba(0,0,0,.35);
}
.field label { letter-spacing: .16em; color: var(--text-2); }
.field label::after { content: ''; }

/* ---------- 3. 弹窗：深色琉璃 + 顶部金线 + 入场更从容 ---------- */
.modal { background: rgba(4,4,4,.72); backdrop-filter: blur(14px) saturate(1.15); }
.modal-card {
  background:
    linear-gradient(180deg, rgba(111,184,245,.055), rgba(111,184,245,0) 120px),
    linear-gradient(180deg, #1B1B1B, #131313 60%);
  border-top: 1px solid rgba(111,184,245,.42);
  border-left: 1px solid rgba(255,255,255,.045);
  border-right: 1px solid rgba(255,255,255,.045);
  box-shadow: 0 -24px 80px rgba(0,0,0,.6), 0 0 60px rgba(111,184,245,.06) inset;
}
.modal-title { background: linear-gradient(100deg, var(--text), #D8C48A); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.attest-layer-card, [class*="layer-card"] {
  background: linear-gradient(180deg, #1C1C1C, #141414) !important;
  border: 1px solid rgba(111,184,245,.34); border-radius: 18px !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.05);
}

/* ---------- 4. 卡片：描边高光 + 悬停微金辉 ---------- */
.post, .vip-card, .gal-card, .stat-card, [class*="-card"] {
  transition: transform .28s cubic-bezier(.2,.8,.3,1), box-shadow .28s ease, border-color .28s ease;
}
.post {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 6px 24px rgba(0,0,0,.3);
}
.post:hover {
  border-color: rgba(111,184,245,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 14px 40px rgba(0,0,0,.45), 0 0 30px rgba(111,184,245,.07);
}
.gal-card { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.06); box-shadow: 0 8px 26px rgba(0,0,0,.4); }
.gal-card:hover { border-color: rgba(111,184,245,.45); box-shadow: 0 14px 40px rgba(0,0,0,.5), 0 0 26px rgba(111,184,245,.08); transform: translateY(-3px); }
.gal-info { background: linear-gradient(180deg, transparent, rgba(5,5,5,.88) 72%); }

/* ---------- 5. 徽章 / Chip：细金描边玻璃 ---------- */
.chip {
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 2px 8px rgba(0,0,0,.3);
}
.chip-gold, .pin-badge {
  background: linear-gradient(160deg, rgba(111,184,245,.2), rgba(111,184,245,.08)) !important;
  border: 1px solid rgba(111,184,245,.5) !important;
  color: #EED9A0 !important;
}

/* ---------- 6. Toast：琉璃金边 ---------- */
.toast {
  background: linear-gradient(180deg, rgba(28,26,20,.96), rgba(18,17,13,.96)) !important;
  border: 1px solid rgba(111,184,245,.4) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 50px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06), 0 0 30px rgba(111,184,245,.07) !important;
  border-radius: 14px !important;
}
.toast.ok { border-color: rgba(127,201,166,.45) !important; }
.toast.err { border-color: rgba(222,107,120,.5) !important; }

/* ---------- 7. 分段控件 / 页签：金底滑块 ---------- */
.seg, [class*="seg-"] { border-radius: 12px; }
[class*="seg"] .on, .seg-on {
  background: linear-gradient(168deg, rgba(111,184,245,.28), rgba(111,184,245,.12));
  border-color: rgba(111,184,245,.55);
  box-shadow: inset 0 1px 0 rgba(255,244,214,.28), 0 4px 16px rgba(111,184,245,.15);
}
/* 底部导航当前项：金点辉光 */
.tab.on { text-shadow: 0 0 18px rgba(111,184,245,.5); }

/* ---------- 8. 头像：鎏金细环 ---------- */
.avatar, [class*="avatar"] img {
  box-shadow: 0 0 0 1.5px rgba(111,184,245,.35), 0 2px 10px rgba(0,0,0,.4);
}
[class*="avatar"].creator img, .avatar.creator img { box-shadow: 0 0 0 1.5px rgba(111,184,245,.6), 0 0 14px rgba(111,184,245,.25), 0 2px 10px rgba(0,0,0,.4); }

/* ---------- 9. 列表行 / 设置行：悬停暖光 ---------- */
[class*="row"]:hover, .set-row:hover, .menu-item:hover { background: rgba(111,184,245,.04); }

/* ---------- 10. 空态：留白呼吸感 ---------- */
.empty, [class*="empty"] { letter-spacing: .05em; color: var(--text-3); }

/* ---------- 11. 进度条 / 加载点：金流 ---------- */
[class*="progress"] i, [class*="bar"] i {
  background: linear-gradient(90deg, rgba(111,184,245,.55), #CFE8FF, rgba(111,184,245,.55));
  background-size: 200% 100%; animation: goldflow 1.6s linear infinite;
}
@keyframes goldflow { to { background-position: -200% 0; } }

/* ---------- 12. 无障碍：prefers-reduced-motion 全部收势 ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* v2.47.2 置顶推广条优化：余量徽章 / 无图金渐变占位 / 虚位以待 */
.pin-strip-count { margin-left: auto; font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.pin-strip-ph {
  height: 76px; border-radius: 8px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px; color: rgba(197,227,255,.9);
  font-size: 11px; letter-spacing: .1em; border: 1px solid rgba(111,184,245,.22);
}
.pin-strip-ph svg { width: 16px; height: 16px; opacity: .75; }
.pin-strip-ph > span:first-child { font-size: 15px; font-weight: 600; letter-spacing: .18em; }
.pin-strip-idle { opacity: .62; }
.pin-strip-idle .pin-strip-ph { border-style: dashed; color: var(--text-3); background: rgba(0,0,0,.2) !important; }
.pin-strip-more .pin-strip-row { mask-image: linear-gradient(90deg, #000 86%, transparent); }
.pin-strip-ph em { font-style: normal; font-size: 10.5px; color: rgba(197,227,255,.72); letter-spacing: .06em; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ══════════════════════════════════════════════════════════════
   v2.48.2 登录页文字可读性（背景图再花，字也必须立得住）
   三层设计：暗晕蒙层（JS 注入）+ 文字深色投影 + 关键文字提亮
   ══════════════════════════════════════════════════════════════ */
.gate h1, .brand-sub, .brand-desc, .gate-notice {
  text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 2px 10px rgba(0,0,0,.65), 0 0 24px rgba(0,0,0,.4);
}
/* 副标题：放大提亮，字距收窄更聚拢 */
.brand-sub {
  color: #F5EFE0 !important;
  font-size: 13px; font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 2px 12px rgba(0,0,0,.7);
}
/* 描述文字：亮米白 + 投影，行高不变 */
.brand-desc { color: #EDE6D6 !important; font-weight: 400; }
/* 站名标题：加深色描边光晕，蓝字金字都立得住 */
.gate h1 {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.85)) drop-shadow(0 0 18px rgba(0,0,0,.45));
}
.gate h1.no-glow { filter: drop-shadow(0 2px 6px rgba(0,0,0,.85)); }
/* 按钮：底色加深一档，小字提亮，保证在亮背景上可读 */
.gate-actions .btn { background: rgba(10,9,6,.52); backdrop-filter: blur(8px); border-color: rgba(255,255,255,.14); }
.gate-actions .btn small { color: #D9D2C2; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.gate-actions .btn-primary { background: linear-gradient(168deg, #CFE8FF 0%, var(--accent) 34%, #2E6EA8 82%, #245A8C 100%); }
.gate-actions .btn-primary small { color: rgba(30,22,6,.85); text-shadow: none; }
/* 页脚：提亮 + 投影 */
#gateFoot .gf-line, #gateFoot .gf-link { text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 1px 8px rgba(0,0,0,.6); }
#gateFoot .gf-line { color: #CFC8B8; }
#gateFoot .gf-link { color: #E8D9A8; }

/* ══════════════════════════════════════════════════════════════
   v2.49.3 会员专属工具列表版面精修（黑金琉璃 · 标题必须立得住）
   修复：亮底卡片 × 暗金标题 = 标题隐形；emoji 裸放显廉价
   ══════════════════════════════════════════════════════════════ */
.vip-tools { gap: 10px; }
.vip-tool {
  position: relative;
  background:
    linear-gradient(180deg, rgba(111,184,245,.055), rgba(111,184,245,.012) 70%),
    linear-gradient(180deg, #1D1C18, #141311 75%);
  border: 1px solid rgba(111,184,245,.22);
  border-radius: 14px;
  padding: 13px 14px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,244,214,.06), 0 6px 22px rgba(0,0,0,.35);
  transition: transform .25s cubic-bezier(.2,.8,.3,1), border-color .25s, box-shadow .25s;
}
.vip-tool::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #CFE8FF, rgba(111,184,245,.12));
  border-radius: 3px 0 0 3px; opacity: 0; transition: opacity .25s;
}
.vip-tool.on::after { opacity: 1; }
.vip-tool.on { border-color: rgba(111,184,245,.5); }
.vip-tool:hover {
  border-color: rgba(111,184,245,.6);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,244,214,.08), 0 12px 32px rgba(0,0,0,.5), 0 0 26px rgba(111,184,245,.09);
}
.vip-tool-ico {
  width: 44px; height: 44px; font-size: 21px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, rgba(111,184,245,.18), rgba(111,184,245,.05));
  border: 1px solid rgba(111,184,245,.3);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,244,214,.1);
}
.vip-tool-info b {
  font-size: 14.5px; font-weight: 600; letter-spacing: .02em;
  color: #F7ECD2 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.vip-tool-info span { color: rgba(237,230,214,.78) !important; }
.vip-tool .chip { flex: none; }

/* ══════════════════════════════════════════════════════════════
   v2.49.4 会员套餐权益卡版面精修（黑金琉璃 · 与工具列表同一设计语言）
   修复：白底亮卡割裂全站主题；暗金价格隐形；绿✅ emoji 廉价
   ══════════════════════════════════════════════════════════════ */
.vip-plans { gap: 12px; }
.vip-plan {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(111,184,245,.06), rgba(111,184,245,.012) 70%),
    linear-gradient(180deg, #1D1C18, #141311 78%);
  border: 1px solid rgba(111,184,245,.24);
  border-radius: 16px;
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255,244,214,.06), 0 8px 26px rgba(0,0,0,.38);
  transition: transform .25s cubic-bezier(.2,.8,.3,1), border-color .25s, box-shadow .25s;
}
.vip-plan::before {
  content: ''; position: absolute; right: -34px; top: -34px; width: 110px; height: 110px;
  background: radial-gradient(circle, rgba(111,184,245,.16), transparent 68%);
  pointer-events: none;
}
.vip-plan:hover {
  border-color: rgba(111,184,245,.6);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,244,214,.08), 0 14px 36px rgba(0,0,0,.52), 0 0 28px rgba(111,184,245,.1);
}
.vip-plan-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; letter-spacing: .04em;
  color: #F7ECD2 !important;
}
.vip-plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.vip-plan-price b {
  font-size: 26px; font-weight: 700;
  background: linear-gradient(168deg, #F7E3A6 0%, #E8C979 42%, #2E6EA8 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.45));
}
.vip-plan-price span { font-size: 12px; color: rgba(237,230,214,.6); }
.vip-plan-per { font-size: 11px; color: rgba(237,230,214,.55); }
.vip-plan-per::after { content: ''; }
/* 权益条目：CSS 金勾替代绿✅ emoji */
.vip-plan-featlist { gap: 7px; }
.vip-plan-featlist li {
  font-size: 12.5px; line-height: 1.55;
  color: rgba(240,234,220,.88);
  padding-left: 22px; position: relative;
}
.vip-plan-featlist li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700; color: #1A1405;
  background: linear-gradient(160deg, #CFE8FF, #C9A03C);
  box-shadow: 0 1px 4px rgba(111,184,245,.35);
}

/* ══════════════════════════════════════════════════════════════
   v2.49.5 我的订单卡精修（黑金琉璃 · 会员区三件套收口）
   ══════════════════════════════════════════════════════════════ */
.vip-order {
  margin: 8px 14px; padding: 13px 15px; border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(111,184,245,.05), rgba(111,184,245,.01) 70%),
    linear-gradient(180deg, #1C1B17, #141311 78%);
  border: 1px solid rgba(111,184,245,.22);
  box-shadow: inset 0 1px 0 rgba(255,244,214,.05), 0 6px 20px rgba(0,0,0,.32);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  transition: border-color .22s, box-shadow .22s;
}
.vip-order:hover {
  border-color: rgba(111,184,245,.5);
  box-shadow: inset 0 1px 0 rgba(255,244,214,.07), 0 10px 28px rgba(0,0,0,.45), 0 0 22px rgba(111,184,245,.08);
}
.vip-order-info b {
  font-size: 13.5px; font-weight: 600; letter-spacing: .02em;
  color: #F7ECD2 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.vip-order-info span { color: rgba(237,230,214,.55) !important; font-variant-numeric: tabular-nums; }
.vip-order-right b {
  font-size: 13.5px; font-weight: 700;
  color: #E8C979 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
}
/* 顺带把会员页其他残留白底元素统一：常见疑问 / 温馨提示 */
.vip-faq-note, .vip-bottom-note {
  color: rgba(237,230,214,.6) !important;
}
.vip-pi-disclaimer { color: rgba(237,230,214,.45) !important; }

/* ══════════════════════════════════════════════════════════════
   v2.49.6 存证页高级检索区暗色统一（白底输入框/下拉/批量条 → 暗玉琉璃）
   ══════════════════════════════════════════════════════════════ */
.input, select, .attest-search-bar select {
  background: linear-gradient(180deg, rgba(0,0,0,.38), rgba(0,0,0,.26));
  border: 1px solid rgba(255,255,255,.09);
  color: var(--text, #EDE6D6);
  border-radius: 11px;
}
.input::placeholder { color: var(--text-3); font-weight: 300; }
.input:focus, select:focus {
  border-color: rgba(111,184,245,.55);
  box-shadow: 0 0 0 3px rgba(111,184,245,.13);
  outline: none;
}
select option { background: #1B1A16; color: #EDE6D6; }
.attest-search-bar { background: linear-gradient(180deg, rgba(111,184,245,.045), rgba(111,184,245,.01)); border-color: rgba(111,184,245,.2); }
.attest-batch-bar {
  background: linear-gradient(180deg, rgba(111,184,245,.05), rgba(111,184,245,.012)) !important;
  border-color: rgba(111,184,245,.22) !important;
  border-radius: 14px;
}
.attest-batch-bar .count { color: rgba(237,230,214,.7) !important; }
/* 存证统计数字鎏金 */
.attest-stats b, .attest-stat b { color: #E8C979 !important; }

/* ══════════════════════════════════════════════════════════════
   v2.49.7 主页装扮增强：三套模板一眼可辨（覆盖早期弱效果）
   ══════════════════════════════════════════════════════════════ */

/* —— 米金典雅：全页暖金氛围 + 鎏金渐变名字 + 封面金顶光带 —— */
.pf-theme-gold { background: radial-gradient(120% 34% at 50% 0%, rgba(111,184,245,.14), transparent 62%) !important; }
.pf-theme-gold .profile-name {
  background: linear-gradient(168deg, #F7E3A6, #E0BE6A 48%, #2E6EA8);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.4));
}
.pf-theme-gold .pf-cover::after, .pf-theme-gold .pf-cover-default::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 46%;
  background: linear-gradient(180deg, rgba(243,217,139,.32), rgba(111,184,245,.06) 70%, transparent);
  pointer-events: none;
}
.pf-theme-gold .pf-cover, .pf-theme-gold .pf-cover-default { position: relative; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(111,184,245,.4), inset 0 -80px 140px rgba(111,184,245,.14) !important; }
.pf-theme-gold .profile-stats b { color: #E8C979 !important; }
.pf-theme-gold .chip-gold { box-shadow: 0 2px 12px rgba(111,184,245,.35); }

/* —— 金边画框：双线画框包住整页 + 四角花饰 —— */
.pf-theme-frame { padding: 10px; box-sizing: border-box; }
.pf-theme-frame > .profile-hero {
  border: 1px solid rgba(111,184,245,.55) !important;
  outline: 1px solid rgba(111,184,245,.22); outline-offset: 5px;
  border-radius: 18px !important;
  box-shadow: 0 0 0 5px rgba(111,184,245,.07), 0 18px 50px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,244,214,.08) !important;
}
.pf-theme-frame .profile-hero::before, .pf-theme-frame .profile-hero::after {
  content: '❖'; position: absolute; top: 52%; font-size: 13px; color: rgba(232,201,121,.75);
  z-index: 2; pointer-events: none;
}
.pf-theme-frame .profile-hero::before { left: 7px; }
.pf-theme-frame .profile-hero::after { right: 7px; }
.pf-theme-frame .pf-cover, .pf-theme-frame .pf-cover-default {
  border: 1px solid rgba(111,184,245,.35); border-radius: 14px 14px 0 0 !important; overflow: hidden; position: relative;
}
.pf-theme-frame .profile-name { letter-spacing: .12em; }

/* —— 鎏金水墨：封面重墨晕染 + 笔触分隔线 + 楷体名字 —— */
.pf-theme-ink .pf-cover, .pf-theme-ink .pf-cover-default {
  background:
    radial-gradient(60% 90% at 22% 8%, rgba(0,0,0,.6), transparent 58%),
    radial-gradient(48% 70% at 82% 30%, rgba(64,52,30,.55), transparent 62%),
    radial-gradient(90% 60% at 50% 108%, rgba(111,184,245,.2), transparent 60%),
    linear-gradient(165deg, #2A241C, #131109 74%) !important;
  position: relative; overflow: hidden;
}
.pf-theme-ink .pf-cover::after, .pf-theme-ink .pf-cover-default::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(2px 2px at 18% 62%, rgba(232,201,121,.5), transparent 100%),
    radial-gradient(1.5px 1.5px at 34% 44%, rgba(232,201,121,.35), transparent 100%),
    radial-gradient(2px 2px at 72% 70%, rgba(232,201,121,.4), transparent 100%),
    radial-gradient(1.5px 1.5px at 88% 30%, rgba(232,201,121,.3), transparent 100%);
  pointer-events: none;
}
.pf-theme-ink .profile-name {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Noto Serif SC", serif !important;
  letter-spacing: .14em; color: #F0E6C8 !important;
  text-shadow: 0 0 14px rgba(111,184,245,.35), 0 2px 4px rgba(0,0,0,.6);
}
.pf-theme-ink .profile-bio { color: #D8C9A3 !important; font-style: italic; }
.pf-theme-ink .profile-stats { border-top: 1px solid rgba(111,184,245,.3); position: relative; }
.pf-theme-ink .profile-stats::before {
  content: ''; position: absolute; top: -1px; left: 18%; right: 18%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,201,121,.8) 30%, rgba(232,201,121,.8) 70%, transparent);
}
.pf-theme-ink .profile-stats b { color: #E0BE6A !important; }

/* ============================================================
   v2.51.0 存证扩展：授权声明 / 展厅快照
   —— 沿用黑金琉璃语言：暗底 + 细金边 + 亮金标题，保持全站一致
   ============================================================ */
.attest-extra { border-radius: 14px; padding: 14px; background:
  linear-gradient(180deg, rgba(111,184,245,.06), rgba(111,184,245,.012) 70%),
  linear-gradient(180deg, #1D1C18, #141311 78%);
  border: 1px solid rgba(111,184,245,.22);
  box-shadow: 0 6px 20px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.03);
}
.attest-extra .section-title { font-size: 15px; color: #F7ECD2 !important; letter-spacing: .3px; }
.attest-extra .section-title small { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 400; color: rgba(247,236,210,.55); letter-spacing: 0; }
.attest-extra .checkin-tip { margin: 0; color: rgba(240,232,214,.6); font-size: 12.5px; line-height: 1.65; }

.attest-extra-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-top: 8px;
  border-radius: 10px; background: rgba(255,255,255,.022); border: 1px solid rgba(111,184,245,.12); }
.attest-extra-row:first-child { margin-top: 4px; }
.attest-extra-main { flex: 1; min-width: 0; }
.attest-extra-title { font-size: 13.5px; color: #F2E6C8; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attest-extra-sub { margin-top: 2px; font-size: 11.5px; color: rgba(240,232,214,.5); }
.attest-extra-code { margin-top: 4px; font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: #D9BC72; letter-spacing: .5px; }
.attest-extra-acts { display: flex; gap: 6px; flex: 0 0 auto; }
.attest-extra-acts .btn-sm { border-color: rgba(111,184,245,.3); color: #E8C979; background: rgba(111,184,245,.06); }
.attest-extra-acts .btn-sm:hover { background: rgba(111,184,245,.14); }

/* ============================================================
   v2.51.1 3D 展厅 · 全息科技厅（holo）HUD 青蓝点缀
   ============================================================ */
.hall3d-holo .hall3d-brand i { background: #54d2ff; box-shadow: 0 0 10px rgba(84,210,255,.9); }
.hall3d-holo .hall3d-brand span { color: #bfeaff; text-shadow: 0 0 14px rgba(84,210,255,.45); }
.hall3d-holo .hall3d-plate { border-color: rgba(84,210,255,.35); background: rgba(3,14,24,.78); box-shadow: 0 8px 30px rgba(0,224,255,.10); }
.hall3d-holo .hall3d-plate b { color: #cfeeff; }
.hall3d-holo .hall3d-plate em { color: #6fd2ff; }
.hall3d-holo .hall3d-btn { border-color: rgba(84,210,255,.4); color: #9fe2ff; background: rgba(6,28,44,.6); }
.hall3d-holo .hall3d-btn:hover { background: rgba(84,210,255,.16); }
.hall3d-holo .hall3d-idx { color: rgba(159,226,255,.75); }
.hall3d-holo .hall3d-mood { color: #9fe2ff; border-color: rgba(84,210,255,.4); }
.hall3d-holo .hall3d-tipbar { color: rgba(159,226,255,.55); }
.hall3d-holo .hall3d-pop { border-color: rgba(84,210,255,.35); background: rgba(3,14,24,.9); }
.hall3d-holo .hall3d-pop b { color: #cfeeff; }

/* v2.51.1 修复：hud 容器 pointer-events:none 会吞掉顶部小按钮的点击，逐个恢复 */
.hall3d-topbtns .hall3d-auto,
.hall3d-topbtns .hall3d-mood,
.hall3d-topbtns .hall3d-exit { pointer-events: auto; }

/* v2.51.8 图片防保存：长按呼出 / 选中拖拽全部关掉（右键菜单在 JS 拦截） */
html.img-protect img,
html.img-protect canvas {
  -webkit-touch-callout: none;      /* iOS Safari 长按不弹「存储图像」 */
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
html.img-protect img { pointer-events: auto; }

/* v2.51.18 图片防保存加固：
   img 自身不再是触摸/长按的命中目标（事件全部落在父容器上），
   安卓壳浏览器长按弹出的原生「保存图片 / 下载图片」菜单随之失效——
   该菜单由 hit-test 命中的元素决定，穿透到父容器后就不会再识别为图片。
   代价是绑在 img 上的 click 全部迁移到了父容器（见 views.js v2.51.18）。 */
html.img-protect img {
  pointer-events: none;
}

/* v2.51.15 源码 / 开发者工具防护：全局禁选中、禁拖拽（输入框与可编辑区豁免） */
html.sec-devtools body,
html.sec-devtools body * {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
html.sec-devtools input,
html.sec-devtools textarea,
html.sec-devtools [contenteditable="true"],
html.sec-devtools [contenteditable="true"] * {
  -webkit-user-select: text;
  user-select: text;
}
html.sec-devtools img,
html.sec-devtools video { -webkit-user-drag: none; }
/* 禁止复制模式：仅禁选中，不拦快捷键 */
html.sec-no-copy body,
html.sec-no-copy body * {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
html.sec-no-copy input,
html.sec-no-copy textarea,
html.sec-no-copy [contenteditable="true"],
html.sec-no-copy [contenteditable="true"] * {
  -webkit-user-select: text;
  user-select: text;
}
/* 开发者工具开启时的遮盖层：整屏不透明，阻断"边看边抄" */
#secDevMask {
  position: fixed; inset: 0; z-index: 2147483000;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg, #0d0e11);
  backdrop-filter: blur(8px);
}
#secDevMask .sec-dev-card {
  display: flex; flex-direction: column; gap: 10px; align-items: center;
  padding: 32px 40px; border-radius: 16px; text-align: center;
  border: 1px solid var(--line, rgba(255,255,255,.12));
  background: color-mix(in srgb, var(--bg, #0d0e11) 92%, #fff 4%);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
}
#secDevMask b { font-size: 15px; color: var(--text, #eee); letter-spacing: .02em; }
#secDevMask span { font-size: 12px; color: var(--text-3, #999); }

/* ══════════════════════════════════════════════════════════════
   v2.51.19 防截图加固：显性水印 + 切离模糊 + 轻提示（v2.55.1）
   说明：网页无法阻止系统截屏，这一层是「让截图变贵 + 让泄露可追」。
   ══════════════════════════════════════════════════════════════ */

/* 水印层：SVG 平铺，铺在容器内、图片之上，不响应任何指针事件 */
.shot-wm {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: normal;
}
/* 图片本身缩放/拖拽时水印不跟着动 —— 水印贴的是「取景框」，
   这样即使用户把图放大裁切，水印仍分布在可视区域内 */
.post-imgwrap .shot-wm,
.lb-stage .shot-wm,
.gal-lb-media .shot-wm { will-change: auto; }

/* 切到后台（疑似截屏）瞬间模糊所有作品内容 */
html.shot-blur .post-img,
html.shot-blur .lb-img,
html.shot-blur .gal-lb-img,
html.shot-blur .gal-lb-video,
html.shot-blur .post-video-el {
  filter: blur(28px) saturate(.4);
  transition: filter .12s linear;
}

/* 回来后的轻提示条（v2.55.1：替代原全屏遮罩，不打断浏览）
   仅短暂切离时出现一次，3 秒自动消失；锁屏等长时离开不显示 */
.shot-toast {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translate(-50%, -16px);
  z-index: 99999;
  max-width: 86vw;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(20,17,13,.94);
  border: 1px solid rgba(111,184,245,.4);
  color: #f0e3c4;
  font-size: 12.5px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 12px 34px -12px rgba(0,0,0,.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.shot-toast.in { opacity: 1; transform: translate(-50%, 0); }

/* 基础隐形溯源标记说明行（v2.55.4）：普惠能力，弱化呈现以区别于免责警示 */
.vp-notice-basic { color: rgba(111,184,245,.78); border-left: 2px solid rgba(111,184,245,.4); padding-left: 8px; }

/* ==========================================================================
   视频版权保护（v2.51.28）
   - 发布弹窗里的保护档位卡片
   - 播放器上的身份水印与「禁止下载」提示
   ========================================================================== */

/* ---- 发布弹窗：保护设置 ---- */
.vp-field { border-top: 1px dashed rgba(111,184,245,.18); padding-top: 14px; }
.vp-field.hidden { display: none; }
.vp-row { margin-bottom: 14px; }
.vp-row-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.vp-title { font-size: 13.5px; font-weight: 600; color: var(--text-1); margin-bottom: 4px; }
.vp-sub { font-size: 11.5px; line-height: 1.65; color: var(--text-3); }
.vp-label { font-size: 12px; color: var(--text-2); margin: 4px 0 8px; letter-spacing: .02em; }
.vp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.vp-card {
  text-align: left;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.02);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.vp-card:hover { border-color: rgba(111,184,245,.32); background: rgba(111,184,245,.04); }
.vp-card.on { border-color: rgba(111,184,245,.72); background: rgba(111,184,245,.09); }
.vp-card.on:active { transform: scale(.99); }
.vp-card-top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.vp-card-name { font-size: 12.5px; font-weight: 600; color: var(--text-1); }
.vp-card-tag {
  font-size: 9.5px; padding: 1px 5px; border-radius: 5px;
  color: var(--accent); background: rgba(111,184,245,.13); border: 1px solid rgba(111,184,245,.24);
}
.vp-card-desc { font-size: 11px; line-height: 1.6; color: var(--text-3); margin-bottom: 6px; }
.vp-card-cost { font-size: 10.5px; color: rgba(111,184,245,.62); }

/* ===== 三档统一防护面板（v2.52.0） ===== */
.vp-notice {
  font-size: 11.5px; line-height: 1.75; color: rgba(255,196,0,.78);
  padding: 9px 11px; border-radius: 9px; margin-bottom: 12px;
  background: rgba(255,196,0,.055); border: 1px solid rgba(255,196,0,.16);
}
.vp-card.locked { opacity: .62; }
.vp-card.locked:hover { transform: none; }
.vp-card-tag.lock { color: rgba(160,160,165,.85); background: rgba(255,255,255,.05); }
.vp-row-tight { margin-top: 10px; }
.vp-row-tight .vp-title { font-size: 12.5px; }
.switch.disabled { opacity: .5; cursor: not-allowed; }
/* 详情页统一声明小字 */
.protect-note {
  margin-top: 12px; padding: 9px 12px; border-radius: 10px;
  font-size: 11.5px; line-height: 1.75; color: var(--text-3);
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06);
}
/* 广场卡片防护标识 */
.protect-dot {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; line-height: 1; padding: 3px 6px; border-radius: 20px;
  border: 1px solid transparent; white-space: nowrap;
}
.protect-dot.green { color: #8fd9a8; background: rgba(80,190,120,.1); border-color: rgba(80,190,120,.22); }
.protect-dot.blue { color: #8fbcf0; background: rgba(80,140,235,.1); border-color: rgba(80,140,235,.22); }
.protect-dot.purple { color: #c4a6f0; background: rgba(150,110,235,.1); border-color: rgba(150,110,235,.22); }
.vp-note {
  font-size: 11.5px; line-height: 1.7; color: var(--text-3);
  padding: 9px 11px; border-radius: 9px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
}
.vp-tip {
  font-size: 11px; line-height: 1.7; color: var(--text-3);
  margin-top: 10px; padding: 8px 11px; border-radius: 9px;
  background: rgba(255,196,0,.05); border: 1px solid rgba(255,196,0,.14);
}
@media (max-width: 560px) {
  .vp-grid { grid-template-columns: 1fr; }
}

/* ---- 播放器：身份水印 + 禁止下载标识 ---- */
.post-video { position: relative; }
.post-video .shot-wm { pointer-events: none; }
/* 视频水印比图片更淡：视频本身在动，水印太抢会毁观感 */
.post-video .shot-wm { opacity: .55; }
/* 禁止下载时，屏蔽长按菜单与文本选择（安卓壳浏览器原生「保存视频」走长按） */
.vp-nodl { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.vp-nodl video { pointer-events: auto; }
/* 播放器右上角的保护标识：让观看者知道这段内容受保护 */
.vp-badge {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px; border-radius: 999px;
  font-size: 10.5px; letter-spacing: .02em;
  color: rgba(255,235,190,.86);
  background: rgba(0,0,0,.46);
  border: 1px solid rgba(111,184,245,.3);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
/* 加密播放加载中的骨架 */
.vp-loading {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: rgba(240,227,196,.72);
  background: rgba(8,8,10,.62);
  pointer-events: none;
}

/* ===== 作品溯源取证查验页（v2.52.0） ===== */
.trace-page { padding: 4px 0 40px; }
.trace-disclaimer {
  font-size: 11.5px; line-height: 1.75; color: rgba(255,196,0,.72);
  padding: 10px 12px; border-radius: 10px; margin: 10px 0 14px;
  background: rgba(255,196,0,.05); border: 1px solid rgba(255,196,0,.15);
}
.trace-card {
  padding: 16px; border-radius: 16px; margin-bottom: 14px;
  background: var(--card); border: 1px solid var(--line);
}
.trace-card-t { font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 5px; }
.trace-card-s { font-size: 11.5px; line-height: 1.7; color: var(--text-3); margin-bottom: 14px; }
.trace-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.trace-tab {
  flex: 1; height: 34px; border-radius: 9px; font-size: 12.5px; cursor: pointer;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); color: var(--text-2);
}
.trace-tab.on { background: rgba(111,184,245,.13); border-color: rgba(111,184,245,.42); color: #e8d5a0; }
.trace-input { margin-bottom: 12px; }
.trace-file {
  width: 100%; font-size: 12px; color: var(--text-2); padding: 10px;
  border-radius: 10px; background: rgba(255,255,255,.03); border: 1px dashed rgba(255,255,255,.14);
}
.trace-ta {
  width: 100%; min-height: 140px; padding: 11px; border-radius: 10px; font-size: 13px; line-height: 1.7;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.09); color: var(--text-1); resize: vertical;
}
.trace-hint { font-size: 11px; color: var(--text-3); line-height: 1.7; margin-top: 7px; }
.trace-submit { width: 100%; height: 42px; border-radius: 11px; font-size: 13.5px; }
.trace-warn { font-size: 11px; color: rgba(222,107,120,.8); line-height: 1.7; margin-top: 10px; text-align: center; }
.trace-out:empty { display: none; }
.trace-loading { font-size: 12.5px; color: var(--text-3); padding: 14px 0; text-align: center; }
.trace-ok { margin-top: 14px; padding: 14px; border-radius: 12px; background: rgba(80,190,120,.06); border: 1px solid rgba(80,190,120,.25); }
.trace-ok-t { font-size: 14px; font-weight: 700; color: #8fd9a8; margin-bottom: 10px; }
.trace-kv { display: flex; gap: 10px; padding: 5px 0; font-size: 12.5px; align-items: flex-start; }
.trace-k { flex: 0 0 88px; color: var(--text-3); }
.trace-v { flex: 1; color: var(--text-1); word-break: break-all; }
.trace-score { font-size: 11px; color: var(--text-3); margin-top: 6px; }
.trace-note { font-size: 11px; color: var(--text-3); margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.06); line-height: 1.7; }
.trace-fail { margin-top: 14px; padding: 14px; border-radius: 12px; background: rgba(222,107,120,.055); border: 1px solid rgba(222,107,120,.22); }
.trace-fail-t { font-size: 14px; font-weight: 700; color: #de6b78; margin-bottom: 8px; }
.trace-fail-s { font-size: 12px; line-height: 1.8; color: var(--text-2); }
.trace-hist { padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); margin-bottom: 14px; }
.trace-hist-t { font-size: 13px; font-weight: 600; color: var(--text-1); margin-bottom: 10px; }
.trace-hist-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.05); font-size: 11.5px; }
.trace-hist-kind { color: var(--text-3); flex: 0 0 34px; }
.trace-hist-st { padding: 2px 7px; border-radius: 5px; font-size: 10.5px; flex: 0 0 auto; }
.trace-hist-st.st-green { color: #8fd9a8; background: rgba(80,190,120,.12); }
.trace-hist-st.st-rose { color: #de6b78; background: rgba(222,107,120,.12); }
.trace-hist-st.st-gray { color: var(--text-3); background: rgba(255,255,255,.05); }
.trace-hist-txt { flex: 1; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trace-hist-time { color: var(--text-3); font-size: 10.5px; flex: 0 0 auto; }
.trace-footer-note {
  font-size: 10.5px; line-height: 1.8; color: var(--text-3);
  padding: 12px; border-radius: 10px; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.05);
}
.trace-confirm { max-width: 340px; }
/* 长文加密档分段渲染 */
.post-body-enc .enc-sum { color: var(--text-2); line-height: 1.85; }
.post-body-enc .enc-more {
  margin-top: 10px; padding: 9px 12px; border-radius: 9px; cursor: pointer; text-align: center;
  font-size: 12px; color: #e8d5a0; background: rgba(111,184,245,.07); border: 1px dashed rgba(111,184,245,.3);
}
.enc-parts { margin-top: 10px; }
.enc-para { margin: 0 0 12px; line-height: 1.9; color: var(--text-1); font-size: 14px; }

/* ============================ 开屏仪表盘·浮层底座（v2.55.11 起，v2.55.13 改孔雀开屏） ============================
   定位：创作者控制台。层级 65：盖过首页内容与 tabbar（40~41），低于弹窗层（70）。
   遮罩与底部小字为各版共用底座；尾羽/光圈等开屏形态见文末 v2.55.13 段。 */
.fab-dash { position: fixed; inset: 0; z-index: 65; }
.fab-dash-backdrop {
  position: absolute; inset: 0;
  /* v2.56.2：去掉 backdrop-blur——安卓 PWA/standalone 下背景采样光栅化
     会把整页糊成马赛克色块（用户实测）。改用更深的纯色半透明遮罩，
     视觉层次足够且任何内核都稳定。 */
  background: rgba(6, 8, 14, .78);
  opacity: 0; transition: opacity .24s ease;
  /* 合成层提升：防止打开瞬间半透明层首帧出现深色闪烁块 */
  transform: translateZ(0);
  will-change: opacity;
}
.fab-dash.open .fab-dash-backdrop { opacity: 1; }
/* 底部合规兜底小字 */
.fab-dash-note {
  position: absolute; left: 0; right: 0; bottom: 12px;
  text-align: center; font-size: 9.5px; letter-spacing: .5px;
  color: color-mix(in srgb, var(--text-3) 78%, transparent);
  opacity: 0; transition: opacity .3s ease .1s;
}
.fab-dash.open .fab-dash-note { opacity: 1; }
/* ============================ 科技云键盘（v2.55.24，替代孔雀开屏） ============================
   参考图：透明玻璃键帽 + 冰蓝辉光 + 云 / 电路氛围，深底上浮起一块「发光键盘」。
   功能键按行铺开，最下面一根加长键 = 发布入口。只用 transform/opacity 动效，光晕 ≤ .4。 */

.fab-cloudkb .fab-dash-note { bottom: calc(var(--core-bottom, 58px) + 330px); }

/* 键盘体：从底部浮起，深蓝渐变面板 + 顶缘高光 */
.cloud-kb {
  position: absolute; left: 50%; bottom: calc(var(--core-bottom, 58px) + 2px);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transform: translateX(-50%) translateY(26px);
  width: min(406px, calc(100% - 20px));
  padding: 12px 10px 12px;
  border-radius: 18px;
  background:
    radial-gradient(120% 70% at 50% -18%, rgba(120,190,255,.14) 0%, transparent 60%),
    linear-gradient(180deg, rgba(24,32,48,.96) 0%, rgba(13,17,26,.97) 100%);
  border: 1px solid rgba(130,200,255,.28);
  box-shadow:
    0 -6px 30px rgba(70,150,255,.16),
    0 18px 40px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(190,230,255,.22);
  opacity: 0;
  transition: transform .34s cubic-bezier(.2, 1.1, .36, 1), opacity .26s ease;
}
.fab-dash.open .cloud-kb { transform: translateX(-50%) translateY(0); opacity: 1; }
.fab-dash.closing .cloud-kb { transform: translateX(-50%) translateY(22px); opacity: 0; transition-duration: .16s; }

/* 头部：云朵 + 标题 + 角标 */
.cloud-kb-head {
  display: flex; align-items: center; gap: 7px;
  padding: 2px 6px 9px;
}
.cloud-kb-cloud {
  display: inline-flex; color: #8ec9ff;
  filter: drop-shadow(0 0 6px rgba(110,180,255,.55));
}
.cloud-kb-cloud svg { width: 19px; height: 19px; }
.cloud-kb-title {
  font-size: 12.5px; font-weight: 700; letter-spacing: 2px;
  background: linear-gradient(90deg, #cfe8ff, #7db8f0);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cloud-kb-tag {
  margin-left: auto; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 9.5px; color: rgba(160,205,245,.75);
  padding: 2px 8px; border-radius: 999px;
  background: rgba(110,180,255,.1); border: 1px solid rgba(130,200,255,.25);
}

/* 键帽行 */
.cloud-kb-row {
  display: flex; gap: 6px; margin-top: 6px;
}
.cloud-key {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 9px 2px 7px; border-radius: 11px;
  cursor: pointer; appearance: none; -webkit-tap-highlight-color: transparent;
  background:
    linear-gradient(180deg, rgba(190,225,255,.13) 0%, rgba(120,175,230,.06) 55%, rgba(70,110,160,.1) 100%);
  border: 1px solid rgba(150,205,255,.26);
  box-shadow:
    inset 0 1px 0 rgba(220,240,255,.22),
    0 2px 8px rgba(0,0,0,.35),
    0 0 10px rgba(90,170,255,.08);
  color: var(--text-1);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.cloud-key:active {
  transform: translateY(1px) scale(.97);
  border-color: rgba(170,215,255,.55);
  box-shadow:
    inset 0 1px 0 rgba(220,240,255,.25),
    0 0 14px rgba(110,185,255,.28);
}
.cloud-key-ico {
  display: inline-flex; color: #9fd0ff;
  filter: drop-shadow(0 0 5px rgba(110,180,255,.5));
}
.cloud-key-ico svg { width: 17px; height: 17px; }
.cloud-key-name {
  font-size: 9.5px; letter-spacing: .5px; color: rgba(225,240,255,.88);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 最长键：发布入口（占满一行的空格键位） */
.cloud-key-pub {
  flex: 1 1 100%;
  flex-direction: row; gap: 9px;
  padding: 12px 14px; border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(140,200,255,.22) 0%, rgba(90,150,220,.1) 60%, rgba(60,100,160,.16) 100%);
  border-color: rgba(160,215,255,.45);
  box-shadow:
    inset 0 1px 0 rgba(225,245,255,.3),
    0 0 18px rgba(100,180,255,.2),
    0 4px 12px rgba(0,0,0,.4);
}
.cloud-key-pub .cloud-key-ico svg { width: 20px; height: 20px; }
.cloud-key-pub .cloud-key-name {
  font-size: 14px; font-weight: 700; letter-spacing: 4px;
  background: linear-gradient(180deg, #e8f4ff, #9cc8f5);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cloud-key-pub .cloud-key-sub {
  margin-left: auto; font-size: 9.5px; color: rgba(170,210,250,.6); letter-spacing: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .cloud-kb, .cloud-key { transition-duration: .1s !important; }
}

/* ============================ 科技云键盘·氛围层（v2.55.28） ============================
   三件事：① 淡蓝云粒子流（.cf-mist ×5，向上飘 + 淡入淡出）
          ② 轻微全息光环（.cf-halo ×2，呼吸缩放 + 缓慢旋转，透明度 ≤ .32）
          ③ 底部玻璃反射（.cloud-kb::after 倒影 + .cloud-kb::before 顶缘斜光带）
   约束：只用 transform / opacity 动效（合成器友好），全部 pointer-events:none 不挡点击，
        光晕亮度 ≤ .32，避免抢键盘主体；prefers-reduced-motion 下全部静止。 */

.fab-cloudkb .fab-dash-backdrop {
  background:
    radial-gradient(90% 55% at 50% 92%, rgba(60,130,215,.2) 0%, transparent 70%),
    rgba(6, 9, 14, .68);
}

/* 氛围容器：铺满浮层，压在键盘（z-index 1）之上——
   云雾从键盘前方飘过，像隔着玻璃看到的冷雾，更符合「玻璃键盘」质感。
   pointer-events:none 保证不挡任何键帽点击。 */
.cloud-fx {
  position: absolute; inset: 0; overflow: hidden;
  pointer-events: none; z-index: 2;
  opacity: 0; transition: opacity .5s ease;
  transform: translateZ(0); -webkit-transform: translateZ(0);
}
.fab-dash.open .cloud-fx { opacity: 1; }
.fab-dash.closing .cloud-fx { opacity: 0; transition-duration: .16s; }

/* —— ② 轻微全息光环：两层同心椭圆环，呼吸 + 慢转 —— */
.cf-halo {
  position: absolute;
  left: 50%; bottom: calc(var(--core-bottom, 58px) + 28px);
  width: min(560px, 140%); height: 320px;
  margin-left: calc(min(520px, 132%) / -2);
  border-radius: 50%;
  border: 1px solid rgba(130, 195, 255, .16);
  background: radial-gradient(closest-side, rgba(90, 165, 255, .1) 0%, rgba(90, 165, 255, .04) 58%, transparent 74%);
  box-shadow: 0 0 40px rgba(80, 155, 255, .1), inset 0 0 40px rgba(90, 170, 255, .06);
  filter: blur(1.5px);
  transform: rotate(-8deg) scale(.92);
  animation: cfHaloBreath 8s ease-in-out infinite;
  will-change: transform, opacity;
}
.cf-halo2 {
  width: min(360px, 94%); height: 200px;
  margin-left: calc(min(360px, 94%) / -2);
  bottom: calc(var(--core-bottom, 58px) + 92px);
  border-color: rgba(150, 210, 255, .12);
  background: radial-gradient(closest-side, rgba(120, 190, 255, .08) 0%, transparent 72%);
  filter: blur(2.5px);
  animation: cfHaloBreath2 11s ease-in-out infinite;
}
@keyframes cfHaloBreath {
  0%, 100% { transform: rotate(-8deg) scale(.92); opacity: .55; }
  50%      { transform: rotate(-4deg) scale(1.04); opacity: .95; }
}
@keyframes cfHaloBreath2 {
  0%, 100% { transform: rotate(6deg) scale(1.02); opacity: .4; }
  50%      { transform: rotate(2deg) scale(.9); opacity: .8; }
}

/* —— ① 淡蓝云粒子流：五团雾化光点，自下向上飘、左右微摆、中途淡入淡出 —— */
.cf-mist {
  position: absolute; bottom: -60px;
  width: 176px; height: 176px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(185, 228, 255, .72) 0%, rgba(120, 190, 255, .32) 45%, transparent 74%);
  filter: blur(12px);
  opacity: 0;
  animation: cfMistRise 15s linear infinite;
  will-change: transform, opacity;
}
.cf-mist.m1 { left: 4%;  width: 200px; height: 200px; animation-duration: 16s; animation-delay: 0s;   }
.cf-mist.m2 { left: 24%; width: 128px; height: 128px; animation-duration: 12s; animation-delay: -4.5s; filter: blur(9px); }
.cf-mist.m3 { left: 45%; width: 230px; height: 230px; animation-duration: 19s; animation-delay: -9s;  filter: blur(15px); }
.cf-mist.m4 { left: 66%; width: 148px; height: 148px; animation-duration: 13s; animation-delay: -2.5s; }
.cf-mist.m5 { left: 82%; width: 185px; height: 185px; animation-duration: 17s; animation-delay: -12s;  filter: blur(12px); }
@keyframes cfMistRise {
  0%   { transform: translate3d(0, 0, 0) scale(.7); opacity: 0; }
  14%  { opacity: .78; }
  50%  { transform: translate3d(14px, -34vh, 0) scale(1); opacity: .62; }
  82%  { opacity: .16; }
  100% { transform: translate3d(-10px, -66vh, 0) scale(1.14); opacity: 0; }
}

/* —— ③ 底部玻璃反射：键帽下缘投出的倒影 + 顶缘斜光带 —— */
.cloud-kb::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px;
  background: linear-gradient(115deg,
    rgba(255, 255, 255, .02) 0%,
    rgba(190, 230, 255, .42) 22%,
    rgba(190, 230, 255, .05) 42%,
    rgba(190, 230, 255, .28) 68%,
    rgba(255, 255, 255, .02) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: .8;
}
.cloud-kb::after {
  content: ''; position: absolute; left: 10px; right: 10px; top: 100%;
  height: 46px; margin-top: 3px;
  border-radius: 0 0 16px 16px;
  /* 紧贴琴身的一小段更亮，往下迅速衰减 → 像玻璃台面映出的倒影 */
  background: linear-gradient(180deg,
    rgba(170, 215, 255, .2) 0%,
    rgba(120, 180, 245, .08) 38%,
    rgba(90, 150, 220, .03) 68%,
    transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 42%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 42%, transparent 100%);
  pointer-events: none;
}

/* 键盘本体提到氛围层之上 */
.fab-cloudkb .cloud-kb { z-index: 1; }

/* 降级：尊重系统「减少动态效果」，全部静止在可见状态 */
@media (prefers-reduced-motion: reduce) {
  .cf-halo, .cf-halo2, .cf-mist { animation: none !important; }
  .cf-halo { opacity: .6; }
  .cf-halo2 { opacity: .45; }
  .cf-mist.m1, .cf-mist.m3 { opacity: .22; transform: translate3d(0, -28vh, 0); }
  .cf-mist.m2, .cf-mist.m5 { opacity: .16; transform: translate3d(0, -46vh, 0); }
  .cf-mist.m4 { opacity: .18; transform: translate3d(0, -16vh, 0); }
}

/* ============================ 溯源取证查验·高级视觉（v2.55.18） ============================
   头图盾徽 + 金渐变标题 + 三步流程胶囊；上传区换大落框；提交按钮金渐变光晕。
   合规边界不变：免责文案原文保留，只换容器观感。 */

.trace-page { position: relative; padding: 0 0 44px; }

/* ---- 头图 ---- */
.trace-hero {
  position: relative; overflow: hidden;
  padding: 26px 20px 22px; text-align: center;
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(111,184,245,.16) 0%, transparent 55%),
    radial-gradient(80% 60% at 85% 110%, rgba(120,90,200,.10) 0%, transparent 60%),
    linear-gradient(180deg, rgba(28,23,40,.85), transparent);
  border-bottom: 1px solid rgba(111,184,245,.14);
}
.trace-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 40% at 50% 0%, rgba(111,184,245,.08), transparent 70%);
}
.trace-hero-ico {
  width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 16px;
  display: grid; place-items: center; color: var(--accent);
  background: linear-gradient(160deg, rgba(111,184,245,.22), rgba(111,184,245,.05));
  border: 1px solid rgba(111,184,245,.4);
  box-shadow: 0 0 22px rgba(111,184,245,.22), inset 0 1px 0 rgba(255,255,255,.12);
}
.trace-hero-ico svg { width: 28px; height: 28px; filter: drop-shadow(0 0 8px rgba(111,184,245,.5)); }
.trace-hero-title {
  font-size: 21px; letter-spacing: 1px;
  background: linear-gradient(180deg, #CFE8FF, #6FB8F5);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.trace-hero-sub { margin: 8px auto 0; max-width: 330px; }
.trace-steps { display: flex; justify-content: center; gap: 7px; margin-top: 14px; flex-wrap: wrap; }
.trace-step {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; color: var(--text-2); padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(111,184,245,.2);
}
.trace-step b {
  width: 15px; height: 15px; border-radius: 50%; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; color: #1c1730;
  background: linear-gradient(160deg, #f0d998, #c9a53c);
}

/* ---- 免责条：琥珀警示卡（文案原文不变） ---- */
.trace-disclaimer {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 11.5px; line-height: 1.75; color: rgba(255,205,80,.85);
  padding: 12px 14px; border-radius: 12px; margin: 14px 16px;
  background: linear-gradient(160deg, rgba(255,196,0,.08), rgba(255,196,0,.03));
  border: 1px solid rgba(255,196,0,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.trace-disclaimer::before { content: '⚠'; font-size: 13px; line-height: 1.5; }

/* ---- 上传卡 ---- */
.trace-card {
  margin: 0 16px 14px; padding: 18px 16px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)), var(--card);
  border: 1px solid rgba(111,184,245,.16);
  box-shadow: 0 8px 26px rgba(0,0,0,.32);
}
.trace-card-t { font-size: 14.5px; }
.trace-tabs { gap: 7px; }
.trace-tab {
  height: 36px; border-radius: 999px; font-size: 12.5px; transition: all .18s ease;
}
.trace-tab.on {
  background: linear-gradient(160deg, rgba(111,184,245,.24), rgba(111,184,245,.1));
  border-color: rgba(111,184,245,.55); color: #f0dda8;
  box-shadow: 0 0 12px rgba(111,184,245,.18);
}

/* ---- 大落框式文件选择 ---- */
.trace-file { display: none; }
.trace-dropzone {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 22px 14px 18px; border-radius: 14px; cursor: pointer;
  background: rgba(111,184,245,.045);
  border: 1.5px dashed rgba(111,184,245,.35);
  transition: all .18s ease;
}
.trace-dropzone:active { transform: scale(.985); }
.trace-dropzone.has { border-style: solid; border-color: rgba(111,184,245,.6); background: rgba(111,184,245,.09); }
.trace-dz-ico {
  width: 34px; height: 34px; border-radius: 50%; margin-bottom: 4px;
  display: grid; place-items: center; font-size: 15px; color: var(--accent);
  background: rgba(111,184,245,.14); border: 1px solid rgba(111,184,245,.35);
}
.trace-dz-t { font-size: 13px; font-weight: 600; color: var(--text-1); }
.trace-dz-s { font-size: 10.5px; color: var(--text-3); line-height: 1.6; }
.trace-dz-picked {
  margin-top: 9px; font-size: 11.5px; color: #e8d5a0;
  padding: 7px 11px; border-radius: 9px;
  background: rgba(111,184,245,.1); border: 1px solid rgba(111,184,245,.3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---- 提交按钮：金渐变光晕 ---- */
.trace-submit {
  height: 46px; border-radius: 13px; font-size: 14px; font-weight: 700; letter-spacing: 2px;
  background: linear-gradient(160deg, #ecd69c, #c9a53c 60%, #a8842c);
  color: #221c10; border: 0;
  box-shadow: 0 6px 18px rgba(111,184,245,.28), inset 0 1px 0 rgba(255,255,255,.4);
}
.trace-submit:disabled { filter: saturate(.5) brightness(.8); }

/* ---- 结果卡 ---- */
.trace-ok {
  border-radius: 14px; border-color: rgba(80,190,120,.35);
  background: linear-gradient(180deg, rgba(80,190,120,.1), rgba(80,190,120,.04));
}
.trace-kv { padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,.07); }
.trace-kv:last-of-type { border-bottom: 0; }

/* ---- 取证记录 ---- */
.trace-hist {
  margin: 0 16px 14px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.012)), var(--card);
  border: 1px solid var(--line);
}
.trace-footer-note {
  margin: 0 16px; font-size: 10.5px; line-height: 1.8; color: var(--text-3);
  padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06);
}

/* ---- 发布页 · 卡片动态背景说明折叠（v2.55.19） ---- */
.media-hint-fold {
  display: inline-flex; align-items: center; margin-top: 8px;
  font-size: 11px; color: var(--text-3); cursor: pointer;
  background: none; border: 0; padding: 2px 0; letter-spacing: .5px;
}
.media-hint-fold-body.hidden { display: none; }

/* ============================ 图文多图（v2.55.29） ============================ */
/* 发布页：主图预览下方的附加图条 */
.media-extra {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  margin-top: 8px;
}
.media-extra-cell {
  position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(150, 205, 255, .22); background: rgba(120, 175, 230, .06);
  padding: 0; cursor: pointer;
}
.media-extra-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-extra-cell .media-remove { position: absolute; top: 4px; right: 4px; }
.media-extra-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--text-3); appearance: none; -webkit-tap-highlight-color: transparent;
}
.media-extra-add .media-drop-ico svg { width: 20px; height: 20px; }
.media-extra-t { font-size: 10px; letter-spacing: 1px; }

/* v2.79.0 图集：封面标记 / 设为封面 / 拖拽排序 */
.media-extra-cell.is-cover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.media-cover-badge {
  position: absolute; left: 4px; top: 4px; z-index: 2;
  padding: 2px 6px; border-radius: 6px; font-size: 9px; letter-spacing: .5px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
}
.media-cover-btn {
  position: absolute; left: 4px; bottom: 4px; z-index: 2;
  padding: 3px 6px; border-radius: 6px; font-size: 9px; line-height: 1;
  border: 1px solid rgba(255,255,255,.28); background: rgba(0,0,0,.52); color: #fff;
  appearance: none; cursor: pointer;
}
.media-extra-cell.dragging { opacity: .45; }
.media-extra-cell.drag-over { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }

/* 图集存证模式（会员专属勾选框） */
.attest-mode-box { padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(209,73,121,.28); background: rgba(209,73,121,.06); }
.attest-mode-row { display: flex; align-items: flex-start; gap: 9px; }
.attest-mode-row .agree-chk { flex: 0 0 auto; margin-top: 1px; }
.attest-mode-txt { min-width: 0; }
.attest-mode-t { font-size: 13px; font-weight: 700; color: var(--text); }
.attest-mode-s { margin-top: 2px; font-size: 11.5px; line-height: 1.5; color: var(--text-3); }

/* 存证卡片：子哈希列表 */
.attest-children { margin-top: 8px; display: grid; gap: 4px; }
.attest-child { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.attest-child-idx { flex: 0 0 18px; color: var(--text-3); text-align: right; }
.attest-child-hash { flex: 1 1 auto; min-width: 0; font-family: ui-monospace, Menlo, monospace; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attest-copy { flex: 0 0 auto; padding: 2px 7px; font-size: 10px; }

/* 信息流 / 详情：多图九宫格（第一格 = 存证主图） */
.post-grid {
  display: grid; gap: 4px; margin: 10px 0 2px; border-radius: 14px; overflow: hidden;
}
.post-grid.g2, .post-grid.g3, .post-grid.g4 { grid-template-columns: repeat(2, 1fr); }
.post-grid.g5, .post-grid.g6, .post-grid.g7, .post-grid.g8, .post-grid.g9 { grid-template-columns: repeat(3, 1fr); }
.post-grid-cell {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  padding: 0; border: none; background: rgba(120, 175, 230, .05); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.post-grid-cell img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s ease;
}
.post-grid-cell:active img { transform: scale(1.04); }
.post-grid-more {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff;
  background: rgba(8, 12, 18, .55);
}
.gal-badge-multi { background: rgba(10, 14, 20, .68); border: 1px solid rgba(150, 205, 255, .3); }

/* ============================ 存证增强（v2.55.34）：哈希指纹 + 同源自查 ============================ */
.evidence-row {
  display: flex; gap: 8px; margin-top: 6px;
}
.evidence-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(120, 175, 230, .07); border: 1px solid rgba(130, 200, 255, .22);
  color: var(--text-2); font-size: 11px; letter-spacing: .5px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.evidence-btn svg { width: 13px; height: 13px; }
.evidence-btn:active { border-color: rgba(170, 215, 255, .5); }

/* 哈希指纹弹窗 */
.hashviz { padding: 4px 2px; }
.hashviz-canvas {
  display: block; margin: 12px auto 4px; width: min(288px, 78vw); height: auto;
  border-radius: 14px;
  box-shadow: 0 0 26px rgba(90, 160, 255, .18), inset 0 0 0 1px rgba(150, 205, 255, .2);
}
.hashviz-hash {
  margin-top: 10px; text-align: center; word-break: break-all;
  font-size: 10.5px; letter-spacing: 1px; color: var(--text-3); line-height: 1.8;
}

/* 同源自查弹窗 */
.similar-list { margin-top: 10px; }
.similar-loading { padding: 22px 0 10px; text-align: center; font-size: 12.5px; color: var(--text-2); }
.similar-loading::before {
  content: ''; display: block; width: 18px; height: 18px; margin: 0 auto 10px;
  border: 2px solid var(--line-2, rgba(150, 205, 255, .2)); border-top-color: var(--accent, #6FB8F5);
  border-radius: 50%; animation: spin360 .8s linear infinite;
}
.similar-clear { text-align: center; padding: 20px 0 8px; }
.similar-clear-ico {
  width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px; color: var(--mint, #63D6C4);
  background: rgba(99, 214, 196, .1); border: 1px solid rgba(99, 214, 196, .3);
}
.similar-clear-t { font-size: 15px; font-weight: 650; color: var(--text-1, #EAF3FF); }
.similar-clear-d { margin-top: 5px; font-size: 12px; color: var(--text-3, #93A9C4); }
.similar-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 4px; border-bottom: 1px solid rgba(255, 255, 255, .06);
  cursor: pointer;
}
.similar-row:last-of-type { border-bottom: none; }
.similar-row .similar-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; color: var(--text-1); }
.similar-note {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  background: rgba(111, 184, 245, .06); border: 1px solid rgba(111, 184, 245, .18);
  font-size: 11.5px; color: var(--text-2); line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   v2.56.0 云科技视觉层（Cloud-Tech）
   三层氛围光（深空 → 冰蓝雾 → 冷紫边）+ 玻璃拟态卡片 + 冰蓝描边高光
   原则：只改观感、不动布局与交互；动效仅 transform/opacity。
   ══════════════════════════════════════════════════════════════ */

/* ---------- 0. 全局氛围：深海蓝雾，取代原黑金环境光 ---------- */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    /* 顶部冷光：像由窗外透进来的天光 */
    radial-gradient(1100px 620px at 50% -14%, rgba(110, 185, 255, .10), transparent 62%),
    /* 右侧冰蓝雾团 */
    radial-gradient(820px 600px at 106% 18%, rgba(90, 165, 240, .075), transparent 60%),
    /* 左下冷紫雾（拉开层次，避免全蓝单调） */
    radial-gradient(760px 620px at -10% 82%, rgba(126, 140, 235, .06), transparent 62%),
    /* 底部地面反光 */
    radial-gradient(900px 380px at 50% 108%, rgba(120, 190, 255, .045), transparent 70%);
  animation: cloudDrift 26s ease-in-out infinite alternate;
}
@keyframes cloudDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-2%, 1.5%, 0) scale(1.05); }
}

/* 极细网格：给出「数字化底座」的暗示，透明度压到几乎只在暗处可辨 */
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(130, 190, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 190, 255, .028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 78%);
  opacity: .85;
}
/* 浅色主题下网格与雾光收弱（否则发灰） */
[data-theme="frost"] body::before, [data-theme="snow"] body::before { opacity: .55; }
[data-theme="frost"] body::after, [data-theme="snow"] body::after { opacity: .45; }

/* ---------- 1. 玻璃拟态卡片：统一给主要容器加「霜面」质感 ---------- */
.post-card,
.profile-hero,
.stat-box,
.menu,
.panel,
.card,
.rank-list,
.invite-card,
.kyc-card,
.theme-opt,
.wallet-card,
.pd-hero-card {
  background:
    linear-gradient(180deg, rgba(190, 226, 255, .055) 0%, rgba(120, 180, 245, .022) 38%, rgba(10, 18, 32, .30) 100%),
    var(--glass-bg);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.25);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.25);
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    0 10px 34px rgba(2, 8, 20, .38);
}
/* 浅色主题：玻璃换成「白霜」，避免深色块压在亮底上 */
[data-theme="frost"] .post-card, [data-theme="snow"] .post-card,
[data-theme="frost"] .profile-hero, [data-theme="snow"] .profile-hero,
[data-theme="frost"] .menu, [data-theme="snow"] .menu,
[data-theme="frost"] .panel, [data-theme="snow"] .panel,
[data-theme="frost"] .card, [data-theme="snow"] .card,
[data-theme="frost"] .stat-box, [data-theme="snow"] .stat-box,
[data-theme="frost"] .rank-list, [data-theme="snow"] .rank-list,
[data-theme="frost"] .invite-card, [data-theme="snow"] .invite-card,
[data-theme="frost"] .kyc-card, [data-theme="snow"] .kyc-card,
[data-theme="frost"] .theme-opt, [data-theme="snow"] .theme-opt,
/* v2.88.1 补漏：签到卡此前仍是深色渐变底，与下方白色「我的消息」上下不一致 */
[data-theme="frost"] .checkin-card, [data-theme="snow"] .checkin-card,
[data-theme="frost"] .notif-entry, [data-theme="snow"] .notif-entry {
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 8px 26px rgba(20, 45, 80, .08);
}
/* 签到卡内徽章/说明文字在浅色下同步适配 */
[data-theme="frost"] .checkin-streak, [data-theme="snow"] .checkin-streak {
  background: var(--accent-soft); color: var(--accent);
}
[data-theme="frost"] .checkin-tip, [data-theme="snow"] .checkin-tip,
[data-theme="frost"] .checkin-stat span, [data-theme="snow"] .checkin-stat span { color: var(--text-3); }

/* ---------- 1.2 浅色对比度修复（v2.56.17）：深色主题硬编码的浅字在亮底上隐形 ----------
   深色卡片里为观感硬编码的浅蓝/浅金字（存证条 #CFE8FF、金色 chip #EED9A0、
   操作按钮 #d3bf97），在霜白的白霜底上对比度不足 1.6:1，肉眼近乎隐形。
   逐个换成深冰蓝/石墨蓝，亮底上对比度 ≥ 4.5:1；只作用于浅色主题，深色主题不受影响 */
[data-theme="frost"] .chain-strip, [data-theme="snow"] .chain-strip {
  border-color: rgba(46, 134, 216, .3);
  background: linear-gradient(135deg, rgba(46, 134, 216, .08), rgba(46, 134, 216, .035));
  color: #2A5E8F;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
}
[data-theme="frost"] .chain-strip .ico, [data-theme="snow"] .chain-strip .ico { color: #2E86D8; }
[data-theme="frost"] .chain-strip .mono, [data-theme="frost"] .chain-strip code,
[data-theme="frost"] .chain-strip .hash, [data-theme="snow"] .chain-strip .hash,
[data-theme="frost"] .chain-strip .mono, [data-theme="frost"] .chain-strip code { color: #1C6FBA; }
[data-theme="snow"] .chain-strip .mono, [data-theme="snow"] .chain-strip code { color: #1C6FBA; }
/* 全站推荐 / 置顶 / 审核中 / 创作者等金蓝 chip：浅金 #EED9A0 在白底上隐形 */
[data-theme="frost"] .chip-gold, [data-theme="frost"] .pin-badge,
[data-theme="frost"] .chip-gold, [data-theme="frost"] .pin-badge, [data-theme="snow"] .chip-gold, [data-theme="snow"] .pin-badge {
  color: #1C6FBA !important;
  border-color: rgba(46, 134, 216, .38) !important;
  background: rgba(46, 134, 216, .09) !important;
}
[data-theme="frost"] .pin-countdown, [data-theme="snow"] .pin-countdown { color: var(--text-2); }
/* 卡片操作行（点赞/评论/收藏/打赏/分享）：淡米金 #d3bf97 → 石墨蓝 */
[data-theme="frost"] .pact, [data-theme="snow"] .pact { color: #4A6076; }
[data-theme="frost"] .pact:hover, [data-theme="snow"] .pact:hover { color: var(--text); }
[data-theme="frost"] .pact.on, [data-theme="frost"] .pact-tip:hover,
[data-theme="frost"] .pact-fav:hover, [data-theme="frost"] .pact-fav.on,
[data-theme="frost"] .pact-fav.on svg,
[data-theme="frost"] .pact.on, [data-theme="frost"] .pact-tip:hover, [data-theme="snow"] .pact.on, [data-theme="snow"] .pact-tip:hover,
[data-theme="frost"] .pact-fav:hover, [data-theme="frost"] .pact-fav.on, [data-theme="snow"] .pact-fav:hover, [data-theme="snow"] .pact-fav.on,
[data-theme="frost"] .pact-fav.on svg { color: #B08A45; }
[data-theme="snow"] .pact-fav.on svg { color: #B08A45; }

/* ---------- 2. 顶栏 / 底栏：毛玻璃悬浮，边界用一条冷光合成的发丝线 ---------- */
.topbar, .tabbar {
  background: var(--bg-1);
  background: color-mix(in srgb, var(--bg-1) 72%, transparent);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  border-color: var(--glass-line);
}
.tabbar::before {
  content: ''; position: absolute; left: 12%; right: 12%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150, 210, 255, .42), transparent);
  pointer-events: none;
}

/* ---------- 3. 主按钮：冰蓝→深蓝渐变 + 冷光描边 + 悬停扫光 ---------- */
.btn-primary {
  background: linear-gradient(168deg, #BFE3FF 0%, var(--accent) 32%, #3B84C8 78%, #2A6BA6 100%);
  color: var(--accent-ink);
  border: 1px solid rgba(190, 228, 255, .5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -1px 0 rgba(10, 40, 70, .35),
    0 6px 20px rgba(70, 150, 230, .26),
    0 0 0 1px rgba(120, 195, 255, .14);
}
.btn-primary:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 8px rgba(10, 40, 70, .3), 0 2px 10px rgba(70, 150, 230, .2);
}
.btn-primary small { color: rgba(6, 26, 44, .62); }

/* 次按钮：玻璃描边 */
.btn-sm {
  background: rgba(120, 180, 245, .07);
  border: 1px solid var(--glass-line);
  color: var(--text-2);
}
.btn-sm:active { border-color: var(--accent-line); color: var(--text); }

/* ---------- 4. 输入框：聚焦时冰蓝光晕（替代原金晕） ---------- */
input:focus, textarea:focus, select:focus {
  border-color: var(--accent-line) !important;
  box-shadow: 0 0 0 3px rgba(111, 184, 245, .12), 0 0 18px rgba(111, 184, 245, .16) !important;
  outline: none;
}
::selection { background: rgba(111, 184, 245, .34); color: #fff; }
*::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(130, 190, 255, .45), rgba(130, 190, 255, .16)); }
*::-webkit-scrollbar-thumb:hover { background: rgba(150, 205, 255, .6); }

/* ---------- 5. 弹窗：玻璃霜面 + 顶部一缕冷光 ---------- */
#modalCard {
  background:
    linear-gradient(180deg, rgba(190, 226, 255, .07), transparent 34%),
    var(--glass-bg-2);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 30px 80px rgba(2, 8, 20, .6);
}
#modalCard::before {
  content: ''; position: absolute; left: 14%; right: 14%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 225, 255, .6), transparent);
  pointer-events: none;
}

/* v2.56.1 弹窗滚动性能：弹窗自身已是一层玻璃模糊，内部子项（主题卡/开关行/选项格
   等 20~30 个元素）若再各自 backdrop-filter，滚动时每帧要重算几十层模糊，
   实测只有 ~28fps 且出现明显长帧。子项统一退为半透明底 + 边框，视觉几乎无差，
   滚动恢复满帧。 */
#modalCard * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
/* 滚动容器自身提升为独立合成层，并把重排限制在弹窗内 */
#modalCard {
  transform: translateZ(0);
  contain: layout paint style;
  overscroll-behavior: contain;
}
/* 弹窗打开时暂停云雾光晕动画，避免弹窗玻璃模糊层每帧重算 */
body.modal-open::before {
  animation-play-state: paused !important;
}
/* v2.56.5b vivo 等国产浏览器内核：video 播放过会被提升为原生层，
   不受 z-index/遮罩控制，永远浮在弹窗之上（谷歌内核正常）。
   弹窗打开期间把 video 整体隐藏（合成层随之销毁），关闭弹窗即恢复。 */
body.modal-open video {
  visibility: hidden !important;
}
/* v2.56.8 国产内核滚动守卫：滚动中的视频原生层不裁剪、会漏出卡片，
   滚动期间整体隐藏（停止滚动 160ms 后由 JS 移除此类恢复显示） */
body.v-scrolling video {
  visibility: hidden !important;
}

/* ---------- 6. 强调元素：标签/徽标/计数用冰蓝半透明底 ---------- */
.tag, .chip, .pact.on {
  border-color: var(--accent-line);
}
.chip-mint { background: rgba(99, 214, 196, .1); border-color: rgba(99, 214, 196, .28); color: var(--mint); }
.chip-rose { background: rgba(240, 142, 168, .1); border-color: rgba(240, 142, 168, .28); color: var(--rose); }

/* ---------- 7. 悬浮发布键（+ 号）：冰蓝光球 ---------- */
.tab-plus {
  background: radial-gradient(circle at 34% 28%, #DCF0FF 0%, #8FCDF8 34%, #4C93D8 72%, #2F6EAE 100%);
  box-shadow:
    0 0 0 1px rgba(190, 228, 255, .55),
    0 0 22px rgba(110, 185, 255, .5),
    0 6px 18px rgba(20, 70, 130, .45);
  color: #06131F;
}

/* ---------- 8. 降级：减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none !important; }
  .post-card, #modalCard, .topbar, .tabbar { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* 低端机 / 不支持 backdrop-filter：退化为实色，避免整站发灰看不清 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .post-card, .panel, .card, .menu, .profile-hero, .stat-box, #modalCard, .topbar, .tabbar {
    background: var(--bg-1) !important;
  }
}

/* ==================== v2.62.3 平台资质展示（关于与帮助页底部） ==================== */
.page-quals { gap: 7px; }
.page-quals-title { font-size: 10.5px; letter-spacing: 1px; color: var(--text-3); }
.page-quals-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.page-quals-row b { color: var(--text-3); font-weight: 500; flex: 0 0 auto; }
.page-quals-row span { color: var(--text-2); word-break: break-all; text-align: left; }
.page-quals-pic {
  width: 132px; height: 92px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line); cursor: zoom-in; background: rgba(255, 255, 255, .03);
}

/* ==================== 批量作品操作（v2.77.0） ==================== */
.work-item { position: relative; }
.work-item.is-selecting { cursor: pointer; padding-left: 44px; }
.work-check {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 7px;
  border: 1.5px solid var(--line); background: rgba(255, 255, 255, .04);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #fff; cursor: pointer; user-select: none;
  transition: all .15s ease;
}
.work-check.on {
  background: var(--accent, #d4af37); border-color: var(--accent, #d4af37);
  box-shadow: 0 0 8px rgba(212, 175, 55, .35);
}
.work-check.is-off { opacity: .3; cursor: not-allowed; }
.works-batch-bar {
  position: sticky; bottom: 12px; z-index: 30;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 14px; margin-top: 14px;
  border-radius: 14px; border: 1px solid var(--accent-line, rgba(212,175,55,.4));
  background: rgba(12, 14, 20, .92); backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .4);
}
.works-batch-count { font-size: 12.5px; color: var(--text-1); font-weight: 600; margin-right: 2px; }
.works-batch-danger { color: #ff6b6b !important; border-color: rgba(255, 107, 107, .4) !important; }

/* ==================== 首页 · 绯域视觉基准稿（v2.78.0） ==================== */
.home-page { padding: 0 0 24px; }

/* ---------- 1) 首屏轮播（v3.11.7，替代环形星轨） ----------
   统一色系：深紫黑底 + 玫红/粉紫高光 + 蓝紫渐变边缘 + 玻璃拟态卡片，
   与首页底部同一套 Web3 视觉语言。 */
.home-hero {
  position: relative; overflow: hidden;
  min-height: auto; padding: 12px 0 0;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(214, 46, 118, 0.20), transparent 58%),
    radial-gradient(90% 70% at 84% 110%, rgba(93, 76, 229, 0.16), transparent 58%),
    linear-gradient(180deg, #150B24 0%, #0E0818 80%);
}
.home-hero::after {
  /* 极淡哈希碎片纹理：细噪点 + 网格 */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(240, 123, 164, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 123, 164, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(75% 60% at 50% 42%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 60% at 50% 42%, #000 30%, transparent 100%);
}

.home-swiper {
  position: relative; z-index: 2;
  margin: 0 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(190, 120, 220, 0.22);
  box-shadow: 0 10px 34px rgba(6, 3, 14, 0.55), 0 0 0 1px rgba(255, 82, 148, 0.05) inset;
  background: linear-gradient(135deg, #1B0F2E 0%, #120A20 55%, #1A0E2B 100%);
  touch-action: pan-y;
  cursor: grab;
}
.home-swiper:active { cursor: grabbing; }
.home-sw-track {
  display: flex;
  transition: transform .45s cubic-bezier(.33, .9, .35, 1);
  will-change: transform;
}
.home-sw-slide {
  position: relative; flex: 0 0 100%;
  min-width: 100%;
  /* v3.11.36 收紧：轮播卡高度与内边距减小，首屏更紧凑 */
  min-height: 186px;
  height: auto;
  padding: 14px 16px 18px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  overflow: hidden;
  /* 每张卡独立合成层：切换动画时不整层重绘（配合上方视频卡防闪烁） */
  backface-visibility: hidden;
  transform: translateZ(0);
}
/* 玫红/粉紫主题光斑（每张卡微差，保持同一色系） */
.home-sw-slide::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(90% 90% at 86% -12%, rgba(255, 45, 120, 0.22), transparent 55%),
    radial-gradient(80% 80% at 4% 110%, rgba(155, 93, 229, 0.20), transparent 55%),
    radial-gradient(60% 60% at 60% 120%, rgba(64, 84, 255, 0.12), transparent 60%);
}
.bn-v2::before {
  background:
    radial-gradient(90% 90% at 50% -14%, rgba(255, 45, 120, 0.18), transparent 55%),
    radial-gradient(80% 80% at 92% 108%, rgba(93, 76, 229, 0.20), transparent 55%);
}
.bn-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
/* 图片上的深紫渐变遮罩：保证白标题可读，同色系过渡 */
.home-sw-slide:has(.bn-img)::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(13, 8, 23, .82) 0%, rgba(13, 8, 23, .45) 46%, rgba(13, 8, 23, .08) 100%);
}
.bn-particles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.bn-pt {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255, 122, 180, .8); box-shadow: 0 0 8px 1px rgba(255, 45, 120, .5);
  animation: bn-blink 5.2s ease-in-out infinite;
}
.bn-pt:nth-child(2n) { background: rgba(178, 107, 255, .8); box-shadow: 0 0 8px 1px rgba(155, 93, 229, .5); }
@keyframes bn-blink { 0%, 100% { opacity: .15; } 50% { opacity: .9; } }

.bn-copy { position: relative; z-index: 2; width: 100%; }
.bn-title {
  font-size: 16.5px; font-weight: 800; line-height: 1.45; letter-spacing: .01em;
  color: #FFFFFF; max-width: 92%;
  text-shadow: 0 2px 16px rgba(10, 6, 20, .7), 0 0 24px rgba(255, 45, 120, .25);
}
.bn-sub {
  margin-top: 7px; font-size: 11.5px; line-height: 1.6; letter-spacing: .04em;
  color: #D9B8EC; max-width: 94%;
  text-shadow: 0 1px 10px rgba(10, 6, 20, .7);
}
.bn-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bn-chip {
  padding: 4px 10px; font-size: 10.5px; letter-spacing: .03em; color: #F2DDF0;
  border-radius: 9px;
  /* v3.11.9p 去 backdrop-filter：切换时每帧重模糊在低性能机上引发闪烁与卡顿 */
  background: rgba(38, 20, 56, .82);
  border: 1px solid rgba(240, 123, 180, .30);
  box-shadow: 0 2px 10px rgba(10, 6, 20, .35);
}
.bn-v3 .bn-chip {
  border-color: rgba(178, 107, 255, .38);
  box-shadow: 0 0 14px rgba(155, 93, 229, .14), 0 2px 10px rgba(10, 6, 20, .35);
}

/* v2 主题：粉紫发光流程线 */
.bn-flowline {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0;
  margin-top: 12px; width: 100%;
}
.bn-flow-node { display: flex; align-items: center; gap: 5px; }
.bn-flow-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto;
  background: #FF2D78;
  box-shadow: 0 0 10px 2px rgba(255, 45, 120, .55);
}
.bn-flow-node:nth-child(4n+3) .bn-flow-dot { background: #B26BFF; box-shadow: 0 0 10px 2px rgba(178, 107, 255, .5); }
.bn-flow-txt { font-size: 10.5px; color: #EFD6EE; letter-spacing: .02em; white-space: nowrap; }
.bn-flow-line {
  flex: 1 1 14px; min-width: 14px; height: 1.5px; margin: 0 6px;
  background: linear-gradient(90deg, rgba(255, 45, 120, .65), rgba(178, 107, 255, .65));
  border-radius: 2px;
}
/* v2 主题：已存证凭证卡（玻璃拟态，窄屏贴右下角，宽屏完整展示） */
.bn-cert {
  position: absolute; right: 14px; bottom: 16px; z-index: 2;
  display: none; flex-direction: column; gap: 3px; align-items: flex-start;
  padding: 10px 12px; min-width: 128px;
  border-radius: 13px;
  background: rgba(27, 15, 46, .92);
  border: 1px solid rgba(240, 123, 180, .35);
  box-shadow: 0 8px 26px rgba(6, 3, 14, .5);
}
.bn-cert-badge {
  font-size: 9.5px; font-weight: 700; letter-spacing: .06em; color: #FFD3E4;
  padding: 2px 8px; border-radius: 7px;
  background: linear-gradient(90deg, rgba(255, 45, 120, .85), rgba(178, 107, 255, .85));
}
.bn-cert-name { font-size: 12px; font-weight: 700; color: #FFFFFF; }
.bn-cert-sub { font-size: 10px; color: #D9B8EC; }

.home-sw-dots {
  position: absolute; left: 0; right: 0; bottom: 7px; z-index: 3;
  display: flex; justify-content: center; gap: 6px;
}
.home-sw-dot {
  width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(240, 200, 230, .28); cursor: pointer;
  transition: all .3s;
}
.home-sw-dot.on {
  width: 18px; border-radius: 4px;
  background: linear-gradient(90deg, #FF2D78, #B26BFF);
  box-shadow: 0 0 8px rgba(255, 45, 120, .5);
}
/* 有跳转链接的轮播卡给轻微可点暗示 */
.home-sw-slide.has-link { cursor: pointer; }
.home-sw-slide.has-link::after {
  content: '查看 ›'; position: absolute; right: 12px; top: 10px; z-index: 2;
  font-size: 10px; color: #E8C6E4;
  padding: 3px 8px; border-radius: 8px;
  background: rgba(10, 6, 20, .5); border: 1px solid rgba(240, 123, 180, .3);
}

/* ---------- 介绍视频卡（v3.11.8，替代轮播下方两枚行动按钮） ---------- */
.home-vid-wrap { position: relative; z-index: 2; margin: 10px 12px 0; }
.home-vid {
  position: relative;
  border-radius: 16px; overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1B0F2E 0%, #120A20 55%, #1A0E2B 100%);
  border: 1px solid rgba(255, 82, 148, 0.38);
  box-shadow: 0 10px 34px rgba(6, 3, 14, 0.55), 0 0 18px rgba(255, 45, 120, 0.12) inset;
}
.home-vid-el {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; background: #120A20;
  /* v3.11.9j 安卓上 video 渲染层不受父卡 overflow:hidden 裁剪，圆角必须给到视频本身 */
  border-radius: 15px;
  /* v3.11.9p 独立合成层：轮播切换等页面合成变动不牵连视频层重绘 */
  transform: translateZ(0);
  /* v3.11.9u 合成层上 border-radius 可能失效（播放时四角露直角），clip-path GPU 裁剪兜底 */
  clip-path: inset(0 round 15px);
  -webkit-clip-path: inset(0 round 15px);
}
/* v3.11.9p 真实 <img> 封面图层：安卓 video.poster 在合成层变动时会闪黑，img 稳定 */
.home-vid-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1; pointer-events: none;
  border-radius: 15px;
  /* v3.11.9u clip-path 双保险：安卓上 video/img 提升合成层后 border-radius 裁剪
     可能失效（播放时四角露直角），clip-path 是 GPU 裁剪、合成层上依然生效 */
  clip-path: inset(0 round 15px);
  transform: translateZ(0);
}
.home-vid.playing .home-vid-poster { opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
/* 封面覆盖层：深紫渐变 + 玻璃文案，播放时整层退场 */
.home-vid-cover {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 12px; text-align: center; cursor: pointer;
  background:
    radial-gradient(100% 100% at 50% 0%, rgba(255, 45, 120, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(13, 8, 23, .55) 0%, rgba(13, 8, 23, .68) 100%);
  transition: opacity .35s, visibility .35s;
}
.home-vid-cover.off { opacity: 0; visibility: hidden; pointer-events: none; }
.home-vid-kicker {
  font-size: 9px; letter-spacing: .22em; color: #E8A8CC; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid rgba(240, 123, 180, .4); background: rgba(38, 20, 56, .8);
}
.home-vid-t1 {
  font-size: 15.5px; font-weight: 800; color: #FFFFFF; letter-spacing: .01em;
  text-shadow: 0 2px 14px rgba(10, 6, 20, .8), 0 0 22px rgba(255, 45, 120, .3);
}
.home-vid-t2 {
  font-size: 11px; color: #D9B8EC; letter-spacing: .06em;
  text-shadow: 0 1px 10px rgba(10, 6, 20, .8);
}
.home-vid-play {
  margin-top: 6px; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255, 45, 120, .92), rgba(178, 107, 255, .92));
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 6px 22px rgba(255, 45, 120, .45);
  /* v3.11.9p 原 box-shadow 扩散动画每帧触发重绘（paint 风暴会牵连 video 渲染层闪烁），
     改为合成器动画 scale+opacity，视觉效果不变、零重绘 */
  animation: home-vid-pulse 2.6s ease-in-out infinite;
}
@keyframes home-vid-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  55% { transform: scale(1.12); opacity: .88; }
}
.home-vid-play-tri {
  display: block; margin-left: 3px; width: 0; height: 0;
  border-top: 8px solid transparent; border-bottom: 8px solid transparent;
  border-left: 13px solid #FFFFFF;
}
.home-vid-hint { font-size: 9.5px; color: #C9A9D8; letter-spacing: .12em; }
@media (min-width: 900px) {
  .home-vid-wrap { margin: 14px 24px 6px; }
  .home-vid-t1 { font-size: 19px; }
  .home-vid-t2 { font-size: 13px; }
}

/* ---------- 2) 金刚区 ---------- */
/* v3.11.9d 金刚区加线条框架：与核心能力区同款玻璃拟态描边卡 */
.home-quick {
  display: flex; gap: 6px; justify-content: space-between;
  margin: 10px 12px 0; padding: 12px 10px 10px;
  background:
    radial-gradient(120% 90% at 50% -18%, rgba(209, 73, 121, 0.14), transparent 62%),
    linear-gradient(165deg, rgba(42, 15, 32, 0.72), rgba(26, 11, 20, 0.62));
  border: 1px solid rgba(240, 123, 164, 0.2);
  border-radius: 18px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(13, 8, 23, 0.35);
}
.home-quick-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 10px 2px 8px; border: 0; background: transparent; cursor: pointer;
}
.home-quick-ico {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(209, 73, 121, 0.16), rgba(155, 93, 229, 0.1));
  border: 1px solid rgba(209, 73, 121, 0.24);
  color: #F07BA4;
}
.home-quick-ico svg { width: 21px; height: 21px; }
.home-quick-txt { font-size: 11px; color: var(--text-2); }

/* ---------- 2c) 商城「作品曝光」区块标题胶囊（v3.11.9q，居中胶囊边框） ---------- */
.mall-sec-pill {
  margin: 12px auto 10px; width: fit-content;
  display: flex; align-items: baseline; gap: 8px;
  padding: 10px 30px;
  border: 1.5px solid rgba(240, 123, 164, .38);
  border-radius: 999px;
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(209, 73, 121, .18), transparent 65%),
    rgba(30, 14, 26, .72);
  box-shadow: 0 4px 14px rgba(13, 8, 23, .3);
}
.mall-sec-pill-t { font-size: 14.5px; font-weight: 800; letter-spacing: .04em; color: var(--text); }
.mall-sec-pill-s { font-size: 10.5px; letter-spacing: .08em; color: #C9A9D8; }

/* ---------- 2b) π Nexus 核心能力区胶囊（v3.11.9） ---------- */
/* v3.11.9e 标题并入卡片内居中：整卡一个玻璃框，标题+六宫格同框 */
.home-cap {
  margin: 10px 12px 0;
  padding: 14px 10px 14px;
  background:
    radial-gradient(120% 90% at 50% -18%, rgba(209, 73, 121, 0.16), transparent 62%),
    linear-gradient(165deg, rgba(42, 15, 32, 0.72), rgba(26, 11, 20, 0.62));
  border: 1px solid rgba(240, 123, 164, 0.2);
  border-radius: 18px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(13, 8, 23, 0.35);
}
.home-cap-title {
  margin: 0 0 10px; font-size: 15px; font-weight: 800; letter-spacing: .04em;
  color: var(--text); text-align: center;
}
.home-cap-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 6px;
  padding: 0;
}
.home-cap-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 0; border: 0; background: transparent; cursor: pointer;
}
.home-cap-ico {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  color: #F07BA4;
  background: linear-gradient(150deg, rgba(240, 123, 164, 0.13), rgba(155, 93, 229, 0.08));
  border: 1px solid rgba(240, 123, 164, 0.38);
  box-shadow: 0 0 12px rgba(240, 123, 164, 0.18), inset 0 0 8px rgba(240, 123, 164, 0.1);
  transition: transform .15s ease, box-shadow .15s ease;
}
.home-cap-ico svg { width: 22px; height: 22px; }
.home-cap-item:active .home-cap-ico { transform: scale(.92); box-shadow: 0 0 18px rgba(240, 123, 164, 0.3); }
.home-cap-txt { font-size: 12.5px; color: var(--text); letter-spacing: .04em; }

/* ---------- 3) 晶格矩阵作品区 ---------- */
/* v3.11.9l 首页独立总框已由全站 .view 总框取代 */
/* v3.11.9m 我的页自带星空背景：总框不再叠加渐变底（双层背景合成导致花屏马赛克） */
body.gm-mode .view { background: none; }
.home-sec { padding: 12px 12px 0; }
.home-h2 {
  margin: 0; font-size: 17px; font-weight: 800; letter-spacing: .02em; color: var(--text);
  position: relative; padding-left: 11px;
}
.home-h2::before {
  content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px;
  border-radius: 2px; background: linear-gradient(180deg, #D14979, #9B5DE5);
}
.home-sec-sub { margin: 8px 0 0; font-size: 12.5px; color: var(--text-2); line-height: 1.7; }
.home-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }

/* v3.11.9f 作品区标题框：标题/副题/筛选条包进与金刚区同款玻璃描边卡 */
.home-sec-head {
  margin: 0 0 10px; padding: 14px 12px 12px;
  background:
    radial-gradient(120% 90% at 50% -18%, rgba(209, 73, 121, 0.14), transparent 62%),
    linear-gradient(165deg, rgba(42, 15, 32, 0.72), rgba(26, 11, 20, 0.62));
  border: 1px solid rgba(240, 123, 164, 0.2);
  border-radius: 18px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(13, 8, 23, 0.35);
}
.home-sec-head .home-sec-sub { margin: 8px 0 0; }
.home-chip {
  padding: 6px 13px; border-radius: 999px; font-size: 12px; cursor: pointer;
  color: var(--text-2); background: rgba(209, 73, 121, 0.07);
  border: 1px solid rgba(209, 73, 121, 0.18); transition: all .15s ease;
}
.home-chip.on {
  color: #FFF3F7; background: linear-gradient(135deg, #B22F5C, #D14979);
  border-color: transparent; box-shadow: 0 2px 12px rgba(178, 47, 92, 0.4);
}
.home-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px;
  margin-top: 14px;
}
@media (min-width: 480px) { .home-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .home-grid { grid-template-columns: repeat(4, 1fr); } }
.home-grid-empty {
  grid-column: 1 / -1; text-align: center; padding: 36px 0;
  font-size: 13px; color: var(--text-3);
}
.home-work {
  border-radius: 14px; overflow: hidden; cursor: pointer;
  background: rgba(42, 15, 32, 0.55); backdrop-filter: blur(10px);
  border: 1px solid rgba(209, 73, 121, 0.25);
  transition: transform .18s ease, box-shadow .18s ease;
}
.home-work:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(12, 4, 9, 0.5), 0 0 0 1px rgba(240, 123, 164, 0.3); }
.home-work-thumb { position: relative; height: 118px; overflow: hidden; background: rgba(26, 11, 20, 0.6); }
.home-work-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-work-ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-size: 22px; color: rgba(240, 123, 164, 0.55);
  background: linear-gradient(150deg, #2A0F20, #3A1430 60%, #2A1030);
}
.home-work-ph.is-video { font-size: 26px; color: rgba(240, 123, 164, 0.8); }
.home-work-seal {
  position: absolute; left: 7px; top: 7px;
  font-size: 10px; padding: 2.5px 8px; border-radius: 999px;
  /* 标签规范：已存证 = 绿色（与卡片标签同色系，全站统一） */
  color: #C6F5DC; background: linear-gradient(135deg, rgba(28, 92, 66, 0.86), rgba(42, 128, 90, 0.8));
  border: 1px solid rgba(120, 230, 175, 0.35);
  backdrop-filter: blur(6px);
}
.home-work-play {
  position: absolute; right: 8px; bottom: 8px;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 10px; color: #fff;
  background: rgba(26, 11, 20, 0.62); border: 1px solid rgba(240, 123, 164, 0.5);
}
.home-work-title {
  padding: 9px 10px 0; font-size: 13px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.home-work-author { padding: 3px 10px 0; font-size: 11px; color: var(--text-3); }
.home-work-tags { display: flex; gap: 5px; flex-wrap: wrap; padding: 7px 10px 10px; }
.home-tag {
  font-size: 10px; padding: 2px 7px; border-radius: 999px;
  /* 标签规范：普通防护 / 隐形水印 / 加密存证 = 玫红 */
  color: #F5A8C2; background: rgba(209, 73, 121, 0.12);
  border: 1px solid rgba(209, 73, 121, 0.3);
}
.home-tag.ok { color: #A8E8C8; background: rgba(90, 200, 140, 0.1); border-color: rgba(90, 200, 140, 0.3); }
/* 标签规范：普通防护 / 隐形水印 / 加密存证 统一玫红 */
.home-tag.wm, .home-tag.enc { color: #F5A8C2; background: rgba(209, 73, 121, 0.12); border-color: rgba(209, 73, 121, 0.3); }
.home-tag.vip { color: #F5C98A; background: rgba(232, 185, 143, 0.1); border-color: rgba(232, 185, 143, 0.32); }
.home-tag.hot { color: #FF9FB2; background: rgba(255, 123, 138, 0.1); border-color: rgba(255, 123, 138, 0.3); }

/* ---------- 4) 时间线（v2.78.1：5 节点一屏可见 + 点选展开说明） ---------- */
.home-tl-track {
  display: flex; align-items: flex-start; margin-top: 20px; position: relative;
  /* v3.11.9g 时间线并入标题框：节点条在框内留白并压缩上距 */
  margin-top: 4px; padding: 6px 2px 0;
}
.home-tl-node {
  flex: 1 1 0; min-width: 0; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 0; border: 0; background: transparent; cursor: pointer;
}
/* 潮汐流动连接线：每节点向右延伸一格，末节点不画 */
.home-tl-node::before {
  content: ''; position: absolute; top: 6px; left: 50%; width: 100%; height: 2px;
  background: linear-gradient(90deg, rgba(240, 123, 164, 0.55), rgba(155, 93, 229, 0.35));
  animation: home-tide 3.4s ease-in-out infinite alternate;
}
.home-tl-node:last-child::before { display: none; }
@keyframes home-tide { from { opacity: .5; } to { opacity: 1; } }
.home-tl-dot {
  position: relative; z-index: 1;
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle, #F07BA4 38%, #B22F5C 100%);
  border: 2px solid rgba(240, 123, 164, 0.75);
  box-shadow: 0 0 10px rgba(240, 123, 164, 0.45);
  transition: transform .18s ease, box-shadow .18s ease;
}
.home-tl-node.on .home-tl-dot {
  transform: scale(1.18);
  box-shadow: 0 0 0 4px rgba(209, 73, 121, 0.16), 0 0 16px rgba(240, 123, 164, 0.7);
}
.home-tl-title {
  font-size: 11.5px; line-height: 1.35; color: var(--text-2); text-align: center;
  transition: color .15s ease;
}
.home-tl-node.on .home-tl-title { color: #FFD9E5; font-weight: 700; }
/* 点选展开的说明卡 */
/* v3.11.9h 独立说明卡取消：节点说明折叠为框内一行轻量文字 */
.home-tl-inline {
  margin-top: 12px; font-size: 11.5px; line-height: 1.7;
  color: var(--text-2); letter-spacing: .02em;
  padding-top: 10px;
  border-top: 1px dashed rgba(240, 123, 164, 0.25);
}
.home-tl-inline::first-line { color: #F07BA4; }

.home-tl-detail {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 16px; padding: 13px 14px; border-radius: 14px;
  background: rgba(209, 73, 121, 0.07);
  border: 1px solid rgba(209, 73, 121, 0.2);
  min-height: 74px;
}
.home-tl-detail-idx {
  flex: 0 0 auto; font-size: 17px; font-weight: 800; line-height: 1.2;
  color: rgba(240, 123, 164, 0.55); font-variant-numeric: tabular-nums;
}
.home-tl-detail-body { min-width: 0; }
.home-tl-detail-t { font-size: 13px; font-weight: 700; color: var(--text); }
.home-tl-detail-d { margin-top: 4px; font-size: 11.5px; line-height: 1.7; color: var(--text-2); }

/* ---------- 5) 存证核验快捷区 ---------- */
.home-verify {
  border-radius: 18px; padding: 18px 16px 16px;
  background:
    radial-gradient(120% 140% at 90% -20%, rgba(155, 93, 229, 0.14), transparent 55%),
    rgba(42, 15, 32, 0.6);
  border: 1px solid rgba(209, 73, 121, 0.28);
  backdrop-filter: blur(12px);
}
.home-verify .home-h2 { padding-left: 0; }
.home-verify .home-h2::before { display: none; }
.home-verify-row { display: flex; gap: 9px; margin-top: 14px; }
.home-verify-input {
  flex: 1; min-width: 0; height: 42px; padding: 0 14px;
  border-radius: 12px; font-size: 13px; color: var(--text);
  background: rgba(26, 11, 20, 0.6);
  border: 1px solid rgba(209, 73, 121, 0.3); outline: none;
  transition: border-color .15s ease;
}
.home-verify-input:focus { border-color: #D14979; box-shadow: 0 0 0 3px rgba(209, 73, 121, 0.16); }
.home-verify-input::placeholder { color: var(--text-3); }
.home-verify-btn { flex: 0 0 auto; height: 42px; padding: 0 18px; font-size: 13px; border-radius: 12px; justify-content: center; }
.home-verify-result { margin-top: 14px; }
.home-verify-pending { display: grid; place-items: center; padding: 18px 0; }
.home-vr-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.home-vr-badge {
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  color: #FFE9F1; background: linear-gradient(135deg, #B22F5C, #D14979);
}
.home-vr-badge.bad { background: linear-gradient(135deg, #8A3A46, #B25C6B); }
.home-vr-match { font-size: 11px; color: var(--text-3); }
.home-vr-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px dashed rgba(209, 73, 121, 0.16);
  font-size: 12.5px;
}
.home-vr-row:last-of-type { border-bottom: 0; }
.home-vr-k { color: var(--text-3); flex: 0 0 auto; }
.home-vr-v { color: var(--text-body); text-align: right; word-break: break-all; }
.home-verify-result .btn-sm { margin: 10px 8px 0 0; }
.home-vr-miss { padding: 14px 0 4px; font-size: 12.5px; color: var(--text-2); }

/* ---------- 6) 会员权益入口 ---------- */
.home-vip-row { display: flex; gap: 10px; margin-top: 16px; }
.home-vip-card {
  position: relative; flex: 1; min-width: 0;
  border-radius: 16px; padding: 14px 12px 12px;
  background: rgba(42, 15, 32, 0.55);
  border: 1px solid rgba(209, 73, 121, 0.24);
  display: flex; flex-direction: column;
}
.home-vip-card.m { border-color: rgba(240, 123, 164, 0.4); }
.home-vip-card.y {
  background: linear-gradient(165deg, rgba(178, 47, 92, 0.28), rgba(155, 93, 229, 0.14) 70%), rgba(42, 15, 32, 0.7);
  border-color: rgba(240, 123, 164, 0.55);
  box-shadow: 0 8px 30px rgba(178, 47, 92, 0.28);
}
.home-vip-flag {
  position: absolute; right: 10px; top: 10px;
  font-size: 9.5px; padding: 2px 7px; border-radius: 999px;
  color: #FFE9F1; background: rgba(178, 47, 92, 0.85);
}
.home-vip-name { font-size: 13.5px; font-weight: 800; color: var(--text); }
.home-vip-card.y .home-vip-name { color: #FFD9E5; }
.home-vip-feats { flex: 1; margin: 9px 0 11px; }
.home-vip-feat { font-size: 10.5px; line-height: 1.75; color: var(--text-2); }
.home-vip-card.y .home-vip-feat { color: var(--text-body); }
.home-vip-card > .btn-sm {
  width: 100%; padding: 9px 0; font-size: 12px; border-radius: 10px;
  color: var(--text-2); background: rgba(209, 73, 121, 0.08);
  border: 1px solid rgba(209, 73, 121, 0.26);
}
/* 年卡主按钮：唯一高亮转化点 */
.home-vip-card.y > .btn-sm {
  color: #FFF6F9; border: 0;
  background: linear-gradient(135deg, #B22F5C, #D14979);
  box-shadow: 0 6px 18px rgba(178, 47, 92, 0.45);
}
.home-vip-more {
  width: 100%; margin-top: 13px; padding: 11px 0; font-size: 13px;
  border-radius: 12px; color: var(--text);
  background: rgba(209, 73, 121, 0.1); border: 1px solid rgba(209, 73, 121, 0.3);
}

/* ---------- 7) 底部信息区 ---------- */
.home-foot {
  margin-top: 34px; padding: 24px 20px 30px; text-align: center;
  border-top: 1px solid rgba(209, 73, 121, 0.14);
  background: linear-gradient(180deg, transparent, rgba(42, 15, 32, 0.5));
}
.home-foot-brand { font-size: 15px; font-weight: 800; letter-spacing: .1em; color: var(--text); }
.home-foot-slogan { margin-top: 7px; font-size: 12px; color: var(--text-2); }
.home-foot-links { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; margin-top: 14px; }
.home-foot-link {
  border: 0; background: transparent; padding: 2px 0; cursor: pointer;
  font-size: 11.5px; color: var(--text-3);
}
.home-foot-link:active { color: var(--accent-2); }
.home-foot-stats { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.home-foot-stat {
  min-width: 86px; padding: 12px 8px; border-radius: 14px;
  background: rgba(209, 73, 121, 0.07); border: 1px solid rgba(209, 73, 121, 0.2);
}
.home-foot-num { font-size: 17px; font-weight: 800; color: #F07BA4; font-variant-numeric: tabular-nums; }
.home-foot-k { margin-top: 3px; font-size: 10.5px; color: var(--text-3); }
.home-foot-beian { margin-top: 16px; font-size: 10.5px; color: var(--text-3); }

/* 桌面端（手机壳外）：壳内视口仅约 412px 宽，标题保持单行 16px 不放大 */
@media (min-width: 900px) {
  .home-swiper { margin: 0 24px; }
  .home-sw-slide { min-height: 250px; height: auto; padding: 26px 26px 28px; }
  .bn-title { font-size: 21px; }
  .bn-sub { font-size: 13px; }
  .bn-chip { font-size: 12px; padding: 5px 13px; }
  .bn-flow-txt { font-size: 12px; }
}
/* 宽屏：v2 主题右侧完整展示已存证凭证卡，流程线让出右侧空间 */
@media (min-width: 720px) {
  .bn-cert { display: flex; }
  .bn-flowline { max-width: 62%; }
  .bn-title, .bn-sub { max-width: 60%; }
}

/* ==================== v2.81.0 分享访问权限与水印 ==================== */
/* 广场/首页封面锁标识（登录查看的作品） */
.post-lock-badge {
  position: absolute; top: 8px; right: 8px; z-index: 4;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; line-height: 1;
  background: rgba(10, 8, 12, .62); backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 215, 122, .35);
  cursor: default;
}
.home-work-thumb { position: relative; }

/* 详情页登录拦截页 */
.login-gate { display: flex; justify-content: center; padding: 60px 16px 80px; }
.login-gate-card {
  max-width: 380px; width: 100%; text-align: center;
  padding: 40px 26px; border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
}
.login-gate-ico { font-size: 46px; margin-bottom: 14px; }
.login-gate-title { font-size: 19px; margin: 0 0 12px; color: var(--text-1, #f2f4f8); }
.login-gate-sub { font-size: 13.5px; color: var(--text-2, rgba(242,244,248,.66)); margin: 0 0 24px; line-height: 1.7; }
.login-gate-btn { width: 100%; border-radius: 999px; }
.login-gate-note { font-size: 12px; color: var(--text-3, rgba(242,244,248,.45)); margin: 16px 0 0; }

/* 分享弹窗（分享作品到外部） */
.share-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.share-opt {
  display: flex; align-items: center; gap: 10px; padding: 13px 14px;
  border-radius: 13px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.045); color: var(--text-1, #f2f4f8);
  cursor: pointer; font-size: 14px; transition: background .2s;
}
.share-opt:hover { background: rgba(255,255,255,.09); }
.share-opt-ico { font-size: 18px; line-height: 1; }
.share-perm-hint {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed rgba(255,255,255,.12);
  font-size: 12px; color: var(--text-3, rgba(242,244,248,.5)); text-align: center;
}
.share-copy-bubble {
  position: absolute; transform: translateX(-50%);
  margin-top: 8px; padding: 7px 14px; border-radius: 10px;
  background: rgba(20, 24, 32, .95); border: 1px solid rgba(127, 201, 166, .35);
  color: #bfe8d2; font-size: 12px; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
  animation: shareBubbleIn .22s ease-out;
}
@keyframes shareBubbleIn { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ============ v2.81.1 作品分享链接：未登录只读落地页 ============ */
/* 分享链接进来的游客只看当前作品：隐藏底部导航与顶栏操作区，页脚留出引导条高度 */
body.guest-share .tabbar { display: none; }
body.guest-share .topbar-acts { display: none; }
body.guest-share .topbar-search { opacity: .55; pointer-events: none; }
body.guest-share .view { padding-bottom: 132px; }

.guest-share-bar {
  position: absolute; left: 10px; right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 40; display: flex; align-items: center; gap: 12px;
  padding: 12px 30px 12px 14px; border-radius: 16px;
  border: 1px solid var(--hair, rgba(255,255,255,.12));
  background: var(--bg-1, #0B1220);
  background: color-mix(in srgb, var(--bg-1, #0B1220) 94%, transparent);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .42);
  animation: gsbIn .34s cubic-bezier(.2, .9, .3, 1) both;
}
@keyframes gsbIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.gsb-txt { flex: 1; min-width: 0; }
.gsb-title { font-size: 12.5px; color: var(--text, #EAF3FF); letter-spacing: .02em; }
.gsb-sub { margin-top: 3px; font-size: 11px; line-height: 1.5; color: var(--text-3, #5F748E); }
.gsb-btn {
  flex-shrink: 0; height: 34px; padding: 0 14px;
  font-size: 12.5px; border-radius: 10px; white-space: nowrap;
}
.gsb-close {
  position: absolute; top: 6px; right: 6px; width: 22px; height: 22px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: transparent; color: var(--text-3, #5F748E);
  font-size: 11px; line-height: 1; cursor: pointer;
}
.gsb-close:hover { background: rgba(255,255,255,.08); color: var(--text, #EAF3FF); }

/* ============================================================
   v2.82.0 配乐模块
   视觉规范：玻璃拟态（rgba(20,28,45,.22) + 细边框 #4477aa40）
   文字 #e8edf5，选中/激活高亮 #73c8ff；只做低强度呼吸光，不做跳动特效
   ============================================================ */

/* ---------- 选曲弹窗 ---------- */
.bgm-sheet { display: flex; flex-direction: column; gap: 12px; }
.bgm-sheet-head .modal-title { margin-bottom: 4px; }
.bgm-search {
  width: 100%; height: 38px; padding: 0 14px; border-radius: 10px;
  border: 1px solid #4477aa40; background: rgba(20, 28, 45, .32);
  color: #e8edf5; font-size: 13px; outline: none;
}
.bgm-search::placeholder { color: #7e8ea6; }
.bgm-search:focus { border-color: #73c8ff66; box-shadow: 0 0 0 3px rgba(115, 200, 255, .08); }

.bgm-tags { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.bgm-tags::-webkit-scrollbar { display: none; }
.bgm-tag {
  flex: 0 0 auto; height: 26px; padding: 0 11px; border-radius: 999px;
  border: 1px solid #4477aa33; background: rgba(255, 255, 255, .03);
  color: #a8b6c9; font-size: 11.5px; cursor: pointer; transition: .18s;
}
.bgm-tag:hover { color: #e8edf5; border-color: #4477aa66; }
.bgm-tag.on { color: #73c8ff; border-color: #73c8ff66; background: rgba(115, 200, 255, .1); }

.bgm-list { max-height: 44vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 2px; }
.bgm-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 11px; border: 1px solid transparent;
  background: rgba(255, 255, 255, .028); cursor: pointer; transition: .18s;
}
.bgm-row:hover { background: rgba(115, 200, 255, .07); border-color: #4477aa40; }
.bgm-row.on { border-color: #73c8ff66; background: rgba(115, 200, 255, .1); }
.bgm-row-ico { font-size: 14px; opacity: .85; }
.bgm-row-main { flex: 1; min-width: 0; }
.bgm-row-title { font-size: 13px; color: #e8edf5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bgm-row-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.bgm-row-tag { font-size: 10.5px; color: #7e8ea6; }
.bgm-row-lic { font-size: 10.5px; color: #8fa0b8; }
.bgm-row-lic.is-commercial { color: #d9b46a; }
.bgm-row-dur { font-size: 10.5px; color: #6f7f96; font-variant-numeric: tabular-nums; }
.bgm-row-play { width: 22px; text-align: center; font-size: 10px; color: #73c8ff; opacity: .55; }
.bgm-row.on .bgm-row-play { opacity: 1; }
.bgm-empty { padding: 28px 0; text-align: center; font-size: 12.5px; color: #7e8ea6; }

.bgm-foot { border-top: 1px dashed #4477aa33; padding-top: 11px; }
.bgm-foot-tip { font-size: 10.5px; line-height: 1.6; color: #6f7f96; margin-bottom: 10px; }
.bgm-foot-acts { display: flex; gap: 8px; }
.bgm-foot-acts .btn { flex: 1; height: 36px; font-size: 12.5px; }
.bgm-use-btn:disabled { opacity: .38; cursor: not-allowed; }

/* ---------- 上传音频 ---------- */
.bgm-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; padding: 30px 18px; border-radius: 13px; cursor: pointer;
  border: 1px dashed #4477aa55; background: rgba(20, 28, 45, .22);
  transition: .18s;
}
.bgm-drop:hover, .bgm-drop.over { border-color: #73c8ff88; background: rgba(115, 200, 255, .07); }
.bgm-drop-ico { font-size: 26px; }
.bgm-drop-t { font-size: 13px; color: #e8edf5; text-align: center; }
.bgm-drop-sub { font-size: 11px; color: #7e8ea6; }
.bgm-up-status { margin-top: 10px; font-size: 12px; color: #a8b6c9; line-height: 1.6; }
.bgm-up-status.is-ok { color: #73c8ff; }
.bgm-up-status.is-err { color: #ff8f9c; }
.bgm-up-acts { display: flex; gap: 8px; margin-top: 12px; }
.bgm-up-acts .btn { flex: 1; height: 36px; font-size: 12.5px; }

/* ---------- 版权确认 ---------- */
.bgm-copyright { display: flex; flex-direction: column; gap: 12px; }
.bgm-cr-title { font-size: 15px; color: #e8edf5; }
.bgm-cr-text { font-size: 12.5px; line-height: 1.8; color: #a8b6c9; }
.bgm-cr-acts { display: flex; gap: 9px; margin-top: 4px; }
.bgm-cr-acts .btn { flex: 1; font-size: 12px; }
.bgm-cr-acts .btn-primary { flex: 1.6; }

/* ---------- 发布/编辑页的配乐行 ---------- */
.bgm-mini-ico { font-size: 12px; margin-right: 2px; }
.bgm-picked-name { flex: 1; min-width: 0; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bgm-clear-inline { flex-shrink: 0; }
.bgm-compose-row.is-off .bgm-picked-name { color: #6f7f96; }

/* ---------- 详情页：配套配乐信息 ---------- */
.bgm-info {
  margin: 14px 16px 4px; padding: 13px 15px;
  border-radius: 13px; border: 1px solid #4477aa40;
  background: rgba(20, 28, 45, .22);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
}
.bgm-info-head {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: #e8edf5; letter-spacing: .04em; margin-bottom: 9px;
}
.bgm-info-ico { font-size: 13px; }
.bgm-info-row { display: flex; align-items: baseline; gap: 10px; padding: 3px 0; font-size: 12px; }
.bgm-info-k { flex: 0 0 46px; color: #7e8ea6; }
.bgm-info-v { flex: 1; min-width: 0; color: #e8edf5; word-break: break-all; }
.bgm-info-note { margin-top: 8px; font-size: 10.5px; line-height: 1.6; color: #73c8ff; opacity: .55; }

/* ---------- 悬浮音乐控件（右下角玻璃拟态） ---------- */
.bgm-dock {
  position: fixed; right: 14px; bottom: 84px; z-index: 95;
  width: 232px; padding: 10px 12px 9px;
  display: flex; align-items: center; gap: 10px;
  border-radius: 15px; border: 1px solid #4477aa40;
  background: rgba(20, 28, 45, .22);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  transition: opacity .22s ease, transform .22s ease;
  animation: bgmDockIn .3s cubic-bezier(.2, .9, .3, 1) both;
}
@keyframes bgmDockIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
/* 播放中：冰蓝低强度呼吸光，与全站哈希碎片视觉统一 */
.bgm-dock.playing { box-shadow: 0 10px 30px rgba(0, 0, 0, .3), 0 0 0 1px rgba(115, 200, 255, .18), 0 0 18px rgba(115, 200, 255, .12); animation: bgmGlow 4.2s ease-in-out infinite; }
@keyframes bgmGlow {
  0%, 100% { box-shadow: 0 10px 30px rgba(0, 0, 0, .3), 0 0 0 1px rgba(115, 200, 255, .16), 0 0 14px rgba(115, 200, 255, .08); }
  50% { box-shadow: 0 10px 30px rgba(0, 0, 0, .3), 0 0 0 1px rgba(115, 200, 255, .3), 0 0 24px rgba(115, 200, 255, .18); }
}
@media (prefers-reduced-motion: reduce) { .bgm-dock.playing { animation: none; } }

.bgm-dock-play {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid #4477aa55; background: rgba(115, 200, 255, .1);
  color: #73c8ff; font-size: 11px; line-height: 1; padding-left: 1px;
}
.bgm-dock.playing .bgm-dock-play { color: #e8edf5; background: rgba(115, 200, 255, .18); }
.bgm-dock-meta { flex: 1; min-width: 0; }
.bgm-dock-top { display: flex; align-items: center; gap: 6px; }
.bgm-dock-name { flex: 1; min-width: 0; font-size: 11.5px; color: #e8edf5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bgm-dock-state { flex: 0 0 auto; font-size: 9px; color: #7e8ea6; }
.bgm-dock.playing .bgm-dock-state { color: #73c8ff; }
.bgm-dock-bar {
  position: relative; height: 4px; margin: 7px 0 5px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); cursor: pointer;
}
.bgm-dock-fill {
  position: absolute; left: 0; top: 0; height: 100%; width: 0;
  border-radius: 999px; background: linear-gradient(90deg, #73c8ff, #b7e3ff);
}
.bgm-dock-bottom { display: flex; align-items: center; justify-content: space-between; }
.bgm-dock-time { font-size: 9px; color: #6f7f96; font-variant-numeric: tabular-nums; }
.bgm-dock-vol {
  border: 0; background: transparent; cursor: pointer;
  font-size: 11px; line-height: 1; padding: 2px 3px; border-radius: 5px; color: #a8b6c9;
}
.bgm-dock-vol:hover { background: rgba(255, 255, 255, .08); }
.bgm-vol-pop {
  position: absolute; right: 10px; bottom: 42px; padding: 8px 10px;
  border-radius: 10px; border: 1px solid #4477aa40;
  background: rgba(16, 23, 37, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.bgm-vol-range { width: 92px; accent-color: #73c8ff; }

/* 自动播放被拦截时的提示气泡：3 秒淡出，不遮挡作品 */
.bgm-bubble {
  position: fixed; right: 14px; bottom: 136px; z-index: 96;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid #73c8ff55; background: rgba(16, 23, 37, .92);
  color: #e8edf5; font-size: 12px; white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
  animation: bgmBubbleIn .26s ease-out both;
}
.bgm-bubble.out { opacity: 0; transition: opacity .55s ease; }
@keyframes bgmBubbleIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* 移动端：控件缩小靠底，避免遮挡作品主体 */
@media (max-width: 480px) {
  .bgm-dock { width: 196px; right: 10px; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); padding: 8px 10px 7px; gap: 8px; }
  .bgm-dock-play { flex-basis: 30px; width: 30px; height: 30px; font-size: 10px; }
  .bgm-dock-name { font-size: 11px; }
  .bgm-bubble { right: 10px; bottom: calc(124px + env(safe-area-inset-bottom, 0px)); font-size: 11.5px; }
  .bgm-list { max-height: 40vh; }
  .bgm-vol-range { width: 78px; }
}

/* v2.82.0 配乐独立浮层：叠在发布/编辑弹窗之上，不替换其 DOM */
.bgm-modal {
  position: fixed; inset: 0; z-index: 10001;
  display: grid; place-items: center;
  background: rgba(4, 6, 10, .62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: bgmModalIn .2s ease-out both;
}
.bgm-modal.is-top { z-index: 10003; }
.bgm-modal.out { opacity: 0; transition: opacity .18s ease; }
@keyframes bgmModalIn { from { opacity: 0; } to { opacity: 1; } }
.bgm-modal-card {
  width: min(92vw, 400px); max-height: 82vh; overflow-y: auto;
  border-radius: 18px; padding: 18px 16px 16px;
  border: 1px solid #4477aa55;
  background: #101828f2;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  animation: bgmCardIn .24s cubic-bezier(.2, .9, .3, 1) both;
}
@keyframes bgmCardIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.bgm-modal-card .modal-title { font-size: 16px; color: #e8edf5; margin: 0 0 4px; }
.bgm-modal-card .modal-sub { font-size: 11.5px; color: #7e8ea6; margin: 0 0 12px; }
.bgm-modal-x {
  position: absolute; margin-left: 0;
}

/* ============================================================
   v2.83.0 发布页正文板块（PRD 定稿：方案1 结构 + 方案2 玻璃质感）
   深色玻璃拟态 / 冰蓝弱发光 / Web3 哈希碎片氛围 / 克制无跳动
   ============================================================ */

/* 弹窗容器：单栏信息流，底部让出安全区；发布页不用右上角 ✕（返回键可关） */
.modal-card:has(.pub-page) {
  padding: 0 16px calc(26px + env(safe-area-inset-bottom, 0px));
  background: #0B1020;
  border-top-color: rgba(115, 200, 255, .22);
}
.modal-card:has(.pub-page) .modal-x { display: none; }

.pub-page { display: flex; flex-direction: column; gap: 18px; }

/* ---------- 顶部导航栏：透明浮层跟随滚动 ---------- */
.pub-nav {
  position: sticky; top: 0; z-index: 12;
  display: flex; align-items: center; gap: 8px;
  height: 52px; margin: 0 -16px; padding: 0 8px;
  background: linear-gradient(180deg, rgba(8, 10, 16, .9), rgba(8, 10, 16, .6) 68%, rgba(8, 10, 16, 0));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.pub-nav-back {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 2px;
  height: 34px; padding: 0 8px 0 4px; border: 0; border-radius: 10px;
  background: transparent; color: #AAB4C7; font-size: 13px; cursor: pointer;
  transition: color .18s, background .18s;
}
.pub-nav-back svg { width: 17px; height: 17px; }
.pub-nav-back:hover { color: #E8EDF5; background: rgba(255, 255, 255, .05); }
.pub-nav-title {
  flex: 1; min-width: 0; text-align: center;
  font-size: 15.5px; font-weight: 600; color: #E8EDF5; letter-spacing: .02em;
}
.pub-nav-preview {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px;
  height: 32px; padding: 0 12px; border-radius: 11px; cursor: pointer;
  border: 1px solid rgba(115, 200, 255, .32);
  background: rgba(115, 200, 255, .1); color: #73C8FF;
  font-size: 12.5px; font-weight: 500;
  transition: background .18s, border-color .18s, transform .12s;
}
.pub-nav-preview svg { width: 14px; height: 14px; }
.pub-nav-preview:hover { background: rgba(115, 200, 255, .18); border-color: rgba(115, 200, 255, .5); }
.pub-nav-preview:active { transform: scale(.96); }
.pub-nav-sub { margin: -12px 2px 0; font-size: 11.5px; line-height: 1.65; color: #7F8AA3; }

/* ---------- 正文主卡片 ---------- */
.publish-editor-card {
  background: rgba(20, 28, 45, .45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(115, 200, 255, .18);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.publish-editor-card.is-focus {
  border-color: rgba(115, 200, 255, .3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35), 0 0 0 3px rgba(115, 200, 255, .05);
}
.pec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.pec-title { font-size: 15.5px; font-weight: 600; color: #E8EDF5; letter-spacing: .02em; }
.pec-count { flex: 0 0 auto; font-size: 11.5px; color: #7F8AA3; font-variant-numeric: tabular-nums; }

.publish-textarea {
  display: block; width: 100%; min-height: 140px; max-height: 400px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(115, 200, 255, .12);
  border-radius: 16px; padding: 14px;
  color: #E8EDF5; font-size: 15px; line-height: 1.7;
  outline: none; resize: vertical; font-family: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.publish-textarea::placeholder { color: #6E7C93; }
.publish-textarea:focus {
  border-color: rgba(115, 200, 255, .45);
  box-shadow: 0 0 0 3px rgba(115, 200, 255, .12);
  background: rgba(255, 255, 255, .045);
  scroll-margin-bottom: 180px;
}

.pec-tools { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.pec-hint { flex: 1; min-width: 0; font-size: 11.5px; color: #7F8AA3; }
.preview-button {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px;
  background: rgba(115, 200, 255, .12);
  border: 1px solid rgba(115, 200, 255, .3);
  color: #73C8FF; border-radius: 12px; padding: 8px 14px; font-size: 13px;
  cursor: pointer; transition: background .18s, border-color .18s, transform .12s;
}
.preview-button svg { width: 14px; height: 14px; }
.preview-button:hover { background: rgba(115, 200, 255, .2); border-color: rgba(115, 200, 255, .5); }
.preview-button:active { transform: scale(.96); }

/* ---------- 排版语法参考（折叠） ---------- */
.pub-syn { margin-top: 14px; }
.pub-syn-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 2px 0; border: 0; background: transparent; cursor: pointer;
  color: #AAB4C7; font-size: 13px; text-align: left;
}
.pub-syn-head:hover { color: #E8EDF5; }
.pub-syn-chev { display: inline-flex; color: #7F8AA3; transition: transform .24s ease-out; }
.pub-syn-chev svg { width: 14px; height: 14px; }
.pub-syn-head.open .pub-syn-chev { transform: rotate(180deg); }
.pub-syn-body {
  margin-top: 12px; max-height: 258px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 13px;
  animation: synIn .24s ease-out both;
}
@keyframes synIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pub-syn-group-t { font-size: 11.5px; color: #8FA6C4; letter-spacing: .06em; margin-bottom: 7px; }
.pub-syn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pub-syn-chip {
  padding: 5px 9px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(115, 200, 255, .16);
  background: rgba(115, 200, 255, .06); color: #73C8FF;
  font-size: 11.5px; line-height: 1.4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  transition: background .18s, border-color .18s, transform .12s;
}
.pub-syn-chip:hover { background: rgba(115, 200, 255, .14); border-color: rgba(115, 200, 255, .34); }
.pub-syn-chip:active { transform: scale(.96); }

/* ---------- 存证提示条（琥珀色，必须保留） ---------- */
.deposit-tip {
  display: flex; gap: 8px; margin-top: 14px; padding: 12px 14px;
  background: rgba(255, 170, 60, .1);
  border: 1px solid rgba(255, 170, 60, .25);
  color: #FFD59A; border-radius: 12px;
  font-size: 12px; line-height: 1.65;
}
.deposit-tip-ico { flex: 0 0 auto; font-size: 12px; line-height: 1.5; }

/* ---------- 标签模块 ---------- */
.publish-block { display: flex; flex-direction: column; gap: 10px; }
.pb-title { font-size: 15.5px; font-weight: 600; color: #E8EDF5; letter-spacing: .02em; }
.pub-tag-block input {
  width: 100%; padding: 12px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(115, 200, 255, .12);
  color: #E8EDF5; font-size: 13.5px; outline: none; font-family: inherit;
  transition: border-color .18s, box-shadow .18s;
}
.pub-tag-block input::placeholder { color: #6E7C93; }
.pub-tag-block input:focus {
  border-color: rgba(115, 200, 255, .45);
  box-shadow: 0 0 0 3px rgba(115, 200, 255, .12);
}
.pub-tag-caps { display: flex; flex-wrap: wrap; gap: 6px; }
.pub-tag-cap {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(115, 200, 255, .3);
  background: rgba(115, 200, 255, .09); color: #9ADCFF; font-size: 12px;
  transition: border-color .18s, color .18s;
}
.pub-tag-cap:hover { border-color: rgba(255, 140, 158, .42); color: #FFB3BF; }
.pub-tag-x { font-size: 9.5px; opacity: .7; }
.pub-tag-suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.pub-tag-sug {
  padding: 4px 9px; border-radius: 999px; cursor: pointer;
  border: 1px dashed rgba(115, 200, 255, .18); background: transparent;
  color: #7F8AA3; font-size: 11.5px;
  transition: color .18s, border-color .18s;
}
.pub-tag-sug:hover { color: #73C8FF; border-color: rgba(115, 200, 255, .4); }

/* ---------- 付费设置模块（玻璃卡片化） ---------- */
.pub-page .paid-field {
  border: 1px solid rgba(115, 200, 255, .18);
  border-radius: 18px; background: rgba(20, 28, 45, .38);
  padding: 16px 18px; margin-bottom: 0;
}
.pub-page .paid-row { gap: 11px; }
.pub-page .paid-row-title { font-size: 15.5px; font-weight: 600; color: #E8EDF5; letter-spacing: .02em; }
.pub-page .paid-row .field { align-items: center; }
.pub-page .paid-row .switch {
  border: 1px solid rgba(115, 200, 255, .2);
  background: rgba(255, 255, 255, .06);
}
.pub-page .paid-row .switch.on { background: #5DE0C7; border-color: transparent; }
.pub-page .paid-row .switch.on::after { background: #0B1020; }
.pub-page .paid-foot-note { font-size: 11.5px; line-height: 1.6; color: #7F8AA3; }

/* ---------- 预览弹窗（只渲染正文） ---------- */
.pub-preview-layer {
  position: fixed; inset: 0; z-index: 10004;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(4, 6, 12, .72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: pvFade .22s ease-out both;
}
.pub-preview-layer.out { animation: pvOut .18s ease-in both; }
@keyframes pvFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pvOut { from { opacity: 1; } to { opacity: 0; } }
.pub-preview-card {
  width: min(100%, 640px); max-height: 82dvh; overflow: hidden;
  display: flex; flex-direction: column;
  border-radius: 20px; border: 1px solid rgba(115, 200, 255, .22);
  background: rgba(16, 24, 40, .97);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  animation: pvIn .22s cubic-bezier(.2, .9, .3, 1) both;
}
@keyframes pvIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pub-preview-head { padding: 16px 18px 12px; border-bottom: 1px solid rgba(115, 200, 255, .1); }
.pub-preview-title { display: flex; align-items: center; gap: 7px; font-size: 15.5px; font-weight: 600; color: #E8EDF5; }
.pub-preview-title svg { width: 16px; height: 16px; color: #73C8FF; }
.pub-preview-sub { margin-top: 5px; font-size: 11.5px; color: #7F8AA3; }
.pub-preview-body {
  flex: 1; min-height: 90px; overflow-y: auto; padding: 18px;
  font-size: 14.5px; line-height: 1.8; color: #E8EDF5;
  word-break: break-word;
}
.pub-preview-body img, .pub-preview-body .ubb-img { max-width: 100%; border-radius: 10px; }
.pub-preview-body .ubb-quote {
  margin: 10px 0; padding: 8px 12px; border-left: 2px solid rgba(115, 200, 255, .4);
  background: rgba(115, 200, 255, .06); border-radius: 0 8px 8px 0; color: #C6D3E4;
}
.pub-preview-empty { padding: 26px 0; text-align: center; color: #7F8AA3; font-size: 13px; }
.pub-preview-foot { padding: 12px 18px 16px; border-top: 1px solid rgba(115, 200, 255, .1); }
.pub-preview-foot .btn { height: 38px; font-size: 13px; }

/* ---------- 移动端：单栏、控件收窄、预览改为底部卡片 ---------- */
@media (max-width: 480px) {
  .modal-card:has(.pub-page) { padding: 0 14px calc(22px + env(safe-area-inset-bottom, 0px)); }
  .pub-page { gap: 16px; }
  .pub-nav { height: 50px; margin: 0 -14px; padding: 0 6px; }
  .pub-nav-preview { height: 30px; padding: 0 10px; font-size: 12px; }
  .pub-nav-back { font-size: 12.5px; }
  .pub-nav-title { font-size: 15px; }
  .publish-editor-card { padding: 16px; border-radius: 20px; }
  .publish-textarea { min-height: 130px; font-size: 15px; padding: 13px; }
  .pec-hint { font-size: 11px; }
  .preview-button { padding: 7px 12px; font-size: 12.5px; }
  .deposit-tip { font-size: 11.5px; padding: 11px 12px; }
  .pub-preview-layer { padding: 0; align-items: flex-end; }
  .pub-preview-card {
    width: 100%; max-height: 86dvh;
    border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .pub-preview-body { padding: 16px; font-size: 14px; }
}

/* v2.83.1 分享访问权限行：下拉框一行，说明小字独占下一行全宽。
   修复：说明文字（60+ 字）与下拉同处一个 flex 行时被挤成窄列换行，
   把整行撑出巨大空白（用户截图反馈）。 */
.magic-row.vis-row { flex-wrap: wrap; row-gap: 7px; }
.magic-row.vis-row .magic-label { flex: 0 0 auto; }
.magic-row.vis-row .magic-select { flex: 1 1 auto; min-width: 0; text-overflow: ellipsis; }
.magic-row.vis-row .magic-note {
  flex: 1 0 100%; min-width: 0;
  font-size: 11.5px; line-height: 1.65; color: var(--text-3, #7F8AA3);
}

/* ============================================================
   v2.84.0 行为验证码（风险触发式）
   普通用户看不到；注册高频 / 登录失败 / 发帖异常时才弹。
   ============================================================ */
.cap-layer {
  position: fixed; inset: 0; z-index: 10010;
  display: grid; place-items: center; padding: 20px;
  background: rgba(4, 6, 12, .78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: capFade .2s ease-out both;
}
.cap-layer.out { opacity: 0; transition: opacity .18s ease; }
@keyframes capFade { from { opacity: 0; } to { opacity: 1; } }

.cap-card {
  position: relative; width: min(100%, 340px);
  padding: 20px 20px 18px; border-radius: 18px;
  border: 1px solid rgba(115, 200, 255, .24);
  background: rgba(16, 24, 40, .97);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
  animation: capIn .24s cubic-bezier(.2, .9, .3, 1) both;
}
@keyframes capIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.cap-card.is-ok {
  border-color: rgba(93, 224, 199, .6);
  box-shadow: 0 0 0 3px rgba(93, 224, 199, .12), 0 24px 70px rgba(0, 0, 0, .6);
}
.cap-x {
  position: absolute; top: 10px; right: 10px; width: 26px; height: 26px;
  display: grid; place-items: center; cursor: pointer;
  border: 0; border-radius: 8px; background: transparent;
  color: #7F8AA3; font-size: 12px;
}
.cap-x:hover { background: rgba(255, 255, 255, .08); color: #E8EDF5; }

.cap-title { display: flex; align-items: center; gap: 7px; font-size: 15.5px; font-weight: 600; color: #E8EDF5; }
.cap-title-ico { font-size: 13px; }
.cap-sub { margin-top: 6px; font-size: 11.5px; line-height: 1.6; color: #7F8AA3; }

.cap-q {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 16px; padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(115, 200, 255, .12);
}
.cap-q-text {
  font-size: 17px; font-weight: 600; color: #E8EDF5; letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
.cap-q-input {
  width: 76px; height: 34px; text-align: center; outline: none;
  border-radius: 9px; background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(115, 200, 255, .25);
  color: #73C8FF; font-size: 16px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: border-color .18s, box-shadow .18s;
}
.cap-q-input:focus { border-color: rgba(115, 200, 255, .6); box-shadow: 0 0 0 3px rgba(115, 200, 255, .1); }

.cap-slider-wrap { margin: 16px 0 4px; display: flex; justify-content: center; }
.cap-rail {
  position: relative; height: 44px; border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(115, 200, 255, .16);
  overflow: hidden; user-select: none; touch-action: none;
  transition: border-color .2s;
}
.cap-rail.active { border-color: rgba(115, 200, 255, .4); }
.cap-rail.near { border-color: rgba(93, 224, 199, .6); }
.cap-hole {
  position: absolute; top: 5px; width: 34px; height: 34px; border-radius: 9px;
  border: 1px dashed rgba(115, 200, 255, .5);
  background: rgba(115, 200, 255, .08);
}
.cap-knob {
  position: absolute; top: 5px; left: 0; width: 34px; height: 34px;
  display: grid; place-items: center; cursor: grab; touch-action: none;
  border-radius: 9px; border: 1px solid rgba(115, 200, 255, .45);
  background: linear-gradient(180deg, rgba(115, 200, 255, .35), rgba(115, 200, 255, .18));
  color: #E8EDF5; font-size: 12px;
  transition: background .15s;
}
.cap-knob.dragging { cursor: grabbing; background: linear-gradient(180deg, rgba(115, 200, 255, .55), rgba(115, 200, 255, .3)); }
.cap-rail-hint {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 11.5px; color: #7F8AA3; pointer-events: none;
  transition: opacity .18s;
}
.cap-rail.active .cap-rail-hint { opacity: 0; }

.cap-tip { margin-top: 10px; text-align: center; font-size: 11px; color: #6E7C93; }
.cap-err { margin-top: 8px; text-align: center; font-size: 11.5px; color: #FF8F9C; }
.cap-acts { display: flex; gap: 9px; margin-top: 14px; }
.cap-acts .btn { flex: 1; height: 38px; font-size: 13px; }

@media (max-width: 360px) {
  .cap-card { padding: 16px 14px 14px; }
  .cap-rail { transform: scale(.92); transform-origin: center; }
}

/* ============================================================
   v2.85.2 游客「我的」引导页：星空立方 · 冰蓝霓虹全息
   配色：底 #081428 · 主光 #44ccff · 紫晕 #b878ff
        正文 #f0f8ff · 次要 #b4c8e0 · 玻璃底 rgba(16,40,80,.45)
   ============================================================ */
.guest-mine {
  position: relative; overflow: hidden;
  /* 负 margin 让星空背景铺到半透顶栏下方，形成「顶栏与页面融合」的玻璃层次 */
  margin-top: -56px; padding: 88px 26px 46px;
  min-height: calc(100vh - 56px);
  text-align: center;
  background: radial-gradient(120% 90% at 50% -10%, #0d2148 0%, #081428 55%, #050c1c 100%);
  isolation: isolate;
}
.gm-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* 淡蓝极细坐标网格 + 节点光点 */
.gm-grid {
  position: absolute; inset: -10%;
  background:
    repeating-linear-gradient(0deg, rgba(68,204,255,.055) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(68,204,255,.055) 0 1px, transparent 1px 44px);
  mask-image: radial-gradient(90% 70% at 50% 26%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(90% 70% at 50% 26%, #000 30%, transparent 78%);
  transform: perspective(600px) rotateX(28deg) scale(1.35);
}
/* 星云：缓慢流动 */
.gm-nebula {
  position: absolute; inset: 0;
  background:
    radial-gradient(38% 26% at 22% 18%, rgba(68,204,255,.16), transparent 70%),
    radial-gradient(34% 24% at 82% 30%, rgba(184,120,255,.12), transparent 70%),
    radial-gradient(46% 30% at 55% 8%, rgba(20,90,190,.18), transparent 72%);
  /* v3.11.9m 去掉实时 blur 滤镜（动画期间每帧重栅格化，低端机卡顿元凶），渐变本身已柔和 */
  will-change: transform;
  animation: gmNebula 26s ease-in-out infinite alternate;
}
@keyframes gmNebula { from { transform: translate3d(-2.4%, -1%, 0) scale(1.02); } to { transform: translate3d(2.4%, 1.4%, 0) scale(1.08); } }
/* 星点粒子：微弱闪烁 */
.gm-star {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: rgba(214,240,255,.85);
  box-shadow: 0 0 5px rgba(68,204,255,.8);
  animation: gmTwinkle linear infinite;
}
.gm-star.big { width: 3px; height: 3px; box-shadow: 0 0 8px rgba(184,120,255,.85); }
@keyframes gmTwinkle { 0%, 100% { opacity: .18; } 50% { opacity: .95; } }

/* 主视觉：低位 3D π 立方体 + 柔和呼吸轮廓光 + 底部环绕链纹 */
.gm-hero { position: relative; z-index: 1; height: 212px; display: grid; place-items: center; margin: 0 0 2px; }
/* 轮廓光：椭球径向柔光，缓慢呼吸（不刺眼、无爆闪） */
.gm-halo {
  position: absolute; left: 50%; top: 52%; width: 264px; height: 206px;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%,
    rgba(68,204,255,.24) 0%, rgba(68,204,255,.08) 46%, rgba(184,120,255,.05) 62%, transparent 74%);
  filter: blur(7px);
  animation: gmHalo 6.4s ease-in-out infinite;
}
@keyframes gmHalo {
  0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.9); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}
.gm-scene {
  position: relative; z-index: 2; width: 118px; height: 118px; margin-top: 6px;
  perspective: 620px; filter: drop-shadow(0 0 18px rgba(68,204,255,.34));
  animation: gmBreath 5.6s ease-in-out infinite;
}
@keyframes gmBreath { 0%, 100% { filter: drop-shadow(0 0 14px rgba(68,204,255,.28)); } 50% { filter: drop-shadow(0 0 30px rgba(68,204,255,.58)); } }
.gm-cube { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: gmSpin 48s linear infinite; }
@keyframes gmSpin { from { transform: rotateX(-20deg) rotateY(0deg); } to { transform: rotateX(-20deg) rotateY(360deg); } }
.gm-face {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 42px; font-weight: 700; color: #e2f6ff;
  border: 1.5px solid rgba(68,204,255,.78);
  background: rgba(16,40,80,.34);
  text-shadow: 0 0 14px rgba(68,204,255,.95);
  box-shadow: inset 0 0 24px rgba(68,204,255,.2);
  backface-visibility: visible;
}
.gm-ft { transform: translateZ(59px); }
.gm-bk { transform: rotateY(180deg) translateZ(59px); opacity: .55; }
.gm-lt { transform: rotateY(-90deg) translateZ(59px); opacity: .7; }
.gm-rt { transform: rotateY(90deg) translateZ(59px); opacity: .7; }
.gm-tp { transform: rotateX(90deg) translateZ(59px); opacity: .5; }
.gm-bt { transform: rotateX(-90deg) translateZ(59px); opacity: .5; }

/* 底部环绕链纹：双椭圆链环 + 链节点 + 低速公转光点 */
.gm-chain {
  position: absolute; left: 50%; bottom: 2px; z-index: 1;
  width: 238px; height: 78px; margin-left: -119px;
  border-radius: 50%;
  border: 1px dashed rgba(68,204,255,.4);
  box-shadow: 0 0 26px rgba(68,204,255,.15), inset 0 0 24px rgba(68,204,255,.1);
  animation: gmChainPulse 5.2s ease-in-out infinite;
  pointer-events: none;
}
.gm-chain::before {
  content: ''; position: absolute; inset: 11px 22px; border-radius: 50%;
  border: 1px solid rgba(184,120,255,.26);
}
.gm-chain::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 152px; height: 42px;
  margin: -21px 0 0 -76px; border-radius: 50%;
  border-top: 1px solid rgba(160,230,255,.3);
}
@keyframes gmChainPulse { 0%, 100% { opacity: .68; } 50% { opacity: 1; } }
.gm-chain-node { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #9fe6ff; box-shadow: 0 0 8px 2px rgba(68,204,255,.8); }
.gm-chain-node.n1 { left: 5%; top: 44%; }
.gm-chain-node.n2 { right: 7%; top: 38%; background: #d9b6ff; box-shadow: 0 0 8px 2px rgba(184,120,255,.75); }
.gm-chain-node.n3 { left: 50%; bottom: -2px; margin-left: -2.5px; }
.gm-chain-run {
  position: absolute; left: 0; top: 0; width: 7px; height: 7px; border-radius: 50%;
  background: #dff6ff; box-shadow: 0 0 10px 3px rgba(68,204,255,.85);
  offset-path: ellipse(113px 34px at 50% 50%);
  offset-distance: 0%;
  offset-rotate: 0deg;
  animation: gmChainRun 11s linear infinite;
}
@keyframes gmChainRun { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@supports not (offset-path: ellipse(10px 10px at 50% 50%)) {
  .gm-chain-run { display: none; }
}

/* 文案 */
.gm-title {
  position: relative; z-index: 1; margin: 4px 0 0;
  font-size: 21px; font-weight: 700; color: #f0f8ff; letter-spacing: .02em;
  text-shadow: 0 0 16px rgba(68,204,255,.45);
}
.gm-sub {
  position: relative; z-index: 1; margin: 10px auto 0; max-width: 300px;
  font-size: 12.5px; line-height: 1.85; color: #b4c8e0;
}
/* 功能条目：半透明冰蓝玻璃条 + 全息线框图标 */
.gm-perks {
  position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px;
  width: 100%; max-width: 334px; margin: 26px auto 0; text-align: left;
}
.gm-perk {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(22,50,94,.52), rgba(11,26,54,.34));
  border: 1px solid rgba(68,204,255,.17);
  backdrop-filter: blur(12px) saturate(1.15);
  box-shadow: 0 8px 22px rgba(3,10,24,.3), inset 0 1px 0 rgba(190,235,255,.09);
  transition: border-color .2s ease, transform .2s ease;
}
.gm-perk:hover { border-color: rgba(68,204,255,.34); transform: translateY(-1px); }
.gm-perk-tx { font-size: 12.8px; line-height: 1.6; color: #dbe8f6; letter-spacing: .01em; }
.gm-pico {
  flex: none; width: 26px; height: 26px; display: grid; place-items: center;
  color: #7fdcff; filter: drop-shadow(0 0 6px rgba(68,204,255,.55));
}
.gm-pico svg { width: 18px; height: 18px; stroke-width: 1.4; }

/* 主按钮：π 连接身份 */
.gm-cta {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 11px;
  width: 75%; min-width: 240px; margin: 30px auto 0; padding: 15px 18px;
  border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent;
  background:
    linear-gradient(rgba(9,24,52,.72), rgba(9,24,52,.72)) padding-box,
    linear-gradient(100deg, rgba(68,204,255,.95), rgba(120,150,255,.5) 45%, rgba(184,120,255,.9)) border-box;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 22px rgba(68,204,255,.28), 0 10px 30px rgba(5,12,28,.5);
  animation: gmCtaBreath 4.2s ease-in-out infinite;
  transition: transform .2s ease, box-shadow .2s ease, animation .2s;
}
@keyframes gmCtaBreath { 0%, 100% { box-shadow: 0 0 14px rgba(68,204,255,.2), 0 10px 30px rgba(5,12,28,.5); } 50% { box-shadow: 0 0 30px rgba(68,204,255,.42), 0 10px 30px rgba(5,12,28,.5); } }
/* 光晕扩散层：hover 时向外推一圈，静息不可见 */
.gm-cta::after {
  content: ''; position: absolute; inset: -2px; border-radius: 999px;
  pointer-events: none; opacity: 0; box-shadow: 0 0 0 0 rgba(68,204,255,.4);
}
.gm-cta:hover { animation: none; transform: translateY(-3px); box-shadow: 0 0 42px rgba(68,204,255,.5), 0 16px 34px rgba(5,12,28,.55); }
.gm-cta:hover::after { animation: gmCtaHalo .95s ease-out; }
@keyframes gmCtaHalo {
  0% { opacity: .75; box-shadow: 0 0 0 0 rgba(68,204,255,.45); }
  100% { opacity: 0; box-shadow: 0 0 0 20px rgba(68,204,255,0); }
}
.gm-cta:active { transform: translateY(-1px); box-shadow: 0 0 44px rgba(68,204,255,.55), 0 12px 30px rgba(5,12,28,.55); }
.gm-cta-cube {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  font-size: 16px; font-weight: 700; color: #e2f6ff;
  border: 1.2px solid rgba(68,204,255,.85);
  background: rgba(16,40,80,.5);
  text-shadow: 0 0 8px rgba(68,204,255,.9);
  box-shadow: inset 0 0 10px rgba(68,204,255,.22);
}
.gm-cta-tx { font-size: 15.5px; font-weight: 700; color: #f0f8ff; letter-spacing: .04em; text-shadow: 0 0 10px rgba(68,204,255,.5); }
.gm-cta-chain { color: rgba(140,214,255,.88); display: inline-flex; }
.gm-cta-chain svg { width: 34px; height: 15px; filter: drop-shadow(0 0 5px rgba(68,204,255,.6)); }
.gm-foot { position: relative; z-index: 1; margin: 18px 0 0; font-size: 10.5px; line-height: 1.8; color: rgba(180,200,224,.55); }
.gm-legal-link {
  border: 0; background: none; padding: 0 1px; margin: 0;
  font: inherit; color: rgba(160,214,255,.82); cursor: pointer;
}
.gm-legal-link:hover { color: #9fe6ff; text-decoration: underline; }

/* ================= v2.85.5 登录态「我的」页：星空背景 + 个人中心头部（定稿） ================= */
.me-cosmic {
  position: relative; overflow: hidden;
  /* 负 margin 让星空背景铺到半透顶栏下方，与未登录页同一视觉 */
  margin-top: -56px; padding: 88px 16px 46px;
  min-height: calc(100vh - 56px);
  background: radial-gradient(120% 90% at 50% -10%, #0d2148 0%, #081428 55%, #050c1c 100%);
  isolation: isolate;
}
/* 头部信息区：半透渐变星空底 + blur(12px) 玻璃拟态 */
.pf2-head {
  position: relative; z-index: 1;
  background: linear-gradient(160deg, rgba(12, 22, 40, .65), rgba(16, 40, 80, .45));
  backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(68, 204, 255, .18);
  border-radius: 20px; padding: 18px 16px 16px;
  box-shadow: 0 10px 30px rgba(3, 10, 24, .35), inset 0 1px 0 rgba(190, 235, 255, .08);
}
.pf2-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* 头像：圆形全息玻璃框，冰蓝细发光描边；点击进资料编辑 */
.pf2-id { display: flex; align-items: center; gap: 12px; cursor: pointer; min-width: 0; flex: 1; }
.pf2-avatar {
  position: relative; flex: none; width: 62px; height: 62px; border-radius: 50%; padding: 2px;
  background: linear-gradient(135deg, rgba(68, 204, 255, .8), rgba(184, 120, 255, .55));
  box-shadow: 0 0 14px rgba(68, 204, 255, .35), inset 0 0 8px rgba(68, 204, 255, .25);
  transition: box-shadow .2s ease;
}
.pf2-id:hover .pf2-avatar { box-shadow: 0 0 20px rgba(68, 204, 255, .55), inset 0 0 10px rgba(68, 204, 255, .3); }
.pf2-avatar .avatar { width: 100%; height: 100%; border-radius: 50%; border: 2px solid rgba(8, 20, 40, .9); }
.pf2-avatar-ph {
  width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center;
  background: rgba(16, 40, 80, .6); border: 1.5px solid rgba(68, 204, 255, .6);
  color: #e2f6ff; font-size: 28px; font-weight: 700;
  text-shadow: 0 0 12px rgba(68, 204, 255, .9);
  box-shadow: inset 0 0 16px rgba(68, 204, 255, .25);
}
.pf2-namecol { min-width: 0; }
.pf2-namerow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.pf2-nick {
  font-size: 18px; font-weight: 700; color: #f0f8ff;
  text-shadow: 0 0 10px rgba(68, 204, 255, .3);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 徽章：冰蓝小型标识；站长用紫光晕区分 */
.pf2-badge {
  flex: none; font-size: 10px; padding: 2.5px 8px; border-radius: 999px; letter-spacing: .02em;
  color: #9fe6ff; border: 1px solid rgba(68, 204, 255, .45); background: rgba(16, 40, 80, .5);
}
.pf2-badge-owner { color: #e0c8ff; border-color: rgba(184, 120, 255, .5); background: rgba(40, 24, 80, .5); }
.pf2-badge-kyc { color: #a8f0d0; border-color: rgba(80, 220, 160, .4); background: rgba(14, 48, 38, .45); }
.pf2-uid { margin-top: 3px; font-size: 11px; color: #b4c8e0; }
/* 右上功能图标组：全息线框图标 */
.pf2-icons { display: flex; gap: 10px; flex: none; }
.pf2-ico {
  position: relative; width: 38px; height: 38px; border-radius: 12px; cursor: pointer; padding: 0;
  display: grid; place-items: center;
  background: rgba(16, 40, 80, .45); border: 1px solid rgba(68, 204, 255, .22);
  color: #b4c8e0; backdrop-filter: blur(8px);
  transition: border-color .2s, color .2s, box-shadow .2s;
}
.pf2-ico:hover { border-color: rgba(68, 204, 255, .55); color: #8ce0ff; box-shadow: 0 0 14px rgba(68, 204, 255, .25); }
.pf2-ico-g { display: inline-flex; }
.pf2-ico-g svg { width: 19px; height: 19px; stroke-width: 1.6; }
.pf2-dot {
  position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%;
  background: #ff5a6e; box-shadow: 0 0 6px rgba(255, 90, 110, .8);
}
/* 三枚等宽玻璃数据卡片 */
.pf2-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.pf2-card {
  position: relative; text-align: center; cursor: pointer; padding: 13px 6px 11px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(22, 50, 94, .5), rgba(11, 26, 54, .35));
  border: 1px solid rgba(68, 204, 255, .18);
  backdrop-filter: blur(12px) saturate(1.15);
  box-shadow: 0 8px 22px rgba(3, 10, 24, .3), inset 0 1px 0 rgba(190, 235, 255, .09);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pf2-card:hover {
  transform: translateY(-3px); border-color: rgba(68, 204, 255, .42);
  box-shadow: 0 0 22px rgba(68, 204, 255, .28), 0 12px 26px rgba(3, 10, 24, .4);
}
.pf2-card-ico { color: #7fdcff; display: inline-flex; margin-bottom: 5px; filter: drop-shadow(0 0 6px rgba(68, 204, 255, .55)); }
.pf2-card-ico svg { width: 16px; height: 16px; stroke-width: 1.4; }
.pf2-card-num {
  display: block; font-size: 21px; font-weight: 700; color: #f0f8ff; line-height: 1.2;
  text-shadow: 0 0 12px rgba(68, 204, 255, .45);
  font-variant-numeric: tabular-nums;
}
.pf2-card-label { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 600; color: #dbe8f6; }
.pf2-card-sub { display: block; margin-top: 3px; font-size: 9.5px; line-height: 1.5; color: #b4c8e0; opacity: .85; }
/* 快捷操作：双胶囊小按钮 */
.pf2-acts { display: flex; gap: 10px; margin-top: 14px; }
.pf2-act {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 0; border-radius: 999px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; letter-spacing: .02em;
  border: 1px solid rgba(68, 204, 255, .3); background: rgba(16, 40, 80, .45); color: #dbe8f6;
  backdrop-filter: blur(8px);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.pf2-act svg { width: 15px; height: 15px; }
.pf2-act-main {
  color: #f0f8ff;
  border: 1.2px solid transparent;
  background: linear-gradient(rgba(26, 66, 124, .85), rgba(16, 40, 84, .85)) padding-box,
              linear-gradient(100deg, rgba(68, 204, 255, .9), rgba(184, 120, 255, .75)) border-box;
  text-shadow: 0 0 8px rgba(68, 204, 255, .4);
  box-shadow: 0 0 16px rgba(68, 204, 255, .22);
}
.pf2-act:hover { transform: translateY(-2px); border-color: rgba(68, 204, 255, .55); box-shadow: 0 0 18px rgba(68, 204, 255, .3); }
/* 分割线：冰蓝细柔和 */
.pf2-divider {
  position: relative; z-index: 1; height: 1px; margin: 20px 2px 14px;
  background: linear-gradient(90deg, transparent, rgba(68, 204, 255, .45) 22%, rgba(184, 120, 255, .3) 55%, transparent);
  box-shadow: 0 0 8px rgba(68, 204, 255, .25);
}
/* 快捷菜单列表：玻璃弱底色 + 全息图标 + 右箭头 */
.pf2-menu { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.pf2-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; cursor: pointer;
  border-radius: 14px; text-align: left;
  background: linear-gradient(135deg, rgba(22, 50, 94, .42), rgba(11, 26, 54, .3));
  border: 1px solid rgba(68, 204, 255, .15); backdrop-filter: blur(10px);
  transition: border-color .2s, background .2s, transform .15s;
}
.pf2-item:hover {
  border-color: rgba(68, 204, 255, .4);
  background: linear-gradient(135deg, rgba(26, 58, 110, .55), rgba(13, 32, 64, .4));
  transform: translateY(-1px);
}
.pf2-item-ico { flex: none; color: #7fdcff; display: grid; place-items: center; filter: drop-shadow(0 0 5px rgba(68, 204, 255, .5)); }
.pf2-item-ico svg { width: 17px; height: 17px; stroke-width: 1.5; }
.pf2-item-tx { flex: 1; font-size: 13.5px; color: #dbe8f6; }
.pf2-item-arrow { color: rgba(160, 214, 255, .6); font-size: 16px; }
/* 消息 / 审核记录弹窗：主按钮统一冰蓝霓虹（与身份抽屉一致） */
.pf2-msgmodal .btn-primary {
  border: 1px solid rgba(68, 204, 255, .55);
  background: linear-gradient(100deg, rgba(26, 66, 124, .95), rgba(16, 40, 84, .92));
  color: #f0f8ff;
  text-shadow: 0 0 10px rgba(68, 204, 255, .5);
  box-shadow: 0 0 18px rgba(68, 204, 255, .22), inset 0 1px 0 rgba(190, 235, 255, .12);
}
.pf2-msgmodal .btn-primary:hover:not(:disabled) {
  border-color: rgba(68, 204, 255, .85);
  box-shadow: 0 0 28px rgba(68, 204, 255, .38), inset 0 1px 0 rgba(190, 235, 255, .16);
}
/* 消息 / 审核记录弹窗 */
.pf2-msglist { max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.pf2-msg {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px;
  background: rgba(16, 40, 80, .35); border: 1px solid rgba(68, 204, 255, .14);
}
.pf2-msg.link { cursor: pointer; }
.pf2-msg.link:hover { border-color: rgba(68, 204, 255, .4); }
.pf2-msg.unread { border-color: rgba(68, 204, 255, .35); background: rgba(20, 50, 96, .45); }
.pf2-msg-main { flex: 1; min-width: 0; }
.pf2-msg-main b { font-size: 12.5px; color: #f0f8ff; display: block; }
.pf2-msg-main p { margin: 3px 0 0; font-size: 11px; line-height: 1.6; color: #b4c8e0; word-break: break-word; }
.pf2-msg-time { flex: none; font-size: 10px; color: rgba(180, 200, 224, .6); }
.pf2-chip { flex: none; font-size: 10px; padding: 2.5px 8px; border-radius: 999px; }
.pf2-chip.wait { color: #ffd98a; border: 1px solid rgba(255, 200, 100, .4); background: rgba(60, 44, 10, .4); }
.pf2-chip.err { color: #ff9aa8; border: 1px solid rgba(255, 110, 130, .4); background: rgba(70, 16, 26, .4); }
.pf2-msg-foot { margin-top: 4px; }
.pf2-msg-foot .btn { width: 100%; }

/* ================= v2.85.6 细节优化：徽章光效 / 菜单 hover 光晕 / 徽章详情弹窗 ================= */
/* ① 徽章区整体融入星空玻璃卡；标题柔和发光 */
.me-cosmic .pf-badges {
  margin: 14px 0 0; padding: 14px 14px 13px;
  border: 1px solid rgba(68, 204, 255, .16); border-radius: 18px;
  background: linear-gradient(160deg, rgba(16, 40, 80, .42), rgba(10, 24, 48, .3));
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(190, 235, 255, .06);
}
.me-cosmic .pf-badges-head { display: flex; align-items: baseline; gap: 7px; margin-bottom: 6px; }
.me-cosmic .pf2-bh-tx {
  font-size: 13px; font-weight: 700; letter-spacing: .06em; color: #eaf6ff;
  text-shadow: 0 0 10px rgba(68, 204, 255, .55), 0 0 22px rgba(68, 204, 255, .22);
}
.me-cosmic .pf2-bh-num {
  font-size: 12px; font-weight: 700; letter-spacing: .05em; color: #7fe0ff;
  text-shadow: 0 0 9px rgba(68, 204, 255, .6);
}
/* ④ 小字备注：降低理解成本 */
.me-cosmic .pf-badges-note { margin: 0 0 11px; font-size: 10.5px; line-height: 1.7; color: rgba(180, 200, 224, .58); }
/* ② 已解锁：冰蓝呼吸光；未解锁：浅灰低饱和，区分更明确 */
.me-cosmic .pf-badge {
  cursor: pointer; font: inherit; font-size: 11.5px; opacity: 1;
  color: rgba(190, 204, 222, .62); border-color: rgba(150, 170, 195, .16);
  background: rgba(16, 40, 80, .26);
  transition: transform .15s ease, border-color .2s ease, box-shadow .25s ease, color .2s ease;
}
.me-cosmic .pf-badge.locked { filter: grayscale(.85); }
.me-cosmic .pf-badge.locked svg { opacity: .75; }
.me-cosmic .pf-badge.earned {
  color: #dff4ff; border-color: rgba(68, 204, 255, .55);
  background: linear-gradient(135deg, rgba(26, 66, 124, .8), rgba(16, 40, 84, .62));
  animation: pf2-badge-breath 3.6s ease-in-out infinite;
}
.me-cosmic .pf-badge:hover {
  transform: translateY(-1px); border-color: rgba(68, 204, 255, .72);
  box-shadow: 0 0 16px rgba(48, 170, 255, .35), inset 0 0 8px rgba(68, 204, 255, .12);
}
.me-cosmic .pf-badge:active { transform: scale(.97); }
@keyframes pf2-badge-breath {
  0%, 100% { box-shadow: 0 0 8px rgba(48, 170, 255, .16), inset 0 0 6px rgba(68, 204, 255, .08); }
  50% { box-shadow: 0 0 17px rgba(68, 204, 255, .45), inset 0 0 10px rgba(68, 204, 255, .18); }
}
/* ③ 菜单项 hover 统一冰蓝光晕（新菜单 pf2-item + 旧列表 menu-item / menu-card） */
.me-cosmic .pf2-item { transition: border-color .2s, background .2s, transform .15s, box-shadow .25s; }
.me-cosmic .pf2-item:hover {
  box-shadow: 0 6px 20px rgba(3, 10, 24, .34), 0 0 18px rgba(48, 170, 255, .2), inset 0 0 0 1px rgba(68, 204, 255, .08);
}
.me-cosmic .menu-item, .me-cosmic .menu-card {
  transition: background .2s, border-color .2s, box-shadow .25s, color .2s;
}
.me-cosmic .menu-item:hover, .me-cosmic .menu-card:hover {
  box-shadow: 0 0 16px rgba(48, 170, 255, .16), inset 0 0 0 1px rgba(68, 204, 255, .08);
}
.me-cosmic .menu-item:hover .menu-ico, .me-cosmic .menu-card:hover .menu-ico { filter: drop-shadow(0 0 5px rgba(68, 204, 255, .55)); }
/* 徽章详情弹窗 */
.pf2-bm-top { display: flex; align-items: center; gap: 14px; margin: 2px 0 14px; }
.pf2-bm-ring {
  flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  color: rgba(180, 200, 224, .6); border: 1px solid rgba(150, 170, 195, .3);
  background: rgba(16, 40, 80, .4);
}
.pf2-bm-ring svg { width: 24px; height: 24px; stroke-width: 1.5; }
.pf2-bm.is-on .pf2-bm-ring {
  color: #9fe6ff; border-color: rgba(68, 204, 255, .7);
  background: radial-gradient(circle at 50% 38%, rgba(48, 120, 200, .55), rgba(12, 30, 60, .75));
  animation: pf2-bm-ring 3.2s ease-in-out infinite;
}
@keyframes pf2-bm-ring {
  0%, 100% { box-shadow: 0 0 10px rgba(48, 170, 255, .22), inset 0 0 8px rgba(68, 204, 255, .12); }
  50% { box-shadow: 0 0 22px rgba(68, 204, 255, .5), inset 0 0 12px rgba(68, 204, 255, .2); }
}
.pf2-bm-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.pf2-bm-name { font-size: 16px; font-weight: 700; color: #f0f8ff; letter-spacing: .02em; }
.pf2-bm-state {
  font-size: 10.5px; padding: 2.5px 9px; border-radius: 999px; white-space: nowrap;
  color: rgba(180, 200, 224, .68); border: 1px solid rgba(150, 170, 195, .3);
}
.pf2-bm-state.on {
  color: #8fe4ff; border-color: rgba(68, 204, 255, .5); background: rgba(20, 60, 110, .55);
  text-shadow: 0 0 8px rgba(68, 204, 255, .55);
}
.pf2-bm-rows { display: flex; flex-direction: column; gap: 8px; }
.pf2-bm-row {
  padding: 10px 12px; border-radius: 12px; text-align: left;
  background: rgba(16, 40, 80, .35); border: 1px solid rgba(68, 204, 255, .13);
}
.pf2-bm-k { display: block; margin-bottom: 4px; font-size: 10.5px; letter-spacing: .05em; color: rgba(160, 200, 235, .72); }
.pf2-bm-v { font-size: 12.5px; line-height: 1.8; color: #dbe8f6; word-break: break-word; }
.pf2-bm-foot { margin: 12px 0 11px; font-size: 10.5px; line-height: 1.7; color: rgba(180, 200, 224, .55); text-align: center; }
.pf2-bm-btn.btn-primary {
  width: 100%; border: 1px solid rgba(68, 204, 255, .55);
  background: linear-gradient(100deg, rgba(26, 66, 124, .95), rgba(16, 40, 84, .92));
  color: #f0f8ff; text-shadow: 0 0 10px rgba(68, 204, 255, .5);
  box-shadow: 0 0 18px rgba(68, 204, 255, .22), inset 0 1px 0 rgba(190, 235, 255, .12);
}
.pf2-bm-btn.btn-primary:hover:not(:disabled) {
  border-color: rgba(68, 204, 255, .85);
  box-shadow: 0 0 28px rgba(68, 204, 255, .38), inset 0 1px 0 rgba(190, 235, 255, .16);
}
@media (max-width: 560px) {
  .me-cosmic { padding: 82px 12px 40px; }
  .pf2-head { padding: 15px 13px 13px; }
  .pf2-cards { gap: 8px; }
  .pf2-card-sub { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .pf2-card, .pf2-item, .pf2-act, .pf2-id, .pf2-avatar { transition: none !important; }
  .pf2-badge, .pf2-bm-ring, .me-cosmic .pf-badge { animation: none !important; }
  .me-cosmic .pf-badge:hover, .me-cosmic .pf-badge:active { transform: none !important; }
}

/* 顶栏星空玻璃态：与页面背景融合（游客「我的」页专属） */
body.gm-mode .topbar {
  background: linear-gradient(180deg, rgba(9,22,44,.86), rgba(8,20,40,.56));
  border-bottom: 1px solid rgba(68,204,255,.16);
  backdrop-filter: blur(26px) saturate(1.35);
  box-shadow: 0 8px 26px rgba(3,8,20,.34);
}
body.gm-mode .topbar-brand .logo-hex { color: #6cd9ff; }
body.gm-mode .logo-text { color: #eaf6ff; }
body.gm-mode .topbar-search {
  background: linear-gradient(135deg, rgba(24,54,100,.5), rgba(12,28,58,.4));
  border-color: rgba(68,204,255,.24);
  color: rgba(190,216,240,.72);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(190,235,255,.08), 0 0 14px rgba(68,204,255,.08);
}
body.gm-mode .topbar-search:hover {
  border-color: rgba(68,204,255,.55); color: #d9eefb;
  box-shadow: 0 0 18px rgba(68,204,255,.22), inset 0 1px 0 rgba(190,235,255,.12);
}
body.gm-mode .topbar-ico {
  background: rgba(16,40,80,.4); border-color: rgba(68,204,255,.2); color: #b4c8e0;
  backdrop-filter: blur(10px);
}
body.gm-mode .topbar-ico:hover { border-color: rgba(68,204,255,.5); color: #8ce0ff; }

/* 低配置 / 无障碍：关闭全部动效 */
@media (prefers-reduced-motion: reduce) {
  .gm-nebula, .gm-star, .gm-halo, .gm-scene, .gm-cube, .gm-cta,
  .gm-chain, .gm-chain-run, .gm-cta::after, .ad-pane { animation: none !important; }
}

/* ============================================================
   v2.85.2 右侧身份抽屉（登录 / 注册双 Tab，主站）
   ============================================================ */
.auth-drawer-mask {
  position: fixed; inset: 0; z-index: 10010;
  background: rgba(3, 6, 14, .52);
  backdrop-filter: blur(3px) saturate(1.05);
  opacity: 0; transition: opacity .32s ease;
}
.auth-drawer-mask.in { opacity: 1; }
.auth-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 10011;
  width: min(400px, 94vw);
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #0c1326 0%, #08101f 100%);
  border-left: 1px solid rgba(68,204,255,.28);
  box-shadow: -26px 0 70px rgba(0, 0, 0, .55);
  transform: translateX(102%);
  transition: transform .32s cubic-bezier(.22, .8, .24, 1);
  overflow-y: auto;
}
.auth-drawer.in { transform: translateX(0); }
.ad-head {
  flex: none;
  padding: 22px 22px 14px; display: flex; align-items: flex-start; gap: 12px;
  border-bottom: 1px solid rgba(68,204,255,.14);
}
.ad-head .ad-tt { flex: 1; min-width: 0; }
.ad-head h3 { margin: 0; font-size: 17px; font-weight: 700; color: #f0f8ff; letter-spacing: .01em; }
.ad-head p { margin: 6px 0 0; font-size: 11.5px; line-height: 1.7; color: #b4c8e0; }
.ad-x {
  flex: none; width: 30px; height: 30px; border-radius: 9px; cursor: pointer;
  border: 1px solid rgba(68,204,255,.3); background: rgba(16,40,80,.4);
  color: #b4c8e0; font-size: 14px; line-height: 1;
}
.ad-x:hover { color: #6cd9ff; border-color: rgba(68,204,255,.6); }
.ad-tabs { flex: none; display: flex; gap: 8px; padding: 14px 22px 0; }
.ad-tab {
  flex: 1; height: 38px; border-radius: 12px; cursor: pointer; font-size: 13.5px; font-weight: 600;
  border: 1px solid rgba(68,204,255,.22); background: rgba(16,40,80,.35); color: #b4c8e0;
  transition: all .18s ease;
}
.ad-tab.on {
  color: #f0f8ff; border-color: rgba(68,204,255,.85); background: rgba(16,40,80,.6);
  box-shadow: 0 0 14px rgba(68,204,255,.3), inset 0 0 12px rgba(68,204,255,.12);
  text-shadow: 0 0 8px rgba(68,204,255,.6);
}
.ad-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding: 16px 22px 18px;
  -webkit-overflow-scrolling: touch;
}
/* Tab 切换：淡入 + 轻微上移，320ms 内与抽屉滑入同节奏 */
.ad-pane { animation: adPaneIn .26s ease both; }
@keyframes adPaneIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.ad-code-row { display: flex; gap: 8px; }
/* v2.93.4 注册页邀请码折叠入口（PRD：确认密码下方、创建身份按钮上方） */
.invite-entry { margin: 2px 0 4px; }
.invite-link {
  display: block; width: 100%; text-align: center;
  padding: 4px 0; font-size: 10.5px; letter-spacing: .03em;
  color: var(--accent); opacity: .78; background: none; border: none; cursor: pointer;
}
.invite-row { display: flex; gap: 8px; margin-top: 4px; animation: invite-fade .22s ease; }
.invite-row.hidden, .invite-link.hidden { display: none; }
.invite-row input {
  flex: 1; min-width: 0; padding: 10px 14px; border-radius: 10px; font-size: 12.5px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text); outline: none;
}
.invite-row input:focus { border-color: var(--accent-line); }
.invite-fold {
  flex: none; padding: 0 10px; font-size: 11px; color: var(--text-3);
  background: none; border: none; cursor: pointer;
}
.invite-err { font-size: 11px; color: var(--danger); margin-top: 5px; }
.invite-err.hidden { display: none; }
@keyframes invite-fade { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.ad-send { white-space: nowrap; }
.ad-submit { width: 100%; margin-top: 8px; }
/* 抽屉内主按钮与忘记密码：统一冰蓝霓虹（替代全局粉红主按钮色） */
.auth-drawer .btn-primary {
  border: 1px solid rgba(68, 204, 255, .55);
  background: linear-gradient(100deg, rgba(26, 66, 124, .95), rgba(16, 40, 84, .92));
  color: #f0f8ff;
  text-shadow: 0 0 10px rgba(68, 204, 255, .5);
  box-shadow: 0 0 18px rgba(68, 204, 255, .22), inset 0 1px 0 rgba(190, 235, 255, .12);
}
.auth-drawer .btn-primary:hover:not(:disabled) {
  border-color: rgba(68, 204, 255, .85);
  box-shadow: 0 0 28px rgba(68, 204, 255, .38), inset 0 1px 0 rgba(190, 235, 255, .16);
}
.auth-drawer .forgot-link { color: rgba(160, 214, 255, .85); }
.auth-drawer .forgot-link:hover { color: #9fe6ff; }

/* 底部协议小字：始终贴在抽屉最底部，不随表单滚动 */
.ad-legal {
  flex: none;
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(68, 204, 255, .12);
  background: rgba(6, 14, 28, .6);
  font-size: 10.5px; line-height: 1.75; text-align: center;
  color: rgba(180, 200, 224, .58);
}
.ad-legal-link {
  border: 0; background: none; padding: 0 1px; margin: 0;
  font: inherit; color: rgba(160, 214, 255, .84); cursor: pointer;
}
.ad-legal-link:hover { color: #9fe6ff; text-decoration: underline; }
.ad-reg-ico {
  width: 52px; height: 52px; margin: 14px auto 0; border-radius: 14px;
  display: grid; place-items: center; font-size: 24px; font-weight: 700; color: #e2f6ff;
  border: 1.5px solid rgba(68,204,255,.6); background: rgba(16,40,80,.45);
  text-shadow: 0 0 12px rgba(68,204,255,.9);
  box-shadow: 0 0 20px rgba(68,204,255,.25), inset 0 0 14px rgba(68,204,255,.16);
}
@media (max-width: 768px) {
  /* v3.11.23 修复：断点 560px 太小，大屏手机视口（~575px+）未命中，
     右侧抽屉宽度 min(400px,94vw) 贴右、左侧露背景，看起来整体偏移到右边。改全屏 */
  .auth-drawer { width: 100vw; border-left: 0; }
  .ad-head, .ad-tabs, .ad-body { padding-left: 18px; padding-right: 18px; }
  .gm-cta { width: 86%; min-width: 0; }
  .gm-perks { max-width: 100%; }
}

/* ============================================================
   v2.93.5 浅色主题（霜白 / 雪白）登录抽屉与登录弹窗适配
   背景：抽屉与弹窗底色此前写死深色，而浅色主题正文文字是深色
   （--text: #0F1D2E），叠加成「深底深字」——用户输入的手机号、
   密码肉眼不可见。此段把登录路径的容器翻成浅色玻璃质感。
   ============================================================ */
[data-theme="frost"] .auth-drawer-mask,
[data-theme="snow"] .auth-drawer-mask { background: rgba(15, 30, 50, .38); }
[data-theme="frost"] .auth-drawer,
[data-theme="snow"] .auth-drawer {
  background: linear-gradient(180deg, #FFFFFF 0%, #EFF5FC 100%);
  border-left: 1px solid rgba(46, 134, 216, .25);
  box-shadow: -26px 0 70px rgba(20, 40, 70, .18);
}
[data-theme="frost"] .ad-head,
[data-theme="snow"] .ad-head { border-bottom-color: rgba(46, 134, 216, .14); }
[data-theme="frost"] .ad-head h3,
[data-theme="snow"] .ad-head h3 { color: #16283E; text-shadow: none; }
[data-theme="frost"] .ad-head p,
[data-theme="snow"] .ad-head p { color: #5A6E86; }
[data-theme="frost"] .ad-x,
[data-theme="snow"] .ad-x {
  color: #4A607A; background: rgba(46, 134, 216, .06); border-color: rgba(46, 134, 216, .3);
}
[data-theme="frost"] .ad-x:hover,
[data-theme="snow"] .ad-x:hover { color: #1C6FBA; border-color: rgba(46, 134, 216, .6); }
[data-theme="frost"] .ad-tab,
[data-theme="snow"] .ad-tab {
  color: #53667C; background: rgba(46, 134, 216, .05); border-color: rgba(46, 134, 216, .18);
}
[data-theme="frost"] .ad-tab.on,
[data-theme="snow"] .ad-tab.on {
  color: #1C6FBA; background: #FFFFFF; border-color: rgba(46, 134, 216, .55);
  box-shadow: 0 1px 6px rgba(46, 134, 216, .18), inset 0 0 0 rgba(68,204,255,0);
  text-shadow: none;
}
/* 输入框：白底深字（此前 rgba(0,0,0,.38) 深底叠 --text 深字） */
[data-theme="frost"] .auth-drawer .field input,
[data-theme="frost"] .auth-drawer .field textarea,
[data-theme="frost"] .auth-drawer .field select,
[data-theme="frost"] .modal .field input,
[data-theme="frost"] .modal .field textarea,
[data-theme="frost"] .modal .field select,
[data-theme="snow"] .auth-drawer .field input,
[data-theme="snow"] .auth-drawer .field textarea,
[data-theme="snow"] .auth-drawer .field select,
[data-theme="snow"] .modal .field input,
[data-theme="snow"] .modal .field textarea,
[data-theme="snow"] .modal .field select {
  background: #FFFFFF;
  border-color: rgba(20, 60, 110, .18);
  box-shadow: inset 0 1px 2px rgba(20, 40, 70, .05);
  color: var(--text);
}
[data-theme="frost"] .auth-drawer .field input:focus,
[data-theme="frost"] .modal .field input:focus,
[data-theme="snow"] .auth-drawer .field input:focus,
[data-theme="snow"] .modal .field input:focus {
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(46, 134, 216, .12), inset 0 1px 2px rgba(20, 40, 70, .05);
}
[data-theme="frost"] .auth-drawer .forgot-link,
[data-theme="snow"] .auth-drawer .forgot-link { color: #2E86D8; }
[data-theme="frost"] .auth-drawer .forgot-link:hover,
[data-theme="snow"] .auth-drawer .forgot-link:hover { color: #1C6FBA; }
[data-theme="frost"] .pwd-eye:hover,
[data-theme="snow"] .pwd-eye:hover { background: rgba(46, 134, 216, .08); }
[data-theme="frost"] .ad-legal,
[data-theme="snow"] .ad-legal {
  background: rgba(46, 134, 216, .04);
  border-top: 1px solid rgba(46, 134, 216, .12);
  color: #7A8CA2;
}
[data-theme="frost"] .ad-legal-link,
[data-theme="snow"] .ad-legal-link { color: #2E86D8; }
[data-theme="frost"] .ad-reg-ico,
[data-theme="snow"] .ad-reg-ico {
  color: #1C6FBA; background: rgba(46, 134, 216, .06);
  border-color: rgba(46, 134, 216, .5);
  text-shadow: none;
  box-shadow: 0 0 14px rgba(46, 134, 216, .12), inset 0 0 10px rgba(46, 134, 216, .08);
}
/* 登录弹窗（电脑端 #btnLogin）底色：深色琉璃 → 浅色玻璃 */
[data-theme="frost"] .modal,
[data-theme="snow"] .modal { background: rgba(246, 250, 255, .9); }

/* v2.85.3 首页底部备案信息（可点击跳转 + 主体/补充文字） */
.home-foot-beian { margin-top: 16px; font-size: 10.5px; line-height: 1.9; color: var(--text-3, #8fa3bd); }
.hfb-row { display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; }
.hfb-link {
  color: var(--text-3, #8fa3bd); text-decoration: none;
  border-bottom: 1px dashed rgba(143, 163, 189, .4);
  padding-bottom: 1px;
  transition: color .15s ease;
}
.hfb-link:hover { color: var(--text-2, #b8c9de); }
.hfb-dot { opacity: .45; }
.hfb-line { margin-top: 2px; opacity: .8; }

/* ================= v2.86.0 公开用户主页：星空玻璃统一视觉 + 分享配套 ================= */
/* 页面底色：与【我的】页 / 登录抽屉同一套深色星空网格 + 冰蓝玻璃拟态规范 */
.profile-cosmic {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: calc(100vh - 56px); padding-bottom: 26px;
  background: radial-gradient(120% 90% at 50% -10%, #0d2148 0%, #081428 55%, #050c1c 100%);
}
.profile-cosmic > *:not(.pf-cbg) { position: relative; z-index: 1; }
.pf-cbg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.pf-cbg-grid {
  position: absolute; inset: -2%; opacity: .55;
  background-image:
    linear-gradient(rgba(68, 204, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 204, 255, .05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(80% 62% at 50% 0%, #000 0%, transparent 82%);
  mask-image: radial-gradient(80% 62% at 50% 0%, #000 0%, transparent 82%);
}
.pf-cbg-nebula {
  position: absolute; inset: 0;
  background:
    radial-gradient(58% 36% at 18% 8%, rgba(184, 120, 255, .11), transparent 62%),
    radial-gradient(50% 30% at 82% 26%, rgba(68, 204, 255, .10), transparent 62%),
    radial-gradient(46% 30% at 50% 100%, rgba(20, 50, 110, .35), transparent 70%);
}
.pf-cbg-star {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: rgba(214, 240, 255, .9); box-shadow: 0 0 5px rgba(68, 204, 255, .7);
  animation: pfStarTw 4.4s ease-in-out infinite;
}
@keyframes pfStarTw { 0%, 100% { opacity: .16; } 50% { opacity: .8; } }

/* hero 玻璃拟态：半透渐变星空底 + blur，覆盖原浅色卡片样式 */
.profile-cosmic .profile-hero {
  margin: 12px 16px 0; padding: 0 0 14px; overflow: hidden;
  background: linear-gradient(160deg, rgba(12, 22, 40, .66), rgba(16, 40, 80, .45));
  backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(68, 204, 255, .18); border-radius: 20px;
  box-shadow: 0 10px 30px rgba(3, 10, 24, .35), inset 0 1px 0 rgba(190, 235, 255, .08);
}
.profile-cosmic .profile-hero .pf-cover { margin: -1px -1px 0; border-radius: 20px 20px 0 0; }
.profile-cosmic .profile-info, .profile-cosmic .pf-info,
.profile-cosmic .profile-bio, .profile-cosmic .profile-name, .profile-cosmic .profile-handle-inline,
.profile-cosmic .profile-stats b { color: #f0f8ff; }
.profile-cosmic .profile-bio { color: #b4c8e0; }
.profile-cosmic .profile-stats span { color: #b4c8e0; }
.profile-cosmic .profile-stats > div { border-radius: 10px; transition: background .2s ease; }
.profile-cosmic .profile-stats > div:hover { background: rgba(16, 40, 80, .4); }
.profile-cosmic .btn-sm { border-color: rgba(68, 204, 255, .4); background: rgba(16, 40, 80, .5); color: #dff4ff; }
.profile-cosmic .pf-follow-gold { border-color: rgba(68, 204, 255, .6); background: linear-gradient(100deg, rgba(26, 66, 124, .95), rgba(16, 40, 84, .92)); color: #f0f8ff; text-shadow: 0 0 8px rgba(68, 204, 255, .45); }
.profile-cosmic .pf-tab.on { color: #8fe4ff; border-color: rgba(68, 204, 255, .55); }
.profile-cosmic .profile-name-row .pf2-badge { vertical-align: middle; }

/* 封面默认星空主视觉：π 线框立方体（低速自转）+ 呼吸轮廓光 + 链纹（禁止强光闪烁） */
.pf-cover-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.pf-cover-scene { position: absolute; left: 50%; top: 46%; margin: -59px 0 0 -59px; transform: scale(.62); }
.pf-cover-deco .gm-chain { bottom: -34px; }
.pf-cover-deco .gm-halo { top: 46%; }
/* 有自定义封面时仍保留网格肌理与存证标识的呼吸弱光 */
.profile-cosmic .pf-cover img { opacity: .92; }
.profile-cosmic .pf-cover-badge { animation: pfBadgeBreath 4.8s ease-in-out infinite; }
@keyframes pfBadgeBreath { 0%, 100% { box-shadow: 0 0 4px rgba(68, 204, 255, .12); } 50% { box-shadow: 0 0 12px rgba(68, 204, 255, .4); } }

/* 链地址 chip：可点击复制 */
.profile-cosmic .pf-addr { cursor: pointer; transition: border-color .2s, box-shadow .25s, transform .15s; }
.profile-cosmic .pf-addr:hover { border-color: rgba(68, 204, 255, .7); box-shadow: 0 0 12px rgba(68, 204, 255, .3); transform: translateY(-1px); }
.profile-cosmic .pf-addr:active { transform: scale(.97); }

/* 卡片化内容区：徽章墙 / 站点卡 / 系列等玻璃弱底 */
.profile-cosmic .pf-sitecard {
  display: flex; align-items: center; gap: 12px; width: calc(100% - 32px);
  margin: 12px 16px 0; padding: 13px 15px; cursor: pointer; text-align: left;
  background: linear-gradient(135deg, rgba(22, 50, 94, .46), rgba(11, 26, 54, .32));
  border: 1px solid rgba(68, 204, 255, .22); border-radius: 16px; backdrop-filter: blur(10px);
  transition: border-color .2s, box-shadow .25s, transform .15s;
}
.profile-cosmic .pf-sitecard:hover { border-color: rgba(68, 204, 255, .5); box-shadow: 0 0 18px rgba(48, 170, 255, .2); transform: translateY(-1px); }
.pf-site-logo {
  flex: none; width: 42px; height: 42px; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center; color: #9fe6ff;
  border: 1px solid rgba(68, 204, 255, .4); background: rgba(16, 40, 80, .55);
}
.pf-site-logo img { width: 100%; height: 100%; object-fit: cover; }
.pf-site-logo svg { width: 18px; height: 18px; }
.pf-site-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-site-tag { font-size: 9.5px; letter-spacing: .18em; color: rgba(160, 214, 255, .85); }
.pf-site-name { font-size: 13.5px; font-weight: 700; color: #f0f8ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-site-url { font-size: 10.5px; color: #b4c8e0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-site-go { flex: none; font-size: 11.5px; color: #8fe4ff; }

/* 分享弹窗 */
.pf-share { text-align: center; }
.pf-share-link {
  margin: 4px 0 12px; padding: 10px 12px; border-radius: 12px;
  background: rgba(16, 40, 80, .45); border: 1px solid rgba(68, 204, 255, .25);
  font-size: 13px; color: #dff4ff; word-break: break-all; text-align: center;
}
.pf-share-qr {
  display: block; width: 168px; height: 168px; margin: 14px auto 4px; border-radius: 14px;
  border: 1px solid rgba(68, 204, 255, .3); background: #fff; padding: 6px;
}
.pf-share-note { margin-top: 10px; font-size: 10.5px; line-height: 1.7; color: rgba(180, 200, 224, .6); }

/* 用户名行（编辑主页弹窗） */
.pf-un-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.pf-un-cur { font-size: 13.5px; color: var(--text); }
.pf-un-lock { font-size: 11px; color: rgba(180, 200, 224, .7); border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 999px; padding: 3px 10px; }

/* 主页暂不可见（违规主页后台开关） */
.pf-hidden-page { display: grid; place-items: center; padding: 90px 20px 60px; }
.pf-hidden-card {
  width: min(420px, 92%); text-align: center; padding: 34px 24px 26px;
  background: linear-gradient(160deg, rgba(12, 22, 40, .7), rgba(16, 40, 80, .5));
  backdrop-filter: blur(12px); border: 1px solid rgba(68, 204, 255, .2); border-radius: 20px;
  box-shadow: 0 10px 30px rgba(3, 10, 24, .35);
}
.pf-hidden-ico { font-size: 30px; color: #8fe4ff; text-shadow: 0 0 14px rgba(68, 204, 255, .7); margin-bottom: 10px; }
.pf-hidden-title { font-size: 16.5px; font-weight: 700; color: #f0f8ff; letter-spacing: .05em; margin-bottom: 8px; }
.pf-hidden-sub { font-size: 12px; line-height: 1.8; color: #b4c8e0; margin-bottom: 16px; }

/* 已存证徽标（卡片右上角，与置顶徽标同族、冰蓝描边） */
.pin-badge.attest {
  color: #8fe4ff;
  border-color: rgba(68, 204, 255, .55);
  background: rgba(16, 40, 80, .6);
  text-shadow: 0 0 6px rgba(68, 204, 255, .5);
}

/* 动效收敛：遵循 prefers-reduced-motion（禁止爆闪/强动态） */
@media (prefers-reduced-motion: reduce) {
  .pf-cbg-star, .pf-cover-badge, .pf-cover-deco .gm-cube,
  .pf-cover-deco .gm-halo, .pf-cover-deco .gm-chain, .pf-cover-scene { animation: none !important; }
}
/* 分享弹窗主按钮：星空页内统一冰蓝（与登录抽屉 / 我的页同款） */
.pf-share .btn-primary {
  border: 1px solid rgba(68, 204, 255, .55);
  background: linear-gradient(100deg, rgba(26, 66, 124, .95), rgba(16, 40, 84, .92));
  color: #f0f8ff;
  text-shadow: 0 0 10px rgba(68, 204, 255, .5);
  box-shadow: 0 0 18px rgba(68, 204, 255, .22), inset 0 1px 0 rgba(190, 235, 255, .12);
}
.pf-share .btn-primary:hover:not(:disabled) {
  border-color: rgba(68, 204, 255, .85);
  box-shadow: 0 0 28px rgba(68, 204, 255, .38), inset 0 1px 0 rgba(190, 235, 255, .16);
}

/* v2.86.1 主页不存在空态：双按钮并排（回首页 / 逛广场），复用「主页暂不可见」玻璃卡 */
.pf-miss-acts { display: flex; gap: 10px; }
.pf-miss-acts .pf-hidden-back { flex: 1; }
.profile-cosmic .pf-hidden-back {
  border: 1px solid rgba(68, 204, 255, .4);
  background: rgba(16, 40, 80, .5);
  color: #dff4ff;
  transition: border-color .2s, box-shadow .25s, transform .15s;
}
.profile-cosmic .pf-hidden-back:hover {
  border-color: rgba(68, 204, 255, .75);
  box-shadow: 0 0 16px rgba(68, 204, 255, .25);
  transform: translateY(-1px);
}

/* v2.86.2 弹窗层叠自适应：从登录抽屉（z-index 10010+）内打开的弹窗临时抬到抽屉之上，
   否则协议全文 / 找回密码等被压在抽屉下面，看起来「点了没反应」（openModal 自动加/减） */
.modal.z-top { z-index: 10030; }

/* v2.86.3 「我的」页下方区块与成就徽章卡左右边缘对齐：
   .me-cosmic 容器已带 16px 内边距，徽章卡 margin 0 贴边；签到卡 / 菜单列表 /
   通知引导条 / 流量联盟分组各自残留 16–20px margin，叠加后比徽章卡窄一截，统一归零 */
.me-cosmic .checkin-card { margin-left: 0; margin-right: 0; }
.me-cosmic .menu { margin-left: 0; margin-right: 0; }
.me-cosmic .notif-entry { margin-left: 0; margin-right: 0; width: 100%; }
.me-cosmic .menu-group-title { padding-left: 2px; padding-right: 2px; }
.me-cosmic .menu-grid { padding-left: 0; padding-right: 0; }
.me-cosmic .section-head { padding-left: 2px; padding-right: 2px; }
.me-cosmic .coll-mine-bar { padding-left: 0; padding-right: 0; }

/* v2.86.4 「我的专栏合集」空态紧凑化：一行小字（替代通用大图标空态，节省整屏高度） */
.coll-mine-empty {
  padding: 10px 2px 2px; font-size: 11.5px; line-height: 1.7;
  color: rgba(180, 200, 224, .55); text-align: left;
}

/* v2.88.0 首页装修：自定义内容区（UBB 区块，复用 home-sec 间距体系） */
.home-custom-wrap { display: flex; flex-direction: column; }
.home-custom { scroll-margin-top: 70px; }
.home-custom .ubb-b { font-weight: 700; color: var(--text); }

/* v2.88.1 合集弹窗可见性开关：文字占满左侧、滑块固定右侧 */
.switch-row .switch-row-txt { flex: 1; min-width: 0; }

/* v2.89.0 主页隐式邀请：本人视角柔和提示小字 */
.pf-invite-tip {
  margin: 10px 16px 0; padding: 8px 12px; border-radius: 10px;
  font-size: 11px; line-height: 1.6; color: var(--text-3);
  background: var(--accent-soft, rgba(111, 184, 245, .08));
  border: 1px dashed var(--accent-line, rgba(111, 184, 245, .3));
}

/* ==================== v2.90.0 可信网络（可信会话 / 我的连接 / 协作社群） ====================
 * 深空低饱和科技风：低饱和蓝紫渐变强调、弱发光轮廓；无频闪霓虹、无弹跳动效。 */
.tn-view { padding-bottom: 12px; }
.tn-tabs {
  display: flex; gap: 6px; margin: 10px 16px 6px; padding: 4px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
}
.tn-tab {
  flex: 1; padding: 8px 0; font-size: 12.5px; font-weight: 600; color: var(--text-2);
  background: transparent; border: 0; border-radius: 9px; transition: color .18s ease, background .18s ease;
}
.tn-tab.on {
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent) 0%, #8F9FF5 100%);
  box-shadow: 0 0 12px rgba(111, 184, 245, .22);
}
.tn-body { padding: 4px 0 0; }
.tn-sub { margin: 10px 16px 6px; font-size: 11px; color: var(--text-3); }
.tn-note { margin: 8px 16px; font-size: 10.5px; color: var(--text-3); line-height: 1.6; }
/* 柔和脉冲在线光圈：不使用闪烁绿点 */
.tn-online-wrap { position: relative; display: inline-flex; flex: none; }
.tn-pulse { display: none; }
.tn-pulse.on {
  display: block; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px;
  border-radius: 50%; background: #57C79A;
  box-shadow: 0 0 0 3px rgba(87, 199, 154, .18);
  animation: tnPulse 2.6s ease-out infinite;
}
@keyframes tnPulse {
  0% { box-shadow: 0 0 0 0 rgba(87, 199, 154, .30); }
  70% { box-shadow: 0 0 0 7px rgba(87, 199, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(87, 199, 154, 0); }
}
.tn-online-txt { flex: none; font-size: 10px; color: #57C79A; }
.tn-conn { text-align: left; }
.tn-latest { font-size: 10.5px; color: var(--text-3); margin-top: 3px; }
.tn-req { display: flex; align-items: center; gap: 10px; margin: 0 16px 8px; padding: 10px 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.tn-req-acts { display: flex; gap: 7px; flex: none; }
.tn-followrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 16px; }
.tn-followchip { width: 38px; height: 38px; padding: 0; border-radius: 50%; overflow: hidden; border: 1px solid var(--line); background: transparent; }
.tn-followchip .avatar { width: 100%; height: 100%; }
/* 消息气泡扩展 */
.bubble { animation: tnMsgIn .22s ease both; }
@keyframes tnMsgIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.msg-work-card {
  margin-top: 4px; min-width: 180px; max-width: 240px; padding: 9px 10px; border-radius: 10px;
  background: rgba(111, 140, 245, .07); border: 1px solid var(--line-2); cursor: pointer;
}
.msg-work-card.locked { opacity: .72; cursor: not-allowed; }
.mwc-coverbox { margin: -3px -4px 7px; border-radius: 8px; overflow: hidden; }
.mwc-cover { display: block; width: 100%; height: 86px; object-fit: cover; }
.mwc-mini { width: 46px; height: 46px; flex: none; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--panel-2); }
.mwc-title { font-size: 12.5px; font-weight: 650; }
.mwc-hash { font-size: 9.5px; color: var(--text-3); margin: 3px 0 6px; font-family: var(--mono, monospace); }
.mwc-act { display: flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--accent); }
.mwc-act.dim { color: var(--text-3); }
.msg-link-chip {
  margin-top: 5px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px;
  font-size: 11px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line);
}
.msg-link-chip.link { cursor: pointer; }
.msg-link-chip.risk { color: #F0A15A; border-color: rgba(240, 161, 90, .35); background: rgba(240, 161, 90, .08); }
.bubble-burn, .bubble-attest {
  display: inline-flex; align-items: center; gap: 3px; margin-top: 5px; font-size: 9.5px; color: var(--text-3);
}
.bubble-attest { color: var(--accent); }
.bubble-acts { display: flex; gap: 6px; margin-top: 4px; }
.bubble-act { padding: 1px 8px; font-size: 9.5px; color: var(--text-2); background: transparent; border: 1px solid var(--line); border-radius: 20px; }
.tn-attest-all { color: var(--accent); }
/* 会话受限条 */
.chat-lock { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 16px 0;
  font-size: 11px; color: var(--text-3); }
.chat-lock.hidden { display: none; }
/* 悬浮入口：极简节点连线（Nexus 节点意象） */
.tn-fab {
  position: absolute; right: 14px; bottom: 160px; z-index: 62;
  /* v3.11.27 默认位置从 92px 上移到 160px：让开工时模块常驻底部导航条，
     避免悬浮球压住「我的资产」按钮（已拖拽过的设备沿用个人保存位置，不受影响） */
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--accent-line);
  background: linear-gradient(160deg, rgba(111, 184, 245, .14), rgba(143, 159, 245, .10));
  backdrop-filter: blur(8px); color: var(--accent); cursor: pointer;
  box-shadow: 0 4px 16px rgba(5, 10, 24, .45), 0 0 10px rgba(111, 184, 245, .18);
  display: grid; place-items: center; transition: transform .18s ease;
  touch-action: none; /* v2.93.1 可拖拽：阻止触摸滚动劫持 pointer 序列 */
}
.tn-fab.dragging { transition: none; transform: scale(1.08); box-shadow: 0 8px 24px rgba(5, 10, 24, .6), 0 0 14px rgba(111, 184, 245, .3); }
.tn-fab:active { transform: scale(.94); }
.tn-fab svg { width: 22px; height: 22px; }
.tn-fab.hidden { display: none; }
.tn-fab-badge {
  position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: #F0647E; color: #fff; font-size: 9.5px; font-weight: 700;
  display: grid; place-items: center;
}
.tn-fab-badge.hidden { display: none; }
/* v2.93.3 可信网络「发起」大按钮：替代原小号 head-aside 按钮，易点中 */
.tn-launch {
  display: block; width: calc(100% - 24px); margin: 2px 12px 10px;
  padding: 12px 16px; border-radius: 14px; border: 1px solid transparent;
  background: var(--accent); color: var(--accent-ink);
  font-size: 14.5px; font-weight: 600; letter-spacing: .04em;
  box-shadow: 0 6px 20px var(--accent-soft); cursor: pointer; transition: .18s;
}
.tn-launch:active { transform: scale(.98); filter: brightness(1.06); }

/* 协作社群 */
.tn-landing { margin: 0 16px; padding: 16px; border-radius: 14px; text-align: center;
  background: var(--panel); border: 1px solid var(--line); }
.tn-landing-page { padding-top: 30px; }
.tn-landing-ico { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 10px;
  border-radius: 16px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.tn-announce { margin: 8px 16px 0; padding: 10px 12px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(111, 140, 245, .07), rgba(143, 159, 245, .04));
  border: 1px solid var(--line-2); }
.tn-announce-head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--accent); }
.tn-announce-body { margin-top: 6px; font-size: 12px; color: var(--text-2); line-height: 1.6; white-space: pre-wrap; }
.tn-attested { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; font-size: 10px; color: var(--accent); }
.tn-pending-tip { display: block; width: calc(100% - 32px); margin: 8px 16px 0; padding: 9px 12px;
  font-size: 11.5px; text-align: left; color: var(--accent); border-radius: 10px;
  background: var(--accent-soft); border: 1px dashed var(--accent-line); cursor: pointer; }
.tn-mem-acts { display: flex; gap: 5px; flex: none; }
.mod-row.on { border-color: var(--accent-line); background: var(--accent-soft); }
.tn-info-nav { display: flex; gap: 6px; margin-bottom: 10px; }
.tn-info-tab { flex: 1; padding: 7px 0; font-size: 12px; color: var(--text-2); background: transparent; border: 1px solid var(--line); border-radius: 9px; }
.tn-info-tab.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

/* ==================== v2.91.0 大众互动 ==================== */
/* 收藏夹筛选条（我的收藏页） */
.fav-folders { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.fav-folders::-webkit-scrollbar { display: none; }
.fav-chip {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; font-size: 12px; cursor: pointer;
  color: var(--text-2); background: var(--bg-1); border: 1px solid var(--hair); white-space: nowrap;
  transition: all .2s ease;
}
.fav-chip:hover { border-color: var(--accent); color: var(--text); }
.fav-chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.fav-chip-manage { margin-left: auto; color: var(--text-3); }

/* 收藏夹选择器 / 管理弹窗 */
.favpick-list, .favm-list { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow-y: auto; margin-top: 6px; }
.favpick-row {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 12px;
  background: var(--bg-1); border: 1px solid var(--hair); cursor: pointer; font-size: 13px;
}
.favpick-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
.favpick-name { flex: 1; color: var(--text); }
.favpick-count { color: var(--text-3); font-weight: 500; font-size: 11.5px; }
.favpick-add { display: flex; gap: 8px; margin-top: 12px; }
.favm-row { display: flex; align-items: center; gap: 8px; }
.favm-row > input { flex: 1; min-width: 0; }
.favm-count { font-size: 11px; color: var(--text-3); white-space: nowrap; }

/* 评论点赞 / 回复 / 楼中楼缩进 */
.cmt-acts { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.cmt-like {
  display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none;
  color: var(--text-3); font-size: 11.5px; cursor: pointer;
}
.cmt-like svg { width: 13px; height: 13px; }
.cmt-like.on { color: #ff6b8a; }
.comment-reply { margin-left: 34px; padding-left: 12px; border-left: 1px solid var(--hair); }
.comment-reply .comment-name { font-size: 12px; }

/* ==================== v2.91.1 浅色主题「我的」页统一 ==================== */
/* 星空玻璃（gm-mode）是深空暗色设计；frost 浅色主题下顶栏深、内容浅上下割裂。
   登录态「我的」页（body.gm-light）整体转浅色：顶栏/搜索/图标白霜玻璃，星空底换浅蓝渐变。
   游客登录引导页（guest-mine）保持深空星空设计不变。 */
body.gm-light.gm-mode .topbar {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(20, 45, 80, .08);
}
body.gm-light.gm-mode .logo-text { color: var(--text); }
body.gm-light.gm-mode .topbar-brand .logo-hex { color: var(--accent); }
body.gm-light.gm-mode .topbar-search {
  background: rgba(20, 60, 110, .05); border-color: var(--line-2); color: var(--text-2);
  box-shadow: none;
}
body.gm-light.gm-mode .topbar-ico {
  background: rgba(20, 60, 110, .05); border-color: var(--line-2); color: var(--text-2);
  backdrop-filter: none;
}
body.gm-light.gm-mode .topbar-ico:hover { border-color: var(--accent-line); color: var(--accent); }
[data-theme="frost"] .me-cosmic {
  background: linear-gradient(180deg, #E8F1FB 0%, #F2F7FD 58%, #F2F7FD 100%);
}
[data-theme="frost"] .pf2-head {
  background: var(--glass-bg);
  border-color: var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 8px 26px rgba(20, 45, 80, .08);
}
[data-theme="frost"] .gm-star { opacity: .22; }
[data-theme="frost"] .gm-nebula { opacity: .35; }

/* ================================================================
   Web3 存证相册（v2.92.0）
   深空基底 + 冰蓝/浅紫霓虹 + 玻璃拟态；全部复用现有 CSS 变量，
   浅色主题（frost）只降饱和、降光晕，不另起一套色值。
   ================================================================ */
.al-page { padding: 16px 16px 96px; }
.al-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.al-back {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px;
  display: grid; place-items: center; color: var(--text-2);
  background: var(--panel); border: 1px solid var(--line);
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}
.al-back:hover { color: var(--accent); border-color: var(--accent-line); transform: translateX(-2px); }
.al-back svg { width: 17px; height: 17px; }
.al-head-tx { flex: 1; min-width: 0; }
.al-title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: .01em; color: var(--text); }
.al-sub { margin: 4px 0 0; font-size: 12px; color: var(--text-3); line-height: 1.5; }
.al-head-acts { flex: 0 0 auto; }
.al-new-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 15px; border-radius: 11px; font-size: 12.5px; font-weight: 600;
  color: #06131F; border: 1px solid transparent;
  background: linear-gradient(135deg, #8FD0FF 0%, #A9C2FF 52%, #C3B4FF 100%);
  box-shadow: 0 6px 20px rgba(111, 184, 245, .22);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.al-new-btn:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 10px 30px rgba(120, 170, 255, .34); filter: saturate(1.08); }
.al-new-btn svg { width: 15px; height: 15px; }

/* 数据总览 */
.al-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px;
  margin-bottom: 12px;
}
.al-stat {
  position: relative; overflow: hidden;
  padding: 12px 12px 10px; border-radius: 14px;
  background: var(--glass-bg); border: 1px solid var(--glass-line);
  backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: inset 0 1px 0 var(--glass-hi);
  display: flex; flex-direction: column; gap: 2px;
}
.al-stat b { font-size: 19px; font-weight: 650; color: var(--text); letter-spacing: .01em; }
.al-stat-l { font-size: 11.5px; color: var(--text-2); }
.al-stat-s { font-size: 10px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-quota { grid-column: 1 / -1; font-size: 11px; color: var(--text-3); padding: 0 2px; }

/* 工具条 */
.al-tools { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; flex-wrap: wrap; }
.al-search {
  flex: 1 1 220px; min-width: 180px; display: flex; align-items: center; gap: 7px;
  padding: 0 11px; height: 38px; border-radius: 11px;
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.al-search:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.al-search svg { width: 15px; height: 15px; color: var(--text-3); flex: 0 0 auto; }
.al-search-input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0;
  color: var(--text); font-size: 12.5px;
}
.al-search-input::placeholder { color: var(--text-3); }
.al-search-clear { width: 22px; height: 22px; display: grid; place-items: center; color: var(--text-3); border-radius: 6px; }
.al-search-clear:hover { color: var(--text); background: var(--panel-2); }
.al-search-clear svg { width: 12px; height: 12px; }
.al-sort { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.al-sort-btn { padding: 6px 11px; border-radius: 8px; font-size: 11.5px; color: var(--text-3); transition: all .18s ease; }
.al-sort-btn.on { color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
/* v3.11.1 提示行不再上提贴近卡片（原 -4px 视觉偏高） */
.al-drag-hint { font-size: 11px; color: var(--text-3); margin: 6px 0 10px 2px; }

/* 卡片网格 */
.al-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px;
}
.al-grid.is-empty { display: block; }
.al-card {
  position: relative; display: flex; flex-direction: column; text-align: left;
  border-radius: 16px; overflow: hidden;
  background: var(--glass-bg); border: 1px solid var(--glass-line);
  backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 6px 22px rgba(2, 8, 20, .28);
  transition: transform .22s cubic-bezier(.2, .7, .3, 1), box-shadow .22s ease, border-color .22s ease;
}
.al-card:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: inset 0 1px 0 var(--glass-hi), 0 16px 38px rgba(2, 8, 20, .46), 0 0 24px rgba(111, 184, 245, .12); }
.al-card.is-draggable { cursor: grab; }
.al-card.dragging { opacity: .45; }
.al-card.drag-over { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-line); }
.al-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.al-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .3, 1); display: block; }
.al-card:hover .al-cover img { transform: scale(1.05); }
.al-cover::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 10, 20, .46) 0%, rgba(4, 10, 20, 0) 42%, rgba(4, 10, 20, .18) 100%);
}
.al-cover.is-empty { display: grid; place-items: center; background: linear-gradient(135deg, rgba(40, 70, 110, .5), rgba(40, 30, 80, .4)); }
.al-cover-ph { color: rgba(190, 220, 255, .45); }
.al-cover-ph svg { width: 34px; height: 34px; }
.al-cover-top {
  position: absolute; top: 9px; left: 9px; right: 9px; z-index: 2;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.al-badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 21px; padding: 0 7px; border-radius: 7px;
  font-size: 10px; font-weight: 600; letter-spacing: .01em;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .14);
}
.al-badge svg { width: 11px; height: 11px; }
.al-badge-private { color: #E6EDF6; background: rgba(24, 32, 46, .78); }
.al-badge-link { color: #E4D9FF; background: rgba(104, 78, 168, .62); border-color: rgba(190, 165, 255, .3); }
.al-badge-public { color: #DDF3FF; background: rgba(46, 108, 168, .68); border-color: rgba(150, 215, 255, .34); }
.al-attested {
  display: inline-flex; align-items: center; height: 21px; padding: 0 7px;
  border-radius: 7px; font-size: 10px; font-weight: 600;
  color: #CFF6E4; background: rgba(36, 120, 92, .55);
  border: 1px solid rgba(120, 230, 190, .28);
}
.al-link-tip {
  position: absolute; right: 9px; bottom: 9px; z-index: 2;
  font-size: 10px; color: #E7DEFF; padding: 3px 7px; border-radius: 7px;
  background: rgba(70, 52, 120, .6); border: 1px solid rgba(180, 160, 255, .22);
}
.al-card-info { padding: 10px 12px 12px; }
.al-card-title {
  font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.al-card-meta { margin-top: 4px; display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-3); flex-wrap: wrap; }
.al-dot { opacity: .45; }

/* 移动端排序按钮 */
.al-card-move { position: absolute; right: 6px; bottom: 6px; z-index: 3; display: flex; flex-direction: column; gap: 3px; }
.al-card-mv {
  width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center;
  color: #D6E9FB; background: rgba(8, 18, 30, .62); border: 1px solid rgba(150, 200, 255, .22);
  opacity: .7; transition: opacity .18s ease, border-color .18s ease;
}
.al-card-mv:hover { opacity: 1; border-color: var(--accent-line); }
.al-card-mv svg { width: 10px; height: 10px; }
.al-card-mv.up svg { transform: rotate(180deg); }

/* 收藏的相册 */
.al-favbox { margin-top: 18px; }
.al-sec-title { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin: 0 2px 9px; }
.al-favrow { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.al-favcard {
  flex: 0 0 96px; display: flex; flex-direction: column; gap: 6px;
  padding: 7px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line);
  transition: border-color .18s ease, transform .18s ease;
}
.al-favcard:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.al-favcover { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; color: var(--text-3); }
.al-favcover img { width: 100%; height: 100%; object-fit: cover; }
.al-favcover svg { width: 22px; height: 22px; }
.al-favname { font-size: 10.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- 相册详情 ---------------- */
.al-detail { padding: 14px 16px 40px; }
.al-dtop { display: flex; gap: 10px; align-items: flex-start; }
.al-dtop-tx { flex: 1; min-width: 0; }
.al-dtitle-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.al-dtitle { margin: 0; font-size: 19px; font-weight: 650; color: var(--text); }
.al-dmeta { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 11.5px; color: var(--text-3); flex-wrap: wrap; }
.al-author { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); font-size: 11.5px; }
.al-author .avatar { width: 18px; height: 18px; font-size: 9px; }
.al-author:hover { color: var(--accent); }
.al-dsummary { margin: 10px 2px 0; font-size: 12.5px; line-height: 1.7; color: var(--text-soft); white-space: pre-wrap; }
.al-vistip {
  display: flex; align-items: center; gap: 7px; margin: 12px 0 4px;
  padding: 9px 12px; border-radius: 11px; font-size: 11.5px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text-2);
}
.al-vistip svg { width: 14px; height: 14px; flex: 0 0 auto; }
.al-vistip-private { color: #C9D2DE; }
.al-vistip-link { color: #DCCFFF; border-color: rgba(170, 150, 255, .22); background: rgba(110, 88, 180, .1); }
.al-vistip-public { color: #BFE4FF; border-color: var(--accent-line); background: var(--accent-soft); }

.al-dbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0 14px; }
.al-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 34px; padding: 0 12px; border-radius: 10px; font-size: 12px;
  color: var(--text-2); background: var(--panel); border: 1px solid var(--line);
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
.al-btn:hover { color: var(--text); border-color: var(--accent-line); background: var(--panel-2); transform: translateY(-1px); }
.al-btn svg { width: 14px; height: 14px; }
.al-btn.on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.al-btn-main {
  color: #06131F; border-color: transparent;
  background: linear-gradient(135deg, #8FD0FF, #B9C8FF); font-weight: 600;
  box-shadow: 0 4px 16px rgba(111, 184, 245, .2);
}
.al-btn-main:hover { color: #06131F; filter: saturate(1.06); }
.al-btn-danger { color: var(--danger); border-color: rgba(240, 113, 127, .22); }
.al-btn-danger:hover { color: #fff; background: rgba(240, 113, 127, .22); border-color: rgba(240, 113, 127, .45); }
.al-btn-ghost { background: transparent; }
.al-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* 批量条 */
.al-batchbar {
  position: sticky; top: 0; z-index: 6;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 12px; padding: 9px 11px; border-radius: 12px;
  background: var(--glass-bg-2); border: 1px solid var(--accent-line);
  backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 8px 26px rgba(2, 8, 20, .35);
}
.al-batchn { font-size: 12px; color: var(--accent); font-weight: 600; margin-right: 2px; }
.al-bbtn { height: 29px; padding: 0 10px; border-radius: 8px; font-size: 11.5px; color: var(--text-2); background: var(--panel); border: 1px solid var(--line); }
.al-bbtn:hover { color: var(--text); border-color: var(--accent-line); }
.al-bbtn-danger { color: var(--danger); border-color: rgba(240, 113, 127, .2); }
.al-bbtn-ghost { background: transparent; }

/* 图片网格 */
.al-img-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.al-img-grid.is-empty { display: block; }
.al-cell {
  position: relative; aspect-ratio: 1; border-radius: 11px; overflow: hidden;
  background: var(--bg-2); border: 1.5px solid transparent;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.al-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.al-cell:hover { transform: translateY(-2px); border-color: var(--accent-line); box-shadow: 0 8px 20px rgba(2, 8, 20, .4); }
.al-cell.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft), 0 0 18px rgba(111, 184, 245, .22); }
.al-cell.broken { display: grid; place-items: center; }
.al-cell-ph { color: var(--text-3); }
.al-hash-badge {
  position: absolute; right: 6px; bottom: 6px; z-index: 2;
  width: 19px; height: 19px; border-radius: 6px; display: grid; place-items: center;
  color: #BDE9FF; background: rgba(10, 30, 50, .72);
  border: 1px solid rgba(140, 210, 255, .35);
}
.al-hash-badge svg { width: 11px; height: 11px; }
.al-check {
  position: absolute; left: 6px; top: 6px; z-index: 3;
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .6); background: rgba(6, 16, 28, .45);
  display: grid; place-items: center; color: #06131F;
}
.al-cell.on .al-check { background: var(--accent); border-color: var(--accent); }
.al-check svg { width: 12px; height: 12px; }
.al-nodl {
  position: absolute; left: 6px; bottom: 6px; z-index: 2;
  font-size: 9.5px; padding: 2px 5px; border-radius: 5px;
  color: #FFD9DE; background: rgba(70, 18, 26, .6); border: 1px solid rgba(240, 113, 127, .25);
}

/* ---------------- 抽屉 ---------------- */
.al-drawer-mask {
  position: fixed; inset: 0; z-index: 10020;
  background: rgba(3, 8, 16, .58); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .24s ease;
}
.al-drawer-mask.on { opacity: 1; }
.al-drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw);
  display: flex; flex-direction: column;
  background: var(--glass-bg-2); border-left: 1px solid var(--glass-line);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  box-shadow: -24px 0 60px rgba(2, 8, 20, .5);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .75, .3, 1);
  overflow: hidden;
}
.al-drawer-mask.on .al-drawer { transform: translateX(0); }
.al-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 12px; border-bottom: 1px solid var(--line);
}
.al-drawer-title { margin: 0; font-size: 16px; font-weight: 650; color: var(--text); }
.al-drawer-x { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--text-3); }
.al-drawer-x:hover { color: var(--text); background: var(--panel-2); }
.al-drawer-x svg { width: 14px; height: 14px; }
.al-drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px 20px; }
.al-drawer-foot {
  display: flex; gap: 10px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.al-drawer-foot .al-btn { flex: 1; justify-content: center; height: 40px; border-radius: 11px; font-size: 13px; }
.al-field { display: block; margin-bottom: 16px; }
.al-field-label { display: block; font-size: 11.5px; color: var(--text-2); margin-bottom: 7px; font-weight: 600; letter-spacing: .01em; }
.al-input {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  font-size: 13px; outline: 0; transition: border-color .18s ease, box-shadow .18s ease;
}
.al-input::placeholder { color: var(--text-3); }
.al-input:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.al-textarea { resize: vertical; min-height: 74px; line-height: 1.6; }
.al-cover-pick {
  position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 13px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--text-3); background: var(--panel);
  border: 1.5px dashed var(--accent-line);
  box-shadow: inset 0 0 24px rgba(111, 184, 245, .06);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.al-cover-pick:hover { border-color: var(--accent); box-shadow: inset 0 0 32px rgba(111, 184, 245, .12); }
.al-cover-pick svg { width: 26px; height: 26px; }
.al-cover-pick.has-img { border-style: solid; border-color: var(--glass-line); }
.al-cover-pick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.al-cover-pick-tx {
  position: relative; z-index: 2; font-size: 11.5px;
}
.al-cover-pick.has-img .al-cover-pick-tx {
  color: #EAF4FF; padding: 4px 10px; border-radius: 7px; background: rgba(4, 10, 20, .55);
}
.al-cover-pick.uploading { opacity: .6; pointer-events: none; }
.al-vis-opts { display: grid; gap: 8px; }
.al-vis-opt {
  display: flex; align-items: flex-start; gap: 9px; text-align: left;
  padding: 11px 12px; border-radius: 11px;
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.al-vis-opt:hover { border-color: var(--accent-line); }
.al-vis-opt.on { border-color: var(--accent-line); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.al-radio {
  flex: 0 0 auto; width: 15px; height: 15px; margin-top: 2px; border-radius: 50%;
  border: 1.5px solid var(--line-2); position: relative;
  transition: border-color .18s ease;
}
.al-vis-opt.on .al-radio, .al-att-opt.on .al-radio { border-color: var(--accent); }
.al-vis-opt.on .al-radio::after, .al-att-opt.on .al-radio::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px rgba(111, 184, 245, .8);
}
.al-vis-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.al-vis-tx b { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text); font-weight: 600; }
.al-vis-tx b svg { width: 13px; height: 13px; }
.al-vis-tx i { font-style: normal; font-size: 10.5px; color: var(--text-3); }

/* ---------------- 上传弹窗 ---------------- */
.al-upload { padding: 2px 0; }
.al-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 22px 14px; border-radius: 14px; cursor: pointer;
  color: var(--text-3); background: var(--panel);
  border: 1.5px dashed var(--accent-line);
  box-shadow: inset 0 0 26px rgba(111, 184, 245, .05);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.al-drop:hover, .al-drop.drag { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 34px rgba(111, 184, 245, .14); }
.al-drop svg { width: 26px; height: 26px; color: var(--accent); opacity: .8; }
.al-drop-t { font-size: 12.5px; color: var(--text-2); }
.al-drop-s { font-size: 10.5px; color: var(--text-3); }
.al-pre { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.al-pre-item { position: relative; width: 62px; height: 62px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); }
.al-pre-item img { width: 100%; height: 100%; object-fit: cover; }
.al-pre-x {
  position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(6, 12, 20, .7);
}
.al-pre-x svg { width: 9px; height: 9px; }
.al-pre-add {
  width: 62px; height: 62px; border-radius: 9px; display: grid; place-items: center;
  color: var(--text-3); border: 1px dashed var(--line-2); background: var(--panel);
}
.al-pre-add:hover { color: var(--accent); border-color: var(--accent-line); }
.al-pre-add svg { width: 16px; height: 16px; }
.al-att-opts { display: grid; gap: 7px; }
.al-att-opt {
  display: flex; align-items: flex-start; gap: 9px; text-align: left;
  padding: 10px 12px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color .18s ease, background .18s ease;
}
.al-att-opt.on { border-color: var(--accent-line); background: var(--accent-soft); }
.al-att-tx { display: flex; flex-direction: column; gap: 2px; }
.al-att-tx b { font-size: 12.5px; color: var(--text); font-weight: 600; }
.al-att-tx i { font-style: normal; font-size: 10.5px; color: var(--text-3); }
.al-costline { margin-top: 10px; font-size: 11.5px; color: var(--text-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.al-cost-total { color: var(--accent); font-weight: 600; }
.al-storetip { margin: 8px 0 0; font-size: 10.5px; line-height: 1.6; color: var(--text-3); }
.al-prog { margin-top: 12px; }
.al-prog-bar {
  height: 3px; width: 0; border-radius: 2px;
  background: linear-gradient(90deg, #7CC7FF, #B7A6FF, #7CC7FF);
  background-size: 220% 100%; animation: alFlow 1.6s linear infinite;
  box-shadow: 0 0 10px rgba(111, 184, 245, .6);
  transition: width .25s ease;
}
@keyframes alFlow { 0% { background-position: 0 0; } 100% { background-position: 220% 0; } }
.al-prog-tx { display: block; margin-top: 6px; font-size: 10.5px; color: var(--text-3); }
.al-up-foot { display: flex; gap: 10px; margin-top: 16px; }
.al-up-foot .al-btn { flex: 1; justify-content: center; height: 38px; }

/* ---------------- 大图预览 ---------------- */
.al-lb {
  position: fixed; inset: 0; z-index: 10030;
  display: grid; grid-template-columns: 1fr 340px; grid-template-rows: 52px 1fr;
  background: rgba(3, 7, 14, .92); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .22s ease;
}
.al-lb.on { opacity: 1; }
body.al-lb-open { overflow: hidden; }
.al-lb-bar {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 12px;
  padding: 0 18px; border-bottom: 1px solid rgba(150, 200, 255, .1);
}
.al-lb-name { font-size: 13px; color: #DCEBFF; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-lb-count { margin-left: auto; font-size: 11.5px; color: rgba(190, 215, 240, .6); font-variant-numeric: tabular-nums; }
.al-lb-x { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #B9CFE6; }
.al-lb-x:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.al-lb-x svg { width: 14px; height: 14px; }
.al-lb-stage { position: relative; display: grid; place-items: center; padding: 22px; min-width: 0; overflow: hidden; }
.al-lb-img { max-width: 100%; max-height: calc(100vh - 100px); object-fit: contain; border-radius: 6px; box-shadow: 0 20px 70px rgba(0, 0, 0, .6); user-select: none; -webkit-user-select: none; }
.al-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: rgba(220, 238, 255, .35);
  background: rgba(10, 20, 34, .5); border: 1px solid rgba(150, 200, 255, .12);
  opacity: .35; transition: opacity .18s ease, color .18s ease;
}
.al-lb-stage:hover .al-lb-nav { opacity: 1; }
.al-lb-nav:hover { color: #fff; background: rgba(30, 60, 96, .7); }
.al-lb-nav.prev { left: 14px; }
.al-lb-nav.next { right: 14px; }
.al-lb-nav.next svg { transform: rotate(180deg); }
.al-lb-nav svg { width: 18px; height: 18px; }
.al-lb-panel {
  border-left: 1px solid rgba(150, 200, 255, .12);
  background: rgba(10, 18, 30, .78); backdrop-filter: blur(18px);
  padding: 18px 16px calc(20px + env(safe-area-inset-bottom)); overflow-y: auto;
}
.al-lb-panel-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.al-lb-title { font-size: 14px; color: #EAF3FF; font-weight: 600; word-break: break-all; }
.al-lb-time { font-size: 10.5px; color: rgba(170, 195, 220, .55); }
.al-lb-sec { padding: 11px 12px; border-radius: 11px; background: rgba(120, 180, 245, .06); border: 1px solid rgba(150, 200, 255, .12); margin-bottom: 12px; }
.al-lb-sec.attested { border-color: rgba(120, 230, 190, .24); background: rgba(40, 120, 95, .12); }
.al-lb-sec-t { font-size: 11.5px; font-weight: 600; color: #D8E9FA; margin-bottom: 6px; }
.al-lb-sec.attested .al-lb-sec-t { color: #9FEBC9; }
.al-lb-sec-s { font-size: 10.5px; color: rgba(170, 195, 220, .6); line-height: 1.6; }
.al-lb-hash { display: flex; align-items: center; gap: 6px; margin: 6px 0; }
.al-lb-hash code {
  flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px; color: #A9D6FF; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.al-lb-cp { font-size: 10.5px; color: #8FC8FF; padding: 2px 7px; border-radius: 6px; border: 1px solid rgba(140, 200, 255, .25); }
.al-lb-kv { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; color: rgba(170, 195, 220, .6); margin-top: 5px; }
.al-lb-kv b { color: #CFE4F8; font-weight: 500; }
.al-lb-verify { width: 100%; justify-content: center; margin-top: 9px; height: 31px; font-size: 11.5px; }
.al-lb-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 2px; border-bottom: 1px solid rgba(150, 200, 255, .08); }
.al-lb-k { font-size: 12px; color: #C6DBEF; }
.al-lb-note { margin: 8px 0 0; font-size: 10.5px; line-height: 1.6; color: rgba(240, 180, 190, .7); }
.al-lb-acts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.al-lb-acts .al-btn { background: rgba(120, 180, 245, .08); border-color: rgba(150, 200, 255, .16); color: #C9DEF2; }
.al-lb-acts .al-btn-danger { color: #F09AA5; border-color: rgba(240, 113, 127, .22); }

/* 开关 */
.al-switch {
  width: 38px; height: 21px; border-radius: 11px; position: relative;
  background: rgba(140, 170, 200, .25); border: 1px solid rgba(150, 200, 255, .18);
  transition: background .2s ease, border-color .2s ease;
}
.al-switch::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px;
  border-radius: 50%; background: #E6F1FF; transition: transform .2s cubic-bezier(.2, .7, .3, 1);
}
.al-switch.on { background: rgba(111, 184, 245, .55); border-color: rgba(140, 210, 255, .5); }
.al-switch.on::after { transform: translateX(17px); background: #fff; }

/* ---------------- 互动区 ---------------- */
.al-interact { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }
.al-iacts { display: flex; gap: 10px; margin-bottom: 16px; }
.al-iact {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 11px;
  font-size: 12px; color: var(--text-2);
  background: var(--panel); border: 1px solid var(--line);
  transition: all .2s ease;
}
.al-iact svg { width: 15px; height: 15px; }
.al-iact:hover { color: var(--text); border-color: var(--accent-line); }
.al-iact.on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); box-shadow: 0 0 16px rgba(111, 184, 245, .14); }
.al-iact.on svg { fill: currentColor; }
.al-iact-n { font-variant-numeric: tabular-nums; font-weight: 600; }
.al-cmt-title { display: flex; align-items: baseline; gap: 7px; margin-bottom: 10px; }
.al-cmt-title b { font-size: 13.5px; color: var(--text); }
.al-cmt-count { font-size: 11px; color: var(--text-3); }
.al-cmt-list { display: flex; flex-direction: column; gap: 12px; }
.al-cmt-empty { font-size: 11.5px; color: var(--text-3); padding: 8px 2px; }
.al-cmt { padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.al-cmt.is-reply { margin-left: 26px; background: transparent; border-color: transparent; border-left: 2px solid var(--line-2); border-radius: 0 12px 12px 0; padding-left: 12px; }
.al-cmt-head { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.al-cmt-head .avatar { width: 20px; height: 20px; font-size: 9px; }
.al-cmt-name { font-size: 11.5px; color: var(--text-2); font-weight: 600; }
.al-cmt-time { font-size: 10px; color: var(--text-3); }
.al-cmt-pending { font-size: 9.5px; color: #FFD9A8; padding: 1px 5px; border-radius: 5px; background: rgba(160, 110, 40, .2); border: 1px solid rgba(240, 190, 120, .2); }
.al-cmt-tx { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--text-body); white-space: pre-wrap; word-break: break-word; }
.al-cmt-ops { display: flex; gap: 12px; margin-top: 5px; }
.al-cmt-op { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; color: var(--text-3); }
.al-cmt-op:hover { color: var(--accent); }
.al-cmt-op.on { color: var(--accent); }
.al-cmt-op svg { width: 12px; height: 12px; }
.al-reply { display: flex; gap: 6px; margin-top: 8px; }
.al-reply-inp { flex: 1; min-width: 0; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--bg-1); border: 1px solid var(--line); color: var(--text); font-size: 11.5px; outline: 0; }
.al-reply-inp:focus { border-color: var(--accent-line); }
.al-reply-go { height: 30px; padding: 0 12px; border-radius: 8px; font-size: 11.5px; color: #06131F; background: var(--accent); }
.al-cmt-input { display: flex; gap: 8px; align-items: flex-end; margin-top: 14px; }
.al-cmt-ta {
  flex: 1; min-width: 0; padding: 9px 11px; border-radius: 10px; resize: vertical;
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  font-size: 12.5px; line-height: 1.6; outline: 0;
}
.al-cmt-ta:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.al-cmt-send { height: 34px; padding: 0 15px; border-radius: 9px; font-size: 12px; color: #06131F; background: linear-gradient(135deg, #8FD0FF, #B9C8FF); font-weight: 600; }
.al-cmt-send:disabled { opacity: .5; }

/* ---------------- 分享 / 海报 ---------------- */
.al-share-row { display: flex; gap: 8px; margin: 12px 0 14px; }
.al-share-row .al-input { flex: 1; font-size: 11.5px; color: var(--text-2); }
.al-share-row .al-btn { flex: 0 0 auto; height: 38px; }
.al-share-opts { display: grid; gap: 8px; }
.al-share-opt {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap; text-align: left;
  padding: 11px 13px; border-radius: 11px;
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color .18s ease, background .18s ease;
}
.al-share-opt:hover { border-color: var(--accent-line); background: var(--panel-2); }
.al-share-opt svg { width: 16px; height: 16px; color: var(--accent); flex: 0 0 auto; }
.al-share-opt span { font-size: 12.5px; color: var(--text); font-weight: 600; }
.al-share-opt i { font-style: normal; font-size: 10.5px; color: var(--text-3); flex: 1 1 100%; padding-left: 25px; box-sizing: border-box; }
.al-share-tip { margin: 12px 0 0; font-size: 10.5px; line-height: 1.6; color: var(--text-3); }
.al-poster .poster-holder { max-height: 62vh; overflow: auto; }
.al-move-list { display: flex; flex-direction: column; gap: 7px; max-height: 52vh; overflow-y: auto; margin-top: 10px; }
.al-move-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 10px; background: var(--panel); border: 1px solid var(--line);
  transition: border-color .18s ease;
}
.al-move-item:hover { border-color: var(--accent-line); }
.al-move-cover { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; color: var(--text-3); flex: 0 0 auto; }
.al-move-cover img { width: 100%; height: 100%; object-fit: cover; }
.al-move-cover svg { width: 16px; height: 16px; }
.al-move-name { flex: 1; text-align: left; font-size: 12.5px; color: var(--text); }
.al-move-n { font-size: 10.5px; color: var(--text-3); }

/* 我的页快捷导航 */
.me-quicknav {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin: 12px 16px 4px;
}
.me-qn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 4px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line);
  font-size: 11px; color: var(--text-2);
  transition: border-color .18s ease, transform .18s ease, color .18s ease;
}
.me-qn:hover { border-color: var(--accent-line); color: var(--accent); transform: translateY(-2px); }
.me-qn svg { width: 16px; height: 16px; opacity: .85; }

/* 个人主页相册分区 */
.al-pf-acts { display: flex; gap: 8px; margin: 4px 0 12px; }
.al-search-grid { margin: 4px 0 8px; }

/* ---------------- 浅色主题适配（降饱和、降光晕，不新增色值） ---------------- */
[data-theme="frost"] .al-card,
[data-theme="frost"] .al-stat {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 6px 20px rgba(20, 45, 80, .07);
}
[data-theme="frost"] .al-card:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 14px 30px rgba(20, 45, 80, .12);
}
[data-theme="frost"] .al-cover::after {
  background: linear-gradient(180deg, rgba(20, 40, 70, .28) 0%, rgba(20, 40, 70, 0) 46%, rgba(20, 40, 70, .10) 100%);
}
[data-theme="frost"] .al-badge-private { color: #3C4A5C; background: rgba(228, 236, 246, .92); border-color: rgba(120, 150, 185, .24); }
[data-theme="frost"] .al-badge-link { color: #5B4A8C; background: rgba(236, 230, 252, .95); border-color: rgba(150, 128, 210, .3); }
[data-theme="frost"] .al-badge-public { color: #1F5C8C; background: rgba(226, 242, 255, .95); border-color: rgba(110, 175, 225, .32); }
[data-theme="frost"] .al-attested { color: #1E7A5B; background: rgba(220, 245, 235, .95); border-color: rgba(90, 190, 155, .3); }
[data-theme="frost"] .al-link-tip { color: #5B4A8C; background: rgba(240, 235, 255, .92); border-color: rgba(150, 128, 210, .26); }
[data-theme="frost"] .al-new-btn { box-shadow: 0 5px 16px rgba(90, 150, 210, .18); }
[data-theme="frost"] .al-new-btn:hover { box-shadow: 0 8px 22px rgba(90, 150, 210, .24); }
[data-theme="frost"] .al-btn-main { box-shadow: 0 3px 12px rgba(90, 150, 210, .16); }
[data-theme="frost"] .al-drawer { background: rgba(247, 251, 255, .96); box-shadow: -20px 0 50px rgba(20, 45, 80, .16); }
[data-theme="frost"] .al-drawer-mask { background: rgba(30, 50, 75, .28); }
[data-theme="frost"] .al-lb { background: rgba(238, 245, 252, .96); }
[data-theme="frost"] .al-lb-bar { border-color: rgba(90, 130, 175, .14); }
[data-theme="frost"] .al-lb-name { color: #1B2C40; }
[data-theme="frost"] .al-lb-count { color: rgba(50, 80, 115, .6); }
[data-theme="frost"] .al-lb-x { color: #4C6480; }
[data-theme="frost"] .al-lb-panel { background: rgba(252, 254, 255, .94); border-color: rgba(90, 130, 175, .14); }
[data-theme="frost"] .al-lb-title { color: #16273A; }
[data-theme="frost"] .al-lb-time { color: rgba(50, 80, 115, .6); }
[data-theme="frost"] .al-lb-sec { background: rgba(230, 242, 252, .6); border-color: rgba(110, 160, 210, .2); }
[data-theme="frost"] .al-lb-sec-t { color: #24405C; }
[data-theme="frost"] .al-lb-sec.attested { background: rgba(224, 246, 236, .7); border-color: rgba(80, 180, 145, .26); }
[data-theme="frost"] .al-lb-sec.attested .al-lb-sec-t { color: #18775A; }
[data-theme="frost"] .al-lb-hash code { color: #2A6A9E; }
[data-theme="frost"] .al-lb-kv { color: rgba(50, 80, 115, .65); }
[data-theme="frost"] .al-lb-kv b { color: #22374D; }
[data-theme="frost"] .al-lb-k { color: #2B4157; }
[data-theme="frost"] .al-lb-note { color: #A6505E; }
[data-theme="frost"] .al-lb-acts .al-btn { background: rgba(255, 255, 255, .7); border-color: rgba(110, 160, 210, .22); color: #2B4157; }
[data-theme="frost"] .al-switch { background: rgba(120, 155, 190, .22); border-color: rgba(110, 160, 210, .28); }
[data-theme="frost"] .al-switch.on { background: rgba(90, 160, 220, .55); }
[data-theme="frost"] .al-drag-hint,
[data-theme="frost"] .al-sub { color: var(--text-3); }
[data-theme="frost"] .al-batchbar { box-shadow: 0 6px 18px rgba(20, 45, 80, .1); }
[data-theme="frost"] .al-poster .poster-canvas { box-shadow: 0 10px 30px rgba(20, 45, 80, .16); }

@media (max-width: 1024px) {
  .al-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .al-img-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .al-page { padding: 12px 12px 90px; }
  .al-detail { padding: 12px 12px 40px; }
  .al-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .al-img-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .al-stats { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .al-stat b { font-size: 17px; }
  .al-tools { gap: 8px; }
  .al-search { flex-basis: 100%; }
  .al-title { font-size: 18px; }
  .al-dtitle { font-size: 17px; }
  .al-dbar { gap: 6px; }
  .al-btn { height: 32px; padding: 0 10px; font-size: 11.5px; }
  .al-lb { grid-template-columns: 1fr; grid-template-rows: 48px 46vh 1fr; }
  .al-lb-stage { padding: 10px; }
  .al-lb-img { max-height: 44vh; }
  .al-lb-panel { border-left: 0; border-top: 1px solid rgba(150, 200, 255, .12); }
  .al-lb-nav { width: 34px; height: 34px; }
  .al-lb-nav.prev { left: 6px; }
  .al-lb-nav.next { right: 6px; }
  .al-drawer { width: 100vw; }
  .al-interact { margin-top: 20px; }
  .al-iact { height: 33px; padding: 0 12px; }
  .me-quicknav { margin: 10px 12px 2px; }
}


/* ── v2.92.1 相册文案规范配套样式 ── */
/* 总览空状态副标题 */
.al-empty-s { max-width: 320px; margin: 8px auto 0; font-size: 12px; line-height: 1.8; color: var(--text-3); }
/* 相册详情页悬浮上传按钮 */
.al-fab {
  position: fixed; right: 16px; bottom: calc(154px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; color: #EAF5FF;
  background: linear-gradient(135deg, rgba(64,140,235,.95), rgba(130,110,240,.95));
  border: 1px solid rgba(160,210,255,.4);
  box-shadow: 0 8px 26px rgba(60,120,220,.4), 0 0 0 6px rgba(90,150,235,.08);
  transition: transform .22s ease, box-shadow .22s ease;
}
.al-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 12px 30px rgba(60,120,220,.5), 0 0 0 8px rgba(90,150,235,.1); }
.al-fab svg { width: 20px; height: 20px; }
/* 广场引导卡片 */
.al-promo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 16px 0; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(150,120,240,.35); background: linear-gradient(140deg, rgba(150,120,240,.14), rgba(111,184,245,.06) 60%, transparent); }
.al-promo-main { min-width: 0; }
.al-promo-kicker { font-size: 10.5px; letter-spacing: .14em; color: rgba(180,160,255,.85); margin-bottom: 3px; }
.al-promo-title { font-size: 15px; font-weight: 700; color: var(--text); }
.al-promo-tip { margin-top: 4px; font-size: 11.5px; line-height: 1.7; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.al-promo-acts { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; }
/* 新用户引导浮窗 */
.al-guide {
  position: fixed; left: 14px; right: 14px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 80;
  padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(150deg, rgba(16,28,48,.92), rgba(22,20,44,.92));
  border: 1px solid rgba(150,210,255,.35);
  box-shadow: 0 14px 40px rgba(6,12,26,.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(14px); transition: opacity .26s ease, transform .26s ease;
}
.al-guide.on { opacity: 1; transform: translateY(0); }
.al-guide-t { font-size: 14px; font-weight: 700; color: #EAF5FF; }
.al-guide-s { margin: 5px 0 10px; font-size: 12px; line-height: 1.7; color: rgba(210,228,248,.8); }
.al-guide-acts { display: flex; gap: 10px; }
.al-guide-acts .al-btn { flex: 1; }
/* 浅色主题适配（frost / snow 双选择器） */
[data-theme="frost"] .al-guide, [data-theme="snow"] .al-guide { background: linear-gradient(150deg, rgba(255,255,255,.94), rgba(240,246,255,.94)); border-color: rgba(90,140,220,.3); box-shadow: 0 14px 34px rgba(40,80,150,.18); }
[data-theme="frost"] .al-guide-t, [data-theme="snow"] .al-guide-t { color: var(--text); }
[data-theme="frost"] .al-guide-s, [data-theme="snow"] .al-guide-s { color: var(--text-3); }
[data-theme="frost"] .al-fab, [data-theme="snow"] .al-fab { color: #fff; }

/* ── v2.93.0 创作服务（筛选抽屉 / 条件chips） ── */
.ff-opts { display: flex; flex-wrap: wrap; gap: 7px; }
.ff-opt {
  padding: 7px 13px; border-radius: 999px; font-size: 12px;
  color: var(--text-2); background: var(--panel); border: 1px solid var(--line);
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.ff-opt:hover { border-color: var(--accent-line); }
.ff-opt.on { color: var(--accent); border-color: var(--accent-line); background: rgba(111,184,245,.12); font-weight: 600; }
.ff-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 16px 8px; }
.ff-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px; font-size: 11.5px;
  color: var(--accent); background: rgba(111,184,245,.1); border: 1px solid rgba(111,184,245,.3);
}
.ff-chip i { font-style: normal; opacity: .7; font-size: 13px; }
.ff-chip:hover { border-color: var(--accent-line); }
.ff-chip-clear { color: var(--text-3); background: transparent; border-style: dashed; }

/* ── v2.93.0 商用授权标签 ── */
.lic-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 600; border: 1px solid; }
.lic-badge i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.lic-forbid { color: #E58C8C; border-color: rgba(229,140,140,.45); background: rgba(229,140,140,.1); }
.lic-forbid i { background: #E5484D; }
.lic-nc { color: #E0B45C; border-color: rgba(224,180,92,.45); background: rgba(224,180,92,.1); }
.lic-nc i { background: #F2C94C; }
.lic-comm { color: #7BC89A; border-color: rgba(123,200,154,.45); background: rgba(123,200,154,.1); }
.lic-comm i { background: #4CC38A; }
/* 发布页授权选择 */
.lic-field { margin-top: 10px; }
.lic-field-title { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.lic-opts { display: grid; gap: 7px; }
.lic-opt { display: flex; align-items: flex-start; gap: 9px; text-align: left; padding: 11px 13px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); transition: border-color .18s ease; }
.lic-opt:hover { border-color: var(--accent-line); }
.lic-opt.on { border-color: var(--accent-line); background: rgba(111,184,245,.08); }
.lic-opt .lic-radio { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--text-3); margin-top: 2px; flex: 0 0 auto; position: relative; }
.lic-opt.on .lic-radio { border-color: var(--accent); }
.lic-opt.on .lic-radio::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px rgba(111,184,245,.6); }
.lic-opt .lic-tx b { display: block; font-size: 12.5px; color: var(--text); font-weight: 600; }
.lic-opt .lic-tx i { font-style: normal; font-size: 11px; color: var(--text-3); }
.lic-note { margin-top: 8px; font-size: 10.5px; line-height: 1.6; color: var(--text-3); }
/* 详情授权行 */
.lic-detail { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 16px 0; padding: 11px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.lic-detail .lic-note { margin: 0; flex: 1; min-width: 180px; }
.al-lic { margin-top: 8px; }
/* 大图授权下拉 */
.al-lb-sel { flex: 1; padding: 8px 10px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font-size: 12.5px; }
/* 浅色主题授权角标降饱和 */
[data-theme="frost"] .lic-forbid, [data-theme="snow"] .lic-forbid { color: #B45454; border-color: rgba(180,84,84,.35); background: rgba(180,84,84,.07); }
[data-theme="frost"] .lic-nc, [data-theme="snow"] .lic-nc { color: #9C7420; border-color: rgba(156,116,32,.35); background: rgba(156,116,32,.07); }
[data-theme="frost"] .lic-comm, [data-theme="snow"] .lic-comm { color: #2E7D52; border-color: rgba(46,125,82,.35); background: rgba(46,125,82,.07); }
.ledger-row { display: flex; align-items: center; gap: 12px; margin: 12px 16px 0; flex-wrap: wrap; }
.ledger-tip { font-size: 11px; color: var(--text-3); }

/* ============================================================
   v2.94.0 创作者服务五合一：会话免打扰 / 访客记录 / 标签订阅 / 主页海报 / 创作总览
   ============================================================ */

/* 会话列表免打扰小铃铛（叠在右上角，不挤占未读气泡） */
.conv-mute-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  right: 46px; width: 26px; height: 26px; border-radius: 8px;
  border: none; background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--text-3); opacity: .55;
  -webkit-tap-highlight-color: transparent;
}
.conv-mute-btn svg { width: 14px; height: 14px; }
.conv-mute-btn.on { color: var(--gold, #d5b77c); opacity: 1; }

/* 免打扰提醒方式选择弹层 */
.mute-opt {
  display: flex; width: 100%; text-align: left; cursor: pointer;
  padding: 12px 14px; border-radius: 13px; margin-top: 8px;
  background: var(--panel); border: 1px solid var(--line);
}
.mute-opt.on { border-color: var(--accent-line); background: var(--accent-soft); }
.mute-opt-main { flex: 1; min-width: 0; }
.mute-opt-label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.mute-opt-hint { font-size: 11px; color: var(--text-3); margin-top: 3px; }

/* 主页访客列表 */
.visitor-row { display: flex; align-items: center; gap: 11px; padding: 10px 6px; border-bottom: 1px solid var(--line); cursor: pointer; }
.visitor-row:last-child { border-bottom: none; }
.visitor-foot { margin-top: 12px; }

/* 无痕浏览开关 */
.fp-switch {
  width: 52px; height: 30px; border-radius: 15px; border: none; cursor: pointer;
  background: var(--panel-2); position: relative; transition: background .2s; margin: 18px auto 8px; display: block;
}
.fp-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: left .2s;
}
.fp-switch.on { background: var(--accent); }
.fp-switch.on::after { left: 25px; }
.fp-state { text-align: center; font-size: 12px; color: var(--text-2); }
.fp-note { font-size: 11px; color: var(--text-3); margin-top: 14px; line-height: 1.7; }

/* 标签订阅管理 */
.tagsubs-add { display: flex; gap: 8px; margin-top: 4px; }
.tagsubs-add input {
  flex: 1; min-width: 0; padding: 10px 14px; border-radius: 11px; font-size: 13px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text); outline: none;
}
.tagsubs-add input:focus { border-color: var(--accent-line); }
.tagsub-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.tagsub-row:last-child { border-bottom: none; }
.tagsub-name { font-size: 13.5px; color: var(--text); font-weight: 600; }
.tagsubs-list { margin-top: 10px; max-height: 46vh; overflow-y: auto; }

/* 创作数据总览 8 格 */
.ov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 4px; }
.ov-cell {
  border-radius: 14px; padding: 14px 12px 11px;
  background: var(--panel); border: 1px solid var(--line);
}
.ov-num { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: .01em; }
.ov-label { font-size: 11.5px; color: var(--text-2); margin-top: 4px; font-weight: 600; }
.ov-hint { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.ov-foot { margin-top: 14px; display: flex; }

/* ==================== v2.95.0 Web3 确权档案模式（相册双UI外壳） ====================
   原则：只改展示层，原图不加滤镜不裁剪；动效慢、轻、低饱和；
   氛围层（星云 / 网格 / 粒子）在 .al-lowend（低端设备 / 省流 / 减弱动效）下一律关闭。 */
:root { --al-neon-c: #4ee8ff; --al-neon-p: #b88bff; }

/* ---- 模式切换小图标（标题栏右侧） ---- */
.al-mode-btn {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center; cursor: pointer;
  color: var(--text-2); background: var(--panel); border: 1px solid var(--line);
  transition: color .2s, border-color .2s, box-shadow .2s;
}
.al-mode-btn:hover { color: var(--al-neon-c); border-color: color-mix(in srgb, var(--al-neon-c) 45%, var(--line)); box-shadow: 0 0 10px color-mix(in srgb, var(--al-neon-c) 22%, transparent); }
.al-mode-ico { font-size: 14px; line-height: 1; }
.al-dtop .al-mode-btn, .al-head-acts .al-mode-btn { margin-left: auto; }
.al-mode-pop {
  position: fixed; z-index: 10060; min-width: 236px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 44px rgba(2, 8, 20, .5);
  padding: 8px; opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.al-mode-pop.on { opacity: 1; transform: none; pointer-events: auto; }
.al-mode-opt {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px; border: 1px solid transparent;
  background: none; color: var(--text-2); cursor: pointer; text-align: left;
}
.al-mode-opt:hover { background: var(--panel-2); }
.al-mode-opt.on { border-color: color-mix(in srgb, var(--al-neon-c) 40%, transparent); color: var(--text); background: color-mix(in srgb, var(--al-neon-c) 7%, transparent); }
.al-mode-opt-ico { font-size: 15px; flex: none; }
.al-mode-opt-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.al-mode-opt-tx b { font-size: 12.5px; font-weight: 650; }
.al-mode-opt-tx i { font-size: 10.5px; font-style: normal; color: var(--text-3); }
.al-mode-grid {
  display: flex; align-items: center; gap: 8px;
  margin-top: 6px; padding: 8px 10px 4px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--text-2); cursor: pointer;
}

/* ---- 钢印印章（档案头卡） ---- */
.al-stamp-row { display: flex; align-items: center; gap: 12px; margin: 4px 0 8px; }
.al-stamp {
  position: relative; width: 64px; height: 64px; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  color: var(--text-2);
}
.al-stamp-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed currentColor; opacity: .55; }
.al-stamp::after {
  content: ''; position: absolute; inset: 5px; border-radius: 50%;
  border: 1.5px solid currentColor; opacity: .8;
}
.al-stamp-tx {
  position: relative; z-index: 1; font-size: 10.5px; font-weight: 700;
  letter-spacing: .06em; text-align: center; max-width: 46px; line-height: 1.25;
  transform: rotate(-12deg);
}
.al-stamp.lic-forbid { color: #ff8a7a; }
.al-stamp.lic-nc { color: #e8c46a; }
.al-stamp.lic-comm { color: #5fd9a2; }
.al-stamp {
  background: color-mix(in srgb, currentColor 7%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, currentColor 14%, transparent) inset;
}
.al-cinfo-t { font-size: 14px; font-weight: 700; color: var(--text); }
.al-cinfo-s { font-size: 10.5px; color: var(--text-3); margin-top: 2px; }

/* ---- 档案摘要行（弱色小字） ---- */
.al-archive-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 2px;
  margin-top: 2px; padding: 7px 10px; border-radius: 10px;
  font-size: 10.5px; color: var(--text-3);
  background: color-mix(in srgb, var(--al-neon-c) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--al-neon-c) 14%, transparent);
}
.al-archive-kv i { font-style: normal; color: var(--text-3); }
.al-archive-kv b { font-weight: 600; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.al-archive-sep { opacity: .4; margin: 0 2px; }

/* ---- 档案模式按钮：细微光描边 + hover 微光提亮 ---- */
.al-archive .al-btn {
  border-color: color-mix(in srgb, var(--al-neon-c) 26%, var(--line));
  box-shadow: 0 0 0 .5px color-mix(in srgb, var(--al-neon-p) 18%, transparent), 0 0 8px color-mix(in srgb, var(--al-neon-c) 10%, transparent);
}
.al-archive .al-btn:hover {
  border-color: color-mix(in srgb, var(--al-neon-c) 55%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--al-neon-c) 22%, transparent);
}
.al-archive .al-btn-danger { border-color: color-mix(in srgb, var(--danger) 45%, transparent); box-shadow: none; }

/* ---- 档案模式列表卡片微光 ---- */
.al-archive .al-card {
  border-color: color-mix(in srgb, var(--al-neon-c) 22%, var(--line));
  box-shadow: 0 0 12px color-mix(in srgb, var(--al-neon-c) 8%, transparent);
}

/* ---- 图片卡片：玻璃底板 + 霓虹边框 + 状态条 + 网格纹理 ---- */
.al-archive .al-img-grid { gap: 12px; }
.al-archive .al-cell {
  background: color-mix(in srgb, var(--al-neon-p) 4%, var(--bg-2));
  border: 1px solid color-mix(in srgb, var(--al-neon-c) 26%, transparent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--al-neon-c) 8%, transparent);
}
.al-archive .al-cell:hover {
  border-color: color-mix(in srgb, var(--al-neon-c) 55%, transparent);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--al-neon-c) 16%, transparent);
}
.al-cell-gridfx {
  position: absolute; inset: 0; pointer-events: none; opacity: .06;
  background-image:
    linear-gradient(color-mix(in srgb, var(--al-neon-c) 80%, #fff 20%) .5px, transparent .5px),
    linear-gradient(90deg, color-mix(in srgb, var(--al-neon-c) 80%, #fff 20%) .5px, transparent .5px);
  background-size: 18px 18px;
}
.al-cell-status {
  position: absolute; left: 0; right: 0; bottom: 0; height: 20px;
  display: flex; align-items: center; gap: 4px; padding: 0 7px;
  font-size: 9.5px; letter-spacing: .02em;
  color: rgba(210, 224, 240, .78);
  background: linear-gradient(180deg, transparent, rgba(5, 12, 24, .78) 40%);
}
.al-cell-status .al-cell-st-ico { font-size: 9px; }
.al-cell-status.ok { color: var(--al-neon-c); }
.al-cell-status:not(.ok) { color: rgba(190, 200, 214, .6); }
.al-archive .al-cell .al-hash-badge { bottom: 22px; }
.al-archive .al-cell .al-nodl { bottom: 22px; }

/* ---- 凭证浮窗（body 挂载，fixed 定位） ---- */
.al-cell-pop {
  position: fixed; z-index: 10055; width: 232px;
  transform: translateY(-100%);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--al-neon-c) 30%, var(--line));
  border-radius: 12px; padding: 10px 11px;
  box-shadow: 0 14px 34px rgba(2, 8, 20, .55), 0 0 10px color-mix(in srgb, var(--al-neon-c) 12%, transparent);
  opacity: 0; transition: opacity .16s ease;
  pointer-events: none;
}
.al-cell-pop.on { opacity: 1; pointer-events: auto; }
.al-pop-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2.5px 0; font-size: 11px; }
.al-pop-row i { font-style: normal; color: var(--text-3); flex: none; }
.al-pop-row code { font-size: 10px; color: var(--al-neon-c); font-variant-numeric: tabular-nums; }
.al-pop-row b { font-weight: 600; color: var(--text-2); font-size: 10.5px; }
.al-pop-verify {
  width: 100%; margin-top: 6px; height: 28px; border-radius: 8px;
  font-size: 11px; font-weight: 650; cursor: pointer; color: #06121f;
  background: linear-gradient(90deg, var(--al-neon-c), var(--al-neon-p));
  border: none;
}

/* ---- 链上同步粒子加载 ---- */
.al-plets { display: flex; align-items: flex-end; justify-content: center; gap: 7px; padding: 56px 0; }
.al-plets i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--al-neon-c);
  box-shadow: 0 0 8px color-mix(in srgb, var(--al-neon-c) 55%, transparent);
  animation: alPlet 1.15s ease-in-out infinite alternate;
}
.al-plets i:nth-child(3n) { background: var(--al-neon-p); box-shadow: 0 0 8px color-mix(in srgb, var(--al-neon-p) 55%, transparent); }
@keyframes alPlet {
  from { transform: translateY(0); opacity: .35; }
  to { transform: translateY(calc(-1 * var(--pa, 22px))); opacity: 1; }
}

/* ---- 大图预览：档案模式 ---- */
.al-lb-archive {
  background: rgba(4, 9, 20, .96);
}
/* 星云背景：两层超慢漂移径向渐变（低对比度，不刺眼） */
.al-lb-archive::before {
  content: ''; position: absolute; inset: -20%; pointer-events: none; opacity: .55;
  background:
    radial-gradient(42% 34% at 24% 30%, rgba(78, 232, 255, .07), transparent 70%),
    radial-gradient(38% 30% at 76% 62%, rgba(184, 139, 255, .08), transparent 70%),
    radial-gradient(30% 26% at 58% 18%, rgba(64, 108, 255, .05), transparent 70%);
  animation: alNebula 26s ease-in-out infinite alternate;
}
@keyframes alNebula {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to { transform: translate3d(1.5%, 1%, 0) scale(1.04); }
}
/* 玻璃确权相框：柔和外发光 + 内部留白，随双指缩放整体变换 */
.al-lb-archive .al-lb-img {
  border-radius: 14px;
  padding: 10px;
  background: color-mix(in srgb, #0c1628 55%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--al-neon-c) 26%, transparent);
  box-shadow:
    0 0 26px color-mix(in srgb, var(--al-neon-c) 14%, transparent),
    0 0 52px color-mix(in srgb, var(--al-neon-p) 10%, transparent),
    0 24px 80px rgba(0, 0, 0, .6);
}
/* 底部常驻凭证栏 */
.al-lb-vbar {
  position: absolute; left: calc((100vw - 340px) / 2); bottom: 14px; transform: translateX(-50%);
  z-index: 5; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px;
  max-width: min(92vw, 780px); padding: 8px 14px;
  font-size: 11px; border-radius: 12px;
  color: var(--text-2);
  background: color-mix(in srgb, #0a1424 72%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--al-neon-c) 22%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.al-lb-vbar.hidden { display: none; }
.al-vbar-kv { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.al-vbar-kv i { font-style: normal; color: var(--text-3); }
.al-vbar-kv b { font-weight: 600; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.al-vbar-btn {
  height: 26px; padding: 0 12px; border-radius: 8px; font-size: 11px; font-weight: 650;
  cursor: pointer; color: var(--al-neon-c); background: none;
  border: 1px solid color-mix(in srgb, var(--al-neon-c) 40%, transparent);
  transition: box-shadow .18s, background .18s;
}
.al-vbar-btn:hover { background: color-mix(in srgb, var(--al-neon-c) 10%, transparent); box-shadow: 0 0 10px color-mix(in srgb, var(--al-neon-c) 20%, transparent); }
.al-vbar-btn.main {
  color: #06121f; border: none;
  background: linear-gradient(90deg, var(--al-neon-c), var(--al-neon-p));
}
/* 移动端：信息面板占下半屏且自带完整凭证区块（哈希/时间/授权/核验/导出），
   固定凭证栏会遮住面板底部「单独存证/删除」按钮 → 窄屏隐藏（v2.95.2） */
@media (max-width: 760px) {
  .al-lb-vbar { display: none; }
  .al-lb-archive .al-lb-img { max-height: calc(100vh - 150px); padding: 7px; }
}
/* 切换粒子过渡 */
.al-tfx { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.al-tfx i {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: var(--al-neon-c);
  box-shadow: 0 0 8px color-mix(in srgb, var(--al-neon-c) 60%, transparent);
  animation: alTfx .7s ease-out both;
}
.al-tfx i:nth-child(2n) { background: var(--al-neon-p); box-shadow: 0 0 8px color-mix(in srgb, var(--al-neon-p) 60%, transparent); }
@keyframes alTfx {
  0% { transform: translateY(8px) scale(.4); opacity: 0; }
  35% { opacity: .9; }
  100% { transform: translateY(-16px) scale(1); opacity: 0; }
}

/* ---- 低端设备 / 减弱动效：一键关闭全部氛围层，只留静态信息 ---- */
.al-lowend .al-lb-archive::before,
.al-lowend .al-cell-gridfx,
.al-lowend .al-plets i { animation: none !important; }
.al-lowend .al-lb-archive::before { opacity: .3; }
.al-lowend .al-tfx { display: none; }
.al-lowend .al-plets i { transform: none; opacity: .6; }
@media (prefers-reduced-motion: reduce) {
  .al-lb-archive::before, .al-tfx, .al-plets i { animation: none !important; }
}

/* ---- v2.95.1 档案模式切换按钮文字标签 + 我的页版本标识 ---- */
.al-mode-btn { width: auto; min-width: 34px; padding: 0 9px; gap: 4px; display: inline-flex; align-items: center; justify-content: center; }
.al-mode-lbl { font-size: 10.5px; letter-spacing: .02em; white-space: nowrap; }
.al-head-acts { display: flex; align-items: center; gap: 8px; }
.me-ver { text-align: center; padding: 18px 0 8px; font-size: 10.5px; letter-spacing: .04em; color: var(--text-3); opacity: .75; }

/* ==================== v2.95.3 档案模式视觉对齐样板 ==================== */
/* 卡片：明亮青→紫渐变描边（1.5px 通圈）+ 双色外发光，替代原低亮度微光 */
.al-archive .al-cell {
  border-color: transparent !important;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    linear-gradient(135deg, #4ee8ff 0%, #7db4ff 46%, #b88bff 100%) border-box;
  box-shadow: 0 0 16px rgba(78, 232, 255, .26), 0 4px 20px rgba(184, 139, 255, .18);
}
.al-archive .al-cell:hover {
  box-shadow: 0 0 24px rgba(78, 232, 255, .4), 0 8px 26px rgba(184, 139, 255, .28);
}
.al-archive .al-cell.on {
  box-shadow: 0 0 0 2.5px var(--accent), 0 0 18px rgba(111, 184, 245, .3);
}
/* 状态条：加高加亮（样板：通栏深底 + 白色大字 + 图标区分） */
.al-cell-status {
  height: 30px; padding: 0 10px; gap: 6px;
  font-size: 12.5px; letter-spacing: .03em; font-weight: 600;
  color: rgba(255, 255, 255, .92);
  background: linear-gradient(180deg, rgba(5, 12, 24, 0), rgba(5, 12, 24, .9) 52%);
}
.al-cell-status .al-cell-st-ico { font-size: 12px; }
.al-cell-status.ok .al-cell-st-ico { color: var(--al-neon-c); text-shadow: 0 0 8px rgba(78, 232, 255, .7); }
.al-cell-status.ok .al-cell-st-tx { color: #fff; text-shadow: 0 0 6px rgba(78, 232, 255, .35); }
.al-cell-status:not(.ok) { color: rgba(255, 255, 255, .82); }
.al-cell-status:not(.ok) .al-cell-st-ico { color: rgba(255, 255, 255, .6); }
.al-archive .al-cell .al-hash-badge { bottom: 32px; }
.al-archive .al-cell .al-nodl { bottom: 32px; }
/* 档案摘要行：调亮为清晰胶囊条（统一深底浅字，各主题下观感一致） */
.al-archive-meta {
  font-size: 11px; color: #9fb6d0;
  background: rgba(9, 16, 30, .72);
  border: 1px solid rgba(78, 232, 255, .26);
  box-shadow: 0 2px 12px rgba(2, 8, 20, .3);
}
.al-archive-kv i { color: #7e93ac; }
.al-archive-kv b { color: #d8e6f5; }
[data-theme="frost"] .al-archive-meta,
[data-theme="snow"] .al-archive-meta,
[data-theme="cloud"] .al-archive-meta,
[data-theme="ice"] .al-archive-meta {
  background: rgba(238, 246, 255, .88);
  border-color: rgba(70, 140, 220, .3);
  color: #4a617d;
}
[data-theme="frost"] .al-archive-kv i,
[data-theme="snow"] .al-archive-kv i,
[data-theme="cloud"] .al-archive-kv i,
[data-theme="ice"] .al-archive-kv i { color: #7e93ac; }
[data-theme="frost"] .al-archive-kv b,
[data-theme="snow"] .al-archive-kv b,
[data-theme="cloud"] .al-archive-kv b,
[data-theme="ice"] .al-archive-kv b { color: #22374d; }

/* ==================== v2.96.0 氛围特效开关（规范二） ====================
   静态基底（凭证信息 / 状态条 / 钢印 / 摘要行 / 渐变边框骨架）永远显示；
   发光、动画、星云流动等全套光效由根容器 .effect-enable 独立控制，
   用户可关（Web3氛围光效开关）、低端设备自动不挂载；.grid-off 单独隐藏网格层。 */

/* ---- 网格层开关（grid-off 由氛围浮层控制） ---- */
.grid-off .al-cell-gridfx { display: none; }

/* ---- 卡片：无特效时退化静态第一版（普通细边框无发光）；effect-enable 恢复样板渐变边框+外发光 ---- */
.al-archive:not(.effect-enable) .al-cell {
  border-color: var(--line) !important;
  background: var(--bg-2);
  box-shadow: none;
}
.al-archive.effect-enable .al-cell {
  border-color: transparent !important;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    linear-gradient(135deg, #4ee8ff 0%, #7db4ff 46%, #b88bff 100%) border-box;
  box-shadow: 0 0 16px rgba(78, 232, 255, .26), 0 4px 20px rgba(184, 139, 255, .18);
}
.al-archive:not(.effect-enable) .al-cell:hover {
  border-color: var(--accent-line) !important;
  box-shadow: 0 8px 20px rgba(2, 8, 20, .4);
}
.al-archive.effect-enable .al-cell:hover {
  border-color: transparent !important;
  box-shadow: 0 0 24px rgba(78, 232, 255, .4), 0 8px 26px rgba(184, 139, 255, .28);
}

/* ---- 钢印呼吸（6s 周期，仅特效开启） ---- */
@keyframes alSealBreath {
  0%, 100% { opacity: .75; }
  50% { opacity: .98; }
}
.effect-enable .al-stamp { animation: alSealBreath 6s ease-in-out infinite; }

/* ---- 已锚定图标呼吸微光（仅特效开启） ---- */
@keyframes alIcoGlow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(78, 232, 255, .3)); }
  50% { filter: drop-shadow(0 0 7px rgba(78, 232, 255, .65)); }
}
.effect-enable .al-cell-status.ok .al-cell-st-ico { animation: alIcoGlow 6s ease-in-out infinite; }

/* ---- 星云背景：静态深空渐变打底；流动动画仅特效开启 ---- */
.al-lb-archive::before { animation: none; opacity: .38; }
.al-lb-archive.effect-enable::before { animation: alNebula 26s ease-in-out infinite alternate; opacity: .55; }

/* ---- 大图相框：静态保留 1px 描边；柔光外发光仅特效开启 ---- */
.al-lb-archive:not(.effect-enable) .al-lb-img { box-shadow: 0 24px 80px rgba(0, 0, 0, .55); }

/* ---- 链上粒子加载：无特效时静态微光点 ---- */
.al-plets i { animation: none; opacity: .55; }
.effect-enable .al-plets i { animation: alPlet 1.15s ease-in-out infinite alternate; }

/* ---- 切图一次性闪光（particle-flash 简化版）：相框短暂淡亮后回落，全程 ≤0.4s ---- */
@keyframes alFlashOnce {
  0% { filter: brightness(1.22); }
  100% { filter: brightness(1); }
}
.al-lb-stage.al-flash { animation: alFlashOnce .38s ease-out; }

/* ---- 凭证浮窗淡入淡出（规范 hover-tip-pop 语义，已有 opacity transition，补齐时序） ---- */
.al-cell-pop { transition: opacity .25s ease; }

/* ==================== v2.96.3 云键盘马赛克修复 ====================
   现象：部分安卓 WebView/PWA 下，打开云键盘面板出现大块马赛克色块。
   根因：.cf-mist 云雾粒子（176~230px 大圆）带 filter: blur(9~15px) 且持续
   动画 + will-change 合成层提升——大半径动态模糊在低端 GPU 上被低分辨率
   栅格化后平铺，形成明显色块。
   修复：全部去掉 filter: blur，柔雾感改由径向渐变自身的透明衰减实现
   （渐变到 100% 全透明），不依赖任何模糊滤镜，各内核渲染一致。 */
.cf-mist,
.cf-mist.m2,
.cf-mist.m3,
.cf-mist.m5 {
  filter: none !important;
  background: radial-gradient(closest-side,
    rgba(185, 228, 255, .5) 0%,
    rgba(120, 190, 255, .2) 42%,
    rgba(120, 190, 255, .07) 68%,
    transparent 100%);
}
.cf-halo,
.cf-halo2 {
  filter: none !important;
  background: radial-gradient(closest-side,
    rgba(90, 165, 255, .09) 0%,
    rgba(90, 165, 255, .035) 58%,
    transparent 100%);
}

/* ==================== v2.97.0 链上记加班 · 工时账本（独立五页面模块） ====================
   视觉规范（定稿）：深空暗黑沿用全站底色；卡片单层玻璃 blur(10px)（带纯色回退）；
   1px 静态渐变边框（青蓝 #4ee8ff → 淡紫 #b88bff，双层 background 实现，不流动）；
   钢印 6s 慢呼吸（.wt-fx 根类控制，低端设备不挂载）；金融级工整排版。 */
.wt-page { padding: 14px 14px calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin: 0 auto; }
.wt-ico { display: inline-flex; width: 16px; height: 16px; }
.wt-ico svg { width: 100%; height: 100%; }

/* 顶部标题：v3.4.1 大标题+小字合并为一个胶囊（.wt-pt 自带胶囊样式，见文字胶囊组） */
.wt-pt { margin: 0 0 12px; }
.wt-pt-main { font-size: 19px; font-weight: 800; letter-spacing: .04em; color: var(--text); }
.wt-pt-sub { margin-top: 3px; font-size: 11px; color: var(--text-3); letter-spacing: .06em; }

/* 玻璃卡：v3.11.9t 改不透明深底。滚动容器内多张卡挂 backdrop-filter，长页每帧
   重模糊 → 安卓 GPU 纹理超限黑屏（我的资产页实测）。深蓝玻璃观感用纯色保真。 */
.wt-card {
  position: relative; border-radius: 14px; padding: 12px 13px; margin-bottom: 10px;
  background:
    linear-gradient(rgba(24, 31, 47, .94), rgba(17, 23, 37, .96)) padding-box,
    linear-gradient(135deg, rgba(78, 232, 255, .55), rgba(184, 139, 255, .55)) border-box;
  border: 1px solid transparent;
}
[data-theme="frost"] .wt-card, [data-theme="snow"] .wt-card {
  background:
    linear-gradient(rgba(255, 255, 255, .82), rgba(255, 255, 255, .9)) padding-box,
    linear-gradient(135deg, rgba(70, 150, 220, .5), rgba(150, 110, 230, .5)) border-box;
}
/* v3.0.2：云科技(cloud)/冰岚(ice) 为深海蓝深色主题，取消旧版「白色玻璃卡」覆盖 ——
   白底叠浅色文字导致整页发白且看不清，统一回归深空玻璃，与全站胶囊/金框语言一致 */

.wt-kv { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wt-kv i { font-style: normal; font-size: 10px; color: var(--text-3); letter-spacing: .04em; }
.wt-kv b { font-size: 13px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.wt-kv.hl b { color: #57d7f2; }

/* 钢印 */
.wt-seal { position: relative; display: inline-grid; place-items: center; width: 58px; height: 58px; flex: none; color: #57d7f2; }
.wt-seal-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed currentColor; opacity: .6; }
.wt-seal::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; border: 1.2px solid currentColor; opacity: .85; }
.wt-seal-tx { position: relative; z-index: 1; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-align: center; max-width: 42px; line-height: 1.3; transform: rotate(-10deg); }
.wt-fx .wt-seal { animation: wtBreath 6s ease-in-out infinite; }
@keyframes wtBreath { 0%, 100% { opacity: .72; } 50% { opacity: 1; } }

/* 仪表盘 */
.wt-dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.wt-dash-grid .wt-card { margin-bottom: 0; }
.wt-dash-grid .wt-card i { display: block; font-style: normal; font-size: 10.5px; color: var(--text-3); letter-spacing: .04em; }
.wt-dash-grid .wt-card b { display: block; margin-top: 5px; font-size: 22px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.wt-dash-grid .wt-wide { grid-column: 1 / -1; }
.wt-money { color: #57d7f2 !important; }
.wt-money-lg { display: block; margin-top: 4px; font-size: 26px; font-weight: 800; color: #57d7f2; font-variant-numeric: tabular-nums; }
.wt-stat-sub { display: block; margin-top: 4px; font-size: 9.5px; color: var(--text-3); }
.wt-dash-sub { padding: 2px 4px 10px; font-size: 10.5px; color: var(--text-3); }
.wt-sec-title { font-size: 13px; font-weight: 700; color: var(--text); padding-bottom: 8px; letter-spacing: .03em; }
.wt-compact { padding: 10px 12px; }
.wt-compact .wt-rec-meta { grid-template-columns: repeat(2, 1fr); }

/* 记录卡 */
.wt-rec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 8px; }
.wt-rec-date b { display: block; font-size: 15px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.wt-rec-time { font-size: 10.5px; color: var(--text-3); }
.wt-rec-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px 0; border-top: 1px dashed var(--line); }
.wt-rec-content { margin: 6px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--text-2); word-break: break-all; }
.wt-rec-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 9px; }
.wt-hash { font-size: 10px; color: #7ec9e8; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
/* v3.4.0 用户侧哈希一键复制：短哈希可点，按下微反馈 */
.wt-hash-copy { cursor: pointer; padding: 2px 4px; margin: -2px -4px; border-radius: 6px; -webkit-tap-highlight-color: transparent; }
.wt-hash-copy:active { background: rgba(126, 201, 232, .14); }
.wt-rec-acts { display: flex; gap: 7px; flex: none; }

/* 按钮 */
.wt-btn {
  display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 11px;
  border-radius: 9px; font-size: 11px; font-weight: 600; cursor: pointer;
  border: 1px solid color-mix(in srgb, #4ee8ff 40%, transparent);
  background: rgba(78, 232, 255, .06); color: #57d7f2;
}
.wt-btn .wt-ico { width: 13px; height: 13px; }
.wt-btn-main { background: linear-gradient(90deg, #4ee8ff, #b88bff); border: none; color: #06121f; }
.wt-btn-danger { border-color: rgba(255, 120, 110, .5); color: #ff8a7a; background: rgba(255, 120, 110, .06); }

/* 录入表单 */
.wt-label { display: block; font-size: 11px; color: var(--text-3); margin: 9px 0 5px; letter-spacing: .03em; }
.wt-label:first-child { margin-top: 0; }
.wt-input {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 10px;
  background: rgba(10, 16, 28, .7); border: 1px solid var(--line);
  color: var(--text); font-size: 13px; outline: none;
  color-scheme: dark;
}
[data-theme="frost"] .wt-input, [data-theme="snow"] .wt-input { background: rgba(255, 255, 255, .75); color-scheme: light; }
.wt-input:focus { border-color: rgba(78, 232, 255, .55); box-shadow: 0 0 0 2px rgba(78, 232, 255, .12); }
.wt-area { height: auto; min-height: 64px; padding: 9px 12px; resize: vertical; line-height: 1.5; }
.wt-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wt-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wt-type {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 4px; border-radius: 10px; cursor: pointer;
  background: rgba(10, 16, 28, .55); border: 1px solid var(--line); color: var(--text-2);
}
.wt-type b { font-size: 11.5px; font-weight: 650; }
.wt-type span { font-size: 10px; color: var(--text-3); }
.wt-type.on { border-color: #4ee8ff; color: var(--text); background: rgba(78, 232, 255, .1); box-shadow: 0 0 10px rgba(78, 232, 255, .18); }
.wt-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(78, 232, 255, .05); border: 1px dashed rgba(78, 232, 255, .3); }
.wt-submit {
  width: 100%; height: 46px; margin-top: 12px; border-radius: 12px; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 14.5px; font-weight: 750; letter-spacing: .1em; color: #06121f;
  background: linear-gradient(90deg, #4ee8ff, #b88bff);
  box-shadow: 0 6px 18px rgba(90, 160, 255, .3);
}
.wt-submit:disabled { opacity: .55; }
.wt-warn { margin-top: 9px; font-size: 10px; color: var(--text-3); text-align: center; letter-spacing: .03em; }

/* 台账筛选 */
.wt-filter .wt-input { margin-bottom: 8px; }
.wt-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.wt-chip { height: 26px; padding: 0 12px; border-radius: 999px; font-size: 11px; cursor: pointer; color: var(--text-2); background: rgba(10, 16, 28, .5); border: 1px solid var(--line); }
.wt-chip.on { color: #06121f; background: linear-gradient(90deg, #4ee8ff, #b88bff); border: none; font-weight: 650; }
.wt-pack {
  width: 100%; height: 44px; margin-bottom: 12px; border-radius: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: #e8f6ff; background: rgba(20, 30, 48, .8);
  border: 1px solid rgba(120, 200, 255, .4);
  box-shadow: 0 0 14px rgba(78, 232, 255, .12);
}
.wt-pack:disabled { opacity: .5; }

/* 统计 */
.wt-cycle-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 12px; }
.wt-cycle-tab {
  padding: 10px 8px; border-radius: 12px; cursor: pointer; text-align: center;
  background: rgba(10, 16, 28, .55); border: 1px solid var(--line); color: var(--text-2);
}
.wt-cycle-tab b { display: block; font-size: 12.5px; font-weight: 700; }
.wt-cycle-tab span { display: block; margin-top: 2px; font-size: 9.5px; color: var(--text-3); }
.wt-cycle-tab.on { border-color: #4ee8ff; box-shadow: 0 0 12px rgba(78, 232, 255, .16); background: rgba(78, 232, 255, .07); }
.wt-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px 14px; padding: 6px 0; }
.wt-cyc-range { font-size: 12px; font-weight: 700; color: #57d7f2; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.wt-income { display: flex; flex-direction: column; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.wt-income i { font-style: normal; font-size: 10.5px; color: var(--text-3); }
.wt-cyc-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; font-size: 10px; color: var(--text-3); flex-wrap: wrap; }
.wt-packid { font-variant-numeric: tabular-nums; color: #b8a0ff; }
.wt-chart { width: 100%; height: 110px; display: block; }
.wt-pie-wrap { display: flex; align-items: center; gap: 14px; }
.wt-pie { width: 104px; height: 104px; flex: none; }
.wt-pie-legend { display: flex; flex-direction: column; gap: 6px; }
.wt-leg { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2); }
.wt-leg i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.wt-leg b { font-weight: 600; }

/* 我的资产 */
.wt-switch { display: flex; align-items: flex-start; gap: 9px; padding: 8px 0; cursor: pointer; }
.wt-switch input { width: 17px; height: 17px; accent-color: #4ee8ff; margin-top: 2px; }
.wt-switch-tx b { display: block; font-size: 12.5px; font-weight: 650; color: var(--text); }
.wt-switch-tx i { display: block; font-style: normal; font-size: 10px; color: var(--text-3); margin-top: 1px; }
.wt-pack-list, .wt-share-list { display: flex; flex-direction: column; gap: 8px; }
.wt-pack-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: rgba(10, 16, 28, .45); border: 1px solid var(--line); }
.wt-pack-tx { min-width: 0; flex: 1 1 180px; }
.wt-pack-row .wt-rec-acts { flex-wrap: wrap; row-gap: 7px; }
.wt-pack-tx b { display: block; font-size: 12px; color: var(--text); font-variant-numeric: tabular-nums; }
.wt-pack-tx span { display: block; font-size: 10px; color: var(--text-3); margin-top: 1px; }
.wt-hint { font-size: 11px; color: var(--text-3); line-height: 1.6; }
.wt-about { font-size: 11px; line-height: 1.8; color: var(--text-2); }
.wt-share-url { display: block; font-size: 11px; color: #57d7f2; word-break: break-all; margin: 8px 0; }

/* 上链成功弹窗 */
.wt-ok { padding: 6px 4px; text-align: center; }
.wt-ok-stamp { display: flex; justify-content: center; margin-bottom: 8px; }
.wt-ok h3 { font-size: 16px; font-weight: 800; color: var(--text); }
.wt-ok-sub { font-size: 11px; color: var(--text-3); margin: 6px 0 12px; line-height: 1.6; }
.wt-ok .wt-kv { text-align: left; margin-bottom: 6px; }
.wt-ok-acts { display: flex; gap: 9px; margin-top: 12px; }
.wt-ok-acts .wt-btn { flex: 1; height: 34px; justify-content: center; }

/* 模块底部导航（吸底胶囊条，v2.98.1 改 sticky：
   main.view 带 transform 会让 position:fixed 的包含块变成 main.view 而非视口，
   导航条随内容滚动漂浮遮挡卡片按钮——sticky 相对滚动容器吸附，各内核一致） */
/* 注意：滚动容器 .view 自带 padding-bottom:84px（给主 Tab 栏预留），
   sticky 吸附基准是 padding-box，实际吸附位 = 84px + 本偏移。 */
.wt-nav {
  position: sticky;
  bottom: 0;
  z-index: 40; display: flex; gap: 2px; padding: 4px;
  border-radius: 16px; max-width: calc(100vw - 20px);
  width: fit-content; margin: 12px auto 0;
  background: rgba(10, 16, 28, .92);
  border: 1px solid rgba(120, 200, 255, .28);
  box-shadow: 0 10px 28px rgba(2, 8, 20, .5);
}
/* 壳内 Tab 栏更高（90px），吸附位相应抬高 */
.phone-wrap .wt-nav { bottom: 8px; }
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .wt-nav { background: rgba(12, 19, 32, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
/* v3.11.1 dock 按钮：等宽均分 + 文字单行，避免「记工录入」等四字项换行成两行 */
.wt-nav-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  flex: 1 1 0; min-width: 0; padding: 6px 4px 5px; border-radius: 12px; cursor: pointer;
  background: none; border: none; color: var(--text-3);
}
.wt-nav-btn span { white-space: nowrap; }
.wt-nav-btn .wt-ico { width: 17px; height: 17px; }
.wt-nav-btn span { font-size: 9.5px; letter-spacing: .02em; }
.wt-nav-btn.on { color: #57d7f2; background: rgba(78, 232, 255, .1); }

/* 底部固定文案 */
.wt-foot { margin-top: 4px; text-align: center; font-size: 9.5px; letter-spacing: .06em; color: var(--text-3); opacity: .8; }

/* 低端设备 / 减弱动效：关呼吸 */
@media (prefers-reduced-motion: reduce) { .wt-seal { animation: none !important; } }
.wt-page:not(.wt-fx) .wt-seal { animation: none; }

/* ---- v2.98.0 公示链接定稿：统计页入口 / 公示页说明 / 失效页 / 访问日志 ---- */
.wt-share-entry { margin-top: 10px; display: flex; justify-content: flex-end; }
.wt-share-entry .wt-btn { font-size: 12px; }
.wt-share-note { margin: 8px 0 2px; font-size: 11px; line-height: 1.7; color: var(--text-2); }
.wt-log-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 2px; border-bottom: 1px solid rgba(255,255,255,.06); }
.wt-log-row:last-of-type { border-bottom: none; }
.wt-log-row b { font-size: 12px; color: var(--text-1); font-weight: 500; }
.wt-logs { max-width: 340px; }
.wt-dead { min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.wt-dead-box { text-align: center; padding: 34px 22px; max-width: 340px; }
.wt-dead-ico { display: inline-flex; width: 54px; height: 54px; align-items: center; justify-content: center; border-radius: 50%; margin-bottom: 16px; background: rgba(78,232,255,.08); border: 1px solid rgba(78,232,255,.25); color: var(--color-cyan); }
.wt-dead-ico svg { width: 26px; height: 26px; }
.wt-dead-tx { margin: 12px 0 22px; font-size: 12.5px; line-height: 1.8; color: var(--text-2); }
/* 浅色主题适配 */
[data-theme="light"] .wt-log-row { border-bottom-color: rgba(15,20,34,.08); }

/* ---- v2.98.1 浅色主题（霜白）文字加固：显式深色，不依赖 CSS 变量链，
   修复「卡片白底 + 数字浅色」输入与数字看不清的问题 ---- */
[data-theme="frost"], [data-theme="snow"] {
  --wt-ink: #0F1D2E; --wt-ink-2: #3C4E63; --wt-ink-3: #5A6B80; --wt-cyan-ink: #0E86B8;
}
[data-theme="frost"] .wt-pt-main, [data-theme="snow"] .wt-pt-main { color: var(--wt-ink, #0F1D2E) !important; }
[data-theme="frost"] .wt-pt-sub, [data-theme="snow"] .wt-pt-sub { color: var(--wt-ink-3, #5A6B80) !important; }
[data-theme="frost"] .wt-sec-title, [data-theme="snow"] .wt-sec-title { color: var(--wt-ink, #0F1D2E) !important; }
[data-theme="frost"] .wt-kv i, [data-theme="snow"] .wt-kv i,
[data-theme="frost"] .wt-dash-grid .wt-card i, [data-theme="snow"] .wt-dash-grid .wt-card i { color: var(--wt-ink-3, #5A6B80) !important; }
[data-theme="frost"] .wt-kv b, [data-theme="snow"] .wt-kv b,
[data-theme="frost"] .wt-dash-grid .wt-card b, [data-theme="snow"] .wt-dash-grid .wt-card b { color: var(--wt-ink, #0F1D2E) !important; }
[data-theme="frost"] .wt-kv.hl b, [data-theme="snow"] .wt-kv.hl b { color: var(--wt-cyan-ink, #0E86B8) !important; }
[data-theme="frost"] .wt-money, [data-theme="snow"] .wt-money,
[data-theme="frost"] .wt-money-lg, [data-theme="snow"] .wt-money-lg { color: var(--wt-cyan-ink, #0E86B8) !important; }
[data-theme="frost"] .wt-cyc-range, [data-theme="snow"] .wt-cyc-range { color: var(--wt-cyan-ink, #0E86B8) !important; }
[data-theme="frost"] .wt-hash, [data-theme="snow"] .wt-hash { color: #226E93 !important; }
[data-theme="frost"] .wt-rec-date b, [data-theme="snow"] .wt-rec-date b { color: var(--wt-ink, #0F1D2E) !important; }
[data-theme="frost"] .wt-rec-time, [data-theme="frost"] .wt-stat-sub, [data-theme="frost"] .wt-dash-sub,
[data-theme="frost"] .wt-warn, [data-theme="frost"] .wt-hint, [data-theme="frost"] .wt-label,
[data-theme="frost"] .wt-cyc-meta, [data-theme="frost"] .wt-foot, [data-theme="frost"] .wt-share-note,
[data-theme="frost"] .wt-switch-tx i, [data-theme="frost"] .wt-pack-tx span, [data-theme="frost"] .wt-type span,
[data-theme="frost"] .wt-cycle-tab span, [data-theme="frost"] .wt-income i, [data-theme="frost"] .wt-dead-tx,
[data-theme="snow"] .wt-rec-time, [data-theme="snow"] .wt-stat-sub, [data-theme="snow"] .wt-dash-sub,
[data-theme="snow"] .wt-warn, [data-theme="snow"] .wt-hint, [data-theme="snow"] .wt-label,
[data-theme="snow"] .wt-cyc-meta, [data-theme="snow"] .wt-foot, [data-theme="snow"] .wt-share-note,
[data-theme="snow"] .wt-switch-tx i, [data-theme="snow"] .wt-pack-tx span, [data-theme="snow"] .wt-type span,
[data-theme="snow"] .wt-cycle-tab span, [data-theme="snow"] .wt-income i, [data-theme="snow"] .wt-dead-tx { color: var(--wt-ink-3, #5A6B80) !important; }
[data-theme="frost"] .wt-rec-content, [data-theme="frost"] .wt-about, [data-theme="frost"] .wt-leg,
[data-theme="frost"] .wt-log-row b, [data-theme="frost"] .wt-switch-tx b, [data-theme="frost"] .wt-pack-tx b,
[data-theme="frost"] .wt-type b, [data-theme="frost"] .wt-cycle-tab b,
[data-theme="snow"] .wt-rec-content, [data-theme="snow"] .wt-about, [data-theme="snow"] .wt-leg,
[data-theme="snow"] .wt-log-row b, [data-theme="snow"] .wt-switch-tx b, [data-theme="snow"] .wt-pack-tx b,
[data-theme="snow"] .wt-type b, [data-theme="snow"] .wt-cycle-tab b { color: var(--wt-ink-2, #3C4E63) !important; }
[data-theme="frost"] .wt-packid, [data-theme="snow"] .wt-packid { color: #6A4FC2 !important; }
[data-theme="frost"] .wt-share-url, [data-theme="snow"] .wt-share-url { color: var(--wt-cyan-ink, #0E86B8) !important; }
[data-theme="frost"] .wt-seal, [data-theme="snow"] .wt-seal { color: var(--wt-cyan-ink, #0E86B8) !important; }
[data-theme="frost"] .wt-input, [data-theme="snow"] .wt-input { background: rgba(255, 255, 255, .85) !important; color: var(--wt-ink, #0F1D2E) !important; color-scheme: light; }
[data-theme="frost"] .wt-type, [data-theme="frost"] .wt-chip, [data-theme="frost"] .wt-cycle-tab, [data-theme="frost"] .wt-pack-row,
[data-theme="snow"] .wt-type, [data-theme="snow"] .wt-chip, [data-theme="snow"] .wt-cycle-tab, [data-theme="snow"] .wt-pack-row { background: rgba(255, 255, 255, .72); }
[data-theme="frost"] .wt-type.on, [data-theme="snow"] .wt-type.on { background: rgba(46, 134, 216, .1); color: var(--wt-ink, #0F1D2E) !important; }
[data-theme="frost"] .wt-btn, [data-theme="snow"] .wt-btn { color: var(--wt-cyan-ink, #0E86B8) !important; background: rgba(46, 134, 216, .08); border-color: rgba(46, 134, 216, .45); }
[data-theme="frost"] .wt-btn-main, [data-theme="snow"] .wt-btn-main { color: #06121f !important; background: linear-gradient(90deg, #4ee8ff, #b88bff); }
[data-theme="frost"] .wt-btn-danger, [data-theme="snow"] .wt-btn-danger { color: #C24A3A !important; border-color: rgba(194, 74, 58, .45); background: rgba(194, 74, 58, .06); }
[data-theme="frost"] .wt-pack, [data-theme="snow"] .wt-pack { background: rgba(46, 134, 216, .1); border-color: rgba(46, 134, 216, .4); color: #0F3D5C !important; box-shadow: none; }
[data-theme="frost"] .wt-preview, [data-theme="snow"] .wt-preview { background: rgba(46, 134, 216, .06); border-color: rgba(46, 134, 216, .3); }
[data-theme="frost"] .wt-nav, [data-theme="snow"] .wt-nav { background: rgba(10, 16, 28, .9); }
[data-theme="frost"] .wt-dead-ico, [data-theme="snow"] .wt-dead-ico { background: rgba(46, 134, 216, .08); border-color: rgba(46, 134, 216, .3); color: var(--wt-cyan-ink, #0E86B8); }

/* ==================== v2.99.0 记工录入改版 ====================
   日期条 · 加班/请假段控 · 班次按钮组 · 加班时长数字键盘 · 更正单成对展示 */

/* 顶部日期条 */
.wt-daybar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.wt-daybar-arrow {
  width: 38px; height: 38px; flex: none; border-radius: 11px; cursor: pointer;
  font-size: 19px; line-height: 1; color: var(--text-2);
  background: rgba(10, 16, 28, .55); border: 1px solid var(--line);
}
.wt-daybar-arrow:disabled { opacity: .32; cursor: default; }
.wt-daybar-cur {
  position: relative; flex: 1; min-width: 0; height: 46px; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: rgba(78, 232, 255, .06); border: 1px solid rgba(78, 232, 255, .32);
}
.wt-daybar-tx { font-size: 16px; font-weight: 800; letter-spacing: .02em; color: var(--text); }
.wt-daybar-sub { font-style: normal; font-size: 10.5px; color: #57d7f2; letter-spacing: .06em; }
/* 原生日期选择器透明覆盖：点整块即弹系统日历 */
.wt-daybar-date {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; border: none; background: none; -webkit-appearance: none; appearance: none;
}

/* 加班 / 请假 段控 */
.wt-seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; margin-bottom: 12px; border-radius: 12px;
  background: rgba(10, 16, 28, .55); border: 1px solid var(--line);
}
.wt-seg-btn {
  height: 34px; border-radius: 9px; border: none; cursor: pointer;
  font-size: 13px; font-weight: 700; letter-spacing: .06em;
  color: var(--text-3); background: transparent;
}
.wt-seg-btn.on { color: #06121f; background: linear-gradient(90deg, #4ee8ff, #b88bff); }

/* 班次按钮组 */
.wt-shifts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wt-shift {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 4px; border-radius: 10px; cursor: pointer;
  background: rgba(10, 16, 28, .55); border: 1px solid var(--line); color: var(--text-2);
}
.wt-shift b { font-size: 12.5px; font-weight: 700; }
.wt-shift span { font-size: 9.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.wt-shift.on {
  border-color: #4ee8ff; color: var(--text);
  background: rgba(78, 232, 255, .12); box-shadow: 0 0 10px rgba(78, 232, 255, .18);
}
.wt-shift.on span { color: #57d7f2; }

/* 加班时长数字键盘 */
.wt-dur {
  border-radius: 12px; padding: 10px; background: rgba(10, 16, 28, .45);
  border: 1px solid var(--line);
}
.wt-dur-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.wt-dur-val { font-size: 26px; font-weight: 800; line-height: 1; color: #4ee8ff; font-variant-numeric: tabular-nums; }
/* v3.3.3 时/分模式长文案（如 2小时40分钟 / 26小时59分钟）：自动缩字号、禁止中途断行 */
.wt-dur-val { white-space: nowrap; }
.wt-dur-val.wt-dur-long { font-size: 17px; line-height: 1.15; }
.wt-dur-unit { font-size: 11px; color: var(--text-2); }
/* v3.3.3b 时长提示文案独立成行：第一行 = 大字（左）+ 时/分胶囊（右），提示不再挤在中间 */
.wt-dur-hint { display: block; font-style: normal; font-size: 9.5px; color: var(--text-3); margin: 2px 2px 8px; line-height: 1.6; }
.wt-numpad {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px;
  max-height: 176px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}
.wt-num {
  height: 30px; border-radius: 8px; cursor: pointer;
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--text-2); background: rgba(10, 16, 28, .6); border: 1px solid var(--line);
}
.wt-num.on { color: #06121f; background: linear-gradient(90deg, #4ee8ff, #b88bff); border-color: transparent; }

/* v3.3.2 请假表单：类型选择 / 时·分切换 / 类别弹窗 */
.wt-leave-form { margin-top: 2px; }
.wt-leave-type {
  width: 100%; height: 42px; margin-top: 4px; padding: 0 12px;
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 12px; cursor: pointer; text-align: left;
  font-size: 12.5px; font-weight: 600; color: var(--text-1);
  background: rgba(10, 16, 28, .55); border: 1px solid var(--line);
}
.wt-leave-type .wt-leave-arrow { font-style: normal; font-size: 15px; color: var(--text-3); }
.wt-leave-dur-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.wt-unit-chips { display: inline-flex; gap: 5px; }
/* v3.3.3 加班/工地时长标题行内嵌时/分切换胶囊：右端对齐、不参与挤压换行 */
.wt-dur-head .wt-unit-chips { margin-left: 8px; flex-shrink: 0; align-self: center; }
.wt-dur-head .wt-unit { height: 22px; min-width: 30px; padding: 0 8px; font-size: 10.5px; }
.wt-unit {
  height: 24px; min-width: 34px; padding: 0 9px; border-radius: 999px; cursor: pointer;
  font-size: 11px; font-weight: 600; color: var(--text-2);
  background: rgba(10, 16, 28, .55); border: 1px solid var(--line);
}
.wt-unit.on { color: #06121f; background: linear-gradient(90deg, #4ee8ff, #b88bff); border-color: transparent; }
.wt-leave-dlg { max-width: 340px; text-align: center; }
.wt-leave-dlg h3 { margin: 0 0 4px; }
.wt-leave-opt {
  display: block; width: 100%; height: 42px; margin-top: 7px; padding: 0 12px;
  border-radius: 11px; cursor: pointer; text-align: center;
  font-size: 12.5px; font-weight: 600; color: var(--text-1);
  background: rgba(10, 16, 28, .55); border: 1px solid var(--line);
}
.wt-leave-opt.on {
  color: #4ee8ff; border-color: rgba(78, 232, 255, .55);
  background: rgba(78, 232, 255, .08);
}
.wt-leave-dlg .wt-label { margin-top: 10px; }
.wt-leave-dlg .wt-input { margin-top: 4px; }
[data-theme="frost"] .wt-leave-type, [data-theme="snow"] .wt-leave-type,
[data-theme="frost"] .wt-leave-opt, [data-theme="snow"] .wt-leave-opt,
[data-theme="frost"] .wt-unit, [data-theme="snow"] .wt-unit { background: rgba(255, 255, 255, .72); color: var(--wt-ink, #0F1D2E); }
[data-theme="frost"] .wt-unit.on, [data-theme="snow"] .wt-unit.on { color: #06121f; }

/* 精确打卡切换 */
.wt-link {
  margin-top: 10px; padding: 0; background: none; border: none; cursor: pointer;
  font-size: 11.5px; color: #57d7f2; letter-spacing: .02em;
}
.wt-precise { margin-top: 10px; }

/* 记录标签（原始 / 已更正 / 更正单） */
.wt-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.wt-tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px;
  border-radius: 6px; font-size: 9.5px; letter-spacing: .02em;
  color: var(--text-2); background: rgba(120, 160, 200, .12);
  border: 1px solid rgba(120, 160, 200, .22);
}
.wt-tag-old { color: #d8a94a; background: rgba(216, 169, 74, .1); border-color: rgba(216, 169, 74, .34); }
.wt-tag-fix { color: #06121f; background: linear-gradient(90deg, #e8c46a, #f0a94a); border-color: transparent; font-weight: 700; }
.wt-rec-fixnote {
  margin: 6px 0 0; padding: 7px 9px; border-radius: 8px; font-size: 11px; line-height: 1.6;
  color: #f0cf8a; background: rgba(232, 196, 106, .08); border-left: 2px solid #e8c46a;
}
.wt-rec-super { opacity: .72; }
.wt-rec-super .wt-rec-meta b { text-decoration: line-through; text-decoration-color: rgba(216, 169, 74, .7); }
/* v3.0.3：更正单卡不再缩进（用户反馈凹进去不好看），保留金色左缘点缀 */
.wt-rec-correct { border-left: 2px solid #e8c46a; margin-left: 0; }
.wt-rec-leave .wt-rec-time { color: #b8a0ff; }
.wt-list-meta { margin: 0 0 8px; font-size: 10.5px; color: var(--text-3); letter-spacing: .02em; }
.wt-btn-off, .wt-btn:disabled.wt-btn-off { opacity: .5; cursor: default; }

/* 更正单弹窗 */
.wt-fixdlg { max-width: 360px; text-align: left; }
.wt-fixdlg h3, .wt-fixdlg > .wt-ok-sub { text-align: center; }
.wt-fix-orig {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 10px; margin: 8px 0 4px; border-radius: 9px;
  background: rgba(232, 196, 106, .07); border: 1px dashed rgba(232, 196, 106, .32);
  font-size: 11px; color: var(--text-2);
}
.wt-cycle-hint { margin: 4px 0 2px; }

/* 浅色主题：显式深色 */
[data-theme="frost"] .wt-daybar-arrow, [data-theme="snow"] .wt-daybar-arrow,
[data-theme="frost"] .wt-seg, [data-theme="snow"] .wt-seg,
[data-theme="frost"] .wt-shift, [data-theme="snow"] .wt-shift,
[data-theme="frost"] .wt-dur, [data-theme="snow"] .wt-dur,
[data-theme="frost"] .wt-num, [data-theme="snow"] .wt-num { background: rgba(255, 255, 255, .72); }
[data-theme="frost"] .wt-daybar-cur, [data-theme="snow"] .wt-daybar-cur { background: rgba(46, 134, 216, .08); border-color: rgba(46, 134, 216, .34); }
[data-theme="frost"] .wt-daybar-tx, [data-theme="snow"] .wt-daybar-tx,
[data-theme="frost"] .wt-shift b, [data-theme="snow"] .wt-shift b,
[data-theme="frost"] .wt-num, [data-theme="snow"] .wt-num { color: var(--wt-ink, #0F1D2E) !important; }
[data-theme="frost"] .wt-daybar-sub, [data-theme="frost"] .wt-shift span, [data-theme="frost"] .wt-link,
[data-theme="frost"] .wt-dur-hint, [data-theme="frost"] .wt-dur-unit,
[data-theme="snow"] .wt-daybar-sub, [data-theme="snow"] .wt-shift span, [data-theme="snow"] .wt-link,
[data-theme="snow"] .wt-dur-hint, [data-theme="snow"] .wt-dur-unit { color: var(--wt-ink-3, #5A6B80) !important; }
[data-theme="frost"] .wt-dur-val, [data-theme="snow"] .wt-dur-val { color: var(--wt-cyan-ink, #0E86B8) !important; }
[data-theme="frost"] .wt-seg-btn, [data-theme="snow"] .wt-seg-btn { color: var(--wt-ink-2, #3C4E63) !important; }
[data-theme="frost"] .wt-seg-btn.on, [data-theme="snow"] .wt-seg-btn.on,
[data-theme="frost"] .wt-num.on, [data-theme="snow"] .wt-num.on { color: #06121f !important; }
[data-theme="frost"] .wt-tag, [data-theme="snow"] .wt-tag { color: var(--wt-ink-2, #3C4E63); background: rgba(15, 29, 46, .06); border-color: rgba(15, 29, 46, .14); }
[data-theme="frost"] .wt-tag-old, [data-theme="snow"] .wt-tag-old { color: #8a6512; background: rgba(216, 169, 74, .14); border-color: rgba(216, 169, 74, .5); }
[data-theme="frost"] .wt-tag-fix, [data-theme="snow"] .wt-tag-fix { color: #4a3200; background: linear-gradient(90deg, #e8c46a, #f0a94a); }
[data-theme="frost"] .wt-rec-fixnote, [data-theme="snow"] .wt-rec-fixnote { color: #7a5a10; background: rgba(216, 169, 74, .12); }
[data-theme="frost"] .wt-fix-orig, [data-theme="snow"] .wt-fix-orig { color: var(--wt-ink-2, #3C4E63); background: rgba(216, 169, 74, .1); }
[data-theme="frost"] .wt-list-meta, [data-theme="snow"] .wt-list-meta { color: var(--wt-ink-3, #5A6B80); }

/* 全局规则 [class*="bar"] i 会把 .wt-daybar（类名含 bar 子串）里的 <i> 周六 小字
   当成进度点刷上流光渐变背景 —— 显式关闭，避免日期条出现色块 */
.wt-daybar i, .wt-daybar-cur i { background: none !important; animation: none !important; }

/* ==================== v2.99.1 全模块视觉整修（高级 · 整齐） ====================
   ①钢印两行排版（杜绝「更正已锁 定」丑断行） ②原始→更正成对展示改「金色竖线关联组」
   ③模块导航加实底不透字 ④卡片/按钮/标签规格统一：16px 圆角 · 12px 节奏 · 30px 按钮 */

/* 钢印：支持 \n 强制两行，行高收紧更工整 */
.wt-seal-tx { white-space: pre-line; line-height: 1.25; }

/* 成对关联组：原始记录 + 更正单 用一条金色竖线串起，整体缩进，
   一眼看出「下面这条是上面那条的更正」 */
.wt-pair {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  margin: 0 0 12px;
}
/* v3.0.3：取消缩进竖线（用户反馈「凹进去不好看，要上下一致」）——
   改为两卡之间一条居左的金点+短金线连接条，宽度与普通卡片完全一致 */
.wt-pair-link { display: flex; align-items: center; height: 14px; margin: -2px 0; }
.wt-pair-link::before {
  content: ''; flex: none; width: 9px; height: 9px; border-radius: 50%;
  background: rgba(232, 196, 106, .22); border: 1.5px solid rgba(232, 196, 106, .65);
}
.wt-pair-link::after { content: ''; flex: none; width: 30px; height: 2px; margin-left: 4px; border-radius: 2px; background: linear-gradient(90deg, rgba(232, 196, 106, .65), rgba(232, 196, 106, .12)); }
.wt-pair .wt-rec-correct { margin-left: 0; border-left: none; }
.wt-pair .wt-rec-super { opacity: .6; }
[data-theme="frost"] .wt-pair-link::before { background: rgba(216, 169, 74, .16); border-color: rgba(178, 128, 30, .7); }
[data-theme="frost"] .wt-pair-link::after { background: linear-gradient(90deg, rgba(178, 128, 30, .65), rgba(178, 128, 30, .15)); }
[data-theme] .wt-share-scope .wt-pair-link::before { background: rgba(232, 196, 106, .22) !important; border-color: rgba(232, 196, 106, .65) !important; }
[data-theme] .wt-share-scope .wt-pair-link::after { background: linear-gradient(90deg, rgba(232, 196, 106, .65), rgba(232, 196, 106, .12)) !important; }

/* 模块底部导航：加实底，滚动内容不再从背后透出显得杂乱 */
.wt-nav {
  background: rgba(11, 17, 30, .96);
  border-color: rgba(120, 200, 255, .34);
  box-shadow: 0 12px 32px rgba(2, 8, 20, .62), 0 0 0 1px rgba(2, 8, 20, .3);
  margin-top: 14px;
}
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .wt-nav { background: rgba(11, 17, 30, .93); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.wt-nav-btn { min-width: 62px; padding: 7px 9px 6px; }
.wt-nav-btn span { font-size: 10px; }

/* 卡片节奏统一：16px 圆角 · 14/15 内距 · 12px 间距 */
.wt-card { border-radius: 16px; padding: 14px 15px; margin-bottom: 12px; }
.wt-dash-grid { gap: 12px; }
.wt-page { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.wt-pt { margin-bottom: 14px; text-align: center; }
.wt-pt-main { font-size: 20px; }
.wt-pt-sub { text-align: center; }
.wt-sec-title { padding: 2px 2px 10px; font-size: 13.5px; }

/* 记录卡排版统一 */
.wt-rec-meta { gap: 8px; padding: 10px 0; }
.wt-kv b { font-size: 13.5px; }
.wt-tags { margin: 8px 0 2px; }
.wt-tag { height: 22px; padding: 0 10px; font-size: 10px; border-radius: 7px; }
.wt-rec-fixnote { padding: 8px 10px; border-radius: 9px; }
.wt-rec-foot { padding-top: 10px; flex-wrap: wrap; row-gap: 8px; }
/* v3.11.1 卡片内按钮行约束在卡宽内换行，不再溢出屏幕 */
.wt-rec-acts { flex-wrap: wrap; row-gap: 7px; min-width: 0; max-width: 100%; }
.wt-hash { font-size: 10.5px; }

/* 按钮规格统一：30px 高 · 10px 圆角 */
.wt-btn { height: 30px; padding: 0 13px; border-radius: 10px; font-size: 11.5px; }
.wt-btn-main { box-shadow: 0 4px 14px rgba(90, 160, 255, .28); }
.wt-btn .wt-ico { width: 13px; height: 13px; }
.wt-ok-acts .wt-btn { height: 36px; }

/* 台账筛选与打包按钮节奏 */
.wt-filter .wt-input { margin-bottom: 10px; }
.wt-chips { gap: 8px; }
.wt-chip { height: 28px; }
.wt-pack { margin-bottom: 14px; }
.wt-list-meta { margin-bottom: 10px; }

/* 浅色主题：关联组连接条加深（v3.0.3 改为金点连接条，旧竖线规则已移除） */

/* ==================== v2.99.3 金线外框 + 文字胶囊居中 + 成对卡等高 ==================== */

/* ① 每页一条大金线边框：把整页所有区块包进一只金色细框 */
.wt-page {
  border: 1.5px solid rgba(232, 196, 106, .5);
  border-radius: 20px;
  /* v3.11.9t 去掉 26px 外阴影 + 18px inset 模糊：「我的资产」页超长（2800px+，
     DPR 3 下超安卓 GPU 单纹理上限），大模糊阴影令合成层纹理超限 → 半截黑屏、
     滑动后 tile 重栅格时好时坏。仅保留金线描边。 */
  box-shadow: none;
  padding: 16px 12px calc(24px + env(safe-area-inset-bottom, 0px));
  margin-top: 6px;
  margin-bottom: 6px;
}
[data-theme="frost"] .wt-page, [data-theme="snow"] .wt-page {
  border-color: rgba(178, 128, 30, .55);
  box-shadow: 0 0 20px rgba(178, 128, 30, .12);
}

/* ---------- v3.11.9t 补贴 / 扣款项目（我的资产 · 对齐样板记月工资） ---------- */
.wt-aw-list { margin-top: 2px; }
.wt-aw-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 0; border-bottom: 1px dashed rgba(120, 200, 255, .16);
}
.wt-aw-row:last-child { border-bottom: 0; }
.wt-aw-name {
  flex: 1; min-width: 0; font-size: 12.5px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wt-aw-amt {
  width: 96px; flex: 0 0 96px; padding: 6px 8px; font-size: 12.5px; text-align: right;
}
.wt-aw-del {
  flex: none; padding: 4px 2px; border: 0; background: transparent;
  color: #e0808c; font-size: 11.5px; cursor: pointer;
}
.wt-aw-sum {
  display: flex; justify-content: space-between; align-items: center;
  margin: 8px 0 10px; padding: 8px 11px; border-radius: 10px;
  background: rgba(10, 16, 28, .5);
  border: 1px solid rgba(120, 200, 255, .18);
  font-size: 12px; color: var(--text-2);
}
.wt-aw-sum b { font-size: 14.5px; font-variant-numeric: tabular-nums; }
.wt-aw-sum b.ok { color: #57d7f2; }
.wt-aw-sum b.warn { color: #e0808c; }

/* 选择面板（预设项勾选 + 自定义添加） */
.wt-picker-list {
  margin: 10px 0 12px; max-height: 46vh; overflow-y: auto;
  border-radius: 12px; border: 1px solid rgba(120, 200, 255, .18);
  background: rgba(10, 16, 28, .35);
}
.wt-picker-row {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 12px 13px; border: 0; border-bottom: 1px solid rgba(120, 200, 255, .1);
  background: transparent; text-align: left;
  color: var(--text-2); font-size: 13.5px; cursor: pointer;
}
.wt-picker-row:last-child { border-bottom: 0; }
.wt-picker-row.on { color: var(--text); background: rgba(78, 232, 255, .06); }
.wt-picker-chk {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid rgba(120, 200, 255, .35);
  display: grid; place-items: center; font-size: 12px; color: transparent;
  transition: background .15s, border-color .15s;
}
.wt-picker-row.on .wt-picker-chk { background: #2f7bff; border-color: #2f7bff; color: #fff; }
.wt-picker-cus { display: flex; gap: 8px; }
.wt-picker-cus .wt-input { flex: 1; min-width: 0; }
.wt-picker-cus .wt-btn { flex: none; }

/* ② 文字胶囊：全站说明性文字统一居中 + 胶囊边框
   （页面主/副标题 · 区块标题 · 时薪快照 · 统计行 · 温馨提示 · 底部声明 · 公示说明 · 周期提示） */
.wt-pt, .wt-pt-main, .wt-sec-title, .wt-dash-sub, .wt-warn, .wt-foot,
.wt-list-meta, .wt-share-note, .wt-cycle-hint {
  display: block; width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(120, 200, 255, .30);
  background: rgba(10, 16, 28, .45);
}
.wt-pt-sub { margin-top: 4px; }
/* v3.4.1 标题胶囊合并：大标题与小字共用 .wt-pt 一个胶囊，内部文字不再各自带框 */
.wt-pt .wt-pt-main, .wt-pt .wt-pt-sub {
  border: 0; background: none; padding: 0; width: auto; display: block;
}
.wt-sec-title { margin: 6px auto 12px; }
.wt-warn { margin-top: 12px; }
.wt-foot { margin-top: 14px; }
.wt-list-meta { margin-bottom: 12px; }
.wt-cycle-hint { margin: 10px auto 4px; }
/* 其余文字块仅居中（表单标签 / 统计页周期元信息） */
.wt-label { text-align: center; }
.wt-cyc-meta { justify-content: center; }

/* ③ 成对关联组：原始记录卡与更正单卡上下等高 */
.wt-pair { align-items: stretch; }
.wt-pair .wt-card { flex: 1 1 auto; display: flex; flex-direction: column; }

/* 浅色主题：胶囊底与描边 */
[data-theme="frost"] .wt-pt, [data-theme="frost"] .wt-sec-title,
[data-theme="frost"] .wt-dash-sub, [data-theme="frost"] .wt-warn, [data-theme="frost"] .wt-foot,
[data-theme="frost"] .wt-list-meta, [data-theme="frost"] .wt-share-note, [data-theme="frost"] .wt-cycle-hint,
[data-theme="snow"] .wt-pt, [data-theme="snow"] .wt-sec-title,
[data-theme="snow"] .wt-dash-sub, [data-theme="snow"] .wt-warn, [data-theme="snow"] .wt-foot,
[data-theme="snow"] .wt-list-meta, [data-theme="snow"] .wt-share-note, [data-theme="snow"] .wt-cycle-hint {
  background: rgba(255, 255, 255, .66);
  border-color: rgba(15, 29, 46, .18);
}

/* ==================== v3.0.0 月历 / 工时制度 / 工作日设定 ==================== */
/* 六页导航：加「月历」后收窄按钮保证窄屏不溢出 */
.wt-nav-btn { min-width: 52px; padding: 6px 6px 5px; }

/* ---- 月历 ---- */
.wt-cal-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 2px 12px; }
.wt-cal-title { font-size: 16px; font-weight: 800; letter-spacing: .04em; color: var(--text); }
.wt-cal-arrow { width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(120, 200, 255, .25); background: rgba(10, 16, 28, .5); color: var(--text); font-size: 17px; cursor: pointer; }
.wt-cal-arrow:disabled { opacity: .35; cursor: default; }
.wt-cal-card { padding: 10px 10px 12px; }
.wt-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wt-cal-wk { text-align: center; font-size: 10px; color: var(--text-3); padding: 4px 0 6px; font-style: normal; letter-spacing: .05em; }
.wt-cal-empty { min-height: 44px; }
.wt-cal-day {
  position: relative; min-height: 46px; border: 1px solid transparent; border-radius: 9px;
  background: rgba(120, 200, 255, .05); color: var(--text); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 0 15px;
}
.wt-cal-day b { font-size: 13px; font-weight: 700; }
.wt-cal-day.has { background: rgba(120, 200, 255, .09); }
.wt-cal-badge {
  position: absolute; bottom: 3px; font-style: normal; font-size: 9px; font-weight: 700; line-height: 1;
  padding: 2px 4px; border-radius: 5px; background: rgba(77, 232, 255, .16); color: #7dd7ff;
}
.wt-cal-badge.ot { background: rgba(255, 138, 60, .2); color: #ffb377; }
.wt-cal-day.today { border-color: #4ee8ff; background: rgba(78, 232, 255, .12); box-shadow: 0 0 8px rgba(78, 232, 255, .25); }
.wt-cal-day.off { opacity: .5; }
.wt-cal-day.future { opacity: .32; }
.wt-cal-sum { margin-top: 12px; }
.wt-cal-miss { margin-top: 10px; }
.wt-cal-miss.ok { color: #5ee6a0; }

/* ---- 工时制度 ---- */
.wt-wm-list { display: flex; flex-direction: column; gap: 8px; }
.wt-wm {
  display: block; width: 100%; box-sizing: border-box; text-align: left; cursor: pointer;
  border: 1px solid rgba(120, 200, 255, .22); background: rgba(10, 16, 28, .45);
  border-radius: 12px; padding: 10px 12px; color: var(--text);
}
.wt-wm b { font-size: 14px; font-weight: 800; letter-spacing: .03em; }
.wt-wm span { display: block; margin-top: 3px; font-size: 11px; line-height: 1.55; color: var(--text-3); }
.wt-wm .wt-wm-tag { float: right; margin-top: 1px; display: inline-block; font-size: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(78, 232, 255, .14); color: #57d7f2; font-weight: 700; }
.wt-wm.on { border-color: rgba(78, 232, 255, .65); background: rgba(78, 232, 255, .09); box-shadow: inset 0 0 0 1px rgba(78, 232, 255, .25); }
.wt-wm:disabled { opacity: .55; cursor: not-allowed; }

/* ---- 工作日设定 ---- */
.wt-wd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wt-wd {
  height: 38px; border-radius: 10px; cursor: pointer; font-size: 12.5px; font-weight: 700;
  border: 1px solid rgba(120, 200, 255, .22); background: rgba(10, 16, 28, .45); color: var(--text-3);
}
.wt-wd.on { border-color: rgba(78, 232, 255, .65); background: rgba(78, 232, 255, .12); color: var(--text); box-shadow: inset 0 0 0 1px rgba(78, 232, 255, .25); }

/* ---- 浅色主题适配 ---- */
[data-theme="frost"] .wt-cal-arrow, [data-theme="snow"] .wt-cal-arrow,
[data-theme="frost"] .wt-wm, [data-theme="snow"] .wt-wm,
[data-theme="frost"] .wt-wd, [data-theme="snow"] .wt-wd { background: rgba(255, 255, 255, .6); border-color: rgba(15, 29, 46, .18); }
[data-theme="frost"] .wt-cal-title, [data-theme="snow"] .wt-cal-title { color: var(--wt-ink, #0F1D2E); }
[data-theme="frost"] .wt-cal-day, [data-theme="snow"] .wt-cal-day { background: rgba(15, 29, 46, .05); color: var(--wt-ink, #0F1D2E); }
[data-theme="frost"] .wt-cal-day.has, [data-theme="snow"] .wt-cal-day.has { background: rgba(15, 29, 46, .09); }
[data-theme="frost"] .wt-cal-day.today, [data-theme="snow"] .wt-cal-day.today { border-color: #1a86c7; background: rgba(26, 134, 199, .1); box-shadow: none; }
[data-theme="frost"] .wt-cal-badge, [data-theme="snow"] .wt-cal-badge { background: rgba(26, 134, 199, .14); color: #17699c; }
[data-theme="frost"] .wt-cal-badge.ot, [data-theme="snow"] .wt-cal-badge.ot { background: rgba(199, 106, 26, .16); color: #a35a17; }
[data-theme="frost"] .wt-wd.on, [data-theme="snow"] .wt-wd.on,
[data-theme="frost"] .wt-wm.on, [data-theme="snow"] .wt-wm.on { background: rgba(26, 134, 199, .1); border-color: rgba(26, 134, 199, .55); color: var(--wt-ink, #0F1D2E); }
[data-theme="frost"] .wt-wm .wt-wm-tag, [data-theme="snow"] .wt-wm .wt-wm-tag { background: rgba(26, 134, 199, .12); color: #17699c; }

/* ==================== v3.0.1 公示页主题锁定 / 表单标签胶囊 / 制度卡示例 ==================== */
/* ---- 表单文字标题：细胶囊边框（与全站胶囊语言统一） ---- */
.wt-label {
  display: block; width: 100%; box-sizing: border-box; text-align: center;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(120, 200, 255, .22);
  background: rgba(10, 16, 28, .35);
  margin: 10px 0 6px;
}
.wt-label:first-child { margin-top: 0; }
[data-theme="frost"] .wt-label, [data-theme="snow"] .wt-label {
  background: rgba(255, 255, 255, .6); border-color: rgba(15, 29, 46, .16);
}

/* ---- 工时制度卡：示例文案两行排版 ---- */
.wt-wm span { white-space: pre-line; }
.wt-wm b { display: inline-block; }

/* ---- 公示只读页：锁定深空玻璃主题（不随访客端 wine/frost 等主题漂移） ---- */
/* 说明：[data-theme] 前缀提高优先级，压过任意访客主题的浅色覆盖 */
[data-theme] .wt-share-scope .wt-card, [data-theme] .wt-share-scope.wt-card {
  background: rgba(10, 16, 28, .55);
  border-color: rgba(120, 200, 255, .28);
  color: #e6eefc;
}
[data-theme] .wt-share-scope .wt-kv i { color: rgba(150, 190, 230, .75); }
[data-theme] .wt-share-scope .wt-kv b, [data-theme] .wt-share-scope .wt-rec-date b,
[data-theme] .wt-share-scope .wt-hash { color: #e6eefc; }
[data-theme] .wt-share-scope .wt-kv.hl b { color: #4ee8ff; }
[data-theme] .wt-share-scope .wt-pt, [data-theme] .wt-share-scope .wt-pt-main,
[data-theme] .wt-share-scope .wt-share-note, [data-theme] .wt-share-scope .wt-foot,
[data-theme] .wt-share-scope .wt-list-meta, [data-theme] .wt-share-scope .wt-dead-tx {
  background: rgba(10, 16, 28, .45);
  border-color: rgba(120, 200, 255, .3);
  color: #cfe4ff;
}
[data-theme] .wt-share-scope .wt-pt-main { color: #fff !important; }
[data-theme] .wt-share-scope .wt-pt-sub { color: #cfe4ff !important; }
[data-theme] .wt-share-scope .wt-tag {
  background: rgba(78, 232, 255, .1); border-color: rgba(78, 232, 255, .35); color: #7dd7ff;
}
[data-theme] .wt-share-scope .wt-tag-old { color: #e8c46a; background: rgba(216, 169, 74, .1); border-color: rgba(216, 169, 74, .5); }
[data-theme] .wt-share-scope .wt-tag-fix { color: #4a3200; background: linear-gradient(90deg, #e8c46a, #f0a94a); border-color: transparent; }
[data-theme] .wt-share-scope .wt-btn-line {
  background: rgba(10, 16, 28, .4); border-color: rgba(78, 232, 255, .45); color: #57d7f2;
}
[data-theme] .wt-share-scope .wt-seal { color: #57d7f2 !important; }
[data-theme] .wt-share-scope .wt-pair, [data-theme] .wt-share-scope .wt-pair .wt-card { border-color: rgba(120, 200, 255, .28); }
[data-theme] .wt-share-scope .wt-hint, [data-theme] .wt-share-scope .wt-about { color: rgba(170, 205, 240, .8); background: none; border: none; }
[data-theme] .wt-share-scope .wt-rec-fixnote { background: rgba(216, 169, 74, .08); color: #e8c46a; }
[data-theme] .wt-share-scope .wt-dead-box .wt-dead-ico { color: #57d7f2; }

/* 公示页整页底色：不透明深空渐变，任何访客主题下都呈现统一的深色玻璃质感 */
[data-theme] .wt-share-scope {
  background: linear-gradient(168deg, rgba(7, 13, 26, .96) 0%, rgba(13, 11, 28, .96) 60%, rgba(7, 13, 26, .96) 100%) !important;
  box-shadow: inset 0 0 40px rgba(2, 8, 20, .6);
}

/* 公示页文字终局锁定：压过浅色主题的 !important 规则（本块位于文件末尾，同权重后到者胜） */
[data-theme] .wt-share-scope .wt-kv i { color: rgba(150, 190, 230, .8) !important; }
[data-theme] .wt-share-scope .wt-kv b { color: #e6eefc !important; }
[data-theme] .wt-share-scope .wt-kv.hl b, [data-theme] .wt-share-scope .wt-money { color: #4ee8ff !important; }
[data-theme] .wt-share-scope .wt-rec-date b { color: #fff !important; }
[data-theme] .wt-share-scope .wt-rec-time { color: rgba(170, 205, 240, .85) !important; }
[data-theme] .wt-share-scope .wt-rec-content { color: #e6eefc !important; }
[data-theme] .wt-share-scope .wt-hash { color: rgba(140, 190, 240, .85) !important; }
[data-theme] .wt-share-scope .wt-share-note, [data-theme] .wt-share-scope .wt-foot,
[data-theme] .wt-share-scope .wt-dead-tx, [data-theme] .wt-share-scope .wt-list-meta { color: #cfe4ff !important; }
[data-theme] .wt-share-scope .wt-hint, [data-theme] .wt-share-scope .wt-about { color: rgba(170, 205, 240, .85) !important; }
[data-theme] .wt-share-scope .wt-income i { color: rgba(170, 205, 240, .85) !important; }
[data-theme] .wt-share-scope .wt-money-lg { color: #4ee8ff !important; }
[data-theme] .wt-share-scope .wt-seal { color: #57d7f2 !important; }
[data-theme] .wt-share-scope .wt-btn-line { background: rgba(10, 16, 28, .4) !important; border-color: rgba(78, 232, 255, .45) !important; color: #57d7f2 !important; }
[data-theme] .wt-share-scope .wt-tag { background: rgba(78, 232, 255, .1) !important; border-color: rgba(78, 232, 255, .35) !important; color: #7dd7ff !important; }
[data-theme] .wt-share-scope .wt-tag-old { color: #e8c46a !important; background: rgba(216, 169, 74, .1) !important; border-color: rgba(216, 169, 74, .5) !important; }
[data-theme] .wt-share-scope .wt-tag-fix { color: #4a3200 !important; background: linear-gradient(90deg, #e8c46a, #f0a94a) !important; border-color: transparent !important; }

/* ==================== v3.1.0 计件 / 工地记工 / 借支结算 ==================== */
.wt-daybtn {
  flex: 1; min-width: 52px; height: 42px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(120, 200, 255, .25); background: rgba(10, 16, 28, .5); color: var(--text-2);
}
.wt-daybtn b { font-size: 12.5px; font-weight: 700; }
.wt-daybtn.on { border-color: #4ee8ff; background: rgba(78, 232, 255, .1); color: var(--text); box-shadow: 0 0 10px rgba(78, 232, 255, .18); }
[data-theme="frost"] .wt-daybtn, [data-theme="snow"] .wt-daybtn { background: rgba(255, 255, 255, .6); border-color: rgba(15, 29, 46, .18); }
[data-theme="frost"] .wt-daybtn.on, [data-theme="snow"] .wt-daybtn.on { background: rgba(26, 134, 199, .1); border-color: rgba(26, 134, 199, .55); color: var(--wt-ink, #0F1D2E); }
.wt-rec-flow { border-left: 2px solid #b8a0ff; }
[data-theme="frost"] .wt-rec-flow, [data-theme="snow"] .wt-rec-flow { border-left-color: #7c5cd6; }

/* ================================================================
   v3.3.0 更正申请进度（台账页提示条 + 申请列表弹窗）
   ================================================================ */
.wt-corr-tip {
  display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 12px; padding: 11px 14px;
  border-radius: 14px; cursor: pointer; text-align: left;
  background: linear-gradient(100deg, rgba(217, 196, 138, .12), rgba(78, 232, 255, .05));
  border: 1px solid rgba(217, 196, 138, .34); color: var(--text, #e8f0ff);
  transition: border-color .2s ease, transform .2s ease;
}
.wt-corr-tip:hover { border-color: rgba(217, 196, 138, .6); transform: translateY(-1px); }
.wt-corr-tip-ico { font-size: 15px; color: #ffd76a; flex: 0 0 auto; }
.wt-corr-tip-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.wt-corr-tip-txt b { font-size: 12.5px; font-weight: 600; }
.wt-corr-tip-txt span { font-size: 11px; opacity: .62; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wt-corr-tip-more { font-size: 11.5px; color: #ffd76a; flex: 0 0 auto; }

.wt-corrdlg { max-height: 76vh; overflow: auto; }
.wt-corrlist { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 4px; }
.wt-corrrow {
  padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .035);
}
.wt-corrrow.wait { border-color: rgba(217, 196, 138, .38); }
.wt-corrrow.ok { border-color: rgba(99, 214, 196, .38); }
.wt-corrrow.no { border-color: rgba(240, 113, 127, .38); }
.wt-corrrow-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wt-corrrow-date { font-size: 13px; font-weight: 600; letter-spacing: .3px; }
.wt-corrrow-st { font-size: 11px; padding: 1px 9px; border-radius: 999px; border: 1px solid currentColor; opacity: .9; }
.wt-corrrow.wait .wt-corrrow-st { color: #ffd76a; }
.wt-corrrow.ok .wt-corrrow-st { color: #63d6c4; }
.wt-corrrow.no .wt-corrrow-st { color: #f0717f; }
.wt-corrrow-sub { font-size: 11.5px; opacity: .72; margin-top: 5px; }
.wt-corrrow-note { font-size: 11.5px; margin-top: 3px; color: #9fd4ff; }

/* ==================== v3.5.0 链上记账本（lg-*） ====================
 * 个人收支记账：延续 wt-* 玻璃卡片体系，冰蓝=收入 / 暖橙=支出 / 青灰=转账。 */
.lg-rec { cursor: pointer; }
.lg-rec-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lg-rec-side { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lg-rec-kind { font-size: 12px; letter-spacing: .05em; }
.lg-rec-amt { font-size: 17px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.lg-amt-in { color: #4ecbff; }
.lg-amt-out { color: #ffab5e; }
.lg-amt-tr { color: #9fb6cc; }
.lg-rec-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; font-size: 11.5px; color: var(--text-3); }
.lg-cat { padding: 1px 9px; border-radius: 999px; background: rgba(110,180,255,.1); border: 1px solid rgba(130,200,255,.25); font-size: 11px; color: #9fd0ff; }
.lg-rec-note { margin: 7px 0 0; font-size: 12.5px; color: var(--text-2); word-break: break-all; }
.lg-rec.lg-compact .lg-rec-amt { font-size: 15px; }

/* 确权徽章：灰=排队存证 | 发光蓝=已上链 */
.lg-badge { display: inline-flex; align-items: center; padding: 1px 9px; border-radius: 999px; font-size: 10.5px; letter-spacing: .04em; border: 1px solid rgba(255,255,255,.22); color: rgba(200,215,230,.75); background: rgba(255,255,255,.04); }
.lg-badge-on { border-color: rgba(110,185,255,.55); color: #8ec9ff; background: rgba(90,170,255,.1); box-shadow: 0 0 10px rgba(90,170,255,.22); animation: lg-breath 3.4s ease-in-out infinite; }
.lg-badge-corr { border-color: rgba(217,196,138,.45); color: #e8c46a; background: rgba(216,169,74,.08); }
.lg-badge-old { border-color: rgba(240,113,127,.4); color: #f0717f; background: rgba(240,113,127,.06); }
@keyframes lg-breath { 0%, 100% { box-shadow: 0 0 8px rgba(90,170,255,.16); } 50% { box-shadow: 0 0 14px rgba(90,170,255,.32); } }

/* 哈希行 / 键值对 */
.wt-hash-row { display: flex; align-items: center; gap: 8px; margin-top: 7px; cursor: pointer; }
.wt-hash-row i { font-size: 11px; color: var(--text-3); flex: 0 0 auto; }
.lg-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; margin-top: 10px; }
.lg-kv div { display: flex; flex-direction: column; gap: 2px; }
.lg-kv i { font-size: 11px; color: var(--text-3); font-style: normal; }
.lg-kv b { font-size: 12.5px; word-break: break-all; }
.lg-kv-sum { grid-template-columns: 1fr 1fr; }

/* 快捷操作 */
.lg-quick { display: flex; gap: 8px; margin: 0 0 12px; }
.lg-quick-btn {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 12px 4px 10px; border-radius: 13px; cursor: pointer; appearance: none;
  background: linear-gradient(180deg, rgba(190,225,255,.12), rgba(70,110,160,.08));
  border: 1px solid rgba(150,205,255,.26); color: var(--text-1);
  transition: transform .16s ease, border-color .16s ease;
}
.lg-quick-btn:active { transform: scale(.97); border-color: rgba(170,215,255,.55); }
.lg-quick-btn .wt-ico svg { width: 19px; height: 19px; }
.lg-quick-btn span:last-child { font-size: 11px; letter-spacing: .04em; }

/* 图表 */
.lg-chart, .lg-chart-card canvas { width: 100%; height: auto; display: block; }
.lg-pie-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.lg-pie-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.lg-pie-name { flex: 1 1 auto; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-pie-row b { font-size: 12.5px; }
.lg-pie-row em { font-size: 11px; font-style: normal; color: var(--text-3); width: 46px; text-align: right; }

/* 预算进度条 */
.lg-budget-row { margin: 9px 0 2px; }
.lg-budget-head { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.lg-budget-head span { flex: 1 1 auto; }
.lg-budget-head b { font-weight: 700; }
.lg-budget-bar { height: 7px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: 5px; }
.lg-budget-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #4ecbff, #7d9bff); transition: width .4s ease; }
.lg-budget-bar i.over { background: linear-gradient(90deg, #ffab5e, #ff7d9b); }

/* 记一笔表单 */
.lg-entry { padding: 4px 2px; max-height: 78vh; overflow: auto; }
.lg-entry-title { margin: 2px 0 10px; font-size: 16px; letter-spacing: .04em; }
.lg-seg { display: flex; gap: 6px; margin-bottom: 12px; }
.lg-seg-btn {
  flex: 1 1 0; padding: 9px 0; border-radius: 11px; font-size: 13px; cursor: pointer; appearance: none;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.12); color: var(--text-2);
}
.lg-seg-btn.on { border-color: rgba(110,185,255,.6); color: #8ec9ff; background: rgba(90,170,255,.12); font-weight: 700; }
.lg-seg-sm .lg-seg-btn { padding: 7px 0; font-size: 12px; }
.lg-amt-input, .lg-input {
  width: 100%; box-sizing: border-box; margin: 6px 0 12px; padding: 11px 13px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); color: var(--text-1);
  font-size: 15px; outline: none;
}
.lg-amt-input { font-size: 22px; font-weight: 800; letter-spacing: .04em; }
.lg-amt-input:focus, .lg-input:focus { border-color: rgba(110,185,255,.55); }
.lg-input.lg-note { resize: vertical; min-height: 52px; font-size: 13.5px; }
.lg-dt-row { display: flex; gap: 10px; }
.lg-dt-row > div { flex: 1 1 0; min-width: 0; }
.lg-dt-row .lg-input { margin-top: 6px; }
/* v3.11.1 预算月份行：label 置顶左对齐、选择器全宽，高度统一 */
.lg-month-row { display: block; margin-bottom: 12px; }
.lg-month-row .wt-label { text-align: left; margin: 0 0 6px; }
.lg-month-row .lg-input { margin: 0; }
.lg-cat-btn {
  width: 100%; box-sizing: border-box; margin: 6px 0 12px; padding: 11px 13px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.22); color: var(--text-2);
  font-size: 13.5px; text-align: left; cursor: pointer; appearance: none;
}
.lg-cat-btn.picked { border-style: solid; border-color: rgba(110,185,255,.55); color: #8ec9ff; }
.lg-cat-pick { padding: 4px 2px; max-height: 60vh; overflow: auto; }
.lg-cat-opt {
  width: 100%; box-sizing: border-box; margin: 6px 0; padding: 11px 13px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); color: var(--text-1);
  font-size: 14px; text-align: left; cursor: pointer; appearance: none;
}
.lg-cat-opt.on { border-color: rgba(110,185,255,.6); color: #8ec9ff; background: rgba(90,170,255,.12); }
.lg-file { font-size: 12px; color: var(--text-3); margin: 6px 0; }
.lg-atts { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.lg-att { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(110,180,255,.1); border: 1px solid rgba(130,200,255,.25); font-size: 11.5px; color: #9fd0ff; max-width: 100%; overflow: hidden; }
.lg-att span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-att-del { border: 0; background: none; color: #f0717f; font-size: 14px; cursor: pointer; padding: 0 2px; }
.lg-submit { width: 100%; margin-top: 4px; }
.lg-intro .wt-dash-sub { margin: 0; }

/* 筛选与列表 */
.lg-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; }
.lg-filters .lg-seg { flex: 1 1 100%; margin-bottom: 0; }
.lg-select {
  flex: 1 1 auto; min-width: 0; padding: 8px 10px; border-radius: 11px; font-size: 12.5px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); color: var(--text-1); appearance: none;
}
.lg-search { flex: 1 1 100%; margin: 0; padding: 9px 12px; font-size: 13px; }
.lg-list { display: flex; flex-direction: column; }
.lg-sum-line { font-size: 12px; color: var(--text-2); letter-spacing: .02em; }

/* 详情档案 */
.lg-archive { position: relative; overflow: hidden; }
.lg-archive::before { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 22px rgba(90,170,255,.07); }
.lg-chain-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px dashed rgba(255,255,255,.09); font-size: 12px; }
.lg-chain-row:first-of-type { border-top: 0; }
.lg-chain-row.on { color: #8ec9ff; }
.lg-chain-role { flex: 0 0 auto; padding: 1px 8px; border-radius: 999px; background: rgba(216,169,74,.1); border: 1px solid rgba(217,196,138,.4); font-size: 10.5px; color: #e8c46a; }
.lg-chain-row b { flex: 1 1 auto; }
.lg-att-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px dashed rgba(255,255,255,.09); font-size: 12px; }
.lg-att-row a { color: #8ec9ff; text-decoration: none; flex: 0 0 auto; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-att-row code { overflow: hidden; text-overflow: ellipsis; }
.lg-detail-acts { flex-wrap: wrap; }
.lg-danger { color: #f0717f !important; }
.lg-logs { max-height: 46vh; overflow: auto; }
.lg-chk { display: flex; align-items: center; gap: 7px; margin: 10px 0; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.lg-share-card .wt-ok-acts { flex-wrap: wrap; }

/* 公开对账页深空主题锁定（与工时公示同款） */
.wt-page.lg-share-scope .lg-badge { border-color: rgba(120,200,255,.3); color: #cfe4ff; background: rgba(10,16,28,.45); }
.wt-page.lg-share-scope .lg-badge-on { border-color: rgba(110,185,255,.55); color: #8ec9ff; }
.wt-page.lg-share-scope .lg-cat { color: #9fd0ff; }
.wt-page.lg-share-scope .lg-rec-note, .wt-page.lg-share-scope .lg-rec-meta { color: #b9d4f2; }

/* ==================== v3.5.0 云键盘加高（用户新功能持续入键盘） ====================
 * 功能键从 9 枚扩到 10 枚（新增「链上记账」），键帽与面板同步加高，4/5/余数行铺开不拥挤。 */
.cloud-kb { padding: 16px 12px 16px; }
.cloud-kb-row { gap: 8px; margin-top: 8px; }
.cloud-key { padding: 14px 2px 12px; border-radius: 13px; gap: 5px; }
.cloud-key-ico svg { width: 20px; height: 20px; }
.cloud-key-name { font-size: 12px; }
.fab-cloudkb .cloud-kb { max-height: calc(100% - 130px); overflow-y: auto; }
.lg-cat-panel { margin: -6px 0 12px; padding: 4px 6px 6px; border-radius: 12px; border: 1px solid rgba(130,200,255,.2); background: rgba(10,16,28,.35); }
.lg-cat-panel .lg-cat-opt { margin: 5px 0; }

/* ==================== v3.6.0 工时个性化：音效 / 漏记 / 农历 / 定时提醒 ==================== */
/* 月历：农历小字 */
.wt-cal-lunar {
  font-style: normal; font-size: 8.5px; line-height: 1; letter-spacing: .02em;
  color: var(--text-3, #7f94ab); transform: scale(.92); white-space: nowrap;
}
.wt-cal-day.today .wt-cal-lunar { color: #7dd7ff; }
/* 月历：漏记的工作日 → 右上角红色小点 + 微红底 */
.wt-cal-day.miss { background: rgba(240, 113, 127, .07); }
.wt-cal-day.miss::after {
  content: ''; position: absolute; top: 4px; right: 5px;
  width: 6px; height: 6px; border-radius: 50%;
  background: #f0717f; box-shadow: 0 0 5px rgba(240, 113, 127, .55);
}
/* 我的资产 · 个性化设置 */
.wt-prefs { display: flex; flex-direction: column; gap: 4px; }
.wt-prefs .wt-sec-title { margin-bottom: 6px; }
.wt-pref-row {
  display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box;
  padding: 12px 4px; border: 0; border-top: 1px dashed rgba(255, 255, 255, .08);
  background: none; color: var(--text); font-size: 13.5px; text-align: left; cursor: pointer;
}
.wt-pref-row:first-of-type { border-top: 0; }
.wt-pref-row .wt-switch-tx { flex: 1 1 auto; }
.wt-pref-tx { flex: 1 1 auto; }
.wt-pref-val { font-size: 12px; color: var(--text-3, #7f94ab); }
.wt-pref-arrow { color: var(--text-3, #7f94ab); font-size: 15px; }

/* ==================== 报价订单存证 + 应收欠款台账（v3.7.0） ==================== */
/* 表单 */
.q-form { padding: 6px 2px; }
.q-field { margin: 0 0 4px; }
.q-field .wt-input { margin: 6px 0 12px; }
.q-row2 { display: flex; gap: 10px; }
.q-row2 > .q-field { flex: 1 1 0; min-width: 0; }
.q-ta { resize: vertical; min-height: 46px; font-size: 13.5px; }

/* 明细行 */
.q-items { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 10px; }
.q-item-row { display: flex; align-items: center; gap: 8px; }
.q-item-row .wt-input { margin: 0; }
.q-item-row .wt-input:not(.q-qty):not(.q-price) { flex: 1 1 auto; min-width: 0; }
.q-qty { width: 64px; flex: 0 0 64px; }
.q-price { width: 92px; flex: 0 0 92px; }
.q-item-sub { flex: 0 0 auto; min-width: 74px; text-align: right; font-size: 12.5px; color: #8ec9ff; font-variant-numeric: tabular-nums; }
.q-item-del { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(255,120,140,.35); background: rgba(255,120,140,.1); color: #ff9ab0; font-size: 15px; cursor: pointer; }
.q-add-item { margin: 2px 0 14px; }
.q-total { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 14px; margin: 4px 0 14px; border-radius: 14px; background: rgba(110,185,255,.07); border: 1px solid rgba(130,200,255,.25); }
.q-total i { font-style: normal; font-size: 13px; color: var(--text-2); }
.q-total b { font-size: 21px; font-weight: 800; color: #ffd98a; font-variant-numeric: tabular-nums; }
.q-total .q-diff { font-size: 12.5px; color: var(--text-3); font-style: normal; margin-left: 10px; }

/* 付款方式 */
.q-paybox { margin: 4px 0 12px; }

/* 自动挂应收开关行 */
.q-recv-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 8px 0 14px; border-radius: 14px; background: rgba(94,217,168,.06); border: 1px solid rgba(94,217,168,.25); }
.q-recv-row b { font-size: 13.5px; color: var(--text-1); }
.q-switch { flex: 0 0 auto; position: relative; width: 52px; height: 28px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); cursor: pointer; transition: all .18s; }
.q-switch .q-switch-txt { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 9.5px; color: var(--text-3); }
.q-switch.on { background: rgba(94,217,168,.28); border-color: rgba(94,217,168,.65); }
.q-switch.on .q-switch-txt { right: auto; left: 8px; color: #5ed9a8; }
.q-switch::after { content: ''; position: absolute; top: 2px; right: 3px; width: 21px; height: 21px; border-radius: 50%; background: rgba(255,255,255,.85); transition: all .18s; }
.q-switch.on::after { right: auto; left: 3px; background: #5ed9a8; }

/* 列表卡片 */
.q-card { cursor: default; }
.q-card-no { font-size: 13.5px; letter-spacing: .04em; color: var(--text-1); font-variant-numeric: tabular-nums; }
.q-card-amt { font-size: 16.5px; font-weight: 800; color: #ffd98a; font-variant-numeric: tabular-nums; }
.q-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 2px; font-size: 14.5px; color: var(--text-1); }
.q-card-meta2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 3px 0 0; font-size: 12px; color: var(--text-3); }
.q-st { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; border: 1px solid; }
.q-st-pending { color: #8ec9ff; border-color: rgba(110,185,255,.45); background: rgba(90,170,255,.1); }
.q-st-ok { color: #5ed9a8; border-color: rgba(94,217,168,.5); background: rgba(94,217,168,.1); box-shadow: 0 0 12px rgba(94,217,168,.18); }
.q-st-reject { color: #ff9ab0; border-color: rgba(255,120,140,.4); background: rgba(255,120,140,.08); }
.q-st-void { color: var(--text-3); border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.05); }
.q-st-chg { color: #ffcf7a; border-color: rgba(255,190,90,.4); background: rgba(255,190,90,.08); }
.q-st-ok-t { color: #5ed9a8; }
.q-st-pending-t { color: #8ec9ff; }
.q-st-reject-t { color: #ff9ab0; }
.q-src-chip { display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; color: var(--text-3); border: 1px solid rgba(255,255,255,.14); }
.q-src-chip.from-quote { color: #8ec9ff; border-color: rgba(110,185,255,.4); background: rgba(90,170,255,.08); }

/* 详情档案 */
.q-modal { max-height: 82vh; overflow: auto; }
.q-detail .wt-card { margin: 10px 0; }
.q-modal .q-kv { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,.07); font-size: 13px; }
.q-kv span { flex: 0 0 92px; color: var(--text-3); font-size: 12px; }
.q-kv b { flex: 1 1 auto; color: var(--text-1); font-weight: 600; word-break: break-all; }
.q-kv-wide b { font-weight: 500; color: var(--text-2); }
.q-item-line { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,.07); font-size: 13px; }
.q-item-line span { flex: 1 1 auto; color: var(--text-1); }
.q-item-line em { font-style: normal; flex: 0 0 auto; color: var(--text-3); font-size: 12px; }
.q-item-line b { flex: 0 0 auto; color: var(--text-2); font-variant-numeric: tabular-nums; font-weight: 600; }
.q-item-line-total { border-bottom: 0; margin-top: 2px; }
.q-item-line-total span { color: var(--text-2); font-weight: 700; }
.q-item-line-total b { color: #ffd98a; font-size: 15.5px; font-weight: 800; }
.q-att-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.q-att-grid img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); cursor: pointer; }
.q-rc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.07); font-size: 12.5px; }
.q-rc-row:last-child { border-bottom: 0; }
.q-rc-row em { font-style: normal; flex: 1 1 auto; color: var(--text-3); font-size: 11.5px; min-width: 0; }
.q-chain { display: flex; flex-direction: column; gap: 0; }
.q-chain-row { display: flex; align-items: center; gap: 10px; padding: 8px 0 8px 14px; border-left: 2px solid rgba(255,190,90,.35); position: relative; font-size: 13px; }
.q-chain-row::before { content: ''; position: absolute; left: -5px; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; border-radius: 50%; background: #ffbe5a; box-shadow: 0 0 8px rgba(255,190,90,.5); }
.q-chain-row i { font-style: normal; flex: 0 0 auto; font-size: 11px; color: #ffcf7a; border: 1px solid rgba(255,190,90,.4); border-radius: 999px; padding: 1px 8px; }
.q-chain-row span { flex: 1 1 auto; color: var(--text-1); min-width: 0; }
.q-chain-row em { font-style: normal; flex: 0 0 auto; color: var(--text-3); font-size: 11.5px; }
.q-detail-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* 公开确认页 */
.q-proof { border-color: rgba(130,200,255,.2); }
.q-confirm-card { border-color: rgba(94,217,168,.3); }
.q-confirm-done { text-align: center; padding: 14px 0; }
.q-confirm-done b { font-size: 15.5px; color: #5ed9a8; }
.q-confirm-card .wt-btn { margin: 8px 0 2px; }

/* v3.7.1 分享对账页内嵌报价档案 */
.lg-share-quote { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.08); cursor: pointer; }
.lg-share-quote:last-child { border-bottom: 0; }
.lg-share-quote-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lg-share-quote-main b { font-size: 13.5px; color: var(--text-1); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-share-quote-main em { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.lg-share-quote > b { flex: 0 0 auto; font-size: 14.5px; font-variant-numeric: tabular-nums; }

/* ==================== 手写书法模板模块（v3.8.0） ==================== */
/* 创作流全屏面板 */
.hw-overlay { position: fixed; inset: 0; z-index: 9990; background: rgba(5,8,18,.72); backdrop-filter: blur(8px); display: flex; justify-content: center; }
.hw-panel { position: relative; width: 100%; max-width: 560px; height: 100%; background: linear-gradient(180deg, rgba(16,22,42,.96), rgba(10,14,28,.98)); display: flex; flex-direction: column; overflow: hidden; border-left: 1px solid rgba(130,200,255,.12); }
.hw-nav { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.hw-back, .hw-next { padding: 7px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: var(--text-1); font-size: 13px; cursor: pointer; }
.hw-next { color: #8ec9ff; border-color: rgba(110,185,255,.45); background: rgba(90,170,255,.1); font-weight: 700; }
.hw-nav-title { font-size: 15.5px; font-weight: 800; color: var(--text-1); letter-spacing: .06em; }
.hw-body { flex: 1 1 auto; overflow-y: auto; padding: 14px 16px 90px; }
.hw-head-note { margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; font-size: 12px; line-height: 1.7; color: var(--text-2); background: rgba(110,185,255,.06); border: 1px solid rgba(130,200,255,.18); }
.hw-promise { margin-top: 16px; padding: 10px 12px; border-radius: 12px; font-size: 11.5px; line-height: 1.7; color: #ffcf7a; background: rgba(255,190,90,.06); border: 1px solid rgba(255,190,90,.25); }

/* 模式选择卡（浅米宣纸质感 · 低饱和 · 微光描边） */
.hw-mode-card { margin: 0 0 12px; padding: 20px 18px; border-radius: 16px; cursor: pointer; background: linear-gradient(135deg, rgba(248,243,231,.10), rgba(248,243,231,.04)); border: 1px solid rgba(232,214,178,.35); box-shadow: 0 0 18px rgba(232,214,178,.08); transition: all .18s; }
.hw-mode-card:hover { box-shadow: 0 0 26px rgba(232,214,178,.18); transform: translateY(-1px); }
.hw-mode-card b { display: block; font-size: 16px; font-weight: 800; color: var(--text-1); letter-spacing: .05em; }
.hw-mode-card p { margin: 6px 0 0; font-size: 12.5px; color: var(--text-3); }

/* 模板选择条 */
.hw-tpl-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -2px 6px; scrollbar-width: none; }
.hw-tpl-strip::-webkit-scrollbar { display: none; }
.hw-tpl-group { flex: 0 0 auto; align-self: center; writing-mode: vertical-rl; font-size: 11px; letter-spacing: .3em; color: var(--text-3); padding-right: 4px; border-right: 1px solid rgba(255,255,255,.1); }
.hw-tpl-card { flex: 0 0 auto; width: 88px; border-radius: 12px; overflow: hidden; cursor: pointer; border: 1.5px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); transition: all .18s; }
.hw-tpl-card canvas { display: block; width: 100%; }
.hw-tpl-card span { display: block; padding: 5px 0; font-size: 10.5px; text-align: center; color: var(--text-2); }
.hw-tpl-card.on { border-color: rgba(140,205,255,.75); box-shadow: 0 0 14px rgba(110,185,255,.35); }
.hw-tpl-card.on span { color: #8ec9ff; font-weight: 700; }

/* 画布区（暗色玻璃面板） */
.hw-canvas-wrap { position: relative; margin: 4px 0 12px; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); }
.hw-canvas { display: block; width: 100%; }
.hw-canvas-ink { position: absolute; inset: 0; touch-action: none; cursor: crosshair; }

/* 工具区 */
.hw-tools { margin-bottom: 12px; }
.hw-tool-group { padding: 10px 12px; margin-bottom: 10px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.hw-tool-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.hw-chip, .hw-act { padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: var(--text-2); font-size: 12.5px; cursor: pointer; transition: all .15s; }
.hw-chip.on { color: #0b1020; background: linear-gradient(135deg, #9fd4ff, #6ea8ff); border-color: transparent; font-weight: 700; }
.hw-act:disabled { opacity: .4; cursor: not-allowed; }
.hw-slider { flex: 1 1 120px; display: flex; align-items: center; gap: 8px; min-width: 130px; }
.hw-slider span { flex: 0 0 auto; font-size: 11.5px; color: var(--text-3); }
.hw-slider input[type=range] { flex: 1 1 auto; accent-color: #8ec9ff; }
.hw-hint { flex: 1 1 auto; font-size: 11px; color: var(--text-3); }
.hw-hint.center { text-align: center; margin: 10px 0 0; }
.hw-sign-inp { flex: 1 1 160px; min-width: 140px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: var(--text-1); font-size: 13px; }
.hw-sign-font { padding: 7px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: var(--text-1); font-size: 12.5px; }
input[type=color] { width: 34px; height: 32px; padding: 2px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); cursor: pointer; }

/* 预览与发布 */
.hw-preview-img { display: block; width: 100%; border-radius: 14px; border: 1px solid rgba(232,214,178,.4); box-shadow: 0 4px 24px rgba(0,0,0,.4); margin-bottom: 12px; }
.hw-pub-form { margin-bottom: 12px; }
.hw-pub-form .field label { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.hw-pub-form input[type=text], .hw-desc { width: 100%; box-sizing: border-box; padding: 11px 13px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: var(--text-1); font-size: 14px; margin-bottom: 12px; resize: vertical; }
.hw-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin: 8px 0; border-radius: 14px; background: rgba(94,217,168,.05); border: 1px solid rgba(94,217,168,.22); }
.hw-switch-txt b { display: block; font-size: 13px; color: var(--text-1); font-weight: 700; }
.hw-switch-txt p { margin: 4px 0 0; font-size: 11px; color: var(--text-3); line-height: 1.6; }
.hw-pub-btn { width: 100%; box-sizing: border-box; padding: 14px; font-size: 15px; font-weight: 800; }

/* 信息流手写作品卡片：宣纸/卷轴微边框微光 */
.post.hw-post { border: 1px solid rgba(232,214,178,.4); box-shadow: 0 0 20px rgba(232,214,178,.12), inset 0 0 22px rgba(232,214,178,.05); animation: hwBreath 4.5s ease-in-out infinite; }
@keyframes hwBreath { 0%,100% { box-shadow: 0 0 16px rgba(232,214,178,.10), inset 0 0 22px rgba(232,214,178,.05); } 50% { box-shadow: 0 0 26px rgba(232,214,178,.2), inset 0 0 22px rgba(232,214,178,.07); } }
.post-hw-badge { position: absolute; top: 10px; right: 12px; z-index: 3; display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; color: #6d5330; background: linear-gradient(135deg, rgba(248,243,231,.95), rgba(232,214,178,.85)); border: 1px solid rgba(180,150,100,.5); box-shadow: 0 1px 6px rgba(0,0,0,.25); }

/* 我的作品分类 chip */
.works-hw-chips { display: flex; gap: 8px; margin: -4px 0 12px; }
.hw-chip-btn { padding: 6px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: var(--text-2); font-size: 12.5px; cursor: pointer; }
.hw-chip-btn.on { color: #8ec9ff; border-color: rgba(110,185,255,.55); background: rgba(90,170,255,.12); font-weight: 700; }
/* 画廊瀑布流手写作品卡（v3.8.0） */
.gal-card.hw { border: 1px solid rgba(232,214,178,.45); box-shadow: 0 0 18px rgba(232,214,178,.14); }
.gal-hw-badge { position: absolute; top: 8px; right: 8px; padding: 2px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .05em; color: #6d5330; background: linear-gradient(135deg, rgba(248,243,231,.95), rgba(232,214,178,.85)); border: 1px solid rgba(180,150,100,.5); box-shadow: 0 1px 6px rgba(0,0,0,.3); z-index: 3; }

/* ==================== v3.8.1 手写 P1：印章库 / 模板广场 / OCR / 签名板 ==================== */

/* 手写创作流：印章库 */
.hw-seal-lib { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); width: 100%; }
.hw-seal-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.hw-seal-item { position: relative; width: 64px; border-radius: 10px; overflow: hidden; cursor: pointer; border: 1.5px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); text-align: center; transition: all .15s; }
.hw-seal-item img { display: block; width: 100%; height: 56px; object-fit: contain; background: rgba(255,255,255,.85); }
.hw-seal-item span { display: block; padding: 3px 2px; font-size: 10px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-seal-item.on { border-color: rgba(255,120,100,.8); box-shadow: 0 0 12px rgba(255,110,90,.35); }
.hw-seal-item.on span { color: #ff9a86; font-weight: 700; }

/* 模板素材广场（#/hwsquare） */
.hw-sq-page { max-width: 860px; margin: 0 auto; padding: 18px 14px 40px; }
.hw-sq-head { margin-bottom: 18px; }
.hw-sq-title { margin: 0 0 6px; font-size: 22px; color: var(--text-1); }
.hw-sq-sub { margin: 0; font-size: 12.5px; line-height: 1.8; color: var(--text-3); }
.hw-sq-group { margin-bottom: 22px; }
.hw-sq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; margin-top: 10px; }
.hw-sq-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px 12px; border-radius: 14px; border: 1px solid rgba(232,214,178,.28); background: rgba(255,255,255,.04); transition: all .18s; }
.hw-sq-card:hover { border-color: rgba(232,214,178,.6); box-shadow: 0 4px 18px rgba(0,0,0,.3); transform: translateY(-2px); }
.hw-sq-card canvas { border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.hw-sq-meta { display: flex; align-items: baseline; gap: 8px; }
.hw-sq-meta b { font-size: 13.5px; color: var(--text-1); }
.hw-sq-meta span { font-size: 10.5px; color: var(--text-3); }
.hw-sq-use { width: 100%; font-size: 12px; padding: 7px 0; }
.hw-sq-empty { padding: 40px 16px; text-align: center; border-radius: 14px; border: 1px dashed rgba(255,255,255,.15); }
.hw-sq-empty b { font-size: 15px; }
.hw-sq-link { display: block; width: 100%; margin-top: 14px; padding: 11px 0; border-radius: 12px; border: 1px dashed rgba(232,214,178,.4); background: rgba(232,214,178,.05); color: #e8d6b2; font-size: 12.5px; cursor: pointer; }

/* 手写作品详情：识别释文（OCR） */
.post-hw-ocr { margin: 10px 0 4px; padding: 10px 14px; border-radius: 10px; background: rgba(232,214,178,.06); border: 1px solid rgba(232,214,178,.3); }
.post-hw-ocr-label { font-size: 11px; color: #c9b98c; margin-bottom: 5px; letter-spacing: .04em; }
.post-hw-ocr-text { font-size: 13.5px; line-height: 1.85; color: var(--text-1); white-space: pre-wrap; font-family: "Kaiti SC","STKaiti","KaiTi","楷体",serif; }

/* 报价确认页：手写签名板 */
.q-signpad { width: 100%; margin: 4px 0 10px; }
.q-signpad-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 11.5px; color: var(--text-3); }
.q-signpad-clear { border: 0; background: none; color: #8ec9ff; font-size: 11.5px; cursor: pointer; padding: 2px 4px; }
.q-signpad-cv { border-radius: 12px; border: 1.5px dashed rgba(255,255,255,.25); background: rgba(255,255,255,.92); overflow: hidden; }
.q-signpad-cv canvas { display: block; cursor: crosshair; }
.q-signpad-done { display: block; max-width: 220px; max-height: 96px; margin-top: 8px; border-radius: 8px; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.25); }
.q-rc-sign { width: 74px; height: 40px; object-fit: contain; border-radius: 6px; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.22); cursor: pointer; }

/* ==================== v3.9.0 手写合同签署模块（ct-*） ==================== */

/* 状态徽章 */
.ct-st { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.ct-st-draft { background: rgba(150,160,180,.16); color: #a8b4c8; }
.ct-st-pending { background: rgba(96,180,255,.16); color: #7dbcff; }
.ct-st-ok { background: rgba(74,222,128,.14); color: #5ee08a; }
.ct-st-reject { background: rgba(255,110,100,.16); color: #ff9a8f; }
.ct-st-void { background: rgba(130,130,140,.16); color: #8e8ea0; }

/* 头部卡片 */
.ct-head-card { margin-bottom: 12px; }
.ct-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ct-title { margin: 0 0 4px; font-size: 17px; color: var(--text-1); }
.ct-title-s { font-size: 14px; color: var(--text-1); }
.ct-sub { margin: 0; font-size: 11.5px; color: var(--text-3); }
.ct-head-st { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.ct-reject-note { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: rgba(255,110,100,.08); border: 1px solid rgba(255,110,100,.25); font-size: 12px; color: #ffb3a9; line-height: 1.6; }
.ct-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ct-mono { font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 12px; }

/* 操作区按钮尺寸 */
.ct-acts .wt-btn { padding: 9px 14px; font-size: 13px; }

/* 合同全文：白底文档样式 */
.ct-doc-card { padding: 0 !important; overflow: hidden; }
.ct-doc { background: #fdfdfb; margin: 0; }
.ct-doc-pre { margin: 0; padding: 20px 18px 26px; font-family: "Kaiti SC","STKaiti","KaiTi","Songti SC","SimSun",serif; font-size: 13.5px; line-height: 2.05; color: #1d2430; white-space: pre-wrap; word-break: break-word; font-kerning: normal; }
.ct-size-ctl { display: flex; align-items: center; gap: 6px; padding: 8px 12px 0; font-size: 11px; color: var(--text-3); }
.ct-size-btn { border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: var(--text-2); border-radius: 6px; padding: 2px 8px; font-size: 11px; cursor: pointer; }

/* 签名区 */
.ct-sign-card { margin-top: 12px; }
.ct-sign-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ct-sign-slot { padding: 10px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.ct-sign-slot b { font-size: 12px; color: var(--text-2); }
.ct-sign-img { display: block; max-width: 100%; max-height: 76px; margin: 8px auto 4px; border-radius: 8px; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.2); object-fit: contain; }

/* 冰蓝微光签署卡 */
.ct-confirm-card { margin-top: 14px; border: 1.5px solid rgba(96,180,255,.45); box-shadow: 0 0 18px rgba(96,180,255,.12), inset 0 0 24px rgba(96,180,255,.04); background: linear-gradient(160deg, rgba(96,180,255,.07), rgba(20,30,55,.4)); }
.ct-agree { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0; font-size: 12.5px; color: var(--text-2); cursor: pointer; line-height: 1.6; }
.ct-agree input { margin-top: 3px; accent-color: #6db4ff; }

/* 简易签名板弹窗 */
.ct-sign-modal { display: flex; flex-direction: column; gap: 10px; min-width: 300px; }
.ct-sign-modal-acts { display: flex; gap: 8px; justify-content: flex-end; }
.ct-modal-raw { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; background: rgba(4,8,20,.72); backdrop-filter: blur(4px); }

/* 附件 */
.ct-att-item { display: flex; flex-direction: column; gap: 4px; }
.ct-att-item img { width: 100%; height: 90px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 1px solid rgba(255,255,255,.12); }
.ct-att-file { font-size: 12px; color: #8ec9ff; text-decoration: none; word-break: break-all; }
.ct-att-hash { font-size: 10px; }

/* 列表 */
.ct-item { cursor: pointer; margin-bottom: 10px; transition: border-color .15s, box-shadow .15s; }
.ct-item:hover { border-color: rgba(96,180,255,.5); box-shadow: 0 2px 14px rgba(96,180,255,.14); }
.ct-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.ct-chip { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: var(--text-2); border-radius: 999px; padding: 4px 12px; font-size: 12px; cursor: pointer; }
.ct-chip.on { border-color: rgba(96,180,255,.6); color: #8ec9ff; background: rgba(96,180,255,.1); }
.ct-sum { margin-top: 10px; text-align: center; }
.ct-extra { resize: vertical; min-height: 60px; }
.ct-submit-hint { margin-top: 8px; text-align: center; }

/* v3.11.22 用户反馈四项：
   1) 新建合同输入框文字居中（与居中的字段标签风格统一）；
   2) 合同页 tab 栏移到顶部，不再悬浮遮挡表单；
   3) 模板全文预览弹窗样式。 */
.ct-form .wt-input { text-align: center; }
.ct-form .wt-extra, .ct-form textarea.wt-input { text-align: left; }
.wt-nav-top { position: static; bottom: auto; margin: 0 auto 12px; }
/* v3.11.23 用户反馈：标签与输入框样式雷同分不清哪个能点。
   标签改左对齐 + 强调色条 + 加粗提亮；输入框加高亮描边 + 更深底色，placeholder 弱化，一眼可辨 */
.ct-form .wt-label {
  text-align: left; font-weight: 700; color: var(--text); font-size: 12px;
  display: flex; align-items: center; gap: 6px; letter-spacing: .02em;
}
.ct-form .wt-label::before {
  content: ''; flex: none; width: 3px; height: 12px; border-radius: 2px;
  background: linear-gradient(180deg, #4ee8ff, #b88bff);
  box-shadow: 0 0 6px rgba(78, 232, 255, .5);
}
.ct-form .wt-input {
  border-color: rgba(120, 200, 255, .45);
  background: rgba(6, 12, 24, .85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
[data-theme="frost"] .ct-form .wt-input, [data-theme="snow"] .ct-form .wt-input { background: rgba(255, 255, 255, .92); }
.ct-form .wt-input::placeholder { color: var(--text-3); opacity: .8; }
.ct-preview-box { margin-top: 4px; }
.ct-preview-text {
  margin: 8px 0 0; padding: 12px 14px; max-height: 46vh; overflow: auto;
  white-space: pre-wrap; word-break: break-word; font-size: 12.5px; line-height: 1.7;
  color: var(--text); background: rgba(10, 16, 28, .55); border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit;
}
[data-theme="frost"] .ct-preview-text, [data-theme="snow"] .ct-preview-text { background: rgba(255, 255, 255, .7); }

/* 版本时间线 */
.ct-ver-row { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-bottom: 1px solid rgba(255,255,255,.07); cursor: pointer; font-size: 12.5px; color: var(--text-2); }
.ct-ver-row:last-child { border-bottom: 0; }
.ct-ver-row b { color: var(--text-1); min-width: 30px; }
.ct-ver-no { font-size: 11px; color: var(--text-3); }
.ct-ver-row em { font-style: normal; font-size: 11px; color: var(--text-3); margin-left: auto; }
.ct-ver-cur { font-style: normal; font-size: 10px; color: #6db4ff; border: 1px solid rgba(96,180,255,.4); border-radius: 999px; padding: 1px 7px; }
.ct-ver-row.on { background: rgba(96,180,255,.06); border-radius: 8px; }

/* 证据链 */
.ct-chain-row { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-bottom: 1px solid rgba(255,255,255,.07); cursor: pointer; }
.ct-chain-row:last-child { border-bottom: 0; }
.ct-chain-row:hover { background: rgba(255,255,255,.03); }
.ct-chain-ico { font-size: 16px; }
.ct-chain-body { flex: 1; min-width: 0; }
/* v3.11.20 修复：附件名（超长无空格文件名）撑破卡片 → 强制断行 */
.ct-chain-body b { display: block; font-size: 12.5px; color: var(--text-1); overflow-wrap: anywhere; word-break: break-all; }
.ct-chain-body em { font-style: normal; font-size: 11px; color: var(--text-3); overflow-wrap: anywhere; word-break: break-all; }
.ct-chain-row > code.wt-hash { flex-shrink: 0; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 公开签署页 */
.ct-share-page { max-width: 620px; }
.ct-back { margin-top: 14px; }
.ct-disclaimer { color: #c9b98c; }

/* 报价详情合同卡 */
.q-modal .ct-confirm-card-none { display: none; }

/* v3.9.0 合同核验二维码 */
.ct-verify-qr { width: 148px; height: 148px; border-radius: 10px; background: #fff; border: 1px solid rgba(255,255,255,.25); padding: 6px; }

/* ==================== v3.10.0 超级确权笔记 ==================== */
.nt-page .wt-body { padding-bottom: 28px; }
.nt-card { overflow: hidden; }
.nt-head { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.nt-title { margin: 0; font-size: 19px; font-weight: 800; color: var(--text); line-height: 1.35; word-break: break-word; }
.nt-sub { margin: 4px 0 0; font-size: 11.5px; color: var(--text-3); line-height: 1.5; }
.nt-head-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nt-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; font-size: 11.5px; color: var(--text-3); }
.nt-warn { color: #ffb27a !important; }

.nt-badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.nt-badge-ok { color: #6fe39a; border-color: rgba(90, 220, 150, .45); background: rgba(30, 120, 80, .18); }
.nt-badge-draft { color: #ffd28a; border-color: rgba(230, 180, 90, .35); background: rgba(150, 110, 30, .14); }
[data-theme="frost"] .nt-badge-ok, [data-theme="snow"] .nt-badge-ok { color: #127a48; background: rgba(60, 190, 130, .16); }
[data-theme="frost"] .nt-badge-draft, [data-theme="snow"] .nt-badge-draft { color: #8a5b00; background: rgba(220, 170, 60, .18); }

.nt-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.nt-acts .wt-btn { flex: 0 1 auto; }
.nt-monopad { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.nt-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .01em; }

/* 纸张正文（阅读 / 编辑统一浅色纸面，长文更易读） */
.nt-sheet { background: #f7fbff; color: #17263a; border-radius: 12px; padding: 18px 16px; line-height: 1.85;
  font-size: 14.5px; border: 1px solid rgba(140, 180, 220, .35); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); overflow-wrap: break-word; }
.nt-sheet h1, .nt-sheet h2, .nt-sheet h3 { color: #0f1e33; margin: 14px 0 8px; line-height: 1.45; }
.nt-sheet h2 { font-size: 17px; }
.nt-sheet p, .nt-sheet div { margin: 6px 0; }
.nt-sheet ul, .nt-sheet ol { padding-left: 22px; margin: 8px 0; }
.nt-sheet li { margin: 3px 0; }
.nt-sheet blockquote { margin: 10px 0; padding: 8px 12px; border-left: 3px solid #7fc0f0; background: #eef6ff; color: #2c4058; border-radius: 0 8px 8px 0; }
.nt-sheet a { color: #1c6bb0; text-decoration: underline; }
.nt-sheet img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 10px auto; }
.nt-sheet img.nt-hw { background: #fff; border: 1px solid #dbe6f2; padding: 6px; max-height: 320px; object-fit: contain; }
.nt-sheet-read { min-height: 120px; }
.nt-nocopy, .nt-nocopy * { -webkit-user-select: none; user-select: none; }

.nt-doc-card .wt-sec-title { margin-bottom: 8px; }
.nt-doc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.nt-mini-btn { height: 26px; padding: 0 10px; border-radius: 8px; font-size: 11px; color: var(--text-2);
  background: transparent; border: 1px solid var(--line-2); cursor: pointer; white-space: nowrap; }
.nt-mini-btn:hover { color: var(--text); border-color: rgba(120, 200, 255, .55); }

/* 编辑器 */
.nt-title-in { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.nt-editor-wrap { border-radius: 12px; overflow: hidden; }
.nt-toolbar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; flex-wrap: wrap; gap: 5px;
  padding: 7px 8px; background: rgba(16, 24, 38, .9); border: 1px solid var(--line-2); border-bottom: none;
  border-radius: 12px 12px 0 0; backdrop-filter: blur(8px); }
[data-theme="frost"] .nt-toolbar, [data-theme="snow"] .nt-toolbar { background: rgba(246, 250, 255, .94); }
.nt-tool { min-width: 30px; height: 28px; padding: 0 7px; border-radius: 7px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04); color: var(--text-2); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.nt-tool:hover { color: var(--text); border-color: rgba(120, 200, 255, .5); }
.nt-tool-b { font-family: Georgia, serif; }
[data-theme="frost"] .nt-tool, [data-theme="snow"] .nt-tool { color: #24405c; background: #fff; }
.nt-tool-colors { display: inline-flex; gap: 4px; padding: 0 2px; }
.nt-color-dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.65); cursor: pointer; }
.nt-editor { min-height: 320px; border-radius: 0 0 12px 12px; outline: none; }
.nt-editor:empty::before { content: attr(data-placeholder); color: #9aabbe; }
.nt-editor-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 2px 10px; flex-wrap: wrap; }
.nt-status { font-size: 11.5px; color: var(--text-3); }
.nt-status.bad { color: #ff8f8f; }

/* 附件 */
.nt-att-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.nt-att { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 8px; border-radius: 9px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04); font-size: 11.5px; color: var(--text-2); cursor: pointer; }
.nt-att em { font-style: normal; color: var(--text-3); font-size: 10.5px; }
.nt-att-del { border: none; background: transparent; color: #ff9a9a; font-size: 14px; cursor: pointer; line-height: 1; padding: 0 2px; }
.nt-att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.nt-att-item { display: flex; gap: 8px; align-items: center; padding: 7px; border-radius: 10px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.03); cursor: pointer; min-width: 0; }
.nt-att-item img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex: none; }
.nt-att-ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; background: rgba(120,190,255,.12); font-size: 18px; flex: none; }
.nt-att-item b { display: block; font-size: 11.5px; color: var(--text); font-weight: 600; word-break: break-all; }
.nt-att-item code { display: block; font-size: 10px; color: var(--text-3); margin-top: 2px; }
.nt-att-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 2px; color: var(--text-2); font-size: 12.5px; text-decoration: none; border-bottom: 1px dashed var(--line); }
.nt-att-link:last-child { border-bottom: none; }

/* 列表 */
.nt-search { margin-bottom: 8px; }
.nt-chips { margin-bottom: 6px; }
.nt-sum { margin: 2px 0 8px; }
.nt-list-card { cursor: pointer; transition: border-color .18s, transform .18s; }
.nt-list-card:hover { transform: translateY(-1px); }
.nt-list-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.nt-list-title { font-size: 15px; font-weight: 700; color: var(--text); word-break: break-word; }
.nt-list-badges { flex: none; }
.nt-list-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 11px; color: var(--text-3); }

/* 版本 */
.nt-ver-row { display: flex; align-items: center; gap: 8px; padding: 8px 4px; border-bottom: 1px dashed var(--line); cursor: pointer; font-size: 11.5px; color: var(--text-3); }
.nt-ver-row:last-child { border-bottom: none; }
.nt-ver-row.on { background: rgba(120, 200, 255, .07); border-radius: 8px; }
.nt-ver-row b { color: var(--text); font-size: 12.5px; min-width: 30px; }
.nt-ver-row em { font-style: normal; }
.nt-ver-row code { margin-left: auto; font-size: 10px; color: var(--text-3); }
.nt-cur { font-style: normal; font-size: 10px; color: #7fd7ff; }
.nt-ver-modal .nt-sheet { max-height: 52vh; overflow: auto; margin-top: 8px; }
.nt-ver-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.nt-ver-meta em { font-style: normal; font-size: 11px; color: var(--text-3); }
.nt-ver-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); z-index: 72; padding: 14px 14px 24px;
  background: rgba(12, 19, 32, .96); border-left: 1px solid rgba(120, 190, 255, .3); box-shadow: -18px 0 40px rgba(0,0,0,.45);
  transform: translateX(105%); transition: transform .26s ease; overflow-y: auto; }
.nt-ver-drawer.on { transform: translateX(0); }
[data-theme="frost"] .nt-ver-drawer, [data-theme="snow"] .nt-ver-drawer { background: #f4f9ff; }
.nt-ver-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: var(--text); font-size: 14px; }

/* 版本对比 */
.nt-diff { max-height: 50vh; overflow: auto; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(0,0,0,.18); padding: 6px 0; }
.nt-diff-line { display: flex; gap: 8px; padding: 2px 10px; font-size: 11.5px; line-height: 1.6; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }
.nt-diff-sign { width: 12px; flex: none; text-align: center; opacity: .8; }
.nt-diff-add { background: rgba(50, 180, 110, .18); color: #9ff0bd; }
.nt-diff-del { background: rgba(220, 70, 70, .16); color: #ffb0b0; }
.nt-diff-same { opacity: .72; }

/* 分享 / 绑定 / 弹窗 */
.nt-share-box, .nt-bind-box, .nt-picker-box, .nt-hw-box, .nt-confirm-box { display: flex; flex-direction: column; gap: 10px; }
.nt-share-head { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; }
.nt-share-head b { font-size: 14px; color: var(--text); }
.nt-share-head p { margin-top: 3px; }
.nt-toggle { width: 46px; height: 26px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.08); position: relative; cursor: pointer; flex: none; }
.nt-toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #9db4cc; transition: .2s; }
.nt-toggle.on { background: linear-gradient(135deg, #38c8ff, #7c8bff); border-color: transparent; }
.nt-toggle.on::after { left: 22px; background: #fff; }
.nt-toggle-txt { font-size: 12px; color: var(--text-2); font-weight: 600; }
.nt-share-link { display: flex; gap: 8px; align-items: center; }
.nt-share-link input { flex: 1; font-size: 11px; }
.nt-share-link.off { opacity: .7; }
.nt-check-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.nt-check-row input { width: 16px; height: 16px; }

.nt-type-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.nt-chip { height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  color: var(--text-2); font-size: 11.5px; cursor: pointer; }
.nt-chip.on { color: #0a1a2a; background: linear-gradient(135deg, #8fd3ff, #b9c7ff); border-color: transparent; font-weight: 700; }
[data-theme="frost"] .nt-chip.on, [data-theme="snow"] .nt-chip.on { color: #fff; background: linear-gradient(135deg, #3a8fd0, #6b7fe0); }

.nt-bind-list, .nt-cand-box, .nt-picker-list { display: flex; flex-direction: column; gap: 6px; max-height: 42vh; overflow: auto; }
.nt-bind-row, .nt-cand-row, .nt-related-row { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 10px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03); cursor: pointer; }
.nt-bind-row:hover, .nt-cand-row:hover, .nt-related-row:hover { border-color: rgba(120, 200, 255, .5); }
.nt-bind-ico, .nt-related-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: rgba(120, 190, 255, .13); font-size: 15px; }
.nt-bind-body { flex: 1; min-width: 0; }
.nt-bind-body b, .nt-cand-row b, .nt-related-row b { display: block; font-size: 12.5px; color: var(--text); font-weight: 600; }
.nt-bind-body em, .nt-cand-row em, .nt-related-row em { display: block; font-style: normal; font-size: 11px; color: var(--text-3); margin-top: 2px; }
.nt-cand-row div { flex: 1; min-width: 0; }
.nt-cand-amt { font-size: 11.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.nt-bind-panel { margin-top: 10px; }
.nt-related-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.nt-related-acts .wt-btn { flex: 1 1 140px; }
.nt-related-row { font-size: 11.5px; }
.nt-related-row > div { flex: 1; min-width: 0; }
.nt-bind-tip { font-size: 11.5px; color: #9fe0ff; background: rgba(60, 160, 220, .14); border: 1px solid rgba(90, 180, 240, .35);
  border-radius: 9px; padding: 7px 10px; margin-bottom: 10px; }

.nt-modal-title { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.nt-kv-list { display: flex; flex-direction: column; gap: 4px; }
.nt-confirm-done { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.nt-confirm-done > b { font-size: 16px; color: #6fe39a; text-align: center; }
.nt-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 10px; }
.nt-qr img { width: 152px; height: 152px; border-radius: 10px; background: #fff; padding: 6px; }
.nt-qr-img { display: block; width: 168px; height: 168px; margin: 6px auto; border-radius: 10px; background: #fff; padding: 6px; }
.nt-disclaimer { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 10px; line-height: 1.65; }

/* 公开分享页 / 核验页 */
.nt-public { max-width: 860px; margin: 0 auto; }
.nt-public .wt-share-note { margin: 6px 0 12px; }
.nt-share-proof { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.nt-verify-top { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; margin-bottom: 10px;
  border: 1px solid rgba(90, 220, 150, .35); background: rgba(30, 120, 80, .14); }
.nt-verify-top.bad { border-color: rgba(230, 90, 90, .45); background: rgba(150, 40, 40, .16); }
.nt-verify-ico { font-size: 22px; line-height: 1; }
.nt-verify-top b { display: block; font-size: 14px; color: var(--text); margin-bottom: 3px; }
.nt-verify-body { white-space: pre-wrap; max-height: 46vh; overflow: auto; font-size: 13px; }

/* 手写批注画布 */
.nt-pad { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #fff; }
.nt-pad-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 9px;
  font-size: 11px; color: #4a607a; background: #eef5fc; border-bottom: 1px solid #dbe7f4; }
.nt-pad-bar > span:last-child { display: flex; gap: 4px; }
.nt-pad-btn { height: 24px; padding: 0 8px; border-radius: 7px; border: 1px solid #c9d9ea; background: #fff; color: #2c4058; font-size: 11px; cursor: pointer; }
.nt-pad-cv { background: #fff; }
.nt-pad-cv canvas { display: block; width: 100%; cursor: crosshair; }

@media (max-width: 760px) {
  .nt-title { font-size: 17px; }
  .nt-sheet { padding: 14px 12px; font-size: 14px; }
  .nt-toolbar { gap: 4px; }
  .nt-tool { min-width: 27px; height: 26px; padding: 0 5px; font-size: 12px; }
  .nt-color-dot { width: 18px; height: 18px; }
  .nt-acts { gap: 7px; }
  .nt-acts .wt-btn { flex: 1 1 calc(50% - 4px); }
  .nt-att-grid { grid-template-columns: 1fr; }
  .nt-ver-drawer { width: 88vw; }
}

/* v3.10.2 手写入口高亮 + 触屏兜底 */
.nt-tool-hl { color: #0a1a2a !important; background: linear-gradient(135deg, #8fd3ff, #b9c7ff) !important; border-color: transparent !important; font-weight: 700; }
[data-theme="frost"] .nt-tool-hl, [data-theme="snow"] .nt-tool-hl { color: #fff !important; background: linear-gradient(135deg, #3a8fd0, #6b7fe0) !important; }


/* ==================== v3.11.0 全局会员权益 ==================== */
.wt-disclaimer { color: var(--text-3); font-size: 10.5px; line-height: 1.7; opacity: .85; }

.quota-up-box { display: flex; flex-direction: column; gap: 10px; }
.quota-up-head { display: flex; align-items: center; gap: 8px; }
.quota-up-head b { font-size: 16px; color: var(--text); }
.quota-up-ico { font-size: 20px; }
.quota-up-reason { margin: 0; font-size: 13px; color: var(--text); font-weight: 600; }
.quota-up-hint { margin: 0; font-size: 11.5px; color: var(--text-2); line-height: 1.7; }
.quota-up-table-wrap { overflow: auto; border-radius: 10px; border: 1px solid var(--line-2); max-height: 44vh; }
.quota-up-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.quota-up-table th { position: sticky; top: 0; background: rgba(20, 30, 48, .96); color: #7fd7ff; font-weight: 700; padding: 7px 8px; text-align: left; white-space: nowrap; }
[data-theme="frost"] .quota-up-table th, [data-theme="snow"] .quota-up-table th { background: #eef5fc; color: #24618f; }
.quota-up-table td { padding: 6px 8px; color: var(--text-2); border-top: 1px solid var(--line); white-space: nowrap; }
.quota-up-table td:first-child { color: var(--text); }
.quota-up-price { margin: 0; font-size: 12px; color: var(--gold); font-weight: 700; }
.quota-up-acts { display: flex; gap: 8px; }
.quota-up-acts .btn { flex: 1; }

.vip-slogan { border-radius: 14px; padding: 14px; border: 1px solid rgba(120, 190, 255, .3); background: linear-gradient(135deg, rgba(50, 120, 200, .14), rgba(150, 110, 30, .1)); }
.vip-slogan-main { font-size: 14px; font-weight: 800; color: var(--text); line-height: 1.6; }
.vip-slogan-card { margin-top: 6px; font-size: 11px; color: var(--text-3); line-height: 1.7; }

.vip-quota-card { border-radius: 14px; padding: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); display: flex; flex-direction: column; gap: 9px; }
.vip-quota-tier { display: flex; align-items: center; justify-content: space-between; }
.vip-quota-expire { font-size: 11px; color: var(--text-3); }
.vip-quota-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.vip-quota-name { min-width: 92px; color: var(--text); }
.vip-quota-val { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text); }
.vip-quota-val.bad { color: #ff8f8f; }
.vip-quota-bar { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.vip-quota-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #38c8ff, #7c8bff); }
.vip-quota-fill.bad { background: linear-gradient(90deg, #ff7a7a, #ffb27a); }

.vip-shop { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.vip-shop-card { border-radius: 12px; padding: 11px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); display: flex; flex-direction: column; gap: 4px; position: relative; }
.vip-shop-card.hot { border-color: rgba(230, 180, 90, .5); background: rgba(150, 110, 30, .1); }
.vip-shop-card b { font-size: 12.5px; color: var(--text); }
.vip-shop-price { display: flex; align-items: baseline; gap: 6px; }
.vip-shop-price i { font-style: normal; font-size: 17px; font-weight: 800; color: var(--gold); }
.vip-shop-price s { font-size: 10.5px; color: var(--text-3); }
.vip-shop-per { font-size: 10.5px; color: var(--text-3); }

.pf2-vip-card { margin-top: 12px; border-radius: 14px; padding: 12px; cursor: pointer; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); }
.pf2-vip-card.on { border-color: rgba(230, 180, 90, .45); background: linear-gradient(135deg, rgba(150, 110, 30, .12), rgba(50, 120, 200, .1)); }
.pf2-vip-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pf2-vip-badge { font-size: 11.5px; font-weight: 800; color: #ffd28a; }
.pf2-vip-card.on .pf2-vip-badge { color: var(--gold); }
.pf2-vip-expire { font-size: 10.5px; color: var(--text-3); }
.pf2-vip-quota { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.pf2-vip-quota-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pf2-vip-quota-item b { font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; }
.pf2-vip-quota-item span { font-size: 9.5px; color: var(--text-3); text-align: center; }

@media (max-width: 760px) {
  .vip-shop { grid-template-columns: 1fr 1fr; }
  .pf2-vip-quota { grid-template-columns: repeat(5, 1fr); }
  .quota-up-table { font-size: 10.5px; }
}

/* ============ v3.11.1 会员页标题胶囊化 ============ */
/* 会员页所有区块大标题（本月额度 / 档位对比 / 开通会员 / 会员专属工具 / 激活码开通 / 套餐权益 / 我的订单）
   统一加金色胶囊边框，替代裸大字，视觉更整齐 */
.vip-page .section-title {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(236, 190, 110, .5);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(236, 190, 110, .14), rgba(236, 190, 110, .04));
  font-size: 14px;
  font-weight: 600;
  color: #F0D9AC;
  letter-spacing: .05em;
  line-height: 1.4;
}
.vip-page .section-head { margin-bottom: 12px; }

/* ==================== v3.11.6 超级Web3需求集市 ==================== */
.mk-view { padding-bottom: 12px; }
.mk-intro .mk-hero { padding: 14px 16px; text-align: center; }
.mk-hero-t { display: block; font-size: 16px; color: var(--gold, #E8C87E); letter-spacing: .06em; }
.mk-hero-s { margin-top: 6px; font-size: 13px; color: var(--text-1); }
.mk-hero-s2 { margin-top: 4px; font-size: 11px; color: var(--text-3); line-height: 1.5; }

.mk-cats { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 4px 2px; }
.mk-cat-chip {
  appearance: none; border: 1px solid rgba(232, 200, 126, .35);
  background: rgba(232, 200, 126, .06); color: var(--text-2);
  border-radius: 999px; padding: 6px 12px; font-size: 12px; cursor: pointer;
}
.mk-cat-chip.on { background: linear-gradient(135deg, rgba(232,200,126,.22), rgba(232,200,126,.08)); color: var(--gold, #E8C87E); border-color: rgba(232,200,126,.6); }
.mk-pub-btn { width: calc(100% - 8px); margin: 10px 4px 4px; }

/* ---------- v3.11.9w 需求集市工具面板：页签+分类筛选+发布按钮包进线条框 ---------- */
.mk-panel {
  margin: 12px 4px 0; padding: 10px 10px 12px;
  border: 1px solid rgba(232, 200, 126, .30);
  border-radius: 16px;
  background: rgba(232, 200, 126, .04);
}
.mk-panel-tools { min-height: 0; }
/* 前台页签此前无样式（仅后台 admin.css 有），默认按钮窄屏挤压截断 → 正式定义 */
.wt-tabs { display: flex; gap: 6px; }
.wt-tab {
  flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 9px 4px; border-radius: 11px;
  border: 1px solid rgba(232, 200, 126, .25);
  background: rgba(232, 200, 126, .05);
  color: var(--text-2); font-size: 12.5px; cursor: pointer;
  white-space: nowrap; overflow: hidden;
}
.wt-tab .wt-ico { width: 14px; height: 14px; flex: none; }
.wt-tab.on {
  color: var(--gold, #E8C87E);
  border-color: rgba(232, 200, 126, .6);
  background: linear-gradient(135deg, rgba(232, 200, 126, .22), rgba(232, 200, 126, .08));
}

.mk-list { display: flex; flex-direction: column; gap: 10px; padding: 6px 4px; }
.mk-item { padding: 12px 14px; }
.mk-item-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mk-item-time { margin-left: auto; font-size: 11px; color: var(--text-3); }
.mk-cat {
  font-size: 11px; color: var(--gold, #E8C87E);
  border: 1px solid rgba(232,200,126,.4); border-radius: 999px; padding: 3px 9px;
  background: rgba(232,200,126,.07); white-space: nowrap;
}
.mk-st { font-size: 11px; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.mk-st-open { color: #7DDB9A; border: 1px solid rgba(93,224,138,.45); background: rgba(93,224,138,.08); }
.mk-st-matched { color: #E8C87E; border: 1px solid rgba(232,200,126,.5); background: rgba(232,200,126,.09); }
.mk-st-closed { color: var(--text-3); border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
.mk-item-mid { margin-top: 8px; }
.mk-item-title { font-size: 15px; font-weight: 650; color: var(--text-1); line-height: 1.4; display: block; }
.mk-item-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.mk-budget { font-size: 13px; font-weight: 650; color: #F0D9AC; }
.mk-budget.big { font-size: 16px; }
.mk-deadline, .mk-signups, .mk-signup-st { font-size: 11px; color: var(--text-3); }
.mk-signup-st.ok { color: #7DDB9A; }
.mk-signup-st.no { color: var(--text-3); }
.mk-item-foot { margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.mk-owner { font-size: 11px; color: var(--text-3); }
.mk-item-acts { margin-top: 8px; }

.mk-detail .mk-main { padding: 14px 16px; }
.mk-d-title { margin-top: 8px; font-size: 17px; font-weight: 700; color: var(--text-1); line-height: 1.45; }
.mk-d-meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.mk-d-descr { margin-top: 10px; font-size: 13px; color: var(--text-2); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.mk-d-req { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(232,200,126,.06); border: 1px solid rgba(232,200,126,.18); }
.mk-d-req b { font-size: 12px; color: var(--gold, #E8C87E); }
.mk-d-req p { margin-top: 4px; font-size: 12px; color: var(--text-2); line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.mk-refs { display: flex; gap: 8px; overflow-x: auto; margin-top: 12px; padding-bottom: 4px; }
.mk-refs img { width: 108px; height: 108px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); cursor: pointer; flex: 0 0 auto; }

.mk-acts { display: flex; flex-direction: column; gap: 8px; margin: 12px 4px; }
.mk-acts .wt-btn { width: 100%; }
.mk-attested { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: rgba(93,224,138,.07); border: 1px solid rgba(93,224,138,.35); color: #7DDB9A; font-size: 13px; }
.mk-matched-tip { padding: 10px 14px; border-radius: 12px; background: rgba(232,200,126,.08); border: 1px solid rgba(232,200,126,.3); color: var(--gold, #E8C87E); font-size: 12px; line-height: 1.6; }
.mk-matched-tip.ok { background: rgba(93,224,138,.08); border-color: rgba(93,224,138,.4); color: #7DDB9A; }

.mk-signups-card { margin-top: 12px; }
.mk-signup { padding: 10px 2px; border-top: 1px solid rgba(255,255,255,.07); }
.mk-signup:first-of-type { border-top: none; }
.mk-signup b { font-size: 13px; color: var(--text-1); }
.mk-signup p { margin-top: 4px; font-size: 12px; color: var(--text-2); line-height: 1.6; word-break: break-word; }
.mk-signup.ok { border-left: 2px solid rgba(93,224,138,.5); padding-left: 8px; }
.mk-links { display: inline-block; margin-top: 4px; font-size: 12px; color: #7DBCFF; text-decoration: none; }

.mk-form .field { display: block; margin-bottom: 10px; }
.mk-form .field-label { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.mk-priv { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); margin-bottom: 10px; cursor: pointer; }

.mk-disclaimer {
  margin: 16px 6px 8px; padding: 12px 14px;
  font-size: 11px; line-height: 1.75; color: var(--text-3);
  border: 1px dashed rgba(232, 200, 126, .3); border-radius: 12px;
  background: rgba(232, 200, 126, .04);
}

/* v3.11.9l 广场独立总框已由全站 .view 总框取代 */



/* ==================== v3.11.9o 我的页轻量渲染（低端机卡顿治理） ====================
 * 我的页动画密度全站最高：星云流动 + 30星点 + 3D立方体旋转 + 链纹双动画 + 呼吸光晕
 * ×12处毛玻璃，全部压在滚动容器圆角裁剪之上 → 低端机整页掉帧、半绘画面。
 * 本块在 gm-mode 下关闭「持续重绘」型动画与毛玻璃，视觉骨架保持不变。 */
body.gm-mode .gm-nebula,
body.gm-mode .gm-halo,
body.gm-mode .gm-cube,
body.gm-mode .gm-chain,
body.gm-mode .gm-chain::before,
body.gm-mode .gm-chain::after,
body.gm-mode .gm-chain-node,
body.gm-mode .gm-cta { animation: none !important; }
body.gm-mode * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
/* 毛玻璃关闭后卡片变透，加深底色保证文字可读性 */
body.gm-mode .pf2-head { background: linear-gradient(160deg, rgba(12, 22, 40, .93), rgba(16, 40, 80, .9)); }
body.gm-mode .pf2-card,
body.gm-mode .pf2-act,
body.gm-mode .pf2-item,
body.gm-mode .pf2-ico,
body.gm-mode .gm-perk { background-color: rgba(10, 24, 48, .88); }

/* ================= v3.11.9z 云键盘面板轻量渲染：低端安卓根治半绘/卡顿 =================
   现象：点 + 后面板已打开（提示文字显示）但键盘本体渲染成半透明方块/卡住不出来。
   根因：氛围层 7 个无限动画（云雾 blur(9~15px) 每帧重栅格化）+ 键帽 15×3 层阴影
         + 键盘 transform/backface 合成层 + mask 遮罩，GPU 过载导致层半绘。
   方案：面板打开期间关掉全部持续动画与昂贵模糊，键盘与键帽改不透明静态渲染。 */
body.fab-open .cloud-fx,
.fab-dash .cloud-fx { display: none !important; }
.fab-dash .cloud-kb {
  backface-visibility: visible !important; -webkit-backface-visibility: visible !important;
  transform: translateX(-50%) !important; transition: none !important;
  box-shadow: none !important;
  background: linear-gradient(180deg, #1A2334 0%, #10151F 100%) !important;
}
.fab-dash.open .cloud-kb { transform: translateX(-50%) !important; opacity: 1 !important; }
.fab-dash.closing .cloud-kb { transform: translateX(-50%) !important; transition: none !important; }
.fab-dash .cloud-kb::before,
.fab-dash .cloud-kb::after { display: none !important; }
.fab-dash .cloud-key {
  box-shadow: none !important; transition: none !important;
  background: rgba(44, 60, 84, .92) !important;
  border-color: rgba(150, 205, 255, .3) !important;
}
.fab-dash .cloud-key:active {
  transform: none !important; box-shadow: none !important;
  background: rgba(70, 100, 140, .95) !important;
}
.fab-dash .cloud-key-pub {
  background: linear-gradient(180deg, #2D4C70 0%, #1E3450 100%) !important;
  box-shadow: none !important;
}
.fab-dash .cloud-key-pub .cloud-key-name,
.fab-dash .cloud-kb-title {
  background: none !important; -webkit-text-fill-color: #DCEBFF !important; color: #DCEBFF !important;
}
.fab-dash .cloud-key-ico,
.fab-dash .cloud-kb-cloud { filter: none !important; }
.fab-dash .fab-dash-backdrop {
  transform: none !important; will-change: auto !important; transition: none !important;
  background: rgba(6, 9, 14, .88) !important;
}
.fab-dash .cf-halo,
.fab-dash .cf-halo2,
.fab-dash .cf-mist { animation: none !important; -webkit-animation: none !important; transition: none !important; }

/* ================= v3.11.10 发布页轻量渲染：低端安卓根治半绘/卡顿 =================
   现象：发布页大片黑屏/半绘（与云键盘同源）。元凶：吸顶导航 blur(14px) 滚动每帧
   重模糊 + 编辑卡 blur(18px)、40px 大阴影。全部改不透明静态渲染。 */
.pub-nav {
  background: rgba(8, 10, 16, .97) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
.publish-editor-card {
  background: rgba(20, 28, 45, .93) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .3) !important;
  transition: none !important;
}
.publish-editor-card.is-focus { box-shadow: 0 2px 10px rgba(0, 0, 0, .3) !important; }
.pub-preview-layer,
.cap-layer { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.pub-preview-card { box-shadow: 0 6px 20px rgba(0, 0, 0, .45) !important; }

/* ====== v3.11.10 发布页正文卡统一绯域色系（原深蓝底与页面绯域色调不一致） ====== */
.publish-editor-card {
  background: linear-gradient(180deg, rgba(48, 24, 44, .94) 0%, rgba(36, 19, 34, .96) 100%) !important;
  border-color: rgba(240, 123, 164, .32) !important;
}
.publish-editor-card.is-focus { border-color: rgba(255, 82, 148, .55) !important; }
.publish-textarea {
  background: rgba(255, 255, 255, .045) !important;
  border-color: rgba(240, 123, 164, .24) !important;
}
.publish-textarea:focus {
  border-color: rgba(255, 82, 148, .55) !important;
  box-shadow: 0 0 0 3px rgba(255, 82, 148, .13) !important;
  background: rgba(255, 255, 255, .06) !important;
}
.publish-editor-card .preview-button {
  background: rgba(255, 82, 148, .15) !important;
  border-color: rgba(255, 82, 148, .48) !important;
  color: #FF7EB0 !important;
}
.publish-editor-card .preview-button:hover { background: rgba(255, 82, 148, .24) !important; border-color: rgba(255, 82, 148, .65) !important; }

/* ====== v3.11.10c 登录/注册抽屉线条总框（与全站页面框统一的冰蓝细线玻璃框） ====== */
.auth-drawer {
  top: 8px !important; right: 8px !important; bottom: 8px !important;
  width: min(400px, calc(94vw - 16px)) !important;
  border: 1px solid rgba(68, 204, 255, .32) !important;
  border-radius: 20px !important;
  box-shadow: -26px 0 70px rgba(0, 0, 0, .55), 0 0 26px rgba(68, 204, 255, .12) !important;
}
/* v3.11.23 修复：宽视口手机（~575px+）未命中旧 560px 断点，上面 !important 卡片规则
   让登录框贴右、左侧露出大片背景——用户反馈「整体偏移右边」。移动端改全屏覆盖 */
@media (max-width: 768px) {
  .auth-drawer {
    top: 0 !important; right: 0 !important; bottom: 0 !important;
    width: 100vw !important;
    border: 0 !important; border-radius: 0 !important;
  }
}

/* ====== v3.11.11 合同/报价站内确认弹窗（替代原生 confirm/prompt 的「网页提示」域名标题） ======
   风格与全站玻璃拟态一致：冰蓝细线框 + 深空底，按钮沿用 btn-ghost / btn-primary。 */
.ct-dialog { max-width: min(360px, 88vw); }
.ct-dialog .modal-title { font-size: 17px; letter-spacing: .02em; }
.ct-dialog .ct-dialog-text {
  line-height: 1.75; white-space: pre-line; color: var(--text-2);
  font-size: 13.5px; margin-top: 2px;
}
.ct-dialog .ct-dialog-input {
  width: 100%; margin-top: 4px; box-sizing: border-box;
}
.ct-dialog .ct-dialog-acts {
  display: flex; gap: 10px; margin-top: 18px;
}
.ct-dialog .ct-dialog-acts .btn { flex: 1; }

/* v3.11.15 「作品曝光」胶囊与上下卡片同宽拉通 */
.mall-sec-pill {
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
}

/* v3.11.16 签署页「发起方账号禁止代签」提示卡 */
.ct-selfsign-warn {
  margin-top: 12px; padding: 16px 18px; border-radius: 14px;
  border: 1px solid rgba(240, 113, 127, .42);
  background: linear-gradient(180deg, rgba(70, 22, 32, .55), rgba(44, 16, 24, .72));
}
.ct-selfsign-warn b { display: block; font-size: 15px; color: #FF9AA8; letter-spacing: .02em; }
.ct-selfsign-warn p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.7; color: rgba(234, 226, 228, .82); }

/* ===== v3.11.17 游客签署短信核验 ===== */
.ct-sms-row { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line, rgba(120,150,200,.25)); border-radius: 12px; background: var(--panel-2, rgba(20,30,50,.35)); margin-bottom: 4px; }
.ct-sms-tip { font-size: 12px; line-height: 1.6; color: var(--text-2, #9fb2cc); }
.ct-sms-code { display: flex; gap: 8px; align-items: flex-end; }
.ct-sms-code > div:first-child { flex: 1; }
.ct-sms-send { white-space: nowrap; min-width: 108px; }

/* ==================== v3.11.25 主题一致性大修 ====================
   问题：霜白（frost/snow）主题下大量组件硬编码深色玻璃底（me-cosmic 星空底、
   pf2-* 个人卡、home-quick/home-work/home-sec-head 酒红底），导致浅色页里
   夹杂成片深色块——「上下主题不一致」；另有若干文字用旧深色墨值落在浅底上
   看不清。本块统一把浅色主题下的这些表面转浅玻璃、文字转深墨。 */
[data-theme="frost"] .me-cosmic, [data-theme="snow"] .me-cosmic,
[data-theme="frost"] .profile-cosmic, [data-theme="snow"] .profile-cosmic {
  background: radial-gradient(120% 90% at 50% -10%, #E4EFFB 0%, #F2F7FD 55%, #F8FBFF 100%);
}
/* —— 个人中心头部与内部玻璃卡：转浅 —— */
[data-theme="frost"] .pf2-head, [data-theme="snow"] .pf2-head {
  background: rgba(255, 255, 255, .82);
  border-color: rgba(30, 90, 150, .16);
  box-shadow: 0 10px 30px rgba(20, 40, 70, .10), inset 0 1px 0 rgba(255, 255, 255, .9);
}
[data-theme="frost"] .pf2-card, [data-theme="snow"] .pf2-card,
[data-theme="frost"] .pf2-item, [data-theme="snow"] .pf2-item,
[data-theme="frost"] .pf2-msg, [data-theme="snow"] .pf2-msg {
  background: rgba(20, 60, 110, .05);
  border-color: rgba(30, 90, 150, .16);
  box-shadow: none;
}
[data-theme="frost"] .pf2-item:hover, [data-theme="snow"] .pf2-item:hover,
[data-theme="frost"] .pf2-card:hover, [data-theme="snow"] .pf2-card:hover {
  background: rgba(46, 134, 216, .08); border-color: rgba(46, 134, 216, .4); box-shadow: none;
}
[data-theme="frost"] .pf2-act, [data-theme="snow"] .pf2-act {
  background: rgba(20, 60, 110, .06); border-color: rgba(46, 134, 216, .35); color: var(--accent-2);
}
[data-theme="frost"] .pf2-ico, [data-theme="snow"] .pf2-ico {
  background: rgba(20, 60, 110, .06); border-color: rgba(30, 90, 150, .2); color: var(--text-2);
}
[data-theme="frost"] .pf2-avatar-ph, [data-theme="snow"] .pf2-avatar-ph {
  background: rgba(46, 134, 216, .1); color: var(--accent-2); text-shadow: none; box-shadow: none;
}
[data-theme="frost"] .pf2-avatar .avatar, [data-theme="snow"] .pf2-avatar .avatar { border-color: rgba(255, 255, 255, .95); }
/* —— 个人卡墨色：浅底配深字，去掉发光 —— */
[data-theme="frost"] .pf2-nick, [data-theme="snow"] .pf2-nick,
[data-theme="frost"] .pf2-card-num, [data-theme="snow"] .pf2-card-num,
[data-theme="frost"] .pf2-msg-main b, [data-theme="snow"] .pf2-msg-main b {
  color: var(--text); text-shadow: none;
}
[data-theme="frost"] .pf2-card-label, [data-theme="snow"] .pf2-card-label,
[data-theme="frost"] .pf2-item-tx, [data-theme="snow"] .pf2-item-tx,
[data-theme="frost"] .pf2-act, [data-theme="snow"] .pf2-act { color: var(--text-body); }
[data-theme="frost"] .pf2-card-sub, [data-theme="snow"] .pf2-card-sub,
[data-theme="frost"] .pf2-uid, [data-theme="snow"] .pf2-uid,
[data-theme="frost"] .pf2-msg-main p, [data-theme="snow"] .pf2-msg-main p,
[data-theme="frost"] .pf2-item-arrow, [data-theme="snow"] .pf2-item-arrow,
[data-theme="frost"] .pf2-msg-time, [data-theme="snow"] .pf2-msg-time { color: var(--text-2); opacity: 1; }
[data-theme="frost"] .pf2-item-ico, [data-theme="snow"] .pf2-item-ico,
[data-theme="frost"] .pf2-card-ico, [data-theme="snow"] .pf2-card-ico { color: var(--accent); filter: none; }
[data-theme="frost"] .pf2-badge, [data-theme="snow"] .pf2-badge {
  color: var(--accent-2); border-color: rgba(46, 134, 216, .4); background: rgba(46, 134, 216, .08);
}
[data-theme="frost"] .pf2-badge-owner, [data-theme="snow"] .pf2-badge-owner {
  color: #6A4FC2; border-color: rgba(106, 79, 194, .4); background: rgba(106, 79, 194, .08);
}
[data-theme="frost"] .pf2-badge-kyc, [data-theme="snow"] .pf2-badge-kyc {
  color: #1F7A4D; border-color: rgba(31, 122, 77, .4); background: rgba(31, 122, 77, .08);
}
/* 徽章墙：浅玻璃 + 深墨 */
[data-theme="frost"] .me-cosmic .pf-badges, [data-theme="snow"] .me-cosmic .pf-badges {
  background: rgba(255, 255, 255, .66); border-color: rgba(30, 90, 150, .16); box-shadow: none;
}
[data-theme="frost"] .me-cosmic .pf2-bh-tx, [data-theme="snow"] .me-cosmic .pf2-bh-tx {
  color: var(--text); text-shadow: none;
}
[data-theme="frost"] .me-cosmic .pf2-bh-num, [data-theme="snow"] .me-cosmic .pf2-bh-num {
  color: var(--accent-2); text-shadow: none;
}
[data-theme="frost"] .me-cosmic .pf-badges-note, [data-theme="snow"] .me-cosmic .pf-badges-note {
  color: var(--text-2);
}
[data-theme="frost"] .me-cosmic .pf-badge, [data-theme="snow"] .me-cosmic .pf-badge {
  color: var(--text-2); border-color: rgba(30, 90, 150, .18); background: rgba(20, 60, 110, .05);
}
[data-theme="frost"] .me-cosmic .pf-badge.earned, [data-theme="snow"] .me-cosmic .pf-badge.earned {
  color: var(--accent-2); border-color: rgba(46, 134, 216, .45);
  background: linear-gradient(135deg, rgba(46, 134, 216, .14), rgba(28, 111, 186, .08));
}
[data-theme="frost"] .me-cosmic .pf-badge.locked, [data-theme="snow"] .me-cosmic .pf-badge.locked { filter: grayscale(.7); opacity: .8; }
/* 会员卡：浅底深字 */
[data-theme="frost"] .pf2-vip-card, [data-theme="snow"] .pf2-vip-card { background: rgba(255, 255, 255, .7); }
[data-theme="frost"] .pf2-vip-badge, [data-theme="snow"] .pf2-vip-badge { color: #8A6420; }
[data-theme="frost"] .pf2-vip-quota-item span, [data-theme="snow"] .pf2-vip-quota-item span { color: var(--text-2); }
/* 首页金刚区 / 标题框 / 作品卡：酒红硬编码底转浅 */
[data-theme="frost"] .home-quick, [data-theme="snow"] .home-quick,
[data-theme="frost"] .home-sec-head, [data-theme="snow"] .home-sec-head,
[data-theme="frost"] .home-work, [data-theme="snow"] .home-work {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(30, 90, 150, .16);
  box-shadow: 0 10px 28px rgba(20, 40, 70, .08);
  backdrop-filter: blur(14px);
}
[data-theme="frost"] .home-chip, [data-theme="snow"] .home-chip {
  color: var(--text-2); background: rgba(46, 134, 216, .06); border-color: rgba(30, 90, 150, .2);
}
[data-theme="frost"] .home-chip.on, [data-theme="snow"] .home-chip.on {
  color: var(--accent-2); background: rgba(46, 134, 216, .12); border-color: rgba(46, 134, 216, .45);
}
[data-theme="frost"] .home-tag.ok, [data-theme="snow"] .home-tag.ok { color: #1F7A4D; border-color: rgba(31, 122, 77, .4); background: rgba(31, 122, 77, .08); }
[data-theme="frost"] .home-tag.wm, [data-theme="snow"] .home-tag.wm,
[data-theme="frost"] .home-tag.enc, [data-theme="snow"] .home-tag.enc { color: #B04A6E; border-color: rgba(176, 74, 110, .4); background: rgba(176, 74, 110, .08); }
[data-theme="frost"] .home-tag.vip, [data-theme="snow"] .home-tag.vip { color: #8A6420; border-color: rgba(138, 100, 32, .4); background: rgba(138, 100, 32, .08); }
[data-theme="frost"] .home-tag.hot, [data-theme="snow"] .home-tag.hot { color: #C2434F; border-color: rgba(194, 67, 79, .4); background: rgba(194, 67, 79, .08); }
[data-theme="frost"] .home-tl-node.on .home-tl-title, [data-theme="snow"] .home-tl-node.on .home-tl-title { color: var(--text); }
[data-theme="frost"] .home-tl-inline::first-line, [data-theme="snow"] .home-tl-inline::first-line { color: var(--accent-2); }
/* —— 全局霜白墨色加深一档（副标题/弱化字在浅底上更清晰） —— */
[data-theme="frost"], [data-theme="snow"] {
  --text-2: #44586E;
  --text-3: #64798F;
}
/* 合同表单标签：不被旧钱包墨色压暗 */
[data-theme="frost"] .ct-form .wt-label, [data-theme="snow"] .ct-form .wt-label { color: var(--text) !important; }

/* ==================== v3.11.25 合同表单细节（全主题） ==================== */
/* 补充条款多行文本域：内边距 + 行高，输入文字抬亮 */
.ct-form textarea.wt-input { padding: 9px 12px; line-height: 1.6; }
/* placeholder 提亮一档：暗色主题下不再似有似无 */
.ct-form .wt-input::placeholder { color: var(--text-2); opacity: .95; }
/* 文件上传控件：原生「选择文件」按钮统一成主题风格 */
.ct-form input[type="file"].wt-input { height: auto; padding: 7px 10px; font-size: 12px; }
.ct-form input[type="file"].wt-input::file-selector-button {
  margin-right: 10px; padding: 6px 14px; border-radius: 8px; cursor: pointer; font-size: 12px;
  border: 1px solid rgba(120, 200, 255, .45);
  background: rgba(78, 232, 255, .12); color: #8ec9ff;
}
[data-theme="frost"] .ct-form input[type="file"].wt-input::file-selector-button,
[data-theme="snow"] .ct-form input[type="file"].wt-input::file-selector-button {
  border-color: rgba(46, 134, 216, .45); background: rgba(46, 134, 216, .1); color: var(--accent-2);
}

/* v3.11.25b 回归修复：低配「毛玻璃关闭」模式（body.gm-mode）曾把我的页卡片
   强制回深色底，覆盖了霜白主题浅色化——正是用户反馈「修好又回到从前」的元凶。
   此处以更高优先级把浅色主题下 gm-mode 的补底也转浅。 */
[data-theme="frost"] body.gm-mode .pf2-head, [data-theme="snow"] body.gm-mode .pf2-head {
  background: rgba(255, 255, 255, .9);
  border-color: rgba(30, 90, 150, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 8px 26px rgba(20, 45, 80, .08);
}
[data-theme="frost"] body.gm-mode .pf2-card, [data-theme="snow"] body.gm-mode .pf2-card,
[data-theme="frost"] body.gm-mode .pf2-act, [data-theme="snow"] body.gm-mode .pf2-act,
[data-theme="frost"] body.gm-mode .pf2-item, [data-theme="snow"] body.gm-mode .pf2-item,
[data-theme="frost"] body.gm-mode .pf2-ico, [data-theme="snow"] body.gm-mode .pf2-ico,
[data-theme="frost"] body.gm-mode .gm-perk, [data-theme="snow"] body.gm-mode .gm-perk {
  background-color: rgba(20, 60, 110, .06);
}
[data-theme="frost"] body.gm-mode .logo-text, [data-theme="snow"] body.gm-mode .logo-text { color: var(--text); }
/* v3.11.25c 首页核心能力区胶囊同步转浅（漏网之鱼） */
[data-theme="frost"] .home-cap, [data-theme="snow"] .home-cap {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(30, 90, 150, .16);
  box-shadow: 0 10px 28px rgba(20, 40, 70, .08);
}
/* v3.11.25d 霜白下 toast 深底压深字不可读：以同优先级 !important 转白底深字 */
[data-theme="frost"] .toast, [data-theme="snow"] .toast {
  background: rgba(255, 255, 255, .98) !important;
  border: 1px solid rgba(30, 90, 150, .22) !important;
  box-shadow: 0 16px 50px rgba(20, 40, 70, .18) !important;
  color: var(--text);
}
[data-theme="frost"] .toast.ok, [data-theme="snow"] .toast.ok { color: #1F7A4D; }
[data-theme="frost"] .toast.err, [data-theme="snow"] .toast.err { color: #C2434F; }

/* ==================== v3.11.27 工时模块底部导航固定停靠 ====================
   问题：wt-nav 原 sticky 吸附方案滚动时浮在内容上方遮挡卡片按钮；宽度 fit-content
   叠加按钮 62px 最小宽，6 项在窄屏手机上整体向右溢出屏幕。
   方案：wt-page 改为占满视口定高的 flex 列容器，wt-body 内部独立滚动，
   wt-nav 以文档流常驻底部——不遮挡任何内容、按钮等分撑满、位置固定。
   高度百分比失效时（老内核）自动退化为「导航条排在内容末尾」的可读布局。 */
.wt-page {
  display: flex; flex-direction: column;
  height: 100%;
  margin-top: 0; margin-bottom: 0;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}
.wt-body {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.wt-nav {
  position: static; bottom: auto;
  flex: none;
  width: 100%; max-width: 100%;
  margin: 10px 0 0;
}
.phone-wrap .wt-nav { bottom: auto; }
.wt-nav-btn { min-width: 0; flex: 1 1 0; padding: 7px 2px 6px; }

/* ===== v3.11.28 作品曝光胶囊与上下卡片左右对齐 =====
   v3.11.15 把胶囊拉通为 width:100%（顶到屏幕边缘），比 mall-grid 卡片
   （左右各 16px 留白）凸出一截。改为 auto 宽 + 同款 16px 边距，与卡片对齐。 */
.mall-sec-pill {
  width: auto;
  margin: 18px 16px 12px;
  justify-content: center;
}

/* ===== v3.11.29 记工录入页「薪资未设置」强制引导条 ===== */
.wt-paywarn {
  margin: 0 12px 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 148, 62, .55);
  background: linear-gradient(160deg, rgba(120, 58, 10, .5), rgba(74, 34, 8, .62));
  box-shadow: 0 6px 18px rgba(20, 8, 2, .35);
}
.wt-paywarn b { display: block; font-size: 15px; color: #FFB65C; letter-spacing: .02em; }
.wt-paywarn p { margin: 7px 0 11px; font-size: 12.5px; line-height: 1.7; color: rgba(255, 226, 198, .88); }
.wt-paywarn .wt-btn { width: 100%; }

/* ===== v3.11.30 登录抽屉移动端恢复线条总框 =====
   v3.11.23 为修宽视口手机「贴右偏移」把移动端改成全屏无边框，细线框随之消失。
   改为 8px 内缩卡片 + 冰蓝细线 + 圆角：左右均匀留白、不再贴右，框也回来了。 */
@media (max-width: 768px) {
  .auth-drawer {
    top: 8px !important; right: 8px !important; bottom: 8px !important;
    width: calc(100vw - 16px) !important;
    border: 1px solid rgba(68, 204, 255, .32) !important;
    border-radius: 20px !important;
    box-shadow: -26px 0 70px rgba(0, 0, 0, .55), 0 0 26px rgba(68, 204, 255, .12) !important;
  }
}
