/* ============================================================================
 * 会员中心 / 顶部渐变入口 / 账户与设置（紧凑版）/ 签到 / 系统公告
 * 本表最后加载，只做新增与局部覆盖，不改动既有布局类。
 * ========================================================================== */

/* ---------------- 顶部：OEM总代理 + 下载客户端 + 账户圆点 ----------------
   参考蓝猫：两颗渐变胶囊 + 一颗四色圆点。顶栏只保留「圆点」这一个账户入口，
   旧的空白退出圆钮 / 头像胶囊全部收进面板，避免同一处出现两个入口。 */
html[data-theme] .top-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid transparent; font-size: 13px; font-weight: 650;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .16s ease, box-shadow .2s ease, filter .2s ease;
}
html[data-theme] .top-pill:hover { transform: translateY(-1px); filter: brightness(1.06); }
html[data-theme] .top-pill svg { width: 17px; height: 17px; }
html[data-theme] .top-pill.is-partner {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 52%, #6366f1 100%);
  box-shadow: 0 8px 22px -8px rgba(124, 58, 237, .8);
}
html[data-theme] .top-pill.is-client {
  color: #052526;
  background: linear-gradient(135deg, #2dd4bf 0%, #22d3ee 60%, #38bdf8 100%);
  box-shadow: 0 8px 22px -8px rgba(34, 211, 238, .7);
}

/* 四色圆点：2×2 彩色方块的发光球，尺寸 / 间距按参考图钉死。
   旧写法用 place-content:center + auto 行高，i 元素高度算成 0，方块根本看不见，
   只剩一颗空球 —— 这里显式给出两行两列轨道。 */
html[data-theme] .top-orb {
  position: relative; flex: 0 0 38px; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2);
  background:
    radial-gradient(circle at 26% 24%, rgba(168, 85, 247, .62), transparent 58%),
    radial-gradient(circle at 78% 78%, rgba(34, 211, 238, .5), transparent 58%),
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .16), rgba(10, 12, 20, .93) 74%);
  display: grid;
  grid-template-columns: 9px 9px; grid-template-rows: 9px 9px;
  gap: 3px; place-content: center; padding: 0;
  cursor: pointer;
  box-shadow: 0 0 20px -7px rgba(168, 85, 247, .75), 0 6px 18px -8px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .1);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
html[data-theme] .top-orb:hover {
  transform: scale(1.06); border-color: rgba(255, 255, 255, .34);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .16), 0 0 26px -6px rgba(168, 85, 247, .85), 0 8px 20px -8px rgba(0, 0, 0, .9);
}
html[data-theme] .top-orb .orb-dot {
  width: 9px; height: 9px; border-radius: 2.5px; display: block;
  box-shadow: 0 0 8px currentColor;
}
html[data-theme] .top-orb .orb-dot.d1 { background: #a855f7; color: rgba(168, 85, 247, .55); }
html[data-theme] .top-orb .orb-dot.d2 { background: #22d3ee; color: rgba(34, 211, 238, .55); }
html[data-theme] .top-orb .orb-dot.d3 { background: #f59e0b; color: rgba(245, 158, 11, .55); }
html[data-theme] .top-orb .orb-dot.d4 { background: #34d399; color: rgba(52, 211, 153, .55); }
html[data-theme] .top-orb .orb-badge {
  position: absolute; top: -1px; right: -1px; min-width: 8px; height: 8px;
  border-radius: 50%; background: #f43f5e; border: 2px solid var(--surface-raised, #17171c);
  box-shadow: 0 0 8px rgba(244, 63, 94, .8);
}
/* 头像胶囊 / 空白退出钮全部让位给圆点：登录态仍由 refreshShell 维护，只隐藏展示 */
html[data-theme] .chip.user-chip.is-avatar { display: none !important; }
html[data-theme] #logoutBtn,
html[data-theme] .logout-btn { display: none !important; }
html[data-theme] .topbar-right { gap: 8px; }

/* 侧栏外链条目（API 接入 → 控制台）：和站内按钮同款，只是换成 <a> */
html[data-theme] a.side-link { text-decoration: none !important; }
html[data-theme] a.side-link::after {
  content: '↗'; margin-left: 6px; font-size: 11px; color: var(--faint, #8b8b95); opacity: .8;
}

/* ---------------- 账户与设置面板 ----------------
   小屏笔记本（1366×768 / 1280×720）上既要完整展示，又不能顶出屏幕：
   面板高度锁在视口内，标题栏与底部按钮固定，只有中间的 .acc-body 滚动。
   旧版 .acc-body 没写 flex/min-height:0，内容超出后被 panel 的 overflow:hidden 直接裁掉，
   同时 .acc-d 的 nowrap 让两列网格横向撑破 —— 这两处是「内容显示不完整」的根因。 */
html[data-theme] .acc-panel {
  width: 400px;
  max-width: calc(100vw - 24px);
  max-height: min(calc(100vh - 88px), 800px);
}
html[data-theme] .acc-head { padding: 13px 14px 10px 16px; }
html[data-theme] .acc-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 2px 12px 12px !important;
}
html[data-theme] .acc-group { margin-top: 8px; }
html[data-theme] .acc-group-head { padding: 6px 4px 8px; }
html[data-theme] .acc-group-t { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; }
html[data-theme] .acc-group-t::before {
  content: ''; width: 3px; height: 12px; border-radius: 2px;
  background: #8b5cf6; box-shadow: 0 0 8px rgba(139, 92, 246, .55);
}
html[data-theme] .acc-group:nth-of-type(2) .acc-group-t::before { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, .5); }
html[data-theme] .acc-group:nth-of-type(3) .acc-group-t::before { background: #22d3ee; box-shadow: 0 0 8px rgba(34, 211, 238, .5); }
html[data-theme] .acc-group:nth-of-type(4) .acc-group-t::before { background: #3b82f6; box-shadow: 0 0 8px rgba(59, 130, 246, .5); }
html[data-theme] .acc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
/* 奇数个条目时最后一张横跨两列，不留半格空位 */
html[data-theme] .acc-grid > .acc-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
html[data-theme] .acc-card {
  min-width: 0; padding: 9px 10px; gap: 9px; border-radius: 11px;
  align-items: center;
}
html[data-theme] .acc-card.is-toggle { padding-right: 34px; }
html[data-theme] .acc-card.is-toggle .acc-switch { right: 8px; width: 24px; }
html[data-theme] .acc-card.is-toggle .acc-switch::after { width: 10px; height: 10px; }
html[data-theme] .acc-card.is-toggle.is-on .acc-switch::after { transform: translateX(10px); }
html[data-theme] .acc-ic { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px; }
html[data-theme] .acc-ic svg { width: 16px; height: 16px; }
html[data-theme] .acc-txt { min-width: 0; }
html[data-theme] .acc-t { font-size: 12.5px; line-height: 1.25; }
html[data-theme] .acc-d {
  font-size: 10.5px; line-height: 1.42; margin-top: 2px;
  white-space: normal !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: initial !important;
}
/* 标题栏 + 底部操作栏固定，中间滚动 */
html[data-theme] .acc-foot {
  flex: 0 0 auto; display: flex; gap: 8px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line, rgba(255, 255, 255, .08));
}
html[data-theme] .acc-logout,
html[data-theme] .acc-login {
  flex: 1 1 auto; height: 34px; border-radius: 10px; cursor: pointer;
  font-size: 12.5px; font-weight: 650; letter-spacing: .2px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .16s ease, border-color .16s ease, filter .16s ease;
}
html[data-theme] .acc-logout {
  border: 1px solid rgba(244, 63, 94, .32); background: rgba(244, 63, 94, .08); color: #fda4af;
}
html[data-theme] .acc-logout:hover { background: rgba(244, 63, 94, .16); border-color: rgba(244, 63, 94, .5); }
html[data-theme] .acc-login {
  border: 1px solid transparent; color: #fff;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  box-shadow: 0 8px 20px -12px rgba(124, 58, 237, .9);
}
html[data-theme] .acc-login:hover { filter: brightness(1.08); }
html[data-theme="light"] .acc-logout {
  color: #dc2626; border-color: rgba(220, 38, 38, .28); background: rgba(220, 38, 38, .06);
}
html[data-theme="light"] .acc-logout:hover { background: rgba(220, 38, 38, .12); border-color: rgba(220, 38, 38, .45); }
@media (max-width: 600px) {
  html[data-theme] .acc-panel { width: calc(100vw - 20px); max-height: calc(100vh - 76px); }
  /* 手机竖屏：两列太窄会把「隐藏代理商按钮」这类标题裁成省略号，改单列 */
  html[data-theme] .acc-grid { grid-template-columns: 1fr; }
  html[data-theme] .acc-grid > .acc-card:last-child:nth-child(odd) { grid-column: auto; }
  html[data-theme] .acc-card { padding-right: 12px; }
  html[data-theme] .acc-card.is-toggle { padding-right: 42px; }
  html[data-theme] .acc-d { -webkit-line-clamp: 2; }
}

/* ---------------- 会员中心（#wode） ---------------- */
.wode {
  display: grid; grid-template-columns: 206px minmax(0, 1fr);
  gap: 18px; align-items: start;
}
.wode-side {
  position: sticky; top: 12px;
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
  border-radius: 16px; background: var(--panel-soft, rgba(255, 255, 255, .035));
  padding: 10px; display: flex; flex-direction: column; gap: 4px;
}
.wode-tab {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: 11px; border: 1px solid transparent;
  background: transparent; color: var(--ink-soft, #9a9aa5);
  font-size: 13px; cursor: pointer; text-align: left; transition: .15s;
}
.wode-tab svg { width: 17px; height: 17px; }
.wode-tab:hover { color: var(--ink, #f2f2f5); background: rgba(255, 255, 255, .05); }
.wode-tab.is-on {
  color: #fff; font-weight: 650;
  background: linear-gradient(135deg, rgba(168, 85, 247, .95), rgba(99, 102, 241, .95));
  box-shadow: 0 10px 24px -14px rgba(139, 92, 246, .9);
}
.wode-tab.is-on svg { color: #fff; }
.wode-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.wode-card {
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
  border-radius: 16px; background: var(--panel-soft, rgba(255, 255, 255, .035));
  padding: 18px; min-width: 0;
}
.wode-card-h {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.wode-card-h h2 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: .2px; }
.wode-id {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
  color: #5eead4; background: rgba(45, 212, 191, .1);
  border: 1px solid rgba(45, 212, 191, .3); border-radius: 8px; padding: 4px 9px;
}
.wode-id button { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0; display: inline-flex; }
.wode-id button svg { width: 13px; height: 13px; }
.wode-me { display: flex; align-items: center; gap: 14px; }
.wode-av {
  width: 66px; height: 66px; border-radius: 50%; overflow: hidden; flex: 0 0 66px;
  display: grid; place-items: center; color: #fff; font-size: 22px; font-weight: 700;
  background: linear-gradient(135deg, #7c3aed, #22d3ee);
}
.wode-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wode-name { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 700; }
.wode-name button { border: 0; background: transparent; color: var(--ink-soft, #9a9aa5); cursor: pointer; }
.wode-name button svg { width: 16px; height: 16px; }
.wode-role {
  display: inline-block; margin-top: 7px; font-size: 12px; font-weight: 650;
  color: #fbbf24; border: 1px solid rgba(251, 191, 36, .45);
  background: rgba(251, 191, 36, .12); border-radius: 8px; padding: 2px 10px;
}
.wode-balrow {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line, rgba(255, 255, 255, .09));
}
.wode-balrow span { font-size: 13px; color: var(--ink-soft, #9a9aa5); }
.wode-balrow b { font-size: 20px; color: #fbbf24; font-variant-numeric: tabular-nums; }
.wode-switch-row {
  display: flex; align-items: flex-start; gap: 12px; margin-top: 14px;
  padding: 13px 14px; border-radius: 12px;
  background: rgba(139, 92, 246, .08); border: 1px solid rgba(139, 92, 246, .18);
}
.wode-switch {
  position: relative; width: 34px; height: 19px; flex: 0 0 34px; margin-top: 2px;
  border-radius: 999px; border: 0; background: rgba(140, 150, 180, .35); cursor: pointer; transition: .18s;
}
.wode-switch::after {
  content: ''; position: absolute; left: 2px; top: 2px; width: 15px; height: 15px;
  border-radius: 50%; background: #fff; transition: .18s;
}
.wode-switch.is-on { background: #22c55e; }
.wode-switch.is-on::after { transform: translateX(15px); }
.wode-switch-row b { display: block; font-size: 13.5px; }
.wode-switch-row p { margin: 3px 0 0; font-size: 11.5px; color: var(--ink-soft, #9a9aa5); line-height: 1.55; }
.wode-low {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 10px 0 0 46px; padding: 11px 13px; border-radius: 11px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line, rgba(255, 255, 255, .1));
}
.wode-low label { font-size: 12px; color: var(--ink-soft, #9a9aa5); }
.wode-low input {
  width: 96px; height: 30px; padding: 0 9px; border-radius: 8px; font-size: 13px;
  border: 1px solid var(--line, rgba(255, 255, 255, .16));
  background: rgba(0, 0, 0, .18); color: var(--ink, #f2f2f5); outline: none;
}
.wode-low .wode-tip { width: 100%; font-size: 11px; color: var(--ink-soft, #8e8e99); line-height: 1.55; }
.wode-acc-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  margin-top: 16px; padding: 12px 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
  background: rgba(255, 255, 255, .04); color: var(--ink, #f2f2f5); font-size: 13px; font-weight: 600;
}
.wode-acc-toggle .chev { transition: transform .18s; color: var(--ink-soft, #9a9aa5); }
.wode-acc-toggle.is-open .chev { transform: rotate(180deg); }
.wode-acc-body { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.wode-res {
  border: 1px solid var(--line, rgba(255, 255, 255, .1)); border-radius: 12px;
  padding: 13px 14px; background: rgba(255, 255, 255, .03);
}
.wode-res-h { display: flex; align-items: center; justify-content: space-between; }
.wode-res-h b { font-size: 13.5px; }
.wode-res-h em {
  font-style: normal; font-size: 11px; color: var(--ink-soft, #9a9aa5);
  border: 1px solid var(--line, rgba(255, 255, 255, .14)); border-radius: 7px; padding: 2px 8px;
}
.wode-res p { margin: 6px 0 10px; font-size: 11.5px; color: var(--ink-soft, #9a9aa5); line-height: 1.6; }
.wode-res-row { display: flex; justify-content: space-between; font-size: 12.5px; margin-top: 6px; }
.wode-res-row span { color: var(--ink-soft, #9a9aa5); }
.wode-kv {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 2px; border-bottom: 1px solid var(--line, rgba(255, 255, 255, .08));
}
.wode-kv:last-child { border-bottom: 0; }
.wode-kv-k { font-size: 13px; color: var(--ink-soft, #9a9aa5); }
.wode-kv-v { display: flex; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 600; }
.wode-kv-v .wode-btn {
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(45, 212, 191, .4); background: rgba(45, 212, 191, .12); color: #5eead4;
}
.wode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wode-fn {
  display: flex; align-items: center; gap: 11px; padding: 12px;
  border-radius: 12px; cursor: pointer; text-align: left;
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
  background: rgba(255, 255, 255, .03); color: var(--ink, #f2f2f5);
  border-left: 3px solid rgba(168, 85, 247, .7);
  transition: .15s;
}
.wode-fn:hover { background: rgba(255, 255, 255, .06); transform: translateY(-1px); }
.wode-fn .wode-fn-ic {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 34px;
  display: grid; place-items: center; background: rgba(255, 255, 255, .07);
}
.wode-fn .wode-fn-ic svg { width: 17px; height: 17px; }
.wode-fn b { display: block; font-size: 13px; }
.wode-fn span { display: block; font-size: 11px; color: var(--ink-soft, #9a9aa5); margin-top: 2px; }
.wode-fn.tone-gold { border-left-color: #f59e0b; } .wode-fn.tone-gold .wode-fn-ic { color: #fbbf24; }
.wode-fn.tone-violet { border-left-color: #a855f7; } .wode-fn.tone-violet .wode-fn-ic { color: #c084fc; }
.wode-fn.tone-green { border-left-color: #22c55e; } .wode-fn.tone-green .wode-fn-ic { color: #4ade80; }
.wode-fn.tone-blue { border-left-color: #3b82f6; } .wode-fn.tone-blue .wode-fn-ic { color: #60a5fa; }
.wode-fn.tone-rose { border-left-color: #f43f5e; } .wode-fn.tone-rose .wode-fn-ic { color: #fb7185; }
.wode-fn.tone-teal { border-left-color: #14b8a6; } .wode-fn.tone-teal .wode-fn-ic { color: #2dd4bf; }
.wode-out {
  width: 100%; padding: 12px; border-radius: 12px; cursor: pointer; font-size: 13.5px; font-weight: 650;
  border: 1px solid rgba(244, 63, 94, .45); background: rgba(244, 63, 94, .12); color: #fb7185;
}
.wode-out:hover { background: rgba(244, 63, 94, .2); }
.wode-empty { padding: 34px 12px; text-align: center; color: var(--ink-soft, #9a9aa5); font-size: 13px; }
.wode-list { display: flex; flex-direction: column; }
.wode-li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 2px; border-bottom: 1px solid var(--line, rgba(255, 255, 255, .08)); font-size: 13px;
}
.wode-li:last-child { border-bottom: 0; }
.wode-li small { display: block; color: var(--ink-soft, #9a9aa5); font-size: 11.5px; margin-top: 3px; }
.wode-li b { font-variant-numeric: tabular-nums; }
.wode-li .up { color: #4ade80; } .wode-li .down { color: #fb7185; }
@media (max-width: 900px) {
  .wode { grid-template-columns: minmax(0, 1fr); }
  .wode-side { position: static; flex-direction: row; overflow-x: auto; gap: 6px; }
  .wode-tab { flex: 0 0 auto; white-space: nowrap; }
  .wode-grid { grid-template-columns: 1fr; }
}
html[data-theme="light"] .wode-card,
html[data-theme="light"] .wode-side { background: #fff; border-color: rgba(15, 23, 42, .1); }
html[data-theme="light"] .wode-card-h h2,
html[data-theme="light"] .wode-name,
html[data-theme="light"] .wode-kv-v,
html[data-theme="light"] .wode-fn { color: #111827; }
html[data-theme="light"] .wode-tab:hover { background: rgba(15, 23, 42, .05); }
html[data-theme="light"] .wode-switch-row { background: rgba(139, 92, 246, .07); border-color: rgba(139, 92, 246, .18); }
html[data-theme="light"] .wode-low,
html[data-theme="light"] .wode-fn,
html[data-theme="light"] .wode-res,
html[data-theme="light"] .wode-acc-toggle { background: rgba(15, 23, 42, .03); border-color: rgba(15, 23, 42, .1); color: #111827; }
html[data-theme="light"] .wode-low input { background: #fff; color: #111827; border-color: rgba(15, 23, 42, .16); }

/* ---------------- 签到弹窗 ---------------- */
.ck-modal { width: min(860px, calc(100vw - 32px)); }
.ck-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
.ck-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.ck-stat {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04);
}
.ck-stat i {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(251, 191, 36, .14); color: #fbbf24; font-style: normal; font-size: 15px;
}
.ck-stat b { display: block; font-size: 18px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ck-stat span { font-size: 11px; color: var(--ink-soft, #9a9aa5); }
.ck-hint {
  display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 11px;
  background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .28);
  color: #fcd34d; font-size: 12px; margin-bottom: 14px;
}
.ck-line { position: relative; display: flex; justify-content: space-between; margin: 26px 4px 8px; }
.ck-line::before {
  content: ''; position: absolute; left: 8%; right: 8%; top: 11px; height: 2px;
  background: rgba(255, 255, 255, .12);
}
.ck-node { position: relative; width: 33.33%; text-align: center; }
.ck-node i {
  position: relative; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px;
  margin: 0 auto 8px; border-radius: 50%; font-style: normal; font-size: 11px;
  border: 2px solid rgba(255, 255, 255, .2); background: #14141a; color: #9a9aa5;
}
.ck-node.done i { background: #fbbf24; border-color: #fbbf24; color: #1a1206; }
.ck-node b { display: block; font-size: 12.5px; }
.ck-node span { display: block; font-size: 11px; color: #fbbf24; margin-top: 3px; }
.ck-claim {
  width: 100%; margin-top: 12px; padding: 12px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(34, 197, 94, .5); background: rgba(34, 197, 94, .16);
  color: #4ade80; font-size: 14px; font-weight: 700;
}
.ck-claim[disabled] { cursor: default; opacity: .85; }
.ck-claim.is-done { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: var(--ink-soft, #9a9aa5); }
.ck-sub { text-align: center; font-size: 11.5px; color: var(--ink-soft, #9a9aa5); margin-top: 8px; }
.ck-cal {
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px;
  background: rgba(255, 255, 255, .03); padding: 14px;
}
.ck-cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ck-cal-h b { font-size: 14px; }
.ck-cal-h span { font-size: 11px; color: var(--ink-soft, #9a9aa5); }
.ck-cal-h span em { font-style: normal; color: #4ade80; }
.ck-week, .ck-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.ck-week span { text-align: center; font-size: 11px; color: var(--ink-soft, #9a9aa5); padding-bottom: 4px; }
.ck-day {
  aspect-ratio: 1 / 1; display: grid; place-items: center; border-radius: 8px;
  font-size: 12px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03);
  color: var(--ink-soft, #9a9aa5); position: relative;
}
.ck-day.is-signed { background: rgba(34, 197, 94, .18); border-color: rgba(34, 197, 94, .4); color: #86efac; }
.ck-day.is-today { border-color: #fbbf24; color: #fbbf24; font-weight: 700; }
.ck-day.is-mute { opacity: .3; }
.ck-foot {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px;
}
.ck-foot-card {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 13px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .03); font-size: 12px;
}
.ck-foot-card b { color: #fbbf24; }
@media (max-width: 760px) {
  .ck-wrap { grid-template-columns: minmax(0, 1fr); }
  .ck-foot { grid-template-columns: 1fr; }
}
html[data-theme="light"] .ck-stat,
html[data-theme="light"] .ck-cal,
html[data-theme="light"] .ck-foot-card { background: rgba(15, 23, 42, .03); border-color: rgba(15, 23, 42, .1); }
html[data-theme="light"] .ck-line::before { background: rgba(15, 23, 42, .14); }
html[data-theme="light"] .ck-node i { background: #fff; border-color: rgba(15, 23, 42, .18); }
html[data-theme="light"] .ck-day { background: rgba(15, 23, 42, .03); border-color: rgba(15, 23, 42, .08); }
html[data-theme="light"] .ck-day.is-signed { background: rgba(34, 197, 94, .16); }

/* ---------------- 系统公告弹窗 ---------------- */
.an-list { display: flex; flex-direction: column; gap: 10px; max-height: 56vh; overflow-y: auto; }
.an-item {
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px;
  background: rgba(255, 255, 255, .035); padding: 13px 14px;
}
.an-item.is-pinned { border-color: rgba(245, 158, 11, .4); background: rgba(245, 158, 11, .07); }
.an-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.an-top b { font-size: 13.5px; }
.an-badge {
  font-size: 10.5px; padding: 1px 7px; border-radius: 6px;
  background: rgba(245, 158, 11, .18); color: #fbbf24; border: 1px solid rgba(245, 158, 11, .35);
}
.an-time { margin-left: auto; font-size: 11px; color: var(--ink-soft, #9a9aa5); }
.an-body { font-size: 12.5px; line-height: 1.7; color: var(--ink-soft, #b6b6c2); white-space: pre-wrap; }
html[data-theme="light"] .an-item { background: rgba(15, 23, 42, .03); border-color: rgba(15, 23, 42, .1); }
html[data-theme="light"] .an-body { color: #4b5563; }

/* ---------------- 左下角会员卡：头像 + 昵称/余额 + 金色充值 ----------------
   参考蓝猫：一张深色圆角卡（头像 / 昵称 / ⚡余额 / 箭头）+ 右侧金色描边充值按钮，
   两者等高、间距一致；这里全部用高优先级覆盖，压住 styles-lingke 里的旧值。 */
html[data-theme] .side-foot { padding: 10px 10px 12px !important; }
html[data-theme] .sn-user-row { display: flex; align-items: stretch; gap: 9px; width: 100%; }
html[data-theme] .sn-user-row .sn-user {
  flex: 1 1 auto; min-width: 0;
  gap: 10px !important;
  padding: 8px 10px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, .075) !important;
  background: linear-gradient(180deg, #1c1c21, #141417) !important;
  box-shadow: 0 10px 24px -22px rgba(0, 0, 0, .9) inset !important;
}
html[data-theme] .sn-user-row .sn-user:hover {
  border-color: rgba(255, 255, 255, .16) !important;
  background: linear-gradient(180deg, #222228, #17171b) !important;
}
html[data-theme] .sn-user-row .sn-avatar {
  flex: 0 0 42px !important; width: 42px !important; height: 42px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  background: linear-gradient(135deg, #8b5cf6, #4f46e5) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .04) !important;
  font-size: 14px !important;
}
html[data-theme] .sn-user-row .sn-user-name {
  font-size: 13.5px !important; font-weight: 700 !important; letter-spacing: .2px;
}
html[data-theme] .sn-user-row .sn-user-pts {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px !important; font-weight: 700 !important; color: #f5b942 !important;
}
html[data-theme] .sn-user-row .sn-user-go {
  margin-left: auto; color: rgba(255, 255, 255, .3) !important;
  font-size: 16px !important; line-height: 1;
}
html[data-theme] .sn-user-row .sn-recharge {
  flex: 0 0 auto; min-width: 82px; align-self: stretch;
  height: auto !important; padding: 0 13px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(245, 185, 66, .5) !important;
  background: rgba(245, 185, 66, .07) !important;
  color: #f5b942 !important;
  font-size: 13px !important; font-weight: 700 !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  gap: 6px !important; white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
html[data-theme] .sn-user-row .sn-recharge:hover {
  background: rgba(245, 185, 66, .16) !important;
  border-color: rgba(245, 185, 66, .8) !important;
  color: #ffd07a !important;
  transform: translateY(-1px);
}
html[data-theme] .sn-user-row .sn-recharge svg { width: 15px; height: 15px; flex: 0 0 15px; }

/* 未登录：同一张卡片的形态，右侧是「登录 / 注册」主按钮 */
html[data-theme] .side-foot .sn-user-guest {
  gap: 10px !important;
  padding: 9px 10px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, .075) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .022)) !important;
}
html[data-theme] .side-foot .sn-user-guest .sn-avatar {
  flex: 0 0 40px !important; width: 40px !important; height: 40px !important;
  border-radius: 50% !important;
}
html[data-theme] .side-foot .sn-user-guest .sn-reg {
  height: 30px !important; padding: 0 12px !important; border-radius: 10px !important;
  border: 1px solid transparent !important;
  background: linear-gradient(135deg, #7c3aed, #6366f1) !important;
  color: #fff !important; font-size: 12px !important; font-weight: 700 !important;
}
html[data-theme] .side-foot .sn-user-guest .sn-reg:hover {
  filter: brightness(1.08); background: linear-gradient(135deg, #8b5cf6, #6d6ff5) !important;
}

/* 浅色主题：卡片换成浅底深字，充值仍是金色描边 */
html[data-theme="light"] .sn-user-row .sn-user,
html[data-theme="light"] .side-foot .sn-user-guest {
  background: #fff !important; border-color: rgba(15, 23, 42, .09) !important;
  box-shadow: 0 6px 16px -14px rgba(15, 23, 42, .5) !important;
}
html[data-theme="light"] .sn-user-row .sn-user-name { color: #111827 !important; }
html[data-theme="light"] .sn-user-row .sn-user-pts { color: #b7791f !important; }
html[data-theme="light"] .sn-user-row .sn-user-go { color: rgba(15, 23, 42, .3) !important; }
html[data-theme="light"] .sn-user-row .sn-recharge { color: #b7791f !important; border-color: rgba(183, 121, 31, .45) !important; background: rgba(245, 185, 66, .1) !important; }

/* ---------------- 弹窗宽度与标题（覆盖全站默认的窄弹窗） ---------------- */
html[data-theme] .modal.ck-modal-box {
  width: min(880px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  padding: 18px 20px 20px;
}
html[data-theme] .modal.an-modal-box {
  width: min(560px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  padding: 18px 20px 20px;
}
html[data-theme] .ck-modal .modal-head,
html[data-theme] .an-modal-box .modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin: 0 0 14px;
}
html[data-theme] .ck-modal .modal-head > div,
html[data-theme] .an-modal-box .modal-head > div {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
}
html[data-theme] .ck-modal .modal-head b,
html[data-theme] .an-modal-box .modal-head b { font-size: 17px; font-weight: 700; letter-spacing: .2px; }
html[data-theme] .ck-modal .modal-head em,
html[data-theme] .an-modal-box .modal-head em {
  font-style: normal; font-size: 11.5px; color: var(--ink-soft, #9a9aa5);
}
html[data-theme] .an-modal-box .modal-head span {
  font-size: 11px; color: var(--ink-soft, #9a9aa5); letter-spacing: .06em;
}
@media (max-width: 760px) {
  html[data-theme] .modal.ck-modal-box { padding: 16px; }
}

/* ---------------- 顶部空间紧张时的降级 ----------------
   顶栏中间还有一列绝对定位的快捷入口，窗口变窄时它会和右侧按钮重叠：
   先把功能重复的「我要推广」收起，再在更窄时把两颗胶囊收成图标。 */
html[data-theme] .topbar-right { position: relative; z-index: 6; }
@media (max-width: 1520px) {
  html[data-theme] .lk-dock-card.is-promo { display: none !important; }
}
@media (max-width: 1360px) {
  html[data-theme] .top-pill { padding: 0 12px; font-size: 12.5px; }
  html[data-theme] .top-pill svg { width: 16px; height: 16px; }
}
@media (max-width: 1180px) {
  html[data-theme] .top-pill { padding: 0 10px; height: 34px; }
  html[data-theme] .top-pill b { display: none; }
  html[data-theme] .top-pill svg { width: 18px; height: 18px; }
  html[data-theme] .top-orb { width: 34px; height: 34px; flex: 0 0 34px; }
  html[data-theme] .top-orb { grid-template-columns: 7px 7px; grid-template-rows: 7px 7px; gap: 2.5px; }
  html[data-theme] .top-orb .orb-dot { width: 7px; height: 7px; }
}

/* ============================================================================
 * 左下角「我的作品」入口（参考站同款模板）
 *   一张深色圆角卡：左侧作品缩略图（固定裁切比例）+ 右侧「我的作品」标题/说明，
 *   右侧仍是金色描边「充值」，两者等高。整块比原来更贴近侧栏底边。
 * ========================================================================== */
@media (min-width: 1024px) {
  /* 侧栏整体比外壳少 30px，底部留白从 44px 收到 30px：整块内容随之下移 */
  html[data-theme] .sidebar { height: calc(100vh - 12px) !important; }
}

html[data-theme] .side-foot { padding: 10px 10px 8px !important; }

html[data-theme] .sn-user-row .sn-user-works {
  gap: 10px !important;
  padding: 8px 10px !important;
}

/* 缩略图：4:3 裁切（56×42），圆角方块，图片统一 cover 填满 */
html[data-theme] .side-foot .sn-workthumb {
  position: relative;
  flex: 0 0 56px !important;
  width: 56px !important;
  height: 42px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  display: grid !important;
  place-items: center !important;
  background: linear-gradient(145deg, #2b2b34, #1a1a20) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.03) !important;
}

html[data-theme] .side-foot .sn-workthumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

html[data-theme] .side-foot .sn-workthumb-ic {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.34);
}

html[data-theme] .side-foot .sn-workthumb-ic svg {
  width: 20px !important;
  height: 20px !important;
  display: block;
}

/* 有图时藏掉占位图标 */
html[data-theme] .side-foot .sn-workthumb:not(.is-empty) .sn-workthumb-ic { display: none; }

/* 右侧文字：标题 + 一行说明，说明不换行、超出省略 */
html[data-theme] .sn-user-row .sn-user-works .sn-user-sub {
  display: block !important;
  font-size: 11.5px !important;
  line-height: 1.2 !important;
  color: #8b8b93 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme] .sn-user-row .sn-user-works .sn-user-name {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px;
  line-height: 1.25 !important;
}

/* ============================================================================
 * 我的作品：按天分组（参考站版式）
 *   顶部：分类胶囊 + 选择日期 + 数量；正文：保留期提示条 + 每天一段
 *   （日期 + 消耗算力 + 图片/视频数量），卡片统一尺寸 + cover 裁切。
 * ========================================================================== */
.wk-head-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.wk-seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
}
.wk-seg button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 6px 13px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.wk-seg button:hover { color: var(--ink); }
.wk-seg button.is-active { background: var(--accent-soft); color: var(--accent-deep); }

.wk-date-wrap { position: relative; display: inline-flex; align-items: center; gap: 4px; }
.wk-date {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 33px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.wk-date svg { width: 15px; height: 15px; }
.wk-date:hover { color: var(--ink); border-color: var(--line-strong); }
.wk-date.is-on { color: var(--accent-deep); border-color: rgba(14, 138, 99, .38); background: var(--accent-soft); }
.wk-date-input {
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 1px;
  opacity: 0;
  border: 0; padding: 0;
  pointer-events: none;
}
.wk-date-clear {
  appearance: none;
  width: 22px; height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.wk-date-clear:hover { color: var(--ink); border-color: var(--line-strong); }

.wk-count { font-size: 12px; color: var(--faint); white-space: nowrap; }

/* —— 保留期提示条（可关闭，7 天规则不变） —— */
.wk-warn {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 4px;
  padding: 9px 12px;
  border: 1px solid rgba(226, 158, 40, .38);
  border-radius: 10px;
  background: rgba(226, 158, 40, .09);
  color: #d8a23c;
  font-size: 12.5px;
  line-height: 1.6;
}
html[data-theme="light"] .wk-warn { color: #a9711a; background: rgba(226, 158, 40, .12); }
.wk-warn-ic { display: inline-flex; flex: 0 0 14px; }
.wk-warn-ic svg { width: 14px; height: 14px; }
.wk-warn-tx { flex: 1 1 auto; min-width: 0; }
.wk-warn-tx b { color: #f0b545; }
html[data-theme="light"] .wk-warn-tx b { color: #b9791a; }
.wk-warn-x {
  appearance: none;
  flex: 0 0 auto;
  width: 20px; height: 20px;
  border: 1px solid rgba(226, 158, 40, .45);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.wk-warn-x:hover { background: rgba(226, 158, 40, .18); }

/* —— 每天一段 —— */
.wk-days { margin-top: 2px; }
.wk-day { margin-top: 20px; }
.wk-day:first-child { margin-top: 12px; }
.wk-day-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.wk-day-t { font-size: 15.5px; font-weight: 750; color: var(--ink); letter-spacing: .2px; }
.wk-cost {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(226, 158, 40, .32);
  background: rgba(226, 158, 40, .1);
  color: #d8a23c;
  font-variant-numeric: tabular-nums;
}
html[data-theme="light"] .wk-cost { color: #a9711a; }
.wk-kinds { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.wk-kind {
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* —— 统一尺寸的卡片：方块（约 1:1.08），cover 裁切 —— */
.wk-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 8px;
}
.wk-card {
  position: relative;
  aspect-ratio: 100 / 108;
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: border-color .16s ease, transform .16s ease;
}
.wk-card:hover { border-color: var(--line-strong); }
.wk-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wk-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .28s ease;
}
.wk-card:hover img { transform: scale(1.045); }
.wk-play {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  display: grid;
  place-items: center;
  color: #fff;
  pointer-events: none;
}
.wk-play svg { width: 14px; height: 14px; }
.wk-expired {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-soft);
}

/* ============================================================================
 * 沉浸预览：对齐参考站（右上角深色工具条 / 底部居中计数 / 两侧圆形箭头）
 * ========================================================================== */
html[data-theme] .viewer { background: rgba(0, 0, 0, .9); }
html[data-theme] .vw-info { display: none; }
html[data-theme] .vw-top { justify-content: flex-end; padding: 16px 18px; }
html[data-theme] .vw-tools {
  gap: 2px;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(32, 32, 36, .92);
  box-shadow: 0 12px 30px -18px #000;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
html[data-theme] .vw-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: transparent;
  transform: none;
}
html[data-theme] .vw-btn:hover { background: rgba(255, 255, 255, .14); transform: none; }
html[data-theme] .vw-btn svg { width: 18px; height: 18px; }
html[data-theme] .vw-bottom { justify-content: center; padding: 12px 20px 16px; }
html[data-theme] .vw-count { font-size: 12.5px; color: rgba(255, 255, 255, .72); }
html[data-theme] .vw-zoom { position: absolute; right: 18px; bottom: 12px; }
html[data-theme] .vw-hint { display: none; }
html[data-theme] .vw-nav {
  width: 44px; height: 44px;
  background: rgba(0, 0, 0, .5);
  border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
html[data-theme] .vw-nav:hover { background: rgba(0, 0, 0, .72); }
html[data-theme] .vw-nav.prev { left: 22px; }
html[data-theme] .vw-nav.next { right: 22px; }

@media (max-width: 700px) {
  .wk-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
  .wk-kinds { display: none; }
}

/* ============================================================================
 * 预览器二次对齐参考站（本轮）
 *   ① 工具条、左右箭头挂到图片这一层，始终贴在图片右上角 / 左右边缘；
 *   ② 图片无边框、无圆角、无投影，直接铺在模糊背景上；
 *   ③ 每行缩略图再放大一点。
 * ========================================================================== */
html[data-theme] .vw-media { position: relative !important; }

html[data-theme] .vw-media img,
html[data-theme] .vw-media video,
html[data-theme] .vw-media canvas {
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* 工具条：图片右上角，深色圆角胶囊，图标留一点内边距 */
html[data-theme] .vw-tools {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  margin: 0;
}

/* 左右切换：贴在图片左右边缘、垂直居中，半透明深色圆钮 */
html[data-theme] .vw-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, .46);
  border: 1px solid rgba(255, 255, 255, .1);
  opacity: .92;
}
html[data-theme] .vw-nav:hover { background: rgba(0, 0, 0, .7); opacity: 1; }
html[data-theme] .vw-nav.prev { left: 10px; right: auto; }
html[data-theme] .vw-nav.next { right: 10px; left: auto; }
html[data-theme] .vw-nav[hidden] { display: none !important; }

/* 缩略图：每行卡片再大一点 */
.wk-grid {
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)) !important;
  gap: 10px !important;
}
@media (max-width: 700px) {
  .wk-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)) !important; gap: 7px !important; }
}

/* 工具条 / 箭头在图片上时要保持可点的手型，并且小图也不溢出 */
html[data-theme] .vw-btn,
html[data-theme] .vw-nav { cursor: pointer; }
html[data-theme] .vw-tools { max-width: calc(100% - 16px); }

/* ============================================================================
 * 我的作品右侧：个人中心入口（参考站的右侧个人信息卡形态）
 * ========================================================================== */
.wk-layout { display: flex; align-items: flex-start; gap: 18px; }
.wk-main { flex: 1 1 auto; min-width: 0; }
.wk-side {
  flex: 0 0 224px;
  position: sticky;
  top: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #26262b;
  background: linear-gradient(180deg, #17171b, #121215);
  cursor: pointer;
  transition: border-color .16s ease, transform .16s ease;
}
.wk-side:hover { border-color: #3a3a42; transform: translateY(-1px); }
.wk-side:focus-visible { outline: 2px solid #22d3ee; outline-offset: 2px; }
.wk-side-h { display: flex; align-items: center; justify-content: space-between; }
.wk-side-h b { font-size: 13.5px; font-weight: 700; color: #f4f4f5; }
.wk-side-go { color: #52525b; font-size: 15px; line-height: 1; }
.wk-side-me { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.wk-side-av {
  flex: 0 0 40px; width: 40px; height: 40px;
  border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #8b5cf6, #4f46e5);
  color: #fff; font-size: 14px; font-weight: 700;
}
.wk-side-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wk-side-i { min-width: 0; }
.wk-side-i b {
  display: block; font-size: 13.5px; color: #fafafa; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wk-side-i span { display: block; margin-top: 2px; font-size: 11.5px; color: #7c7c86; }
.wk-side-bal {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: 11.5px; color: #8b8b93;
}
.wk-side-bal b { font-size: 13px; color: #f5b942; font-weight: 700; }
.wk-side-btn {
  width: 100%; height: 34px; margin-top: 12px;
  border-radius: 9px;
  border: 1px solid rgba(34, 211, 238, .35);
  background: rgba(34, 211, 238, .1);
  color: #5eead4; font-size: 12.5px; font-weight: 650;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.wk-side-btn:hover { background: rgba(34, 211, 238, .18); border-color: rgba(34, 211, 238, .55); }

@media (max-width: 1100px) {
  .wk-layout { flex-direction: column-reverse; gap: 12px; }
  .wk-side { position: static; width: 100%; flex: 0 0 auto; }
}

/* ============================================================================
 * 个人中心 #profile —— 1:1 复刻参考站「个人信息 + 其他功能」两张深色卡片
 * ========================================================================== */
.prof { max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.prof-card {
  background: #151518;
  border: 1px solid #26262b;
  border-radius: 14px;
  padding: 20px;
}
.prof-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.prof-head h2 { margin: 0; font-size: 17px; font-weight: 750; color: #fff; letter-spacing: .2px; }

.prof-idwrap { display: inline-flex; align-items: center; gap: 6px; }
.prof-id {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(34, 211, 238, .24);
  background: rgba(34, 211, 238, .08);
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
.prof-copy {
  width: 22px; height: 22px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  background: rgba(255, 255, 255, .04);
  color: #9aa0ab;
  display: grid; place-items: center;
  cursor: pointer;
}
.prof-copy:hover { background: rgba(255, 255, 255, .12); color: #e4e4e7; }
.prof-copy svg { width: 13px; height: 13px; }

.prof-me { display: flex; align-items: center; gap: 14px; }
.prof-av {
  position: relative;
  flex: 0 0 64px; width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #fff;
  color: #111;
  font-size: 20px; font-weight: 700;
}
.prof-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #fff; }
.prof-cam {
  position: absolute; right: -2px; bottom: -2px;
  width: 22px; height: 22px; padding: 0;
  border: 2px solid #151518;
  border-radius: 50%;
  background: #2a2a31;
  color: #cfcfd6;
  display: grid; place-items: center;
  cursor: pointer;
}
.prof-cam:hover { background: #3a3a43; }
.prof-cam svg { width: 11px; height: 11px; }

.prof-me-i { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.prof-name { display: flex; align-items: center; gap: 8px; }
.prof-name b {
  font-size: 17px; font-weight: 750; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prof-role {
  align-self: flex-start;
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 7px;
  border: 1px solid rgba(245, 185, 66, .5);
  background: rgba(245, 185, 66, .08);
  color: #f5b942;
  font-size: 11.5px;
  font-weight: 700;
}

.prof-bal {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.prof-bal-k { font-size: 13px; color: #a1a1aa; }
.prof-bal-v { display: inline-flex; align-items: center; gap: 5px; }
.prof-bal-v em { font-style: normal; font-size: 14px; color: #f5b942; }
.prof-bal-v b { font-size: 15px; font-weight: 750; color: #22d3ee; letter-spacing: .01em; }

.prof-swrow { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; }
.prof-switch {
  flex: 0 0 36px; width: 36px; height: 20px;
  margin-top: 1px; padding: 0;
  border: 0; border-radius: 999px;
  background: #3f3f46;
  position: relative;
  cursor: pointer;
  transition: background .16s ease;
}
.prof-switch .prof-knob {
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff;
  transition: transform .16s ease;
}
.prof-switch.is-on { background: #22d3ee; }
.prof-switch.is-on .prof-knob { transform: translateX(16px); }
.prof-swtx b { display: block; font-size: 13px; font-weight: 650; color: #f4f4f5; }
.prof-swtx span { display: block; margin-top: 4px; font-size: 11.5px; line-height: 1.5; color: #8b8b93; }

.prof-lowbox {
  margin-top: 12px; padding: 12px;
  border: 1px solid #2a2a30; border-radius: 10px;
  background: #111114;
}
.prof-lowline { display: flex; align-items: center; gap: 10px; }
.prof-lowlbl { font-size: 12.5px; color: #a1a1aa; white-space: nowrap; }
.prof-field {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 10px;
  border: 1px solid #2f2f36; border-radius: 8px;
  background: #0b0b0d;
}
.prof-field em { font-style: normal; font-size: 13px; color: #f5b942; }
.prof-field input {
  width: 52px; border: 0; outline: none; background: transparent;
  color: #fafafa; font-size: 13px; text-align: center;
  -moz-appearance: textfield; appearance: textfield;
}
.prof-field input::-webkit-outer-spin-button,
.prof-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.prof-save {
  margin-left: auto; height: 34px; padding: 0 18px;
  border: 1px solid rgba(45, 212, 191, .45);
  border-radius: 8px;
  background: rgba(45, 212, 191, .16);
  color: #5eead4;
  font-size: 12.5px; font-weight: 650;
  cursor: pointer;
  transition: background .15s ease;
}
.prof-save:hover { background: rgba(45, 212, 191, .26); }
.prof-save:disabled { opacity: .6; cursor: default; }
.prof-tip { margin: 10px 0 0; font-size: 11.5px; line-height: 1.7; color: #77777f; }

.prof-acc { margin-top: 14px; }
.prof-acc-head {
  display: flex; align-items: center; gap: 9px;
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid #2a2a30; border-radius: 10px;
  background: #111114;
  color: #e4e4e7;
  font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease;
}
.prof-acc-head:hover { border-color: #3a3a42; }
.prof-acc-ic { display: grid; place-items: center; width: 22px; height: 22px; color: #60a5fa; }
.prof-acc-ic svg { width: 15px; height: 15px; }
.prof-acc-t { flex: 1 1 auto; text-align: left; }
.prof-acc-x { font-size: 12px; font-weight: 500; color: #8b8b93; }
.prof-acc-body {
  margin-top: 10px; padding: 12px 14px;
  border: 1px solid #2a2a30; border-radius: 10px;
  background: #111114;
}
.prof-kv {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 0;
  font-size: 12.5px;
  border-bottom: 1px dashed rgba(255, 255, 255, .055);
}
.prof-kv:last-of-type { border-bottom: 0; }
.prof-kv-k { color: #8b8b93; flex: 0 0 auto; }
.prof-kv-v { color: #e4e4e7; text-align: right; word-break: break-all; }
.prof-ghost {
  margin-top: 10px; height: 32px; padding: 0 14px;
  border: 1px solid #2f2f36; border-radius: 8px;
  background: transparent; color: #cfcfd6;
  font-size: 12px; cursor: pointer;
}
.prof-ghost:hover { border-color: #3f3f48; background: rgba(255, 255, 255, .04); }

.prof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prof-fn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px solid #242429; border-radius: 10px;
  background: #16161a;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.prof-fn:hover {
  border-color: var(--tone, #60a5fa);
  background: #1a1a1f;
  transform: translateY(-1px);
}
.prof-fn-ic {
  flex: 0 0 30px; width: 30px; height: 30px;
  border-radius: 9px;
  display: grid; place-items: center;
  color: var(--tone, #60a5fa);
  background: rgba(255, 255, 255, .06);
  background: color-mix(in srgb, var(--tone, #60a5fa) 16%, transparent);
}
.prof-fn-ic svg { width: 17px; height: 17px; }
.prof-fn-tx { min-width: 0; }
.prof-fn-tx b { display: block; font-size: 13px; font-weight: 650; color: #f4f4f5; }
.prof-fn-tx span {
  display: block; margin-top: 2px;
  font-size: 11px; color: #85858d;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prof-out {
  width: 100%; height: 44px; margin-top: 12px;
  border: 1px solid rgba(244, 63, 94, .38);
  border-radius: 10px;
  background: rgba(244, 63, 94, .09);
  color: #f43f5e;
  font-size: 13.5px; font-weight: 650;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.prof-out:hover { background: rgba(244, 63, 94, .16); border-color: rgba(244, 63, 94, .6); }

.prof-empty { padding: 26px 0; text-align: center; font-size: 13px; color: #8b8b93; }
.prof-primary {
  display: block; margin: 0 auto;
  height: 38px; padding: 0 22px;
  border: 1px solid rgba(34, 211, 238, .4);
  border-radius: 10px;
  background: rgba(34, 211, 238, .12);
  color: #5eead4;
  font-size: 13px; font-weight: 650;
  cursor: pointer;
}
.prof-guest { display: flex; flex-direction: column; }

@media (max-width: 560px) {
  .prof-card { padding: 16px; border-radius: 12px; }
  .prof-grid { gap: 8px; }
  .prof-fn { padding: 9px 10px; gap: 8px; }
  .prof-fn-ic { flex: 0 0 26px; width: 26px; height: 26px; }
}

/* 账号管理：文字 + 箭头 SVG，展开时箭头翻转 */
.prof-acc-x { display: inline-flex; align-items: center; gap: 4px; }
.prof-acc-x svg { width: 13px; height: 13px; transition: transform .16s ease; }
.prof-acc-head.is-open .prof-acc-x svg { transform: rotate(180deg); }
/* 算力余额上方的分隔线再清楚一点，和参考站一致 */
.prof-bal { border-top-color: rgba(255, 255, 255, .09) !important; }

/* ============================================================================
 * 我的作品 = 整页视图（第三次对齐参考站）
 *   ① 进页隐藏左侧模型栏与顶栏，主区独占整屏，作品流在左、个人中心整块在右；
 *   ② 左上角「返回」+ 标题，右侧分类/日期，表头随页面吸附；
 *   ③ 右栏为紧凑版「个人信息 + 其他功能」，与个人中心页同一套 DOM。
 * ========================================================================== */
body.is-works .sidebar,
body.is-works .side-mask { display: none !important; }
body.is-works .topbar { display: none !important; }

body.is-works .shell {
  max-width: 1800px;
  padding: 10px 12px 18px;
}
body.is-works .main-col {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 18px !important;
}
body.is-works .panel {
  margin: 0;
  overflow: visible;
  min-height: calc(100vh - 32px);
}
body.is-works .panel-body { padding: 10px 14px 16px; }

/* —— 表头：返回 + 标题 + 分类 + 日期 —— */
body.is-works .panel-head {
  position: sticky;
  top: 0;
  z-index: 8;
  flex-wrap: wrap;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 16px 16px 0 0;
  background: var(--panel);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
body.is-works .panel-head h2 { flex: 0 0 auto; font-size: 16px; letter-spacing: .2px; }
body.is-works .panel-head h2 svg { display: none; }

.wk-back {
  appearance: none;
  flex: 0 0 auto;
  width: 30px; height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-soft);
  color: var(--ink-soft);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.wk-back svg { width: 18px; height: 18px; display: block; }
.wk-back:hover { color: var(--ink); border-color: var(--line-strong); background: var(--panel); }
.wk-back:active { transform: translateY(1px); }

.wk-head-left { margin-left: 2px; }
body.is-works .wk-count { margin-left: auto; }

/* —— 左右两栏：作品流 + 个人中心（右栏不再是一张入口卡） —— */
.wk-layout { align-items: flex-start; gap: 16px; }
.wk-side {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  cursor: default !important;
  position: static !important;
  transform: none !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wk-side:hover { border: 0 !important; transform: none !important; }
.wk-side .prof { max-width: none; margin: 0; gap: 14px; }
.wk-side-empty { padding: 20px; font-size: 12px; color: var(--faint); }

@media (min-width: 1101px) {
  .wk-side { flex: 0 0 252px; width: 252px; }
}

/* 窄屏：右栏落到作品流下方，整宽展示 */
@media (max-width: 1100px) {
  .wk-layout { flex-direction: column; }
  .wk-side { width: 100%; flex: 0 0 auto; }
}

/* —— 右栏紧凑排版（约 250px 宽，字号/内距按参考站右栏收一档） —— */
.wk-side .prof-card { padding: 14px; border-radius: 13px; }
.wk-side .prof-head { margin-bottom: 12px; gap: 8px; }
.wk-side .prof-head h2 { font-size: 15px; }
.wk-side .prof-idwrap { gap: 5px; }
.wk-side .prof-id { font-size: 10px; padding: 3px 7px; border-radius: 6px; }
.wk-side .prof-copy { width: 20px; height: 20px; border-radius: 5px; }
.wk-side .prof-copy svg { width: 11px; height: 11px; }
.wk-side .prof-me { gap: 10px; }
.wk-side .prof-av { flex: 0 0 46px; width: 46px; height: 46px; font-size: 15px; }
.wk-side .prof-cam { width: 18px; height: 18px; border-width: 2px; }
.wk-side .prof-cam svg { width: 9px; height: 9px; }
.wk-side .prof-me-i { gap: 6px; }
.wk-side .prof-name b { font-size: 15px; }
.wk-side .prof-role { font-size: 10.5px; padding: 2px 8px; border-radius: 6px; }
.wk-side .prof-bal { margin-top: 12px; padding-top: 12px; }
.wk-side .prof-bal-k { font-size: 12px; }
.wk-side .prof-bal-v em { font-size: 12.5px; }
.wk-side .prof-bal-v b { font-size: 14px; }
.wk-side .prof-swrow { margin-top: 12px; gap: 8px; }
.wk-side .prof-switch { flex: 0 0 32px; width: 32px; height: 18px; }
.wk-side .prof-switch .prof-knob { width: 14px; height: 14px; }
.wk-side .prof-switch.is-on .prof-knob { transform: translateX(14px); }
.wk-side .prof-swtx b { font-size: 12px; }
.wk-side .prof-swtx span { font-size: 10.5px; line-height: 1.45; margin-top: 3px; }
.wk-side .prof-lowbox { margin-top: 10px; padding: 9px; border-radius: 9px; }
.wk-side .prof-lowline { gap: 6px; flex-wrap: wrap; }
.wk-side .prof-lowlbl { font-size: 11.5px; }
.wk-side .prof-field { height: 30px; padding: 0 8px; gap: 4px; }
.wk-side .prof-field em { font-size: 11.5px; }
.wk-side .prof-field input { width: 34px; font-size: 12px; }
.wk-side .prof-save { height: 30px; padding: 0 12px; font-size: 11.5px; }
.wk-side .prof-tip { margin-top: 8px; font-size: 10.5px; line-height: 1.65; }
.wk-side .prof-acc { margin-top: 12px; }
.wk-side .prof-acc-head { height: 38px; padding: 0 10px; gap: 7px; border-radius: 9px; font-size: 12px; }
.wk-side .prof-acc-ic { width: 18px; height: 18px; }
.wk-side .prof-acc-ic svg { width: 13px; height: 13px; }
.wk-side .prof-acc-t { font-size: 12px; }
.wk-side .prof-acc-x { font-size: 11px; }
.wk-side .prof-acc-body { margin-top: 8px; padding: 9px 10px; border-radius: 9px; }
.wk-side .prof-kv { font-size: 11.5px; padding: 7px 0; gap: 8px; }
.wk-side .prof-ghost { height: 30px; font-size: 11.5px; }
.wk-side .prof-grid { gap: 8px; }
.wk-side .prof-fn { padding: 8px; gap: 7px; border-radius: 9px; align-items: flex-start; }
.wk-side .prof-fn-ic { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 7px; }
.wk-side .prof-fn-ic svg { width: 14px; height: 14px; }
.wk-side .prof-fn-tx b { font-size: 11.5px; line-height: 1.3; }
.wk-side .prof-fn-tx span { font-size: 9.5px; line-height: 1.35; white-space: normal; }
.wk-side .prof-out { height: 40px; margin-top: 10px; font-size: 13px; border-radius: 9px; }
.wk-side .prof-empty { padding: 18px 0; font-size: 12px; }

@media (max-width: 700px) {
  body.is-works .shell { padding: 8px 8px 14px; }
  body.is-works .panel-head { padding: 8px 10px; }
  body.is-works .panel-body { padding: 8px 10px 12px; }
  .wk-head-left { width: 100%; margin-left: 0; }
}

/* 右栏宫格说明最多两行，避免个别条目把整行拉高 */
.wk-side .prof-fn-tx span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 顶栏是悬浮层，全局给 .content 留了 104px 的顶部内边距；
   整页作品视图没有顶栏，这里收掉，页面从头开始。 */
body.is-works .main-col > .content { padding: 0 0 8px !important; }
body.is-works .shell { padding: 8px 8px 16px !important; }

/* .main-col 默认 overflow:hidden 会把 sticky 表头锁死在内部滚动盒里（等于不吸顶），
   整页作品视图放开它，让表头吸附到视口顶部。 */
body.is-works .main-col { overflow: visible !important; }

/* 表头改为左对齐排布：返回 → 标题 → 分类 → 日期，右侧数量靠 margin-left:auto 顶到最右，
   避免窄屏时标题被 space-between 推到右半边 */
body.is-works .panel-head { justify-content: flex-start; }

/* 窄屏表头里数量统计让位给标签行，不单独占一行 */
@media (max-width: 700px) {
  body.is-works .wk-count { display: none; }
}

/* ============================================================================
 * 第四次对齐参考站：作品区每行固定 7 个 + 左栏比例 + 更大的返回按钮
 *   ① 桌面端固定 7 列（与参考站一致），卡片随栏宽自适应；
 *   ② 右侧个人中心按视口占比放大（252→约 24%，最多 336），不再把宫格文字挤成三行；
 *   ③ 左上角返回改成 40×40 圆角方块 + 大箭头（青紫渐变 + 光晕），标题放大到 24px。
 * ========================================================================== */

@media (min-width: 1101px) {
  .wk-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .wk-layout { gap: 18px !important; }
  .wk-side {
    flex: 0 0 clamp(252px, 24%, 336px) !important;
    width: auto !important;
    min-width: 0;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .wk-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 9px !important; }
}
@media (min-width: 701px) and (max-width: 900px) {
  .wk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px !important; }
}
@media (min-width: 461px) and (max-width: 700px) {
  .wk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 7px !important; }
}
@media (max-width: 460px) {
  .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 6px !important; }
}

/* —— 表头：更大的返回按钮 + 更大的标题 —— */
body.is-works .panel-head {
  padding: 8px 14px;
  gap: 12px;
}
body.is-works .panel-head h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}

.wk-back {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(34, 211, 238, .30);
  background:
    linear-gradient(155deg, rgba(34, 211, 238, .18), rgba(139, 92, 246, .16));
  color: #c9fbf3;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .10),
    0 6px 18px -10px rgba(34, 211, 238, .85);
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease, color .16s ease;
}
.wk-back svg { width: 22px; height: 22px; }
.wk-back::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  padding: 1px;
  background: linear-gradient(150deg, rgba(34, 211, 238, .75), rgba(139, 92, 246, .55) 55%, rgba(34, 211, 238, 0) 85%);
  -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;
  opacity: .8;
  pointer-events: none;
}
.wk-back:hover {
  color: #ffffff;
  border-color: rgba(34, 211, 238, .58);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 10px 26px -10px rgba(34, 211, 238, .95);
}
.wk-back:hover svg { transform: translateX(-1.5px); }
.wk-back svg { transition: transform .16s ease; }
.wk-back:active { transform: translateY(0) scale(.97); }

/* —— 分类胶囊 / 日期，跟着标题一起放大一档 —— */
body.is-works .wk-seg { padding: 3px; gap: 2px; border-radius: 11px; }
body.is-works .wk-seg button { font-size: 13.5px; padding: 7px 15px; border-radius: 8px; }
body.is-works .wk-date { height: 36px; font-size: 13px; border-radius: 11px; }
body.is-works .wk-date svg { width: 16px; height: 16px; }
body.is-works .wk-count { font-size: 12.5px; }

@media (max-width: 700px) {
  body.is-works .panel-head h2 { font-size: 19px; }
  .wk-back { width: 34px; height: 34px; border-radius: 10px; }
  .wk-back svg { width: 19px; height: 19px; }
  body.is-works .wk-seg button { font-size: 12.5px; padding: 6px 12px; }
}

/* ============================================================================
 * 右栏常驻 + 内部滚动（对齐参考站）：
 *   页面中间滚作品列表；右侧个人中心自身吸附在表头下方，
 *   栏内内容可独立滚动，滚到底部「退出登录」即停（不再带动整页）。
 * ========================================================================== */
@media (min-width: 1101px) {
  body.is-works .wk-side {
    position: sticky !important;
    top: 78px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0 6px 2px 0 !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .22) transparent;
  }
  body.is-works .wk-side::-webkit-scrollbar { width: 6px; }
  body.is-works .wk-side::-webkit-scrollbar-track { background: transparent; }
  body.is-works .wk-side::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .2);
    border-radius: 999px;
  }
  body.is-works .wk-side::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .34); }
}

/* ============================================================================
 * 「其他功能」统一浮窗（profile-modals.js）—— 参考站蓝猫同款弹出层
 *   遮罩淡入 + 弹窗缩放入场；头部固定、正文独立滚动；× / 遮罩 / Esc 关闭。
 *   全部样式固定深色，不随站点主题变化。
 * ========================================================================== */
.pfm-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 5, 8, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .2s ease;
}
.pfm-mask.is-in { opacity: 1; }
.pfm-box {
  width: min(580px, 100%);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #2c2c34;
  border-radius: 16px;
  background: #17171b;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .62), inset 0 1px 0 rgba(255, 255, 255, .05);
  opacity: 0;
  transform: translateY(10px) scale(.965);
  transition: transform .23s cubic-bezier(.2, .85, .25, 1), opacity .2s ease;
}
.pfm-mask.is-in .pfm-box { opacity: 1; transform: none; }
.pfm-box.pfm-wide { width: min(1040px, 100%); }

.pfm-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .075);
}
.pfm-hleft { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }
.pfm-hic {
  flex: 0 0 38px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: var(--tone, #60a5fa);
  background: color-mix(in srgb, var(--tone, #60a5fa) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone, #60a5fa) 32%, transparent);
}
.pfm-hic svg { width: 19px; height: 19px; }
.pfm-titles { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pfm-titles b { font-size: 16.5px; font-weight: 750; color: #fff; letter-spacing: .2px; }
.pfm-titles span { font-size: 11.5px; color: #8b8b93; }
.pfm-actions { display: flex; align-items: center; gap: 8px; }
.pfm-primary, .pfm-ghost {
  height: 34px; padding: 0 14px;
  border-radius: 9px; font-size: 12.5px; font-weight: 650;
  cursor: pointer; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}
.pfm-primary { border: 1px solid rgba(45, 212, 191, .45); background: rgba(45, 212, 191, .18); color: #7defd8; }
.pfm-primary:hover { background: rgba(45, 212, 191, .3); }
.pfm-ghost { border: 1px solid #33333b; background: rgba(255, 255, 255, .04); color: #cfcfd6; }
.pfm-ghost:hover { background: rgba(255, 255, 255, .1); }
.pfm-x {
  flex: 0 0 auto;
  width: 32px; height: 32px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid #303038; border-radius: 9px;
  background: rgba(255, 255, 255, .04); color: #9aa0ab;
  cursor: pointer;
}
.pfm-x:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.pfm-x svg { width: 16px; height: 16px; }

.pfm-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .2) transparent;
}
.pfm-body::-webkit-scrollbar { width: 7px; }
.pfm-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .2); border-radius: 999px; }
.pfm-loading { padding: 40px 0; text-align: center; font-size: 12.5px; color: #8b8b93; }

.pfm-section { margin-top: 4px; }
.pfm-section + .pfm-section { margin-top: 20px; }
.pfm-section h3 { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; color: #d4d4d8; }
.pfm-section h4 { margin: 16px 0 6px; font-size: 13px; font-weight: 700; color: #e4e4e7; }
.pfm-note { margin: 8px 0 0; font-size: 11.5px; line-height: 1.7; color: #7c7c86; }

.pfm-endpoint {
  display: flex; align-items: center; gap: 10px;
  margin-top: 8px; padding: 10px 12px;
  border: 1px solid #292930; border-radius: 9px; background: #111114;
}
.pfm-endpoint-k { flex: 0 0 auto; font-size: 11.5px; color: #8b8b93; }
.pfm-endpoint-v { flex: 1 1 auto; min-width: 0; font-size: 12px; color: #7dd3fc; word-break: break-all; }
.pfm-mini {
  flex: 0 0 auto;
  height: 24px; padding: 0 9px;
  border: 1px solid #33333b; border-radius: 6px;
  background: rgba(255, 255, 255, .04); color: #a1a1aa;
  font-size: 11px; cursor: pointer;
}
.pfm-mini:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.pfm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pfm-stat { padding: 14px; border: 1px solid #292930; border-radius: 10px; background: #131317; text-align: center; }
.pfm-stat-k { display: block; font-size: 11.5px; color: #8b8b93; }
.pfm-stat-v { display: block; margin-top: 8px; font-size: 18px; font-weight: 750; color: #f4f4f5; font-variant-numeric: tabular-nums; }

.pfm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.pfm-chip {
  height: 28px; padding: 0 12px;
  border: 1px solid #2e2e35; border-radius: 7px;
  background: #16161a; color: #9aa0ab;
  font-size: 11.5px; font-weight: 600; cursor: pointer;
}
.pfm-chip:hover { color: #e4e4e7; border-color: #3c3c45; }
.pfm-chip.is-on { border-color: rgba(34, 211, 238, .5); background: rgba(34, 211, 238, .14); color: #67e8f9; }

.pfm-table-host { border: 1px solid #292930; border-radius: 10px; overflow-x: auto; }
.pfm-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.pfm-table th {
  padding: 10px 12px; text-align: left; white-space: nowrap;
  background: #101013; color: #85858d; font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.pfm-table td { padding: 12px; color: #d4d4d8; border-top: 1px solid rgba(255, 255, 255, .045); white-space: nowrap; }
.pfm-table tbody tr:hover td { background: rgba(255, 255, 255, .025); }
.pfm-cell-name { display: flex; flex-direction: column; gap: 2px; }
.pfm-cell-name b { font-size: 12px; color: #e4e4e7; font-weight: 650; }
.pfm-cell-name small { font-size: 10px; color: #71717a; }
.pfm-cell-key { display: inline-flex; align-items: center; gap: 8px; }
.pfm-cell-key code, .pfm-num { font-family: inherit; font-size: 12px; color: #a5b4fc; }
.pfm-num.warn { color: #f5b942; font-weight: 650; }
.pfm-pill {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid #33333b; background: rgba(255, 255, 255, .05);
  color: #a1a1aa; font-size: 10.5px; white-space: nowrap;
}
.pfm-pill.ok { border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .12); color: #6ee7b7; }
.pfm-pill.blue { border-color: rgba(96, 165, 250, .35); background: rgba(96, 165, 250, .12); color: #93c5fd; }
.pfm-pill.gold { border-color: rgba(245, 185, 66, .4); background: rgba(245, 185, 66, .12); color: #f5b942; }
.pfm-pill.warn { border-color: rgba(245, 185, 66, .4); background: rgba(245, 185, 66, .12); color: #f5b942; }
.pfm-switch {
  position: relative; width: 34px; height: 18px; padding: 0;
  border: 0; border-radius: 999px; background: #3f3f46; cursor: pointer;
}
.pfm-switch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 50%; background: #fff;
  transition: transform .15s ease;
}
.pfm-switch.is-on { background: #22d3ee; }
.pfm-switch.is-on::after { transform: translateX(16px); }
.pfm-switch:disabled { opacity: .6; cursor: default; }

.pfm-empty {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 48px 12px; text-align: center; color: #71717a;
}
.pfm-empty-ic { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 4px; color: #52525b; }
.pfm-empty-ic svg { width: 40px; height: 40px; }
.pfm-empty b { font-size: 13px; color: #a1a1aa; font-weight: 650; }
.pfm-empty span { font-size: 11.5px; color: #6b6b74; }

.pfm-cards { display: flex; flex-direction: column; gap: 10px; }
.pfm-paycard { padding: 14px; border: 1px solid #2d2d34; border-radius: 11px; background: #141418; }
.pfm-pay-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pfm-pay-left { display: flex; align-items: center; gap: 8px; }
.pfm-pay-left b { font-size: 13px; color: #e4e4e7; }
.pfm-pay-amount { font-size: 17px; color: #60a5fa; font-variant-numeric: tabular-nums; }
.pfm-pay-line { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 11.5px; color: #85858d; }
.pfm-pay-time { margin-top: 10px; font-size: 11px; color: #71717a; }
.pfm-agent { padding: 16px; border: 1px solid #2d2d34; border-radius: 11px; background: #131317; }
.pfm-agent b { font-size: 12.5px; color: #e4e4e7; }
.pfm-agent-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.pfm-agent-row code { flex: 1; font-size: 13px; color: #7dd3fc; }
.pfm-agent .pfm-primary { margin-top: 14px; }
.pfm-input {
  width: 100%; margin-bottom: 10px; padding: 10px 12px;
  border: 1px solid #32323a; border-radius: 9px;
  background: #0d0d10; color: #e4e4e7; font-size: 12.5px;
  outline: none; resize: vertical;
}
.pfm-input:focus { border-color: rgba(34, 211, 238, .5); }

/* ---------------- 意见反馈 / 客服投诉：截图上传 ----------------
 * BUG 反馈光靠文字说不清，这里给「添加截图」按钮 + 缩略图；点缩略图放大看。
 * 和浮窗同一套深色描边，不引入新色系。 */
.pfm-up-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 2px; }
.pfm-up-btn {
  padding: 7px 13px; border: 1px dashed #3a3a44; border-radius: 9px;
  background: #101014; color: #c9c9d2; font-size: 12.5px; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.pfm-up-btn:hover:not(:disabled) { border-color: rgba(34, 211, 238, .55); color: #7dd3fc; background: #0f1a1f; }
.pfm-up-btn:disabled { opacity: .55; cursor: progress; }
.pfm-up-box { margin-bottom: 4px; }
.pfm-up-tip { font-size: 11px; color: #6f6f7a; }
.pfm-up-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pfm-up-thumb {
  position: relative; width: 72px; height: 72px; border-radius: 9px; overflow: hidden;
  border: 1px solid #2d2d34; background: #0b0b0e; cursor: zoom-in;
}
.pfm-up-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pfm-up-thumb:hover { border-color: rgba(34, 211, 238, .5); }
.pfm-up-del {
  position: absolute; top: 3px; right: 3px; width: 17px; height: 17px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(10, 10, 12, .78); color: #fff; font-size: 13px; line-height: 1; cursor: pointer;
}
.pfm-up-del:hover { background: #e5484d; }
/* 大图预览遮罩：点任意位置或 Esc 关闭 */
.pfm-shot-mask {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 22px;
  background: rgba(5, 6, 10, .86); opacity: 0; transition: opacity .16s ease; cursor: zoom-out;
}
.pfm-shot-mask.is-in { opacity: 1; }
.pfm-shot-mask img {
  max-width: min(92vw, 900px); max-height: 88vh; border-radius: 12px;
  border: 1px solid #303038; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); object-fit: contain;
}
.pfm-faq { border: 1px solid #2b2b32; border-radius: 9px; background: #141418; margin-top: 8px; }
.pfm-faq summary { padding: 12px 14px; cursor: pointer; font-size: 12.5px; color: #e4e4e7; font-weight: 650; }
.pfm-faq p { margin: 0; padding: 0 14px 14px; font-size: 12px; line-height: 1.75; color: #9aa0ab; }
.pfm-doc-p { margin: 6px 0; font-size: 12.5px; line-height: 1.85; color: #a1a1aa; }

@media (max-width: 700px) {
  .pfm-mask { padding: 8px; }
  .pfm-head { padding: 12px; flex-wrap: wrap; }
  .pfm-actions { order: 3; width: 100%; justify-content: flex-end; }
  .pfm-body { padding: 12px 12px 18px; }
  .pfm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* API 密钥浮窗：本站 API 开放控制台地址（唯一获取入口） */
.pfm-link {
  display: inline-block;
  margin-top: 8px;
  color: #7dd3fc;
  font-size: 12px;
  text-decoration: none;
  word-break: break-all;
}
.pfm-link:hover { color: #bae6fd; text-decoration: underline; }
.pfm-empty .pfm-primary { margin-top: 12px; }

/* ============================================================================
 * 右上角「账户与设置」两个失效开关修复 + 入口规则
 * ========================================================================== */
/* 隐私模式：遮住当前页面所有会员可见的余额数字，移开鼠标仍保持模糊 */
html.pref-privacy .sn-user-pts,
html.pref-privacy .sn-balance-n,
html.pref-privacy .wk-side-bal b,
html.pref-privacy .prof-bal-v b,
html.pref-privacy .ph-value,
html.pref-privacy .uc-pts,
html.pref-privacy #billingChip {
  filter: blur(6px) !important;
  transition: filter .2s ease;
  user-select: none;
}

/* 隐藏代理商按钮：右上角 OEM总代理胶囊、悬浮代理入口、个人中心代理商徽标与功能项一起收起 */
html.pref-hide-agent #topPartner,
html.pref-hide-agent .top-pill.is-partner,
html.pref-hide-agent .lk-dock-item[data-hash="partner"],
html.pref-hide-agent .lk-dock-item[data-hash="invite"],
html.pref-hide-agent .sn-center-item[data-hash="partner"],
html.pref-hide-agent .prof-role,
html.pref-hide-agent .prof-fn[data-key="agent"] {
  display: none !important;
}

/* 隐私模式补强：顶部算力胶囊、AI 助手读数等位置的余额也一起遮住 */
html.pref-privacy .ai-eye-say-v,
html.pref-privacy .lk-dock b,
html.pref-privacy .topbar-right .chip b,
html.pref-privacy .sn-user-row b,
html.pref-privacy .wallet-balance,
html.pref-privacy .pfm-stat-v {
  filter: blur(6px) !important;
  user-select: none;
}

/* ============================================================================
 * 系统公告大浮窗（公告背囊 + 右侧正文 + 已读）
 * 对齐灵境 / 蓝猫：整屏遮罩 + 大窗（最大 1120×660），左列列表、右侧正文、底部翻页。
 * 桌面 24 小时只自动弹一次，样式与主题联动（深色 / 浅色各一套）。
 * ========================================================================== */
.anb-mask {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(8, 6, 14, .62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .22s ease;
}
.anb-mask.is-in { opacity: 1; }
.anb-box {
  position: relative; display: flex; flex-direction: column;
  width: min(1120px, 94vw); height: min(660px, 88vh);
  border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, #261b36 0%, #1b1526 48%, #221a2c 100%);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .92), inset 0 0 0 1px rgba(168, 120, 255, .07);
  transform: translateY(14px) scale(.972); opacity: 0;
  transition: transform .26s cubic-bezier(.2, .9, .25, 1), opacity .2s ease;
}
.anb-box.is-in { transform: none; opacity: 1; }
.anb-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px 14px; }
.anb-glyph {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 14px;
  display: grid; place-items: center; color: #f6eeff;
  background: radial-gradient(120% 120% at 30% 20%, rgba(190, 140, 255, .55), rgba(120, 80, 200, .22));
  box-shadow: 0 8px 20px -8px rgba(150, 100, 255, .85);
}
.anb-glyph svg { width: 20px; height: 20px; }
.anb-head b { font-size: 21px; font-weight: 800; letter-spacing: .4px; color: #f8f4ff; }
.anb-count {
  font-size: 12px; padding: 3px 9px; border-radius: 999px;
  color: #f8dca6; background: rgba(245, 158, 11, .14); border: 1px solid rgba(245, 158, 11, .4);
}
.anb-x {
  margin-left: auto; width: 32px; height: 32px; flex: 0 0 32px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06); color: #d9d3e6;
  font-size: 17px; line-height: 1; cursor: pointer;
}
.anb-x:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.anb-main { flex: 1; min-height: 0; display: flex; gap: 18px; padding: 0 22px 18px; }
.anb-side { width: 238px; flex: 0 0 238px; display: flex; flex-direction: column; min-height: 0; }
.anb-side-head {
  display: flex; align-items: center; gap: 6px; padding: 2px 4px 10px;
  font-size: 12px; color: #a79fb8;
}
.anb-side-head em { margin-left: auto; font-style: normal; color: #f5c76b; }
.anb-list {
  flex: 1; min-height: 0; overflow-y: auto; padding-right: 4px;
  display: flex; flex-direction: column; gap: 8px;
}
.anb-list::-webkit-scrollbar { width: 6px; }
.anb-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 3px; }
.anb-item {
  display: flex; align-items: flex-start; gap: 9px; width: 100%; text-align: left;
  padding: 11px 11px 11px 10px; border-radius: 13px; cursor: pointer;
  border: 1px solid transparent; background: rgba(255, 255, 255, .045);
  color: inherit; font: inherit;
}
.anb-item:hover { background: rgba(255, 255, 255, .085); }
.anb-item.is-on {
  border-color: rgba(168, 120, 255, .55);
  background: linear-gradient(140deg, rgba(140, 90, 235, .38), rgba(90, 60, 170, .16));
  box-shadow: 0 8px 22px -14px rgba(150, 100, 255, .95);
}
.anb-no {
  width: 22px; height: 22px; flex: 0 0 22px; border-radius: 7px;
  display: grid; place-items: center; font-size: 11px;
  background: rgba(255, 255, 255, .1); color: #d6cdea;
}
.anb-item.is-on .anb-no { background: #fdfbff; color: #4b2a86; font-weight: 700; }
.anb-item-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.anb-item-tx b {
  font-size: 12.5px; line-height: 1.45; color: #efeaf7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.anb-item-tx small { font-size: 10.5px; color: #8e86a3; }
.anb-dot {
  width: 6px; height: 6px; flex: 0 0 6px; margin-top: 5px;
  border-radius: 50%; background: #f5b942;
  box-shadow: 0 0 0 3px rgba(245, 185, 66, .16);
}
.anb-detail {
  flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column;
  padding: 20px 22px 14px; border-radius: 18px;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07);
}
.anb-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #8e86a3; }
.anb-title { margin: 8px 0 0; font-size: 23px; font-weight: 800; letter-spacing: .3px; color: #fbf8ff; }
.anb-title::after {
  content: ""; display: block; width: 64px; height: 3px; margin-top: 10px;
  border-radius: 2px; background: linear-gradient(90deg, #b98cff, rgba(185, 140, 255, 0));
}
.anb-body {
  flex: 1; min-height: 0; overflow-y: auto; margin-top: 14px;
  font-size: 13.5px; line-height: 1.9; color: #c9c2d8; white-space: pre-wrap; word-break: break-word;
}
.anb-body::-webkit-scrollbar { width: 6px; }
.anb-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 3px; }
.anb-foot {
  display: flex; align-items: center; gap: 12px; margin-top: 10px; padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.anb-page { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #9c94af; }
.anb-page b {
  min-width: 34px; text-align: center; padding: 3px 6px; border-radius: 8px;
  background: rgba(255, 255, 255, .07); color: #f0ebf9;
}
.anb-page button {
  width: 26px; height: 26px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: #cfc7de;
}
.anb-page button:disabled { opacity: .35; cursor: default; }
.anb-read {
  margin-left: auto; padding: 9px 22px; border: none; border-radius: 12px; cursor: pointer;
  font-size: 13.5px; font-weight: 700; color: #3d2400;
  background: linear-gradient(135deg, #ffd479, #f5b942);
  box-shadow: 0 10px 24px -12px rgba(245, 185, 66, .95);
}
.anb-read:hover { filter: brightness(1.06); }

html[data-theme="light"] .anb-mask { background: rgba(20, 16, 32, .38); }
html[data-theme="light"] .anb-box {
  background: linear-gradient(160deg, #ffffff 0%, #f7f4fb 55%, #f2eef8 100%);
  border-color: rgba(15, 23, 42, .1);
  box-shadow: 0 40px 90px -34px rgba(15, 23, 42, .45);
}
html[data-theme="light"] .anb-head b { color: #1f1140; }
html[data-theme="light"] .anb-count {
  color: #9a5d06; background: rgba(245, 158, 11, .18); border-color: rgba(245, 158, 11, .5);
}
html[data-theme="light"] .anb-x { background: rgba(15, 23, 42, .05); border-color: rgba(15, 23, 42, .12); color: #3f3a4d; }
html[data-theme="light"] .anb-side-head { color: #6b6480; }
html[data-theme="light"] .anb-item { background: rgba(15, 23, 42, .04); }
html[data-theme="light"] .anb-item:hover { background: rgba(15, 23, 42, .07); }
html[data-theme="light"] .anb-item.is-on {
  border-color: rgba(124, 78, 216, .45);
  background: linear-gradient(140deg, rgba(150, 105, 235, .18), rgba(150, 105, 235, .06));
}
html[data-theme="light"] .anb-no { background: rgba(15, 23, 42, .08); color: #4b4256; }
html[data-theme="light"] .anb-item-tx b { color: #241a33; }
html[data-theme="light"] .anb-item-tx small { color: #6b6480; }
html[data-theme="light"] .anb-detail { background: #fff; border-color: rgba(15, 23, 42, .09); }
html[data-theme="light"] .anb-meta { color: #6b6480; }
html[data-theme="light"] .anb-title { color: #1f1140; }
html[data-theme="light"] .anb-body { color: #4b4256; }
html[data-theme="light"] .anb-foot { border-top-color: rgba(15, 23, 42, .08); }
html[data-theme="light"] .anb-page { color: #6b6480; }
html[data-theme="light"] .anb-page b { background: rgba(15, 23, 42, .06); color: #241a33; }
html[data-theme="light"] .anb-page button { background: rgba(15, 23, 42, .04); border-color: rgba(15, 23, 42, .12); color: #4b4256; }

@media (max-width: 900px) {
  .anb-mask { padding: 10px; }
  .anb-box { width: 96vw; height: 90vh; border-radius: 18px; }
  .anb-head { padding: 14px 14px 10px; }
  .anb-head b { font-size: 17px; }
  .anb-main { flex-direction: column; gap: 10px; padding: 0 14px 12px; }
  .anb-side { width: auto; flex: 0 0 auto; max-height: 34%; }
  .anb-list { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; }
  .anb-item { min-width: 176px; max-width: 176px; }
  .anb-detail { padding: 14px 14px 10px; }
  .anb-title { font-size: 18px; }
  .anb-read { padding: 8px 16px; }
}
