/* Platform shell — Tailwind CDN companion. Apple-soft; keep small. */

/* ===== Design tokens（框线 / 按钮 / 圆角统一） ===== */
:root {
  --xn-ink: #111111;
  --xn-mute: #8b8b8f;
  --xn-soft: #f7f7f8;
  --xn-soft-2: #f0f0f2;
  --xn-line: #e5e5e5;
  --xn-line-soft: #f0f0f0;
  --xn-brand: #2f6bff;
  --xn-brand-soft: #e8f1ff;
  --xn-surface: #ffffff;
  --xn-danger: #ff3b30;
  --xn-warn: #f59e0b;
  --xn-ok: #16a34a;
  --xn-danger-soft: #fff5f4;
  --xn-warn-soft: #fff8eb;
  --xn-ok-soft: #ecfdf3;
  --xn-danger-ink: #b91c1c;
  --xn-warn-ink: #92400e;
  --xn-ok-ink: #166534;
  --xn-radius-xs: 6px;
  --xn-radius-sm: 8px;
  --xn-radius: 12px;
  --xn-radius-lg: 16px;
  --xn-radius-xl: 20px;
  --xn-radius-pill: 999px;
  --xn-btn-h: 36px;
  --xn-btn-h-lg: 44px;
  --xn-control-h: 40px;
  --xn-space-1: 4px;
  --xn-space-2: 8px;
  --xn-space-3: 12px;
  --xn-space-4: 16px;
  --xn-space-5: 24px;
  --xn-title: clamp(28px, 7vw, 34px);
  --xn-cap-h: 34px;
  --xn-cap-px: 14px;
  --xn-cap-gap: 8px;
  --xn-cap-r: 999px;
  --xn-head-mb: 12px;
  --xn-caps-mb: 16px;
  --xn-chrome-pt: 16px;
  --xn-chrome-px: 16px;
  --xn-chrome-pb: 16px;
  --xn-glass: rgba(255, 255, 255, .72);
  --xn-glass-dark: rgba(28, 28, 30, .78);
  --xn-blur: 16px;
  --xn-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  --xn-shadow-hover: 0 8px 24px rgba(0, 0, 0, .06);
  --xn-focus: 0 0 0 3px rgba(47, 107, 255, .14);
  --xn-scroll: rgba(60, 60, 67, .28);
  --xn-scroll-hover: rgba(60, 60, 67, .45);
  --xn-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (min-width: 768px) {
  :root {
    --xn-chrome-pt: 20px;
    --xn-chrome-px: 32px;
    --xn-chrome-pb: 24px;
  }
}

/* 系统滚动条一律藏起，滚动时用 .xn-sb 浮层细条 */
* {
  scrollbar-width: none;
}
*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.xn-sb {
  position: fixed;
  left: 0;
  top: 0;
  width: 3px;
  height: 28px;
  border-radius: 99px;
  background: rgba(60, 60, 67, .32);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 90;
  will-change: transform, opacity;
}
.xn-sb.is-on { opacity: 1; }
html[data-theme="dark"] .xn-sb {
  background: rgba(235, 235, 245, .36);
}

/* ===== 浅色 / 深色皮肤 ===== */
html[data-theme="dark"] {
  --xn-ink: #f5f5f7;
  --xn-mute: #98989d;
  --xn-soft: #0b0b0c;
  --xn-soft-2: #1c1c1e;
  --xn-line: #2c2c2e;
  --xn-line-soft: #232325;
  --xn-brand: #5b8cff;
  --xn-brand-soft: #1a2744;
  --xn-surface: #1c1c1e;
  --xn-danger: #ff6b63;
  --xn-warn: #fbbf24;
  --xn-ok: #4ade80;
  --xn-danger-soft: #3b1a18;
  --xn-warn-soft: #3a2a12;
  --xn-ok-soft: #16382c;
  --xn-danger-ink: #fecaca;
  --xn-warn-ink: #fde68a;
  --xn-ok-ink: #86efac;
  --xn-glass: rgba(28, 28, 30, .78);
  --xn-glass-dark: rgba(44, 44, 46, .88);
  --xn-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  --xn-shadow-hover: 0 8px 24px rgba(0, 0, 0, .45);
  --xn-focus: 0 0 0 3px rgba(91, 140, 255, .28);
  --xn-scroll: rgba(235, 235, 245, .28);
  --xn-scroll-hover: rgba(235, 235, 245, .45);
  color-scheme: dark;
}
html[data-theme="dark"] body,
html[data-theme="dark"] .bg-soft { background: var(--xn-soft) !important; color: var(--xn-ink); }
html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .card,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .tt-card,
html[data-theme="dark"] .tt-group,
html[data-theme="dark"] .msg-list-card,
html[data-theme="dark"] .capsule-bar,
html[data-theme="dark"] .gd-block,
html[data-theme="dark"] .gd-post,
html[data-theme="dark"] .gd-dock,
html[data-theme="dark"] .hall-list,
html[data-theme="dark"] .hall-block,
html[data-theme="dark"] .circ-post,
html[data-theme="dark"] .floor,
html[data-theme="dark"] .circ-intro,
html[data-theme="dark"] .circ-block,
html[data-theme="dark"] .mp-window-bar,
html[data-theme="dark"] .mp-bar {
  background: var(--xn-surface) !important;
  color: var(--xn-ink);
  border-color: var(--xn-line) !important;
}
html[data-theme="dark"] .border-line,
html[data-theme="dark"] .border-r { border-color: var(--xn-line) !important; }
html[data-theme="dark"] .text-mute { color: var(--xn-mute) !important; }
html[data-theme="dark"] .tt-panel-profile { background: #0b0b0c; }
html[data-theme="dark"] .tt-row { color: var(--xn-ink); border-bottom-color: #2c2c2e; }
html[data-theme="dark"] .tt-row:hover,
html[data-theme="dark"] .tt-row:active { background: #2c2c2e; }
html[data-theme="dark"] .tt-manage {
  background: #2c2c2e; border-color: #3a3a3c; color: var(--xn-ink);
}
html[data-theme="dark"] .tt-assets { background: var(--xn-surface); }
html[data-theme="dark"] .tt-assets > a { color: var(--xn-ink); }
html[data-theme="dark"] .tt-assets > a:hover { background: #2c2c2e; }
html[data-theme="dark"] .tt-profile-head.is-compact:hover .tt-profile-go { color: var(--xn-ink); }
html[data-theme="dark"] .tt-input,
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background: #2c2c2e; color: var(--xn-ink); border-color: #3a3a3c;
}
html[data-theme="dark"] .btn.soft { background: #2c2c2e; color: var(--xn-ink); }
html[data-theme="dark"] .btn.ghost { background: transparent; color: var(--xn-ink); border-color: #3a3a3c; }
html[data-theme="dark"] .gd-page,
html[data-theme="dark"] .gd-tabs,
html[data-theme="dark"] .hall-page { background: var(--xn-soft); color: var(--xn-ink); }
html[data-theme="dark"] .gd-tabs { border-color: var(--xn-line); }
html[data-theme="dark"] .gd-chat-bubble { background: #2c2c2e; }
html[data-theme="dark"] .ico:not(.invert) { filter: invert(1) brightness(1.1); opacity: .9; }
html[data-theme="dark"] .ico.invert { filter: brightness(0) invert(1); }

/* 语义提示条：浅色/深色都走 token */
.xn-note {
  border-radius: var(--xn-radius);
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
  border: 1px solid var(--xn-line);
}
.xn-note-warn {
  background: var(--xn-warn-soft);
  color: var(--xn-warn-ink);
}
.xn-note-danger {
  background: var(--xn-danger-soft);
  color: var(--xn-danger-ink);
}
.xn-note-ok {
  background: var(--xn-ok-soft);
  color: var(--xn-ok-ink);
}

/* 深色：补齐聊天 / 帖子 / 名片 / Tailwind 浅色残留 */
html[data-theme="dark"] .xhs-detail,
html[data-theme="dark"] .xhs-card,
html[data-theme="dark"] .god-feed-card,
html[data-theme="dark"] .chat-bubble-msg,
html[data-theme="dark"] .chat-info-link,
html[data-theme="dark"] .chat-info-row,
html[data-theme="dark"] .chat-sheet-panel,
html[data-theme="dark"] .chat-plus-panel,
html[data-theme="dark"] .expr-panel,
html[data-theme="dark"] .emoji-btn {
  background: var(--xn-surface) !important;
  color: var(--xn-ink);
  border-color: var(--xn-line) !important;
}
html[data-theme="dark"] .chat-msg.me .chat-bubble-msg,
html[data-theme="dark"] .chat-msg.me .chat-voice {
  background: var(--xn-brand-soft);
  border-color: #2a3f66;
}
html[data-theme="dark"] .chat-quote { background: rgba(255,255,255,.06); }
html[data-theme="dark"] .chat-meta,
html[data-theme="dark"] .chat-room-count,
html[data-theme="dark"] .chat-group-time,
html[data-theme="dark"] .chat-day,
html[data-theme="dark"] .chat-member-name { color: var(--xn-mute); }
html[data-theme="dark"] .ucard-ava,
html[data-theme="dark"] .chat-ava,
html[data-theme="dark"] .chat-group-ico.round {
  background: var(--xn-brand-soft);
  color: var(--xn-brand);
}
html[data-theme="dark"] .chat-role-tag.owner { background: var(--xn-ok-soft); color: var(--xn-ok-ink); }
html[data-theme="dark"] .chat-role-tag.admin { background: var(--xn-brand-soft); color: var(--xn-brand); }
html[data-theme="dark"] .chat-composer { background: var(--xn-glass); border-color: var(--xn-line); }
html[data-theme="dark"] .chat-ico-btn.is-hb { background: var(--xn-danger-soft); }
html[data-theme="dark"] .bg-amber-50,
html[data-theme="dark"] .bg-amber-100 { background: var(--xn-warn-soft) !important; }
html[data-theme="dark"] .text-amber-800,
html[data-theme="dark"] .text-amber-700,
html[data-theme="dark"] .text-amber-600 { color: var(--xn-warn-ink) !important; }
html[data-theme="dark"] .border-amber-100 { border-color: #5c4a22 !important; }
html[data-theme="dark"] .bg-red-50,
html[data-theme="dark"] .bg-red-50\/80 { background: var(--xn-danger-soft) !important; }
html[data-theme="dark"] .border-red-100 { border-color: #5c2624 !important; }
html[data-theme="dark"] .text-red-700,
html[data-theme="dark"] .text-red-600,
html[data-theme="dark"] .text-red-500 { color: var(--xn-danger-ink) !important; }
html[data-theme="dark"] .bg-sky-100,
html[data-theme="dark"] .bg-sky-50 { background: var(--xn-brand-soft) !important; }
html[data-theme="dark"] .text-sky-700 { color: var(--xn-brand) !important; }
html[data-theme="dark"] .bg-emerald-50 { background: var(--xn-ok-soft) !important; }
html[data-theme="dark"] .text-emerald-700,
html[data-theme="dark"] .text-teal-700 { color: var(--xn-ok-ink) !important; }
html[data-theme="dark"] .xhs-pending-dot { background: var(--xn-warn-soft); color: var(--xn-warn-ink); }

.xn-ticker {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
@media (min-width: 768px) {
  .xn-ticker { left: 232px; }
}
body.embed-bare .xn-ticker,
body.embed-full .xn-ticker,
body.embed-sheet .xn-ticker,
body.is-chat-room .xn-ticker {
  left: 0;
}
.xn-ticker[hidden], .xn-ticker.is-empty { display: none; }
.xn-ticker-pill {
  pointer-events: auto;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(560px, calc(100vw - 24px));
  padding: 10px 16px;
  border-radius: 18px;
  background: var(--xn-glass);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  border: 1px solid transparent;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  text-decoration: none;
  color: inherit;
}
.xn-ticker-beam {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  -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;
}
.xn-ticker-beam::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg,
    transparent 0 16%,
    #c47a3a 20%,
    #b87333 24%,
    transparent 30%,
    transparent 66%,
    #e8a05a 70%,
    #8a4e22 74%,
    transparent 80%
  );
  animation: xn-ticker-beam 2.6s linear infinite;
}
.xn-ticker-pill.is-copper {
  background: rgba(255, 236, 214, .78);
  box-shadow: 0 8px 28px rgba(184, 115, 51, .22);
}
.xn-ticker-pill.is-copper .xn-ticker-beam::before {
  background: conic-gradient(
    from 0deg,
    transparent 0 16%,
    #e8a05a 20%,
    #b87333 24%,
    transparent 30%,
    transparent 66%,
    #e8a05a 70%,
    #8a4e22 74%,
    transparent 80%
  );
}
.xn-ticker-pill.is-copper .xn-ticker-txt {
  background: linear-gradient(180deg, #f0c08a 0%, #b87333 52%, #6b3e1a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.xn-ticker-pill.is-silver {
  background: rgba(242, 242, 247, .88);
  box-shadow: 0 8px 28px rgba(60, 60, 67, .16);
}
.xn-ticker-pill.is-silver .xn-ticker-beam::before {
  background: conic-gradient(
    from 0deg,
    transparent 0 16%,
    #c7c7cc 20%,
    #636366 24%,
    transparent 30%,
    transparent 66%,
    #aeaeb2 70%,
    #3a3a3c 74%,
    transparent 80%
  );
}
.xn-ticker-pill.is-silver .xn-ticker-txt {
  background: linear-gradient(180deg, #6e6e73 0%, #3a3a3c 48%, #1c1c1e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #3a3a3c;
  -webkit-text-fill-color: transparent;
}
.xn-ticker-pill.is-gold {
  background: rgba(255, 244, 214, .82);
  box-shadow: 0 8px 28px rgba(201, 162, 39, .24);
}
.xn-ticker-pill.is-gold .xn-ticker-beam::before {
  background: conic-gradient(
    from 0deg,
    transparent 0 16%,
    #ffe9a0 20%,
    #c9a227 24%,
    transparent 30%,
    transparent 66%,
    #f4d06a 70%,
    #8a6a12 74%,
    transparent 80%
  );
}
.xn-ticker-pill.is-gold .xn-ticker-txt {
  background: linear-gradient(180deg, #fff6c8 0%, #c9a227 48%, #8a6a12 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.xn-ticker-pill.is-rainbow {
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 8px 32px rgba(191, 90, 242, .22);
}
.xn-ticker-pill.is-rainbow .xn-ticker-beam::before {
  background: conic-gradient(
    from 0deg,
    #ff4d4d, #ff9f1a, #ffd60a, #30d158, #64d2ff, #bf5af2, #ff375f, #ff4d4d
  );
  animation-duration: 1.8s;
}
.xn-ticker-pill.is-rainbow .xn-ticker-txt {
  background: linear-gradient(90deg, #ff4d4d, #ff9f1a, #ffd60a, #30d158, #64d2ff, #bf5af2, #ff375f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
html[data-theme="dark"] .xn-ticker-pill.is-copper { background: rgba(72, 42, 20, .78); }
html[data-theme="dark"] .xn-ticker-pill.is-silver { background: rgba(44, 44, 46, .88); }
html[data-theme="dark"] .xn-ticker-pill.is-silver .xn-ticker-txt {
  background: linear-gradient(180deg, #f2f2f7 0%, #c7c7cc 50%, #8e8e93 100%);
  color: #d1d1d6;
}
html[data-theme="dark"] .xn-ticker-pill.is-gold { background: rgba(64, 48, 12, .8); }
html[data-theme="dark"] .xn-ticker-pill.is-rainbow { background: rgba(28, 28, 30, .78); }
.xn-ticker-track {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.xn-ticker-txt {
  display: inline-block;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--xn-ink);
}
.xn-ticker-txt.is-marquee {
  animation: xn-ticker-marquee 8s linear infinite;
}
.xn-ticker-pill.is-run.is-thanks { animation: xn-ticker-in-right .55s ease-out; }
.xn-ticker-pill.is-run.is-bless { animation: xn-ticker-in-left .55s ease-out; }
.xn-ticker-pill.is-out { animation: xn-ticker-out .36s ease-in forwards; }
@keyframes xn-ticker-in-right {
  from { transform: translateX(48px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes xn-ticker-in-left {
  from { transform: translateX(-48px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes xn-ticker-out {
  to { transform: translateY(-8px); opacity: 0; }
}
@keyframes xn-ticker-beam {
  to { transform: rotate(360deg); }
}
@keyframes xn-ticker-marquee {
  0%, 12% { transform: translateX(0); }
  88%, 100% { transform: translateX(calc(-1 * var(--xn-ticker-shift, 0px))); }
}
@media (prefers-reduced-motion: reduce) {
  .xn-ticker-pill.is-run,
  .xn-ticker-pill.is-out { animation: none; }
  .xn-ticker-beam::before { animation: none; }
  .xn-ticker-txt.is-marquee { animation: none; }
}

.xn-toast {
  position: fixed;
  left: 16px;
  bottom: 88px;
  top: auto;
  z-index: 90;
  max-width: min(240px, calc(100vw - 32px));
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--xn-glass-dark);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
  pointer-events: none;
  animation: xn-toast-in .18s ease-out, xn-toast-out .28s ease-in 2.2s forwards;
}
@media (min-width: 768px) {
  .xn-toast { left: 248px; bottom: 24px; }
}
body.embed-bare .xn-toast,
body.embed-full .xn-toast,
body.embed-sheet .xn-toast,
body.is-chat-room .xn-toast {
  left: 16px;
  bottom: 24px;
}
.xn-toast.is-err { background: rgba(255, 59, 48, .88); }
@keyframes xn-toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes xn-toast-out {
  to { opacity: 0; transform: translateY(4px); }
}

.theme-seg {
  display: inline-flex; padding: 2px; border-radius: 999px;
  background: var(--xn-soft-2); gap: 2px;
}
.theme-seg-btn {
  border: 0; background: transparent; cursor: pointer;
  height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 12px; font-weight: 650; color: var(--xn-mute);
  font-family: var(--xn-font);
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.theme-seg-btn.on {
  background: #fff; color: var(--xn-ink);
  box-shadow: var(--xn-shadow);
}
html[data-theme="dark"] .theme-seg-btn.on {
  background: #3a3a3c; color: #fff;
}
.tt-row-static { cursor: default; }
.tt-row-static:hover { background: transparent !important; }

.priv-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px; border-bottom: 1px solid var(--xn-line-soft);
  cursor: pointer;
}
.priv-row:last-child { border-bottom: 0; }
.priv-row-select,
.priv-row-note { cursor: default; }
.priv-row-select.is-off { display: none; }
.priv-row-ico { width: 22px; display: grid; place-items: center; flex-shrink: 0; }
.priv-row-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.priv-row-lab { font-size: 15px; font-weight: 600; white-space: nowrap; }
.priv-row-sub { font-size: 12px; color: var(--xn-mute); }
.priv-select {
  height: 32px; padding: 0 28px 0 10px; border-radius: 10px;
  border: 1px solid var(--xn-line); background: var(--xn-soft);
  font-size: 13px; font-weight: 650; font-family: inherit; color: inherit;
  width: auto !important; max-width: 42%; flex: 0 0 auto; min-height: 32px;
  box-shadow: none;
}
.priv-switch {
  appearance: none; -webkit-appearance: none;
  width: 46px; height: 28px; border-radius: 999px; flex-shrink: 0;
  background: #e5e5ea; border: 0; position: relative; cursor: pointer;
  transition: background .15s;
}
.priv-switch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: transform .15s;
}
.priv-switch:checked { background: var(--xn-brand); }
.priv-switch:checked::after { transform: translateX(18px); }
html[data-theme="dark"] .priv-switch { background: #3a3a3c; }

/* 毛玻璃表面（底栏 / Sheet / 浮层复用） */
.xn-glass {
  background: var(--xn-glass);
  backdrop-filter: blur(var(--xn-blur));
  -webkit-backdrop-filter: blur(var(--xn-blur));
  border: 1px solid rgba(255, 255, 255, .35);
}
.xn-glass-dark {
  background: var(--xn-glass-dark);
  backdrop-filter: blur(var(--xn-blur));
  -webkit-backdrop-filter: blur(var(--xn-blur));
  border: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
}

/* Auth (Doubao split) */
.auth-brand {
  background: linear-gradient(155deg, #1c1c1e 0%, #2c3e8c 48%, #2f6bff 100%);
  color: #fff;
}
.auth-brand-glow {
  position: absolute; inset: -20% auto auto -10%;
  width: 70%; height: 70%; border-radius: 50%;
  background: radial-gradient(circle, rgba(18,194,169,.35), transparent 70%);
  pointer-events: none;
}
.auth-label {
  display: block; font-size: 13px; font-weight: 600; color: #3c3c43; margin: 0 0 8px;
}
.auth-input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 14px;
  border: 1px solid #e5e5ea; background: #fff; font-size: 16px; font-family: inherit;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.auth-input:focus {
  border-color: rgba(47,107,255,.45);
  box-shadow: 0 0 0 4px rgba(47,107,255,.12);
}
.auth-submit {
  width: 100%; height: 48px; margin-top: 8px; border: 0; border-radius: 14px;
  background: #2f6bff; color: #fff; font-size: 16px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.auth-submit:hover { filter: brightness(1.04); }
.auth-submit:active { transform: scale(.99); }

/* TikTok-style business modal */
.tt-modal {
  position: fixed; inset: 0; z-index: 70;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.tt-modal.hidden { display: none; }
.tt-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}
.tt-card {
  position: relative; z-index: 1;
  width: min(420px, 100%);
  max-height: min(860px, calc(100vh - 32px));
  overflow: auto;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  padding: 28px 28px 0;
  animation: tt-pop .2s ease-out;
}
@keyframes tt-pop {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
  .tt-modal { align-items: flex-end; padding: 0; }
  .tt-card {
    width: 100%; max-height: 92vh;
    border-radius: 24px 24px 0 0;
    animation: tt-up .22s ease-out;
  }
  @keyframes tt-up {
    from { transform: translateY(40px); }
    to { transform: none; }
  }
}
.tt-x {
  position: absolute; right: 16px; top: 16px;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: #f1f1f2; display: grid; place-items: center; cursor: pointer;
}
.tt-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin: -8px 0 18px;
}
.tt-icon-btn {
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: transparent; display: grid; place-items: center; cursor: pointer;
}
.tt-x-circle { background: #f1f1f2; }
.tt-title {
  text-align: center; font-size: 28px; font-weight: 800;
  letter-spacing: -0.02em; margin: 28px 0 28px; line-height: 1.2;
}
.tt-title-sm {
  flex: 1; text-align: center; font-size: 24px; font-weight: 800; margin: 0;
}
.tt-methods { display: flex; flex-direction: column; gap: 12px; }
.tt-pill {
  position: relative; display: flex; align-items: center; justify-content: center;
  gap: 10px; width: 100%; min-height: 46px; padding: 0 18px;
  border: 0; border-radius: 999px; background: #f1f1f2;
  font-size: 15px; font-weight: 650; color: #161823; cursor: pointer;
  font-family: inherit;
}
.tt-pill:hover { background: #e8e8ea; }
.tt-pill-ico { position: absolute; left: 16px; display: grid; place-items: center; }
.tt-badge {
  position: absolute; right: 10px; top: -8px;
  background: #20d5ec; color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 999px; padding: 2px 7px;
}
.tt-legal {
  margin: 22px 8px 0; text-align: center; font-size: 12px; color: #8a8b91; line-height: 1.5;
}
.tt-foot {
  margin-top: 22px; padding: 18px 0; border-top: 1px solid #f1f1f2;
  text-align: center; font-size: 14px; color: #161823;
}
.tt-link {
  border: 0; background: none; color: #fe2c55; font-weight: 700;
  font-size: 14px; cursor: pointer; font-family: inherit; padding: 0;
}
.tt-form { display: flex; flex-direction: column; gap: 12px; }
.tt-form [data-auth-pane] { display: flex; flex-direction: column; gap: 12px; }
.tt-form [data-auth-pane][hidden] { display: none; }
.tt-field-head {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: -2px;
}
.tt-field-label { font-size: 14px; font-weight: 700; color: #161823; }
.tt-field-alt { font-size: 13px; color: #8a8b91; font-weight: 600; }
button.tt-field-alt {
  border: 0; background: none; cursor: pointer; font-family: inherit; padding: 0;
}
button.tt-field-alt:hover { color: #161823; }
.tt-code-row { display: flex; gap: 12px; align-items: stretch; }
.tt-code-row .tt-input { flex: 1; min-width: 0; }
.tt-code-send {
  flex-shrink: 0; height: 48px; padding: 0 16px; border: 0; border-radius: 10px;
  background: #f1f1f2; font-size: 13px; font-weight: 650; cursor: pointer;
  font-family: inherit; white-space: nowrap; color: #161823;
}
.tt-code-send:disabled { color: #a6a7ab; cursor: not-allowed; }
html[data-theme="dark"] .tt-code-send { background: #2c2c2e; color: var(--xn-ink); }
html[data-theme="dark"] .tt-pill { background: #2c2c2e; color: var(--xn-ink); }
html[data-theme="dark"] .tt-pill:hover { background: #3a3a3c; }
html[data-theme="dark"] button.tt-field-alt:hover { color: var(--xn-ink); }
.tt-input {
  width: 100%; height: 48px; padding: 0 14px; border: 0; border-radius: 10px;
  background: #f1f1f2; font-size: 15px; font-family: inherit; outline: none;
}
.tt-input:focus { box-shadow: inset 0 0 0 1.5px #16182322; }
.tt-pass-wrap { position: relative; }
.tt-pass-wrap .tt-input { padding-right: 44px; }
.tt-eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; border-radius: 8px;
  background: transparent; display: grid; place-items: center; cursor: pointer;
}
.tt-hint { margin: 0; font-size: 12px; color: #8a8b91; }
.tt-submit {
  width: 100%; height: 48px; margin-top: 8px; border: 0; border-radius: 999px;
  background: #fe2c55; color: #fff; font-size: 16px; font-weight: 750;
  cursor: pointer; font-family: inherit;
}
.tt-submit:disabled {
  background: #f1f1f2; color: #a6a7ab; cursor: not-allowed;
}
.tt-panel-profile { padding-bottom: 20px; background: #f5f5f7; margin: -28px -28px 0; padding: 20px 16px 24px; border-radius: 28px; }
.tt-profile-head { text-align: center; padding: 12px 8px 18px; position: relative; }
.tt-ava {
  width: 72px; height: 72px; margin: 8px auto 10px; border-radius: 50%;
  background: #dbeafe; color: #1d4ed8; display: grid; place-items: center;
  font-size: 28px; font-weight: 700; overflow: hidden;
}
.tt-ava.has-img { padding: 0; background: #e5e5ea; }
.tt-ava.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tt-profile-name { font-size: 22px; font-weight: 800; }
.tt-profile-id { font-size: 13px; color: #8a8b91; margin-top: 4px; }
.tt-manage {
  display: inline-flex; margin-top: 12px; height: 34px; padding: 0 14px;
  border-radius: 999px; border: 1px solid #d1d1d6; background: #fff;
  font-size: 13px; font-weight: 600; color: #161823; text-decoration: none;
  align-items: center;
}
/* 紧凑头部：头像 + 名字一行，右侧进账号管理 */
.tt-profile-head.is-compact {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 6px 44px 12px 4px; text-decoration: none; color: inherit; /* 右侧留出关闭按钮 */
}
.tt-profile-head.is-compact .tt-ava { width: 52px; height: 52px; margin: 0; font-size: 22px; flex-shrink: 0; }
.tt-profile-txt { flex: 1; min-width: 0; }
.tt-profile-head.is-compact .tt-profile-name { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-profile-head.is-compact .tt-profile-id { margin-top: 2px; }
.tt-profile-go { flex-shrink: 0; font-size: 13px; font-weight: 600; color: #8a8b91; white-space: nowrap; }
.tt-profile-head.is-compact:hover .tt-profile-go { color: #161823; }
.tt-assets {
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: center; gap: 4px;
  background: #fff; border-radius: 16px; padding: 10px 8px 10px 4px; margin-bottom: 10px;
}
.tt-assets > a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: #161823; padding: 4px 6px; border-radius: 10px; min-width: 0; }
.tt-assets > a:hover { background: #fafafa; }
.tt-assets b { font-size: 16px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tt-assets span { font-size: 11px; color: #8a8b91; font-weight: 500; }
.tt-assets .tt-assets-cta {
  flex-direction: row; height: 32px; padding: 0 14px; border-radius: 999px;
  background: var(--xn-brand, #2f6bff); color: #fff; font-size: 13px; font-weight: 700;
}
.tt-assets .tt-assets-cta:hover { background: var(--xn-brand, #2f6bff); filter: brightness(1.05); }
.tt-row-badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-right: 6px;
  border-radius: 999px; background: #fe2c55; color: #fff; font-size: 11px; font-weight: 700; font-style: normal; line-height: 1;
  vertical-align: 1px;
}
.tt-group {
  background: #fff; border-radius: 16px; overflow: hidden; margin-bottom: 10px;
}
.tt-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  text-decoration: none; color: #161823; font-size: 15px; font-weight: 550;
  border-bottom: 1px solid #f2f2f4;
}
.tt-row:last-child { border-bottom: 0; }
.tt-row:active, .tt-row:hover { background: #fafafa; }
.tt-row .grow { flex: 1; }
.tt-row-ico {
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center; flex-shrink: 0;
}
.tt-row-meta { color: #8a8b91; font-size: 13px; font-weight: 500; }
.tt-danger { color: #fe2c55; }
.tt-panel[hidden] { display: none !important; }

/* Message box rows — badge on the right; click opens right pane */
.inbox-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 12px;
  text-decoration: none; color: inherit;
}
.inbox-row:hover, .inbox-row.on { background: #f7f7f8; }
.inbox-ico {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
}
.inbox-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.inbox-tag { font-size: 10px; font-weight: 700; color: #8b8b8f; line-height: 1.2; }
.inbox-title { font-size: 13px; color: #3c3c43; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fe2c55; flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(254,44,85,.15);
}
.inbox-badge {
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: #fe2c55; color: #fff;
  font-size: 10px; font-weight: 800; line-height: 18px;
  text-align: center; flex-shrink: 0;
}



html, body, #app { height: 100%; }
body { margin: 0; }

.sidebar.collapsed { display: none !important; }
.sidebar {
  width: 232px;
  background: var(--xn-glass) !important;
  backdrop-filter: blur(22px) saturate(1.8);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  border-right: 0;
}
.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 8px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--xn-ink);
  text-decoration: none;
}
.side-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.tenant-preview-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 16px;
  background: var(--xn-glass);
  backdrop-filter: blur(var(--xn-blur, 20px)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--xn-blur, 20px)) saturate(1.4);
  border-bottom: 1px solid var(--xn-line);
  font-size: 13px;
  color: var(--xn-mute);
}
.side-search { padding: 8px 16px 16px; }
.side-search input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--xn-soft-2);
  box-shadow: none;
  font-size: 15px;
}
.side-nav { padding: 4px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side-split {
  display: none;
}
.side-link {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 12px; border-radius: 10px;
  color: var(--xn-ink); text-decoration: none; font-size: 15px; font-weight: 600;
}
.side-link:hover { background: var(--xn-soft-2); }
.side-link.on { background: var(--xn-soft-2); }
.side-link-ico { width: 20px; display: grid; place-items: center; opacity: .7; }
.side-link-lab { flex: 1; min-width: 0; }
.side-badge {
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--xn-danger); color: #fff;
  font-size: 11px; font-weight: 700; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
}
.side-foot { margin-top: auto; padding: 8px; border-top: 0; }
.side-user {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 8px; border: 0; border-radius: 12px;
  background: transparent; color: inherit; cursor: pointer; font: inherit;
}
.side-user:hover { background: var(--xn-soft-2); }
.side-ava {
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  background: var(--xn-brand-soft); color: var(--xn-brand);
  display: grid; place-items: center; font-weight: 700; flex-shrink: 0;
}
.side-ava img { width: 100%; height: 100%; object-fit: cover; }
.side-user-name { display: block; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-meta { display: block; font-size: 12px; color: var(--xn-mute); margin-top: 2px; }

.popover-item {
  display: block;
  padding: 11px 14px;
  font-size: 14px;
  color: #1c1c1e;
  text-decoration: none;
}
.popover-item:hover { background: #f7f7f8; }

.sheet-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border-radius: 16px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(0,0,0,.06);
  color: #1c1c1e;
  text-decoration: none;
  font-weight: 600;
}
.sheet-tile span { font-size: 18px; }

/* Floating edge dock — 仅真正开玩（body.mp-playing）显示；详情浏览小窗不出现 */
.float-dock {
  display: none;
  position: fixed;
  right: 0;
  top: 42%;
  z-index: 72;
  width: 20px;
  height: 64px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
  touch-action: none;
  opacity: .42;
  transition: opacity .25s ease;
}
body.mp-playing .float-dock {
  display: block;
}
body.mp-playing .float-dock:hover,
body.mp-playing .float-dock:focus-visible { opacity: .92; }
.float-panel.hidden { display: none !important; }
.float-pill {
  display: flex; align-items: center; justify-content: center;
  width: 12px;
  height: 56px;
  margin: 4px auto;
  border-radius: 999px;
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 18px rgba(0,0,0,.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.float-pill-grip {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.float-pill-grip i {
  display: block; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,255,255,.85);
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.float-dock.edge-left { left: 0; right: auto; }
.float-dock.edge-right { right: 0; left: auto; }
.float-dock.edge-top {
  top: 0 !important; left: 50%; right: auto;
  width: 64px; height: 20px;
  transform: translateX(-50%);
}
.float-dock.edge-top .float-pill {
  width: 56px; height: 12px; margin: 4px auto 0;
}
.float-dock.edge-top .float-pill-grip { flex-direction: row; gap: 3px; }
.float-dock.edge-bottom {
  bottom: calc(12px + env(safe-area-inset-bottom)); top: auto !important;
  left: 50%; right: auto;
  width: 64px; height: 20px;
  transform: translateX(-50%);
}
.float-dock.edge-bottom .float-pill {
  width: 56px; height: 12px; margin: 0 auto 4px;
}
.float-dock.edge-bottom .float-pill-grip { flex-direction: row; gap: 3px; }

.float-panel {
  position: fixed;
  z-index: 73;
  right: 28px;
  top: 30%;
  width: 208px;
  border-radius: 20px;
  background: rgba(22,22,24,.88);
  color: #fff;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(0,0,0,.32);
  overflow: hidden;
}
body:not(.mp-playing) .float-panel { display: none !important; }
.float-panel.side-left { right: auto; left: 28px; }
.float-panel.side-top { top: 36px; left: 50%; right: auto; transform: translateX(-50%); }
.float-panel.side-bottom {
  top: auto; bottom: calc(40px + env(safe-area-inset-bottom));
  left: 50%; right: auto; transform: translateX(-50%);
}
.float-panel-head {
  padding: 10px 14px 2px; font-size: 11px; font-weight: 650;
  color: rgba(255,255,255,.55); letter-spacing: .04em;
}
.float-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  padding: 8px 10px 12px;
}
.float-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 4px 8px;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 650;
  border: 0; background: transparent; font-family: inherit; cursor: pointer;
}
.float-cell em { font-style: normal; line-height: 1.1; }
.float-cell-ico {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1);
}
.float-cell-ico .ico { width: 18px; height: 18px; }
.float-cell:hover, .float-cell:active { background: rgba(255,255,255,.08); }
.float-cell:hover .float-cell-ico { background: rgba(255,255,255,.16); }

/* iOS frosted capsule + plus */
.capsule-dock {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 48;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
  padding: 0 14px;
}
/* 任意小窗打开时藏底栏；半透条仍只在 mp-playing（开玩）出现 */
body.mp-open .capsule-dock,
body.mp-playing .capsule-dock,
body:has(.circ-all) .capsule-dock { display: none; }
body.mp-dock-only .capsule-dock { display: flex; }
.capsule-bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 6px 4px;
  border-radius: 999px;
  background: var(--xn-glass);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 10px 36px rgba(0,0,0,.14);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
}
.capsule-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-width: 48px; height: 48px; padding: 0 6px;
  border-radius: 999px; text-decoration: none; color: var(--xn-mute);
  font-size: 11px; font-weight: 600;
}
.capsule-item .capsule-ico {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
}
.capsule-item.on { color: var(--xn-ink); }
.capsule-item.on .capsule-ico { background: var(--xn-brand-soft); }
.capsule-plus {
  pointer-events: auto;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(255,255,255,.88);
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 28px; font-weight: 400; line-height: 1; color: #111;
  cursor: pointer; display: grid; place-items: center; padding: 0;
}
.capsule-plus.is-muted { opacity: .35; }
#content.has-capsule { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) {
  #content.has-capsule { padding-bottom: 1.25rem; }
}

/* Message hub — 三明治：标题 + 黑白胶囊 + 盒子 */
.msg-box {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}
html[data-theme="dark"] .msg-box {
  background: transparent;
  border-color: transparent;
}
.msg-hub .page-head { margin-bottom: var(--xn-head-mb); }
.msg-clear {
  width: 44px; height: 44px; flex-shrink: 0;
  display: grid; place-items: center;
  margin: 0; padding: 0; border: 0;
  background: transparent; border-radius: 12px;
  color: inherit; cursor: pointer;
}
.msg-clear:hover { background: var(--xn-soft-2, #f0f0f2); }
.msg-clear .ico { width: 22px; height: 22px; }
.msg-caps a em {
  font-style: normal; margin-left: 4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #ff3b30; color: #fff;
  font-size: 10px; font-weight: 700;
  display: inline-grid; place-items: center;
  vertical-align: middle;
}
.msg-caps.is-sub { margin: 4px 6px 10px; }
.msg-hub.is-deck {
  max-width: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: var(--xn-chrome-pt) var(--xn-chrome-px) var(--xn-chrome-pb);
}
.msg-hub.is-deck .msg-box {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--xn-surface);
  border-radius: 20px;
  overflow: hidden;
}
@media (min-width: 960px) {
  .msg-hub.is-deck .msg-box {
    background: transparent;
    border-radius: 0;
    overflow: visible;
  }
}
.msg-pane {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.msg-pane-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.msg-hub.is-deck .msg-box-body {
  min-height: 0;
  padding: 4px 0 8px;
}
.msg-hub .swipe-front.chat-group-row,
.msg-hub .swipe-front.msg-row {
  padding: 10px 16px;
  gap: 12px;
  min-height: 68px;
  align-items: center;
}
.msg-hub .chat-ico-wrap {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: block;
}
.msg-hub .msg-ava,
.msg-hub .chat-group-ico,
.msg-hub .chat-group-ico.round,
.msg-hub .chat-group-ico.game-logo {
  width: 48px;
  height: 48px;
  margin: 0;
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: none;
}
.msg-hub .chat-group-ico.dress-frame {
  box-shadow: inset 0 0 0 2px var(--xn-ink);
}
.msg-pane-detail { display: none; }
.msg-pane-empty {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--xn-mute);
  font-size: 14px;
  font-weight: 600;
}
.msg-pane-empty[hidden] { display: none; }
.msg-pane-frame {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: transparent;
}
.msg-hub .swipe-row.is-on .swipe-front,
.msg-hub .mail-hub-link.is-on {
  background: var(--xn-soft-2);
}
#content:has(.msg-hub.is-deck) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
#content.has-capsule:has(.msg-hub.is-deck) {
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 768px) {
  #content.has-capsule:has(.msg-hub.is-deck) { padding-bottom: 0; }
}
@media (min-width: 960px) {
  .msg-pane {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    padding: 2px 2px 4px 0;
    min-height: 0;
  }
  .msg-pane-list,
  .msg-pane-detail {
    border: 0;
    border-radius: 20px;
    background: var(--xn-surface);
    min-height: 0;
  }
  .msg-pane-list {
    border-right: 0;
    box-shadow: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .msg-pane-detail {
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    background: var(--xn-surface);
    border: 1px solid #fff;
    box-shadow: 0 0 0 1px #c7c7cc;
  }
  .msg-pane-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
  }
  html[data-theme="dark"] .msg-pane-detail {
    border-color: rgba(255, 255, 255, .18);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .55);
  }
}
.sys-feed,
.reply-feed {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--xn-soft);
}
.sys-feed-head,
.reply-feed .sys-feed-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 12px;
  background: var(--xn-surface);
  box-shadow: 0 1px 0 var(--xn-line);
}
.sys-feed-head .page-title { font-size: 17px; margin: 0; }
.sys-feed-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sys-feed-empty {
  margin: 48px 0 0;
  text-align: center;
  color: var(--xn-mute);
  font-size: 14px;
  font-weight: 600;
}
.sys-feed-when {
  text-align: center;
  font-size: 12px;
  font-weight: 650;
  color: var(--xn-mute);
  padding: 8px 0 4px;
}
.sys-card {
  align-self: stretch;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--xn-surface);
  box-shadow:
    0 0 0 1px rgba(60, 60, 67, .06),
    0 10px 28px rgba(15, 23, 42, .08);
}
html[data-theme="dark"] .sys-card {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .06),
    0 10px 28px rgba(0, 0, 0, .35);
}
.sys-card-kicker {
  font-size: 11px;
  font-weight: 700;
  color: var(--xn-mute);
  margin-bottom: 6px;
}
.sys-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.3;
}
.sys-card-body {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--xn-ink);
}
.sys-card-gift {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 650;
  color: var(--xn-mute);
}
.sys-card-act {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.reply-feed-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
}
.reply-feed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 10px;
  border: 0;
  border-radius: 12px;
  text-decoration: none;
  text-align: left;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.reply-feed-row:hover { background: var(--xn-soft-2); }
.reply-feed-row.is-unread b { font-weight: 800; }
.reply-feed-txt {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.reply-feed-txt b {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.reply-feed-txt small { font-size: 12px; color: var(--xn-mute); }
.floor.is-flash,
.floor-kid.is-flash {
  outline: 2px solid var(--xn-brand, #2f6bff);
  outline-offset: 4px;
  border-radius: 12px;
}
.msg-cats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  padding: 14px 10px 12px;
  border-bottom: 1px solid var(--xn-line-soft);
}
.msg-cats.is-5 { grid-template-columns: repeat(5, 1fr); }
.msg-cats.is-5 .msg-cat-ico { width: 44px; height: 44px; }
.msg-cats.is-5 .msg-cat { padding: 6px 0 4px; gap: 6px; }
.msg-cat {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-decoration: none; color: inherit; padding: 8px 2px 6px;
  border-radius: 14px; background: transparent;
}
.msg-cat.on { background: transparent; }
html[data-theme="dark"] .msg-cat.on { background: transparent; }
.msg-cat-ico {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box; padding: 0;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.msg-cat-ico.is-msg { background: linear-gradient(145deg, #38bdf8, #2563eb); }
.msg-cat-ico.is-chat { background: linear-gradient(145deg, #2dd4bf, #0f766e); }
.msg-cat-ico.is-reply { background: linear-gradient(145deg, #a78bfa, #7c3aed); }
.msg-cat-ico.is-sys { background: linear-gradient(145deg, #fbbf24, #ea580c); }
.msg-cat-ico.is-follow { background: linear-gradient(145deg, #fb7185, #e11d48); }
.msg-cat-ico .ico {
  width: 22px !important; height: 22px !important;
  display: block !important;
  vertical-align: top;
  object-fit: contain;
  object-position: center;
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
}
.msg-cat-lab { font-size: 12px; font-weight: 600; color: #3c3c43; }
.msg-cat.on .msg-cat-lab {
  color: var(--xn-ink); font-weight: 750;
  box-shadow: 0 2px 0 var(--xn-ink);
}
html[data-theme="dark"] .msg-cat-lab { color: var(--xn-mute); }
.msg-cat-badge {
  position: absolute; top: 4px; right: 10%;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #ff3b30; color: #fff;
  font-size: 10px; font-weight: 700; display: grid; place-items: center;
}
.msg-box-body { padding: 4px 10px 12px; min-height: 42vh; }
.msg-list-card {
  background: #fff; border-radius: 22px 22px 0 0;
  border: 1px solid #ebebeb; padding: 14px 12px 20px; min-height: 40vh;
}
.ga-list { display: flex; flex-direction: column; gap: 8px; }
.ga-pick { color: var(--xn-ink); }
.ga-pick .page-title,
.ga-pick .ga-pick-name { color: var(--xn-ink); }
.ga-name-in {
  height: var(--xn-btn-h-lg); padding: 0 12px;
  border: 1px solid var(--xn-line); border-radius: var(--xn-radius);
  background: var(--xn-surface); color: var(--xn-ink); font: inherit;
}
.ga-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px; border-radius: 16px; border: 1px solid var(--xn-line);
  background: var(--xn-surface); cursor: pointer; font: inherit; color: var(--xn-ink);
  text-align: left;
}
.ga-row:active { transform: scale(.99); }
html[data-theme="dark"] .ga-row { background: var(--xn-surface); }

/* 用户名片 */
.ucard-hit { cursor: pointer; }
button.ucard-name, button.ucard-hit {
  border: 0; background: none; padding: 0; font: inherit; color: inherit;
  cursor: pointer; text-align: left;
}
button.ucard-name:hover { color: var(--xn-brand); }
.ucard {
  position: fixed; inset: 0; z-index: 85;
  display: flex; align-items: flex-end; justify-content: center;
}
.ucard.hidden { display: none; }
.ucard-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.ucard-sheet {
  position: relative; z-index: 1; width: min(400px, 100%);
  max-height: min(90vh, 720px); overflow-y: auto;
  background: var(--xn-glass, #fff);
  backdrop-filter: blur(var(--xn-blur, 16px));
  -webkit-backdrop-filter: blur(var(--xn-blur, 16px));
  border-radius: 22px 22px 0 0;
  padding: 28px 20px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(0,0,0,.18);
  text-align: center;
}
html[data-theme="dark"] .ucard-sheet { background: rgba(28,28,30,.92); color: #f5f5f7; }
.ucard-x {
  position: absolute; right: 12px; top: 12px; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: var(--xn-soft-2); cursor: pointer;
  display: grid; place-items: center;
}
.ucard-ava {
  width: 72px; height: 72px; margin: 4px auto 12px; border-radius: 50%;
  background: var(--xn-brand-soft); color: var(--xn-brand); display: grid; place-items: center;
  font-size: 28px; font-weight: 700; overflow: hidden;
}
.ucard-ava img { width: 100%; height: 100%; object-fit: cover; }
.ucard-name { font-size: 20px; font-weight: 800; }
.ucard-sub { font-size: 13px; color: var(--xn-mute); margin-top: 4px; margin-bottom: 18px; }
.ucard-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ucard-actions .btn { flex: 1 1 calc(50% - 5px); min-height: 44px; }
.ucard-more {
  margin-top: 16px; text-align: left;
  background: var(--xn-soft); border-radius: 12px; overflow: hidden;
}
.ucard-row {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px; border: 0; border-bottom: 1px solid var(--xn-line-soft);
  background: transparent; font: inherit; color: inherit; cursor: pointer; text-align: left;
}
.ucard-row:last-child { border-bottom: 0; }
.ucard-row-val { color: var(--xn-mute); font-size: 13px; font-weight: 600; flex-shrink: 0; }
.ucard-row.is-on .ucard-row-val { color: var(--xn-brand); }
.ucard-row.danger { color: var(--xn-danger); }
.chat-group-ico.has-img, .chat-group-ico.round { overflow: hidden; }
.chat-group-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swipe-row { position: relative; overflow: hidden; user-select: none; }
.swipe-row.is-pin .swipe-front { background: #fafafa; }
html[data-theme="dark"] .swipe-row.is-pin .swipe-front { background: #2c2c2e; }
.swipe-actions {
  position: absolute; right: 0; top: 0; bottom: 0;
  display: flex;
}
.swipe-act {
  width: 76px; border: 0; color: #fff; font-size: 13px; font-weight: 700;
  font-family: var(--xn-font); cursor: pointer; padding: 0 8px;
}
.swipe-act.pin { background: #c7c7cc; }
.swipe-act.danger { background: #ff3b30; }
.swipe-front {
  position: relative; z-index: 1;
  background: #fff;
  transform: translateX(0);
  transition: transform .18s ease;
}
html[data-theme="dark"] .swipe-front { background: #1c1c1e; }
.swipe-front.chat-group-row { border-bottom: 1px solid var(--xn-line-soft); }
.swipe-row:last-child .swipe-front { border-bottom: 0; }
.msg-box-body .msg-row { border-bottom: 0; }

.msg-rows { display: flex; flex-direction: column; }
.msg-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; text-decoration: none; color: inherit;
  border-bottom: 1px solid #f2f2f4;
}
.msg-row:last-child { border-bottom: 0; }
.msg-ava {
  position: relative; width: 48px; height: 48px; border-radius: 8px;
  display: grid; place-items: center; flex: 0 0 48px;
  overflow: hidden;
}
.msg-dot {
  position: absolute; top: 0; right: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: #ff3b30; border: 2px solid #fff;
}
.msg-num {
  position: absolute; top: -4px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: #ff3b30; color: #fff;
  font-size: 10px; font-weight: 700; display: grid; place-items: center;
  font-style: normal; border: 2px solid #fff;
}
.msg-body { flex: 1; min-width: 0; }
.msg-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.msg-name { font-size: 15px; font-weight: 700; }
.msg-time { font-size: 12px; color: #8b8b8f; flex-shrink: 0; }
.msg-preview {
  display: block; font-size: 13px; color: #8b8b8f;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.group-gate {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: flex-end; justify-content: center;
}
.group-gate.hidden { display: none; }
.group-gate-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.group-gate-sheet {
  position: relative; z-index: 1; width: min(420px, 100%);
  background: #fff; border-radius: 22px 22px 0 0;
  padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(0,0,0,.18);
}

/* ===== Buttons（统一高度 / 圆角 / 边框） ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  box-sizing: border-box;
  height: var(--xn-btn-h); min-height: var(--xn-btn-h);
  padding: 0 14px; border-radius: var(--xn-radius-sm);
  background: var(--xn-brand); color: #fff;
  font-weight: 600; font-size: 13px; font-family: var(--xn-font); line-height: 1;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .12s, border-color .12s, color .12s, opacity .12s, transform .08s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { filter: brightness(1.03); }
.btn:active { transform: scale(.98); }
.btn:disabled, .btn[disabled] { opacity: .45; pointer-events: none; }
.btn.ghost {
  background: #fff; color: var(--xn-ink);
  border-color: var(--xn-line); filter: none;
}
.btn.ghost:hover { background: var(--xn-soft); }
.btn.soft {
  background: var(--xn-soft-2); color: var(--xn-ink);
  border-color: transparent; filter: none;
}
.btn.soft:hover { background: #e8e8ea; }
.btn.danger {
  background: var(--xn-danger); color: #fff; border-color: transparent;
}
.btn.danger.ghost {
  background: #fff; color: var(--xn-danger); border-color: #fecaca;
}
.btn.danger.ghost:hover { background: #fef2f2; }
.btn.block {
  display: flex; width: 100%;
  justify-content: center; align-items: center;
  text-align: center;
}
.btn.lg { height: var(--xn-btn-h-lg); min-height: var(--xn-btn-h-lg); padding: 0 18px; font-size: 15px; border-radius: var(--xn-radius); }
.btn.sm { height: 32px; min-height: 32px; padding: 0 10px; font-size: 12px; border-radius: var(--xn-radius-xs); }
.btn.on, .btn.is-on {
  background: var(--xn-ink); color: #fff; border-color: var(--xn-ink); filter: none;
}
/* 兼容旧写法 */
.btn-ghost { background: #fff; color: var(--xn-ink); border: 1px solid var(--xn-line); }
.btn-ghost:hover { background: var(--xn-soft); }

/* Tabs / 分段（后台、筛选） */
.ui-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 4px; margin-bottom: 16px;
  background: var(--xn-soft); border: 1px solid var(--xn-line);
  border-radius: var(--xn-radius); box-shadow: var(--xn-shadow);
}
.ui-tabs .btn {
  height: 32px; min-height: 32px; padding: 0 12px; font-size: 12px;
  background: transparent; color: var(--xn-mute); border-color: transparent; filter: none;
}
.ui-tabs .btn:hover { background: #fff; color: var(--xn-ink); }
.ui-tabs .btn.on {
  background: #fff; color: var(--xn-ink); border-color: var(--xn-line);
  box-shadow: var(--xn-shadow);
}

/* ===== Cards / panels ===== */
.card {
  background: #fff;
  border: 1px solid var(--xn-line);
  border-radius: var(--xn-radius);
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: var(--xn-shadow);
}
.card.flat { box-shadow: none; }
.card.tight { padding: 12px; }
.xn-empty {
  text-align: center;
  padding: 40px 16px 32px;
}
.xn-empty-visual {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: rgba(118, 118, 128, .12);
  color: var(--xn-ink);
  display: grid; place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.xn-empty-visual .xn-empty-svg {
  width: 36px; height: 36px; display: block;
}
.xn-empty-visual path {
  stroke: currentColor;
  fill: none;
}
.xn-empty-visual.is-in path {
  animation: xn-empty-draw .85s ease forwards;
}
.xn-empty-visual[data-kind="game"].is-in .xn-empty-svg {
  animation: xn-empty-tilt 1.05s cubic-bezier(.22,1,.36,1) .12s both;
}
.xn-empty-visual[data-kind="circle"].is-in .xn-empty-svg,
.xn-empty-visual[data-kind="people"].is-in .xn-empty-svg {
  animation: xn-empty-pop .7s cubic-bezier(.2,.9,.2,1) both;
}
.xn-empty-visual[data-kind="posts"].is-in .xn-empty-svg {
  animation: xn-empty-bob 2.4s ease-in-out .2s infinite;
}
.xn-empty-visual[data-kind="messages"].is-in .xn-empty-svg {
  animation: xn-empty-lift .8s cubic-bezier(.2,.9,.2,1) both;
}
.xn-empty-visual[data-kind="trade"].is-in .xn-empty-svg {
  animation: xn-empty-swing 1s ease .1s both;
}
@keyframes xn-empty-draw {
  from { stroke-dasharray: 240; stroke-dashoffset: 240; opacity: .15; }
  to { stroke-dasharray: 240; stroke-dashoffset: 0; opacity: 1; }
}
@keyframes xn-empty-tilt {
  0% { transform: rotate(-14deg) scale(.9); }
  45% { transform: rotate(8deg) scale(1.06); }
  100% { transform: rotate(0) scale(1); }
}
@keyframes xn-empty-pop {
  0% { transform: scale(.72); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes xn-empty-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes xn-empty-lift {
  0% { transform: translateY(8px) scale(.92); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes xn-empty-swing {
  0% { transform: rotate(-16deg) translateY(5px); }
  50% { transform: rotate(9deg) translateY(-2px); }
  100% { transform: rotate(0) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .xn-empty-visual path,
  .xn-empty-visual .xn-empty-svg { animation: none !important; }
}
.xn-empty-title {
  margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--xn-ink);
}
.xn-empty-sub {
  margin: 0 0 16px; font-size: 13px; color: var(--xn-mute); line-height: 1.45;
}
.xn-empty .btn { min-width: 132px; }
.msg-box-body .xn-empty,
.circ-all-sec .xn-empty,
.ga-pick .xn-empty,
.mk-sell-body .xn-empty { padding: 24px 12px 16px; }
.circ-hero-bar .btn {
  background: #fff; color: #111; border-color: transparent;
  height: 30px; min-height: 30px; padding: 0 12px; border-radius: 999px;
}
.circ-hero-bar .btn.ghost {
  background: rgba(255,255,255,.22); color: #fff; border-color: transparent;
}
.circ-tabs .btn { flex-shrink: 0; }
.seg {
  display: inline-flex; align-items: center; padding: 2px; gap: 0;
  border-radius: 10px; background: rgba(118, 118, 128, .12);
}
.seg > a, .seg > span, .seg > button, .seg > label {
  height: 32px; padding: 0 14px; border-radius: 8px; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 650; color: var(--xn-ink);
  text-decoration: none; background: transparent; font-family: inherit; cursor: pointer;
}
.seg > a.on, .seg > span.on, .seg > button.on, .seg > label:has(:checked) {
  background: #fff; font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 0.5px rgba(0, 0, 0, .04);
}
html[data-theme="dark"] .seg > a.on, html[data-theme="dark"] .seg > span.on, html[data-theme="dark"] .seg > button.on, html[data-theme="dark"] .seg > label:has(:checked) {
  background: #2c2c2e; box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
.page-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--xn-ink);
}
@media (min-width: 768px) {
  .page-title { font-size: 34px; }
}
.page-title.mb-0 { margin-bottom: 0; }
.page-title.sm { font-size: 17px; font-weight: 700; margin: 18px 0 10px; letter-spacing: 0; }

/* 六页共用：大标题 + 三态胶囊（线框 / 灰底触发 / 黑底选中） */
.xn-page-head {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-height: 44px;
  margin: 0 0 var(--xn-head-mb);
  flex-shrink: 0;
}
.xn-page-head .page-title {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
  font-size: var(--xn-title);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.xn-caps {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--xn-cap-gap);
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 0 var(--xn-caps-mb);
  padding: 0;
  flex-shrink: 0;
}
.xn-caps::-webkit-scrollbar { display: none; }
.xn-caps a,
.xn-caps .circ-deck-tab,
.xn-caps .circ-deck-add {
  flex: 0 0 auto;
  height: var(--xn-cap-h);
  min-height: var(--xn-cap-h);
  padding: 0 var(--xn-cap-px);
  border-radius: var(--xn-cap-r);
  border: 1px solid var(--xn-line);
  background: transparent;
  color: var(--xn-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  cursor: pointer;
}
.xn-caps .circ-deck-add {
  width: var(--xn-cap-h);
  padding: 0;
  font-size: 20px;
}
.xn-caps a:hover,
.xn-caps .circ-deck-tab:hover,
.xn-caps .circ-deck-add:hover {
  background: var(--xn-soft-2);
  border-color: transparent;
}
.xn-caps a.on,
.xn-caps .circ-deck-tab.on {
  background: var(--xn-ink);
  color: var(--xn-surface);
  border-color: transparent;
}
html[data-theme="dark"] .xn-caps a.on,
html[data-theme="dark"] .xn-caps .circ-deck-tab.on {
  color: #111;
  background: #f5f5f7;
}
.xn-caps a.on .circ-deck-sysico { filter: brightness(0) invert(1); }
html[data-theme="dark"] .xn-caps a.on .circ-deck-sysico { filter: none; }
.xn-caps a .ico {
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.xn-caps.is-sub a {
  height: 28px;
  min-height: 28px;
  padding: 0 10px;
  font-size: 13px;
}
.page-head:not(.xn-page-head) {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 14px;
}
.page-head:not(.xn-page-head) .page-title { margin: 0; flex: 1; min-width: 0; font-size: 22px; font-weight: 700; }
.page-back {
  width: 44px; height: 44px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 12px; color: inherit; text-decoration: none; font-size: 28px; line-height: 1;
}
.page-back:hover { background: var(--xn-soft-2, #f0f0f2); }
.sub { color: var(--xn-mute); font-size: 13px; margin: 0 0 14px; line-height: 1.45; }
.form-card { max-width: 440px; }
.row-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px;
}
.row-actions .btn { margin: 0; }
.stat-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.stat {
  flex: 1; min-width: 100px; background: #fff;
  border: 1px solid var(--xn-line); border-radius: var(--xn-radius);
  padding: 12px 14px; box-shadow: var(--xn-shadow);
}
.stat .k { font-size: 12px; color: var(--xn-mute); font-weight: 600; }
.stat .v { font-size: 20px; font-weight: 800; margin-top: 4px; color: var(--xn-ink); }

.wal-hero {
  background: var(--xn-surface);
  border: 1px solid var(--xn-line);
  border-radius: var(--xn-radius-lg);
  padding: 20px 16px;
  margin-bottom: 16px;
}
.wal-hero-k { font-size: 13px; color: var(--xn-mute); font-weight: 600; }
.wal-hero-v {
  font-size: 34px; font-weight: 800; letter-spacing: -.03em;
  line-height: 1.15; margin: 4px 0 12px; color: var(--xn-ink);
}
.wal-hero-sub {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  font-size: 13px; color: var(--xn-mute);
}
.wal-hero-sub b { color: var(--xn-ink); font-weight: 700; }
.wal-actions { display: flex; gap: 8px; margin-top: 16px; }
.wal-actions .btn { flex: 1; }
.wal-cash form + form { margin-top: 16px; }
.wal-pay { margin-top: 16px; }
.wal-pay-list { display: grid; gap: 16px; }
.wal-pay-card { display: grid; gap: 8px; padding-top: 4px; }
.wal-pay-card + .wal-pay-card { border-top: 1px solid var(--xn-line, rgba(0,0,0,.06)); padding-top: 16px; }
.wal-pay-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wal-pay-h b { font-size: 15px; font-weight: 700; color: var(--xn-ink); }
.wal-pay-st { font-size: 12px; font-weight: 700; color: var(--xn-mute); }
.wal-pay-st.is-on { color: var(--xn-ok, #248a3d); }
.wal-pay-qr { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; background: var(--xn-soft); }
.wal-sheet { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: flex-end; justify-content: center; }
.wal-sheet.hidden { display: none; }
.wal-sheet-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.32); }
.wal-sheet-card {
  position: relative; width: 100%; max-width: 520px; max-height: 86vh; overflow: auto;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  border-radius: 22px 22px 0 0;
  background: var(--xn-glass, rgba(255,255,255,.82));
  backdrop-filter: blur(var(--xn-blur, 20px)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--xn-blur, 20px)) saturate(1.4);
  box-shadow: 0 -8px 32px rgba(0,0,0,.12);
}
@media (min-width: 640px) {
  .wal-sheet { align-items: center; }
  .wal-sheet-card { border-radius: 22px; }
}
.wal-sheet-k { font-size: 17px; font-weight: 800; color: var(--xn-ink); margin-bottom: 6px; }
body.wal-lock { overflow: hidden; }
.rc-page { max-width: 560px; margin: 0 auto; }
.rc-page.is-embed { max-width: none; padding: 16px 16px 24px; }
.rc-banner {
  display: block; margin: 0 0 16px; padding: 12px 14px;
  border-radius: 12px; background: var(--xn-brand-soft, rgba(47,107,255,.12));
  color: var(--xn-ink); font-size: 14px; font-weight: 650; text-decoration: none;
}
.rc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
}
@media (min-width: 640px) {
  .rc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .rc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.rc-cell { display: block; cursor: pointer; position: relative; }
.rc-cell input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.rc-cell-in {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 88px; padding: 12px 8px; border-radius: 14px;
  background: var(--xn-surface); border: 1px solid var(--xn-line);
  text-align: center; position: relative; overflow: hidden;
}
.rc-cell.has-flag .rc-cell-in { padding-top: 28px; min-height: 104px; }
.rc-cell.has-flag.has-vip .rc-cell-in,
.rc-cell.has-flag.is-first .rc-cell-in { padding-top: 36px; }
.rc-flags {
  position: absolute; top: 0; right: 0;
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  z-index: 1; pointer-events: none;
}
.rc-flag {
  display: inline-block;
  font-size: 10px; font-weight: 700; line-height: 1.2;
  padding: 3px 8px 4px 10px;
  color: #fff; background: var(--xn-ink);
  border-radius: 0 13px 0 10px;
  white-space: nowrap;
}
.rc-flag.is-vip { background: var(--xn-brand, #2f6bff); }
.rc-cell-in b { font-size: 18px; font-weight: 800; line-height: 1.2; }
.rc-cell-in small { margin-top: 4px; font-size: 12px; color: var(--xn-mute); font-weight: 600; }
.rc-cell-in em,
.rc-vip {
  margin-top: 4px; font-size: 11px; font-style: normal; font-weight: 650;
  color: var(--xn-brand, #2f6bff);
}
.rc-cell input:checked + .rc-cell-in,
.rc-cell:has(input:checked) .rc-cell-in {
  border-color: var(--xn-ink); box-shadow: 0 0 0 2px var(--xn-ink);
}
.rc-cell.is-custom .rc-cell-in { min-height: 128px; overflow: visible; }
.rc-cell.is-custom .rc-vip { color: var(--xn-mute); font-weight: 600; }
.rc-cell.is-custom small { white-space: normal; line-height: 1.35; padding: 0 4px; }
.rc-cell.is-custom input[type=number] {
  width: 100%; margin-top: 6px; height: 32px; min-height: 32px;
  padding: 0 8px; font-size: 13px; text-align: center;
  border: 0; background: var(--xn-soft-2); border-radius: 8px;
}
.rc-qr { text-align: center; margin: 8px 0 12px; }
.rc-qr img { display: block; margin: 0 auto 8px; border-radius: 12px; }
.rc-task {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; margin: 0 0 10px;
  background: var(--xn-surface); border-radius: 14px;
}
.rc-task-ico {
  width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; background: var(--xn-soft-2);
}
.rc-task-ico.is-frame { box-shadow: inset 0 0 0 2px var(--xn-ink); }
.rc-task-ico.is-badge { background: var(--xn-ink); color: #fff; }
.rc-task-ico.is-bubble { border-radius: 18px 18px 18px 6px; background: var(--xn-brand-soft); color: var(--xn-brand); }
.rc-task-ico.is-coin { font-size: 12px; }
.rc-task-body { flex: 1; min-width: 0; }
.rc-task-bar {
  height: 6px; margin: 8px 0 4px; border-radius: 99px;
  background: var(--xn-soft-2); overflow: hidden;
}
.rc-task-bar i { display: block; height: 100%; background: var(--xn-ink); border-radius: 99px; }
.rc-daily-pair {
  display: grid;
  gap: 16px;
  margin: 0 0 16px;
}
@media (min-width: 760px) {
  .rc-daily-pair { grid-template-columns: 1fr 1fr; align-items: stretch; }
}
.rc-daily-box {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  min-height: 0;
}
.rc-daily-k {
  font-size: 11px;
  font-weight: 600;
  color: var(--xn-mute);
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}
.rc-daily-box .wf-seg { width: 100%; margin: 0 0 12px; flex-wrap: wrap; }
.rc-daily-box .gift-week { margin-bottom: 12px; }
.rc-daily-box .sub { margin-bottom: 12px; }
.rc-daily-act { margin-top: auto; }
.rc-daily-act form { margin: 0; }
.rc-daily-gifts {
  display: flex; gap: 10px; justify-content: flex-start; flex-wrap: wrap; margin: 0 0 16px;
}
.rc-gift-box {
  width: 96px; min-height: 88px; padding: 12px 8px;
  border-radius: 14px; background: var(--xn-soft-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.rc-gift-box b { font-size: 22px; font-weight: 800; line-height: 1.1; }
.rc-gift-box small { margin-top: 6px; font-size: 11px; color: var(--xn-mute); font-weight: 600; }
.dress-badge {
  display: inline-block; margin-left: 4px; padding: 1px 6px;
  font-size: 10px; font-weight: 700; line-height: 1.3;
  border-radius: 6px; background: var(--xn-ink); color: #fff; vertical-align: 1px;
}
.dress-badge.is-copper, .rc-task-ico.is-copper { background: #b87333; color: #fff; }
.dress-badge.is-silver, .rc-task-ico.is-silver { background: #8e8e93; color: #fff; }
.dress-badge.is-gold, .rc-task-ico.is-gold { background: #c9a227; color: #1a1408; }
.dress-badge.is-diamond, .rc-task-ico.is-diamond {
  background: #1c1c1e; color: #f5f5f7;
  box-shadow: inset 0 0 0 1px #c9d4e8;
}
.dress-frame { box-shadow: 0 0 0 2px var(--xn-ink); }
.chat-ava.dress-frame, .ucard-ava.dress-frame { box-shadow: 0 0 0 2px var(--xn-ink); }
.dress-frame.is-tone-copper, .chat-ava.dress-frame.is-tone-copper, .ucard-ava.dress-frame.is-tone-copper { box-shadow: 0 0 0 2px #b87333; }
.dress-frame.is-tone-silver, .chat-ava.dress-frame.is-tone-silver, .ucard-ava.dress-frame.is-tone-silver { box-shadow: 0 0 0 2px #8e8e93; }
.dress-frame.is-tone-gold, .chat-ava.dress-frame.is-tone-gold, .ucard-ava.dress-frame.is-tone-gold { box-shadow: 0 0 0 2px #c9a227; }
.dress-frame.is-tone-diamond, .chat-ava.dress-frame.is-tone-diamond, .ucard-ava.dress-frame.is-tone-diamond { box-shadow: 0 0 0 2px #c9d4e8; }
.dress-frame.is-tone-rose, .chat-ava.dress-frame.is-tone-rose, .ucard-ava.dress-frame.is-tone-rose { box-shadow: 0 0 0 2px #c45c6a; }
.dress-frame.is-tone-leaf, .chat-ava.dress-frame.is-tone-leaf, .ucard-ava.dress-frame.is-tone-leaf { box-shadow: 0 0 0 2px #3d7a54; }
.dress-frame.is-tone-cyan, .chat-ava.dress-frame.is-tone-cyan, .ucard-ava.dress-frame.is-tone-cyan { box-shadow: 0 0 0 2px #3a8f9e; }
.dress-frame.is-tone-amber, .chat-ava.dress-frame.is-tone-amber, .ucard-ava.dress-frame.is-tone-amber { box-shadow: 0 0 0 2px #c47a1a; }
.dress-frame.is-tone-violet, .chat-ava.dress-frame.is-tone-violet, .ucard-ava.dress-frame.is-tone-violet { box-shadow: 0 0 0 2px #6b5b9a; }
.dress-frame.is-tone-steel, .chat-ava.dress-frame.is-tone-steel, .ucard-ava.dress-frame.is-tone-steel { box-shadow: 0 0 0 2px #5a6a7a; }
.dress-frame.is-tone-wine, .chat-ava.dress-frame.is-tone-wine, .ucard-ava.dress-frame.is-tone-wine { box-shadow: 0 0 0 2px #8a3a4a; }
.dress-frame.is-tone-ink, .chat-ava.dress-frame.is-tone-ink, .ucard-ava.dress-frame.is-tone-ink { box-shadow: 0 0 0 2px var(--xn-ink); }
.msg-hub .dress-frame {
  box-shadow: inset 0 0 0 2px var(--xn-ink);
}
.msg-hub .dress-frame.is-tone-copper { box-shadow: inset 0 0 0 2px #b87333; }
.msg-hub .dress-frame.is-tone-silver { box-shadow: inset 0 0 0 2px #8e8e93; }
.msg-hub .dress-frame.is-tone-gold { box-shadow: inset 0 0 0 2px #c9a227; }
.msg-hub .dress-frame.is-tone-diamond { box-shadow: inset 0 0 0 2px #c9d4e8; }
.msg-hub .dress-frame.is-tone-rose { box-shadow: inset 0 0 0 2px #c45c6a; }
.msg-hub .dress-frame.is-tone-leaf { box-shadow: inset 0 0 0 2px #3d7a54; }
.msg-hub .dress-frame.is-tone-cyan { box-shadow: inset 0 0 0 2px #3a8f9e; }
.msg-hub .dress-frame.is-tone-amber { box-shadow: inset 0 0 0 2px #c47a1a; }
.msg-hub .dress-frame.is-tone-violet { box-shadow: inset 0 0 0 2px #6b5b9a; }
.msg-hub .dress-frame.is-tone-steel { box-shadow: inset 0 0 0 2px #5a6a7a; }
.msg-hub .dress-frame.is-tone-wine { box-shadow: inset 0 0 0 2px #8a3a4a; }
.msg-hub .dress-frame.is-tone-ink { box-shadow: inset 0 0 0 2px var(--xn-ink); }
.chat-bubble-msg.is-dress {
  border-color: var(--xn-ink);
  box-shadow: inset 0 0 0 1px var(--xn-ink);
}
.chat-bubble-msg.is-dress.is-tone-copper { border-color: #b87333; box-shadow: inset 0 0 0 1px #b87333; }
.chat-bubble-msg.is-dress.is-tone-silver { border-color: #8e8e93; box-shadow: inset 0 0 0 1px #8e8e93; }
.chat-bubble-msg.is-dress.is-tone-gold { border-color: #c9a227; box-shadow: inset 0 0 0 1px #c9a227; }
.chat-bubble-msg.is-dress.is-tone-diamond { border-color: #c9d4e8; box-shadow: inset 0 0 0 1px #c9d4e8; }
.chat-bubble-msg.is-dress.is-tone-rose { border-color: #c45c6a; box-shadow: inset 0 0 0 1px #c45c6a; }
.chat-bubble-msg.is-dress.is-tone-leaf { border-color: #3d7a54; box-shadow: inset 0 0 0 1px #3d7a54; }
.chat-bubble-msg.is-dress.is-tone-cyan { border-color: #3a8f9e; box-shadow: inset 0 0 0 1px #3a8f9e; }
.chat-bubble-msg.is-dress.is-tone-amber { border-color: #c47a1a; box-shadow: inset 0 0 0 1px #c47a1a; }
.chat-bubble-msg.is-dress.is-tone-violet { border-color: #6b5b9a; box-shadow: inset 0 0 0 1px #6b5b9a; }
.chat-bubble-msg.is-dress.is-tone-steel { border-color: #5a6a7a; box-shadow: inset 0 0 0 1px #5a6a7a; }
.chat-bubble-msg.is-dress.is-tone-wine { border-color: #8a3a4a; box-shadow: inset 0 0 0 1px #8a3a4a; }
.xn-rows {
  background: var(--xn-surface);
  border: 1px solid var(--xn-line);
  border-radius: var(--xn-radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}
.xn-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; min-height: 56px;
  border-bottom: 1px solid var(--xn-line-soft);
  text-decoration: none; color: inherit;
}
.xn-row:last-child { border-bottom: 0; }
.xn-row.is-static { cursor: default; }
.xn-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.xn-row-title { font-size: 15px; font-weight: 600; }
.xn-row-sub { font-size: 12px; color: var(--xn-mute); }
.xn-row-amt { font-size: 15px; font-weight: 700; flex-shrink: 0; }
.xn-row-amt.is-in { color: var(--xn-ok-ink); }

/* ===== Forms ===== */
label {
  display: block; font-size: 12px; font-weight: 600; color: var(--xn-mute);
  margin: 12px 0 6px; letter-spacing: .01em;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
textarea,
select {
  width: 100%; box-sizing: border-box;
  min-height: var(--xn-control-h);
  padding: 9px 12px;
  border-radius: var(--xn-radius-sm);
  border: 1px solid var(--xn-line);
  background: #fff;
  color: var(--xn-ink);
  font-size: 15px; font-family: var(--xn-font); line-height: 1.4;
  outline: none;
  transition: border-color .12s, box-shadow .12s, background .12s;
  box-shadow: var(--xn-shadow);
}
textarea { min-height: 96px; padding: 11px 12px; resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b8b8f' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):hover,
textarea:hover,
select:hover { border-color: #d4d4d8; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):focus,
textarea:focus,
select:focus {
  border-color: rgba(47, 107, 255, .45);
  box-shadow: var(--xn-focus);
  background: #fff;
}
input::placeholder, textarea::placeholder { color: #b0b0b5; }
table.list { width: 100%; border-collapse: collapse; font-size: 13px; }
table.list th, table.list td {
  text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--xn-line-soft);
}
.thread-body { white-space: pre-wrap; line-height: 1.55; font-size: 15px; margin: 10px 0; }
.post { border-top: 1px solid var(--xn-line-soft); padding-top: 12px; margin-top: 12px; }

/* 分割线工具类 */
.xn-rule { height: 1px; background: var(--xn-line-soft); border: 0; margin: 12px 0; }
.xn-panel {
  background: #fff; border: 1px solid var(--xn-line);
  border-radius: var(--xn-radius); overflow: hidden; box-shadow: var(--xn-shadow);
}

/* Icons */
.ico { width: 20px; height: 20px; display: inline-block; vertical-align: middle; object-fit: contain; }
.ico-xs { width: 14px; height: 14px; }
.ico-sm { width: 16px; height: 16px; }
.ico-lg { width: 28px; height: 28px; }
.ico.invert { filter: brightness(0) invert(1); }

/* Game hall */
.xn-search { position: relative; margin: 0 0 16px; }
.xn-search-input,
.xn-search input,
.hall-search input {
  width: 100%; height: 44px; border-radius: 12px; border: 0;
  background: rgba(118, 118, 128, .12); padding: 0 16px 0 40px; font-size: 17px; color: var(--xn-ink);
}
.xn-search-ico,
.hall-search-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%); opacity: .45;
  display: grid; place-items: center; pointer-events: none;
}
.hall-search { position: relative; }
.hall-show {
  position: relative;
  margin: 0 0 28px;
  overflow: visible;
}
.hall-show .hall-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: none;
}
.hall-show .hall-track::-webkit-scrollbar { display: none; }
.hall-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  margin: 0; padding: 0; border: 0;
  color: #fff; text-align: left; font: inherit;
  background: none; cursor: pointer;
  display: block;
  text-decoration: none;
}
.hall-show:not(.is-one):not(.is-banner) .hall-slide { flex-basis: calc(100% - 20px); }
.hall-slide-art {
  --color: var(--hall-slide-tone, #1c1c1e);
  position: relative;
  container-name: hall-hero;
  container-type: size;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 360px;
  max-height: min(60vh, 640px);
  border-radius: 17px;
  border: 1px solid rgba(0,0,0,.06);
  color: #fff;
}
.hall-slide-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--color);
  background-image:
    var(--hall-slide-bg, none),
    radial-gradient(ellipse 90% 70% at 72% 18%, color-mix(in srgb, #fff 26%, var(--color)), transparent 68%);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hall-slide-grad {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 32%, color-mix(in srgb, var(--color) 78%, #000) 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 28%, #000 72%);
  mask-image: linear-gradient(180deg, transparent 28%, #000 72%);
  -webkit-backdrop-filter: blur(28px) saturate(1.45);
  backdrop-filter: blur(28px) saturate(1.45);
  filter: saturate(1.35) brightness(.92);
}
.hall-slide-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  padding: 0 20px 20px;
  text-wrap: pretty;
}
.hall-slide-copy em {
  display: inline-block;
  margin: 0 0 4px;
  font: 600 12px/1.25 var(--xn-font);
  font-style: normal;
  color: rgba(255,255,255,.78);
  mix-blend-mode: plus-lighter;
}
.hall-slide-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.12;
  text-wrap: balance;
}
.hall-slide-copy > p {
  margin: 8px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 15px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  mix-blend-mode: plus-lighter;
}
.hall-slide-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 350px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.22);
  text-align: left;
}
.hall-slide-ico.game-logo,
.hall-slide-ico { width: 64px; height: 64px; flex-shrink: 0; }
.hall-slide-lockup-txt { flex: 1 1 0; min-width: 0; overflow: hidden; }
.hall-slide-lockup-txt b,
.hall-slide-lockup-txt small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hall-slide-lockup-txt b { font-size: 17px; font-weight: 700; color: #fff; }
.hall-slide-lockup-txt small {
  margin-top: 2px; font-size: 13px; color: rgba(255,255,255,.72);
  mix-blend-mode: plus-lighter;
}
.hall-slide .btn {
  flex: 0 0 auto;
  background: rgba(255,255,255,.25);
  color: #fff;
  border-color: transparent;
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
}
.hall-slide .btn:hover { background: rgba(255,255,255,.15); }
.hall-slide .btn:active { background: rgba(255,255,255,.2); }
.hall-play {
  flex-shrink: 0; height: 34px; padding: 0 14px; border-radius: 999px; border: 0;
  background: #fff; color: #111; font-size: 12px; font-weight: 800; cursor: pointer;
}
.hall-show.is-banner {
  --hall-gap: 16px;
  --hall-wide-n: 2.25;
  --hall-vis: 1;
  --hall-n: 4;
  --hall-units: calc(var(--hall-vis) - 1 + var(--hall-wide-n));
}
@media (min-width: 768px) {
  .hall-show.is-banner { --hall-vis: 2; }
}
@media (min-width: 1100px) {
  .hall-show.is-banner { --hall-vis: 3; }
}
.hall-show.is-banner.is-one { --hall-vis: 1; }
.hall-show.is-banner .hall-track {
  container-type: inline-size;
  overflow: hidden;
  scroll-snap-type: none;
  touch-action: auto;
  align-items: stretch;
  gap: var(--hall-gap);
  height: calc((100cqi - var(--hall-gap) * (var(--hall-vis) - 1)) / var(--hall-units) * 3 / 2);
}
.hall-show.is-banner .hall-slide {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: calc((100% - var(--hall-gap) * (var(--hall-vis) - 1)) / var(--hall-units));
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  scroll-snap-align: unset;
  transition: width .3s ease-in-out;
}
.hall-show.is-banner .hall-slide.is-wide {
  width: calc((100% - var(--hall-gap) * (var(--hall-vis) - 1)) * var(--hall-wide-n) / var(--hall-units));
}
.hall-show.is-banner .hall-slide.is-off { display: none; }
.hall-show.is-banner:not(.is-ready) .hall-slide:nth-child(n+4) { display: none; }
.hall-show.is-banner:not(.is-ready) .hall-slide:nth-child(3) {
  width: calc((100% - var(--hall-gap) * (var(--hall-vis) - 1)) * var(--hall-wide-n) / var(--hall-units));
}
.hall-show.is-banner.is-one .hall-slide { width: 100%; }
.hall-show.is-banner .hall-slide-art {
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  aspect-ratio: auto;
  min-height: 0;
  max-height: none;
  border-radius: var(--xn-radius-xl, 20px);
}
.hall-show.is-banner .hall-slide.is-wide .hall-slide-img {
  background-image:
    var(--hall-slide-wide-bg, var(--hall-slide-bg, none)),
    radial-gradient(ellipse 90% 70% at 72% 18%, color-mix(in srgb, #fff 26%, var(--color)), transparent 68%);
}
.hall-show.is-banner .hall-slide-copy {
  width: 100%;
  padding: 0 14px 14px;
}
.hall-show.is-banner .hall-slide-lockup {
  max-width: none;
  margin-top: 12px;
  padding-top: 12px;
  gap: 10px;
}
.hall-show.is-banner .hall-slide-ico.game-logo,
.hall-show.is-banner .hall-slide-ico { width: 44px; height: 44px; }
.hall-show.is-banner .hall-slide:not(.is-wide) .btn { display: none; }
.hall-show.is-banner .hall-slide:not(.is-wide) .hall-slide-copy em { display: none; }
.hall-show.is-banner .hall-slide.is-wide .hall-slide-grad {
  background: linear-gradient(55deg, color-mix(in srgb, var(--color) 72%, #000) 0%, transparent 52%);
  -webkit-mask-image: linear-gradient(51deg, #000 28%, transparent 56%);
  mask-image: linear-gradient(51deg, #000 28%, transparent 56%);
  -webkit-backdrop-filter: blur(40px) saturate(1.5);
  backdrop-filter: blur(40px) saturate(1.5);
}
@media (min-width: 768px) {
  .hall-show.is-banner .hall-slide-copy { padding: 0 20px 20px; }
  .hall-show.is-banner .hall-slide.is-wide .hall-slide-copy { width: min(56%, 440px); }
}
.hall-show-ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}
.hall-ind-pill {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  gap: 10px;
  height: 36px;
  width: calc(14px + (var(--hall-n, 4) - 1) * 13px + 34px + 45px + 12px);
  padding: 0 12px 0 14px;
  border-radius: 999px;
  background: var(--xn-soft-2);
}
.hall-ind-div {
  flex: 0 0 1px;
  width: 1px;
  height: 14px;
  background: var(--xn-line);
}
.hall-dots {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}
.hall-dots span {
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  margin-left: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--xn-ink) 28%, transparent);
  overflow: hidden;
  cursor: pointer;
}
.hall-dots span:first-child { margin-left: 0; }
.hall-dots span.on {
  flex-basis: 34px;
  width: 34px;
}
.hall-dots span .hall-dot-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--xn-ink);
  border-radius: inherit;
}
.hall-dots span.on .hall-dot-fill {
  animation: hall-dot-fill var(--hall-interval, 4.8s) linear forwards;
}
.hall-show.is-paused .hall-dots span.on .hall-dot-fill {
  animation-play-state: paused;
}
@keyframes hall-dot-fill {
  from { width: 0; }
  to { width: 100%; }
}
.hall-show-btn {
  flex: 0 0 36px;
  width: 36px; height: 36px; border-radius: 999px;
  border: 0;
  background: var(--xn-soft-2);
  color: var(--xn-ink);
  font-size: 18px; line-height: 1;
  cursor: pointer;
}
.hall-show-pause {
  flex: 0 0 24px;
  width: 24px; height: 24px; border: 0; border-radius: 999px;
  background: transparent; color: var(--xn-mute);
  font-size: 9px; line-height: 1; letter-spacing: .04em;
  cursor: pointer; padding: 0;
}
.hall-show.is-paused .hall-show-pause { color: var(--xn-ink); }
.hall-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--xn-cap-gap);
  margin: 0 0 var(--xn-caps-mb);
  padding: 0;
}
.hall-pills-lead,
.hall-pills-cats {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hall-pills-lead::-webkit-scrollbar,
.hall-pills-cats::-webkit-scrollbar { display: none; }
.hall-pills-cats { margin-left: auto; min-width: 0; padding-right: 4px; }
@media (min-width: 768px) {
  .hall-pills { flex-wrap: nowrap; }
  .hall-pills-lead { flex: 0 0 auto; }
  .hall-pills-cats { flex: 1 1 auto; }
}
.hall-pills a {
  flex: 0 0 auto;
}
.hall-jump {
  display: flex;
  gap: var(--xn-cap-gap);
  margin: 0 0 var(--xn-space-2);
}
.hall-jump a {
  flex: 0 0 auto;
}
@media (min-width: 768px) {
  .hall-jump { display: none; }
}
.hall-vgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
@media (min-width: 600px) {
  .hall-vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .hall-vgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
}
.hall-rank-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px 32px;
}
@media (min-width: 768px) {
  .hall-rank-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hall-rank-deck {
  --rank-n: 2;
  --rank-gap: 16px;
  display: none;
  flex: 1 1 auto;
  align-items: stretch;
  min-height: 0;
  gap: var(--rank-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.hall-rank-deck::-webkit-scrollbar { display: none; }
.hall-rank-col {
  display: none;
  flex-direction: column;
  flex: 0 0 calc((100% - (var(--rank-n) - 1) * var(--rank-gap)) / var(--rank-n));
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  height: auto;
  border: 0;
  border-radius: 20px;
  background: var(--xn-surface);
  box-shadow: none;
  overflow: hidden;
}
.hall-rank-col.is-on {
  box-shadow: none;
}
.hall-rank-col-h {
  flex-shrink: 0;
  padding: 16px 16px 8px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.hall-rank-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 10px 8px;
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
  -webkit-overflow-scrolling: touch;
}
.hall-rank-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  background: transparent;
}
.hall-rank-row {
  display: flex;
  align-items: flex-start;
  flex: 0 0 auto;
  gap: 10px;
  min-height: 64px;
  padding: 10px 8px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}
.hall-rank-row:hover { background: var(--xn-soft); }
.hall-rank-row .hall-no {
  width: 24px;
  height: 48px;
  line-height: 48px;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--xn-mute);
  text-align: center;
}
.hall-rank-ico.game-logo,
.hall-rank-ico {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
}
.hall-rank-row-txt {
  min-width: 0;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 2px;
}
.hall-rank-row-txt b {
  display: block;
  max-width: 100%;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hall-rank-row-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--xn-mute);
}
.hall-rank-heat {
  font-style: normal;
  font-weight: 650;
  color: var(--xn-mute);
}
.hall-rank-heat em {
  font-style: normal;
  font-weight: 800;
  color: var(--xn-ink);
}
.hall-rank-tags { color: var(--xn-mute); }
.hall-rank-plat {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--xn-line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  color: var(--xn-mute);
  line-height: 1;
}
.hall-rank-note {
  display: block;
  position: static;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--xn-mute);
}
.hall-rank-foot {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 48px 14px;
  font-size: 12px;
  font-weight: 650;
  color: var(--xn-mute);
}
.hall-rank-top {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--xn-line);
  border-radius: 8px;
  background: transparent;
  color: var(--xn-mute);
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: translateY(-50%);
}
.hall-rank-top:hover { background: var(--xn-soft-2); border-color: transparent; }
.hall-rank-mhint {
  display: none;
  margin: 8px 0 0;
  color: var(--xn-mute);
  font-size: 13px;
  font-weight: 650;
}
@media (max-width: 767px) {
  .hall-rank-deck { display: none !important; }
  .hall-rank-tabs { display: none; }
  .hall-rank-mhint { display: block; }
}
.hall-vcard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.hall-vcard-art {
  --color: var(--hall-slide-tone, #1c1c1e);
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--xn-radius-xl, 20px);
  overflow: hidden;
  background: var(--color);
}
.hall-vcard-art .hall-slide-img {
  background-image: var(--hall-slide-bg, none);
}
/* 没有海报的卡：主题色底 + 居中大图标，不放第三方随机图 */
.hall-vcard-art.is-plain .hall-slide-img {
  background-image: radial-gradient(ellipse 90% 70% at 72% 18%, color-mix(in srgb, #fff 22%, var(--color)), transparent 70%);
}
.hall-vcard-plain {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hall-vcard-plain .game-logo,
.hall-vcard-plain-ico {
  width: 42%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 22%;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.5);
}
.hall-vcard-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.hall-vcard-ico.game-logo,
.hall-vcard-ico { width: 40px; height: 40px; flex-shrink: 0; }
.hall-vcard-txt { min-width: 0; flex: 1; }
.hall-vcard-txt b,
.hall-vcard-txt small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hall-vcard-txt b { font-size: 14px; font-weight: 700; }
.hall-vcard-txt small { margin-top: 2px; font-size: 12px; color: var(--xn-mute); }
.hall-cats-line {
  display: flex; gap: 16px; align-items: center;
  overflow-x: auto; margin: 0 0 16px; padding: 0 0 4px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hall-cats-line::-webkit-scrollbar { display: none; }
.hall-cats-line a {
  flex: 0 0 auto;
  font-size: 15px; font-weight: 650; line-height: 44px;
  color: var(--xn-mute); text-decoration: none;
}
.hall-cats-line a.on { color: var(--xn-ink); font-weight: 800; }
.seg.hall-tags {
  display: flex;
  margin: 0 0 16px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hall-tags::-webkit-scrollbar { display: none; }
.hall-tags > a { flex: 0 0 auto; }
.hall-biz { margin: 0 0 24px; }
.hall-page { container-type: inline-size; container-name: hall; }
.hall-tile-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 8px 16px;
  min-width: 0;
}
.hall-tile {
  display: flex; align-items: center; gap: 8px;
  min-height: 56px; min-width: 0;
  overflow: hidden;
}
.hall-tile-main {
  flex: 1 1 0; min-width: 0;
  display: flex; align-items: center; gap: 10px;
  border: 0; background: none; padding: 0;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  overflow: hidden;
  text-decoration: none;
}
.hall-tile-ico.game-logo,
.hall-tile-ico { width: 44px; height: 44px; flex-shrink: 0; }
.hall-tile-txt {
  min-width: 0; flex: 1 1 0;
  overflow: hidden;
}
.hall-tile-txt b,
.hall-tile-txt small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hall-tile-txt b { font-size: 14px; font-weight: 700; }
.hall-tile-txt small {
  margin-top: 2px; font-size: 12px; color: var(--xn-mute);
}
.hall-tile .btn { flex: 0 0 auto; }
.hall-tile-main:active .game-logo { transform: scale(.9); }
.hall-no {
  flex-shrink: 0; width: 18px;
  font-size: 13px; font-weight: 800; font-style: normal;
  color: var(--xn-mute); text-align: center;
}
.hall-no.is-1 { color: #d4a017; }
.hall-no.is-2 { color: #8b8b8f; }
.hall-no.is-3 { color: #c2783c; }
.hall-boards {
  display: flex; gap: 12px;
  width: 100%; min-width: 0;
  overflow-x: auto; margin: 0 0 8px; padding: 0 0 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hall-boards::-webkit-scrollbar { display: none; }
.hall-board {
  flex: 0 0 min(300px, 86%);
  min-width: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: 16px;
  padding: 12px 10px 8px;
  background: var(--xn-surface);
  box-shadow: var(--xn-shadow);
}
.hall-board .hall-sec-head { font-size: 17px; margin-bottom: 8px; }
.hall-board.is-hot { background: linear-gradient(180deg, #fff1f2 0%, var(--xn-surface) 56px); }
.hall-board.is-sale { background: linear-gradient(180deg, #fff7ed 0%, var(--xn-surface) 56px); }
.hall-board.is-new { background: linear-gradient(180deg, #eff6ff 0%, var(--xn-surface) 56px); }
.hall-board .hall-tile { min-height: 48px; gap: 6px; }
.hall-board .hall-tile-ico.game-logo,
.hall-board .hall-tile-ico { width: 36px; height: 36px; }
.hall-board .hall-tile-main { gap: 8px; }
.hall-board .btn.sm { height: 28px; min-height: 28px; padding: 0 8px; }
html[data-theme="dark"] .hall-board.is-hot { background: linear-gradient(180deg, #3a1d22 0%, var(--xn-surface) 56px); }
html[data-theme="dark"] .hall-board.is-sale { background: linear-gradient(180deg, #3a2a18 0%, var(--xn-surface) 56px); }
html[data-theme="dark"] .hall-board.is-new { background: linear-gradient(180deg, #1a2744 0%, var(--xn-surface) 56px); }
@container hall (min-width: 720px) {
  .hall-boards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    margin: 0 0 8px;
    padding: 0;
  }
  .hall-board { flex: none; width: auto; }
}
.hall-more {
  border: 0; background: none; padding: 0;
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--xn-mute); cursor: pointer;
}
.hall-sec-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; font-size: 22px; font-weight: 800; letter-spacing: -.03em;
}
.hall-sec-head a { font-size: 12px; font-weight: 600; color: #8b8b8f; text-decoration: none; }
.hall-played-scroll {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.hall-played-scroll::-webkit-scrollbar { display: none; }
.hall-played-scroll {
  scroll-snap-type: x mandatory; scroll-padding-left: 2px;
}
.hall-played-card {
  flex: 0 0 auto; width: 76px; border: 0; background: none; padding: 0;
  cursor: pointer; font: inherit; color: inherit; text-align: center;
  scroll-snap-align: start;
  transition: transform .18s ease;
}
.hall-played-card:active { transform: scale(.94); }
.hall-played-ico {
  width: 64px; height: 64px; margin: 0 auto; border-radius: 16px;
  display: grid; place-items: center;
}
.hall-played-name {
  display: block; margin-top: 6px; font-size: 11px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hall-tabs {
  display: flex; align-items: center; gap: 10px; flex-wrap: nowrap;
  position: sticky; top: 0; z-index: 8;
  margin: 0 -16px 16px; padding: 8px 16px;
  background: var(--xn-glass);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
}
@media (min-width: 768px) {
  .hall-tabs { margin-left: -32px; margin-right: -32px; padding-left: 32px; padding-right: 32px; }
}
.hall-tabs .seg {
  display: flex; flex: 1; min-width: 0; width: auto;
  overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hall-tabs .seg::-webkit-scrollbar { display: none; }
.hall-tabs .seg > a { flex: 0 0 auto; }
.hall-view-toggle {
  margin-left: auto; display: inline-flex; gap: 2px; padding: 2px;
  border: 1px solid var(--xn-line); border-radius: 10px; background: #fff;
}
.hall-view-toggle a {
  width: 30px; height: 28px; display: grid; place-items: center;
  border-radius: 8px; text-decoration: none; color: #8b8b8f; font-size: 13px;
}
.hall-view-toggle a.on { background: var(--xn-soft); color: var(--xn-ink); font-weight: 700; }
.hall-list-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 4px;
  min-height: 72px;
  border-bottom: 0.5px solid var(--xn-line-soft);
}
.hall-list-row:last-child { border-bottom: 0; }
.hall-list-main {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px;
  border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: inherit;
}
.hall-list-ico {
  width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0;
}
.hall-list-name {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  font-size: 15px; font-weight: 700;
}
.hall-list-brief {
  display: block; margin-top: 3px; font-size: 12px; color: #8b8b8f;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hall-list-cta { flex-shrink: 0; }
.hall-block {
  background: #fff; border: 1px solid var(--xn-line);
  border-radius: 16px; padding: 14px 0 4px; overflow: hidden;
  box-shadow: var(--xn-shadow);
}
.hall-today .hall-block {
  background: transparent; border: 0; box-shadow: none; padding: 0;
  border-radius: 0;
}
.hall-today .hall-list,
.hall-today .hall-block .hall-list { background: transparent; }
html[data-theme="dark"] .chat-group-row.is-pin { background: #161618; }
.hall-block .hall-sec-head { padding: 0 14px; margin-bottom: 8px; }
.hall-block .hall-list { border: 0; box-shadow: none; background: transparent; }
.hall-block .game-grid { padding: 0 10px 10px; }
.game-tile-badge {
  position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.92); color: #c2410c;
}

.game-row {
  display: flex; align-items: center; gap: 12px; background: #fff;
  border: 1px solid var(--xn-line); border-radius: var(--xn-radius); padding: 12px; margin-bottom: 0;
  cursor: pointer; font: inherit; color: inherit; box-shadow: var(--xn-shadow);
}
.game-ico {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(145deg, #12c2a9, #2f6bff); flex-shrink: 0;
  display: grid; place-items: center;
}
.pill {
  display: inline-flex; align-items: center; height: 28px; padding: 0 10px;
  border-radius: 999px; background: #e8fff9; color: #0b8f7c; font-size: 12px; font-weight: 700;
}
.game-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
@media (min-width: 900px) {
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.game-tile {
  border: 1px solid #ebebeb; border-radius: 18px; background: #fff; overflow: hidden;
  padding: 0; cursor: pointer; text-align: left; font: inherit; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.game-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.game-tile-cover {
  height: 110px; display: grid; place-items: center; position: relative;
}
.flip-board {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.flip-cell {
  height: 72px; border: 0; border-radius: 14px; background: #f1f1f2;
  font-size: 22px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.flip-cell.open, .flip-cell.done { background: #fff7ed; }
.flip-cell.done { opacity: .75; }

/* Points exchange mall cards */
.shop-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
@media (min-width: 768px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.shop-card {
  display: block; background: #fff; border: 1px solid #ebebeb; border-radius: 16px;
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.shop-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.07); }
.shop-card-cover {
  height: 120px; display: grid; place-items: center; position: relative;
}
.shop-card-cover.coin { background: linear-gradient(145deg, #f59e0b, #ef4444); }
.shop-card-cover.phys { background: linear-gradient(145deg, #0f766e, #14b8a6); }
.shop-card-cover.gift { background: linear-gradient(145deg, #7c3aed, #a78bfa); }
.shop-card-cover.virt { background: linear-gradient(145deg, #6366f1, #8b5cf6); }
.shop-detail-cover.gift { background: linear-gradient(145deg, #7c3aed, #a78bfa); }
.shop-quick {
  width: 100%;
}
.shop-quick form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}
.shop-quick .btn { min-height: var(--xn-btn-h-lg); }
@media (max-width: 639px) {
  .shop-quick form { flex-direction: column; align-items: stretch; }
  .shop-quick .btn { width: 100%; }
}
.shop-quick label { margin-top: 0; }
.shop-orders-page .xn-row {
  flex-wrap: nowrap;
}
.shop-orders-page .xn-row .btn {
  margin-top: 0;
  min-height: 36px;
}
.od-more {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.od-more .btn { flex: 1; }
.od-hero { margin: 0 0 16px; }
.od-hero-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--xn-ink);
  line-height: 1.3;
}
.od-hero-st {
  margin-top: 4px;
  font-size: 13px;
  color: var(--xn-mute);
  font-weight: 600;
}
.od-kv .xn-row { align-items: flex-start; }
.od-kv .xn-row-sub {
  flex: 0 0 76px;
  padding-top: 2px;
}
.od-kv-v {
  text-align: right;
  font-size: 15px;
  font-weight: 600;
  word-break: break-all;
}
.od-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.od-actions .btn { flex: 1; min-height: var(--xn-btn-h-lg); }
.shop-item-head { padding: 16px; }
.shop-item-thumb {
  width: 72px; height: 72px; border-radius: 18px; flex-shrink: 0;
  display: grid; place-items: center;
}
.shop-item-thumb.coin { background: linear-gradient(145deg, #f59e0b, #ef4444); }
.shop-item-thumb.phys { background: linear-gradient(145deg, #0f766e, #14b8a6); }
.shop-item-thumb.gift { background: linear-gradient(145deg, #7c3aed, #a78bfa); }
.shop-item-thumb.virt { background: linear-gradient(145deg, #6366f1, #8b5cf6); }
.tt-input[type="email"], textarea.tt-input { resize: vertical; }
.shop-card-tag {
  position: absolute; left: 8px; top: 8px; font-size: 10px; font-weight: 800;
  background: rgba(255,255,255,.92); color: #333; border-radius: 999px; padding: 2px 8px;
}
.shop-card-body { padding: 10px 12px 12px; }
.shop-card-title { font-size: 14px; font-weight: 750; line-height: 1.35; margin-bottom: 4px; }
.shop-card-brief { font-size: 12px; color: #8b8b8f; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-card-price { font-size: 16px; font-weight: 800; color: var(--xn-ink); letter-spacing: -.02em; }
.shop-card-foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: #8b8b8f; }
.shop-detail-cover {
  height: 220px; border-radius: 20px; display: grid; place-items: center;
}
.shop-detail-cover.coin { background: linear-gradient(145deg, #f59e0b, #ef4444); }
.shop-detail-cover.phys { background: linear-gradient(145deg, #0f766e, #14b8a6); }
.shop-detail-cover.virt { background: linear-gradient(145deg, #6366f1, #8b5cf6); }
.shop-detail-cover .ico { width: 56px; height: 56px; }
.game-tile.tone-0 .game-tile-cover { background: linear-gradient(145deg, #1a1a2e, #2f6bff); }
.game-tile.tone-1 .game-tile-cover { background: linear-gradient(145deg, #0f3d3a, #12c2a9); }
.game-tile.tone-2 .game-tile-cover { background: linear-gradient(145deg, #3d2a7a, #7c6cff); }
.game-tile.tone-3 .game-tile-cover { background: linear-gradient(145deg, #4a1d1d, #ff6b4a); }
.game-tile.tone-4 .game-tile-cover { background: linear-gradient(145deg, #1d3a4a, #3ec6ff); }
.game-tile.tone-5 .game-tile-cover { background: linear-gradient(145deg, #3a2f1d, #f0b429); }
.game-tile-meta { padding: 10px 12px 12px; }
.game-tile-ico {
  width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.18);
  display: grid; place-items: center;
}

/* 游戏槽：PC 居中窗 / 全屏；挂起缩放到角上（不卸 iframe） */
.mp-layer { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
body.mp-open .mp-layer { pointer-events: auto !important; }
.mp-slot { display: none; pointer-events: none; }
.mp-slot.is-stage,
.mp-slot.is-dock { display: block; }
.mp-slot.is-stage {
  --mp-bar: 0px;
  --mp-frame-w: min(420px, calc(100vw - 24px), calc((100vh - 48px) * 720 / 1280));
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: auto;
}
.mp-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.42); backdrop-filter: blur(4px);
  pointer-events: auto;
}
.mp-window {
  --mp-bar: 0px;
  --mp-frame-w: min(420px, calc(100vw - 24px), calc((100vh - 48px) * 720 / 1280));
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: var(--mp-frame-w);
  height: calc(var(--mp-frame-w) * 1280 / 720 + var(--mp-bar));
  background: #0a0a0c; border-radius: 22px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  display: flex; flex-direction: column;
  animation: mp-in .22s ease-out;
  pointer-events: auto;
  isolation: isolate;
}
.mp-slot.is-browse .mp-window { --mp-bar: 0px; background: var(--xn-soft); }
.mp-slot.is-browse .mp-frame { background: var(--xn-soft); }
@keyframes mp-in {
  from { opacity: 0; transform: translate(-50%, -46%) scale(.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@media (max-width: 767px) {
  .mp-slot.is-stage .mp-backdrop { background: #000; backdrop-filter: none; }
  .mp-slot.is-stage .mp-window {
    left: 0; right: 0; top: 0; bottom: 0; transform: none;
    width: 100%; height: 100%;
    border-radius: 0;
    animation: none;
  }
  .mp-window-bar { padding-top: env(safe-area-inset-top); height: calc(48px + env(safe-area-inset-top)); }
}
@media (min-width: 768px) {
  /* PC 舞台只占窗口本身，侧栏/帖子/群聊露在外面能点 */
  .mp-slot.is-stage:not(.is-full) {
    inset: auto;
    left: 50%;
    top: 50%;
    width: var(--mp-frame-w);
    height: calc(var(--mp-frame-w) * 1280 / 720);
    transform: translate(-50%, -50%);
    pointer-events: auto;
  }
  .mp-slot.is-stage:not(.is-full) .mp-backdrop { display: none; }
  .mp-slot.is-stage:not(.is-full) .mp-window {
    left: 0; top: 0; right: auto; bottom: auto;
    transform: none;
    width: 100%;
    height: 100%;
    animation: mp-in-box .22s ease-out;
  }
  .mp-slot.is-stage.is-full {
    inset: 0;
    transform: none;
  }
  .mp-slot.is-stage.is-full .mp-window {
    left: 0; right: 0; top: 0; bottom: 0;
    transform: none;
    width: 100%; height: 100%;
    border-radius: 0;
    animation: none;
  }
  .mp-slot.is-stage.is-full .mp-backdrop {
    display: block;
    background: #000;
    pointer-events: auto;
  }
  .mp-slot.is-music-app.is-stage:not(.is-full) {
    width: min(1120px, calc(100vw - 64px));
    height: min(760px, calc(100vh - 40px));
  }
}
.mp-slot.is-music-app .mp-window,
.mp-slot.is-music-app .mp-frame {
  background: #fff8f3;
}
@keyframes mp-in-box {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}
.mp-window-bar, .mp-bar {
  display: flex; align-items: center; gap: 8px;
  height: var(--mp-bar, 48px); flex-shrink: 0;
  padding: 0 8px;
  background: var(--xn-glass);
  border-bottom: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
}
.mp-bar-title { flex: 1; text-align: center; font-size: 14px; font-weight: 700; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mp-bar-btn {
  width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent;
  display: grid; place-items: center; cursor: pointer; text-decoration: none; color: inherit;
}
.mp-bar-btn:hover { background: #f0f0f2; }
.mp-frame {
  flex: 1; width: 100%; min-height: 0; border: 0; background: #0a0a0c;
  position: relative; z-index: 0;
}

.mp-cap {
  display: none;
  position: absolute;
  top: calc(8px + env(safe-area-inset-top, 0px));
  right: 10px;
  z-index: 40;
  height: 32px;
  border-radius: 999px;
  overflow: hidden;
  align-items: center;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .45);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  color: #111;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .08);
  pointer-events: auto;
}
.mp-slot.is-stage:not(.is-minigame) .mp-cap { display: flex !important; }
.mp-slot.is-minigame .mp-cap,
.mp-slot.is-minigame .mp-more,
.mp-slot.is-minigame .mp-plat,
.mp-slot.is-minigame .mp-pip-face { display: none !important; }
.mp-cap-btn {
  width: 44px;
  height: 32px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #111;
  padding: 0;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}
.mp-cap-btn:hover,
.mp-cap-btn:active { background: rgba(0, 0, 0, .06); }
.mp-cap-split { width: 1px; height: 16px; background: rgba(0, 0, 0, .18); flex-shrink: 0; }
.mp-dots {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #111;
  box-shadow: -6px 0 0 #111, 6px 0 0 #111;
}
.mp-ring {
  width: 16px;
  height: 16px;
  border: 1.6px solid #111;
  border-radius: 50%;
  position: relative;
  display: block;
}
.mp-ring::after {
  content: "";
  position: absolute;
  inset: 3.4px;
  border: 1.5px solid #111;
  border-radius: 50%;
}

/* 竖胶囊把手：默认藏起，收起态才露出（2.2） */
.mp-cap-handle {
  display: none;
  width: 30px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  place-items: center;
  pointer-events: auto;
}
.mp-cap-grip {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 -7px 0 #111, 0 7px 0 #111;
}
.mp-cap.is-collapsed { padding: 0; }
.mp-cap.is-collapsed .mp-cap-btn,
.mp-cap.is-collapsed .mp-cap-split { display: none !important; }
.mp-cap.is-collapsed .mp-cap-handle { display: grid; }

/* 进入游戏：三点/关闭去掉白色药丸，只留可见描边 + 无操作淡出（2.1） */
body.mp-playing .mp-cap {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: opacity .28s ease, background .2s ease;
}
body.mp-playing .mp-cap.is-idle { opacity: .34; }
body.mp-playing .mp-cap.is-idle:hover,
body.mp-playing .mp-cap.is-idle:active { opacity: 1; }
body.mp-playing .mp-cap.is-collapsed {
  height: 44px;
  background: rgba(18, 18, 20, .3);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body.mp-playing .mp-cap-btn { color: #fff; }
body.mp-playing .mp-cap-btn:hover,
body.mp-playing .mp-cap-btn:active { background: rgba(255, 255, 255, .16); }
body.mp-playing .mp-cap-split { background: rgba(255, 255, 255, .3); }
body.mp-playing .mp-dots {
  background: #fff;
  box-shadow: -6px 0 0 #fff, 6px 0 0 #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55));
}
body.mp-playing .mp-cap-grip {
  background: #fff;
  box-shadow: 0 -7px 0 #fff, 0 7px 0 #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55));
}
body.mp-playing .mp-ring,
body.mp-playing .mp-ring::after { border-color: #fff; }
body.mp-playing .mp-ring { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55)); }

.mp-more {
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: auto;
}
.mp-more.hidden,
.mp-more[hidden] { display: none !important; }
.mp-more-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, .38);
  cursor: pointer;
}
.mp-more-card {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #111;
  border-radius: 16px 16px 0 0;
  padding: 16px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 32px rgba(0, 0, 0, .12);
  max-height: 78%;
  overflow-y: auto;
}
html[data-theme="dark"] .mp-more-card {
  background: #fff;
  color: #111;
}
.mp-more-head { padding: 2px 6px 14px; }
.mp-more-name { font-size: 17px; font-weight: 800; line-height: 1.2; }
.mp-more-sub { margin-top: 2px; font-size: 12px; color: #8b8b8f; }
.mp-more-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 6px;
  padding: 4px 0 16px;
}
.mp-more-cell {
  appearance: none;
  border: 0;
  background: transparent;
  color: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.mp-more-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f2f2f4;
  display: grid;
  place-items: center;
}
.mp-more-ico .ico { width: 22px; height: 22px; filter: none; opacity: 1; }
html[data-theme="dark"] .mp-more-ico .ico { filter: none; opacity: 1; }
.mp-more-cell.is-on .mp-more-ico { background: var(--xn-soft-2, #e8e8ed); }
.mp-more-cell em {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}
.mp-more-card .btn.block { margin-top: 4px; }
@media (max-width: 767px) {
  .js-mp-full-cell { display: none; }
}

.mp-plat {
  position: absolute;
  inset: 0;
  z-index: 45;
  background: #fff;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}
.mp-plat.hidden,
.mp-plat[hidden] { display: none !important; }
/* 游戏内群聊：就是群房间本身（头栏 × 关闭 · 消息 · 输入框），从底部推上来盖住大半个舞台，顶上留一条游戏。
   外壳自己的「群聊 / 完成」条不要——房间头栏已经有群名和关闭，双头栏很怪 */
.mp-plat.is-chat {
  inset: auto 0 0 0;
  height: min(88%, calc(100% - 44px));
  min-height: 360px;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -18px 48px rgba(0, 0, 0, .34);
  overflow: hidden;
  animation: mp-chat-up .28s cubic-bezier(.2, .8, .2, 1);
}
.mp-plat.is-chat .mp-plat-bar { display: none; }
@keyframes mp-chat-up {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.mp-plat-bar {
  flex-shrink: 0;
  height: calc(48px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 96px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: .5px solid #eee;
  background: #fff;
  color: #111;
}
.mp-plat-bar span,
.mp-plat-title {
  flex: 1;
  min-width: 0;
  font-size: 17px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mp-plat-frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #fff;
}

.mp-pip-face {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 30;
  border: 0;
  padding: 10px 8px 12px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(18, 18, 20, .18);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
}
.mp-pip-face[hidden] { display: none !important; }
.mp-pip-letter {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #2f6bff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.mp-pip-name {
  font-size: 10px;
  font-weight: 650;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,.55);
}

/* 挂起：缩放到角上，iframe 继续跑 */
.mp-slot.is-dock {
  position: fixed;
  inset: auto;
  left: auto;
  top: auto;
  transform: none;
  z-index: 61;
  width: 108px;
  height: 192px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
  pointer-events: auto;
  right: 12px;
}
.mp-slot.is-dock[data-dock="0"] { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
.mp-slot.is-dock[data-dock="1"] { bottom: calc(288px + env(safe-area-inset-bottom, 0px)); }
.mp-slot.is-dock[data-dock="2"] { top: 16px; bottom: auto; }
.mp-slot.is-dock .mp-backdrop { display: none !important; }
.mp-slot.is-dock .mp-window {
  left: 0; top: 0; right: auto; bottom: auto;
  transform: scale(calc(108 / 420));
  transform-origin: top left;
  width: 420px;
  height: 746px;
  border-radius: 0;
  animation: none;
  pointer-events: none;
}
.mp-slot.is-dock .mp-cap,
.mp-slot.is-dock .mp-more,
.mp-slot.is-dock .mp-plat { display: none !important; }
.mp-slot.is-dock .mp-pip-face { display: flex !important; }
@media (min-width: 768px) {
  .mp-slot.is-dock {
    width: 120px;
    height: 213px;
    right: 20px;
  }
  .mp-slot.is-dock .mp-window {
    transform: scale(calc(120 / 420));
    width: 420px;
    height: 746px;
  }
  .mp-slot.is-dock[data-dock="0"] { bottom: 20px; }
  .mp-slot.is-dock[data-dock="1"] { bottom: 248px; }
  .mp-slot.is-dock[data-dock="2"] { top: 20px; bottom: auto; }
}

/* 全部挂起：中间空出来；角窗收成边条，不挡帖子 / 群聊输入 */
body.mp-dock-only .mp-slot.is-dock {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--xn-glass);
  border: 1px solid rgba(255, 255, 255, .45);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
body.mp-dock-only .mp-slot.is-dock .mp-window {
  transform: scale(calc(56 / 420));
  opacity: .28;
}
body.mp-dock-only .mp-slot.is-dock .mp-pip-face {
  background: rgba(18, 18, 20, .28);
  padding: 0;
  gap: 0;
}
body.mp-dock-only .mp-slot.is-dock .mp-pip-letter {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 16px;
}
body.mp-dock-only .mp-slot.is-dock .mp-pip-name { display: none; }
body.mp-dock-only .mp-slot.is-dock[data-dock="0"] {
  top: calc(12px + env(safe-area-inset-top, 0px));
  bottom: auto;
}
body.mp-dock-only .mp-slot.is-dock[data-dock="1"] {
  top: calc(76px + env(safe-area-inset-top, 0px));
  bottom: auto;
}
body.mp-dock-only .mp-slot.is-dock[data-dock="2"] {
  top: calc(140px + env(safe-area-inset-top, 0px));
  bottom: auto;
}

body.mp-playing .float-dock,
.float-dock { display: none !important; }

/* Community Xiaohongshu */
.board-scroll, .tag-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.board-scroll::-webkit-scrollbar, .tag-scroll::-webkit-scrollbar { display: none; }
.board-chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  height: var(--xn-btn-h); padding: 0 12px; border-radius: var(--xn-radius-pill); background: #fff;
  border: 1px solid var(--xn-line); font-size: 13px; font-weight: 600; color: var(--xn-ink);
  text-decoration: none; box-shadow: var(--xn-shadow);
}
.board-chip.on { background: var(--xn-ink); color: #fff; border-color: var(--xn-ink); box-shadow: none; }
.board-chip-ico {
  width: 22px; height: 22px; border-radius: var(--xn-radius-xs); background: var(--xn-soft-2);
  display: grid; place-items: center;
}
.board-chip.on .board-chip-ico { background: rgba(255,255,255,.16); }
.tag-chip {
  flex-shrink: 0; height: 30px; padding: 0 12px; border-radius: var(--xn-radius-pill);
  background: var(--xn-soft-2); color: #3c3c43; font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; text-decoration: none; border: 1px solid transparent;
}
.tag-chip.on {
  background: var(--xn-brand-soft); color: var(--xn-brand);
  border-color: rgba(47, 107, 255, .18);
}
.xhs-feed {
  columns: 2; column-gap: 10px;
}
@media (min-width: 900px) { .xhs-feed { columns: 3; } }
@media (min-width: 1200px) { .xhs-feed { columns: 4; } }
.xhs-card {
  break-inside: avoid; display: block; margin-bottom: 10px;
  background: #fff; border: 1px solid var(--xn-line); border-radius: var(--xn-radius); overflow: hidden;
  text-decoration: none; color: inherit; box-shadow: var(--xn-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.xhs-card:hover { transform: translateY(-2px); box-shadow: var(--xn-shadow-hover); }
.xhs-cover {
  height: 120px; position: relative;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.xhs-card.tone-0 .xhs-cover { background-color: #ff9eb5; background-image: linear-gradient(160deg, #ffd6e7, #ff9eb5); }
.xhs-card.tone-1 .xhs-cover { background-color: #7ad7ff; background-image: linear-gradient(160deg, #d6f5ff, #7ad7ff); }
.xhs-card.tone-2 .xhs-cover { background-color: #8fef9a; background-image: linear-gradient(160deg, #e8ffe8, #8fef9a); }
.xhs-card.tone-3 .xhs-cover { background-color: #ffc56d; background-image: linear-gradient(160deg, #fff1d6, #ffc56d); }
.xhs-card.tone-4 .xhs-cover { background-color: #b39cff; background-image: linear-gradient(160deg, #efe6ff, #b39cff); }
.xhs-card.tone-5 .xhs-cover { background-color: #6fe0c8; background-image: linear-gradient(160deg, #e6fff8, #6fe0c8); }
.xhs-cover-tag {
  position: absolute; left: 8px; top: 8px; font-size: 10px; font-weight: 700;
  background: rgba(0,0,0,.45); color: #fff; border-radius: 999px; padding: 3px 8px;
}
.xhs-cover-badge {
  position: absolute; right: 8px; top: 8px; font-size: 10px; font-weight: 700;
  background: #f59e0b; color: #fff; border-radius: 999px; padding: 3px 8px;
}
.xhs-pending-dot {
  display: inline-block; font-size: 10px; font-weight: 700; color: #b45309;
  background: #fef3c7; border-radius: 999px; padding: 1px 6px; vertical-align: 2px;
}
.xhs-card.is-pending { opacity: .92; }
.xhs-body { padding: 10px 11px 12px; }
.xhs-title { font-size: 14px; font-weight: 700; line-height: 1.35; margin-bottom: 4px; }
.xhs-excerpt { font-size: 12px; color: #8b8b8f; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xhs-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; font-size: 11px; color: #8b8b8f; }
.xhs-user { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; }
.xhs-ava {
  width: 18px; height: 18px; border-radius: 50%; background: #dbeafe; color: #1d4ed8;
  display: inline-grid; place-items: center; font-size: 10px; font-weight: 700; flex-shrink: 0;
  overflow: hidden;
}
.xhs-ava.has-img { background: #e5e5ea; }
.xhs-ava.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xhs-ava-sm { width: 28px; height: 28px; font-size: 11px; }
.xhs-ava-md { width: 32px; height: 32px; font-size: 12px; }
.xhs-ava-lg { width: 36px; height: 36px; font-size: 14px; }
.xhs-stats { display: inline-flex; align-items: center; white-space: nowrap; }
.xhs-detail { background: var(--xn-surface); border: 1px solid var(--xn-line); border-radius: 20px; overflow: hidden; margin-bottom: 12px; }
.xhs-detail-cover { height: 140px; }
.xhs-detail.tone-0 .xhs-detail-cover { background: linear-gradient(160deg, #ffd6e7, #ff9eb5); }
.xhs-detail.tone-1 .xhs-detail-cover { background: linear-gradient(160deg, #d6f5ff, #7ad7ff); }
.xhs-detail.tone-2 .xhs-detail-cover { background: linear-gradient(160deg, #e8ffe8, #8fef9a); }
.xhs-detail.tone-3 .xhs-detail-cover { background: linear-gradient(160deg, #fff1d6, #ffc56d); }
.xhs-detail.tone-4 .xhs-detail-cover { background: linear-gradient(160deg, #efe6ff, #b39cff); }
.xhs-detail.tone-5 .xhs-detail-cover { background: linear-gradient(160deg, #e6fff8, #6fe0c8); }

.emoji-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.emoji-btn {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid #ebebeb;
  background: #fff; font-size: 18px; cursor: pointer; line-height: 1;
  display: inline-grid; place-items: center; padding: 0;
}
.emoji-btn:hover, .emoji-btn.on { background: #f7f7f8; }
.expr-wrap { margin: 4px 0 0; }
.expr-panel {
  margin-top: 6px; border: 1px solid #ebebeb; border-radius: 14px;
  background: #fafafa; overflow: hidden;
}
.expr-panel.hidden { display: none; }
.expr-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; font-size: 12px; font-weight: 650; border-bottom: 1px solid #ebebeb;
  background: #fff;
}
.expr-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 4px; max-height: 180px; overflow: auto; padding: 8px;
}
.expr-cell {
  width: 100%; aspect-ratio: 1; border: 0; border-radius: 10px;
  background: #fff; cursor: pointer; padding: 4px;
  display: grid; place-items: center;
}
.expr-cell:hover { background: #eef2ff; }
.expr-cell img { width: 36px; height: 36px; object-fit: contain; display: block; }
.expr-img {
  width: 28px; height: 28px; object-fit: contain;
  display: inline-block; vertical-align: -6px; margin: 0 1px;
}
.chat-bubble-msg .expr-img { width: 36px; height: 36px; vertical-align: -8px; }
.thread-body .expr-img { width: 32px; height: 32px; }
.thread-body .post-img {
  display: block; max-width: 100%; max-height: 420px; margin: 10px 0;
  border-radius: 12px; border: 1px solid #ebebeb; object-fit: contain; background: #f7f7f8;
}
.thread-body .post-img-link { display: inline-block; max-width: 100%; }
.media-embed {
  position: relative; margin: 10px 0; border-radius: 12px; overflow: hidden;
  background: #0b0b0c; aspect-ratio: 16 / 9; max-width: 100%;
}
.media-embed iframe, .media-embed video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.media-embed.is-file { position: relative; aspect-ratio: 16 / 9; }
.media-open {
  display: inline-block; margin: 6px 0 10px; font-size: 12px; font-weight: 650;
  color: var(--xn-brand); text-decoration: none;
}
.media-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 10px 0; padding: 12px 14px; border-radius: 12px;
  background: var(--xn-soft); border: 1px solid var(--xn-line);
  text-decoration: none; color: inherit; min-height: 44px;
}
.media-card-lab { font-size: 14px; font-weight: 700; }
.box-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 10px; border-bottom: 1px solid var(--xn-line);
}
.box-row:last-child { border-bottom: 0; }
.box-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.box-tags span {
  font-size: 11px; font-weight: 650; padding: 2px 8px; border-radius: 999px;
  background: var(--xn-soft-2, #f0f0f2); color: var(--xn-ink);
}
.box-lifts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
/* Compose + TipTap mini */
.compose-card label.compose-field,
.compose-card .compose-field { margin: 0 0 12px; }
.compose-card .compose-field > span {
  display: block; font-size: 12px; font-weight: 600; color: var(--xn-mute);
  letter-spacing: .01em; margin-bottom: 6px;
}
.compose-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px;
}
.compose-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 16px; }
.compose-actions .btn.ghost { align-self: center; }
.compose-head-acts {
  display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0;
}
.compose-dest { margin: 14px 0 4px; }
.compose-dest-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.compose-game-chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
}
.compose-game-chip .compose-game-ico,
.compose-game-chip .game-logo {
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
}
.compose-boards {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px;
}
.compose-boards.is-off { display: none; }
.compose-board {
  appearance: none; border: 0; background: var(--xn-soft-2, #f0f0f2);
  color: var(--xn-ink); font: inherit; font-size: 13px; font-weight: 600;
  height: 32px; padding: 0 12px; border-radius: 999px; cursor: pointer;
}
.compose-board.on { background: var(--xn-ink); color: #fff; }
.compose-hint { margin: 8px 0 0; font-size: 12px; color: var(--xn-mute); }
.compose-sheet-h {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin: 0 0 12px;
}
.compose-sheet-h b { font-size: 17px; font-weight: 700; }
.compose-pick-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.compose-pick-row {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 0; border-radius: 14px;
  background: #fff; text-align: left; font: inherit; cursor: pointer;
}
.compose-pick-row.is-on { background: var(--xn-soft-2, #f0f0f2); }
.compose-pick-ico, .compose-pick-row .game-logo {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
}
.compose-pick-none {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--xn-soft-2, #f0f0f2); font-size: 11px; font-weight: 700; color: var(--xn-mute);
}
.compose-draft-list { display: flex; flex-direction: column; gap: 8px; }
.compose-draft-card {
  display: flex; align-items: stretch; gap: 6px;
  border: 1px solid var(--xn-line); border-radius: 14px; background: #fff; overflow: hidden;
}
.compose-draft-main {
  flex: 1; min-width: 0; border: 0; background: transparent;
  text-align: left; font: inherit; padding: 12px; cursor: pointer;
}
.compose-draft-main b { display: block; font-size: 15px; font-weight: 650; }
.compose-draft-main i, .compose-draft-main em {
  display: block; font-style: normal; font-size: 12px; color: var(--xn-mute);
  margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.compose-draft-del { display: flex; align-items: center; padding: 0 6px 0 0; }
html[data-theme="dark"] .compose-pick-row,
html[data-theme="dark"] .compose-draft-card { background: #1c1c1e; }
html[data-theme="dark"] .compose-board.on { background: #fff; color: #111; }
.compose-reply-seg { display: flex; width: 100%; }
.compose-reply-seg > label { flex: 1; position: relative; }
.compose-reply-seg > label input {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.thread-dock-off {
  text-align: center; font-size: 13px; color: var(--xn-mute); padding: 10px 0 4px;
}
.compose-actions .btn.lg,
.compose-actions .btn.block { height: var(--xn-btn-h-lg); min-height: var(--xn-btn-h-lg); font-size: 15px; border-radius: var(--xn-radius); }
/* TipTap Simple Editor 风格 */
.xn-editor {
  border: 1px solid var(--xn-line); border-radius: var(--xn-radius); overflow: hidden; background: #fff;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: var(--xn-shadow);
}
.xn-editor.is-drag {
  border-color: #94a3b8; box-shadow: var(--xn-focus);
}
.xn-ed-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
  padding: 6px 8px; border-bottom: 1px solid var(--xn-line-soft); background: #fff;
}
.xn-ed-size { display: inline-flex; align-items: center; gap: 0; }
.xn-ed-table-ops { display: inline-flex; align-items: center; gap: 2px; }
.xn-ed-table-ops.is-hidden { display: none; }
.xn-ed-sep {
  width: 1px; height: 16px; background: #e8e8e8; margin: 0 6px; flex-shrink: 0;
}
.xn-ed-btn {
  appearance: none; border: 1px solid transparent; background: transparent; color: var(--xn-ink);
  width: 32px; height: 32px; border-radius: var(--xn-radius-xs); cursor: pointer;
  display: inline-grid; place-items: center; padding: 0;
  transition: background .12s, color .12s, opacity .12s, border-color .12s;
}
.xn-ed-btn:hover { background: var(--xn-soft); }
.xn-ed-btn.is-on { background: var(--xn-soft-2); color: var(--xn-ink); border-color: var(--xn-line); }
.xn-ed-btn.is-disabled { opacity: .35; pointer-events: none; }
.xn-ed-btn.xn-ed-danger:hover { background: #fef2f2; color: var(--xn-danger); }
.xn-ed-btn.xn-ed-add { color: #333; }
.compose-card .xn-ed-btn[data-xn-cmd="undo"],
.compose-card .xn-ed-btn[data-xn-cmd="redo"],
.compose-card .xn-ed-size,
.compose-card .xn-ed-btn[data-xn-cmd="table"],
.compose-card .xn-ed-table-ops { display: none !important; }
.xn-ed-ico { display: block; }
.xn-ed-a {
  font-size: 13px; font-weight: 700; font-family: ui-sans-serif, system-ui, sans-serif;
  line-height: 1;
}
.xn-ed-a sup { font-size: 9px; font-weight: 700; }
.xn-ed-status {
  margin-left: auto; min-width: 1em; font-size: 12px; color: #a1a1aa;
  padding: 0 4px;
}
.xn-ed-status.is-ok { color: #16a34a; }
.xn-ed-status.is-err { color: #dc2626; }
.xn-ed-mount { min-height: 200px; position: relative; background: #fff; }
.xn-ed-loading {
  padding: 36px 14px; color: #d4d4d8; font-size: 18px; letter-spacing: .25em; text-align: center;
}
.xn-ed-mount .ProseMirror {
  min-height: 200px; padding: 20px 18px 48px; outline: none;
  font-size: 16px; line-height: 1.7; color: #1a1a1a;
}
.xn-ed-mount .ProseMirror p { margin: 0 0 0.7em; }
.xn-ed-mount .ProseMirror ul {
  padding-left: 1.35rem; margin: 0.4em 0 0.7em; list-style: disc;
}
.xn-ed-mount .ProseMirror s { text-decoration: line-through; opacity: .85; }
.xn-ed-mount .ProseMirror u { text-underline-offset: 2px; }
.xn-ed-mount .ProseMirror img {
  max-width: 100%; max-height: 300px; border-radius: 8px; margin: 0.6em 0;
  display: block; border: 1px solid #eee;
}
.xn-ed-mount .ProseMirror table {
  width: 100%; border-collapse: collapse; margin: 0.75em 0; table-layout: fixed; font-size: 14px;
}
.xn-ed-mount .ProseMirror th,
.xn-ed-mount .ProseMirror td {
  border: 1px solid #e5e5e5; padding: 8px 10px; vertical-align: top; min-width: 48px;
}
.xn-ed-mount .ProseMirror th { background: #fafafa; font-weight: 600; }
.xn-ed-mount .ProseMirror .selectedCell { background: #f0f0f0; }
.xn-ed-mount .ProseMirror p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  float: left; color: #bdbdbd; pointer-events: none; height: 0;
}
.compose-card .expr-wrap { margin-top: 10px; }
.compose-card .emoji-bar { margin-top: 6px; }
.thread-body { white-space: pre-wrap; word-break: break-word; }
.thread-body .post-table-wrap { overflow-x: auto; margin: 10px 0; white-space: normal; }
.thread-body .post-table {
  width: 100%; border-collapse: collapse; font-size: 13px; background: #fff;
}
.thread-body .post-table th,
.thread-body .post-table td {
  border: 1px solid #e5e5ea; padding: 8px 10px; text-align: left; vertical-align: top;
}
.thread-body .post-table th { background: #f5f5f7; font-weight: 600; }
.floor-quote {
  background: var(--xn-soft); border-radius: 10px; padding: 8px 10px;
  font-size: 12px; color: var(--xn-mute); line-height: 1.45; margin: 0 0 8px;
}
.floor-quote b { color: var(--xn-ink); font-weight: 650; margin-right: 6px; }
.floor-head { margin: 20px 0 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.floor-empty { font-size: 13px; color: var(--xn-mute); padding: 8px 0 16px; }
.floor-list { display: flex; flex-direction: column; gap: 12px; }
.floor {
  background: #fff; border: 1px solid var(--xn-line); border-radius: 16px;
  padding: 12px 14px;
}
.floor-user { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.floor-kids {
  margin: 10px 0 0 8px; padding: 2px 0 0 12px;
  border-left: 2px solid var(--xn-line-soft);
}
.floor-kid { padding: 10px 0; }
.floor-kid + .floor-kid { border-top: 1px solid var(--xn-line-soft); }
.floor-main, .floor-kid { position: relative; }
.floor.is-god, .floor-kid.is-god { overflow: hidden; }
.god-like-form { margin: 0; }
.god-like-n {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--xn-mute); white-space: nowrap;
}
.god-stamp {
  position: absolute; right: 4px; top: 36px;
  width: 68px; height: 68px; border-radius: 50%;
  border: 2px solid rgba(232, 80, 90, .45);
  color: rgba(232, 80, 90, .5);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform: rotate(-14deg); pointer-events: none; z-index: 1;
  font-weight: 800; letter-spacing: .06em; line-height: 1.15; text-align: center;
}
.god-stamp b { font-size: 13px; }
.god-stamp i { font-size: 9px; font-style: normal; font-weight: 700; opacity: .9; }
.floor-main .thread-body, .floor-kid .thread-body { padding-right: 0; }
.floor.is-god .floor-main > .thread-body,
.floor-kid.is-god > .thread-body { padding-right: 56px; }
.god-expert-badge, .god-judge-badge, .role-badge {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  border-radius: 999px; font-size: 10px; font-weight: 700; line-height: 16px;
  vertical-align: middle; letter-spacing: .02em;
}
.god-expert-badge { background: #f3e8ff; color: #6d28d9; }
.god-judge-badge { background: #fff4d6; color: #9a6700; }
.role-badge.is-op { background: #fff1e6; color: #c2410c; }
.role-badge.is-owner { background: #e8f1ff; color: #1d4ed8; }
.role-badge.is-admin { background: #e8f7ef; color: #047857; }
.god-feed { margin: 10px 0 2px; }
.god-feed-card {
  position: relative; display: block; overflow: hidden;
  padding: 12px 14px; border-radius: 14px;
  background: var(--xn-surface); border: 1px solid var(--xn-line);
  text-decoration: none; color: inherit;
}
.god-feed-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.god-feed-name { font-size: 13px; font-weight: 650; }
.god-feed-likes {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--xn-mute); white-space: nowrap;
}
.god-feed-txt {
  display: block; font-size: 14px; line-height: 1.45; color: var(--xn-ink);
  padding-right: 56px; text-decoration: none;
}
.god-feed-card .god-stamp { top: 18px; right: 10px; }
.god-judge-lead { font-size: 15px; color: var(--xn-ink); margin: 0 0 8px; }
.god-judge-meta { font-size: 12px; color: var(--xn-mute); margin: 0 0 16px; line-height: 1.5; }
.god-judge-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center;
}
.god-judge-stats:has(.god-stat:nth-child(4)) { grid-template-columns: repeat(4, 1fr); }
.god-stat b { display: block; font-size: 16px; }
.god-stat span { font-size: 11px; color: var(--xn-mute); }
.god-quiz-item { border: 0; }
.god-quiz-q { font-size: 15px; font-weight: 650; margin-bottom: 8px; padding: 0; }
.god-quiz-opt {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 0; min-height: 44px; cursor: pointer; font-size: 14px;
}
.god-quiz-opt + .god-quiz-opt { border-top: 1px solid var(--xn-line-soft); }
.god-quiz-opt input { margin-top: 4px; }
.god-cand-list { display: flex; flex-direction: column; gap: 12px; }
.god-cand-txt { font-size: 15px; line-height: 1.5; margin: 8px 0 12px; }
.god-cand-acts { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
html[data-theme="dark"] .god-expert-badge { background: #3b2760; color: #e9d5ff; }
html[data-theme="dark"] .god-judge-badge { background: #3d3416; color: #fde68a; }
html[data-theme="dark"] .role-badge.is-op { background: #3d2a16; color: #fdba74; }
html[data-theme="dark"] .role-badge.is-owner { background: #1e3a5f; color: #93c5fd; }
html[data-theme="dark"] .role-badge.is-admin { background: #16382c; color: #6ee7b7; }
html[data-theme="dark"] .god-stamp { border-color: rgba(248, 113, 113, .45); color: rgba(248, 113, 113, .55); }
html[data-theme="dark"] .god-feed-card { background: var(--xn-soft-2, #1c1c1e); }
.floor-at { font-weight: 500; color: var(--xn-mute); margin: 0 2px; }
.floor-at-name { font-weight: 650; color: var(--xn-ink); }
.floor[id], .floor-kid[id] { scroll-margin-top: 72px; }
.floor-slot:empty { display: none; }
.floor-slot { margin-top: 8px; }
.floor-composer.is-inline {
  padding: 8px; border-radius: 12px; background: var(--xn-soft);
  border: 1px solid var(--xn-line);
}
.floor-composer.is-inline .chat-expr-float { left: 0; right: 0; }
.thread-dock.is-empty { display: none; }
.floor-hint {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 8px; padding: 8px 10px;
  background: var(--xn-brand-soft); border-radius: 10px;
  font-size: 13px; font-weight: 650; color: var(--xn-brand);
}
.floor-hint.hidden { display: none; }
.floor-hint-x {
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; font-size: 18px; color: inherit;
}
.thread-page {
  padding: 12px 16px 0;
}
.thread-page > .page-head { margin-top: 0; }
.thread-dock {
  position: sticky; bottom: 0; z-index: 8;
  margin: 12px -16px 0;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--xn-glass);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  border-top: 1px solid var(--xn-line);
}
.thread-dock-row {
  display: flex; align-items: flex-end; gap: 8px;
}
.thread-dock-expr {
  width: 36px; height: 36px; flex-shrink: 0;
  border: 0; border-radius: 50%;
  background: var(--xn-soft-2); color: var(--xn-ink);
  display: grid; place-items: center; cursor: pointer; padding: 0;
  font-size: 18px; line-height: 1;
}
.thread-dock-expr.on { background: var(--xn-ink); color: #fff; }
.thread-dock textarea {
  flex: 1; min-width: 0; min-height: 36px; max-height: 120px;
  margin: 0; padding: 8px 12px; resize: none;
  border-radius: 18px; border: 1px solid var(--xn-line);
  background: #fff; font: inherit; font-size: 15px; line-height: 1.35;
}
html[data-theme="dark"] .thread-dock textarea { background: #1c1c1e; color: var(--xn-ink); }
.thread-dock .btn { flex-shrink: 0; height: 36px; min-height: 36px; padding: 0 14px; }
.thread-dock .floor-hint { margin-bottom: 8px; }
.thread-dock .thread-dock-cta { width: 100%; justify-content: center; }
.thread-dock .chat-expr-float { left: 8px; right: 8px; }
.xn-editor textarea {
  width: 100%; border: 0; border-radius: 0; resize: vertical; min-height: 160px;
  padding: 12px; box-shadow: none;
}
@media (max-width: 420px) {
  .compose-meta { grid-template-columns: 1fr; }
}

/* Profile (Doubao-like) */
.profile-hero {
  text-align: center; padding: 28px 16px 18px;
  background: #fff; border: 1px solid var(--xn-line); border-radius: var(--xn-radius-lg);
  margin-bottom: 12px; box-shadow: var(--xn-shadow);
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 10px;
  background: #dbeafe; color: #1d4ed8; display: grid; place-items: center;
  font-size: 28px; font-weight: 700;
}
.profile-block {
  background: #fff; border: 1px solid var(--xn-line); border-radius: var(--xn-radius);
  overflow: hidden; margin-bottom: 12px; box-shadow: var(--xn-shadow);
}
.profile-row {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  border-bottom: 1px solid var(--xn-line-soft); text-decoration: none; color: inherit;
}
.profile-row:last-child { border-bottom: 0; }
.profile-row .grow { flex: 1; font-size: 15px; }
.profile-row .right { color: #8b8b8f; font-size: 13px; }

/* Chat */
#content:has(.chat-room) {
  display: flex; flex-direction: column;
  padding: 0;
  overflow: hidden;
  min-height: 0;
}
#content.has-capsule:has(.chat-room) {
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 768px) {
  #content.has-capsule:has(.chat-room) { padding-bottom: 0; }
}
#content:has(.chat-room) > .mb-3 {
  margin: 8px 16px 0; flex: 0 0 auto;
}
#content:has(.chat-info-page) { padding-top: 0; }
#content { min-width: 0; }
#content:has(.circ-home),
#content:has(.hall-page),
#content:has(.mk-page),
#content:has(.thread-page),
#content:has(.circ-page),
#content:has(.circ-all),
#content:has(.msg-hub),
#content:has(.chat-hub),
#content:has(.shop-page),
#content:has(.shop-orders-page),
#content:has(.app-box),
#content:has(.my-games-page),
#content:has(.acc-page),
#content:has(.partner-page),
#content:has(.wf-page) {
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
}
#content:has(.thread-page) { padding-bottom: 0; }
.chat-room {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
}
.chat-list {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; gap: 12px;
  overflow-y: auto; overflow-x: hidden;
  padding: 8px 16px 16px;
  -webkit-overflow-scrolling: touch;
}
.chat-msg { display: flex; gap: 10px; max-width: 92%; }
.chat-msg.me { align-self: flex-end; flex-direction: row-reverse; }
.chat-ava {
  width: 36px; height: 36px; border-radius: 6px; background: var(--xn-brand-soft); color: var(--xn-brand);
  display: grid; place-items: center; font-size: 12px; font-weight: 700; flex-shrink: 0; overflow: hidden;
}
.chat-ava.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-bubble-msg {
  background: var(--xn-surface); border: 1px solid var(--xn-line); border-radius: 16px; padding: 10px 12px; font-size: 14px;
}
.chat-msg.me .chat-bubble-msg { background: var(--xn-brand-soft); border-color: var(--xn-brand-soft); }
.chat-bubble-msg.is-recalled {
  background: transparent; border: 0; color: var(--xn-mute); font-size: 12px; padding: 4px 0;
}
.chat-msg.me .chat-bubble-msg.is-recalled { background: transparent; }
.chat-bubble-msg .post-img {
  display: block; max-width: 180px; max-height: 240px; border-radius: 12px;
  margin: 4px 0; object-fit: cover;
}
.chat-quote {
  font-size: 12px; color: var(--xn-mute); border-left: 2px solid var(--xn-brand);
  padding: 4px 8px; margin: 0 0 6px; background: rgba(0,0,0,.04); border-radius: 0 8px 8px 0;
}
.chat-at { color: var(--xn-brand); font-weight: 650; }
.chat-trans {
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--xn-line-soft);
  font-size: 13px; color: var(--xn-mute);
}
.chat-img-gone { font-size: 12px; color: var(--xn-mute); }
.chat-quote-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; margin-bottom: 6px;
  background: var(--xn-soft-2); border-radius: 10px; font-size: 12px; color: var(--xn-mute);
}
.chat-quote-bar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-at-list {
  position: absolute; left: 12px; right: 12px; bottom: 100%;
  max-height: 180px; overflow: auto; z-index: 12;
  background: var(--xn-glass); backdrop-filter: blur(var(--xn-blur));
  border: 1px solid var(--xn-line); border-radius: 12px;
  box-shadow: 0 -8px 24px rgba(0,0,0,.08);
}
.chat-at-list button {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 12px; font: inherit; font-size: 15px; min-height: 44px; cursor: pointer;
}
.chat-at-list button:hover { background: var(--xn-soft); }
#chat-msg-sheet { z-index: 62; }
.chat-meta { font-size: 11px; color: var(--xn-mute); margin-bottom: 4px; }
.chat-sys {
  align-self: center; max-width: 90%; text-align: center;
  font-size: 12px; color: var(--xn-mute); padding: 4px 12px;
}
.chat-notice {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 12px; border-radius: 0 0 12px 12px; font-size: 13px;
}
.chat-notice-lab {
  flex-shrink: 0; font-size: 12px; font-weight: 700; padding: 2px 8px;
  border-radius: 4px; background: var(--xn-warn); color: #fff;
}
.chat-composer {
  flex: 0 0 auto;
  position: relative;
  z-index: 9;
  background: var(--xn-glass);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--xn-line);
}
.chat-composer-form { margin: 0; position: relative; }
.chat-composer-row { display: flex; align-items: center; gap: 6px; }
.chat-server-tag { width: 64px; flex-shrink: 0; font-size: 13px; }
.chat-ico-btn {
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--xn-soft-2); display: grid; place-items: center;
  flex-shrink: 0; cursor: pointer; padding: 0; color: var(--xn-ink);
}
.chat-ico-btn.on { background: var(--xn-ink); }
.chat-ico-btn.on .ico { filter: invert(1); }
.chat-ico-btn.is-hb { background: #fde8e6; }
.chat-ico-btn .ico { width: 20px; height: 20px; }
.chat-input-wrap { position: relative; min-width: 0; }
.chat-input {
  width: 100%; height: 40px; border-radius: 20px; border: 1px solid var(--xn-line);
  padding: 0 16px; background: #fff; font: inherit;
}
.chat-hold-talk {
  width: 100%; height: 40px; border-radius: 20px; border: 0;
  background: var(--xn-soft-2); font: inherit; font-weight: 650; cursor: pointer;
  user-select: none; -webkit-user-select: none; touch-action: none;
  -webkit-touch-callout: none;
}
.chat-hold-talk.is-rec { background: var(--xn-ink); color: #fff; }
.chat-biz-row {
  display: flex; align-items: center; gap: 8px;
  overflow-x: auto; padding: 8px 0 2px;
  -webkit-overflow-scrolling: touch;
}
.chat-biz-cell {
  flex: 0 0 auto; min-width: 56px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 6px; border: 0; border-radius: 12px;
  background: transparent; color: inherit; text-decoration: none;
  font: inherit; cursor: pointer;
}
.chat-biz-cell em { font-style: normal; font-size: 11px; font-weight: 650; }
.chat-biz-cell.is-off { opacity: .4; cursor: default; }
.chat-biz-cell .ico { width: 22px; height: 22px; }
.chat-expr-float {
  position: absolute; left: 8px; right: 8px; bottom: 100%;
  z-index: 10; margin: 0;
  height: min(46vh, 360px);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background: var(--xn-glass);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 -12px 40px rgba(0,0,0,.14);
}
.chat-expr-float.hidden { display: none; }
.chat-expr-float .expr-wrap { margin: 0; height: 100%; }
.expr-sheet {
  height: 100%; display: flex; flex-direction: column; min-height: 0;
}
.expr-sheet-pane { flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; }
.expr-sheet .expr-grid {
  max-height: none; height: auto;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 6px; padding: 10px;
}
.expr-sheet .expr-grid-emoji { grid-template-columns: repeat(8, 1fr); }
.expr-sheet .emoji-btn {
  width: 100%; height: 44px; border: 0; background: transparent; font-size: 26px;
}
.expr-sheet .expr-cell { background: transparent; }
.expr-sheet .expr-cell img { width: 44px; height: 44px; }
.expr-sheet-tabs {
  flex: 0 0 auto; display: flex; gap: 4px; padding: 6px 10px;
  border-top: 1px solid var(--xn-line-soft);
  background: rgba(255,255,255,.55);
}
.expr-sheet-tabs button {
  width: 40px; height: 36px; border: 0; border-radius: 10px;
  background: transparent; font: inherit; font-size: 16px; cursor: pointer;
}
.expr-sheet-tabs button.on { background: var(--xn-soft-2); }
.chat-voice-mask {
  position: absolute; left: 0; right: 0; bottom: 100%;
  z-index: 11; padding: 24px 16px 16px; text-align: center;
  pointer-events: none;
}
.chat-voice-mask.hidden { display: none; }
.chat-voice-hint {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  background: rgba(28,28,30,.78); color: #fff; font-size: 13px; font-weight: 650;
}
.chat-voice {
  display: inline-flex; align-items: center; gap: 8px;
  min-width: 88px; height: 36px; padding: 0 12px;
  border: 0; border-radius: 18px; cursor: pointer;
  background: var(--xn-brand-soft); color: var(--xn-ink);
  font: inherit; font-size: 14px; font-weight: 650;
}
.chat-msg.me .chat-voice { background: #d6e6ff; }
.chat-voice.is-play { opacity: .75; }
.chat-voice.is-gone {
  background: var(--xn-soft-2); color: var(--xn-mute); cursor: default;
}
.chat-voice-ico { font-size: 12px; }
html[data-theme="dark"] .expr-sheet-tabs { background: rgba(28,28,30,.72); }
html[data-theme="dark"] .chat-expr-float { border-color: #3a3a3c; }
.chat-card.kind-hongbao {
  background: #c4473a; color: #fff; border: 0; max-width: 240px;
  width: 100%; text-align: left; font: inherit; cursor: pointer;
}
.chat-card.kind-hongbao .chat-card-k,
.chat-card.kind-hongbao .chat-card-sum { color: rgba(255,255,255,.78); border-left-color: #fff; }
.chat-card.kind-hongbao .chat-card-game { color: #fff; }
.chat-card.kind-hongbao.is-done { opacity: .75; cursor: default; }
.chat-card-cover.is-hb { background: rgba(255,255,255,.2); color: #fff; }
.chat-hb-head {
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  margin-bottom: 12px;
}
.chat-hb-head .font-bold { text-align: center; font-size: 17px; }
.chat-hb-head-sp { display: block; }
.chat-hb-list {
  background: #fff; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--xn-line);
}
.chat-hb-row {
  display: flex; align-items: center; gap: 8px; min-height: 48px;
  padding: 6px 12px; border-bottom: 1px solid var(--xn-line-soft);
}
.chat-hb-row:last-child { border-bottom: 0; }
.chat-hb-row b { font-size: 15px; font-weight: 600; flex-shrink: 0; width: 72px; }
.chat-hb-row input,
.chat-hb-sel,
.chat-hb-cmd-line input {
  width: auto; flex: 1; min-width: 0;
  border: 1px solid #c8c8cc; background-color: var(--xn-soft-2);
  border-radius: 10px; font: inherit; font-size: 16px;
  outline: none; padding: 8px 10px; min-height: 40px; color: var(--xn-ink);
  box-shadow: none;
}
.chat-hb-row input,
.chat-hb-sel { text-align: right; }
.chat-hb-row input.chat-hb-search { text-align: left; }
.chat-hb-sel {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b8b8f' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.chat-hb-row input:focus,
.chat-hb-sel:focus,
.chat-hb-cmd-line input:focus {
  border-color: rgba(47, 107, 255, .45);
  box-shadow: var(--xn-focus);
  background-color: #fff;
}
.chat-hb-unit { color: var(--xn-mute); font-size: 15px; flex-shrink: 0; }
.chat-hb-amt { margin-left: auto; font-size: 16px; font-weight: 650; }
.chat-hb-sub { font-size: 12px; color: var(--xn-mute); margin: 6px 4px 10px; }
.chat-hb-cmd {
  margin-top: 12px; padding: 12px; border-radius: 14px; background: #fff;
  border: 1px solid var(--xn-line);
}
.chat-hb-cmd-line { display: flex; align-items: center; gap: 8px; }
.chat-hb-pick {
  max-height: 180px; overflow: auto; border-top: 1px solid var(--xn-line-soft);
}
.chat-hb-pick button {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 12px; font: inherit; font-size: 15px; cursor: pointer; min-height: 44px;
  color: inherit; appearance: none; -webkit-appearance: none; border-radius: 0;
}
.chat-hb-pick button:hover,
.chat-hb-pick button.on { background: var(--xn-soft); }
.chat-hb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 8px; }
.chat-hb-chip {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chat-hb-foot { text-align: center; padding: 20px 0 4px; }
.chat-hb-yen { font-size: 32px; font-weight: 750; letter-spacing: -0.02em; margin-bottom: 8px; }
.chat-hb-kinds { width: 100%; display: flex; }
.chat-hb-kinds button { flex: 1; font-size: 13px; padding-left: 4px; padding-right: 4px; }
#chat-hb-phrase { z-index: 61; }
.chat-hb-need-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
#chat-hb-need { z-index: 61; }
html[data-theme="dark"] .chat-input,
html[data-theme="dark"] .chat-hb-list,
html[data-theme="dark"] .chat-hb-cmd { background: #1c1c1e; }
html[data-theme="dark"] .chat-hb-row input,
html[data-theme="dark"] .chat-hb-sel,
html[data-theme="dark"] .chat-hb-cmd-line input {
  background-color: #2c2c2e; border-color: #3a3a3c; color: var(--xn-ink);
}
html[data-theme="dark"] .chat-hb-row input:focus,
html[data-theme="dark"] .chat-hb-sel:focus,
html[data-theme="dark"] .chat-hb-cmd-line input:focus {
  background-color: #2c2c2e; border-color: rgba(91, 140, 255, .55);
}
.chat-quick {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding: 0 2px;
}
.chat-hub-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin: 0 0 16px;
}
.chat-hub-hero .page-title {
  margin: 0; font-size: clamp(32px, 8vw, 40px); letter-spacing: -.04em;
}
.chat-hub-new {
  height: 44px; display: inline-flex; align-items: center;
  font-size: 17px; font-weight: 650; color: var(--xn-brand); text-decoration: none;
}
.chat-hub .chat-group-list {
  margin: 0 -16px;
  background: transparent; border: 0; box-shadow: none;
}
@media (min-width: 768px) {
  .chat-hub .chat-group-list { margin: 0; }
}
.chat-group-list { display: flex; flex-direction: column; }
.chat-group-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  min-height: 68px;
  border-bottom: 0.5px solid var(--xn-line-soft); text-decoration: none; color: inherit;
}
.chat-group-row:last-child { border-bottom: 0; }
.chat-group-row:hover { background: var(--xn-soft); }
.chat-group-row:active { background: var(--xn-soft-2); }
.chat-group-ico {
  position: relative; width: 48px; height: 48px; border-radius: 8px;
  display: grid; place-items: center; flex-shrink: 0; color: #fff;
  overflow: hidden;
}
.chat-group-ico.round { border-radius: 8px; background: #dbeafe; color: #1d4ed8; font-weight: 700; overflow: hidden; }
.chat-group-ico .msg-num {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #fff;
}
.chat-group-ico .msg-num.mute { background: #a1a1aa; }
.chat-group-row.is-pin { background: #fafafa; }
.chat-group-chev { display: none; }
.chat-tag {
  display: inline-block; margin-left: 6px; font-style: normal; font-size: 10px; font-weight: 600;
  padding: 1px 6px; border-radius: 4px; background: #f0f0f0; color: #6b7280; vertical-align: middle;
}
.chat-mute-ico {
  display: inline-block; margin-left: 4px; font-style: normal; font-size: 10px;
  padding: 0 4px; border-radius: 4px; background: #f4f4f5; color: #71717a; font-weight: 700;
}
.chat-room-head {
  flex: 0 0 auto;
  position: sticky; top: 0;
  display: flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 6px 12px;
  background: var(--xn-glass);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  border-bottom: 1px solid var(--xn-line);
  z-index: 8;
}
.chat-room > .chat-notice,
.chat-room > .card { flex: 0 0 auto; }
.chat-notice { margin: 0 12px; border-radius: 0 0 12px 12px; }
.chat-room-title {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px;
  font-size: 17px; font-weight: 750; color: inherit; text-decoration: none;
}
.chat-room-count { font-size: 13px; color: var(--xn-mute); font-weight: 600; }
.chat-room-zone {
  flex-shrink: 0; font-size: 11px; font-weight: 650; color: var(--xn-brand);
  background: var(--xn-brand-soft); border-radius: 999px; padding: 2px 8px;
  max-width: 7em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chat-room-chev { color: #c7c7cc; font-weight: 400; }
.chat-day {
  align-self: center; font-size: 11px; color: var(--xn-mute); padding: 6px 0 2px;
}
.chat-info-head {
  position: sticky; top: 0; z-index: 8;
  display: flex; align-items: center; gap: 8px;
  min-height: 48px; margin: 0 -16px 16px; padding: 8px 16px;
  background: var(--xn-glass);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  border-bottom: 1px solid var(--xn-line);
}
.chat-card {
  display: flex; align-items: stretch; gap: 10px;
  max-width: 280px; padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--xn-line);
  text-decoration: none; color: inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.chat-card-main { flex: 1; min-width: 0; }
.chat-card-k {
  font-size: 11px; font-weight: 700; color: var(--xn-mute);
  padding-left: 8px; border-left: 3px solid var(--xn-brand); margin-bottom: 6px;
}
.chat-card-game { font-size: 16px; font-weight: 750; line-height: 1.3; }
.chat-card-game em {
  display: inline-block; margin-left: 6px; font-style: normal;
  font-size: 10px; font-weight: 650; padding: 1px 6px; border-radius: 999px;
  background: var(--xn-soft-2); color: var(--xn-mute); vertical-align: middle;
}
.chat-card-sum {
  margin-top: 4px; font-size: 12px; color: var(--xn-mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-card-price { margin-top: 8px; font-size: 16px; font-weight: 750; }
.chat-card-cover {
  width: 64px; height: 64px; border-radius: 12px; flex-shrink: 0;
  overflow: hidden; background: var(--xn-soft-2);
  display: grid; place-items: center;
}
.chat-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-card-cover.is-ico { background: var(--xn-ink); color: #fff; }
.chat-push { align-self: center; width: 100%; max-width: 320px; }
.chat-push .chat-card { max-width: none; }
.chat-plus-panel {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding: 12px 4px 4px;
}
.chat-plus-panel form { margin: 0; }
.chat-plus-panel form .chat-plus-cell { width: 100%; height: 100%; }
.chat-plus-cell {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 4px; border: 0; border-radius: 16px;
  background: var(--xn-soft-2); color: inherit;
  text-decoration: none; font: inherit; cursor: pointer;
}
.chat-plus-cell em { font-style: normal; font-size: 11px; font-weight: 650; }
.chat-plus-cell.is-off { opacity: .45; cursor: default; }
.chat-plus-cell .ico { width: 22px; height: 22px; }
.chat-sheet {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: flex-end; justify-content: center;
}
.chat-sheet.hidden { display: none; }
.chat-sheet-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.chat-sheet-panel {
  position: relative; z-index: 1;
  width: min(480px, 100%);
  max-height: min(86vh, 720px); overflow: auto;
  background: var(--xn-glass);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  border-radius: 20px 20px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
}
.chat-trade-pick { display: flex; flex-direction: column; gap: 8px; }
.chat-trade-pick form { margin: 0; }
.chat-trade-pick-row {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 12px; border: 0; border-radius: 14px;
  background: #fff; text-align: left; font: inherit; cursor: pointer;
}
.chat-trade-pick-row b { display: block; font-size: 15px; }
.chat-trade-pick-row i {
  display: block; font-style: normal; font-size: 12px; color: var(--xn-mute);
  margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-trade-pick-row em { font-style: normal; font-weight: 750; flex-shrink: 0; }
html[data-theme="dark"] .chat-card,
html[data-theme="dark"] .chat-trade-pick-row { background: #1c1c1e; }
html[data-theme="dark"] .chat-card.kind-hongbao { background: #c4473a; }
.chat-info-ava {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
}
.chat-info-link, .chat-info-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--xn-line-soft);
  text-decoration: none; color: inherit; font-size: 15px; background: #fff; width: 100%;
  border-left: 0; border-right: 0; border-top: 0; cursor: pointer;
}
.chat-info-link:last-child, .chat-info-row:last-child { border-bottom: 0; }
.chat-switch {
  width: 44px; height: 26px; border-radius: 999px; border: 0; background: #e5e5ea;
  position: relative; flex-shrink: 0; cursor: pointer; transition: background .15s;
}
.chat-switch::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); transition: left .15s;
}
.chat-switch.on { background: #34c759; }
.chat-switch.on::after { left: 20px; }
.chat-info-leave {
  width: 100%; padding: 14px; border: 0; background: #fff; color: #ef4444;
  font-size: 15px; font-weight: 650; cursor: pointer;
}
.chat-member-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}
.chat-member-cell { text-align: center; text-decoration: none; color: inherit; }
.chat-member-cell .chat-ava { margin: 0 auto; }
.chat-member-name {
  display: block; margin-top: 4px; font-size: 11px; color: #6b7280;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-member-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-bottom: 1px solid var(--xn-line-soft);
}
.chat-member-row:last-child { border-bottom: 0; }
.chat-role-tag {
  font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px;
}
.chat-role-tag.owner { background: #ccfbf1; color: #0f766e; }
.chat-role-tag.admin { background: #e0f2fe; color: #0369a1; }
.chat-role-tag.plat { background: var(--xn-brand-soft); color: var(--xn-brand); }
.chat-role-tag.whale { background: #fff4d6; color: #8a6a12; }
.chat-search-hit {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px;
  border-bottom: 1px solid var(--xn-line-soft); text-decoration: none; color: inherit;
}
.chat-search-hit:last-child { border-bottom: 0; }
.chat-group-body {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px;
  border: 0; background: transparent; padding: 0; margin: 0;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  text-decoration: none;
}
.chat-group-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.chat-group-name { font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.chat-group-time { font-size: 13px; color: var(--xn-mute); flex-shrink: 0; font-weight: 500; }
.chat-group-preview {
  display: block; margin-top: 3px; font-size: 15px; color: var(--xn-mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-pin {
  display: inline-block; margin-left: 4px; font-style: normal; font-size: 10px;
  padding: 0 5px; border-radius: 4px; background: #ecfdf5; color: #0f766e; font-weight: 700;
}
.inline-form { display: inline; }
.my-game-btns .inline-form .btn { margin: 0; }
.circ-intro-ops .inline-form { display: inline-flex; }
.ga-gate {
  padding: 14px 16px; border-radius: var(--xn-radius);
  background: var(--xn-soft); border: 1px solid var(--xn-line-soft);
}
.ga-gate-t { margin: 0; font-size: 16px; font-weight: 700; }
.ga-gate-d { margin: 6px 0 0; font-size: 13px; color: var(--xn-mute); line-height: 1.45; }
.seg { flex-wrap: wrap; }
.my-games-page { width: 100%; max-width: none; }
.my-games-list {
  display: flex;
  flex-direction: column;
  background: var(--xn-surface);
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: none;
}
.my-game-item {
  padding: 14px 14px 12px; border-bottom: 0;
}
.my-game-item + .my-game-item { border-top: 0; }
.my-game-item:last-child { border-bottom: 0; }
.my-game-main { display: flex; align-items: flex-start; gap: 12px; }
.my-game-ico {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  flex-shrink: 0; text-decoration: none;
}
.my-game-title {
  font-size: 16px; font-weight: 700; line-height: 1.3;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
}
.my-game-title a { color: inherit; text-decoration: none; }
.my-game-meta { margin-top: 4px; font-size: 13px; color: #3c3c43; }
.my-game-sub { margin-top: 2px; font-size: 11px; color: #8b8b8f; }
.my-game-news {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 6px;
  font-size: 12px; color: #0f766e; text-decoration: none;
}
.my-game-btns {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 10px;
}
.my-game-btns .btn { min-height: 36px; }
.my-game-more { position: relative; flex-shrink: 0; }
.my-game-more > summary {
  list-style: none; cursor: pointer; width: 28px; height: 28px;
  display: grid; place-items: center; color: #8b8b8f; font-size: 16px; border-radius: 8px;
}
.my-game-more > summary::-webkit-details-marker { display: none; }
.my-game-more > summary:hover { background: var(--xn-soft); }
.my-game-menu {
  position: absolute; right: 0; top: 100%; z-index: 5; min-width: 120px;
  background: #fff; border: 1px solid var(--xn-line); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08); padding: 4px; display: flex; flex-direction: column;
}
.my-game-menu a, .my-game-menu button {
  display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none;
  font-size: 13px; color: inherit; text-decoration: none; border-radius: 6px; cursor: pointer;
}
.my-game-menu a:hover, .my-game-menu button:hover { background: var(--xn-soft); }
.my-game-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-left: 64px; }
.msg-cat-ico .ico { opacity: 1; }
.msg-cat-ico { color: #fff; }

/* ===== 小七式游戏详情壳 ===== */
.gd-page {
  position: relative; background: #f5f5f7; color: var(--xn-ink);
  min-height: 100%;
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.gd-page.is-embed { min-height: 100%; }
.gd-cover {
  position: relative; height: 180px; overflow: hidden;
  background: linear-gradient(160deg, rgba(var(--gdr),var(--gdg),var(--gdb),.95), #111);
}
.gd-cover-art { position: absolute; inset: 0; }
.gd-cover-art img { width: 100%; height: 100%; object-fit: cover; opacity: .88; }
.gd-cover-fallback {
  height: 100%; display: grid; place-items: center; opacity: .7;
}
.gd-cover-btn {
  position: absolute; top: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.28); color: #fff; backdrop-filter: blur(8px);
  display: grid; place-items: center; text-decoration: none; font-size: 22px; cursor: pointer;
}
.gd-cover-btn.left { left: 12px; }
.gd-cover-btn.right { right: 12px; }
.gd-identity {
  display: flex; gap: 12px; align-items: flex-end;
  margin: -36px 12px 0; position: relative; z-index: 2; padding-bottom: 4px;
}
.gd-appico {
  width: 72px; height: 72px; border-radius: 18px; overflow: hidden;
  display: grid; place-items: center; flex-shrink: 0;
  border: 3px solid #fff; box-shadow: 0 6px 18px rgba(0,0,0,.12);
  background: #ddd;
}
.gd-appico img { width: 100%; height: 100%; object-fit: cover; }
.gd-name { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.gd-subline { margin-top: 4px; font-size: 12px; color: #8b8b8f; }
.gd-tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.gd-tabs {
  display: flex; justify-content: center; gap: 36px; background: #fff;
  border-bottom: 1px solid var(--xn-line-soft); position: sticky; top: 0; z-index: 3;
  margin-top: 10px;
}
.gd-tabs a {
  position: relative; padding: 12px 4px; font-size: 15px; font-weight: 650;
  color: #8b8b8f; text-decoration: none;
}
.gd-tabs a.on { color: var(--xn-ink); }
.gd-tabs a.on::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gd, #0f766e); border-radius: 2px;
}
.gd-tabs a sup {
  margin-left: 2px; font-size: 10px; color: var(--gd, #0f766e); font-weight: 800;
}
.gd-body { padding: 12px 12px 8px; }
.gd-block {
  background: #fff; border: 1px solid var(--xn-line); border-radius: 16px;
  padding: 12px 14px; margin-bottom: 12px;
}
.gd-block-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 750; margin-bottom: 10px;
}
.gd-block-head a { font-size: 12px; font-weight: 600; color: #8b8b8f; text-decoration: none; }
.gd-announce p { margin: 0 0 6px; font-size: 13px; color: #3c3c43; line-height: 1.5; }
.gd-announce p:last-child { margin-bottom: 0; }
.gd-chat-preview {
  display: flex; flex-direction: column; gap: 10px; min-height: 40px;
  max-height: 220px; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.gd-chat-line {
  display: flex; gap: 8px; align-items: flex-start;
  max-width: 100%; min-width: 0;
}
.gd-chat-line .chat-ava { flex-shrink: 0; }
.gd-chat-bubble {
  min-width: 0; background: #f3f4f6; border-radius: 12px;
  padding: 8px 10px; font-size: 13px; line-height: 1.45;
  word-break: break-word; overflow-wrap: anywhere;
}
.gd-chat-nick {
  display: block; font-size: 11px; font-weight: 650; color: #8b8b8f; margin-bottom: 2px;
}
a.gd-join-chat.btn,
button.gd-join-chat.btn {
  display: flex; width: 100%; margin-top: 12px;
  justify-content: center; align-items: center; text-align: center;
}
.gd-desc { margin: 0; font-size: 13px; color: #3c3c43; line-height: 1.65; }
.gd-links {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 13px; font-weight: 650;
}
.gd-links a, .gd-links button {
  border: 0; background: none; padding: 0; color: var(--gd, #0f766e);
  cursor: pointer; font: inherit; text-decoration: none;
}
.gd-comm-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding: 0 2px;
}
.gd-feed { display: flex; flex-direction: column; gap: 10px; }
.gd-post {
  display: block; background: #fff; border: 1px solid var(--xn-line); border-radius: 16px;
  padding: 12px; text-decoration: none; color: inherit;
}
.gd-post-user { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.gd-post-title { font-size: 14px; font-weight: 650; line-height: 1.45; }
.gd-post-cover {
  margin-top: 10px; height: 140px; border-radius: 12px;
  background-size: cover; background-position: center; background-color: #eee;
}
.gd-post-meta {
  display: flex; gap: 14px; margin-top: 10px; font-size: 12px; color: #8b8b8f;
}
.gd-post-meta span { display: inline-flex; align-items: center; gap: 4px; }
.gd-fab {
  position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 6;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gd, #0f766e); color: #fff; display: grid; place-items: center;
  text-decoration: none; font-size: 20px; box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.gd-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--xn-line);
  backdrop-filter: blur(10px); box-sizing: border-box;
}
.gd-dock-side {
  width: 40px; height: 40px; border-radius: 50%; background: #ecfeff;
  display: grid; place-items: center; color: var(--gd, #0f766e); text-decoration: none; flex-shrink: 0;
}
.gd-dock .gd-dock-cta.btn {
  flex: 1; width: auto; min-width: 0;
  border-radius: 999px; justify-content: center; text-align: center;
  background: var(--gd, #0f766e); border-color: transparent; color: #fff;
  font-size: 15px; font-weight: 750; height: var(--xn-btn-h-lg); min-height: var(--xn-btn-h-lg);
}
.gd-dock .gd-dock-cta.btn:hover { filter: brightness(1.05); }
body.embed-bare .gd-page { background: #f5f5f7; }
/* 详情壳：单滚动容器，避免嵌套滑动抢手势 */
html:has(.gd-page.is-embed),
html:has(.circ-page.is-embed),
body.embed-bare:has(.gd-page),
body.embed-bare:has(.circ-page) {
  height: 100%; overflow: hidden; background: #f5f5f7;
}
body.embed-bare:has(.gd-page) .embed-bare-main,
body.embed-bare:has(.circ-page) .embed-bare-main {
  height: 100%; overflow-x: hidden; overflow-y: auto;
  -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain;
}
.gd-tabs { overscroll-behavior: none; }

@media (min-width: 768px) {
  /* PC：胶囊底栏隐藏；开游贴附条在 mp-playing 时可用 */
  .capsule-dock { display: none !important; }
  .game-mode #content { background: #0b0b0c; }
}

/* ===== Game Center detail ===== */
.gc-detail {
  position: relative; min-height: 70vh; color: #fff;
  margin: 0; padding: 12px 16px 40px;
  overflow: hidden;
}
.gc-detail.is-embed { min-height: 100%; padding-top: 8px; }
body.embed-bare:not(.embed-full):not(.embed-sheet):not(.is-msg-pane):not(:has(.gd-page)):not(:has(.circ-page)):not(:has(.ga-pick)) { background: #0a0a0c; }
html:has(.ga-pick),
body.embed-bare:has(.ga-pick) {
  background: var(--xn-soft) !important;
  color: var(--xn-ink);
}
html:has(body.is-msg-pane),
body.is-msg-pane {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  background: var(--xn-soft) !important;
}
body.is-msg-pane .embed-bare-main {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.is-msg-pane:not(:has(.chat-room)):not(:has(.sys-feed)):not(:has(.reply-feed)) .embed-bare-main {
  overflow-y: auto;
}
body.is-msg-pane:has(.sys-feed) .embed-bare-main,
body.is-msg-pane:has(.reply-feed) .embed-bare-main {
  overflow: hidden;
  padding: 0;
}
body.is-msg-pane .chat-room {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}
body.is-msg-pane .chat-back,
body.is-msg-pane a[href*="messages.htm"] { display: none; }
/* 游戏内抽屉里的群聊（sheet=1）：和消息盒右栏一样是一整列——头栏固定、只滚消息、输入框贴底，不再是只能看的「预览」 */
body.embed-sheet:has(.chat-room) .embed-bare-main {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.embed-sheet .chat-room {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  background: var(--xn-surface);
}
body.embed-sheet .chat-room-head { padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
.chat-sheet-x {
  border: 0;
  background: transparent;
  font-size: 26px;
  font-weight: 300;
  color: var(--xn-mute);
  cursor: pointer;
}
.chat-sheet-x:hover { color: var(--xn-ink, #111); }
body.embed-sheet { background: var(--xn-soft, #f7f7f8) !important; }
.embed-sheet .page-head { display: none; }
.embed-bare-main { min-height: 100%; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; }
body.embed-bare:not(.embed-full) .gc-detail { min-height: calc(100vh - 48px); }
body.embed-bare .card, body.embed-bare .form-card { margin-left: 12px; margin-right: 12px; }
body.embed-bare .page-title,
body.embed-bare > .embed-bare-main > .flex { padding-left: 12px; padding-right: 12px; }
.gc-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(var(--gcr),var(--gcg),var(--gcb),0.95), transparent 55%),
    linear-gradient(180deg, #000 0%, #0a0a0c 100%);
  filter: saturate(1.15);
}
.gc-top, .gc-hero, .gc-section { position: relative; z-index: 1; }
.gc-top { display: flex; justify-content: space-between; margin-bottom: 18px; }
.gc-icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.16); color: #fff;
  backdrop-filter: blur(10px); display: grid; place-items: center;
  text-decoration: none; font-size: 20px; cursor: pointer;
}
.gc-hero { text-align: center; padding: 8px 8px 20px; }
.gc-appico {
  width: 108px; height: 108px; margin: 0 auto 16px; border-radius: 28px;
  background: rgba(255,255,255,.12); display: grid; place-items: center;
  box-shadow: 0 16px 40px rgba(0,0,0,.35); overflow: hidden;
}
.gc-appico img { width: 100%; height: 100%; object-fit: cover; }
.gc-title { font-size: 28px; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.02em; }
.gc-sub { margin: 0 0 10px; color: rgba(255,255,255,.78); font-size: 14px; }
.gc-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  font-size: 12px; color: rgba(255,255,255,.7); margin-bottom: 18px;
}
.gc-dot { opacity: .5; }
.gc-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 220px; height: 48px; padding: 0 28px; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.92); color: #111; font-size: 17px; font-weight: 750;
  cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.gc-actions { display: flex; justify-content: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.gc-link {
  border: 0; background: none; color: rgba(255,255,255,.88); font-size: 13px; font-weight: 600;
  text-decoration: none; cursor: pointer; font-family: inherit;
}
.gc-section { margin-top: 22px; }
.gc-section h2 { font-size: 20px; font-weight: 800; margin: 0 0 8px; }
.gc-desc { margin: 0; font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.82); }
.gc-list { margin: 0; padding-left: 18px; color: rgba(255,255,255,.78); font-size: 13px; line-height: 1.7; }
.gc-list code { font-size: 11px; background: rgba(255,255,255,.1); padding: 1px 6px; border-radius: 6px; }
.gc-poster {
  position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.55);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px;
}
.gc-poster.hidden { display: none; }
.gc-poster-card {
  width: min(320px, 100%); border-radius: 24px; padding: 28px 20px; text-align: center;
  background: linear-gradient(160deg, rgba(var(--gcr),var(--gcg),var(--gcb),0.95), #111);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.gc-poster-ico {
  width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 20px;
  background: rgba(255,255,255,.15); display: grid; place-items: center;
}
.gc-poster-name { font-size: 22px; font-weight: 800; }
.gc-poster-sub { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 6px; }
.gc-poster-url { margin-top: 16px; font-size: 11px; word-break: break-all; color: rgba(255,255,255,.65); }
.gc-poster-foot { margin-top: 14px; font-size: 11px; color: rgba(255,255,255,.5); }
.gc-poster-ops { display: flex; gap: 8px; }

/* H5 play host — 填满小窗父级；100vh 会在嵌套 iframe 里把画布算坏 → Draw:0 灰屏 */
html.h-full, body.embed-full { height: 100%; overflow: hidden; }
body.embed-full { background: #000; margin: 0; }
.h5-play {
  display: flex; flex-direction: column;
  height: 100%; min-height: 0; background: #000;
}
.h5-play-bare { height: 100%; min-height: 0; }
.h5-play-frame {
  flex: 1; width: 100%; height: 100%; min-height: 0;
  border: 0; background: #888; display: block;
}
.h5-play-empty { flex: 1; display: grid; place-items: center; color: #fff; text-align: center; padding: 24px; }

/* ===== 圈子 / 游戏吧 ===== */
.circ-page {
  --circ-pad: 16px;
  --circ-mode-h: 44px;
  margin: 0;
  min-height: 100%;
  max-width: min(960px, 100%);
  min-width: 0;
  padding: 0 var(--circ-pad) calc(72px + env(safe-area-inset-bottom, 0px));
  background: transparent;
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .circ-page {
    --circ-pad: 32px;
    padding-top: 0;
    padding-bottom: 40px;
  }
  .circ-page.is-game { padding-top: 0; }
}
@media (min-width: 960px) {
  .circ-page {
    max-width: none;
    --circ-pad: 40px;
  }
  .circ-page .circ-hub {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 0 24px;
    align-items: start;
  }
  .circ-page .circ-hub-main { min-width: 0; grid-column: 1; grid-row: 1; }
  .circ-page .circ-play-rail {
    display: block;
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: calc(var(--circ-mode-h) + 8px);
  }
  .circ-page.is-game .circ-intro-ops { display: none; }
  .circ-page .circ-fab { display: none; }
  .circ-page.is-circle .circ-card .circ-id { display: none; }
  .circ-page.is-circle .circ-card:not(:has(.circ-card-note)) { display: none; }
  .circ-page .circ-hub-main .circ-stick {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}
.circ-page.is-circle .circ-card:not(:has(.circ-card-note)) { display: none; }
.circ-page.is-embed { margin: 0; min-height: 100%; padding-bottom: 72px; }
.circ-page > .page-head.circ-mode-bar {
  display: flex;
  align-items: stretch;
  gap: 4px;
  position: sticky;
  top: 0;
  z-index: 12;
  height: var(--circ-mode-h);
  min-height: var(--circ-mode-h);
  margin: 0 calc(0px - var(--circ-pad)) 8px;
  padding: 0 var(--circ-pad);
  background: var(--xn-soft);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.circ-page.is-game > .page-head.circ-mode-bar {
  margin-bottom: 8px;
}
.circ-page.is-circle > .page-head.circ-mode-bar {
  margin-bottom: 8px;
}
.circ-mode-bar .page-back { flex-shrink: 0; align-self: center; }
.circ-mode-tabs {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex: 1;
  min-width: 0;
  height: 100%;
}
.circ-mode-tabs a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 2px;
  border-bottom: 2px solid transparent;
  color: var(--xn-mute);
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.circ-mode-tabs a.on {
  color: var(--xn-ink);
  border-bottom-color: var(--xn-ink);
}
.circ-head-ops {
  display: flex; align-items: center; justify-content: flex-end;
  margin-left: auto;
  height: 44px;
  align-self: center;
  flex-shrink: 0;
}
.circ-head-ico {
  width: 44px; height: 44px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 12px; color: inherit; text-decoration: none;
}
.circ-head-ico:hover,
.circ-mode-bar .circ-more-menu > summary:hover { background: var(--xn-soft-2, #f0f0f2); }
.circ-mode-bar .circ-more-menu > summary {
  width: 44px; height: 44px; background: transparent;
}
.circ-id {
  display: flex; align-items: center; gap: 12px;
  margin: 0;
  min-width: 0;
}
.circ-id-meta { flex: 1; min-width: 0; }
.circ-id-name {
  margin: 0; font-size: 17px; font-weight: 700; line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--xn-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.circ-id-sub {
  margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--xn-mute);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.circ-id .btn,
.circ-id .circ-join-form { flex-shrink: 0; }
@media (min-width: 768px) {
  .circ-id { gap: 14px; }
  .circ-id-name { font-size: 22px; }
  .circ-id-sub { font-size: 13px; }
  .circ-id .btn.sm { height: 36px; min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: var(--xn-radius-sm); }
  .circ-appico.lg { width: 64px; height: 64px; border-radius: 16px; }
}
.circ-card {
  background: var(--xn-surface);
  border: 1px solid var(--xn-line);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 0 0 12px;
}
@media (min-width: 768px) {
  .circ-card { padding: 16px 20px; margin-bottom: 16px; }
}
.circ-card .circ-id { margin: 0; }
.circ-card-note {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--xn-line);
  min-height: 36px;
  text-decoration: none; color: inherit;
}
.circ-card-note em {
  flex-shrink: 0;
  font-style: normal;
  font-size: 11px; font-weight: 800;
  color: var(--xn-ok-ink);
  background: var(--xn-ok-soft);
  border-radius: 6px;
  padding: 3px 6px;
}
.circ-card-note span {
  flex: 1; min-width: 0;
  font-size: 13px; font-weight: 650;
  color: var(--xn-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.circ-card-note b { flex-shrink: 0; font-weight: 500; color: var(--xn-mute); }
.circ-media {
  display: flex; align-items: stretch; gap: 10px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  margin: 0 0 12px;
  padding-bottom: 2px;
}
.circ-media::-webkit-scrollbar { display: none; }
.circ-media-slide {
  flex: 0 0 84%;
  max-width: 520px;
  aspect-ratio: 16 / 9;
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  background: var(--xn-surface);
  border: 1px solid var(--xn-line);
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: zoom-in;
}
@media (min-width: 768px) {
  .circ-media-slide { flex-basis: 420px; }
}
.circ-media-slide img,
.circ-media-slide video,
.circ-media-slide iframe,
.circ-media-slide .media-embed,
.circ-media-slide .media-embed iframe,
.circ-media-slide .media-embed video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}
.circ-media-slide .media-block,
.circ-media-slide .media-embed { height: 100%; margin: 0; pointer-events: none; }
.circ-media-slide video,
.circ-media-slide iframe { pointer-events: none; }
.circ-gal-track .circ-media-slide.is-vid {
  cursor: default;
}
.circ-gal-track .circ-media-slide.is-vid video {
  pointer-events: auto;
}
.xn-media-fs {
  position: fixed; inset: 0; z-index: 90;
  display: none;
  background: #000;
}
.xn-media-fs.is-on { display: block; }
.xn-media-fs-body {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.xn-media-fs-body img,
.xn-media-fs-body video {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  background: #000;
}
.xn-media-fs-body iframe {
  width: 100%; height: 100%;
  border: 0; background: #000;
}
.xn-media-fs .xn-media-fs-x {
  position: absolute;
  top: max(8px, env(safe-area-inset-top, 0px));
  left: max(8px, env(safe-area-inset-left, 0px));
  width: 44px; min-width: 44px; height: 44px;
  padding: 0;
  z-index: 1;
  color: #fff;
  background: transparent;
  border-color: transparent;
}
.circ-media-link {
  display: grid; place-items: center; height: 100%;
  font-size: 14px; font-weight: 700; color: var(--xn-ink); text-decoration: none;
}
.circ-chat-hb {
  display: block;
  font-size: 13px; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.circ-chat-hb em {
  display: inline-block; margin-right: 6px;
  font-style: normal; font-size: 11px; font-weight: 800;
  color: #fff; background: #c4473a;
  border-radius: 6px; padding: 1px 6px; vertical-align: 1px;
}
.circ-caps {
  display: flex; align-items: center; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 10px;
  padding: 0 0 2px;
}
.circ-caps::-webkit-scrollbar { display: none; }
.circ-cap {
  flex: 0 0 auto;
  height: 32px; padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--xn-line);
  background: var(--xn-surface);
  color: var(--xn-ink);
  font-size: 13px; font-weight: 650;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 2px;
  white-space: nowrap;
}
.circ-cap i { font-style: normal; font-weight: 500; color: var(--xn-mute); }
.circ-cap.on {
  border-color: var(--xn-ink);
  font-weight: 800;
}
.circ-cap.on i { color: var(--xn-ink); }
.circ-page.is-circle .circ-stick { top: var(--circ-mode-h); }
.circ-play-seg { margin: 0 0 10px; }
.circ-play-list { display: flex; flex-direction: column; }
.circ-play-row {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 4px 0;
  border-bottom: 1px solid var(--xn-line-soft);
  font-size: 14px;
}
.circ-play-row:last-child { border-bottom: 0; }
.circ-play-row[data-ucard] { cursor: pointer; }
.circ-play-row em {
  flex: 0 0 22px; font-style: normal; font-weight: 800;
  font-size: 13px; color: var(--xn-mute); text-align: center;
}
.circ-play-row:nth-child(-n+3) em { color: var(--xn-ink); }
.circ-play-name { flex: 1; min-width: 0; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.circ-play-val { flex: 0 0 auto; font-size: 13px; font-weight: 650; color: var(--xn-mute); }
.circ-chat-preview { display: flex; flex-direction: column; gap: 10px; margin: 0 0 12px; }
.circ-chat-line { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.4; }
.circ-chat-line b { display: block; font-size: 12px; color: var(--xn-mute); font-weight: 650; }
.circ-chat-line span { color: var(--xn-ink); }
.circ-pin {
  position: sticky; top: 0; z-index: 11;
  flex: 0 0 auto;
  color: #fff;
  background: rgb(var(--gdr), var(--gdg), var(--gdb));
}
.circ-head {
  position: relative;
  flex: 0 0 auto;
  color: #fff;
  background: rgb(var(--gdr), var(--gdg), var(--gdb));
  padding: 4px 16px 16px;
}
@media (min-width: 768px) {
  .circ-head { padding: 10px 24px 20px; }
}
.circ-hero-bar {
  display: flex; align-items: center; gap: 10px;
  min-height: 48px; margin: 0; padding: 8px 16px;
  color: #fff;
  background: rgb(var(--gdr), var(--gdg), var(--gdb));
}
@media (min-width: 768px) {
  .circ-hero-bar { padding: 10px 24px; gap: 12px; min-height: 52px; }
}
.circ-hero-id { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.circ-hero-id .page-title {
  margin: 0; font-size: 17px; font-weight: 700;
  color: #fff; letter-spacing: -0.02em; line-height: 1.2;
}
@media (min-width: 768px) {
  .circ-hero-id .page-title { font-size: 20px; }
}
.circ-hero-count {
  display: block; margin-top: 1px; font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.78);
}
.circ-hero-bar .page-back {
  width: 32px; height: 32px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 10px; background: transparent;
  color: #fff; text-decoration: none; cursor: pointer;
  font-size: 22px; line-height: 1; font-family: inherit; padding: 0;
}
.circ-hero-bar .page-back:hover { background: rgba(255,255,255,.16); }
.circ-join-form { margin: 0; display: flex; align-items: center; flex-shrink: 0; }
.circ-hero-bar .circ-join { background: #fff; color: #111; }
.circ-hero-bar .circ-join.is-on { background: rgba(255,255,255,.22); color: #fff; }
.circ-hero-ops {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: 4px;
}
.circ-hero-op {
  min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 12px; border-radius: 12px;
  background: rgba(255,255,255,.22);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff; text-decoration: none; font-size: 15px; font-weight: 700;
}
.circ-hero-op em { font-style: normal; }
.circ-hero-op .ico { width: 20px; height: 20px; flex-shrink: 0; }
.circ-sheet {
  position: relative; z-index: 2;
  flex: 1;
  background: var(--xn-soft);
  border-radius: 16px 16px 0 0;
  margin-top: 0;
  padding: 4px 12px 28px;
}
.circ-appico {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
  overflow: hidden;
}
.circ-appico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.circ-appico.lg { width: 52px; height: 52px; border-radius: 14px; }
.circ-join {
  flex-shrink: 0; height: 30px; padding: 0 12px; border-radius: 999px; border: 0;
  background: var(--xn-ink); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer;
}
.circ-join.is-on { background: var(--xn-soft); color: #8b8b8f; }
.circ-join.is-soft { background: var(--xn-soft-2, #f0f0f2); color: var(--xn-ink); font-weight: 700; }
.circ-icons {
  display: flex; align-items: stretch; gap: 12px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 12px;
  padding: 0 0 4px;
}
@media (min-width: 768px) {
  .circ-icons { gap: 16px; margin-bottom: 16px; }
}
.circ-icons::-webkit-scrollbar { display: none; }
.circ-ico {
  flex: 0 0 auto;
  width: 72px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 4px 0;
  border-radius: 12px;
  background: transparent; border: 0;
  text-decoration: none; color: var(--xn-ink); font-size: 11px; font-weight: 650;
}
.circ-ico span {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--xn-surface);
  border: 1px solid var(--xn-line);
}
.circ-ico .ico { width: 22px; height: 22px; }
.circ-ico em { font-style: normal; color: var(--xn-mute); font-size: 11px; font-weight: 650; }
.circ-ico.on em { color: var(--xn-ink); font-weight: 700; }
.circ-tabs,
.circ-hero-tabs {
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  position: sticky; top: 48px; z-index: 9;
  margin: 0; padding: 0 16px 4px;
  background: var(--xn-soft);
  border: 0;
  border-radius: 0;
}
.circ-tabs-row {
  display: flex; align-items: stretch; gap: 0;
  min-height: 44px;
}
.circ-tabs-scroller {
  flex: 1; min-width: 0; position: relative;
}
.circ-tabs-nav {
  height: 44px;
  display: flex; align-items: stretch; gap: 4px;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.circ-tabs-nav.is-overflow {
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 18px), transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 18px), transparent);
}
.circ-tabs-nav::-webkit-scrollbar { display: none; }
.circ-tabs-nav > a {
  flex: 0 0 auto;
  height: 44px; padding: 0 14px;
  display: inline-flex; align-items: center;
  font-size: 15px; font-weight: 650; color: var(--xn-mute);
  text-decoration: none; border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.circ-tabs-nav > a:first-child { padding-left: 2px; }
.circ-tabs-nav > a.on {
  color: var(--xn-ink); font-weight: 800;
  border-bottom-color: var(--xn-ink);
}
.circ-tabs-cta {
  flex-shrink: 0;
  display: flex; align-items: center;
  padding: 0 0 0 12px;
  margin-left: 4px;
  border-left: 1px solid var(--xn-line);
  background: transparent;
  z-index: 2;
}
.circ-tabs-cta:empty { display: none; }
.circ-tabs-cta .btn {
  height: 30px; min-height: 30px; padding: 0 14px;
}
.circ-topics {
  display: flex; align-items: stretch; gap: 2px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.circ-topics::-webkit-scrollbar { display: none; }
.circ-topics > a {
  flex: 0 0 auto;
  height: 32px; padding: 0 10px;
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 650; color: var(--xn-mute);
  text-decoration: none; border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.circ-topics > a.on {
  color: var(--xn-ink); font-weight: 700;
  border-bottom-color: var(--xn-brand);
}
.circ-topics-sub > a { font-size: 12px; height: 28px; }
.circ-post-btn {
  margin-left: 4px; height: 28px; padding: 0 10px;
  border-radius: 999px; border: 0;
  background: var(--xn-ink); color: #fff;
  font-size: 12px; font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center; flex-shrink: 0;
  cursor: pointer; font-family: inherit;
}
.circ-post-btn.is-mute { opacity: .4; }
.circ-stick {
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
  position: sticky; top: 0; z-index: 8;
  margin: 0 -16px 12px; padding: 8px 16px;
  background: var(--xn-glass);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
}
.circ-home,
.hall-page,
.mk-page,
.msg-hub,
.shop-page,
.shop-orders-page,
.chat-hub,
.app-box,
.my-games-page,
.acc-page,
.partner-page,
.wf-page {
  max-width: none;
  width: 100%;
  min-width: 0;
}
.shop-page,
.shop-orders-page,
.chat-hub {
  padding: 16px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
}
.circ-home,
.hall-page,
.mk-page,
.msg-hub,
.app-box {
  padding: var(--xn-chrome-pt) max(var(--xn-chrome-px), env(safe-area-inset-right, 0px)) var(--xn-chrome-pb) max(var(--xn-chrome-px), env(safe-area-inset-left, 0px));
}
.hall-page,
.circ-home {
  max-width: min(1180px, 100%);
}
.circ-home.is-deck {
  max-width: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: var(--xn-chrome-pt) var(--xn-chrome-px) var(--xn-chrome-pb);
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  container-type: inline-size;
  container-name: circ-home;
}
#content:has(.circ-home.is-deck) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
#content.has-capsule:has(.circ-home.is-deck) {
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 768px) {
  #content.has-capsule:has(.circ-home.is-deck) { padding-bottom: 0; }
}
.hall-page,
.hall-page.hall-today,
.hall-page.hall-rank,
.hall-page.hall-today-page {
  max-width: none;
  width: 100%;
}
@media (min-width: 768px) {
  .shop-page,
  .shop-orders-page,
  .chat-hub,
  .my-games-page,
  .acc-page,
  .partner-page,
  .wf-page {
    padding: 28px 32px 40px;
  }
  .circ-home,
  .hall-page,
  .mk-page,
  .msg-hub,
  .app-box {
    padding: var(--xn-chrome-pt) var(--xn-chrome-px) var(--xn-chrome-pb);
  }
  .hall-page.hall-rank.is-deck {
    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
  }
  .hall-rank-deck {
    display: flex;
    margin: 0;
    padding: 0;
  }
  .hall-rank-col { display: flex; }
}
@container hall (min-width: 640px) {
  .hall-rank-deck { --rank-n: 2; }
}
@container hall (min-width: 960px) {
  .hall-rank-deck { --rank-n: 3; }
}
@container hall (min-width: 1280px) {
  .hall-rank-deck { --rank-n: 4; }
}
#content:has(.hall-rank.is-deck) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
@media (max-width: 767px) {
  #content:has(.hall-rank.is-deck) {
    display: block;
    overflow-y: auto;
  }
}
@media (min-width: 768px) {
  #content.has-capsule:has(.hall-rank.is-deck) { padding-bottom: 0; }
}
.circ-home .circ-stick {
  margin-left: -16px;
  margin-right: -16px;
  padding-left: 16px;
  padding-right: 16px;
  background: var(--xn-soft);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.circ-home .seg {
  display: flex;
  width: 100%;
}
.circ-home .seg > a { flex: 1; }
.xn-search.is-pill .xn-search-input {
  height: 40px;
  border-radius: var(--xn-radius-pill);
  font-size: 15px;
}
.circ-home-side { display: none; }
.circ-side-card {
  background: var(--xn-surface);
  border: 1px solid var(--xn-line);
  border-radius: var(--xn-radius-xl, 20px);
  padding: 16px;
}
.circ-side-h {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 800; margin-bottom: 12px;
}
.circ-side-h a { font-size: 13px; font-weight: 600; color: var(--xn-mute); text-decoration: none; }
.circ-side-list { display: flex; flex-direction: column; gap: 4px; }
.circ-side-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 4px; border-radius: 12px;
  text-decoration: none; color: inherit;
}
.circ-side-row:hover { background: var(--xn-soft-2); }
.circ-side-ico.game-logo,
.circ-side-ico { width: 40px; height: 40px; flex-shrink: 0; }
.circ-side-row b,
.circ-side-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.circ-side-row b { font-size: 14px; font-weight: 700; }
.circ-side-row small { margin-top: 2px; font-size: 12px; color: var(--xn-mute); }
.circ-home .circ-post { border-radius: var(--xn-radius-xl, 20px); padding: 16px; }
@media (min-width: 960px) {
  .circ-home.is-wide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
    align-items: start;
  }
  .circ-home.is-wide .circ-rail { display: none; }
  .circ-home-side {
    display: block;
    position: sticky;
    top: 16px;
  }
}
.circ-more-page { padding: 12px 0 8px; text-align: center; }
.circ-page .circ-stick {
  margin-left: calc(0px - var(--circ-pad));
  margin-right: calc(0px - var(--circ-pad));
  padding-left: var(--circ-pad);
  padding-right: var(--circ-pad);
  background: var(--xn-soft);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.circ-page .circ-stick .seg { flex: 1; min-width: 0; display: flex; }
.circ-page .circ-stick .seg > a { flex: 1; }
.circ-page .circ-stick .circ-feed-seg {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.circ-page .circ-stick .circ-feed-seg::-webkit-scrollbar { display: none; }
.circ-page .circ-stick .circ-feed-seg > a { flex: 0 0 auto; }
.circ-feeds {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.circ-feed-ico {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--xn-line); color: inherit;
}
.circ-feed-ico.on { background: var(--xn-ink); border-color: var(--xn-ink); }
.circ-feed-ico.on .ico { filter: brightness(0) invert(1); }
.circ-feeds-lab { font-size: 13px; font-weight: 700; color: #8b8b8f; }
.circ-follow {
  flex-shrink: 0; height: 28px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--xn-line); background: #fff; font-size: 12px; font-weight: 700; cursor: pointer;
}
.circ-follow.on { background: var(--xn-soft); color: #8b8b8f; }
.circ-play-card {
  margin-top: 10px; width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 0; border-radius: 12px; background: var(--xn-soft);
  cursor: pointer; font: inherit; color: inherit; text-align: left;
}
.circ-play-ico {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
}
.circ-play-card b { display: block; font-size: 14px; }
.circ-play-card em { font-style: normal; font-size: 12px; color: #8b8b8f; }
.circ-body { padding: 0; background: transparent; }
.circ-join-hint {
  font-size: 12px; color: #8b8b8f; text-align: center; padding: 4px 0 10px;
}
.circ-intro {
  background: var(--xn-surface); border-radius: 16px; padding: 16px;
  border: 1px solid var(--xn-line);
}
.circ-intro-head { display: flex; align-items: center; gap: 12px; }
.circ-intro-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.circ-intro > :first-child { margin-top: 0; }
.circ-intro-tags em {
  font-style: normal; font-size: 12px; font-weight: 650;
  background: var(--xn-soft-2); color: var(--xn-ink);
  border-radius: 999px; padding: 4px 10px;
}
.circ-intro-desc { font-size: 14px; line-height: 1.7; color: var(--xn-ink); opacity: .78; margin: 0; }
.circ-intro-desc[data-line-clamp] {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.circ-intro-desc.is-open {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.circ-desc-more {
  margin-top: 8px; padding: 0;
  border: 0; background: none;
  font: inherit; font-size: 13px; font-weight: 700;
  color: var(--xn-brand); cursor: pointer;
}
.circ-intro-ops { display: flex; gap: 8px; margin-top: 16px; }
.circ-intro-ops .btn { flex: 1; }
.circ-hub-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  container-type: inline-size;
  container-name: circ-main;
}
.circ-gal {
  --gal-gap: 10px;
  --gal-vis: 2;
  position: relative;
  margin: 0;
}
@media (max-width: 359px) {
  .circ-gal { --gal-vis: 1; }
}
@media (min-width: 640px) {
  .circ-gal { --gal-vis: 3; }
}
@media (min-width: 1280px) {
  .circ-gal { --gal-vis: 4; }
}
@container circ-main (max-width: 339px) {
  .circ-gal { --gal-vis: 1; }
}
@container circ-main (min-width: 340px) {
  .circ-gal { --gal-vis: 2; }
}
@container circ-main (min-width: 560px) {
  .circ-gal { --gal-vis: 3; }
}
@container circ-main (min-width: 980px) {
  .circ-gal { --gal-vis: 4; }
}
.circ-gal-track.circ-media {
  gap: var(--gal-gap);
  margin: 0;
  padding-bottom: 0;
}
.circ-gal-track .circ-media-slide {
  position: relative;
  flex: 0 0 calc((100% - var(--gal-gap) * (var(--gal-vis) - 1)) / var(--gal-vis));
  max-width: none;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
}
/* 横版截图（遮天 / 仙逆）：一张一屏，按图的真实比例（--ar，夹在 4:3～21:9）不裁 UI；竖版仍是一排 3 / 2 / 1。
   混排时轨道居中对齐，横版那张矮一点也不会顶着上沿 */
.circ-gal-track.circ-media { align-items: center; }
.circ-gal-track .circ-media-slide.is-land {
  flex: 0 0 100%;
  aspect-ratio: var(--ar, 16 / 9);
  background: #111;
  scroll-snap-align: center;
}
.circ-gal-track .circ-media-slide.is-land img { object-fit: cover; }
/* 「3/5」计数胶囊：横版图库或当前页签里有横版图时显示（JS 控制 hidden） */
.circ-gal-count {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 0 10px;
  height: 26px;
  line-height: 26px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .42);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  color: rgba(255, 255, 255, .92);
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  pointer-events: none;
}
.circ-gal-count[hidden] { display: none; }
@media (max-width: 767px) {
  .circ-gal-count { left: 10px; bottom: 10px; height: 24px; line-height: 24px; font-size: 11.5px; }
  .circ-gal[data-sw] .circ-gal-count { bottom: 44px; }
}
.circ-gal[data-view="live"] [data-gal-pane="album"],
.circ-gal[data-view="live"] [data-gal-pane="trailer"],
.circ-gal[data-view="album"] [data-gal-pane="live"],
.circ-gal[data-view="album"] [data-gal-pane="trailer"],
.circ-gal[data-view="trailer"] [data-gal-pane="live"],
.circ-gal[data-view="trailer"] [data-gal-pane="album"] {
  display: none;
}
.circ-gal[data-view="trailer"] .circ-gal-track .circ-media-slide.is-trailer {
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  background: #111;
}
.circ-gal-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.circ-gal[data-view="trailer"] .circ-media-slide.is-trailer video,
.circ-gal[data-view="trailer"] .circ-media-slide.is-trailer iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}
.circ-gal[data-view="live"] .circ-media-slide.is-live-vid {
  background: #111;
}
.circ-gal[data-view="live"] .circ-media-slide.is-live-vid video {
  position: absolute;
  inset: 0;
  z-index: 1;
  object-fit: cover;
  background: transparent;
}
@container circ-main (min-width: 560px) {
  .circ-gal[data-trailer][data-view="live"] .circ-gal-track .circ-media-slide.is-live-vid {
    flex: 0 0 100%;
    aspect-ratio: 16 / 9;
  }
  .circ-gal[data-trailer][data-view="live"] .circ-media-slide.is-live-vid video {
    inset: auto;
    left: 50%;
    top: 0;
    height: 100%;
    width: auto;
    max-width: 42%;
    aspect-ratio: 9 / 16;
    transform: translateX(-50%);
    object-fit: cover;
  }
}
.circ-gal-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
  display: grid;
  place-items: center;
  pointer-events: none;
}
.circ-gal-play .ico { width: 28px; height: 28px; }
.circ-gal-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  border-radius: 999px;
  padding: 4px 8px;
  pointer-events: none;
}
/* 图库切换胶囊：left/right 撑满 + max-content 居中（left:50% + translate 只给一半宽，会把文字挤成竖排） */
.circ-gal-sw,
.circ-hero-sw {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 3;
  width: max-content;
  max-width: calc(100% - 20px);
  margin: 0 auto;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .42);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  overflow-x: auto;
  scrollbar-width: none;
}
.circ-gal-sw::-webkit-scrollbar,
.circ-hero-sw::-webkit-scrollbar { display: none; }
.circ-gal-sw button,
.circ-hero-sw button {
  flex: 0 0 auto;
  height: 24px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, .88);
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 24px;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.circ-gal-sw button:hover,
.circ-hero-sw button:hover { color: #fff; }
.circ-gal-sw button.on,
.circ-hero-sw button.on { background: #fff; color: #111; }
@media (max-width: 767px) {
  .circ-gal-sw button,
  .circ-hero-sw button { font-size: 12px; padding: 0 10px; }
}
/* 视频自绘控制条：原生 controls 太高，且和胶囊叠；细进度 + 播放/静音/全屏，悬停或暂停时出现 */
.circ-media-slide.is-vid { cursor: pointer; container-type: inline-size; }
.circ-media-slide.is-vid video { cursor: pointer; }
.circ-media-slide.is-vid::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, .58), rgba(0, 0, 0, 0));
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.circ-media-slide.is-vid.is-ctl::after,
.circ-media-slide.is-vid.is-paused::after { opacity: 1; }
.circ-vctl {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  color: #fff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.circ-gal[data-sw] .circ-vctl { bottom: 42px; }
.circ-media-slide.is-vid.is-ctl .circ-vctl,
.circ-media-slide.is-vid.is-paused .circ-vctl { opacity: 1; pointer-events: auto; }
@media (hover: hover) and (pointer: fine) {
  .circ-media-slide.is-vid:hover::after { opacity: 1; }
  .circ-media-slide.is-vid:hover .circ-vctl { opacity: 1; pointer-events: auto; }
}
.circ-vctl button {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.circ-vctl button:hover { background: rgba(255, 255, 255, .16); }
.circ-vctl svg { width: 18px; height: 18px; display: block; }
.circ-vctl-time {
  flex: 0 0 auto;
  min-width: 78px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.circ-vctl-bar {
  flex: 1 1 auto;
  min-width: 40px;
  height: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}
.circ-vctl-bar > i {
  position: relative;
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .3);
  overflow: visible;
  transition: height .15s;
}
.circ-vctl-bar:hover > i,
.circ-vctl-bar.is-drag > i { height: 5px; }
.circ-vctl-bar > i > b {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 2px;
  background: #fff;
}
.circ-vctl-bar > i > b::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .15s, transform .15s;
}
.circ-vctl-bar:hover > i > b::after,
.circ-vctl-bar.is-drag > i > b::after { opacity: 1; transform: none; }
.circ-media-slide.is-vid:not(.is-paused) .circ-vctl .ico-play,
.circ-media-slide.is-vid.is-paused .circ-vctl .ico-pause,
.circ-media-slide.is-vid:not(.is-muted) .circ-vctl .ico-mute,
.circ-media-slide.is-vid.is-muted .circ-vctl .ico-sound { display: none; }
@container (max-width: 320px) {
  .circ-vctl-time { display: none; }
  .circ-vctl { gap: 2px; }
}
.circ-media-slide.is-vid:fullscreen { border-radius: 0; background: #000; }
.circ-media-slide.is-vid:fullscreen .circ-gal-cover { display: none; }
.circ-media-slide.is-vid:fullscreen video {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  transform: none !important;
  object-fit: contain !important;
}
.circ-media-slide.is-vid:fullscreen .circ-vctl { left: 20px; right: 20px; bottom: 20px; }
.circ-gal-nav {
  display: none;
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 32px;
  height: 48px;
  margin-top: -24px;
  border: 0;
  border-radius: 10px;
  background: rgba(28, 28, 30, .55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  place-items: center;
}
.circ-gal-nav.is-prev { left: 8px; }
.circ-gal-nav.is-next { right: 8px; }
@media (hover: hover) and (pointer: fine) {
  .circ-gal.is-overflow:hover.can-left .circ-gal-nav.is-prev,
  .circ-gal.is-overflow:hover.can-right .circ-gal-nav.is-next {
    display: grid;
  }
  /* 横版一张一屏：像 TapTap 一样 ‹ › 常驻（不用等悬停），圆形毛玻璃 */
  .circ-gal.is-overflow.is-land-view.can-left .circ-gal-nav.is-prev,
  .circ-gal.is-overflow.is-land-view.can-right .circ-gal-nav.is-next {
    display: grid;
  }
}
.circ-gal.is-land-view .circ-gal-nav {
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .42);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  font-size: 24px;
  transition: background .18s, transform .12s;
}
.circ-gal.is-land-view .circ-gal-nav:hover { background: rgba(0, 0, 0, .6); }
.circ-gal.is-land-view .circ-gal-nav:active { transform: scale(.94); }
.circ-gal.is-land-view .circ-gal-nav.is-prev { left: 12px; }
.circ-gal.is-land-view .circ-gal-nav.is-next { right: 12px; }
.circ-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 16 / 9;
  margin: 0 0 16px;
}
.circ-hero .circ-hero-pane,
.circ-hero .circ-hero-shots {
  position: absolute;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
  border: 0;
}
.circ-hero .circ-hero-pane { flex: none; aspect-ratio: auto; cursor: zoom-in; }
.circ-hero .circ-hero-shots .circ-media-slide {
  flex: 0 0 100%;
  max-width: none;
  height: 100%;
  aspect-ratio: auto;
}
.circ-hero[data-mode="video"] .circ-hero-shots { display: none; }
.circ-hero[data-mode="shots"] .circ-hero-pane { display: none; }
.circ-stats {
  display: flex;
  margin: 0 0 16px;
  background: var(--xn-surface);
  border-radius: 16px;
  overflow: hidden;
}
.circ-stat {
  flex: 1;
  min-width: 0;
  padding: 12px 8px;
  text-align: center;
  color: inherit;
  text-decoration: none;
}
.circ-stat + .circ-stat { border-left: 1px solid var(--xn-line); }
.circ-stat b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.circ-stat small { display: block; margin-top: 2px; font-size: 12px; color: var(--xn-mute); }
.circ-hub { display: flex; flex-direction: column; gap: 12px; }
.circ-play-rail {
  display: none;
  background: var(--xn-surface);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--xn-shadow, 0 8px 28px rgba(0,0,0,.06));
}
.circ-play-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}
.circ-play-top .circ-play-id { flex: 1; min-width: 0; margin-bottom: 0; }
.circ-play-icos { display: flex; align-items: center; flex-shrink: 0; }
.circ-play-id { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.circ-play-logo.game-logo,
.circ-play-logo { width: 56px; height: 56px; flex-shrink: 0; }
.circ-play-id b { display: block; font-size: 16px; font-weight: 800; }
.circ-play-id small { display: block; margin-top: 2px; font-size: 12px; color: var(--xn-mute); }
.circ-play-ops { display: flex; flex-direction: column; gap: 8px; }
.circ-play-ops .btn { width: 100%; }
.circ-block {
  background: var(--xn-surface); border-radius: 16px; padding: 16px;
  border: 1px solid var(--xn-line);
}
.circ-block-h {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 700; margin-bottom: 10px;
}
.circ-block-h a { font-size: 13px; font-weight: 600; color: var(--xn-mute); text-decoration: none; }
.circ-announce { font-size: 14px; line-height: 1.65; color: var(--xn-ink); opacity: .78; }
.circ-news { display: flex; flex-direction: column; }
.circ-news-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--xn-line-soft);
  text-decoration: none; color: inherit;
}
.circ-news-row:last-child { border-bottom: 0; padding-bottom: 0; }
.circ-news-title {
  flex: 1; min-width: 0; font-size: 14px; font-weight: 650;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.circ-news-time { flex-shrink: 0; font-size: 12px; color: var(--xn-mute); }
.circ-rail {
  display: flex; align-items: flex-start; gap: 4px;
  margin: 0 0 12px;
}
.circ-rail-scroll {
  flex: 1; min-width: 0; display: flex; gap: 12px;
  overflow-x: auto; padding: 2px 4px 8px 0;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.circ-rail-scroll::-webkit-scrollbar { display: none; }
.circ-more {
  flex: 0 0 72px; width: 72px; text-align: center; text-decoration: none; color: inherit;
  padding: 2px 0 0; border-left: 1px solid var(--xn-line);
}
.circ-more-ico {
  width: 52px; height: 52px; margin: 0 auto; border-radius: 16px;
  display: grid; place-items: center; font-size: 18px;
  background: var(--xn-soft-2, #f0f0f2); color: var(--xn-ink);
}
.circ-dot-sub {
  display: block; margin-top: 2px; font-size: 10px; color: var(--xn-mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.circ-all { padding: 12px 16px 24px; }
.circ-all > .page-head { margin-top: 0; }
.circ-all-sec { margin-bottom: 20px; }
.circ-all-h { font-size: 13px; font-weight: 700; color: var(--xn-mute); margin: 0 0 8px; }
.circ-all-empty { font-size: 13px; color: var(--xn-mute); padding: 12px 0; }
.circ-all-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid var(--xn-line-soft);
}
.circ-all-row:last-child { border-bottom: 0; }
.circ-all-main {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
}
.circ-all-ico {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
}
.circ-all-name { display: block; font-size: 15px; font-weight: 700; }
.circ-all-sub { display: block; margin-top: 2px; font-size: 12px; color: var(--xn-mute); }
.circ-fab {
  position: fixed; right: 16px; bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  z-index: 20; display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: 0; background: none; cursor: pointer; font: inherit; color: var(--xn-ink);
  font-size: 11px; font-weight: 700;
}
.circ-page.is-embed .circ-fab { bottom: 16px; }
@media (min-width: 768px) {
  .circ-fab { bottom: 24px; }
}
.circ-fab-ico {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.circ-dots {
  display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 6px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.circ-dots::-webkit-scrollbar { display: none; }
.circ-dot {
  flex: 0 0 auto; width: 76px; text-align: center; text-decoration: none; color: inherit;
  position: relative;
}
.circ-dot-ico {
  width: 52px; height: 52px; margin: 0 auto; border-radius: 50%;
  display: grid; place-items: center;
}
.circ-dot.is-on .circ-dot-ico { box-shadow: 0 0 0 2px var(--xn-ink); }
.circ-dot-name {
  display: block; margin-top: 6px; font-size: 11px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.circ-dot-hint {
  position: absolute; top: -2px; right: 2px;
  font-style: normal; font-size: 9px; font-weight: 800;
  background: #ef4444; color: #fff; border-radius: 999px; padding: 1px 5px;
}
.circ-jump { min-width: 0; }
.circ-home .circ-jump { display: none; }
.circ-home.is-scrolled .circ-jump { display: block; }
.circ-home-head { margin-bottom: var(--xn-head-mb); }
.circ-deck-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--xn-caps-mb);
  min-width: 0;
  flex: 0 0 auto;
}
.circ-deck-tabs-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}
.circ-deck-bar .circ-deck-tabs.xn-caps {
  flex: 1 1 auto;
  flex-shrink: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}
.circ-deck-tabs-wrap.is-overflow.can-right::after {
  content: "";
  position: absolute;
  top: 0; right: 38px; bottom: 0;
  width: 28px;
  background: linear-gradient(90deg, transparent, var(--xn-soft));
  pointer-events: none;
}
.circ-deck-tab-nav {
  display: none;
  flex: 0 0 var(--xn-cap-h);
  width: var(--xn-cap-h);
  height: var(--xn-cap-h);
  border: 1px solid var(--xn-line);
  border-radius: var(--xn-cap-r);
  background: transparent;
  color: var(--xn-ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.circ-deck-tabs-wrap.is-overflow .circ-deck-tab-nav { display: grid; place-items: center; }
.circ-deck-tabs-wrap.is-overflow .circ-deck-tab-nav:hover {
  background: var(--xn-soft-2);
  border-color: transparent;
}
.circ-deck-tabs-wrap:not(.can-left) .circ-deck-tab-nav.is-prev,
.circ-deck-tabs-wrap:not(.can-right) .circ-deck-tab-nav.is-next {
  opacity: .32;
  pointer-events: none;
}
.circ-deck-tab.is-app { padding-right: 6px; }
.circ-deck-ico.game-logo,
.circ-deck-ico { width: 20px; height: 20px; }
.circ-deck-sysico { opacity: .72; }
.circ-deck-tab i {
  font-style: normal;
  width: 18px; height: 18px;
  margin-left: 2px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-size: 14px; line-height: 1;
  color: var(--xn-mute);
  cursor: pointer;
}
.circ-deck-tab.on i { color: rgba(255,255,255,.72); }
.circ-deck-tab i:hover { background: rgba(0,0,0,.08); color: var(--xn-ink); }
.circ-deck-tab.on i:hover { background: rgba(255,255,255,.18); color: #fff; }
html[data-theme="dark"] .circ-deck-tab.on i { color: rgba(0,0,0,.5); }
html[data-theme="dark"] .circ-deck-tab.on i:hover { background: rgba(0,0,0,.08); color: #111; }
.circ-deck-add {
  flex: 0 0 var(--xn-cap-h);
  width: var(--xn-cap-h);
  height: var(--xn-cap-h);
  min-height: var(--xn-cap-h);
  padding: 0;
  border-radius: var(--xn-cap-r);
  border: 1px solid var(--xn-line);
  background: transparent;
  color: var(--xn-ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  cursor: pointer;
}
.circ-deck-add:hover {
  background: var(--xn-soft-2);
  border-color: transparent;
}
.circ-deck-tabs-wrap.is-overflow.can-right:has([data-circ-add])::after {
  right: calc(38px + var(--xn-cap-h) + 4px);
}
.circ-deck-pub {
  flex: 0 0 auto;
  height: var(--xn-cap-h);
  min-height: var(--xn-cap-h);
  padding: 0 16px;
  border-radius: var(--xn-cap-r);
  margin: 0;
}
.circ-add-pop {
  position: absolute;
  z-index: 20;
  width: min(320px, calc(100% - 32px));
  margin: -4px 0 12px;
  padding: 12px;
  border-radius: 16px;
  background: var(--xn-surface);
  box-shadow: var(--xn-shadow, 0 12px 40px rgba(0,0,0,.12));
}
.circ-home.is-deck { position: relative; }
.circ-add-lab {
  margin: 10px 0 6px;
  font-size: 12px; font-weight: 700; color: var(--xn-mute);
}
.circ-add-list {
  max-height: 280px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
}
.circ-add-row {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px;
  border: 0; border-radius: 12px;
  background: none; color: inherit;
  font: inherit; font-size: 14px; font-weight: 650;
  text-align: left; cursor: pointer;
}
.circ-add-row:hover,
.circ-add-row.is-on { background: var(--xn-soft-2); }
.circ-add-ico.game-logo,
.circ-add-ico { width: 36px; height: 36px; flex-shrink: 0; }
.circ-deck-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
}
.circ-deck-nav {
  display: none;
  position: absolute;
  top: 50%;
  z-index: 9;
  width: 44px; height: 44px;
  margin-top: -22px;
  border: 0; border-radius: 999px;
  background: var(--xn-glass);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  color: var(--xn-ink);
  font-size: 22px; line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
.circ-deck-nav.is-prev { left: 8px; }
.circ-deck-nav.is-next { right: 8px; }
.circ-deck-wrap.can-left .circ-deck-nav.is-prev,
.circ-deck-wrap.can-right .circ-deck-nav.is-next,
.circ-deck-wrap.is-hot-left.can-left .circ-deck-nav.is-prev,
.circ-deck-wrap.is-hot-right.can-right .circ-deck-nav.is-next {
  opacity: 1;
  pointer-events: auto;
}
.circ-deck {
  --circ-n: 1;
  --circ-gap: 16px;
  display: flex;
  flex-direction: column;
  gap: var(--circ-gap);
  min-width: 0;
  min-height: 0;
  height: 100%;
}
.circ-box {
  display: none;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  border-radius: 20px;
  background: var(--xn-surface);
  box-shadow: none;
  overflow: hidden;
  position: relative;
  transition: box-shadow .18s ease;
}
.circ-box.is-on { display: flex; }
.circ-box-h {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px 10px;
}
.circ-box-go {
  flex: 1; min-width: 0;
  font-size: 16px; font-weight: 800;
  color: inherit; text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.circ-box-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 10px;
  min-width: 0;
}
.circ-box-pills-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.circ-box-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.circ-box-pills::-webkit-scrollbar { display: none; }
.circ-box-pills-wrap.is-overflow::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 28px;
  background: linear-gradient(90deg, transparent, var(--xn-surface));
  pointer-events: none;
}
.circ-box-pill {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--xn-line);
  border-radius: 8px;
  background: var(--xn-surface);
  color: var(--xn-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}
.circ-box-pill.on {
  background: var(--xn-ink);
  color: var(--xn-surface);
  border-color: transparent;
}
html[data-theme="dark"] .circ-box-pill.on { color: #111; background: #f5f5f7; }
.circ-box-slide {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}
.circ-box-pills-wrap.is-overflow + .circ-box-slide,
.circ-box.is-focus .circ-box-pills-wrap.is-overflow + .circ-box-slide { display: flex; }
.circ-box-slide-btn {
  width: 28px; height: 28px;
  border: 0; border-radius: 999px;
  background: var(--xn-soft-2);
  color: var(--xn-ink);
  font-size: 16px; line-height: 1;
  cursor: pointer;
}
.circ-box-sort { position: relative; flex: 0 0 28px; }
.circ-box-sort > summary {
  list-style: none;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--xn-soft-2);
  display: grid; place-items: center;
  cursor: pointer;
}
.circ-box-sort > summary::-webkit-details-marker { display: none; }
.circ-box-sort-pop {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  z-index: 6;
  min-width: 168px;
  padding: 6px;
  border-radius: 16px;
  background: var(--xn-surface);
  border: 1px solid var(--xn-line);
  box-shadow: 0 12px 32px rgba(0,0,0,.14);
}
.circ-box-sort-pop button,
.circ-box-sort-pop a {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0; border-radius: 10px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.circ-box-sort-pop button span,
.circ-box-sort-pop a span { flex: 1; min-width: 0; }
.circ-box-sort-pop button .ico,
.circ-box-sort-pop a .ico { flex-shrink: 0; opacity: .7; }
.circ-box-sort-pop button.on::after,
.circ-box-sort-pop a.on::after {
  content: "✓";
  margin-left: auto;
  font-weight: 800;
}
.circ-box-sort-pop button.on,
.circ-box-sort-pop a.on,
.circ-box-sort-pop button:hover,
.circ-box-sort-pop a:hover { background: var(--xn-soft-2); }
.circ-forum-tools {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  position: sticky;
  top: var(--circ-mode-h);
  z-index: 8;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 0 0;
  background: var(--xn-soft);
}
.circ-page .circ-hub-main .circ-forum-tools {
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}
.circ-page.is-circle .circ-forum-tools { top: var(--circ-mode-h); }
.circ-forum-tools .circ-box-pills-wrap { flex: 1 1 auto; min-width: 0; }
.circ-forum-tools .circ-box-pills-wrap.is-overflow::after {
  background: linear-gradient(90deg, transparent, var(--xn-soft));
}
.circ-forum-tools .circ-box-pill {
  display: inline-flex;
  align-items: center;
  height: var(--xn-cap-h);
  padding: 0 var(--xn-cap-px);
  font-size: 14px;
  border-radius: var(--xn-cap-r);
  background: transparent;
  text-decoration: none;
}
.circ-forum-tools .circ-box-pill.on {
  background: var(--xn-ink);
  color: var(--xn-surface);
  border-color: transparent;
}
.circ-forum-tools .circ-box-sort { flex-basis: var(--xn-cap-h); }
.circ-forum-tools .circ-box-sort > summary {
  width: var(--xn-cap-h);
  height: var(--xn-cap-h);
  border: 1px solid var(--xn-line);
  border-radius: var(--xn-cap-r);
  background: transparent;
}
.circ-forum-tools .circ-box-sort > summary:hover {
  background: var(--xn-soft-2);
  border-color: transparent;
}
.circ-forum-tools .circ-box-slide-btn {
  width: var(--xn-cap-h);
  height: var(--xn-cap-h);
  border: 1px solid var(--xn-line);
  background: transparent;
}
.circ-forum-tools .circ-box-pills-wrap.is-overflow + .circ-box-slide { display: flex; }
@media (max-width: 767px) {
  .circ-forum-tools .circ-box-slide { display: none; }
}
.circ-forum-tools .btn { flex-shrink: 0; margin: 0; height: var(--xn-cap-h); min-height: var(--xn-cap-h); padding: 0 16px; }
.circ-pin-bar {
  margin: 0 0 12px;
  border-radius: 16px;
  background: var(--xn-surface);
  border: 1px solid var(--xn-line);
}
.circ-pin-bar > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.circ-pin-bar > summary::-webkit-details-marker { display: none; }
.circ-pin-bar > summary::after {
  content: "▾";
  margin-left: auto;
  color: var(--xn-mute);
  font-weight: 500;
}
.circ-pin-bar[open] > summary::after { content: "▴"; }
.circ-pin-bar > a {
  display: block;
  padding: 0 16px 12px;
  color: var(--xn-ink);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.5;
}
.circ-box-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0 10px 72px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.circ-box-body::-webkit-scrollbar { width: 0; }
.circ-box-body.is-wait { opacity: .55; }
.circ-box .circ-post { border: 0; box-shadow: none; padding: 12px 6px; }
.circ-box-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 16px 16px;
  background: linear-gradient(180deg, transparent, var(--xn-surface) 40%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
.circ-box.is-focus .circ-box-bar {
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 767px) {
  .circ-box-bar { opacity: 1; pointer-events: auto; }
  .circ-home .circ-box-bar { display: none; }
  .circ-box.is-focus .circ-box-pills-wrap.is-overflow + .circ-box-slide { display: none; }
}
@media (min-width: 768px) {
  .circ-deck-nav { display: block; }
  .circ-deck {
    --circ-n: 2;
    height: 100%;
    flex-direction: row;
    align-items: stretch;
    gap: var(--circ-gap);
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }
  .circ-deck::-webkit-scrollbar { display: none; }
  .circ-box {
    display: flex;
    flex: 0 0 calc((100% - (var(--circ-n) - 1) * var(--circ-gap)) / var(--circ-n));
    width: calc((100% - (var(--circ-n) - 1) * var(--circ-gap)) / var(--circ-n));
    min-width: 0;
    height: 100%;
    min-height: 0;
    scroll-snap-align: start;
  }
  .circ-box.is-focus {
    z-index: 2;
    box-shadow: 0 16px 48px rgba(0,0,0,.14);
  }
}
@container circ-home (min-width: 640px) {
  .circ-deck { --circ-n: 2; }
}
@container circ-home (min-width: 960px) {
  .circ-deck { --circ-n: 3; }
}
@container circ-home (min-width: 1280px) {
  .circ-deck { --circ-n: 4; }
}
.circ-jump-scroll {
  display: flex; align-items: center; gap: 8px;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 2px;
}
.circ-jump-scroll::-webkit-scrollbar { display: none; }
.circ-jump-item {
  flex: 0 0 auto;
  height: 32px; padding: 0 12px;
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 999px;
  background: rgba(118,118,128,.12);
  color: var(--xn-ink);
  font-size: 13px; font-weight: 650;
  text-decoration: none; white-space: nowrap;
}
.circ-jump-item i {
  font-style: normal; font-size: 14px; font-weight: 500;
  color: var(--xn-mute); line-height: 1;
}
.circ-jump-item.on {
  background: var(--xn-ink); color: #fff;
}
.circ-jump-item.on i { color: rgba(255,255,255,.7); }
.circ-feed { display: flex; flex-direction: column; gap: 10px; }
.circ-post {
  background: #fff; border-radius: 16px; padding: 14px;
  border: 1px solid var(--xn-line);
}
.circ-post-main { display: block; color: inherit; text-decoration: none; }
.circ-post-user { display: flex; align-items: center; gap: 8px; }
.circ-post-nick { font-size: 14px; font-weight: 700; }
.circ-post-meta { font-size: 11px; color: #8b8b8f; margin-top: 1px; }
.circ-post-title { font-size: 15px; font-weight: 750; margin-top: 8px; line-height: 1.4; }
.circ-post-excerpt {
  font-size: 13px; color: #6b7280; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* 帖子截图：内容下面一排三张方图，多于三张在最后一张右下角标 +N */
.circ-post-imgs { display: grid; gap: 4px; margin-top: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.circ-post-imgs span {
  position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden;
  background: var(--xn-soft, #eee) center/cover no-repeat;
}
.circ-post-imgs.n1 { grid-template-columns: 1fr; }
.circ-post-imgs.n1 span { aspect-ratio: 16 / 10; }
.circ-post-imgs.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.circ-post-imgs.n2 span { aspect-ratio: 4 / 3; }
.circ-post-imgs-more {
  position: absolute; right: 6px; bottom: 6px;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(0,0,0,.58); color: #fff; font-size: 12px; font-weight: 700; font-style: normal;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
/* 标题上方的媒体区：视频封面（有截图拿第一张）+ 播放键，点了才加载播放器 */
.circ-post-media {
  position: relative; display: block; margin-top: 10px; aspect-ratio: 16 / 9;
  border-radius: 12px; overflow: hidden; cursor: pointer;
  background: #111 linear-gradient(135deg, #2a2a33, #111);
  color: #fff;
}
.circ-post-media-bg { position: absolute; inset: 0; background: center/cover no-repeat; transform: scale(1.01); }
.circ-post-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.45));
  pointer-events: none;
}
.circ-post-media-play {
  position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .18s ease, background .18s ease;
}
.circ-post-media-play svg { margin-left: 2px; }
.circ-post-media:hover .circ-post-media-play { transform: scale(1.06); background: rgba(255,255,255,.32); }
.circ-post-media-lab {
  position: absolute; left: 10px; bottom: 8px; z-index: 1;
  font-size: 11px; font-weight: 700; font-style: normal; letter-spacing: .02em;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.circ-post-media.is-playing::after,
.circ-post-media.is-playing .circ-post-media-play,
.circ-post-media.is-playing .circ-post-media-lab,
.circ-post-media.is-playing .circ-post-media-bg { display: none; }
.circ-post-media.is-playing { cursor: default; }
.circ-post-media iframe,
.circ-post-media video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; display: block; }
.circ-post-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 10px 0 2px;
  font-size: 12px; font-weight: 650; color: var(--xn-mute);
}
.circ-post-tags a { color: inherit; text-decoration: none; }
.circ-post-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 8px;
  font-size: 12px; color: #8b8b8f;
}
.circ-post-foot a {
  color: inherit; text-decoration: none;
}
.circ-more-menu { position: relative; flex-shrink: 0; }
.circ-more-menu > summary {
  list-style: none; cursor: pointer;
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 10px; color: var(--xn-ink); font-size: 18px; line-height: 1;
  background: var(--xn-soft-2); border: 0;
}
.circ-more-menu > summary::-webkit-details-marker { display: none; }
.circ-more-menu > summary:hover { background: var(--xn-line); }
.circ-more-pop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20;
  min-width: 148px; padding: 6px;
  border-radius: 14px;
  background: var(--xn-glass);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.6);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.6);
  box-shadow: var(--xn-shadow); border: 1px solid rgba(255,255,255,.35);
}
.circ-more-pop a, .circ-more-pop button {
  display: block; width: 100%; text-align: left;
  padding: 10px 12px; border: 0; background: none; border-radius: 10px;
  font: inherit; font-size: 14px; font-weight: 650; color: var(--xn-ink);
  text-decoration: none; cursor: pointer;
}
.circ-more-pop a:hover, .circ-more-pop button:hover { background: var(--xn-soft); }
.hall-today-date {
  font-size: 13px; font-weight: 650; letter-spacing: .02em;
  color: var(--xn-mute); margin: 0 0 4px;
}
.hall-hero-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  color: var(--xn-mute);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: .02em;
}
.hall-tl-stick {
  position: sticky;
  top: 0;
  z-index: 8;
  margin: 0 -16px 16px;
  padding: 0 16px 0;
  background: var(--xn-soft);
}
.hall-tl-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.hall-tl-arr {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--xn-line);
  border-radius: 999px;
  background: transparent;
  color: var(--xn-ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.hall-tl-arr:hover { background: var(--xn-soft-2); border-color: transparent; }
.hall-tl-days {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hall-tl-days::-webkit-scrollbar { display: none; }
.hall-tl-days a.is-today { font-weight: 800; }
.hall-tl-days a.on {
  background: var(--xn-ink);
  color: var(--xn-surface);
  border-color: transparent;
}
html[data-theme="dark"] .hall-tl-days a.on { color: #111; background: #f5f5f7; }
.hall-tl { min-width: 0; }
.hall-tl-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  padding: 0 0 32px;
  position: relative;
}
.hall-tl-row + .hall-tl-row::before {
  content: "";
  position: absolute;
  left: 25px;
  top: -24px;
  width: 1px;
  height: 24px;
  background: var(--xn-line);
}
.hall-tl-when {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
  color: var(--xn-ink);
}
.hall-tl-when small {
  font-size: 12px;
  font-weight: 650;
  color: var(--xn-mute);
}
.hall-tl-when b {
  margin-top: 2px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
}
/* 没填上线日期的一组：左侧不显示日期数字，改成「已上线 / 待定」小字 */
.hall-tl-when.is-undated b {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--xn-mute);
  text-align: center;
}
.hall-tl-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.hall-tl-grid.is-fold > .hall-vcard:nth-child(n+7) { display: none; }
.hall-tl-more {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--xn-line);
  border-radius: var(--xn-cap-r);
  background: transparent;
  color: var(--xn-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.hall-tl-more:hover { background: var(--xn-soft-2); border-color: transparent; }
.hall-tl-grid:not(.is-fold) .hall-tl-more .hall-tl-icos { display: none; }
.hall-tl-icos {
  display: flex;
  align-items: center;
}
.hall-tl-icos .game-logo {
  width: 28px;
  height: 28px;
  margin-left: -8px;
  border: 2px solid var(--xn-soft);
}
.hall-tl-icos .game-logo:first-child { margin-left: 0; }
@media (min-width: 600px) {
  .hall-tl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .hall-tl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .hall-tl-row { grid-template-columns: 64px minmax(0, 1fr); gap: 20px; }
  .hall-tl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 768px) {
  .hall-tl-stick { margin: 0 -40px 16px; padding: 0 40px; }
}
.hall-hero {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 16px;
}
.hall-hero .page-title {
  margin: 0;
  font-size: clamp(32px, 8vw, 40px);
  font-weight: 800; letter-spacing: -.04em; line-height: 1.05;
}
.hall-hero.xn-page-head {
  align-items: flex-start;
  margin: 0 0 var(--xn-head-mb);
}
.hall-hero.xn-page-head .page-title {
  font-size: var(--xn-title);
  letter-spacing: -.03em;
  line-height: 1.1;
}
.hall-stories {
  display: grid; gap: 16px; margin: 0 0 28px;
}
.hall-story {
  display: flex; flex-direction: column;
  border: 0; padding: 0; text-align: left; font: inherit; color: inherit;
  border-radius: 20px; overflow: hidden;
  background: var(--xn-surface);
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
  min-height: clamp(220px, 58vw, 360px);
  cursor: pointer;
  text-decoration: none;
  transition: transform .22s cubic-bezier(.22,.9,.3,1), box-shadow .22s ease;
}
.hall-story:active { transform: scale(.975); }
.hall-story-art {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(160px, 42vw, 260px);
  padding: 22px 20px 18px;
  text-decoration: none; color: #fff;
  background-size: cover; background-position: center;
}
.hall-story-eye {
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; opacity: .82; margin-bottom: 8px;
}
.hall-story-art h2 {
  margin: 0 0 6px; font-size: clamp(24px, 6.4vw, 34px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.08; color: #fff;
}
.hall-story-art p {
  margin: 0; font-size: 15px; line-height: 1.35; opacity: .9; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hall-story-foot {
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 12px 16px;
  background: var(--xn-surface);
}
.hall-story-ico.game-logo,
.hall-story-ico { width: 44px; height: 44px; border-radius: 12px; }
.hall-story-meta { flex: 1; min-width: 0; }
.hall-story-meta b { display: block; font-size: 15px; font-weight: 700; }
.hall-story-meta small {
  display: block; margin-top: 2px; font-size: 12px; color: var(--xn-mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hall-story.is-checkin .hall-story-art {
  background: linear-gradient(160deg, #1e3a8a 0%, #3b82f6 55%, #93c5fd 100%);
}
.hall-story.is-wheel .hall-story-art {
  background: linear-gradient(160deg, #4c1d95 0%, #7c3aed 50%, #c4b5fd 100%);
  min-height: clamp(140px, 36vw, 200px);
}
.hall-story.is-wheel { min-height: 0; }
.hall-rail { margin: 0 0 28px; }
.hall-show { margin: 0 0 28px; }
.hall-show-track {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 16px 4px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hall-show-track::-webkit-scrollbar { display: none; }
.hall-show-card {
  flex: 0 0 86%;
  scroll-snap-align: center;
  display: flex; flex-direction: column;
  border-radius: 20px; overflow: hidden;
  background: var(--xn-surface);
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
  cursor: pointer;
  transition: transform .2s cubic-bezier(.22, .9, .3, 1);
}
.hall-show-card:active { transform: scale(.98); }
.hall-show-art {
  min-height: clamp(168px, 44vw, 240px);
  padding: 22px 20px 16px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
  background-size: cover; background-position: center;
}
.hall-show-art h2 {
  margin: 0 0 6px; font-size: clamp(24px, 6vw, 32px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.08; color: #fff;
}
.hall-show-art p {
  margin: 0; font-size: 15px; line-height: 1.35; opacity: .9; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hall-cats {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -16px; padding: 0 16px 4px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hall-cats::-webkit-scrollbar { display: none; }
.hall-cats.is-filter {
  margin: 0 0 16px; padding: 0;
}
.hall-cat {
  position: relative;
  flex: 0 0 44%;
  min-width: 148px; height: 120px;
  scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px 16px;
  border-radius: 18px; text-decoration: none; color: #fff;
  background: #3a3a3c;
  overflow: hidden;
  transition: transform .18s ease;
}
.hall-cat:active { transform: scale(.97); }
.hall-cats.is-filter .hall-cat {
  flex: 0 0 auto; width: auto; min-width: 72px; height: auto;
  padding: 10px 14px; border-radius: 12px;
}
.hall-cat-ico {
  position: absolute; top: 10px; right: 12px;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  color: #fff;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.22));
  pointer-events: none;
}
.hall-cat-ico .ico { width: 48px; height: 48px; color: #fff; }
.hall-cats.is-filter .hall-cat-ico { display: none; }
.hall-cat b { font-size: 20px; font-weight: 800; letter-spacing: -.03em; position: relative; }
.hall-cat small { margin-top: 4px; font-size: 12px; opacity: .78; }
.hall-cat.tone-0 { background: linear-gradient(160deg, #ea580c 0%, #fb923c 70%, #fdba74 100%); }
.hall-cat.tone-1 { background: linear-gradient(160deg, #15803d 0%, #4ade80 70%, #86efac 100%); }
.hall-cat.tone-2 { background: linear-gradient(160deg, #0f766e 0%, #2dd4bf 70%, #99f6e4 100%); }
.hall-cat.tone-3 { background: linear-gradient(160deg, #7c3aed 0%, #a78bfa 70%, #ddd6fe 100%); }
.hall-cat.tone-4 { background: linear-gradient(160deg, #1d4ed8 0%, #60a5fa 70%, #bfdbfe 100%); }
.hall-cat.tone-5 { background: linear-gradient(160deg, #be123c 0%, #fb7185 70%, #fecdd3 100%); }
.hall-cat.on { box-shadow: 0 0 0 3px var(--xn-ink); }
.hall-tabs-title {
  display: none; font-size: 17px; font-weight: 700; flex-shrink: 0;
}
.hall-today.is-scrolled .hall-tabs-title { display: block; }
@media (min-width: 768px) {
  .hall-cats { margin-left: -32px; margin-right: -32px; padding-left: 32px; padding-right: 32px; }
  .hall-cat { flex-basis: 220px; height: 132px; }
  .hall-page.hall-today { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hall-story { transition: none; }
  .hall-story:active { transform: none; }
  .hall-track { transition: none; }
}
.hall-gift {
  display: flex; gap: 8px; margin: 0 0 16px; overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hall-gift::-webkit-scrollbar { display: none; }
.hall-gift .btn { flex: 0 0 auto; }
.hall-slide .btn {
  background: rgba(255,255,255,.25); color: #fff; border-color: transparent;
}
html[data-theme="dark"] .hall-carousel {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 -1px 0 rgba(0,0,0,.4),
    0 14px 36px rgba(0,0,0,.45),
    0 2px 8px rgba(0,0,0,.28);
}
.hall-gift form { margin: 0; flex: 0 0 auto; }
.hall-played-heat {
  display: block; margin-top: 2px; font-size: 10px; font-weight: 600;
  color: #8b8b8f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gift-week {
  display: flex; gap: 6px; margin: 0 0 12px;
}
.gift-dot { flex: 1 1 0; min-width: 0; text-align: center; }
.gift-dot i {
  display: block; font-style: normal; font-size: 11px; color: var(--xn-mute); margin-bottom: 4px;
}
.gift-dot b {
  display: grid; place-items: center; height: 36px; border-radius: 10px;
  background: rgba(118,118,128,.12); font-size: 12px; font-weight: 700;
}
.gift-dot.on b {
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 0 0 0.5px rgba(0,0,0,.04);
}
html[data-theme="dark"] .gift-dot.on b {
  background: #2c2c2e; box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.gift-dot.today b { box-shadow: var(--xn-focus); }
.page-title.sm .wf-todo-n {
  margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--xn-mute);
}
.wf-todo-mark {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--xn-line);
}
.xn-row.is-done .wf-todo-mark { background: var(--xn-ok); }
.wf-todo-ok { font-size: 13px; font-weight: 600; color: var(--xn-mute); flex-shrink: 0; }
/* 礼包库 / 兑换记录行：左侧小图标 + 右侧时间 */
.wf-inv-ico {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--xn-soft); color: var(--xn-mute); margin-right: 10px;
}
.wf-inv-ico.is-coin { background: rgba(255,176,46,.16); color: #b26a00; }
.wf-inv-ico.is-cdk { background: rgba(47,107,255,.12); color: var(--xn-brand); }
.wf-inv-at { font-size: 11px; color: var(--xn-mute); flex-shrink: 0; margin-left: 8px; font-variant-numeric: tabular-nums; }
.wf-link { font-size: 11px; font-weight: 600; color: var(--xn-brand); text-decoration: none; margin-left: 6px; }
.rc-daily-k .wf-link { float: right; }
.wf-page .wf-seg { display: flex; width: 100%; margin: 0 0 16px; }
.wf-page .wf-seg > a { flex: 1; }
.wf-page .wf-seg.sm { margin-bottom: 12px; }
.wf-ticket {
  display: flex; align-items: stretch;
  background: var(--xn-surface);
  border: 1px solid var(--xn-line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
}
.wf-ticket-face {
  width: 88px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--xn-soft-2);
  color: var(--xn-ink);
}
.wf-ticket-face b { font-size: 22px; font-weight: 800; line-height: 1; }
.wf-ticket-face small { margin-top: 4px; font-size: 11px; color: var(--xn-mute); font-weight: 600; }
.wf-ticket-dash {
  width: 0; border-left: 1px dashed var(--xn-line);
  margin: 10px 0;
}
.wf-ticket-body { flex: 1; min-width: 0; padding: 12px 10px; }
.wf-ticket-st {
  flex-shrink: 0; width: 36px;
  display: grid; place-items: center;
  writing-mode: vertical-rl;
  font-size: 12px; font-weight: 650; color: var(--xn-mute);
  letter-spacing: .12em;
}
.game-logo {
  --xn-app-r: 22.5%;
  position: relative;
  display: grid; place-items: center;
  overflow: hidden; flex-shrink: 0;
  background: #1c1c1e; color: #fff;
  border-radius: var(--xn-app-r);
  box-shadow: 0 1px 2px rgba(0,0,0,.16);
  transition: transform .16s cubic-bezier(.22, .9, .3, 1);
  -webkit-tap-highlight-color: transparent;
}
.game-logo::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.26);
  background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 46%);
}
.game-logo.has-img { background: #e8e8ed; }
.game-logo.has-img::after {
  background: linear-gradient(180deg, rgba(255,255,255,.14), transparent 38%);
}
.game-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-logo .ico { width: 46%; height: 46%; }
.game-logo.is-letter {
  font-weight: 800; line-height: 1; letter-spacing: -.04em;
  font-size: 22px;
}
.game-logo.is-letter > b { font: inherit; line-height: 1; }
@supports (font-size: 1cqmin) {
  .game-logo { container-type: size; }
  /* 容器单位按祖先容器算，所以字要在 <b> 里、以 .game-logo 为容器；直接写在 .game-logo 上会退回视口单位 */
  .game-logo.is-letter > b { font-size: 42cqmin; }
}
.circ-dot-ico.game-logo,
.circ-all-ico.game-logo {
  border-radius: 50%;
}
.hall-slide-ico.game-logo { width: 64px; height: 64px; }
.hall-slide-mark-ico.game-logo { width: 72px; height: 72px; }
.hall-played-ico.game-logo { width: 64px; height: 64px; margin: 0 auto; }
.hall-icon-ico.game-logo { width: 56px; height: 56px; margin: 0 auto; }
.hall-tile-ico.game-logo { width: 44px; height: 44px; }
.hall-story-ico.game-logo { width: 44px; height: 44px; }
.hall-list-ico.game-logo { width: 60px; height: 60px; }
.circ-dot-ico.game-logo { width: 60px; height: 60px; margin: 0 auto; }
.circ-all-ico.game-logo { width: 52px; height: 52px; }
.my-game-ico.game-logo { width: 56px; height: 56px; }
.circ-appico.game-logo { width: 36px; height: 36px; }
.circ-appico.lg.game-logo { width: 52px; height: 52px; }
.chat-group-ico.game-logo {
  width: 48px; height: 48px;
  --xn-app-r: 8px;
  border-radius: 8px;
  box-shadow: none;
}
.chat-group-ico.game-logo::after { display: none; }
.game-tile-cover .game-logo { width: 56px; height: 56px; margin: 0 auto; }
.circ-play-ico.game-logo { width: 44px; height: 44px; }
.hall-played-card:active .game-logo,
.hall-icon-cell:active .game-logo,
.hall-tile-main:active .game-logo,
.hall-list-main:active .game-logo,
.hall-story:active .hall-story-ico,
.circ-dot:active .game-logo,
.chat-group-row:active .game-logo,
.game-tile:active .game-logo {
  transform: scale(.9);
}
.chat-ico-wrap { position: relative; flex: 0 0 48px; width: 48px; height: 48px; }
.chat-ico-wrap > .msg-num {
  position: absolute; top: -4px; right: -4px; z-index: 1;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #fff;
}
.chat-ico-wrap > .msg-dot { z-index: 1; }
.chat-ico-wrap > .msg-num.mute { background: #a1a1aa; }
.chat-chips {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px;
}
.chat-chips .btn { min-height: 32px; height: 32px; padding: 0 12px; font-size: 13px; }
.circ-post-game {
  display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 650;
  color: var(--xn-ink); background: var(--xn-soft); border-radius: 999px; padding: 4px 10px;
  text-decoration: none;
}
html[data-theme="dark"] .circ-home { background: var(--xn-soft); color: var(--xn-ink); }
html[data-theme="dark"] .circ-page,
html[data-theme="dark"] .circ-sheet,
html[data-theme="dark"] .circ-body,
html[data-theme="dark"] .circ-hub {
  background: transparent;
  color: var(--xn-ink);
}
html[data-theme="dark"] .circ-mode-bar {
  background: var(--xn-soft);
}
html[data-theme="dark"] .circ-head,
html[data-theme="dark"] .circ-pin,
html[data-theme="dark"] .circ-hero-bar {
  background: rgb(var(--gdr), var(--gdg), var(--gdb)) !important;
}
html[data-theme="dark"] .circ-intro,
html[data-theme="dark"] .circ-pin-bar,
html[data-theme="dark"] .circ-card,
html[data-theme="dark"] .circ-block,
html[data-theme="dark"] .circ-media-slide,
html[data-theme="dark"] .circ-post,
html[data-theme="dark"] .circ-cap {
  background: #1c1c1e !important;
  border-color: var(--xn-line) !important;
  color: var(--xn-ink);
}
html[data-theme="dark"] .circ-tabs-nav > a.on {
  color: #f5f5f7;
  border-bottom-color: #f5f5f7;
}
html[data-theme="dark"] .circ-topics > a.on {
  color: #f5f5f7;
  border-bottom-color: var(--xn-brand);
}
html[data-theme="dark"] .circ-ico span,
html[data-theme="dark"] .circ-feed-ico {
  background: #1c1c1e !important;
  border-color: var(--xn-line) !important;
}

html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .capsule-bar {
  background: var(--xn-glass) !important;
}

/* ===== 交易行（寄售 / 公示 / 现金过户） ===== */
.mk-page { max-width: none; width: 100%; }
.mk-head.xn-page-head {
  justify-content: flex-start;
  align-items: center;
}
.mk-sell {
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  display: grid;
  place-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.mk-sell:hover { background: var(--xn-soft-2); }
.mk-sell .ico { width: 22px; height: 22px; }
.mk-head:not(.xn-page-head) {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 12px;
}
.mk-head .page-title { margin: 0; }
.mk-sell-row {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 12px;
}
.mk-caps { flex-wrap: wrap; }
.mk-agree { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.mk-agree-card {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 12px;
  background: #fff; border: 1px solid var(--xn-line);
  cursor: pointer; font-size: 13px; line-height: 1.55; color: var(--xn-ink);
}
html[data-theme="dark"] .mk-agree-card { background: #1c1c1e; }
.mk-agree-card b { display: block; font-size: 14px; margin-bottom: 4px; }
.mk-agree-ck {
  width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0;
  accent-color: var(--xn-ink);
}
.mk-acc { cursor: pointer; }
.mk-acc:has(input:checked) {
  border-color: var(--xn-ink);
  box-shadow: 0 0 0 1px var(--xn-ink);
}
.mk-acc input { margin: 0; accent-color: var(--xn-ink); }
.mk-grid {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .mk-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .mk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.mk-card {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--xn-line);
  border-radius: 16px; padding: 14px;
}
html[data-theme="dark"] .mk-card { background: #1c1c1e; }
.mk-card-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.mk-card-game { font-size: 15px; font-weight: 750; }
.mk-badge {
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: var(--xn-soft-2); color: var(--xn-ink);
}
.mk-badge.notice { background: #fff4e5; color: #b45309; }
.mk-badge.selling { background: #e8f1ff; color: #1d4ed8; }
.mk-badge.done { background: #ecfdf3; color: #15803d; }
.mk-card-meta {
  margin-top: 8px; font-size: 12px; color: var(--xn-mute); line-height: 1.55;
}
.mk-card-price {
  margin-top: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.03em;
}
.mk-shots {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px;
}
.mk-shots span, .mk-shots img {
  display: block; width: 100%; height: 88px; object-fit: cover;
  border-radius: 10px; background: var(--xn-soft-2);
}
.mk-shot-add {
  height: 88px; border-radius: 10px; border: 1px dashed var(--xn-line);
  display: grid; place-items: center; cursor: pointer; color: var(--xn-mute);
  font-size: 12px; font-weight: 700; background: var(--xn-soft);
}
.mk-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 12px 0; }
.mk-dl div { font-size: 13px; }
.mk-dl dt { color: var(--xn-mute); font-size: 12px; }
.mk-dl dd { margin: 2px 0 0; font-weight: 700; }
.mk-lock {
  font-size: 13px; color: #b45309; background: #fff4e5;
  border-radius: 12px; padding: 10px 12px; margin: 10px 0;
}
.ga-row.is-locked {
  opacity: .45; cursor: not-allowed; pointer-events: none;
  background: var(--xn-soft-2);
}
.ga-row.is-locked .btn { background: #c7c7cc; color: #fff; }

/* ===== 加盟管理独立页 ===== */
.ops-body { background: var(--xn-soft); min-height: 100%; overflow: visible; }
.ops-chrome {
  position: sticky; top: 0; z-index: 20;
  background: var(--xn-glass);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  border-bottom: 1px solid var(--xn-line);
}
.ops-top {
  display: flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 16px;
}
.ops-brand {
  font-size: 17px; font-weight: 700; color: var(--xn-ink);
  letter-spacing: -.2px; white-space: nowrap;
}
.ops-exit { flex-shrink: 0; }
.ops-acct { position: relative; flex-shrink: 0; margin-left: auto; }
.ops-acct-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 10px 0 4px; border: 0; background: transparent;
  font-size: 14px; font-weight: 650; font-family: inherit; color: var(--xn-ink);
  cursor: pointer; border-radius: 999px;
}
.ops-acct-btn:hover { background: var(--xn-soft-2, #f0f0f2); }
.ops-acct-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-acct-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 40;
  min-width: 200px; padding: 6px;
  background: var(--xn-glass, rgba(255,255,255,.92));
  backdrop-filter: blur(var(--xn-blur, 16px)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--xn-blur, 16px)) saturate(1.4);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,.12);
}
.ops-acct-head { padding: 8px 12px 10px; border-bottom: 1px solid var(--xn-line); margin-bottom: 4px; }
.ops-acct-head b { display: block; font-size: 14px; }
.ops-acct-head small { display: block; font-size: 12px; color: var(--xn-mute); margin-top: 1px; }
.ops-acct-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  height: 42px; padding: 0 12px; border: 0; background: transparent;
  font-size: 14px; font-weight: 550; font-family: inherit; color: var(--xn-ink);
  text-decoration: none; text-align: left; cursor: pointer; border-radius: 10px;
}
.ops-acct-item .ico { width: 18px; height: 18px; color: var(--xn-mute); flex-shrink: 0; }
.ops-acct-item:hover { background: var(--xn-soft, #f7f7f8); }
.ops-acct-item.is-danger { color: #e0245e; }
.ops-acct-item.is-danger .ico { color: inherit; }
.ops-sheet {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
}
.ops-sheet-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.28); }
.ops-sheet-card {
  position: relative; width: 100%; max-width: 400px;
  background: #fff; border-radius: 16px 16px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 721px) {
  .ops-sheet { align-items: center; }
  .ops-sheet-card { border-radius: 16px; }
}
.ops-sheet-k { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.ops-sheet-card.is-wide {
  max-width: 440px;
  max-height: min(90vh, 760px);
  overflow: auto;
}
@media (max-width: 720px) {
  .ops-sheet-card.is-wide {
    max-width: 100%;
    height: 88vh;
    border-radius: 16px 16px 0 0;
  }
}
.ops-head { margin: 0 0 16px; }
.ops-h1 { font-size: 22px; font-weight: 700; margin: 0 0 6px; line-height: 1.25; }
.ops-lead { margin: 0 0 12px; color: var(--xn-mute, #8b8b8f); font-size: 14px; line-height: 1.5; }
.ops-subline { font-size: 12px; color: var(--xn-mute, #8b8b8f); margin-top: 2px; font-weight: 400; }
.ops-act {
  color: var(--xn-brand, #2f6bff);
  background: none; border: 0; padding: 0;
  font: inherit; font-weight: 650; cursor: pointer;
  text-decoration: none;
}
.ops-act:hover { text-decoration: underline; }
.ops-form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ops-desk-log { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 12px; }
.ops-desk-who { font-size: 12px; color: var(--xn-mute); margin-bottom: 4px; }
.ops-desk-msg {
  display: inline-block; max-width: 80%;
  padding: 8px 12px; border-radius: 12px; background: #fff;
  border: 1px solid var(--xn-line); font-size: 15px;
}
.ops-desk-line.mine { text-align: right; }
.ops-desk-line.mine .ops-desk-msg { background: #e8f0ff; border-color: transparent; }
.ops-desk-send { display: flex; gap: 8px; align-items: center; }
.ops-desk-send .ops-input { flex: 1; min-width: 0; }
.ops-desk-send .btn { margin: 0; flex-shrink: 0; }
.ops-tabs,
.ops-sub {
  display: flex; align-items: stretch;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--xn-line);
}
.ops-tabs { padding: 0 8px; }
.ops-tabs a,
.ops-sub a {
  position: relative;
  flex: 0 0 auto;
  height: 44px; padding: 0 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 650; color: var(--xn-mute);
  text-decoration: none; white-space: nowrap; background: transparent; border: 0;
}
.ops-tabs a.on,
.ops-sub a.on {
  color: var(--xn-ink); font-weight: 700;
}
.ops-tabs a.on::after,
.ops-sub a.on::after {
  content: '';
  position: absolute; left: 16px; right: 16px; bottom: 0;
  height: 2px; border-radius: 1px; background: var(--xn-brand);
}
.ops-sub {
  margin: 0 0 12px; padding: 0;
}
.ops-sub a { height: 40px; padding: 0 12px; font-size: 14px; }
.ops-sub a.on::after { left: 12px; right: 12px; }
@media (max-width: 720px) {
  .ops-top { padding: 0 12px; }
  .ops-tabs { padding: 0; }
  .ops-tabs a { flex: 1 1 0; padding: 0 4px; min-width: 0; font-size: 14px; }
  .ops-tabs a.on::after { left: 12px; right: 12px; }
}
.ops-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 16px calc(80px + env(safe-area-inset-bottom, 0px));
}
.ops-page-console { padding-top: 16px; }
.ops-page .page-title {
  font-size: 34px; font-weight: 700; letter-spacing: -.4px;
  line-height: 1.15; margin: 0 0 16px; color: var(--xn-ink);
}
.ops-form { max-width: 360px; display: flex; flex-direction: column; gap: 8px; }
.ops-form-wide { max-width: 520px; }
.ops-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.ops-grid-2 > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ops-grid-2 .ops-input { width: 100%; }
@media (max-width: 560px) { .ops-grid-2 { grid-template-columns: 1fr; } }
.ops-color-row { display: flex; align-items: center; gap: 10px; height: 44px; }
.ops-color-row input[type="color"] {
  width: 44px; height: 44px; padding: 3px; border: 1px solid var(--xn-line); border-radius: var(--xn-radius-sm); background: #fff; cursor: pointer;
}
.ops-tier-row { display: flex; gap: 8px; align-items: center; }
.ops-tier-row .ops-input { flex: 1 1 0; min-width: 0; height: 40px; }
/* 多级推广：直推 / 二级 / 三级 三个百分比框 */
.ops-promo-row { align-items: flex-end; }
.ops-promo-row > label { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--xn-mute); }
.ops-input-pct { position: relative; display: block; }
.ops-input-pct .ops-input { width: 100%; padding-right: 30px; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--xn-ink); }
.ops-input-pct i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 13px; color: var(--xn-mute); pointer-events: none; }
.ops-check-sub { padding-left: 20px; }
.ops-label { font-size: 13px; color: var(--xn-mute); margin-top: 8px; }
.ops-input {
  height: 44px; padding: 0 12px; border-radius: var(--xn-radius-sm);
  border: 1px solid var(--xn-line); background: #fff; color: var(--xn-ink);
  font-size: 16px; font-family: var(--xn-font);
}
.ops-textarea { height: auto; padding: 10px 12px; resize: vertical; }
textarea.ops-input { height: auto; min-height: 120px; padding: 10px 12px; font-size: 14px; line-height: 1.5; resize: vertical; }
.ops-input:focus { outline: none; box-shadow: var(--xn-focus); border-color: var(--xn-brand); }
.ops-input[readonly] { color: var(--xn-mute); background: var(--xn-soft); }
.ops-form .btn { margin-top: 16px; }
.ops-form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ops-form-actions .btn { margin-top: 0; }
.ops-form-actions-tight { margin-top: 8px; }
.ops-hint { margin: 0; font-size: 12px; line-height: 1.45; color: var(--xn-mute); }
.ops-media-preview { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.ops-media-item { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 72px; }
.ops-media-item.is-wide { width: 128px; }
.ops-media-preview img {
  width: 72px; height: 72px; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--xn-line); background: #fff;
}
.ops-media-preview img.is-icon { border-radius: 16px; }
.ops-media-preview img.is-cover { width: 128px; height: 72px; }
.ops-media-cap { font-size: 11px; color: var(--xn-mute); line-height: 1.2; }
.ops-media-item .btn { min-width: 44px; }
.ops-payout-list { display: flex; flex-direction: column; gap: 12px; margin: 0 0 24px; max-width: 520px; }
.ops-payout-card { max-width: 520px; background: #fff; border: 1px solid var(--xn-line); border-radius: var(--xn-radius); padding: 12px 16px 16px; }
.ops-payout-card .ops-label { margin-top: 0; }
.ops-payout-qr {
  width: 88px; height: 88px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--xn-line); display: block; margin: 4px 0;
}
.ops-file { font-size: 14px; padding: 8px 0; color: var(--xn-ink); }
.ops-payout-cell { white-space: normal; max-width: 240px; line-height: 1.4; }
.ops-payout-cell img {
  width: 40px; height: 40px; object-fit: cover; border-radius: 6px;
  display: block; margin-top: 6px; border: 1px solid var(--xn-line);
}
.ops-month { max-width: 160px; }
.ops-hour { max-width: 88px; }
.ops-filter {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 0 0 12px;
}
.ops-filter .ops-input { height: 40px; min-width: 0; flex: 1 1 140px; }
.ops-filter .btn { height: 40px; }
.ops-table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: #fff; border: 1px solid var(--xn-line);
  border-radius: var(--xn-radius); margin-bottom: 12px;
}
.ops-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.ops-table th, .ops-table td {
  padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--xn-line);
  white-space: nowrap;
}
.ops-table th { color: var(--xn-mute); font-weight: 650; font-size: 12px; }
.ops-table tr:last-child td { border-bottom: 0; }
.ops-pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px; margin: 8px 0 24px;
}
.ops-pager-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.ops-inline { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ops-inline .btn { height: 32px; min-height: 32px; }
.ops-inline .ops-input { flex: 1 1 160px; height: 32px; min-height: 32px; min-width: 120px; }
.ops-checks, .ops-perm-list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 16px; }
.ops-check { display: flex; align-items: center; gap: 8px; font-size: 14px; min-height: 32px; }
.ops-topic-list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 16px; }
.ops-topic-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ops-topic-row .ops-check { min-width: 72px; margin: 0; }
.ops-topic-row .ops-input { flex: 1 1 140px; height: 40px; }
.circ-hash {
  color: inherit; font-weight: 650; margin-left: 6px; text-decoration: none;
}
@media (max-width: 720px) {
  .ops-table { min-width: 0; }
  .ops-table .col-extra { display: none; }
}
.ops-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}
.ops-chart-card {
  background: #fff;
  border: 1px solid var(--xn-line);
  border-radius: var(--xn-radius);
  padding: 14px 14px 8px;
}
.ops-chart-wide { grid-column: 1 / -1; }
.ops-chart-k {
  font-size: 13px; font-weight: 650; color: var(--xn-mute);
  margin: 0 0 4px;
}
.ops-chart-box { width: 100%; height: 220px; }
.ops-chart-box-wide { height: 260px; }
.ops-chart-box-cal { height: 280px; }
/* 概况 · 上线自检（总管理） */
.ops-launch { margin-bottom: 14px; padding-bottom: 12px; }
.ops-launch-h { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.ops-launch-h::-webkit-details-marker { display: none; }
.ops-launch-sum { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.ops-launch-chev { color: #c7c7cc; font-size: 22px; line-height: 1; font-weight: 300; transition: transform .18s ease; }
.ops-launch[open] .ops-launch-chev { transform: rotate(90deg); }
.ops-launch-sub { margin: 8px 0 6px; font-size: 12px; color: var(--xn-mute); }
.ops-launch-list { list-style: none; margin: 0; padding: 0; }
.ops-launch-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-top: 1px solid var(--xn-line-soft);
}
.ops-launch-ico { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; color: var(--xn-mute); }
.ops-launch-ico .ico { width: 20px; height: 20px; }
.ops-launch-list li.is-ok .ops-launch-ico { color: #157347; }
.ops-launch-list li.is-warn .ops-launch-ico { color: #b45309; }
.ops-launch-list li.is-bad .ops-launch-ico { color: #c1274a; }
.ops-launch-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ops-launch-t b { font-size: 14px; font-weight: 650; }
.ops-launch-d { font-size: 12px; color: var(--xn-mute); word-break: break-all; }
.ops-launch-fix { font-size: 12px; color: var(--xn-ink); }
.ops-launch-fix::before { content: '→ '; color: var(--xn-mute); }
.ops-launch-act { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--xn-line-soft); }
.ops-launch-act .btn { width: auto; margin: 0; }
@media (max-width: 720px) {
  .ops-charts { grid-template-columns: 1fr; }
  .ops-chart-wide { grid-column: auto; }
}

/* ===== 后台外壳 v2：PC 左侧栏 + 顶栏；移动端顶部 tab + 抽屉 ===== */
.ops-app { min-height: 100vh; min-height: 100dvh; }
.ops-main { min-width: 0; }
.ops-side {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 60;
  width: 264px; max-width: 86vw;
  display: flex; flex-direction: column;
  background: #fff; border-right: 1px solid var(--xn-line);
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.ops-side.is-open { transform: none; box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.ops-side-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.32); }
.ops-side-lock { overflow: hidden; }
.ops-side-brand {
  display: flex; align-items: center; gap: 10px;
  height: 64px; padding: 0 16px; text-decoration: none; color: var(--xn-ink);
  border-bottom: 1px solid var(--xn-line);
}
.ops-side-mark {
  width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #2f6bff, #6b4dff);
  box-shadow: 0 6px 16px rgba(47,107,255,.28);
}
.ops-side-mark .ico { width: 20px; height: 20px; }
.ops-side-brand-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.ops-side-brand-t b { font-size: 15px; font-weight: 700; letter-spacing: -.2px; }
.ops-side-brand-t small { font-size: 11px; color: var(--xn-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-side-nav { flex: 1; overflow-y: auto; padding: 10px 12px; -webkit-overflow-scrolling: touch; }
.ops-side-item {
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 12px; margin: 2px 0; border-radius: 12px;
  font-size: 14px; font-weight: 600; color: var(--xn-ink-2, #3a3a3c);
  text-decoration: none; transition: background .15s;
}
.ops-side-item .ico { width: 20px; height: 20px; color: var(--xn-mute); flex-shrink: 0; }
.ops-side-item:hover { background: var(--xn-soft, #f7f7f8); }
.ops-side-item.on { background: #e9f0ff; color: var(--xn-brand); }
.ops-side-item.on .ico { color: var(--xn-brand); }
.ops-side-sub { display: flex; flex-direction: column; margin: 2px 0 6px; padding-left: 30px; position: relative; }
.ops-side-sub::before {
  content: ''; position: absolute; left: 21px; top: 6px; bottom: 6px; width: 2px;
  background: var(--xn-line); border-radius: 1px;
}
.ops-side-sub a {
  position: relative;
  height: 34px; display: flex; align-items: center; padding: 0 12px; border-radius: 10px;
  font-size: 13px; font-weight: 550; color: var(--xn-mute); text-decoration: none;
}
.ops-side-sub a:hover { color: var(--xn-ink); background: var(--xn-soft); }
.ops-side-sub a.on { color: var(--xn-ink); font-weight: 700; }
.ops-side-sub a.on::before {
  content: ''; position: absolute; left: -9px; top: 9px; width: 2px; height: 16px;
  background: var(--xn-brand); border-radius: 1px;
}
.ops-side-foot { position: relative; padding: 10px 12px; border-top: 1px solid var(--xn-line); }
.ops-side-user {
  display: flex; align-items: center; gap: 10px; width: 100%;
  height: 52px; padding: 0 8px; border: 0; border-radius: 12px; background: transparent;
  font-family: inherit; color: var(--xn-ink); cursor: pointer; text-align: left;
}
.ops-side-user:hover { background: var(--xn-soft); }
.ops-side-user > .ico { width: 18px; height: 18px; color: var(--xn-mute); margin-left: auto; }
.ops-side-ava {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #5b8cff, #2f6bff);
}
.ops-side-user-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.ops-side-user-t b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-side-user-t small { font-size: 12px; color: var(--xn-mute); }
.ops-side-menu { right: 12px; left: 12px; top: auto; bottom: calc(100% - 4px); min-width: 0; }

.ops-menu-btn {
  width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent;
  display: grid; place-items: center; color: var(--xn-ink); cursor: pointer; margin-left: -8px;
}
.ops-menu-btn .ico { width: 22px; height: 22px; }
.ops-menu-btn:hover { background: var(--xn-soft-2); }
.ops-crumb { display: none; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--xn-mute); min-width: 0; }
.ops-crumb li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ops-crumb li + li::before { content: '›'; color: var(--xn-line-2, #c7c7cc); }
.ops-crumb a { color: inherit; text-decoration: none; }
.ops-crumb a:hover { color: var(--xn-ink); }
.ops-crumb li:last-child { color: var(--xn-ink); font-weight: 650; }
.ops-top-search {
  display: none; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px; margin-left: auto;
  border-radius: 999px; background: var(--xn-soft-2, #f0f0f2); color: var(--xn-mute);
  width: 240px;
}
.ops-top-search .ico { width: 18px; height: 18px; flex-shrink: 0; }
.ops-top-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none;
  font: inherit; font-size: 14px; color: var(--xn-ink);
}
.ops-top-search:focus-within { background: #fff; box-shadow: var(--xn-focus); }
.ops-top-search + .ops-acct { margin-left: 0; }
.ops-flash {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; margin: 0 0 14px; border-radius: 12px; font-size: 14px; font-weight: 550;
}
.ops-flash .ico { width: 18px; height: 18px; flex-shrink: 0; }
.ops-flash.is-ok { background: #e7f7ee; color: #157347; }
.ops-flash.is-err { background: #fdecef; color: #c1274a; }

@media (min-width: 1024px) {
  .ops-app { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
  .ops-side {
    position: sticky; top: 0; height: 100vh; height: 100dvh;
    width: auto; max-width: none; transform: none; box-shadow: none;
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(var(--xn-blur, 16px)) saturate(1.3);
    -webkit-backdrop-filter: blur(var(--xn-blur, 16px)) saturate(1.3);
  }
  .ops-side-scrim { display: none !important; }
  .ops-menu-btn, .ops-top .ops-brand, .ops-tabs { display: none; }
  .ops-crumb { display: flex; }
  .ops-top-search { display: flex; }
  .ops-acct-btn .ops-acct-name { display: none; }
  .ops-acct-btn { padding: 0 3px; }
  .ops-sub-l2 { display: none; }
  .ops-page { padding-left: 28px; padding-right: 28px; }
}
@media (min-width: 1280px) {
  .ops-app { grid-template-columns: 264px minmax(0, 1fr); }
  .ops-acct-btn .ops-acct-name { display: inline; }
  .ops-acct-btn { padding: 0 10px 0 4px; }
}
@media (max-width: 1023px) {
  .ops-top { height: 52px; }
}

/* ===== 列表工具条：搜索 + 日期范围 + 快捷键 + 导出 ===== */
.ops-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 0 12px;
}
.ops-search, .ops-daterange {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px;
  background: #fff; border: 1px solid var(--xn-line); border-radius: 12px;
  color: var(--xn-mute);
}
.ops-search { flex: 1 1 220px; min-width: 0; }
.ops-search .ico, .ops-daterange .ico { width: 18px; height: 18px; flex-shrink: 0; }
.ops-search input, .ops-daterange-in {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none;
  font: inherit; font-size: 15px; color: var(--xn-ink); padding: 0;
}
.ops-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ops-search:focus-within, .ops-daterange:focus-within { border-color: var(--xn-brand); box-shadow: var(--xn-focus); }
.ops-daterange { flex: 0 1 292px; min-width: 220px; position: relative; cursor: pointer; }
.ops-daterange-in { cursor: pointer; font-size: 14px; font-variant-numeric: tabular-nums; }
.ops-daterange-x {
  display: none; width: 22px; height: 22px; border-radius: 50%; border: 0;
  background: var(--xn-soft-2); color: var(--xn-mute); font-size: 16px; line-height: 1;
  cursor: pointer; flex-shrink: 0;
}
.ops-daterange.is-set .ops-daterange-x { display: grid; place-items: center; }
.ops-daterange.is-set .ops-daterange-in { color: var(--xn-ink); font-weight: 600; }
.ops-quick { display: flex; gap: 4px; padding: 3px; background: var(--xn-soft-2, #f0f0f2); border-radius: 10px; }
.ops-quick button {
  height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--xn-mute); cursor: pointer;
}
.ops-quick button:hover { color: var(--xn-ink); }
.ops-quick button.on { background: #fff; color: var(--xn-ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.ops-toolbar .btn { height: 40px; min-height: 40px; }
.ops-export { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.ops-export .ico { width: 18px; height: 18px; }
.ops-export small { font-size: 12px; color: var(--xn-mute); font-weight: 500; }
@media (max-width: 720px) {
  .ops-search { flex-basis: 100%; }
  .ops-daterange { flex: 1 1 auto; min-width: 0; }
  .ops-quick { order: 4; flex-basis: 100%; justify-content: space-between; }
  .ops-quick button { flex: 1; }
  .ops-toolbar-go { flex: 0 0 auto; }
  .ops-export { order: 5; margin-left: 0; flex: 1 1 auto; justify-content: center; }
}

/* ===== 表格专业化：粘头、行悬停、数字列、状态胶囊 ===== */
.ops-table-wrap { max-height: none; }
.ops-table thead th {
  position: sticky; top: 0; z-index: 1;
  background: #fafafb; text-transform: none; letter-spacing: .01em;
  border-bottom: 1px solid var(--xn-line);
}
.ops-table tbody tr { transition: background .12s; }
.ops-table tbody tr:hover { background: #f7f9ff; }
.ops-table tbody tr.is-picked { background: #eef3ff; }
.ops-table td.num, .ops-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.ops-table td .ops-subline { font-variant-numeric: tabular-nums; }
.ops-pill {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 650; line-height: 1; white-space: nowrap;
  background: var(--xn-soft-2, #f0f0f2); color: var(--xn-ink-2, #3a3a3c);
}
.ops-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.ops-pill.is-ok { background: #e7f7ee; color: #157347; }
.ops-pill.is-warn { background: #fff4e5; color: #b45309; }
.ops-pill.is-bad { background: #fdecef; color: #c1274a; }
.ops-pill.is-info { background: #e9f0ff; color: #2f6bff; }
.ops-check-note { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--xn-mute); }

/* ===== 概况：对比、待办 ===== */
.stat-row .stat .d { font-size: 12px; margin-top: 4px; color: var(--xn-mute); display: flex; align-items: center; gap: 4px; }
.stat-row .stat .d.up { color: #157347; }
.stat-row .stat .d.down { color: #c1274a; }
.ops-todo {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px;
  margin: 0 0 14px;
}
.ops-todo a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--xn-radius); text-decoration: none; color: var(--xn-ink);
  background: #fff; border: 1px solid var(--xn-line);
  transition: transform .15s, box-shadow .15s;
}
.ops-todo a:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.ops-todo-ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  background: #e9f0ff; color: var(--xn-brand);
}
.ops-todo-ico .ico { width: 20px; height: 20px; }
.ops-todo a.is-hot .ops-todo-ico { background: #fff4e5; color: #b45309; }
.ops-todo-t { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.ops-todo-t b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ops-todo-t b small { font-size: 12px; font-weight: 500; color: var(--xn-mute); margin-left: 2px; }
.ops-todo-t span { font-size: 12px; color: var(--xn-mute); }
.ops-todo a.is-zero .ops-todo-t b { color: var(--xn-mute); }

/* ===== 登录页 ===== */
.ops-body-guest { background: #0b1220; }
.ops-login-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.ops-login-flash {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 5;
  padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600;
  background: rgba(255,255,255,.92); color: #157347; box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.ops-login-flash.is-err { color: #c1274a; }
.ops-login { flex: 1; display: grid; grid-template-columns: 1fr; }
.ops-login-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 600px at -10% -20%, rgba(47,107,255,.55), transparent 60%),
    radial-gradient(800px 500px at 110% 110%, rgba(107,77,255,.45), transparent 60%),
    linear-gradient(160deg, #0b1220 0%, #121c36 55%, #0b1220 100%);
}
.ops-login-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(closest-side at 40% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(closest-side at 40% 40%, #000 30%, transparent 100%);
}
.ops-login-glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.ops-login-glow-a { width: 360px; height: 360px; left: -80px; top: -60px; background: #2f6bff; }
.ops-login-glow-b { width: 420px; height: 420px; right: -120px; bottom: -160px; background: #8a5cff; }
.ops-login-hero-in { position: relative; z-index: 1; padding: 28px 24px 22px; display: flex; flex-direction: column; height: 100%; }
.ops-login-brand { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 650; color: rgba(255,255,255,.85); }
.ops-login-mark {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #2f6bff, #6b4dff);
  box-shadow: 0 10px 30px rgba(47,107,255,.45), inset 0 1px 0 rgba(255,255,255,.25);
}
.ops-login-mark .ico { width: 20px; height: 20px; }
.ops-login-h1 { font-size: 40px; font-weight: 800; letter-spacing: -.8px; line-height: 1.05; margin: 34px 0 12px; }
.ops-login-lead { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.72); margin: 0 0 26px; }
.ops-login-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ops-login-feats li {
  display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
}
.ops-login-feats .ico { grid-row: 1 / span 2; width: 22px; height: 22px; color: #9ab6ff; justify-self: center; }
.ops-login-feats b { font-size: 14px; font-weight: 700; }
.ops-login-feats span { font-size: 12px; color: rgba(255,255,255,.62); }
.ops-login-foot { margin-top: auto; padding-top: 24px; font-size: 12px; color: rgba(255,255,255,.4); }
.ops-login-panel {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  background: #0b1220;
}
.ops-login-form {
  width: 100%; max-width: 400px;
  padding: 26px 24px 22px; border-radius: 22px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.6);
}
.ops-login-head { text-align: center; margin-bottom: 18px; }
.ops-login-mark-sm { margin: 0 auto 12px; }
.ops-login-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.3px; margin: 0 0 4px; }
.ops-login-head p { margin: 0; font-size: 13px; color: var(--xn-mute); }
.ops-field { display: block; margin-top: 12px; }
.ops-field-k { display: block; font-size: 12px; font-weight: 650; color: var(--xn-mute); margin: 0 0 6px 2px; }
.ops-field-in {
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 12px; border-radius: 14px;
  background: #f4f5f7; border: 1px solid transparent; color: var(--xn-mute);
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.ops-field-in .ico { width: 20px; height: 20px; flex-shrink: 0; }
.ops-field-in input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none;
  font: inherit; font-size: 16px; color: var(--xn-ink);
}
.ops-field-in:focus-within { background: #fff; border-color: var(--xn-brand); box-shadow: 0 0 0 4px rgba(47,107,255,.14); color: var(--xn-brand); }
.ops-eye {
  width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--xn-mute); flex-shrink: 0;
}
.ops-eye:hover { background: rgba(0,0,0,.05); }
.ops-eye .ico { width: 18px; height: 18px; }
.ops-eye .ops-eye-off { display: none; }
.ops-eye.is-on .ops-eye-on { display: none; }
.ops-eye.is-on .ops-eye-off { display: block; }
.ops-login-go { width: 100%; margin-top: 20px; height: 50px; border-radius: 14px; font-size: 16px; }
.ops-login-hint { margin: 12px 2px 0; font-size: 12px; line-height: 1.5; color: var(--xn-mute); text-align: center; }
.ops-login-demo { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--xn-line); font-size: 12px; color: var(--xn-mute); }
.ops-login-demo summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; align-items: center; gap: 6px; }
.ops-login-demo summary::-webkit-details-marker { display: none; }
.ops-login-demo summary::before { content: '›'; display: inline-block; transition: transform .15s; font-size: 14px; }
.ops-login-demo[open] summary::before { transform: rotate(90deg); }
.ops-login-demo p { margin: 8px 0; }
.ops-login-demo code { background: var(--xn-soft-2); padding: 1px 6px; border-radius: 6px; color: var(--xn-ink); }
.ops-login-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ops-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px;
  border: 1px solid var(--xn-line); border-radius: 999px; background: #fff; cursor: pointer;
  font: inherit; font-size: 12px; color: var(--xn-ink);
}
.ops-chip b { font-weight: 650; }
.ops-chip small { color: var(--xn-mute); }
.ops-chip:hover, .ops-chip.on { border-color: var(--xn-brand); background: #e9f0ff; color: var(--xn-brand); }
.ops-chip.on small { color: inherit; }
.ops-login-back { margin-top: 16px; font-size: 13px; color: rgba(255,255,255,.6); text-decoration: none; }
.ops-login-back:hover { color: #fff; }
@media (min-width: 900px) {
  .ops-login { grid-template-columns: minmax(380px, 46%) 1fr; }
  .ops-login-hero-in { padding: 40px 48px 32px; max-width: 560px; }
  .ops-login-h1 { font-size: 52px; margin-top: 64px; }
  .ops-login-lead { font-size: 17px; }
  .ops-login-panel {
    background:
      radial-gradient(600px 400px at 80% 20%, rgba(47,107,255,.14), transparent 60%),
      #0f172a;
  }
}
@media (max-width: 899px) {
  .ops-login-hero { min-height: 0; }
  .ops-login-feats { display: none; }
  .ops-login-h1 { font-size: 32px; margin-top: 18px; }
  .ops-login-lead { margin-bottom: 8px; }
  .ops-login-lead br { display: none; }
  .ops-login-foot { display: none; }
  .ops-login-panel { margin-top: -18px; border-radius: 22px 22px 0 0; padding-top: 22px; flex: 1; }
}

/* ===== flatpickr 主题：圆角、品牌色、去掉默认的硬边 ===== */
.ops-fp.flatpickr-calendar {
  box-sizing: content-box; /* flatpickr 用 JS 把宽度写死成日历格宽度，padding 得算在外面 */
  border: 0; border-radius: 16px; padding: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,.16), 0 0 0 1px rgba(0,0,0,.05);
  font-family: var(--xn-font);
}
.ops-fp .numInputWrapper { flex: 0 0 auto; width: 7ch; }
.ops-fp.flatpickr-calendar::before, .ops-fp.flatpickr-calendar::after { display: none; }
.ops-fp .flatpickr-months { margin-bottom: 4px; }
.ops-fp .flatpickr-month, .ops-fp .flatpickr-current-month { height: 36px; line-height: 36px; }
.ops-fp .flatpickr-current-month { font-size: 15px; font-weight: 700; padding-top: 0; display: flex; align-items: center; justify-content: center; gap: 4px; }
.ops-fp .flatpickr-current-month .cur-month { font-weight: 700; }
.ops-fp .flatpickr-current-month input.cur-year { font-weight: 700; }
.ops-fp .flatpickr-months .flatpickr-prev-month, .ops-fp .flatpickr-months .flatpickr-next-month {
  height: 36px; width: 36px; padding: 8px; border-radius: 10px; color: var(--xn-mute);
}
.ops-fp .flatpickr-months .flatpickr-prev-month:hover, .ops-fp .flatpickr-months .flatpickr-next-month:hover { background: var(--xn-soft); color: var(--xn-ink); }
.ops-fp .flatpickr-months .flatpickr-prev-month svg, .ops-fp .flatpickr-months .flatpickr-next-month svg { width: 12px; height: 12px; }
.ops-fp span.flatpickr-weekday { color: var(--xn-mute); font-size: 11px; font-weight: 650; }
.ops-fp .flatpickr-day { border-radius: 10px; border: 0; font-size: 13px; font-weight: 550; color: var(--xn-ink); height: 36px; line-height: 36px; max-width: 36px; }
.ops-fp .flatpickr-day:hover { background: var(--xn-soft-2); }
.ops-fp .flatpickr-day.today { box-shadow: inset 0 0 0 1.5px var(--xn-brand); color: var(--xn-brand); }
.ops-fp .flatpickr-day.today:hover { background: var(--xn-soft-2); }
.ops-fp .flatpickr-day.selected, .ops-fp .flatpickr-day.startRange, .ops-fp .flatpickr-day.endRange,
.ops-fp .flatpickr-day.selected:hover, .ops-fp .flatpickr-day.startRange:hover, .ops-fp .flatpickr-day.endRange:hover {
  background: var(--xn-brand); border-color: var(--xn-brand); color: #fff; box-shadow: none;
}
.ops-fp .flatpickr-day.inRange { background: #e9f0ff; box-shadow: -5px 0 0 #e9f0ff, 5px 0 0 #e9f0ff; color: var(--xn-ink); }
.ops-fp .flatpickr-day.startRange.selected + .endRange:not(:nth-child(7n+1)),
.ops-fp .flatpickr-day.startRange + .endRange:not(:nth-child(7n+1)) { box-shadow: -10px 0 0 var(--xn-brand); }
.ops-fp .flatpickr-day.flatpickr-disabled, .ops-fp .flatpickr-day.flatpickr-disabled:hover,
.ops-fp .flatpickr-day.prevMonthDay, .ops-fp .flatpickr-day.nextMonthDay { color: #c7c7cc; }
.ops-fp .flatpickr-day.prevMonthDay.inRange, .ops-fp .flatpickr-day.nextMonthDay.inRange { color: var(--xn-mute); }
.ops-fp .numInputWrapper span { border: 0; opacity: 0; }
.ops-fp .numInputWrapper:hover { background: transparent; }
.ops-fp .flatpickr-monthDropdown-months { font-weight: 700; }

.vip-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  vertical-align: middle;
  background: var(--xn-soft-2, #f0f0f2);
  color: var(--xn-ink);
  letter-spacing: 0.02em;
}
.vip-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--xn-soft-2, #f0f0f2);
  margin-top: 10px;
  overflow: hidden;
}
.vip-bar i {
  display: block;
  height: 100%;
  background: var(--xn-brand);
  border-radius: inherit;
}
.vip-perks {
  margin-top: 10px;
  font-size: 13px;
  color: var(--xn-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vip-card select {
  height: var(--xn-btn-h);
  padding: 0 10px;
  border: 1px solid var(--xn-line);
  border-radius: var(--xn-radius);
  background: #fff;
  font: inherit;
  min-width: 72px;
}
button.circ-post-nick {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* ===== 账户中心 ===== */
.my-account { padding-bottom: 24px; }
.my-account > * + * { margin-top: 12px; }
.acc-head {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 4px 8px;
}
.acc-ava {
  width: 56px; height: 56px; border-radius: 50%;
  overflow: hidden; background: #e8f1ff; color: #1d4ed8;
  display: grid; place-items: center; font-weight: 800; font-size: 22px;
  flex-shrink: 0; text-decoration: none;
}
.acc-ava img { width: 100%; height: 100%; object-fit: cover; }
.acc-nick { font-size: 18px; font-weight: 800; }
.acc-uid {
  font-size: 13px; color: var(--xn-mute); margin-top: 2px;
  display: flex; align-items: center; gap: 8px;
}
.acc-copy {
  border: 0; background: transparent; color: var(--xn-brand);
  font-size: 12px; font-weight: 700; cursor: pointer; padding: 0; font-family: inherit;
}
.acc-group { overflow: hidden; }
.acc-group-h {
  padding: 10px 12px 4px; font-size: 11px; font-weight: 700;
  color: var(--xn-mute); letter-spacing: .04em;
}
.acc-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; min-height: 48px;
  text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--xn-line-soft);
}
.acc-row > .ico {
  width: 22px; height: 22px; flex: 0 0 22px;
}
.acc-row:last-child { border-bottom: 0; }
.acc-row.is-static { cursor: default; }
.acc-row-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.acc-row-lab { font-size: 15px; font-weight: 600; }
.acc-row-sub { font-size: 12px; color: var(--xn-mute); font-weight: 500; }
.acc-meta { font-size: 13px; color: var(--xn-mute); flex-shrink: 0; }
.acc-meta.is-brand { color: var(--xn-brand); font-weight: 700; }
.acc-chev { color: #c7c7cc; font-size: 22px; line-height: 1; font-weight: 300; }
.acc-badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; flex-shrink: 0;
  border-radius: 999px; background: #fe2c55; color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
}
.acc-head-edit {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  color: var(--xn-mute); background: var(--xn-soft-2); text-decoration: none;
}
.acc-head-edit .ico { width: 18px; height: 18px; }
.acc-head-edit:hover { color: var(--xn-ink); }
/* 顶部资产条：三格数字 + 充值 */
.acc-assets {
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: center; gap: 6px;
  background: var(--xn-surface); border: 1px solid var(--xn-line); border-radius: var(--xn-radius-lg);
  padding: 12px 12px 12px 6px; box-shadow: var(--xn-shadow);
}
.acc-assets > a {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0;
  padding: 6px 4px; border-radius: 12px; text-decoration: none; color: var(--xn-ink);
}
.acc-assets > a:hover { background: var(--xn-soft); }
.acc-assets b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-assets span { font-size: 11px; color: var(--xn-mute); font-weight: 500; }
.acc-assets .acc-assets-cta {
  flex-direction: row; height: 36px; padding: 0 16px; border-radius: 999px;
  background: var(--xn-brand); color: #fff; font-size: 13px; font-weight: 700;
}
.acc-assets .acc-assets-cta:hover { background: var(--xn-brand); filter: brightness(1.06); }
/* 四宫格快捷入口 */
.acc-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 12px 8px; }
.acc-quick > a {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 8px 4px; border-radius: 12px; text-decoration: none; color: var(--xn-ink);
  font-size: 12px; font-weight: 600; text-align: center;
}
.acc-quick > a:hover { background: var(--xn-soft); }
.acc-quick-ico {
  position: relative; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--xn-soft-2); color: var(--xn-ink);
}
.acc-quick-ico .ico { width: 22px; height: 22px; }
.acc-quick-ico.is-blue { background: #e9f0ff; color: #2f6bff; }
.acc-quick-ico.is-cyan { background: #e3f6fb; color: #0f8aa8; }
.acc-quick-ico.is-peach { background: #fff1e6; color: #c2570f; }
.acc-quick-ico.is-mint { background: #e7f7ee; color: #157347; }
.acc-quick-n {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--xn-ink); color: #fff; font-size: 10px; font-weight: 700; font-style: normal;
  display: grid; place-items: center; line-height: 1; border: 2px solid var(--xn-surface);
}
.acc-quick-dot { position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; border-radius: 50%; background: #fe2c55; border: 2px solid var(--xn-surface); }
.acc-row-hi .acc-row-lab { font-weight: 700; }
.acc-ava-lg {
  position: relative; width: 88px; height: 88px; margin: 0 auto;
  border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: #e8f1ff; color: #1d4ed8; font-size: 32px; font-weight: 800;
}
.acc-ava-lg img, .acc-ava-lg span { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; }
.ava-pick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 12px;
}
.ava-pick-item {
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  background: var(--xn-soft);
  cursor: pointer;
}
.ava-pick-item.is-on { border-color: var(--xn-ink); }
.ava-pick-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ava-upload { margin-top: 4px; }
.vip-perks a {
  color: var(--xn-brand);
  text-decoration: none;
  font-weight: 650;
}
.acc-bind-form { padding: 8px 12px 12px; border-bottom: 1px solid var(--xn-line-soft); }
.acc-bind-form:last-child { border-bottom: 0; }
.acc-bind-lab { margin-top: 0; }
.acc-bind-row { display: flex; gap: 8px; align-items: center; }
.acc-bind-row input { flex: 1; min-width: 0; width: auto; }
.acc-bind-row .btn { flex-shrink: 0; width: auto; }
.acc-code { max-width: 140px; width: auto; letter-spacing: .12em; }
.acc-bind-hint { margin: 6px 0 0; font-size: 12px; color: var(--xn-mute); }
/* 账号页：未绑定提醒条 */
.acc-tip {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-radius: 12px; background: #fff4e5; color: #b45309; font-size: 12px; font-weight: 600; text-decoration: none;
}
.acc-tip .ico { width: 16px; height: 16px; flex-shrink: 0; }
/* 账号页页脚：关于 / 条款 / 备案 */
.acc-legal {
  margin: 18px 0 8px; text-align: center; font-size: 11px; line-height: 1.8; color: var(--xn-mute);
}
.acc-legal a { color: inherit; text-decoration: none; }
.acc-legal a:hover { color: var(--xn-ink); }
.acc-legal .sep { margin: 0 6px; opacity: .5; }
.acc-legal-row { display: block; }

/* ===== 条款 / 隐私 / 关于 ===== */
.legal-brand { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; }
.legal-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 12px 0 0; font-size: 14px; }
.legal-dl dt { color: var(--xn-mute); font-weight: 500; }
.legal-dl dd { margin: 0; min-width: 0; word-break: break-all; }
.legal-dl dd a { color: var(--xn-ink); text-decoration: none; border-bottom: 1px solid var(--xn-line); }
.legal-body { font-size: 15px; line-height: 1.7; }
.legal-body p { margin: 0 0 12px; }
.legal-body p:last-child { margin-bottom: 0; }
.legal-h { font-size: 15px; font-weight: 700; margin: 18px 0 8px; }
.legal-h:first-child, .legal-upd + .legal-h { margin-top: 0; }
.legal-upd { margin: 0 0 14px; font-size: 12px; color: var(--xn-mute); }
.legal-links { display: flex; gap: 14px; justify-content: center; font-size: 13px; margin: 0 0 24px; }
.legal-links a { color: var(--xn-mute); text-decoration: none; }
.legal-links a:hover { color: var(--xn-ink); }

/* ===== 推广页 ===== */
.page-head:not(.xn-page-head) .page-head-act {
  flex-shrink: 0; font-size: 14px; font-weight: 600; color: var(--xn-mute); text-decoration: none;
  padding: 6px 10px; border-radius: 999px;
}
.page-head:not(.xn-page-head) .page-head-act:hover { background: var(--xn-soft-2); color: var(--xn-ink); }
.aff-hero {
  position: relative; overflow: hidden; color: #fff;
  border-radius: var(--xn-radius-lg); padding: 20px 18px 18px; margin-bottom: 14px;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(255,255,255,.22), transparent 70%),
    radial-gradient(360px 260px at 0% 100%, rgba(107,77,255,.55), transparent 70%),
    linear-gradient(135deg, #2f6bff 0%, #4a56e2 60%, #6b4dff 100%);
  box-shadow: 0 16px 40px rgba(47,107,255,.28);
}
.aff-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.aff-hero-k { font-size: 13px; font-weight: 600; opacity: .85; }
.aff-hero-v { font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin-top: 2px; font-variant-numeric: tabular-nums; }
.aff-hero-v small { font-size: 22px; font-weight: 700; margin-left: 2px; opacity: .9; }
.aff-spec {
  flex-shrink: 0; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.aff-hero-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px;
}
.aff-hero-grid > div {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px; padding: 10px 10px 9px; min-width: 0;
}
.aff-hero-grid .k { display: block; font-size: 11px; font-weight: 600; opacity: .85; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aff-hero-grid b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aff-hero-grid b small { font-size: 11px; font-weight: 600; margin-left: 2px; opacity: .85; }
.aff-hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 13px; opacity: .92; }
.aff-hero-foot b { font-weight: 800; }
.aff-hero-foot a { color: #fff; text-decoration: none; font-weight: 600; opacity: .9; }
.aff-progress { margin-top: 14px; }
.aff-progress-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.22); overflow: hidden; }
.aff-progress-bar i { display: block; height: 100%; border-radius: 999px; background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.6); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.aff-progress-t { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12px; opacity: .92; }
.aff-progress-t b { font-weight: 800; }
.aff-progress-t .r { opacity: .85; flex-shrink: 0; }

.aff-tools { display: flex; gap: 16px; align-items: stretch; padding: 16px; }
.aff-qr {
  flex: 0 0 148px; width: 148px; height: 148px; border-radius: 16px; padding: 8px;
  background: #fff; border: 1px solid var(--xn-line); display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.02);
}
.aff-qr svg { width: 100%; height: 100%; display: block; }
.aff-qr-ph { font-size: 12px; color: var(--xn-mute); }
.aff-tools-r { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.aff-lab { font-size: 12px; font-weight: 600; color: var(--xn-mute); margin: 0; }
.aff-code-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.aff-code { font-size: 24px; font-weight: 800; letter-spacing: .14em; color: var(--xn-ink); font-variant-numeric: tabular-nums; }
.aff-tools .acc-bind-row input { font-size: 13px; }
.aff-tool-btns { display: flex; gap: 8px; margin-top: 6px; }
.aff-tool-btns .btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.aff-tool-btns .ico { width: 18px; height: 18px; }
.aff-tools .acc-bind-hint { margin-top: 4px; }
@media (max-width: 520px) {
  .aff-tools { flex-direction: column; align-items: center; }
  .aff-qr { flex-basis: auto; width: 180px; height: 180px; }
  .aff-tools-r { width: 100%; }
}

.aff-rules {
  background: var(--xn-surface); border: 1px solid var(--xn-line); border-radius: var(--xn-radius-lg);
  padding: 6px 0 6px; margin-bottom: 4px;
}
.aff-rules-how { margin: 8px 14px 10px; font-size: 13px; line-height: 1.6; color: var(--xn-mute); }
.aff-rules-how b { color: var(--xn-ink); }
.aff-rules-sub { margin: 10px 14px 4px; font-size: 12px; font-weight: 700; color: var(--xn-mute); }
.aff-tier {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-top: 1px solid var(--xn-line-soft); font-size: 14px;
}
.aff-tier-k { color: var(--xn-mute); font-size: 13px; flex-shrink: 0; }
.aff-tier-d { flex: 1; min-width: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.aff-tier b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--xn-ink); }
.aff-tier.is-on { background: #eef3ff; }
.aff-tier.is-on b { color: var(--xn-brand); }
.aff-tier.is-on .aff-tier-d::after { content: '当前'; margin-left: 8px; font-size: 11px; font-weight: 700; color: #fff; background: var(--xn-brand); padding: 2px 6px; border-radius: 999px; vertical-align: 1px; }
.aff-tier.is-rebate.is-on .aff-tier-d::after { content: '已达'; background: #157347; }
.aff-n { margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--xn-mute); }

.aff-ava.xhs-ava { width: 40px; height: 40px; font-size: 16px; }
.aff-vip { font-style: normal; margin-left: 6px; font-size: 10px; font-weight: 800; color: #b45309; background: #fff4e5; padding: 1px 5px; border-radius: 999px; vertical-align: 1px; }
.aff-comm { flex-shrink: 0; font-size: 15px; font-weight: 800; color: #157347; font-variant-numeric: tabular-nums; }
.aff-comm small { font-size: 11px; font-weight: 600; margin-left: 2px; }
.aff-comm.is-zero { color: var(--xn-mute); font-weight: 600; }
.aff-order { flex-shrink: 0; font-size: 11px; color: var(--xn-mute); font-variant-numeric: tabular-nums; }
.aff-bound { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--xn-ink); }
.aff-bound .ico { width: 20px; height: 20px; color: #157347; flex-shrink: 0; }

/* 多级：层级胶囊（直推 / 二级 / 三级） */
.aff-lv {
  display: inline-flex; align-items: center; font-style: normal; font-size: 12px; font-weight: 800;
  padding: 2px 9px; border-radius: 999px; line-height: 1.4; flex-shrink: 0; white-space: nowrap;
}
.aff-lv-1 { background: rgba(47,107,255,.12); color: #2f6bff; }
.aff-lv-2 { background: rgba(21,115,71,.12); color: #157347; }
.aff-lv-3 { background: rgba(180,83,9,.12); color: #b45309; }
.aff-lv.is-sm { font-size: 10px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
html[data-theme="dark"] .aff-lv-1 { color: #8fb0ff; }
html[data-theme="dark"] .aff-lv-2 { color: #5fd38d; }
html[data-theme="dark"] .aff-lv-3 { color: #f5b04c; }

/* 我的团队：你 › 直推 › 二级 › 三级，每级 比例 / 人数 / 给我的分成 */
.aff-team { padding: 6px 14px 10px; margin-bottom: 4px; }
.aff-chain { display: flex; align-items: center; gap: 6px; padding: 8px 0 10px; font-size: 12px; color: var(--xn-mute); flex-wrap: wrap; }
.aff-chain span { padding: 3px 10px; border-radius: 999px; background: var(--xn-soft-2); font-weight: 600; color: var(--xn-ink); }
.aff-chain span.is-me { background: var(--xn-brand); color: #fff; }
.aff-chain i { font-style: normal; opacity: .55; font-weight: 700; }
.aff-team-row {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 12px 0; border-top: 1px solid var(--xn-line-soft);
}
.aff-team > .aff-team-row:first-child, .aff-chain + .aff-team-row { border-top: 0; }
.aff-team-row.is-off { opacity: .5; }
.aff-team-rate { font-size: 13px; color: var(--xn-mute); font-variant-numeric: tabular-nums; line-height: 1.15; }
.aff-team-rate b { font-size: 22px; font-weight: 800; color: var(--xn-ink); letter-spacing: -.02em; }
.aff-team-rate small { display: block; font-size: 11px; margin-top: 2px; }
.aff-team-n { font-size: 13px; color: var(--xn-mute); font-variant-numeric: tabular-nums; }
.aff-team-n b { font-size: 18px; font-weight: 800; color: var(--xn-ink); margin-right: 2px; }
.aff-team-earn { text-align: right; font-size: 14px; font-weight: 800; color: #157347; font-variant-numeric: tabular-nums; line-height: 1.2; }
.aff-team-earn small { display: block; font-size: 11px; font-weight: 600; color: var(--xn-mute); margin-top: 2px; }
.aff-team-earn.is-zero { color: var(--xn-mute); font-weight: 600; }
.aff-team-how { margin: 10px 0 2px; font-size: 12px; line-height: 1.6; color: var(--xn-mute); }
.aff-team-how b { color: var(--xn-ink); }

/* 团队成员：直推 / 二级 / 三级 分段切换（纯 CSS，radio 兄弟选择器） */
.aff-people { position: relative; margin-bottom: 4px; }
.aff-lv-in { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.aff-seg { display: flex; gap: 4px; padding: 4px; background: var(--xn-soft-2); border-radius: 12px; margin-bottom: 10px; }
.aff-seg label {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 6px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--xn-mute); cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s; user-select: none;
}
.aff-seg label b { font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 999px; background: rgba(0,0,0,.06); line-height: 18px; font-variant-numeric: tabular-nums; }
html[data-theme="dark"] .aff-seg label b { background: rgba(255,255,255,.1); }
.aff-people.has-seg .aff-lv-pane { display: none; }
#aff-lv1:checked ~ .aff-seg label[for="aff-lv1"],
#aff-lv2:checked ~ .aff-seg label[for="aff-lv2"],
#aff-lv3:checked ~ .aff-seg label[for="aff-lv3"] { background: var(--xn-surface); color: var(--xn-ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
#aff-lv1:checked ~ .aff-lv-pane[data-lv="1"],
#aff-lv2:checked ~ .aff-lv-pane[data-lv="2"],
#aff-lv3:checked ~ .aff-lv-pane[data-lv="3"] { display: block; }
.aff-lv-empty {
  padding: 22px 14px; text-align: center; font-size: 13px; color: var(--xn-mute);
  background: var(--xn-surface); border: 1px solid var(--xn-line); border-radius: var(--xn-radius-lg);
}
@media (max-width: 420px) {
  .aff-team-row { grid-template-columns: 50px minmax(0, 1fr) auto auto; gap: 8px; }
  .aff-team-rate b { font-size: 19px; }
  .aff-team-n b { font-size: 16px; }
}

.aff-sheet { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.aff-sheet[hidden] { display: none; }
.aff-sheet-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.aff-sheet-card {
  position: relative; width: min(360px, 100%); background: #fff; border-radius: 20px; padding: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.aff-sheet-card img { width: 100%; border-radius: 12px; display: block; max-height: min(70vh, 560px); object-fit: contain; }
.aff-sheet-hint { margin: 0; font-size: 12px; color: var(--xn-mute); }
.aff-sheet-btns { display: flex; gap: 8px; width: 100%; }
.aff-sheet-btns .btn { flex: 1; }

/* 新人红包弹窗：毛玻璃遮罩 + 一张卡；数字大、按钮两枚，撒花在 canvas（app.js xnConfetti） */
.onb-pop { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; }
.onb-pop.is-out { pointer-events: none; }
.onb-scrim { position: absolute; inset: 0; background: rgba(10,10,14,.5); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); }
.onb-card {
  position: relative; width: min(360px, 100%); border-radius: 24px; overflow: hidden;
  background: rgba(255,255,255,.92); backdrop-filter: blur(var(--xn-blur, 20px)); -webkit-backdrop-filter: blur(var(--xn-blur, 20px));
  box-shadow: 0 30px 80px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.6);
  animation: onbIn .42s cubic-bezier(.2,.9,.25,1.2) both;
}
@keyframes onbIn { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
.onb-pop.is-out .onb-card { animation: onbOut .22s ease both; }
.onb-pop.is-out .onb-scrim { animation: onbFade .22s ease both; }
@keyframes onbOut { to { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes onbFade { to { opacity: 0; } }
.onb-x {
  position: absolute; right: 10px; top: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.28); color: #fff; font-size: 20px; line-height: 1; display: grid; place-items: center; cursor: pointer;
}
.onb-head {
  padding: 26px 20px 18px; text-align: center; color: #fff;
  background: linear-gradient(160deg, #ff6b4a 0%, #ff3d6e 55%, #c92a8f 100%);
}
.onb-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; opacity: .92; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.18); }
.onb-amount { margin-top: 12px; display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.onb-amount b { font-size: 56px; line-height: 1; font-weight: 800; letter-spacing: -.02em; text-shadow: 0 2px 10px rgba(0,0,0,.18); }
.onb-amount small { font-size: 14px; font-weight: 700; opacity: .9; }
.onb-amount.is-text b { font-size: 48px; }
.onb-sub { margin-top: 8px; font-size: 13px; font-weight: 600; opacity: .95; }
.onb-list { list-style: none; margin: 0; padding: 14px 18px 4px; display: flex; flex-direction: column; gap: 10px; }
.onb-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #3a3a3f; line-height: 1.45; }
.onb-list li .ico { flex-shrink: 0; margin-top: 1px; color: var(--xn-brand, #2f6bff); }
.onb-list b { color: #111; }
.onb-btns { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px 18px; }
.onb-btns .btn { width: 100%; margin: 0; justify-content: center; }
.onb-confetti { position: fixed; inset: 0; z-index: 96; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .onb-card, .onb-pop.is-out .onb-card, .onb-pop.is-out .onb-scrim { animation: none; }
}
.acc-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--xn-soft-2); border-radius: 999px; padding: 0 14px;
  height: 40px; margin-bottom: 12px;
}
.acc-search input { border: 0; background: transparent; min-height: 40px; padding: 0; }
.acc-search-hint { text-align: center; font-size: 12px; color: var(--xn-mute); margin: 0 0 14px; }
.acc-page { width: 100%; max-width: none; }
.acc-game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 640px) {
  .acc-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .acc-game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.acc-game-card {
  display: flex; align-items: center; gap: 12px;
  min-height: 72px;
  padding: 14px; border-radius: 16px; background: var(--xn-surface);
  border: 0; text-decoration: none; color: inherit;
}
.acc-game-ico { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.acc-game-name {
  display: block; font-size: 14px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acc-game-n { display: block; font-size: 12px; color: #0f766e; font-weight: 650; margin-top: 2px; }
.tt-oauth { margin-top: 20px; text-align: center; color: #8a8b91; font-size: 12px; }
.tt-oauth span { display: block; margin-bottom: 8px; }
.tt-oauth-btn {
  display: inline-flex; margin: 0 4px; padding: 8px 12px; border-radius: 10px;
  background: #f1f1f2; color: #161823; text-decoration: none; font-weight: 700; font-size: 13px;
}
html[data-theme="dark"] .acc-game-card { background: #1c1c1e; }
html[data-theme="dark"] .acc-ava,
html[data-theme="dark"] .acc-ava-lg { background: #1e3a5f; color: #93c5fd; }

.mail-hub-link {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 12px 0; padding: 10px 12px;
  border-radius: 12px; background: var(--xn-soft);
  color: inherit; text-decoration: none; font-size: 14px; font-weight: 650;
}
.mail-hub-link em {
  font-style: normal; margin-left: auto; font-size: 12px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: #ff3b30; color: #fff; text-align: center; line-height: 18px;
}
.mail-hub-link .acc-chev { margin-left: auto; }
.mail-hub-link em + .acc-chev { margin-left: 6px; }
.mail-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--xn-line);
}
.mail-row:last-child { border-bottom: 0; }
.mail-row-main { flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.mail-row-title { display: block; font-weight: 650; font-size: 15px; }
.mail-row-meta { display: block; font-size: 12px; color: var(--xn-mute); margin-top: 2px; }
.pick-list { display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow: auto; }
.pick-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 4px; cursor: pointer;
}
.pick-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 650; }
.pay-qr img {
  display: block; margin: 0 auto 10px; width: 220px; height: 220px;
  border-radius: 12px; background: #fff;
}

/* ===== 积分小游戏：微信胶囊浮在游戏层，无白顶栏 ===== */
.mp-slot.is-minigame .mp-window {
  --mp-bar: 0px;
  background: #000;
}
@media (min-width: 768px) {
  .mp-slot.is-minigame.is-stage .mp-window {
    --mp-frame-w: min(calc(100vw - 24px), calc((100vh - 16px) * 9 / 16));
    width: var(--mp-frame-w);
    height: min(calc(100vh - 16px), calc(var(--mp-frame-w) * 16 / 9));
    border-radius: 20px;
  }
}

.mg-app {
  position: relative;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  background: #152238;
}
.mg-app--hex { background: radial-gradient(120% 80% at 50% 20%, #243b6b 0%, #152238 55%, #0b1220 100%); }
.mg-app--blocks { background: radial-gradient(120% 80% at 50% 20%, #3b2a6b 0%, #1a1530 55%, #0f0a1a 100%); }
.mg-app--hoop { background: #0f172a; }
.mg-app--rush { background: #020617; }
.mg-app--bf { background: #6aa3d1; }
.mg-app--rail { background: #0b1020; }
.mg-app--td { background: #2a4a28; }
.mg-app--royale { background: #1b3a2a; }
.mg-app--isle { background: #8ec8e8; }
.mg-app--realm { background: #1b2434; }
.mg-app--circle { background: #1a2332; }
.mg-app--zy { background: #e8dfd0; }
.mg-app--zy:has(.zy-hub) { touch-action: auto; }
.zy-hub {
  position: absolute; inset: 0; z-index: 2;
  padding: calc(56px + env(safe-area-inset-top, 0px)) 16px 20px;
  overflow: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y;
}
.zy-hub-title {
  margin: 0 0 6px; font-size: 22px; font-weight: 800; color: #7a1f1f;
  font-family: "SimSun","STSong","Songti SC",serif;
  letter-spacing: 0.04em;
}
.zy-hub-k { margin: 0 0 12px; font-size: 13px; color: #57534e; }
.zy-box {
  background: rgba(255,253,248,.78);
  border-radius: var(--xn-radius-lg);
  padding: 12px 14px; margin-bottom: 10px;
}
.zy-box h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #44403c; }
.zy-hint { margin: 0 0 8px; font-size: 12px; line-height: 1.45; color: #78716c; }
.zy-row { display: flex; flex-wrap: wrap; gap: 8px; }
.zy-chip {
  border: 0; border-radius: var(--xn-radius); padding: 8px 10px;
  font: inherit; font-size: 12px; line-height: 1.3;
  background: #efe8d8; color: #1c1917; cursor: pointer; min-height: 36px; text-align: left;
}
.zy-chip.is-on { box-shadow: inset 0 0 0 2px #7a1f1f; }
.zy-chip.is-sold { opacity: .4; }
.zy-ops { display: flex; gap: 8px; margin-top: 4px; }
.zy-ops .btn { flex: 1; }
.mg-app--gomoku { background: #c9a36a; }
.mg-app--liar { background: #3b2a1e; }
.mg-app--idiom { background: #f3efe6; }
.mg-app--link { background: #f7f3ea; }
.mg-app--flip { background: #efe7d8; }
.mg-app--match3 { background: #f4efe6; }
.mg-app--g2048 { background: #faf8ef; }
.mg-app--snake { background: #0f172a; }
.mg-app--mines { background: #e8e4dc; }
.mg-app--tetris { background: #0b1220; }
.mg-app--oss { background: #0b0b0c; touch-action: auto; }
.mg-oss-frame {
  display: block; width: 100%; height: 100%;
  border: 0; background: #0b0b0c;
}
.mg-end {
  height: 30px; min-height: 30px; padding: 0 10px;
  border-radius: 999px; font-size: 12px; font-weight: 650;
}
.zy-row .btn { min-height: 44px; }
.zy-row .btn.is-sold { opacity: .4; pointer-events: none; }
body.embed-full:has(.mg-app) { background: #0b1220; }
body.embed-full:has(.mg-app--rail) { background: #0b1020; }
body.embed-full:has(.mg-app--zy) { background: #e8dfd0; }
body.embed-full:has(.mg-app--match3) { background: #f4efe6; }
body.embed-full:has(.mg-app--g2048) { background: #faf8ef; }
body.embed-full:has(.mg-app--snake) { background: #0f172a; }
body.embed-full:has(.mg-app--mines) { background: #e8e4dc; }
body.embed-full:has(.mg-app--tetris) { background: #0b1220; }
body.embed-full:has(.mg-app--gomoku) { background: #c9a36a; }
body.embed-full:has(.mg-app--link),
body.embed-full:has(.mg-app--flip),
body.embed-full:has(.mg-app--idiom) { background: #f3efe6; }

.mg-stage { position: absolute; inset: 0; }
.mg-cv { display: block; width: 100%; height: 100%; touch-action: none; }

.mg-score {
  position: absolute;
  top: calc(48px + env(safe-area-inset-top, 0px));
  left: 0; right: 0;
  text-align: center;
  font-size: 28px; font-weight: 800; letter-spacing: -0.02em;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 10px rgba(0,0,0,.28);
  pointer-events: none;
  z-index: 5;
}

.mg-hud {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 0;
  pointer-events: none;
}
.mg-hud > * { pointer-events: auto; }
.mg-hud-l { display: flex; align-items: center; gap: 8px; min-width: 0; }

.mg-pts, .mg-cap {
  height: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.45);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  color: #111;
  box-shadow: 0 1px 8px rgba(0,0,0,.08);
}
html[data-theme="dark"] .mg-pts,
html[data-theme="dark"] .mg-cap {
  background: rgba(255,255,255,.72);
  color: #111;
}
.mg-pts {
  display: flex; align-items: center;
  padding: 0 12px;
  font-size: 13px; font-weight: 700;
  min-width: 72px;
}
.mg-pts--ghost { visibility: hidden; min-width: 32px; padding: 0; background: none; border: 0; box-shadow: none; }

.mg-cap { display: flex; align-items: center; overflow: hidden; }
.mg-cap-btn {
  width: 42px; height: 32px; border: 0; background: transparent;
  display: grid; place-items: center; cursor: pointer;
  color: #111; text-decoration: none; padding: 0;
}
.mg-cap-btn:active { background: rgba(0,0,0,.06); }
.mg-cap-split { width: 1px; height: 16px; background: rgba(0,0,0,.18); flex-shrink: 0; }

.mg-dots {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #111;
  box-shadow: -6px 0 0 #111, 6px 0 0 #111;
}

.mg-ring {
  width: 16px; height: 16px;
  border: 1.6px solid #111;
  border-radius: 50%;
  position: relative;
  display: block;
}
.mg-ring::after {
  content: '';
  position: absolute;
  inset: 3.4px;
  border: 1.5px solid #111;
  border-radius: 50%;
}

.mg-cover {
  position: absolute; inset: 0; z-index: 12;
  display: grid; place-items: center;
  background: rgba(8,12,24,.28);
  padding: 24px;
}
.mg-cover[hidden] { display: none; }
.mg-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  min-width: 200px;
}
.mg-hint { margin: 0; font-size: 13px; color: rgba(255,255,255,.72); text-align: center; }
.mg-over-n {
  font-size: 44px; font-weight: 800; letter-spacing: -0.03em;
  color: #fff; line-height: 1;
  text-shadow: 0 2px 16px rgba(0,0,0,.25);
}

.mg-pop {
  position: absolute; inset: 0; z-index: 30;
}
.mg-pop.hidden, .mg-pop[hidden] { display: none; }
.mg-pop-scrim {
  position: absolute; inset: 0; border: 0; padding: 0;
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.mg-pop-card {
  position: absolute;
  top: calc(48px + env(safe-area-inset-top, 0px));
  right: 10px;
  left: 10px;
  max-width: 320px;
  margin-left: auto;
  padding: 16px;
  border-radius: var(--xn-radius-lg);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.5);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  color: #111;
  box-shadow: 0 12px 40px rgba(0,0,0,.16);
}
html[data-theme="dark"] .mg-pop-card {
  background: rgba(255,255,255,.82);
  color: #111;
}
.mg-pop-name { font-size: 17px; font-weight: 800; }
.mg-pop-how { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: #3c3c43; }
.mg-pop-k { margin-top: 14px; font-size: 12px; font-weight: 700; color: #8b8b8f; }
.mg-pop-rank { margin-top: 6px; }
.mg-pop-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; font-size: 13px;
}
.mg-pop-i { width: 18px; color: #8b8b8f; font-size: 12px; }
.mg-pop-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.mg-pop-s { font-weight: 800; }
.mg-pop-ops { display: flex; gap: 8px; margin-top: 16px; }
.mg-pop-ops .btn { flex: 1; }

/* 每日转盘：游戏中心福利子页 */
.wh-page { max-width: 560px; margin: 0 auto; }
.wh-month {
  margin: 0 0 16px; font-size: 15px; line-height: 1.4; color: var(--xn-ink);
}
.wh-month b { font-weight: 750; }
.wh-month span { margin-left: 10px; color: var(--xn-mute); font-weight: 600; }
.wh-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 0 16px;
}
.wh-skip { font-size: 14px; color: var(--xn-mute); display: flex; align-items: center; gap: 8px; }
.wh-chance-wrap { position: relative; }
.wh-chance {
  min-width: 52px; height: 36px; padding: 4px 12px; border-radius: 999px;
  background: var(--xn-ink); color: var(--xn-surface);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; line-height: 1;
}
.wh-chance small {
  font-size: 10px; font-weight: 600; opacity: .72; letter-spacing: .04em;
}
.wh-chance.is-pop { box-shadow: 0 0 0 4px var(--xn-brand-soft); }
.wh-tip {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  width: max-content; max-width: min(260px, 72vw);
  padding: 12px 32px 12px 14px;
  border-radius: 14px;
  background: var(--xn-glass-dark);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  z-index: 6;
  animation: wh-tip-in .2s ease-out;
}
.wh-tip b { display: block; font-size: 14px; font-weight: 750; line-height: 1.3; }
.wh-tip span { display: block; margin-top: 4px; font-size: 12px; opacity: .82; line-height: 1.35; }
.wh-tip::after {
  content: ""; position: absolute; right: 22px; bottom: -6px;
  width: 12px; height: 12px; background: inherit;
  transform: rotate(45deg); border-radius: 2px;
}
.wh-tip-x {
  position: absolute; top: 6px; right: 8px;
  width: 28px; height: 28px; border: 0; background: transparent;
  color: #fff; font-size: 20px; line-height: 1; cursor: pointer; opacity: .7;
}
.wh-tip.hidden { display: none; }
@keyframes wh-tip-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.wh-board { position: relative; margin: 0 0 16px; }
.wh-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(9, 1fr);
  gap: 4px; aspect-ratio: 8 / 9;
}
.wh-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--xn-soft-2); padding: 2px;
  font-size: 10px; line-height: 1.2; text-align: center; color: var(--xn-ink);
}
.wh-cell em { font-style: normal; font-weight: 650; }
.wh-cell b { font-size: 10px; color: var(--xn-mute); font-weight: 600; }
.wh-cell.on { outline: 2px solid var(--xn-brand); }
.wh-cell.is-win { background: var(--xn-brand-soft); outline: 2px solid var(--xn-brand); }
.wh-center {
  position: absolute; left: 14.5%; top: 13%; right: 14.5%; bottom: 13%;
  display: grid; place-items: center;
  border-radius: 20px;
  background: var(--xn-glass);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  font-size: 36px; font-weight: 800; color: var(--xn-ink);
  text-align: center; padding: 12px;
}
.wh-center small { display: block; font-size: 15px; font-weight: 600; color: var(--xn-mute); }
.wh-zones { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.wh-zone { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.wh-sheet {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: end center;
}
.wh-sheet.hidden { display: none; }
.wh-sheet-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.32); }
.wh-sheet-card {
  position: relative; width: 100%; max-width: 480px;
  background: var(--xn-surface); border-radius: 20px 20px 0 0;
  padding: 20px 16px calc(16px + env(safe-area-inset-bottom, 0px));
}
.xn-row.is-today { align-items: flex-start; }
.xn-row.is-today .btn.sm { margin-top: 2px; }
.wh-row-hint {
  display: inline-block; margin-top: 4px; padding: 0;
  border: 0; background: none; text-align: left;
  font-size: 12px; line-height: 1.35; font-weight: 650;
  color: var(--xn-brand); cursor: pointer;
}
.wh-row-hint.is-done { color: var(--xn-mute); cursor: default; font-weight: 600; }

/* ===== 应用盒子：一排 3，图标 + 名称 + 次数 + 星 ===== */
.app-box {
  max-width: none;
  width: 100%;
}
.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 768px) {
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.app-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 88px;
  padding: 14px 16px;
  border: 0;
  border-radius: 16px;
  background: var(--xn-surface);
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}
.app-row-ico {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--xn-soft-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.app-row-ico .ico { width: 36px; height: 36px; }
.app-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app-row-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--xn-mute);
}
.app-row-star {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #f59e0b;
  font-weight: 650;
}
.app-row-star .ico { width: 12px; height: 12px; }
.app-row-brief {
  font-size: 12px;
  color: var(--xn-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-row .btn { flex-shrink: 0; pointer-events: none; }

/* 本机音乐小程序 */
body.embed-bare:has(.xn-music) { background: var(--xn-soft) !important; }
.xn-music { max-width: 560px; padding: 52px 16px 24px; }
.xn-music-now {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 0 20px;
  text-align: center;
}
.xn-music-art {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--xn-soft-2);
  display: grid;
  place-items: center;
}
.xn-music-art .ico { width: 44px; height: 44px; }
.xn-music-art.is-on { animation: xn-music-spin 8s linear infinite; }
.xn-music-now-name { font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.xn-music-now-sub { font-size: 13px; color: var(--xn-mute); }
.xn-music-ctrl,
.xn-music-acts {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 16px;
}
.xn-music-list { margin-top: 8px; }
.xn-music-item {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.xn-music-item.is-on .xn-row-title { font-weight: 750; }
.xn-music-about { padding: 4px 2px 24px; }
.xn-music-about p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--xn-ink);
}
.xn-music-about-lead { font-weight: 700; }
@keyframes xn-music-spin {
  to { transform: rotate(360deg); }
}

.mp-slot.is-dock.is-music-app {
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  box-shadow: none;
  right: 0;
  bottom: 0;
}
.mp-slot.is-dock.is-music-app .mp-window {
  transform: none;
  width: 1px;
  height: 1px;
}
.mp-slot.is-dock.is-music-app .mp-pip-face { display: none !important; }

.xn-music-dock {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 62;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(220px, calc(100vw - 32px));
  height: 56px;
  padding: 6px 12px 6px 6px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  background: var(--xn-glass);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}
.xn-music-dock[hidden] { display: none !important; }
.xn-music-cd {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--xn-soft-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.xn-music-cd .ico { width: 22px; height: 22px; }
.xn-music-dock.is-on .xn-music-cd { animation: xn-music-spin 8s linear infinite; }
.xn-music-marquee {
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.xn-music-marquee em {
  display: inline-block;
  padding-left: 100%;
  font-style: normal;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  animation: xn-music-marquee 9s linear infinite;
}
@keyframes xn-music-marquee {
  to { transform: translateX(-100%); }
}
@media (max-width: 767px) {
  .xn-music-dock {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
}
body.mp-music-dock .mp-slot.is-dock[data-dock="0"] {
  bottom: calc(84px + 72px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 768px) {
  body.mp-music-dock .mp-slot.is-dock[data-dock="0"] { bottom: 92px; }
}

.xn-app-leave {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.xn-app-leave.hidden,
.xn-app-leave[hidden] { display: none !important; }
.xn-app-leave-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, .4);
  cursor: pointer;
}
.xn-app-leave-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 20px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  border-radius: 22px 22px 0 0;
  background: var(--xn-glass);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .18);
}
.xn-app-leave-title { font-size: 17px; font-weight: 750; margin: 0 0 8px; }
.xn-app-leave-body {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--xn-mute);
}
.xn-app-leave-acts { display: flex; gap: 8px; }
html[data-theme="dark"] .xn-app-leave-card { background: var(--xn-glass-dark); }
html[data-theme="dark"] .xn-music-dock { background: var(--xn-glass-dark); }

.my-games-page,
.acc-page,
.partner-page,
.wf-page {
  padding: var(--xn-chrome-pt) max(var(--xn-chrome-px), env(safe-area-inset-right, 0px)) var(--xn-chrome-pb) max(var(--xn-chrome-px), env(safe-area-inset-left, 0px));
}
.ga-pick {
  width: 100%;
  max-width: none;
}
.ga-pick .ga-list,
.ga-pick form .flex {
  flex-wrap: wrap;
}
.ga-pick form .btn { min-height: var(--xn-btn-h-lg); }
@media (max-width: 639px) {
  .ga-pick form .flex { flex-direction: column; align-items: stretch; }
  .ga-pick form .btn { width: 100%; }
}
.partner-page .partner-hero {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
}
@media (min-width: 768px) {
  .partner-page .partner-hero { grid-template-columns: 1fr 1fr; }
}
.partner-lead {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--xn-surface);
  border: 0;
}
.partner-lead h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 750;
}
.partner-lead ul {
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--xn-mute);
  font-size: 13px;
  line-height: 1.65;
}
.partner-lead li { margin: 0 0 4px; }
.partner-page .form-card { max-width: none; }
.partner-page .row-actions .btn,
.shop-page .btn,
.shop-orders-page .btn { min-height: 36px; }
.rc-page { width: 100%; max-width: none; }

/* 消息列表：系统盒子 / 私聊 / 群图标同一列 */
.msg-hub .msg-box-body {
  padding-left: 0;
  padding-right: 0;
}
.msg-hub .swipe-front.chat-group-row,
.msg-hub .swipe-front.msg-row {
  padding: 10px 16px;
  gap: 12px;
}
.msg-hub .chat-ico-wrap {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  margin: 0;
}
.msg-hub .chat-ico-wrap > .msg-ava,
.msg-hub .chat-ico-wrap > .chat-group-ico,
.msg-hub .chat-group-row > .chat-group-ico {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  margin: 0;
  border-radius: 8px;
  box-sizing: border-box;
}

/* ============================================================
   游戏中心 2026-09：移动端双列、卡片 hover、标签即时筛选、城市天气
   ============================================================ */
/* 卡片网格：手机双列（一屏能看 4 款），平板三列，PC 四列 */
.hall-vgrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 10px;
}
@media (min-width: 600px) {
  .hall-vgrid { gap: 18px 14px; }
}
@media (min-width: 768px) {
  .hall-vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; }
}
@media (min-width: 960px) {
  .hall-vgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
}
@media (max-width: 359px) {
  .hall-vgrid { grid-template-columns: minmax(0, 1fr); }
}
.hall-vgrid[hidden] { display: none; }
.hall-vcard[hidden] { display: none; }
.hall-vcard { gap: 8px; }
.hall-vcard-art {
  border-radius: 16px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
  will-change: transform;
}
.hall-vcard-art .hall-slide-img {
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.hall-vcard-ico.game-logo,
.hall-vcard-ico { width: 34px; height: 34px; border-radius: 9px; }
.hall-vcard-txt b { font-size: 13px; }
.hall-vcard-txt small { font-size: 11px; }
@media (min-width: 768px) {
  .hall-vcard { gap: 10px; }
  .hall-vcard-art { border-radius: var(--xn-radius-xl, 20px); }
  .hall-vcard-ico.game-logo,
  .hall-vcard-ico { width: 40px; height: 40px; border-radius: 10px; }
  .hall-vcard-txt b { font-size: 14px; }
  .hall-vcard-txt small { font-size: 12px; }
}
@media (hover: hover) and (pointer: fine) {
  .hall-vcard:hover .hall-vcard-art {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px -20px rgba(0,0,0,.42);
  }
  .hall-vcard:hover .hall-vcard-art .hall-slide-img { transform: scale(1.045); }
  .hall-vcard:active .hall-vcard-art { transform: translateY(-1px) scale(.995); transition-duration: .12s; }
}
/* 封面角标：新游 / 即将上线 / 神秘档，毛玻璃小胶囊 */
.hall-vcard-flag {
  position: absolute;
  z-index: 2;
  top: 8px; left: 8px;
  max-width: calc(100% - 16px);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(20,20,22,.42);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
  color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1.2;
  letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border: 1px solid rgba(255,255,255,.18);
}
/* 切标签：卡片轻微进场 */
@keyframes hall-card-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.hall-vgrid.is-switch .hall-vcard:not([hidden]) {
  animation: hall-card-in .32s cubic-bezier(.2,.7,.2,1) both;
}
.hall-vgrid.is-switch .hall-vcard:not([hidden]):nth-child(n+9) { animation-delay: .04s; }
@media (prefers-reduced-motion: reduce) {
  .hall-vgrid.is-switch .hall-vcard:not([hidden]) { animation: none; }
  .hall-vcard-art, .hall-vcard-art .hall-slide-img { transition: none; }
}
.hall-vgrid-empty[hidden] { display: none; }

/* 标签行：两侧渐隐提示还能滚 */
.hall-pills-cats,
.xn-caps:not(.circ-deck-tabs) {
  --xn-fade-l: 0px;
  --xn-fade-r: 0px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--xn-fade-l), #000 calc(100% - var(--xn-fade-r)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--xn-fade-l), #000 calc(100% - var(--xn-fade-r)), transparent);
}
.hall-pills-cats.can-left,
.xn-caps:not(.circ-deck-tabs).can-left { --xn-fade-l: 28px; }
.hall-pills-cats.can-right,
.xn-caps:not(.circ-deck-tabs).can-right { --xn-fade-r: 28px; }
.hall-pills.xn-caps {
  -webkit-mask-image: none;
  mask-image: none;
}

/* 幻灯片：可拖、可滑；手机能滑了，‹ › 就不占地方，只留进度胶囊 */
@media (max-width: 767px) {
  .hall-show-ctrl .hall-show-btn { display: none; }
  .hall-show-ctrl { margin-top: 8px; }
}
.hall-show.is-banner .hall-track {
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.hall-show.is-banner.is-dragging .hall-track { cursor: grabbing; }
.hall-show.is-banner.is-dragging .hall-slide { pointer-events: none; }
.hall-show:focus-visible { outline: none; }
.hall-show:focus-visible .hall-slide.is-wide .hall-slide-art {
  box-shadow: 0 0 0 3px var(--xn-surface), 0 0 0 5px var(--xn-ink);
}

/* 城市 · 天气：可点切换，弹出城市列表 */
.hall-hero-meta { position: relative; }
.hall-city {
  display: inline-flex; align-items: center; gap: 2px;
  margin: 0; padding: 0 6px; margin-left: -6px;
  border: 0; border-radius: 8px;
  background: transparent;
  font: inherit; color: inherit; line-height: 1.6;
  cursor: pointer;
  text-align: left;
}
.hall-city:hover { background: var(--xn-soft-2); color: var(--xn-ink); }
.hall-city[aria-expanded="true"] { background: var(--xn-soft-2); color: var(--xn-ink); }
.hall-hero-meta.is-loading .hall-sky { opacity: .45; }
.hall-city-pop {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: -6px;
  width: 224px;
  padding: 10px;
  border-radius: 14px;
  background: var(--xn-glass);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  border: 1px solid var(--xn-line);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.28);
  color: var(--xn-ink);
  font-weight: 500;
  letter-spacing: 0;
}
.hall-city-pop[hidden] { display: none; }
.hall-city-q {
  width: 100%; height: 34px;
  padding: 0 10px;
  border: 0; border-radius: 9px;
  background: rgba(118,118,128,.12);
  font: inherit; font-size: 14px; color: var(--xn-ink);
  margin-bottom: 8px;
}
.hall-city-q:focus { outline: 2px solid var(--xn-ink); outline-offset: -1px; }
.hall-city-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  max-height: 224px;
  overflow: auto;
  scrollbar-width: thin;
}
.hall-city-list button {
  height: 32px;
  border: 0; border-radius: 8px;
  background: transparent;
  color: var(--xn-ink);
  font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hall-city-list button:hover { background: var(--xn-soft-2); }
.hall-city-list button.on { background: var(--xn-ink); color: var(--xn-surface); }
.hall-city-list button[hidden] { display: none; }
@media (max-width: 767px) {
  /* 手机上标题栏靠右，浮层贴右边对齐，别把页面顶出横向滚动 */
  .hall-city-pop { width: min(280px, calc(100vw - 32px)); left: auto; right: 0; }
}

/* ============================================================
   聊天 2026-09：PC 悬停操作条、+ 浮层、弹层居中、图片去框
   ============================================================ */
/* + 按下去是黑底，字得翻白，不然看不见 */
.chat-ico-btn.on { color: var(--xn-surface); }
html[data-theme="dark"] .chat-ico-btn.on { color: #111; }
.chat-ico-btn {
  transition: background .18s ease, transform .18s ease;
}
.chat-ico-btn:active { transform: scale(.94); }
/* 手机上 + 面板：单元格给个浅底方块，像系统应用格 */
.chat-biz-row { gap: 10px; padding: 10px 2px 4px; }
.chat-biz-row.hidden { display: none; }
.chat-biz-cell { min-width: 64px; padding: 8px 4px; gap: 6px; }
.chat-biz-cell .ico {
  width: 46px; height: 46px; padding: 12px;
  border-radius: 14px;
  background: var(--xn-soft-2);
  box-sizing: border-box;
}
.chat-biz-cell:hover .ico { background: var(--xn-soft-3, rgba(0,0,0,.08)); }
.chat-biz-cell:active .ico { transform: scale(.94); }
/* 纯图片消息不套气泡框，像 iMessage */
.chat-bubble-msg:has(> .post-img:only-child),
.chat-bubble-msg:has(> .post-img-link:only-child) {
  padding: 0; background: transparent; border-color: transparent;
}
.chat-bubble-msg:has(> .post-img:only-child) .post-img,
.chat-bubble-msg:has(> .post-img-link:only-child) .post-img {
  margin: 0; max-width: 240px; max-height: 300px; border-radius: 16px;
  box-shadow: 0 6px 20px -10px rgba(0,0,0,.35);
}
.chat-bubble-msg > .post-img-link { display: block; line-height: 0; }
.chat-msg.me .chat-bubble-msg:has(> .post-img:only-child),
.chat-msg.me .chat-bubble-msg:has(> .post-img-link:only-child) { background: transparent; }
/* 悬停操作条：只在有鼠标的设备上由 JS 插入 */
.chat-msg-body { position: relative; min-width: 0; }
.chat-hover-acts {
  position: absolute;
  top: 22px;
  left: calc(100% + 8px);
  z-index: 3;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--xn-glass);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  border: 1px solid var(--xn-line);
  box-shadow: 0 8px 24px -10px rgba(0,0,0,.3);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  white-space: nowrap;
}
.chat-msg.me .chat-hover-acts { left: auto; right: calc(100% + 8px); }
.chat-msg:hover .chat-hover-acts,
.chat-msg:focus-within .chat-hover-acts {
  opacity: 1; transform: none; pointer-events: auto;
}
.chat-hover-act {
  height: 26px; padding: 0 10px;
  border: 0; border-radius: 999px;
  background: transparent; color: var(--xn-ink);
  font: inherit; font-size: 12px; font-weight: 650;
  cursor: pointer;
}
.chat-hover-act:hover { background: var(--xn-soft-2); }
.chat-hover-act.is-recall { color: var(--xn-danger, #d0342c); }
.chat-hover-act.is-recall:hover { background: rgba(208,52,44,.1); }
@media (min-width: 768px) {
  /* PC：+ 面板变成锚在按钮上方的浮层，不占输入区高度 */
  .chat-biz-row {
    position: absolute;
    right: 12px;
    bottom: calc(100% - 2px);
    z-index: 12;
    display: grid;
    grid-template-columns: repeat(3, 76px);
    gap: 6px;
    padding: 10px;
    overflow: visible;
    border-radius: 18px;
    background: var(--xn-glass);
    -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
    backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
    border: 1px solid var(--xn-line);
    box-shadow: 0 18px 44px -16px rgba(0,0,0,.35);
    animation: chat-pop-in .18s cubic-bezier(.2,.7,.2,1) both;
  }
  .chat-biz-row.hidden { display: none; }
  .chat-biz-row form.m-0 { display: contents; }
  .chat-biz-cell { min-width: 0; width: 76px; padding: 8px 2px; border-radius: 12px; }
  .chat-biz-cell:hover { background: var(--xn-soft); }
  .chat-biz-cell .ico { width: 40px; height: 40px; padding: 10px; border-radius: 12px; }
  .chat-biz-cell em { font-size: 12px; }
  /* 底部动作单在 PC 上居中成对话框 */
  .chat-sheet { align-items: center; padding: 24px; }
  .chat-sheet-panel {
    border-radius: 20px;
    padding-bottom: 16px;
    max-height: min(80vh, 680px);
    box-shadow: 0 30px 80px -30px rgba(0,0,0,.45);
    animation: chat-pop-in .2s cubic-bezier(.2,.7,.2,1) both;
  }
  .chat-msg { max-width: 72%; }
  .chat-bubble-msg { font-size: 14px; line-height: 1.55; }
  .chat-bubble-msg .post-img { max-width: 260px; max-height: 320px; }
}
@keyframes chat-pop-in {
  from { opacity: 0; transform: translateY(6px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-biz-row, .chat-sheet-panel { animation: none; }
  .chat-hover-acts { transition: none; }
}

/* ============================================================
   圈子 2026-09：手机端去掉多余控件、帖子行 hover；发帖页写作画布
   ============================================================ */
@media (max-width: 767px) {
  /* 手机能横滑，‹ › 箭头是噪音；「发布」交给底部胶囊旁的 + */
  .circ-deck-tab-nav,
  .circ-deck-tabs-wrap.is-overflow .circ-deck-tab-nav { display: none !important; }
  .circ-deck-pub { display: none; }
  .circ-deck-tabs-wrap.is-overflow.can-right::after { right: 0; }
  .circ-deck-tabs-wrap.is-overflow.can-right:has([data-circ-add])::after { right: calc(var(--xn-cap-h) + 4px); }
  .circ-deck-nav { display: none !important; }
}
@media (hover: hover) and (pointer: fine) {
  .circ-post { transition: background .16s ease; border-radius: 12px; }
  .circ-post:hover { background: var(--xn-soft); }
  .circ-post-title { transition: color .16s ease; }
  .circ-post:hover .circ-post-title { color: var(--xn-brand); }
  .circ-post-imgs span { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
  .circ-post:hover .circ-post-imgs span { transform: scale(1.02); }
}

/* 发帖：不套表单框，标题大字、正文无边框，像一张纸 */
.compose-card.card {
  padding: 8px 20px 20px;
  border: 0;
  box-shadow: none;
  background: var(--xn-surface);
}
.compose-card .compose-field > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.compose-card .compose-field { position: relative; margin: 0; }
#compose-subject {
  width: 100%;
  height: auto;
  min-height: 48px;
  padding: 10px 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
  color: var(--xn-ink);
}
#compose-subject:focus { outline: none; box-shadow: none; }
#compose-subject::placeholder { color: var(--xn-mute); opacity: .7; font-weight: 700; }
.compose-card .xn-editor {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  display: flex;
  flex-direction: column;
}
.compose-card .xn-editor.is-drag { box-shadow: none; outline: 2px dashed var(--xn-line); outline-offset: 6px; border-radius: 12px; }
.compose-card .xn-ed-bar {
  order: 1;
  padding: 4px 0;
  border: 0;
  border-top: 1px solid var(--xn-line-soft);
  border-bottom: 1px solid var(--xn-line-soft);
  background: transparent;
  gap: 4px;
}
.compose-card .xn-ed-mount { order: 2; background: transparent; }
.compose-card .xn-ed-mount .ProseMirror { padding: 14px 0 40px; min-height: 220px; font-size: 16px; }
.compose-card .xn-ed-loading { text-align: left; padding: 24px 0; }
.compose-card .expr-wrap { margin-top: 0; }
.compose-card .emoji-bar {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 6px 0 0;
  padding-bottom: 2px;
}
.compose-card .emoji-bar::-webkit-scrollbar { display: none; }
.compose-card .emoji-btn { flex: 0 0 auto; border-color: transparent; background: var(--xn-soft); }
.compose-card .compose-dest {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--xn-line-soft);
}
.compose-card .compose-field:has(.compose-reply-seg) { margin-top: 14px; }
.compose-card .compose-field:has(.compose-reply-seg) > span { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: block; font-size: 12px; font-weight: 600; color: var(--xn-mute); margin-bottom: 6px; }
@media (max-width: 767px) {
  /* 手机：正文在上、工具条贴在键盘上方（sticky 到卡片底） */
  .compose-card.card { padding: 4px 16px 16px; }
  .compose-card .xn-ed-bar {
    order: 3;
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 0 -16px;
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px));
    border-bottom: 0;
    background: var(--xn-glass);
    -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
    backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  }
  .compose-card .xn-ed-mount { order: 1; border-top: 1px solid var(--xn-line-soft); }
  .compose-card .xn-ed-mount .ProseMirror { min-height: 180px; padding-bottom: 24px; }
  #compose-subject { font-size: 20px; }
  .compose-head-acts .btn.ghost { padding-left: 10px; padding-right: 10px; }
}
@media (min-width: 768px) {
  .compose-card.card {
    border: 1px solid var(--xn-line);
    border-radius: var(--xn-radius-xl, 20px);
    padding: 12px 28px 24px;
    box-shadow: var(--xn-shadow);
  }
  .compose-card.\!max-w-lg { max-width: 760px !important; }
  #compose-subject { font-size: 26px; min-height: 56px; }
  .compose-card .xn-ed-mount .ProseMirror { min-height: 320px; font-size: 16px; }
}

/* ============================================================
   消息 2026-09：左列表 / 右对话统一——同一张卡、同一套留白、同一种圆角
   ============================================================ */
/* —— 左：会话列表 —— */
.msg-hub .msg-ava,
.msg-hub .chat-group-ico,
.msg-hub .chat-group-ico.round,
.msg-hub .chat-group-ico.game-logo,
.msg-hub .chat-ico-wrap > .msg-ava,
.msg-hub .chat-ico-wrap > .chat-group-ico,
.msg-hub .chat-group-row > .chat-group-ico { border-radius: 14px; }
.msg-hub .chat-group-ico .msg-num,
.msg-hub .chat-ico-wrap > .msg-num {
  top: -5px; right: -5px;
  min-width: 19px; height: 19px; padding: 0 5px;
  font-size: 11px; line-height: 1;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.msg-hub .chat-group-name { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.msg-hub .msg-name { font-size: 16px; font-weight: 650; }
.msg-hub .chat-group-time,
.msg-hub .msg-time { font-size: 12px; font-weight: 500; color: var(--xn-mute); }
.msg-hub .chat-group-preview,
.msg-hub .msg-preview { font-size: 14px; margin-top: 2px; color: var(--xn-mute); }
.msg-hub .chat-tag {
  margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  background: var(--xn-soft-2); color: var(--xn-mute); font-weight: 600;
}
.msg-hub .chat-pin { border-radius: 999px; padding: 0 6px; }
/* 行与行之间：从头像右侧起的发丝线，不再整行切开 */
.msg-hub .swipe-front.chat-group-row,
.msg-hub .swipe-front.msg-row { border-bottom: 0; transition: background .16s ease; }
.msg-hub .swipe-row + .swipe-row > .swipe-front::after {
  content: "";
  position: absolute;
  left: 76px; right: 16px; top: 0;
  height: 1px;
  background: var(--xn-line-soft);
  pointer-events: none;
}
/* 搜索会话：列表顶部一条圆角浅灰框，手机上藏起来（胶囊已经够多） */
.msg-search {
  position: relative;
  display: none;
  margin: 10px 12px 6px;
}
.msg-search > .ico {
  position: absolute; left: 12px; top: 50%;
  width: 16px; height: 16px; margin-top: -8px;
  opacity: .45; pointer-events: none;
}
/* 选择器写长是为了压过全局 input:not(...) 那条 */
.msg-hub .msg-pane-list .msg-search input[type="search"] {
  width: 100%; height: 36px; min-height: 36px;
  padding: 0 12px 0 34px;
  border: 0; border-radius: 12px;
  background: var(--xn-soft-2);
  font: inherit; font-size: 14px; color: var(--xn-ink);
  outline: none; box-shadow: none;
  transition: background .15s, box-shadow .15s;
}
.msg-hub .msg-pane-list .msg-search input[type="search"]::placeholder { color: var(--xn-mute); }
.msg-hub .msg-pane-list .msg-search input[type="search"]:hover { background: var(--xn-soft-2); }
.msg-hub .msg-pane-list .msg-search input[type="search"]:focus {
  background: var(--xn-surface);
  box-shadow: 0 0 0 1px var(--xn-line), 0 0 0 4px var(--xn-brand-soft);
}
.msg-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
/* 置顶 / 删除按钮藏在行后面：没拖出来时不显示，免得圆角边缘漏一丝红 */
.msg-hub .swipe-actions { opacity: 0; transition: opacity .12s; }
.msg-hub .swipe-row.is-open .swipe-actions,
.msg-hub .swipe-row:has(.swipe-front[style*="translateX(-"]) .swipe-actions { opacity: 1; }
.msg-search-none {
  padding: 28px 12px 8px;
  text-align: center;
  font-size: 13px; color: var(--xn-mute);
}
.msg-search-none[hidden] { display: none; }
/* 右侧空态：一个描边图标 + 一句话 */
.msg-pane-empty { gap: 10px; grid-auto-flow: row; align-content: center; justify-items: center; }
.msg-pane-empty-ico {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: var(--xn-soft);
  color: var(--xn-mute);
}
.msg-pane-empty-ico .ico { width: 26px; height: 26px; }
@media (min-width: 960px) {
  .msg-search { display: block; }
  .msg-pane { gap: 14px; }
  /* 两张卡同款：白底、20px 圆角、发丝边 + 极浅投影；右卡不再套一圈灰描边 */
  .msg-pane-list,
  .msg-pane-detail {
    border: 1px solid rgba(0,0,0,.05);
    box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 12px 32px -20px rgba(0,0,0,.14);
  }
  html[data-theme="dark"] .msg-pane-list,
  html[data-theme="dark"] .msg-pane-detail {
    border-color: rgba(255,255,255,.08);
    box-shadow: 0 1px 2px rgba(0,0,0,.4);
  }
  /* 列表行：圆角内嵌选中态（像 macOS 信息），不是整行灰 */
  .msg-hub.is-deck .msg-box-body { padding: 4px 8px 8px; }
  .msg-hub .swipe-front.chat-group-row,
  .msg-hub .swipe-front.msg-row {
    padding: 10px 10px;
    gap: 12px;
    min-height: 64px;
    border-radius: 14px;
  }
  .msg-hub .swipe-row + .swipe-row > .swipe-front::after { left: 70px; right: 10px; }
  .msg-hub .swipe-row.is-on > .swipe-front::after,
  .msg-hub .swipe-row.is-on + .swipe-row > .swipe-front::after { opacity: 0; }
  .msg-hub .swipe-row.is-on .swipe-front { background: var(--xn-soft-2); }
  .msg-hub .swipe-row.is-on .chat-group-time,
  .msg-hub .swipe-row.is-on .msg-time { color: var(--xn-ink); opacity: .55; }
  .msg-hub .swipe-row:not(.is-on) .swipe-front.chat-group-row:hover,
  .msg-hub .swipe-row:not(.is-on) .swipe-front.msg-row:hover { background: var(--xn-soft); }
  .msg-hub .swipe-row.is-pin:not(.is-on) .swipe-front { background: var(--xn-surface); }
  /* 行本身也圆角，鼠标拖出的置顶 / 删除按钮跟着裁成圆角 */
  .msg-hub .swipe-row { border-radius: 14px; }
  .msg-hub .swipe-act:last-child { border-radius: 0 14px 14px 0; }
}

/* —— 右：对话 —— */
/* 聊天区白底（面板里和左卡同色，手机独立页也一样），灰气泡才有对比 */
html:has(body.is-msg-pane),
body.is-msg-pane { background: var(--xn-surface) !important; }
body.is-chat-room .chat-room { background: var(--xn-surface); }
.chat-room-head {
  min-height: 52px;
  padding: 8px 14px;
  gap: 10px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
html[data-theme="dark"] .chat-room-head { border-bottom-color: rgba(255,255,255,.08); }
.chat-room-title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.chat-room-count { font-size: 12px; font-weight: 600; }
.chat-room-chev { font-size: 18px; margin-left: -2px; }
.chat-room-head .btn.ghost.sm {
  height: 32px; min-height: 32px;
  padding: 0 12px;
  border: 0; border-radius: 999px;
  background: var(--xn-soft-2); color: var(--xn-ink);
  font-size: 13px; font-weight: 650;
  box-shadow: none;
}
.chat-room-head .btn.ghost.sm:hover { background: var(--xn-soft-3, #e6e6e9); }
.chat-room-head .btn.ghost.sm[title] { width: 32px; padding: 0; font-size: 16px; letter-spacing: 1px; }
/* 消息流：留白、头像圆角、气泡去边框 */
.chat-list { gap: 10px; padding: 12px 16px 18px; }
.chat-msg { gap: 8px; align-items: flex-start; }
.chat-ava { width: 36px; height: 36px; border-radius: 12px; font-size: 13px; }
.chat-meta {
  display: flex; align-items: center; gap: 4px;
  margin: 2px 0 4px 3px;
  font-size: 12px; font-weight: 600; color: var(--xn-mute);
}
.chat-msg.me .chat-meta { justify-content: flex-end; margin: 2px 3px 4px 0; }
.chat-meta .vip-badge { margin-left: 0; }
.chat-meta .dress-badge { margin-left: 0; }
.chat-bubble-msg {
  border: 0;
  border-radius: 18px 18px 18px 6px;
  padding: 9px 13px;
  background: var(--xn-soft-2);
  color: var(--xn-ink);
  font-size: 15px; line-height: 1.5;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.chat-msg.me .chat-bubble-msg {
  border-radius: 18px 18px 6px 18px;
  background: linear-gradient(180deg, #3d7bff 0%, var(--xn-brand) 100%);
  color: #fff;
}
.chat-msg.me .chat-bubble-msg a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.chat-msg.me .chat-at { color: #fff; font-weight: 700; }
.chat-msg.me .chat-quote {
  color: rgba(255,255,255,.88);
  border-left-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.14);
}
.chat-msg.me .chat-trans { color: rgba(255,255,255,.9); border-top-color: rgba(255,255,255,.28); }
.chat-msg.me .chat-img-gone { color: rgba(255,255,255,.85); }
.chat-msg.me .chat-voice { background: rgba(255,255,255,.18); color: #fff; }
.chat-bubble-msg.is-recalled,
.chat-msg.me .chat-bubble-msg.is-recalled { background: transparent; color: var(--xn-mute); font-size: 12px; padding: 4px 2px; }
/* 装扮气泡：细一圈色环就够了，别再套黑框；自己那条是蓝底，环放到外面 */
.chat-bubble-msg.is-dress { --dress: var(--xn-ink); box-shadow: inset 0 0 0 1px var(--dress); }
.chat-bubble-msg.is-dress.is-tone-copper { --dress: #b87333; }
.chat-bubble-msg.is-dress.is-tone-silver { --dress: #8e8e93; }
.chat-bubble-msg.is-dress.is-tone-gold { --dress: #c9a227; }
.chat-bubble-msg.is-dress.is-tone-diamond { --dress: #c9d4e8; }
.chat-bubble-msg.is-dress.is-tone-rose { --dress: #c45c6a; }
.chat-bubble-msg.is-dress.is-tone-leaf { --dress: #3d7a54; }
.chat-bubble-msg.is-dress.is-tone-cyan { --dress: #3a8f9e; }
.chat-bubble-msg.is-dress.is-tone-amber { --dress: #c47a1a; }
.chat-bubble-msg.is-dress.is-tone-violet { --dress: #6b5b9a; }
.chat-bubble-msg.is-dress.is-tone-steel { --dress: #5a6a7a; }
.chat-bubble-msg.is-dress.is-tone-wine { --dress: #8a3a4a; }
.chat-bubble-msg.is-dress.is-tone-ink { --dress: var(--xn-ink); }
.chat-bubble-msg.is-dress[class*="is-tone-"] { box-shadow: inset 0 0 0 1px var(--dress); }
@supports (color: color-mix(in srgb, #000 50%, transparent)) {
  .chat-bubble-msg.is-dress,
  .chat-bubble-msg.is-dress[class*="is-tone-"] { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dress) 72%, transparent); }
}
.chat-msg.me .chat-bubble-msg.is-dress { box-shadow: 0 0 0 2px var(--xn-surface), 0 0 0 3.5px var(--dress); }
/* 纯图片 / 贴纸不套色环 */
.chat-bubble-msg.is-dress:has(> .post-img:only-child),
.chat-bubble-msg.is-dress:has(> .post-img-link:only-child),
.chat-bubble-msg.is-dress:has(> .expr-img:only-child),
.chat-msg.me .chat-bubble-msg.is-dress:has(> .post-img:only-child),
.chat-msg.me .chat-bubble-msg.is-dress:has(> .post-img-link:only-child),
.chat-msg.me .chat-bubble-msg.is-dress:has(> .expr-img:only-child) { box-shadow: none; }
/* 只发一个表情：不套气泡，放大成贴纸（像 iMessage 的大 emoji） */
.chat-bubble-msg:has(> .expr-img:only-child),
.chat-msg.me .chat-bubble-msg:has(> .expr-img:only-child) {
  padding: 0; background: transparent; line-height: 0;
}
.chat-bubble-msg:has(> .expr-img:only-child) .expr-img {
  width: 64px; height: 64px; vertical-align: top;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.12));
}
/* 同一人连发：折叠头像和名字，气泡贴紧 */
.chat-msg.is-cont { margin-top: -6px; }
.chat-msg.is-cont .chat-ava { visibility: hidden; height: 0; }
.chat-msg.is-cont .chat-meta { display: none; }
.chat-msg.is-cont .chat-hover-acts { top: 6px; }
.chat-msg:not(.me).is-cont .chat-bubble-msg { border-radius: 6px 18px 18px 6px; }
.chat-msg.me.is-cont .chat-bubble-msg { border-radius: 18px 6px 6px 18px; }
/* 日期 / 系统提示：小胶囊，居中 */
.chat-day {
  margin: 6px 0 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--xn-soft);
  font-size: 11px; font-weight: 600; color: var(--xn-mute);
}
.chat-sys { font-size: 12px; padding: 2px 12px; line-height: 1.5; }
/* 输入区：无边框输入框、透明图标键，只有一条发丝线 */
.chat-composer {
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(0,0,0,.06);
}
html[data-theme="dark"] .chat-composer { border-top-color: rgba(255,255,255,.08); }
.chat-composer-form { display: flex; flex-direction: column; }
.chat-composer-row { gap: 4px; }
.chat-room .chat-composer .chat-input-wrap input.chat-input {
  height: 40px; min-height: 40px;
  padding: 0 16px;
  border: 0; border-radius: 20px;
  background: var(--xn-soft-2);
  font-size: 15px; color: var(--xn-ink);
  box-shadow: none;
  transition: background .15s, box-shadow .15s;
}
.chat-room .chat-composer .chat-input-wrap input.chat-input:hover { background: var(--xn-soft-2); }
.chat-room .chat-composer .chat-input-wrap input.chat-input:focus {
  outline: none;
  background: var(--xn-surface);
  box-shadow: 0 0 0 1px var(--xn-line), 0 0 0 4px var(--xn-brand-soft);
}
.chat-room .chat-composer .chat-input-wrap input.chat-input::placeholder { color: var(--xn-mute); }
.chat-ico-btn {
  width: 38px; height: 38px;
  background: transparent; color: var(--xn-ink);
  transition: background .15s, transform .12s;
}
.chat-ico-btn:hover { background: var(--xn-soft-2); }
.chat-ico-btn:active { transform: scale(.92); }
.chat-ico-btn.on { background: var(--xn-ink); }
.chat-ico-btn.is-hb { background: #fde8e6; }
#chat-plus-btn { font-size: 24px; font-weight: 300; line-height: 1; }
/* 客服快捷语：挪到输入框上方，一行横滚的浅胶囊 */
.chat-chips {
  order: -1;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0 0 8px;
  padding: 2px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.chat-chips::-webkit-scrollbar { display: none; }
.chat-chips .btn,
.chat-chips .btn.soft,
.chat-chips .btn.ghost {
  flex: 0 0 auto;
  height: 30px; min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--xn-line); border-radius: 999px;
  background: var(--xn-surface); color: var(--xn-ink);
  font-size: 13px; font-weight: 600;
  box-shadow: none; filter: none;
}
.chat-chips .btn:hover { background: var(--xn-soft); border-color: transparent; }
@media (min-width: 768px) {
  .chat-list { padding: 14px 20px 20px; }
  .chat-msg { max-width: 70%; }
  .chat-bubble-msg { font-size: 14.5px; }
  .chat-composer { padding: 10px 14px; }
}

/* ============================================================
   群聊消息动作 2026-09：表态 / 复制 / 引用跳转 / @所有人 / 置顶条 /
   管理员撤回 / 重新编辑 / 译文收起（参考 QQ 群·微信群，只留轻的）
   ============================================================ */
/* 置顶条：贴在头栏下面的一条，点正文跳到那条消息 */
.chat-pinbar {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 8px;
  margin: 0 12px; padding: 7px 10px 7px 12px;
  border-radius: 0 0 14px 14px;
  background: var(--xn-glass);
  -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  box-shadow: 0 1px 0 var(--xn-line-soft) inset, 0 8px 20px -14px rgba(0,0,0,.25);
  font-size: 13px;
}
.chat-notice + .chat-pinbar { margin-top: 6px; border-radius: 14px; }
.chat-pinbar-ico {
  width: 24px; height: 24px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 8px; background: var(--xn-brand-soft); color: var(--xn-brand);
}
.chat-pinbar-ico .ico { width: 14px; height: 14px; }
.chat-pinbar-body {
  flex: 1; min-width: 0;
  display: flex; align-items: baseline; gap: 6px;
  border: 0; background: transparent; padding: 0;
  font: inherit; color: var(--xn-ink); text-align: left; cursor: pointer;
}
.chat-pinbar-body b { flex-shrink: 0; font-weight: 700; color: var(--xn-brand); }
.chat-pinbar-body span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--xn-ink); }
.chat-pinbar-body:hover span { color: var(--xn-brand); }
.chat-pinbar-n,
.chat-pinbar-x {
  flex-shrink: 0; height: 24px; min-width: 24px; padding: 0 8px;
  border: 0; border-radius: 999px;
  background: var(--xn-soft-2); color: var(--xn-mute);
  font: inherit; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.chat-pinbar-x { width: 24px; padding: 0; font-size: 15px; line-height: 1; }
.chat-pinbar-n:hover, .chat-pinbar-x:hover { background: var(--xn-soft-3, #e6e6e9); color: var(--xn-ink); }
/* 气泡上的小图钉角标 */
.chat-bubble-msg { position: relative; }
.chat-pin-flag {
  position: absolute; top: -7px; left: -7px; z-index: 1;
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--xn-surface); color: var(--xn-brand);
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.chat-pin-flag .ico { width: 11px; height: 11px; }
.chat-msg.me .chat-pin-flag { left: auto; right: -7px; }
/* 引用块：名字 + 摘要两行，可点跳原消息 */
.chat-quote {
  display: block; cursor: pointer;
  padding: 5px 9px; margin: 0 0 6px;
  border-left: 2.5px solid var(--xn-brand);
  border-radius: 6px 10px 10px 6px;
  background: rgba(0,0,0,.05);
  color: var(--xn-mute); font-size: 12px; line-height: 1.4;
  transition: background .15s;
}
.chat-quote b { display: block; font-weight: 700; color: var(--xn-ink); font-size: 11.5px; }
.chat-quote span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.chat-quote:hover { background: rgba(0,0,0,.09); }
.chat-quote:focus-visible { outline: 2px solid var(--xn-brand); outline-offset: 1px; }
.chat-msg.me .chat-quote b { color: #fff; }
.chat-msg.me .chat-quote:hover { background: rgba(255,255,255,.22); }
/* 输入区上方的「回复 xx」条：左侧竖线 + 两行 */
.chat-quote-bar {
  align-items: stretch; gap: 10px;
  padding: 6px 8px 6px 12px; margin: 0 0 8px;
  background: var(--xn-soft-2); border-radius: 12px;
  position: relative;
}
.chat-quote-bar::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2.5px;
  border-radius: 2px; background: var(--xn-brand);
}
.chat-quote-bar #chat-quote-txt { display: flex; flex-direction: column; gap: 1px; white-space: normal; }
.chat-quote-bar #chat-quote-txt b { font-size: 12px; font-weight: 700; color: var(--xn-brand); }
.chat-quote-bar #chat-quote-txt span { font-size: 12.5px; color: var(--xn-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-quote-bar .btn.ghost.sm {
  align-self: center; width: 26px; height: 26px; min-height: 26px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--xn-mute); font-size: 16px; box-shadow: none;
}
.chat-quote-bar .btn.ghost.sm:hover { background: rgba(0,0,0,.06); color: var(--xn-ink); }
/* 撤回提示：一行居中灰字，自己那条后面可「重新编辑」 */
.chat-recalled { padding: 2px 12px; }
.chat-reedit {
  margin-left: 6px; padding: 0; border: 0; background: transparent;
  font: inherit; font-size: 12px; font-weight: 650; color: var(--xn-brand); cursor: pointer;
}
.chat-reedit:hover { text-decoration: underline; text-underline-offset: 2px; }
/* 跳到某条消息时闪一下 */
@keyframes chat-flash {
  0% { background: var(--xn-brand-soft); }
  100% { background: transparent; }
}
.chat-msg.is-flash { border-radius: 14px; animation: chat-flash 1.6s ease-out both; }
/* @我 / @所有人：别人那条气泡带一圈品牌色，一眼看到 */
.chat-msg.is-atme .chat-bubble-msg { box-shadow: inset 0 0 0 1.5px var(--xn-brand); background: var(--xn-brand-soft); }
.chat-at.is-all { color: var(--xn-warn, #ff9500); }
.chat-msg.me .chat-at.is-all { color: #fff; }
.chat-at-me { font-style: normal; font-weight: 700; color: var(--xn-danger, #d0342c); }
/* @ 补全列表：头像字 + 名字 + 账号 */
.chat-at-list { padding: 4px; border-radius: 14px; }
.chat-at-list button {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; min-height: 44px; border-radius: 10px;
  font-size: 14px;
}
.chat-at-list button b { font-weight: 650; color: var(--xn-ink); }
.chat-at-list button small { margin-left: auto; font-size: 11.5px; color: var(--xn-mute); }
.chat-at-list .chat-at-ava {
  width: 28px; height: 28px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 9px; background: var(--xn-brand-soft); color: var(--xn-brand);
  font-style: normal; font-size: 12px; font-weight: 700;
}
.chat-at-list button.is-all .chat-at-ava { background: var(--xn-warn, #ff9500); color: #fff; }
.chat-at-list button.is-all b { color: var(--xn-warn, #ff9500); }
/* 表态小胶囊：贴在气泡下面 */
.chat-reacts { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 2px 0; }
.chat-msg.me .chat-reacts { justify-content: flex-end; }
.chat-reacts.hidden { display: none; }
.chat-react {
  display: inline-flex; align-items: center; gap: 3px;
  height: 22px; padding: 0 7px 0 5px;
  border: 1px solid var(--xn-line); border-radius: 999px;
  background: var(--xn-surface); color: var(--xn-ink);
  font: inherit; font-size: 12px; line-height: 1; cursor: pointer;
  transition: background .15s, border-color .15s, transform .12s;
}
.chat-react i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--xn-mute); font-variant-numeric: tabular-nums; }
.chat-react:hover { background: var(--xn-soft); }
.chat-react:active { transform: scale(.94); }
.chat-react.is-me { border-color: var(--xn-brand); background: var(--xn-brand-soft); }
.chat-react.is-me i { color: var(--xn-brand); }
/* 长按动作单：上面一排表情，下面 4 列图标格，微信那种 */
.chat-msg-panel { padding-top: 12px; }
.chat-react-row {
  display: flex; justify-content: space-between; gap: 6px;
  padding: 4px 4px 12px; margin-bottom: 8px;
  border-bottom: 1px solid var(--xn-line-soft);
}
.chat-react-pick {
  flex: 1; height: 44px; border: 0; border-radius: 14px;
  background: var(--xn-soft); font-size: 24px; line-height: 1; cursor: pointer;
  transition: transform .12s, background .15s;
}
.chat-react-pick:hover { background: var(--xn-soft-2); transform: translateY(-2px); }
.chat-react-pick:active { transform: scale(.92); }
.chat-react-pick.is-on { background: var(--xn-brand-soft); box-shadow: inset 0 0 0 1.5px var(--xn-brand); }
.chat-msg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 4px; }
.chat-msg-cell {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 4px 8px; border: 0; border-radius: 14px;
  background: transparent; color: var(--xn-ink); font: inherit; cursor: pointer;
  transition: background .15s;
}
.chat-msg-cell .ico { width: 24px; height: 24px; }
.chat-msg-cell em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--xn-ink); }
.chat-msg-cell:hover { background: var(--xn-soft); }
.chat-msg-cell:active { background: var(--xn-soft-2); }
.chat-msg-cell.hidden { display: none; }
.chat-msg-cell.is-danger { color: var(--xn-danger, #d0342c); }
.chat-msg-cell.is-danger em { color: var(--xn-danger, #d0342c); }
.chat-msg-cell.is-on { color: var(--xn-brand); }
.chat-msg-cell.is-on em { color: var(--xn-brand); }
.chat-msg-cancel {
  width: 100%; height: 44px; margin-top: 10px;
  border: 0; border-radius: 14px;
  background: var(--xn-soft); color: var(--xn-ink);
  font: inherit; font-size: 15px; font-weight: 650; cursor: pointer;
}
.chat-msg-cancel:hover { background: var(--xn-soft-2); }
@media (min-width: 768px) {
  .chat-msg-panel { width: min(380px, 100%); }
  .chat-msg-cancel { display: none; }
}
/* PC 悬停条：主行四个动作；点 ☺ 切成一排表情 */
.chat-hover-acts { flex-direction: column; align-items: stretch; }
.chat-hover-main, .chat-hover-reacts { display: inline-flex; gap: 2px; }
.chat-hover-acts .chat-hover-reacts { display: none; }
.chat-hover-acts.is-react .chat-hover-main { display: none; }
.chat-hover-acts.is-react .chat-hover-reacts { display: inline-flex; }
.chat-hover-act.is-react { font-size: 15px; padding: 0 8px; line-height: 1; }
.chat-hover-act.is-more { letter-spacing: 1px; padding: 0 8px; }
.chat-hover-emoji {
  width: 30px; height: 28px; border: 0; border-radius: 999px;
  background: transparent; font-size: 17px; line-height: 1; cursor: pointer;
  transition: transform .12s, background .15s;
}
.chat-hover-emoji:hover { background: var(--xn-soft-2); transform: translateY(-2px) scale(1.15); }
/* 译文：小标签 + 正文，再点翻译收起 */
.chat-trans i { display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 4px; background: rgba(0,0,0,.06); font-style: normal; font-size: 10.5px; font-weight: 700; line-height: 16px; vertical-align: 1px; }
.chat-msg.me .chat-trans i { background: rgba(255,255,255,.22); color: #fff; }
.chat-trans.is-loading { opacity: .7; }

/* 2026-09 · 神秘档两副面孔：未揭晓者上锁块 / 内测身份细提示 */
.circ-lock { text-align: center; padding: 30px 18px 26px; }
.circ-lock-ico {
  width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 17px;
  display: grid; place-items: center;
  background: var(--xn-soft-2); border: 1px solid var(--xn-line);
}
.circ-lock-ico .ico { width: 24px; height: 24px; opacity: .72; }
.circ-lock-title { margin: 0 0 6px; font-size: 16px; font-weight: 700; letter-spacing: .01em; }
.circ-lock-desc { margin: 0 auto; max-width: 440px; font-size: 13px; line-height: 1.7; color: var(--xn-mute); }
.circ-lock-ops { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.circ-lock-ops .inline-form { display: inline-flex; }
.circ-reveal-note {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 12px; padding: 8px 12px; border-radius: 12px;
  font-size: 12px; line-height: 1.5; color: var(--xn-mute);
  background: var(--xn-glass); border: 1px solid var(--xn-line);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
}
.circ-reveal-note .ico { width: 16px; height: 16px; flex: 0 0 16px; opacity: .7; }
.circ-reveal-note b { color: var(--xn-ink); font-weight: 650; }
/* 后台 · 体验审批 → 直接授予内测资格 */
.ops-grant-form { margin: 8px 0 16px; }
.ops-grant-form select.ops-input { flex: 1 1 220px; }

/* 2026-09 · UID 靓号：角标 + 商城页 + 购买确认弹层 */
.uid-badge {
  display: inline-block; margin-left: 4px; padding: 1px 6px;
  font-size: 10px; font-weight: 800; line-height: 1.3; letter-spacing: .02em;
  border-radius: 6px; vertical-align: 1px;
  color: #6b4a00; background: linear-gradient(135deg, #ffe9a8, #f5c542);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
}
.vn-page {
  width: 100%; max-width: none; min-width: 0; box-sizing: border-box;
  padding: 16px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
}
.vn-mono { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.vn-tag {
  display: inline-block; padding: 1px 7px; border-radius: 999px;
  font-size: 11px; font-weight: 700; line-height: 1.5;
  background: var(--xn-soft-2); color: var(--xn-mute);
}
.vn-tag.is-on { background: #e8f7ef; color: var(--xn-ok-ink); }
.vn-me { padding: 16px; margin-bottom: 12px; }
.vn-me-k { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--xn-mute); }
.vn-me-num { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 4px; font-size: 32px; font-weight: 800; line-height: 1.1; color: var(--xn-ink); }
.vn-me .sub { margin: 0; }
.vn-owned { margin: 12px 0 0; }
.vn-search { display: flex; gap: 8px; margin: 0 0 12px; }
.vn-search input { flex: 1 1 auto; min-width: 0; height: 40px; }
.vn-lookup { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px; }
.vn-lookup-num { font-size: 22px; font-weight: 800; flex: 0 0 auto; }
.vn-lookup-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--xn-mute); }
.vn-lookup-txt b { font-size: 14px; color: var(--xn-ink); }
.vn-lookup.is-sale .vn-lookup-txt b { color: var(--xn-ok-ink); }
.vn-lookup.is-taken .vn-lookup-txt b, .vn-lookup.is-system .vn-lookup-txt b { color: var(--xn-danger); }
.vn-seg { margin-bottom: 8px; }
.vn-seg small { margin-left: 3px; font-size: 10px; opacity: .7; }
.vn-digits { gap: 8px; margin-bottom: 12px; }
.vn-digits a {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--xn-mute); background: var(--xn-soft-2); text-decoration: none;
}
.vn-digits a.on { color: #fff; background: var(--xn-ink); }
.vn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
@media (min-width: 640px) { .vn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .vn-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.vn-card {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 12px;
  background: var(--xn-surface); border: 1px solid var(--xn-line); border-radius: var(--xn-radius-lg);
}
.vn-card-num { font-size: 22px; font-weight: 800; color: var(--xn-ink); line-height: 1.1; word-break: break-all; }
.vn-card-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--xn-mute); }
.vn-card-price { font-size: 12px; color: var(--xn-mute); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.vn-card-price b { font-size: 16px; color: var(--xn-ink); }
.vn-card-price small { flex-basis: 100%; font-size: 11px; }
.vn-card .btn { margin-top: 4px; align-self: flex-start; }
/* 购买确认：底部毛玻璃弹层 */
.vn-sheet { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: flex-end; justify-content: center; }
.vn-sheet.hidden { display: none; }
.vn-sheet-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .32); }
.vn-sheet-card {
  position: relative; width: 100%; max-width: 480px; margin: 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0; background: var(--xn-glass);
  backdrop-filter: blur(var(--xn-blur)) saturate(1.4); -webkit-backdrop-filter: blur(var(--xn-blur)) saturate(1.4);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .18);
  animation: vn-up .22s ease-out;
}
@keyframes vn-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 640px) {
  .vn-sheet { align-items: center; }
  .vn-sheet-card { border-radius: 22px; padding-bottom: 18px; }
}
.vn-sheet-k { font-size: 12px; font-weight: 700; color: var(--xn-mute); }
.vn-sheet-num { margin: 6px 0 2px; font-size: 34px; font-weight: 800; color: var(--xn-ink); line-height: 1.1; }
.vn-sheet-pat { margin: 0 0 12px; }
.vn-pay { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.vn-pay-opt {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0;
  border: 1px solid var(--xn-line); border-radius: var(--xn-radius); background: var(--xn-surface);
  font-size: 14px; font-weight: 500; color: var(--xn-ink); cursor: pointer;
}
.vn-pay-opt:has(:checked) { border-color: var(--xn-ink); }
.vn-pay-opt input { margin: 0; }
.vn-pay-opt span { flex: 1 1 auto; }
.vn-pay-opt small { font-size: 11px; color: var(--xn-mute); }
.vn-sheet-after { margin: 0 0 6px; font-weight: 600; color: var(--xn-ink); }
.vn-sheet-actions { display: flex; gap: 8px; margin-top: 12px; }
.vn-sheet-actions .btn { flex: 1 1 auto; justify-content: center; }
body.vn-lock { overflow: hidden; }
.vn-shop-entry { align-items: center; }
.vn-shop-entry .uid-badge { margin: 0; font-size: 14px; padding: 6px 9px; border-radius: 10px; }
/* 后台 · 用户 → 靓号 */
.ops-vn-forms { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 16px; }
.ops-vn-form { flex: 1 1 360px; max-width: 560px; }
.ops-vn-form textarea.ops-input { min-height: 56px; resize: vertical; }
.ops-vn-form .ops-inline .ops-input { flex: 1 1 140px; }
.ops-mono { font-variant-numeric: tabular-nums; letter-spacing: .04em; font-weight: 700; }