/* ============================================================================
 * styles-lingke.css —— 白猪AI（lingkeai.cn）高保真视觉皮肤
 *
 * 加载顺序：必须放在所有既有样式之后（index.html 最后一个 <link>），
 *          靠特异性与顺序覆盖既有主题，不改动任何布局结构 / DOM / 业务逻辑。
 *
 * 视觉来源（逐项对齐 lingkeai.cn）：
 *   画布 #09090b · 侧栏 #121214 · 面板 #18181b · 悬浮 #27272a
 *   文字 #fafafa / #a1a1aa / #90909b · 分隔线 #ffffff14 / #ffffff2e
 *   主色 #8b5cf6 · 主按钮 #7c3aed · 渐变 135deg #7c3aed → #4f46e5
 *   圆角 12 / 16 / 24 · 字体 ui-sans-serif + PingFang SC
 *   按钮：深底 + 彩虹描边（137.48deg 四色）+ 光晕，hover 提亮上浮
 * ========================================================================== */

/* ============================================================================
 * 1. 设计令牌 —— 覆盖 styles.css 的 :root
 * ========================================================================== */

html,
html[data-theme="dark"] {
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "PingFang SC", "HarmonyOS Sans SC",
    "Microsoft YaHei", "Noto Sans", sans-serif;

  /* —— 底色层 —— */
  --bg: #09090b;
  --panel: #18181b;
  --panel-soft: #121214;

  /* —— 文字层 —— */
  --ink: #fafafa;
  --ink-soft: #e4e4e7;
  --muted: #a1a1aa;
  --faint: #83838f;

  /* —— 分隔线 —— */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* —— 品牌主色：紫 —— */
  --accent: #8b5cf6;
  --accent-deep: #c4b5fd;
  --accent-soft: rgba(139, 92, 246, 0.14);
  --accent-grad: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);

  --gold: #eab308;
  --gold-grad: linear-gradient(135deg, #fde047 0%, #f59e0b 100%);
  --danger: #ef4444;

  /* —— 形状与阴影 —— */
  --radius: 12px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.4);
  --glow: 0 8px 30px rgba(139, 92, 246, 0.22);

  /* —— 侧栏专用 —— */
  --nav-ink: #f4f4f5;
  --nav-note: #a1a1aa;
  --nav-icon: #c4b5fd;

  /* —— 与参考站同名的语义令牌（便于其他样式文件直接引用） —— */
  --text: var(--ink);
  --text-dim: var(--muted);
  --surface-canvas: #09090b;
  --surface-subtle: #121214;
  --surface-panel: rgba(24, 24, 27, 0.6);
  --surface-raised: #18181b;
  --surface-hover: #27272a;
  --surface-selected: #3f3f46;
  --primary: #8b5cf6;
  --primary-action: #7c3aed;
  --primary-subtle: #261b3f;
  --primary-soft: #b79bff;
  --primary-ink: #c4b5fd;
  --on-primary: #ffffff;
  --border-default: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --control-bg: #18181b;
  --control-border: rgba(255, 255, 255, 0.34);
  --focus-ring: #a78bfa;
  --glass: rgba(18, 18, 20, 0.72);
  --shadow-elevated: 0 24px 70px rgba(0, 0, 0, 0.55);
  --shadow-control: 0 4px 12px rgba(0, 0, 0, 0.2);
  --grad-primary: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  --grad-btn: linear-gradient(135deg, #7c3aed, #4f46e5);
  --grad-hero: linear-gradient(110deg, #e9d5ff 0%, #fbcfe8 45%, #bfdbfe 100%);
  color-scheme: dark;
}

/* —— 浅色配色：保留可切换能力，同样按参考站的浅色令牌落地 —— */
html[data-theme="light"] {
  --bg: #fafafa;
  --panel: #ffffff;
  --panel-soft: #f4f4f5;
  --ink: #18181b;
  --ink-soft: #3f3f46;
  --muted: #71717a;
  --faint: #a1a1aa;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --accent: #7c3aed;
  --accent-deep: #6d28d9;
  --accent-soft: #f5f1ff;
  --accent-grad: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  --shadow: 0 8px 30px rgba(24, 24, 27, 0.08), 0 1px 2px rgba(24, 24, 27, 0.04);
  --glow: 0 8px 24px rgba(124, 58, 237, 0.16);
  --nav-ink: #18181b;
  --nav-note: #71717a;
  --nav-icon: #7c3aed;
  --text: var(--ink);
  --text-dim: var(--muted);
  --surface-canvas: #fafafa;
  --surface-subtle: #f4f4f5;
  --surface-panel: rgba(255, 255, 255, 0.72);
  --surface-raised: #ffffff;
  --surface-hover: #f4f4f5;
  --surface-selected: #e4e4e7;
  --primary-subtle: #f5f1ff;
  --border-default: #e4e4e7;
  --control-border: rgba(24, 24, 27, 0.26);
  --glass: rgba(255, 255, 255, 0.78);
  --shadow-elevated: 0 24px 70px rgba(24, 24, 27, 0.12);
  color-scheme: light;
}

/* 全局字体与抗锯齿（参考站 body 规则） */
body {
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0;
}

/* ============================================================================
 * 2. 背景系统 —— 新增 data-bg="lingke"：深空星野 + 紫蓝双光晕
 *    （与既有 mist / aurora / galaxy / gold / ink 并存，互不影响）
 * ========================================================================== */

html[data-bg="lingke"] .app-bg {
  background:
    /* 顶部紫光 */
    radial-gradient(900px 520px at 82% -12%, rgba(139, 92, 246, 0.16), transparent 62%),
    /* 左侧蓝光 */
    radial-gradient(760px 480px at 4% 6%, rgba(59, 130, 246, 0.10), transparent 60%),
    /* 底部品红微光 */
    radial-gradient(820px 520px at 48% 112%, rgba(217, 70, 239, 0.08), transparent 62%),
    /* 细密星点（三层视差感） */
    radial-gradient(1.4px 1.4px at 42px 68px, rgba(255, 255, 255, 0.42), transparent 100%) 0 0 / 210px 190px repeat,
    radial-gradient(1.1px 1.1px at 118px 148px, rgba(196, 181, 253, 0.34), transparent 100%) 0 0 / 280px 240px repeat,
    radial-gradient(0.9px 0.9px at 76px 196px, rgba(255, 255, 255, 0.22), transparent 100%) 0 0 / 150px 160px repeat,
    linear-gradient(180deg, #09090b 0%, #0a090e 52%, #08080b 100%);
}

/* 两团缓慢漂浮的星云 */
html[data-bg="lingke"] .app-bg::before {
  width: 720px;
  height: 720px;
  top: -260px;
  right: -140px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.30), transparent 64%);
  animation: bgFloatA 30s ease-in-out infinite;
}

html[data-bg="lingke"] .app-bg::after {
  width: 640px;
  height: 640px;
  bottom: -280px;
  left: -160px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.26), transparent 66%);
  animation: bgFloatB 38s ease-in-out infinite;
}

/* 浅色模式下星野转成极淡的紫雾，避免星空压暗内容 */
html[data-theme="light"][data-bg="lingke"] .app-bg {
  background:
    radial-gradient(880px 500px at 84% -10%, rgba(139, 92, 246, 0.10), transparent 62%),
    radial-gradient(720px 460px at 2% 8%, rgba(59, 130, 246, 0.07), transparent 60%),
    linear-gradient(180deg, #fbfaff 0%, #f7f6fb 52%, #fafafa 100%);
}
html[data-theme="light"][data-bg="lingke"] .app-bg::before {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.16), transparent 66%);
}
html[data-theme="light"][data-bg="lingke"] .app-bg::after {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 66%);
}

/* ============================================================================
 * 3. 布局壳 —— 侧栏与主区之间留出画布缝，主区成为浮起的圆角面板
 * ========================================================================== */

.shell {
  gap: 16px;
  padding: 14px 18px 26px;
  max-width: 1560px;
}

/* —— 侧栏：深色卡片，细边框，内阴影高光（参考站 .sidebar） —— */
.sidebar {
  flex: 0 0 272px;
  width: 272px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  overflow: hidden;
}

html[data-theme="light"] .sidebar {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 44px rgba(24, 24, 27, 0.08), inset 0 1px 0 #ffffff;
}

/* 品牌区 */
.side-head {
  padding: 18px 16px 14px;
  gap: 12px;
}

.side-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, #1c1c22, #131318);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 6px 18px rgba(139, 92, 246, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #fff;
  overflow: hidden;
}

.side-logo svg {
  width: 24px;
  height: 24px;
}

.side-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.side-close {
  color: var(--muted);
}

.side-nav {
  padding: 2px 12px 12px;
}

/* ============================================================================
 * 4. 侧栏导航 —— 页签 / 筛选 / 搜索 / 卡片 / 用户区（对齐参考站侧栏手感）
 * ========================================================================== */

/* —— 四大页签：胶囊容器 + 选中态紫色实底 —— */
.sn-tabs {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 3px;
  gap: 3px;
  margin-bottom: 12px;
}

html[data-theme="light"] .sn-tabs {
  background: #f4f4f5;
  border-color: #ececef;
}

.sn-tab {
  border-radius: 9px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding: 7px 0;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.sn-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.sn-tab.is-active,
html[data-theme="dark"] .sn-tab.is-active {
  background: var(--accent-grad);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

html[data-theme="light"] .sn-tab.is-active {
  color: #fff;
}

/* —— 分类筛选：细描边胶囊 —— */
.sn-chip {
  border-color: var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11.5px;
  padding: 5px 10px;
}

.sn-chip:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.sn-chip.is-active,
html[data-theme="dark"] .sn-chip.is-active {
  background: var(--primary-subtle);
  border-color: rgba(139, 92, 246, 0.55);
  color: var(--primary-ink);
  font-weight: 600;
}

html[data-theme="light"] .sn-chip.is-active {
  color: var(--accent-deep);
}

/* —— 搜索框 —— */
.sn-search-input {
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-size: 12.5px;
}

.sn-search-input::placeholder {
  color: var(--faint);
}

.sn-search-input:focus {
  border-color: rgba(167, 139, 250, 0.65);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

/* —— 导航卡片：默认透明，hover 微亮，选中紫调 —— */
.sn-card {
  border-radius: 12px;
  border-color: transparent;
  padding: 9px 10px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.14s ease;
}

.sn-card:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: transparent;
}

.sn-card:active {
  transform: scale(0.985);
}

.sn-card.is-active,
html[data-theme="dark"] .sn-card.is-active {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.18), rgba(139, 92, 246, 0.05));
  border-color: rgba(139, 92, 246, 0.32);
}

html[data-theme="light"] .sn-card.is-active {
  background: linear-gradient(90deg, #f5f1ff, #fbfaff);
  border-color: #ddd0ff;
}

.sn-card-ic {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--nav-icon);
}

.sn-card.is-active .sn-card-ic,
html[data-theme="dark"] .sn-card.is-active .sn-card-ic {
  background: var(--accent-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.36);
}

html[data-theme="light"] .sn-card.is-active .sn-card-ic {
  color: #fff;
}

.sn-card-t {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.sn-card-d {
  font-size: 11px;
  color: var(--faint);
}

.sn-card-go {
  color: var(--primary-soft);
}

.sn-card-badge {
  background: rgba(139, 92, 246, 0.16);
  color: var(--primary-ink);
  font-weight: 600;
  border-radius: 6px;
}

.sn-more {
  border-radius: 12px;
  border-color: var(--line);
  color: var(--muted);
}

.sn-more:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.sn-empty {
  color: var(--faint);
}

/* —— 底部用户卡 —— */
.sn-user {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.sn-user:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-strong);
}

.sn-avatar {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.34);
}

.sn-user-name {
  color: var(--ink);
}

.sn-user-pts {
  color: var(--gold);
}

.sn-recharge {
  border-color: rgba(234, 179, 8, 0.45);
  color: var(--gold);
  border-radius: 9px;
}

.sn-recharge:hover {
  background: rgba(234, 179, 8, 0.14);
}

.sn-login,
html[data-theme="dark"] .sn-login {
  background: var(--accent-grad);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.34);
}

html[data-theme="light"] .sn-login {
  color: #fff;
}

.sn-user-hint {
  color: var(--faint);
}

/* —— 个人中心浮层 —— */
.sn-center,
html[data-theme="dark"] .sn-center {
  background: rgba(24, 24, 27, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

html[data-theme="light"] .sn-center {
  background: rgba(255, 255, 255, 0.98);
  border-color: #e4e4e7;
  box-shadow: 0 24px 60px rgba(24, 24, 27, 0.14);
}

.sn-center-group {
  color: var(--faint);
}

.sn-center-item {
  color: var(--ink);
  border-radius: 10px;
}

.sn-center-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.sn-center-ic {
  background: rgba(255, 255, 255, 0.06);
  color: var(--nav-icon);
  border-radius: 8px;
}

.side-foot {
  border-top: 1px solid var(--line);
  color: var(--faint);
}

.side-foot a {
  color: var(--accent-deep);
}

/* ============================================================================
 * 5. 顶栏 —— 标题 / 计费 chip / 充值 CTA / 用户 chip
 * ========================================================================== */

.topbar {
  padding: 4px 2px 10px;
  align-items: center;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.topbar-left .icon-btn {
  color: var(--muted);
  border-radius: 10px;
}

.topbar-left .icon-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

/* 计费 chip —— 对应参考站 .chip */
.chip {
  height: 36px;
  padding: 0 13px;
  border-radius: 10px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.chip:hover {
  background: var(--surface-hover);
  border-color: var(--line-strong);
  color: var(--ink);
}

/* ============================================================================
 * 6. 按钮体系 —— 参考站「宇宙按钮」：深底 + 四色彩虹描边 + 光晕
 * ========================================================================== */

.btn {
  height: 38px;
  padding: 0 15px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.005em;
  transition: transform 0.16s ease, filter 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* 主按钮：紫底 + 彩虹细边（137.48deg 四色，逐字对齐参考站） */
.btn.primary {
  position: relative;
  border: 1px solid transparent;
  background:
    linear-gradient(#7c3aed, #7c3aed) padding-box,
    linear-gradient(137.48deg, #ffdb3b 10%, #fe53bb 45%, #8f51ea 67%, #04f 87%) border-box;
  background-size: 100% 100%, 300% 300%;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  box-shadow:
    0 8px 24px rgba(124, 58, 237, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
  overflow: hidden;
  isolation: isolate;
}

/* 星屑纹理 */
.btn.primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.72) 0.8px, transparent 1.6px),
    radial-gradient(rgba(255, 255, 255, 0.34) 0.8px, transparent 1.8px);
  background-position: 0 0, 38px 54px;
  background-size: 96px 96px, 148px 148px;
}

.btn.primary > * {
  position: relative;
  z-index: 1;
}

.btn.primary:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px) scale(1.015);
  box-shadow:
    0 12px 30px rgba(139, 92, 246, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  background-position: 0 0, 50% 50%;
  animation: lkBtnShift 8s ease infinite;
}

.btn.primary:active:not(:disabled) {
  transform: translateY(0) scale(0.985);
  filter: brightness(0.96);
}

@keyframes lkBtnShift {
  0%, 100% { background-position: 0 0, 0% 50%; }
  50% { background-position: 0 0, 100% 50%; }
}

/* 充值 CTA：参考站首屏那颗白色胶囊按钮 */
.btn.recharge {
  position: relative;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #09090b;
  font-weight: 600;
  box-shadow:
    0 6px 20px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 #ffffff;
}

.btn.recharge:hover:not(:disabled) {
  background: #f4f4f5;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(255, 255, 255, 0.22);
  filter: none;
}

.btn.recharge:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
}

html[data-theme="light"] .btn.recharge {
  background: #18181b;
  border-color: #18181b;
  color: #fff;
  box-shadow: 0 6px 18px rgba(24, 24, 27, 0.22);
}

html[data-theme="light"] .btn.recharge:hover:not(:disabled) {
  background: #27272a;
}

/* 次要按钮（ghost）：透明底 + 细边 */
.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(10px);
}

.btn.ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-strong);
  color: var(--ink);
}

html[data-theme="light"] .btn.ghost {
  background: #ffffff;
  border-color: #e4e4e7;
  color: #18181b;
}

html[data-theme="light"] .btn.ghost:hover:not(:disabled) {
  background: #f4f4f5;
  border-color: #d4d4d8;
  color: #18181b;
}

.btn.danger {
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.btn.danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.6);
  color: #fecaca;
}

.btn.small {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 8px;
}

/* ============================================================================
 * 7. 快捷栏 / 外观菜单
 * ========================================================================== */

.quickbar {
  gap: 8px;
  padding: 2px 0 8px;
}

.qbtn {
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.qbtn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-strong);
  color: var(--ink);
}

html[data-theme="light"] .qbtn {
  background: #ffffff;
  border-color: #e4e4e7;
  color: #52525b;
}

html[data-theme="light"] .qbtn:hover {
  background: #f4f4f5;
  color: #18181b;
}

.look-menu {
  background: rgba(24, 24, 27, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

html[data-theme="light"] .look-menu {
  background: rgba(255, 255, 255, 0.98);
  border-color: #e4e4e7;
  box-shadow: 0 24px 60px rgba(24, 24, 27, 0.14);
}

.contact-row {
  color: var(--muted);
}

/* ============================================================================
 * 8. 主内容区 —— 浮起的圆角面板（参考站 .view）
 * ========================================================================== */

.main-col {
  position: relative;
}

.content {
  border-radius: 16px 16px 0 0;
}

/* ============================================================================
 * 9. 卡片 / 面板 —— 深色玻璃卡，细边，hover 提亮
 * ========================================================================== */

.panel {
  background: var(--surface-panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.panel:hover {
  border-color: rgba(255, 255, 255, 0.13);
}

html[data-theme="light"] .panel {
  background: #ffffff;
  border-color: #ececef;
  box-shadow: 0 8px 26px rgba(24, 24, 27, 0.06);
}

/* 通用信息卡 / 作品卡 */
.info-card,
.pc-item,
.sk-kv,
.mb-card,
.cv-panel,
.dr-panel {
  border-color: var(--line);
}

/* 选中态：紫调描边 + 柔光 */
.is-active,
.is-on,
.on {
  --lk-selected: 1;
}

/* ============================================================================
 * 10. 表单控件
 * ========================================================================== */

input,
select,
textarea {
  color: var(--ink);
}

input::placeholder,
textarea::placeholder {
  color: var(--faint);
}

input[type="text"],
input[type="search"],
input[type="password"],
input[type="number"],
input[type="email"],
select,
textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border-color: rgba(167, 139, 250, 0.6);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16);
  outline: none;
}

html[data-theme="light"] input[type="text"],
html[data-theme="light"] input[type="search"],
html[data-theme="light"] input[type="password"],
html[data-theme="light"] input[type="number"],
html[data-theme="light"] input[type="email"],
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  background: #ffffff;
  border-color: #e4e4e7;
}

/* ============================================================================
 * 11. 弹窗 / 登录层 / Toast
 * ========================================================================== */

.modal {
  background: rgba(24, 24, 27, 0.98);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

html[data-theme="light"] .modal {
  background: #ffffff;
  border-color: #e4e4e7;
  box-shadow: 0 30px 80px rgba(24, 24, 27, 0.16);
}

.modal-head {
  color: var(--ink);
}

.modal-sub {
  color: var(--muted);
}

.toast {
  background: rgba(24, 24, 27, 0.96);
  border: 1px solid var(--line-strong);
  color: #fafafa;
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* ============================================================================
 * 12. 滚动条 —— 参考站 thumb #ffffff5c
 * ========================================================================== */

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.30);
  background-clip: padding-box;
}

html[data-theme="light"] * {
  scrollbar-color: rgba(24, 24, 27, 0.2) transparent;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(24, 24, 27, 0.16);
  background-clip: padding-box;
}

/* ============================================================================
 * 13. 焦点环 —— 参考站 #a78bfa
 * ========================================================================== */

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ============================================================================
 * 14. 响应式：与参考站一致的收放节奏
 * ========================================================================== */

@media (max-width: 1400px) {
  .shell {
    max-width: 100%;
  }
}

@media (max-width: 1180px) and (min-width: 1024px) {
  .sidebar {
    flex: 0 0 236px;
    width: 236px;
  }
}

@media (max-width: 1023px) {
  .shell {
    padding: 10px 12px 22px;
    gap: 10px;
  }
  .sidebar {
    border-radius: 20px;
    width: min(300px, 86vw);
  }
  .topbar {
    padding: 2px 0 8px;
  }
  .page-title {
    font-size: 19px;
  }
}

@media (max-width: 860px) {
  .chip {
    height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }
  .btn {
    height: 36px;
  }
  .btn.recharge {
    height: 36px;
    padding: 0 14px;
  }
  .topbar-right {
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 8px 10px 18px;
  }
  .page-title {
    font-size: 17.5px;
  }
  .panel {
    border-radius: 14px;
  }
}

/* ============================================================================
 * 15. 动效降级
 * ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .btn.primary:hover:not(:disabled) {
    animation: none;
    transform: none;
  }
  html[data-bg="lingke"] .app-bg::before,
  html[data-bg="lingke"] .app-bg::after {
    animation: none;
  }
}

/* ============================================================================
 * 16. 强制接管层
 *     styles-lux.css 带 300 处 !important（青绿 teal 主题），必须同权重覆盖。
 *     本段逐项对齐白猪AI 的紫黑体系，且保证浅色模式下同样成立。
 * ========================================================================== */

/* —— 16.1 主面板 / 卡片 / 分组 —— */
html[data-theme] .panel,
html[data-theme] .skws-panel,
html[data-theme] .card {
  background: rgba(24, 24, 27, 0.62) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
}

html[data-theme="light"] .panel,
html[data-theme="light"] .skws-panel,
html[data-theme="light"] .card {
  background: #ffffff !important;
  border-color: #ececef !important;
  box-shadow: 0 8px 26px rgba(24, 24, 27, 0.06) !important;
}

html[data-theme="dark"] .panel-head,
html[data-theme="dark"] .panel-body {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .panel-head h2,
html[data-theme="dark"] h3 {
  color: #fafafa !important;
}

html[data-theme="dark"] .group-head,
html[data-theme="dark"] .model-group-head,
html[data-theme="dark"] .mc-group-head {
  color: #a1a1aa !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* —— 16.2 顶栏 / 页标题 —— */
html[data-theme] .topbar {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

html[data-theme] .quickbar {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .page-title {
  color: #fafafa !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

html[data-theme="light"] .page-title {
  color: #18181b !important;
}

html[data-theme] .page-title::before {
  background: linear-gradient(180deg, #c4b5fd, #7c3aed) !important;
  opacity: 1 !important;
}

html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .hero-note {
  color: #a1a1aa !important;
}

html[data-theme="dark"] .icon-btn {
  color: #a1a1aa !important;
  background: transparent !important;
  border-color: transparent !important;
}

html[data-theme="dark"] .icon-btn:hover {
  color: #fafafa !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

/* —— 16.3 按钮：主按钮紫、充值白胶囊、次要胶囊描边 —— */
html[data-theme] .btn.primary {
  border: 1px solid transparent !important;
  background:
    linear-gradient(#7c3aed, #7c3aed) padding-box,
    linear-gradient(137.48deg, #ffdb3b 10%, #fe53bb 45%, #8f51ea 67%, #04f 87%) border-box !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

html[data-theme] .btn.primary:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.015) !important;
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.46) !important;
  filter: brightness(1.1) !important;
}

html[data-theme] .btn.recharge {
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  color: #09090b !important;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.14), inset 0 1px 0 #ffffff !important;
}

html[data-theme] .btn.recharge:hover:not(:disabled) {
  background: #f4f4f5 !important;
  filter: none !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 26px rgba(255, 255, 255, 0.22) !important;
}

html[data-theme="light"] .btn.recharge {
  background: #18181b !important;
  border-color: #18181b !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(24, 24, 27, 0.22) !important;
}

html[data-theme="light"] .btn.recharge:hover:not(:disabled) {
  background: #27272a !important;
}

html[data-theme="dark"] .btn.ghost,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .qbtn {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  color: #e4e4e7 !important;
  box-shadow: none !important;
  border-radius: 999px !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
}

html[data-theme="dark"] .btn.ghost {
  border-radius: 10px !important;
}

html[data-theme="dark"] .btn.ghost:hover:not(:disabled),
html[data-theme="dark"] .chip:hover,
html[data-theme="dark"] .qbtn:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.20) !important;
  color: #fafafa !important;
}

html[data-theme="light"] .btn.ghost,
html[data-theme="light"] .chip,
html[data-theme="light"] .qbtn {
  background: #ffffff !important;
  border-color: #e4e4e7 !important;
  color: #3f3f46 !important;
  box-shadow: 0 1px 3px rgba(24, 24, 27, 0.06) !important;
}

html[data-theme="light"] .btn.ghost:hover:not(:disabled),
html[data-theme="light"] .chip:hover,
html[data-theme="light"] .qbtn:hover {
  background: #f4f4f5 !important;
  border-color: #d4d4d8 !important;
  color: #18181b !important;
}

html[data-theme="dark"] .qbtn svg {
  color: #a1a1aa !important;
}

/* —— 16.4 表单控件 —— */
html[data-theme="dark"] .input,
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] select,
html[data-theme="dark"] .select,
html[data-theme="dark"] textarea {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  color: #fafafa !important;
  box-shadow: none !important;
  border-radius: 10px !important;
}

html[data-theme="dark"] .input:focus,
html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] .select:focus,
html[data-theme="dark"] textarea:focus {
  border-color: rgba(167, 139, 250, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18) !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

html[data-theme="light"] .input,
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] .select,
html[data-theme="light"] textarea {
  background: #ffffff !important;
  border-color: #e4e4e7 !important;
  color: #18181b !important;
}

/* —— 16.5 侧栏全套 —— */
html[data-theme="dark"] .sn-card {
  background: transparent !important;
  border-color: transparent !important;
  border-radius: 12px !important;
}

html[data-theme="dark"] .sn-card:hover {
  background: rgba(255, 255, 255, 0.055) !important;
}

html[data-theme="dark"] .sn-card.is-active {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.18), rgba(139, 92, 246, 0.05)) !important;
  border-color: rgba(139, 92, 246, 0.32) !important;
}

html[data-theme="light"] .sn-card {
  background: transparent !important;
  border-color: transparent !important;
}

html[data-theme="light"] .sn-card.is-active {
  background: linear-gradient(90deg, #f5f1ff, #fbfaff) !important;
  border-color: #ddd0ff !important;
}

html[data-theme="dark"] .sn-card-ic {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: #c4b5fd !important;
}

html[data-theme="dark"] .sn-card.is-active .sn-card-ic {
  background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
  border-color: transparent !important;
  color: #fff !important;
}

html[data-theme="dark"] .sn-card-t,
html[data-theme="dark"] .sn-user-name {
  color: #fafafa !important;
}

html[data-theme="dark"] .sn-card-badge {
  background: rgba(139, 92, 246, 0.16) !important;
  color: #c4b5fd !important;
}

html[data-theme="dark"] .sn-more {
  border-color: rgba(255, 255, 255, 0.10) !important;
  color: #a1a1aa !important;
  background: transparent !important;
}

html[data-theme="dark"] .sn-more:hover {
  color: #fafafa !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

html[data-theme="dark"] .sn-user {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .sn-avatar,
html[data-theme="dark"] .sn-login {
  background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
  color: #fff !important;
}

html[data-theme="dark"] .sn-recharge {
  border-color: rgba(234, 179, 8, 0.45) !important;
  color: #eab308 !important;
  background: transparent !important;
}

html[data-theme="dark"] .sn-tabs {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .sn-tab {
  color: #a1a1aa !important;
}

html[data-theme="dark"] .sn-tab.is-active {
  background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.38) !important;
}

html[data-theme="dark"] .sn-chip {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #a1a1aa !important;
}

html[data-theme="dark"] .sn-chip.is-active {
  background: #261b3f !important;
  border-color: rgba(139, 92, 246, 0.55) !important;
  color: #c4b5fd !important;
}

html[data-theme="dark"] .sn-search-input {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #fafafa !important;
}

html[data-theme="dark"] .sn-search-input:focus {
  border-color: rgba(167, 139, 250, 0.65) !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

html[data-theme="dark"] .side-link.is-active {
  background: #261b3f !important;
  color: #c4b5fd !important;
}

html[data-theme="dark"] .side-title {
  color: #fafafa !important;
}

/* —— 16.6 模型广场：卡片 / 图标 / 价格 / 筛选 —— */
html[data-theme="dark"] .model-card {
  background: rgba(24, 24, 27, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease !important;
}

html[data-theme="dark"] .model-card:hover {
  background: rgba(32, 32, 38, 0.9) !important;
  border-color: rgba(139, 92, 246, 0.42) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.46) !important;
}

html[data-theme="dark"] .mc-name,
html[data-theme="dark"] .mc-stats b {
  color: #fafafa !important;
}

html[data-theme="dark"] .mc-desc,
html[data-theme="dark"] .mc-sku {
  color: #a1a1aa !important;
}

html[data-theme="dark"] .mc-price,
html[data-theme="dark"] .mc-price-tag,
html[data-theme="dark"] .mc-foot .price {
  color: #c4b5fd !important;
}

html[data-theme="dark"] .spec-chip {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #d4d4d8 !important;
  border-radius: 8px !important;
}

html[data-theme="dark"] .mfilter-chip,
html[data-theme="dark"] .filter-chip,
html[data-theme="dark"] .series-chip {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
  color: #a1a1aa !important;
  border-radius: 999px !important;
}

html[data-theme="dark"] .mfilter-chip:hover,
html[data-theme="dark"] .filter-chip:hover,
html[data-theme="dark"] .series-chip:hover {
  color: #fafafa !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

html[data-theme="dark"] .seg {
  background: rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
}

html[data-theme="dark"] .seg button {
  color: #a1a1aa !important;
  background: transparent !important;
}

html[data-theme="dark"] .seg button.is-active {
  background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.34) !important;
}

html[data-theme="dark"] .opt {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
  color: #a1a1aa !important;
}

html[data-theme="dark"] .opt.is-active {
  background: #261b3f !important;
  border-color: rgba(139, 92, 246, 0.55) !important;
  color: #c4b5fd !important;
}

/* —— 16.7 弹窗 / 登录 —— */
html[data-theme] .modal-root {
  background: rgba(0, 0, 0, 0.62) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
}

html[data-theme="dark"] .modal,
html[data-theme="dark"] .login-card {
  background: rgba(24, 24, 27, 0.98) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 18px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="dark"] .modal-head h2,
html[data-theme="dark"] .login-headline {
  color: #fafafa !important;
}

html[data-theme="dark"] .login-submit {
  background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.34) !important;
}

html[data-theme="dark"] .login-card .lc-srow,
html[data-theme="dark"] .login-card .lc-summary {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #e4e4e7 !important;
}

html[data-theme="dark"] .login-card .lc-srow b {
  color: #c4b5fd !important;
}

html[data-theme="dark"] .login-card .recovery-code {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fafafa !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .login-brand .lb-icon {
  background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
  color: #fff !important;
}

/* —— 16.8 选中文字 / 滚动条 / 焦点环 —— */
html[data-theme="dark"] ::selection {
  background: rgba(139, 92, 246, 0.34) !important;
  color: #fff !important;
}

html[data-theme="dark"] ::-webkit-scrollbar-track {
  background: transparent !important;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16) !important;
  border-radius: 999px !important;
  border: 2px solid transparent !important;
  background-clip: padding-box !important;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  background-clip: padding-box !important;
}

html[data-theme] :focus-visible {
  outline: 2px solid #a78bfa !important;
  outline-offset: 2px !important;
}

/* —— 16.9 数据趋势色（保留涨跌语义，仅调色相） —— */
html[data-theme="dark"] .trend i.ok {
  background: #10b981 !important;
}

html[data-theme="dark"] .trend i {
  background: #ef4444 !important;
}

/* ============================================================================
 * 17. 模型图标容器 —— 深色圆角徽标底（内层图形由 model-brand-icons.js 注入）
 * ========================================================================== */

html[data-theme="dark"] .model-card .mc-icon {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 12px !important;
  color: #fafafa !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}

html[data-theme="dark"] .model-card .mc-icon.is-video {
  background: rgba(139, 92, 246, 0.16) !important;
  border-color: rgba(139, 92, 246, 0.26) !important;
  color: #c4b5fd !important;
}

html[data-theme="light"] .model-card .mc-icon {
  background: #f4f4f5 !important;
  border: 1px solid #e4e4e7 !important;
  border-radius: 12px !important;
  color: #3f3f46 !important;
  box-shadow: none !important;
}

html[data-theme="light"] .model-card .mc-icon.is-video {
  background: #f5f1ff !important;
  border-color: #e6dcff !important;
  color: #7c3aed !important;
}

.model-card .mc-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* ============================================================================
 * 18. 登录后工作台深度校准
 *     依据白猪AI（lingkeai.cn）登录态实拍逐项对齐：
 *     侧栏头部（品牌/APP/收起）、代理合作卡、快捷宫格、媒体文字页签、
 *     模型行卡片、用户 footer，以及主区面板的层级与间距。
 * ========================================================================== */

/* —— 18.1 侧栏容器：贴边深色、右侧发丝分割线 —— */
html[data-theme] .sidebar {
  width: 300px !important;
  background: #08080a !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

/* —— 18.2 侧栏头部：星芒 logo + 双行品牌 + APP 胶囊 + 收起 —— */
html[data-theme] .side-head {
  display: flex !important;
  align-items: center;
  gap: 9px !important;
  padding: 16px 14px 12px !important;
}

html[data-theme] .side-logo {
  width: 26px !important;
  height: 26px !important;
  flex: 0 0 auto;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  display: grid;
  place-items: center;
}

html[data-theme] .side-logo svg {
  width: 26px !important;
  height: 26px !important;
  filter: drop-shadow(0 0 8px rgba(255, 95, 109, 0.4));
}

html[data-theme] .side-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.15;
}

html[data-theme] .side-title {
  font-size: 16.5px !important;
  font-weight: 800 !important;
  letter-spacing: -0.015em;
  color: #fafafa !important;
  white-space: nowrap;
}

html[data-theme] .side-sub {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #77777f;
  white-space: nowrap;
}

/* APP 胶囊：青蓝渐变 + 内发光，参考站顶栏同款 */
html[data-theme] .side-app {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 27px;
  padding: 0 10px 0 8px;
  flex: 0 0 auto;
  border: 1px solid rgba(125, 211, 252, 0.55);
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8 0%, #22d3ee 55%, #0ea5e9 100%);
  color: #04121a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.16), 0 4px 14px rgba(34, 211, 238, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

html[data-theme] .side-app svg { width: 13px; height: 13px; }

html[data-theme] .side-app:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.3), 0 6px 20px rgba(34, 211, 238, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

html[data-theme] .side-close {
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 auto;
  color: #77777f !important;
  background: transparent !important;
  border: 0 !important;
  display: grid !important;
  place-items: center;
}

html[data-theme] .side-close svg { width: 15px; height: 15px; }

html[data-theme] .side-close:hover {
  color: #fafafa !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-radius: 7px;
}

/* —— 18.3 代理合作推广卡 —— */
html[data-theme] .sn-promo {
  appearance: none;
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: calc(100% - 24px);
  margin: 0 12px 12px;
  padding: 9px 10px 9px 13px;
  text-align: left;
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 11px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(124, 58, 237, 0.22), transparent 62%),
    linear-gradient(180deg, rgba(28, 24, 40, 0.9), rgba(18, 16, 24, 0.9));
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

html[data-theme] .sn-promo::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 2px;
  height: 22px;
  transform: translateY(-50%);
  border-radius: 2px;
  background: linear-gradient(180deg, #c084fc, #7c3aed);
}

html[data-theme] .sn-promo:hover {
  border-color: rgba(167, 139, 250, 0.46);
  transform: translateY(-1px);
}

html[data-theme] .sn-promo-ic {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #ede9fe;
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

html[data-theme] .sn-promo-ic svg { width: 15px; height: 15px; }

html[data-theme] .sn-promo-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

html[data-theme] .sn-promo-t {
  font-size: 12px;
  font-weight: 700;
  color: #f4f4f5;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme] .sn-promo-d {
  font-size: 10px;
  color: #8b8b93;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme] .sn-promo-go {
  flex: 0 0 auto;
  padding: 2px 8px;
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  color: #c4b5fd;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* —— 18.4 快捷宫格：图标在上、名称在下，选中态整块提亮 —— */
html[data-theme] .sn-panel { gap: 0; }

html[data-theme] .sn-tabs {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 4px !important;
  padding: 0 12px !important;
  margin: 0 0 10px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html[data-theme] .sn-tab {
  appearance: none;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 4px 8px !important;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  background: transparent !important;
  color: #8b8b93 !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  line-height: 1;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

html[data-theme] .sn-tab-ic {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: inherit;
}

html[data-theme] .sn-tab-ic svg { width: 20px; height: 20px; }

html[data-theme] .sn-tab-t { font-size: 11.5px; letter-spacing: -0.01em; }

html[data-theme] .sn-tab:hover {
  color: #e4e4e7 !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

html[data-theme] .sn-tab.is-active {
  color: #fafafa !important;
  background: #1a1a1f !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

html[data-theme] .sn-tab.is-active .sn-tab-ic { color: #fafafa; }

/* —— 18.5 媒体分类：文字页签，选中为深色药丸 —— */
html[data-theme] .sn-chips {
  display: flex !important;
  gap: 4px !important;
  flex-wrap: wrap;
  padding: 0 12px !important;
  margin: 0 0 10px !important;
}

html[data-theme] .sn-chip {
  appearance: none;
  height: 27px;
  padding: 0 12px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #8b8b93 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

html[data-theme] .sn-chip:hover { color: #e4e4e7 !important; background: rgba(255, 255, 255, 0.05) !important; }

html[data-theme] .sn-chip.is-active {
  color: #fafafa !important;
  background: #1d1d22 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* —— 18.6 搜索框 —— */
html[data-theme] .sn-search { padding: 0 12px; margin-bottom: 8px !important; }

html[data-theme] .sn-search-input {
  height: 34px !important;
  border-radius: 9px !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  background: #131317 !important;
  color: #fafafa !important;
  font-size: 12.5px !important;
  padding: 0 11px !important;
}

html[data-theme] .sn-search-input::placeholder { color: #6b6b73 !important; }

html[data-theme] .sn-search-input:focus {
  border-color: rgba(139, 92, 246, 0.55) !important;
  background: #17171c !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14) !important;
}

/* —— 18.7 列表行卡片 —— */
html[data-theme] .sn-list {
  gap: 2px !important;
  padding: 0 8px 8px !important;
}

html[data-theme] .sn-card {
  gap: 10px !important;
  padding: 9px 8px !important;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}

html[data-theme] .sn-card:hover {
  background: #141418 !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  transform: none !important;
}

html[data-theme] .sn-card.is-active {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.16), rgba(124, 58, 237, 0.03)) !important;
  border-color: rgba(139, 92, 246, 0.26) !important;
}

html[data-theme] .sn-card-ic {
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 auto;
  border-radius: 9px !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  background: #17171c !important;
  color: #d4d4d8 !important;
  box-shadow: none !important;
}

html[data-theme] .sn-card-ic svg { width: 18px; height: 18px; }

html[data-theme] .sn-card.is-active .sn-card-ic {
  background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
  border-color: transparent !important;
  color: #fff !important;
}

html[data-theme] .sn-card-main { gap: 3px !important; }

html[data-theme] .sn-card-t {
  font-size: 13px !important;
  font-weight: 650 !important;
  color: #f4f4f5 !important;
  letter-spacing: -0.01em;
}

html[data-theme] .sn-card-d {
  font-size: 11px !important;
  line-height: 1.45 !important;
  color: #7c7c85 !important;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html[data-theme] .sn-card-badge {
  padding: 2px 7px !important;
  border-radius: 999px !important;
  background: rgba(139, 92, 246, 0.16) !important;
  color: #c4b5fd !important;
  font-size: 10px !important;
  font-weight: 700 !important;
}

html[data-theme] .sn-card-go { color: #5c5c64 !important; font-size: 15px !important; }
html[data-theme] .sn-card:hover .sn-card-go { color: #a1a1aa !important; }

/* —— 18.8 底部用户卡 —— */
html[data-theme] .side-foot {
  padding: 8px 12px 12px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme] .sn-user {
  gap: 9px !important;
  padding: 7px 9px !important;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  background: transparent !important;
  cursor: pointer;
  transition: background 0.15s ease;
}

html[data-theme] .sn-user:hover { background: #131317 !important; }

html[data-theme] .sn-avatar {
  width: 30px !important;
  height: 30px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  font-weight: 700;
  background: linear-gradient(135deg, #8b5cf6, #4f46e5) !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.32);
}

html[data-theme] .sn-user-main { gap: 2px !important; }

html[data-theme] .sn-user-name {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #f4f4f5 !important;
}

html[data-theme] .sn-user-sub {
  font-size: 10.5px;
  color: #77777f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme] .sn-user-go { color: #5c5c64 !important; }

html[data-theme] .sn-recharge {
  height: 24px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #f4f4f5 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

html[data-theme] .sn-recharge:hover {
  background: #fff !important;
  border-color: #fff !important;
  color: #09090b !important;
}

/* —— 18.9 个人中心浮层 —— */
html[data-theme] .sn-center {
  border-radius: 13px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: #131317 !important;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.72) !important;
  padding: 7px !important;
}

html[data-theme] .sn-center-group {
  font-size: 9.5px !important;
  letter-spacing: 0.14em !important;
  color: #6b6b73 !important;
  padding: 6px 8px 4px !important;
}

html[data-theme] .sn-center-item {
  border-radius: 8px !important;
  padding: 8px !important;
  color: #d4d4d8 !important;
  font-size: 12px !important;
}

html[data-theme] .sn-center-item:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #fff !important;
}

html[data-theme] .sn-center-ic { color: #a1a1aa !important; }

/* —— 18.10 收尾修正：品牌文字不被 APP 挤压，分类行始终单行 —— */
html[data-theme] .side-brand { overflow: hidden; }

html[data-theme] .side-title {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15.5px !important;
}

html[data-theme] .side-app {
  height: 25px;
  padding: 0 8px 0 6px;
  font-size: 10.5px;
  gap: 3px;
}

html[data-theme] .side-app svg { width: 12px; height: 12px; }

html[data-theme] .sn-chips {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html[data-theme] .sn-chips::-webkit-scrollbar { display: none; }

html[data-theme] .sn-chip {
  flex: 0 0 auto;
  padding: 0 10px !important;
  font-size: 11.5px !important;
}

/* ============================================================================
 * 19. 桌面端全幅工作台
 *     参考站是「左侧栏贴边 + 右侧整块工作区」的全幅布局，
 *     而不是居中的卡片流。这里在 ≥1024px 下接管布局壳。
 * ========================================================================== */
@media (min-width: 1024px) {
  html[data-theme] .shell {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: 100vh;
  }

  html[data-theme] .sidebar {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    bottom: auto;
    flex: 0 0 300px;
    width: 300px;
    height: 100vh;
    min-height: 0;
    transform: none;
    border: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #08080a !important;
    overflow: hidden;
  }

  html[data-theme] .main-col {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  /* 顶栏与快捷栏在主区内留出纸边 */
  html[data-theme] .topbar {
    padding: 15px 26px 4px !important;
  }

  html[data-theme] .quickbar {
    padding: 0 26px 10px !important;
  }

  html[data-theme] .contact-row {
    padding: 0 26px !important;
  }

  /* 工作区面板：左上圆角 + 细边 + 顶部紫蓝光晕 */
  html[data-theme] .content {
    flex: 1 1 auto;
    min-height: 60vh;
    margin: 0 !important;
    padding: 8px 26px 28px !important;
    border-radius: 16px 0 0 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    background:
      radial-gradient(116% 54% at 4% -4%, rgba(109, 40, 217, 0.28), transparent 62%),
      radial-gradient(74% 34% at 58% -8%, rgba(37, 99, 235, 0.20), transparent 66%),
      #0a0a0d !important;
    box-shadow: none !important;
  }

  /* 收起侧栏：形态与控件见第 29 节（收成 64px 图标栏，箭头是唯一开关） */
  html.is-side-collapsed .content {
    border-radius: 0 !important;
    border-left: 0 !important;
  }
}

/* —— 19.1 工作区面板上移到 .main-col：顶栏与内容同处一块面板 —— */
@media (min-width: 1024px) {
  html[data-theme] .main-col {
    background:
      radial-gradient(116% 46% at 3% -6%, rgba(109, 40, 217, 0.26), transparent 58%),
      radial-gradient(70% 28% at 56% -10%, rgba(37, 99, 235, 0.18), transparent 64%),
      #0a0a0d;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px 0 0 0;
    overflow: hidden;
  }

  html[data-theme] .content {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 6px 26px 28px !important;
  }

  html.is-side-collapsed .main-col { border-radius: 0; border-left: 0; }
}

/* ============================================================================
 * 20. 顶栏与快捷操作 —— 参考站「工作区头部」语汇
 *     标题左对齐、右侧一排低调药丸；站内主行动用紫色渐变，
 *     与参考站的「开始二创 / 发布灵感 / 我的发布与收益」同一套按钮语法。
 * ========================================================================== */

/* —— 20.1 页标题 —— */
html[data-theme] .topbar {
  min-height: 0;
  padding-top: 12px !important;
  padding-bottom: 2px !important;
  border: 0 !important;
  background: transparent !important;
}

html[data-theme] .page-title {
  font-size: 26px !important;
  font-weight: 800 !important;
  letter-spacing: -0.028em !important;
  line-height: 1.15 !important;
  color: #fafafa !important;
  padding-left: 15px !important;
}

html[data-theme] .page-title::before {
  width: 3px !important;
  height: 21px !important;
  border-radius: 2px !important;
  background: linear-gradient(180deg, #c4b5fd, #7c3aed) !important;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

/* —— 20.2 顶栏右侧：低调药丸排 —— */
html[data-theme] .topbar-right { gap: 8px; }

html[data-theme] .topbar .chip {
  height: 30px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: #131317 !important;
  color: #a1a1aa !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

html[data-theme] .topbar .chip:hover {
  background: #1a1a20 !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #fafafa !important;
}

/* 充值：站内主行动，紫色渐变 + 内高光 */
html[data-theme] .btn.recharge {
  height: 32px !important;
  padding: 0 15px !important;
  border: 1px solid rgba(167, 139, 250, 0.42) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 52%, #6d28d9 100%) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

html[data-theme] .btn.recharge svg { width: 14px; height: 14px; opacity: 0.92; }

html[data-theme] .btn.recharge:hover:not(:disabled) {
  transform: translateY(-1px) !important;
  filter: brightness(1.08) !important;
  background: linear-gradient(135deg, #9d70ff 0%, #8b5cf6 52%, #7c3aed 100%) !important;
  box-shadow: 0 9px 24px rgba(139, 92, 246, 0.5) !important;
}

/* 登录 / 注册：描边药丸 */
html[data-theme] .btn.ghost,
html[data-theme] .logout-btn {
  height: 32px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #e4e4e7 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

html[data-theme] .btn.ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}

/* —— 20.3 快捷栏：参考站同款描边药丸 —— */
html[data-theme] .quickbar {
  gap: 7px !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

html[data-theme] .qbtn {
  height: 30px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: #131317 !important;
  color: #a1a1aa !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  gap: 6px;
}

html[data-theme] .qbtn svg { width: 14px; height: 14px; }

html[data-theme] .qbtn:hover {
  background: #1a1a20 !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #fafafa !important;
  transform: none !important;
  box-shadow: none !important;
}

/* —— 20.4 客服信息行 —— */
html[data-theme] .contact-row {
  margin: 8px 0 0 !important;
  font-size: 11.5px !important;
  color: #77777f !important;
  max-width: 640px;
}

html[data-theme] .contact-row:empty { display: none !important; }

/* —— 21. 品牌图标容器：识别到厂商后去掉底框，让品牌标记自己立住 —— */
html[data-theme] .sn-card-ic[data-lk-brand] {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  width: 30px !important;
  height: 30px !important;
}

html[data-theme] .sn-card-ic[data-lk-brand] svg {
  width: 24px !important;
  height: 24px !important;
}

html[data-theme] .sn-card.is-active .sn-card-ic[data-lk-brand] {
  background: transparent !important;
  border-color: transparent !important;
}

html[data-theme] .model-card .mc-icon[data-lk-brand] {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme] .model-card .mc-icon[data-lk-brand] svg {
  width: 24px !important;
  height: 24px !important;
}

/* —— 22. 个人中心未登录态：收成一个居中的引导卡，按钮不再通栏 —— */
html[data-theme] .points-hero:not(.pc-hero) {
  max-width: 520px;
  margin: 42px auto 0;
  padding: 36px 28px 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(124, 58, 237, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(22, 22, 26, 0.94), rgba(12, 12, 15, 0.94));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

html[data-theme] .points-hero:not(.pc-hero) .ph-label {
  justify-content: center;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: #a1a1aa;
}

html[data-theme] .points-hero:not(.pc-hero) .ph-value {
  margin: 10px 0 6px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fafafa;
}

html[data-theme] .points-hero:not(.pc-hero) .hint {
  font-size: 12.5px;
  line-height: 1.7;
  color: #8b8b93;
}

html[data-theme] .points-hero:not(.pc-hero) .btn.block {
  display: block;
  width: auto;
  max-width: 200px;
  margin: 20px auto 0 !important;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
  border: 1px solid rgba(167, 139, 250, 0.42) !important;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.4);
}

/* —— 23. 侧栏功能图标：按序轮转多彩渐变块（对齐参考站智能体列表的彩色图标） —— */
html[data-theme] .sn-card-ic:not([data-lk-brand]) {
  color: #fff !important;
  border-color: transparent !important;
}

html[data-theme] .sn-card-ic:not([data-lk-brand]) svg {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.28));
}

html[data-theme] .sn-card:nth-child(7n+1) .sn-card-ic:not([data-lk-brand]) {
  background: linear-gradient(135deg, #a78bfa, #6d28d9) !important;
}
html[data-theme] .sn-card:nth-child(7n+2) .sn-card-ic:not([data-lk-brand]) {
  background: linear-gradient(135deg, #60a5fa, #2563eb) !important;
}
html[data-theme] .sn-card:nth-child(7n+3) .sn-card-ic:not([data-lk-brand]) {
  background: linear-gradient(135deg, #fbbf24, #d97706) !important;
}
html[data-theme] .sn-card:nth-child(7n+4) .sn-card-ic:not([data-lk-brand]) {
  background: linear-gradient(135deg, #f472b6, #be185d) !important;
}
html[data-theme] .sn-card:nth-child(7n+5) .sn-card-ic:not([data-lk-brand]) {
  background: linear-gradient(135deg, #34d399, #059669) !important;
}
html[data-theme] .sn-card:nth-child(7n+6) .sn-card-ic:not([data-lk-brand]) {
  background: linear-gradient(135deg, #22d3ee, #0e7490) !important;
}
html[data-theme] .sn-card:nth-child(7n) .sn-card-ic:not([data-lk-brand]) {
  background: linear-gradient(135deg, #fb923c, #c2410c) !important;
}

html[data-theme] .sn-card.is-active .sn-card-ic:not([data-lk-brand]) {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* —— 24. 移动端抽屉：遮罩加深，层次更明确 —— */
html[data-theme] .side-mask {
  background: rgba(0, 0, 0, 0.66) !important;
  -webkit-backdrop-filter: blur(3px) saturate(120%);
  backdrop-filter: blur(3px) saturate(120%);
}

@media (max-width: 1023px) {
  html[data-theme] .sidebar {
    background: #08080a !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.6) !important;
  }
}

/* —— 25. 登录页品牌标识：星芒 + 深色徽章底，与侧栏一致 —— */
html[data-theme] .login-brand .lb-icon {
  background: linear-gradient(145deg, #1b1b21, #101014) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 11px !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(255, 95, 109, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

html[data-theme] .login-brand .lb-icon svg {
  width: 21px !important;
  height: 21px !important;
  filter: drop-shadow(0 0 8px rgba(255, 95, 109, 0.42));
}

html[data-theme] .login-brand > span:last-child {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fafafa !important;
}

/* ============================================================================
 * 26. 侧栏像素级对齐（依据参考站截图实测，1:1 复刻几何）
 *
 *     实测结论（参考图 355px 宽）：
 *       品牌行内容高 37 / 推广卡高 46 / 宫格图标带 y130-145、文字带 y153-163 /
 *       页签文字带 y202-213；宫格与页签的列中心几乎重合（41.5 / 128.5 / 214.5 / 301）。
 *     即：宫格与页签共用同一套列宽，是「同类模块位置完全一致」的关键。
 *
 *     本段按 300px 侧栏等比换算（×0.845）后落值，并把所有格子改成等分网格，
 *     保证四个宫格、若干页签的宽高、图标尺寸、文字基线、上下间距全部一一相同。
 * ========================================================================== */

/* —— 26.1 侧栏容器：底色对齐参考站 #121214 —— */
html[data-theme] .sidebar {
  background: #111113 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
}

html[data-theme] .sn-panel {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* —— 26.2 品牌行：30 徽章 + 双行标题 + APP 胶囊 + 收起，全部垂直居中 —— */
html[data-theme] .side-head {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 54px !important;
  padding: 10px 12px !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

html[data-theme] .side-logo {
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 30px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 9px !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  background: #17171a !important;
  box-shadow: none !important;
}

html[data-theme] .side-logo svg {
  width: 22px !important;
  height: 22px !important;
  filter: none !important;
}

html[data-theme] .side-brand {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 3px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

html[data-theme] .side-title {
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
  color: #fafafa !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html[data-theme] .side-sub {
  font-size: 10.5px !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  letter-spacing: 0.01em !important;
  color: #7c7c85 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* APP 胶囊：蓝底白字 + 左上角在线绿点（参考站同款） */
html[data-theme] .side-app {
  position: relative !important;
  height: 26px !important;
  padding: 0 10px 0 8px !important;
  gap: 4px !important;
  flex: 0 0 auto !important;
  border: 1px solid rgba(125, 211, 252, 0.5) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #1e5bff 0%, #0ea5e9 52%, #38bdf8 100%) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
}

html[data-theme] .side-app svg {
  width: 12px !important;
  height: 12px !important;
  color: #ffffff !important;
}

html[data-theme] .side-app::after {
  content: "" !important;
  position: absolute !important;
  top: -2px !important;
  left: 8px !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #22c55e !important;
  box-shadow: 0 0 0 2px #0f1116 !important;
}

html[data-theme] .side-close {
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #8b8b93 !important;
}

html[data-theme] .side-close svg { width: 14px !important; height: 14px !important; }

html[data-theme] .side-close:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fafafa !important;
}

/* —— 26.3 代理合作卡：高 44，图标 26，右端 JOIN + 箭头 —— */
html[data-theme] .sn-promo {
  height: 44px !important;
  width: calc(100% - 24px) !important;
  margin: 0 12px 12px !important;
  padding: 0 10px 0 12px !important;
  gap: 9px !important;
  border-radius: 12px !important;
}

html[data-theme] .sn-promo-ic {
  width: 26px !important;
  height: 26px !important;
  flex: 0 0 26px !important;
  border-radius: 8px !important;
}

html[data-theme] .sn-promo-ic svg { width: 16px !important; height: 16px !important; }

html[data-theme] .sn-promo-main { gap: 2px !important; }

html[data-theme] .sn-promo-t {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: #f4f4f5 !important;
}

html[data-theme] .sn-promo-d {
  font-size: 10px !important;
  line-height: 1.15 !important;
  color: #8b8b93 !important;
}

html[data-theme] .sn-promo-go {
  height: 20px !important;
  padding: 0 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
}

/* —— 26.4 四宫格：等分四列，格子同高，图标同尺寸，文字居中 —— */
html[data-theme] .sn-tabs {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  gap: 4px !important;
  padding: 0 12px !important;
  margin: 0 0 6px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html[data-theme] .sn-tab {
  height: 58px !important;
  min-width: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: #8b8b93 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

html[data-theme] .sn-tab-ic {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px !important;
  color: inherit !important;
}

html[data-theme] .sn-tab-ic svg {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
}

html[data-theme] .sn-tab-t {
  display: block !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
  text-align: center !important;
  white-space: nowrap !important;
  color: inherit !important;
}

html[data-theme] .sn-tab:hover {
  background: rgba(255, 255, 255, 0.045) !important;
  color: #e4e4e7 !important;
  border-color: transparent !important;
}

html[data-theme] .sn-tab.is-active {
  background: #27272a !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
  color: #fafafa !important;
  box-shadow: none !important;
}

html[data-theme] .sn-tab.is-active .sn-tab-ic { color: #fafafa !important; }

/* —— 26.5 媒体页签：与宫格同一套列宽（按可见数量等分），文字居中 —— */
html[data-theme] .sn-chips {
  display: grid !important;
  grid-template-columns: none !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(0, 1fr) !important;
  gap: 4px !important;
  padding: 0 12px !important;
  margin: 0 0 10px !important;
  flex-wrap: nowrap !important;
  overflow: visible !important;
  scrollbar-width: none !important;
}

html[data-theme] .sn-chip {
  height: 28px !important;
  min-width: 0 !important;
  padding: 0 !important;
  flex: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: #8b8b93 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
  text-align: center !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

html[data-theme] .sn-chip[hidden] { display: none !important; }

html[data-theme] .sn-chip:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #e4e4e7 !important;
  border-color: transparent !important;
}

html[data-theme] .sn-chip.is-active {
  background: #3f3f46 !important;
  border-color: transparent !important;
  color: #fafafa !important;
}

/* —— 26.6 搜索框与列表：与宫格同一条 12px 边线 —— */
html[data-theme] .sn-search {
  padding: 0 !important;
  margin: 0 12px 10px !important;
}

html[data-theme] .sn-search-input {
  width: 100% !important;
  height: 34px !important;
  padding: 0 11px !important;
  border-radius: 9px !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  background: #17171a !important;
  color: #fafafa !important;
  font-size: 12px !important;
}

html[data-theme] .sn-list {
  padding: 0 8px 10px !important;
  gap: 2px !important;
}

/* —— 26.7 底部用户卡：与顶部同宽边距 —— */
html[data-theme] .side-foot {
  padding: 8px 12px 12px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* —— 26.8 移动端抽屉继承同一套尺寸 —— */
@media (max-width: 1023px) {
  html[data-theme] .sidebar { background: #111113 !important; }
}

/* ============================================================================
 * 27. 关键盒子的锁值
 *     styles-shell-nav.css 用 `body.dai-fullscreen .sidebar {…!important}` 把侧栏
 *     钉在 252px，同级选择器 + !important 会压过普通声明，这里用 !important 接管，
 *     保证侧栏回到 300px、内部左右边线统一为 12px。
 * ========================================================================== */
html[data-theme] .sidebar {
  flex: 0 0 300px !important;
  width: 300px !important;
  max-width: 300px !important;
}

html[data-theme] .side-nav {
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}

html[data-theme] .side-nav > .sn-panel {
  padding: 0 !important;
  margin: 0 !important;
}

html[data-theme] .sn-promo {
  box-sizing: border-box !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  margin: 0 12px 12px !important;
  width: calc(100% - 24px) !important;
}

html[data-theme] .sn-tabs {
  margin: 0 0 18px !important;
  padding: 0 12px !important;
}

html[data-theme] .sn-tab {
  box-sizing: border-box !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
}

html[data-theme] .sn-chips {
  margin: 0 0 10px !important;
  padding: 0 12px !important;
  height: auto !important;
}

html[data-theme] .sn-chip {
  box-sizing: border-box !important;
  height: 28px !important;
  min-height: 28px !important;
}

html[data-theme] .sn-search {
  margin: 0 12px 10px !important;
  padding: 0 !important;
}

/* ============================================================================
 * 28. 顶栏一排控件：统一 32 高 / 图标 14 / 文字 12.5，垂直居中对齐
 *     参考站顶栏（历史对话 · 新建对话 · 模型名）是同一基线的一排等高药丸，
 *     这里把「客服微信 / 公告 / 夜间」与「充值积分 / 登录注册」拉到同一规格。
 * ========================================================================== */
html[data-theme] .topbar .chip {
  height: 32px !important;
  padding: 0 13px !important;
  gap: 7px !important;
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 999px !important;
  background: #17171a !important;
  color: #a1a1aa !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

html[data-theme] .topbar .chip svg {
  width: 14px !important;
  height: 14px !important;
  flex: 0 0 14px !important;
  color: #8b8b93 !important;
}

html[data-theme] .topbar .chip:hover {
  background: #1f1f24 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #fafafa !important;
}

html[data-theme] .topbar .chip:hover svg { color: #d4d4d8 !important; }

/* 充值积分：渐变描边 + 深色内芯（与参考站「新建对话」同一种主行动语法） */
html[data-theme] .btn.recharge {
  height: 32px !important;
  padding: 0 15px !important;
  gap: 7px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background:
    linear-gradient(#141417, #141417) padding-box,
    linear-gradient(120deg, #a855f7 0%, #ec4899 48%, #f59e0b 100%) border-box !important;
  color: #ffffff !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.22) !important;
}

html[data-theme] .btn.recharge svg {
  width: 14px !important;
  height: 14px !important;
  flex: 0 0 14px !important;
  color: #e9d5ff !important;
  opacity: 1 !important;
}

html[data-theme] .btn.recharge:hover:not(:disabled) {
  background:
    linear-gradient(#1c1c21, #1c1c21) padding-box,
    linear-gradient(120deg, #c084fc 0%, #f472b6 48%, #fbbf24 100%) border-box !important;
  transform: translateY(-1px) !important;
  filter: none !important;
  box-shadow: 0 8px 22px rgba(168, 85, 247, 0.34) !important;
}

/* 登录 / 注册：同规格描边药丸 */
html[data-theme] .btn.ghost,
html[data-theme] .logout-btn {
  height: 32px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: #17171a !important;
  color: #e4e4e7 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

/* 快捷栏药丸同规格 */
html[data-theme] .qbtn {
  height: 32px !important;
  padding: 0 13px !important;
  gap: 7px !important;
  border-radius: 999px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
}

html[data-theme] .qbtn svg { width: 14px !important; height: 14px !important; }

/* —— 28.1 推广卡徽章：饱和紫底 + 白色奖章，缩小到 16px 仍然清晰 —— */
html[data-theme] .sn-promo-ic {
  background: linear-gradient(145deg, #9d6bff 0%, #7c3aed 52%, #5b21b6 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(91, 33, 182, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

html[data-theme] .sn-promo-ic svg {
  width: 17px !important;
  height: 17px !important;
  color: #ffffff !important;
}

/* —— 28.2 隐藏态：API 页签下整行分类不显示（grid 会忽略 hidden 属性，需显式关掉） —— */
html[data-theme] .sn-chips[hidden] { display: none !important; }

/* ============================================================================
 * 29. 侧栏展开 / 收起：统一的大箭头圆钮
 *     参考图：深底 + 细描边的圆钮，中间一枚加粗大箭头。
 *     展开态箭头朝左（收起），收起态箭头朝右并带青绿描边（展开）。
 *     悬停只换底色 / 描边 / 阴影，不位移、不缩放、不改尺寸 —— 不会抖也不会误触。
 * ========================================================================== */

html[data-theme] .side-toggle {
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 50% !important;
  background: #1a1e26 !important;
  color: #f1f4f9 !important;
  cursor: pointer;
  transform: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 8px rgba(0, 0, 0, 0.42) !important;
  transition: background-color 0.18s ease, border-color 0.18s ease,
              color 0.18s ease, box-shadow 0.18s ease !important;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}

html[data-theme] .side-toggle svg {
  width: 21px !important;
  height: 21px !important;
  display: block !important;
  transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

html[data-theme] .side-toggle:hover {
  background: #1e232c !important;
  border-color: rgba(94, 234, 212, 0.6) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

html[data-theme] .side-toggle:active {
  background: #15181e !important;
  transform: none !important;
}

/* 36px 圆钮放进 54px 的品牌行：上下各 9px，行高维持 54 不变，避免整列下移 */
html[data-theme] .side-head {
  padding-top: 9px !important;
  padding-bottom: 9px !important;
}

html[data-theme] .side-toggle:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.75);
  outline-offset: 2px;
}

@media (min-width: 1024px) {
  /* 收起：300px 侧栏平滑收成 64px 图标栏，箭头留在同一根竖轴上 */
  html[data-theme] .sidebar {
    transition: flex-basis 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  html[data-theme].is-side-collapsed .sidebar {
    display: flex !important;   /* 覆盖旧规则里的 display:none —— 收起改为图标栏，而不是整个消失 */
    flex: 0 0 64px !important;
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
  }

  html[data-theme].is-side-collapsed .side-head {
    justify-content: center !important;
    gap: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  html[data-theme].is-side-collapsed .side-logo,
  html[data-theme].is-side-collapsed .side-brand,
  html[data-theme].is-side-collapsed .side-app,
  html[data-theme].is-side-collapsed .side-foot,
  html[data-theme].is-side-collapsed .sn-promo,
  html[data-theme].is-side-collapsed .sn-chips,
  html[data-theme].is-side-collapsed .sn-search,
  html[data-theme].is-side-collapsed .sn-list {
    display: none !important;
  }

  /* 四个页签在收起态转为竖排纯图标，仍可点 */
  html[data-theme].is-side-collapsed .sn-tabs {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 6px !important;
    padding: 0 8px !important;
    margin: 0 !important;
  }

  html[data-theme].is-side-collapsed .sn-tab {
    height: 44px !important;
    gap: 0 !important;
  }

  html[data-theme].is-side-collapsed .sn-tab-t { display: none !important; }

  /* 收起态箭头：青绿描边 + 外发光，一眼可见「点这里展开」 */
  html[data-theme].is-side-collapsed .side-toggle {
    background: #0f2029 !important;
    border-color: rgba(45, 212, 191, 0.7) !important;
    color: #ecfffb !important;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.14),
                0 8px 20px rgba(13, 148, 136, 0.32) !important;
  }

  html[data-theme].is-side-collapsed .side-toggle svg { transform: rotate(180deg) !important; }

  /* 箭头是唯一控件：收起后不再冒出顶栏菜单按钮，避免两个入口 */
  html[data-theme].is-side-collapsed #menuBtn { display: none !important; }

  html[data-theme].is-side-collapsed .main-col {
    border-radius: 16px 0 0 0 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.06) !important;
  }
}

/* ============================================================================
 * 30. 锁死侧栏：修掉「鼠标一进侧栏就整列乱跳、点不中」
 *     来龙去脉：pages-studio-dai.js 在鼠标进入侧栏 280ms 后加 .dai-side-expanded，
 *     styles-shell-nav.css 把这个状态定成 252px（品牌行 padding 也跟着变），
 *     于是鼠标停在 252px 右侧时，侧栏一缩就把自己缩到鼠标外面 → mouseenter/mouseleave
 *     反复触发 → 300 ↔ 252 无限来回，卡片、页签全在鼠标下重排，自然点不中。
 *     处理：让 expanded 与常态完全一致（桌面 300 / 收起 64，品牌行同一套 padding），
 *     并禁止侧栏内任何 hover 位移。
 * ========================================================================== */
@media (min-width: 1024px) {
  html[data-theme] body.dai-fullscreen .sidebar,
  html[data-theme] body.dai-fullscreen .sidebar.dai-side-expanded,
  html[data-theme] .sidebar.dai-side-expanded {
    flex: 0 0 300px !important;
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    margin-right: 0 !important;
    transform: none !important;
    box-shadow: none !important;
  }

  /* 品牌行：两种状态同一套内边距，hover 不再把 54 撑成 62 */
  html[data-theme] body.dai-fullscreen .side-head,
  html[data-theme] body.dai-fullscreen .sidebar.dai-side-expanded .side-head {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* 侧栏内边距同样锁死：expanded 态原本会把 nav 内边距从 0 改成 10px，
     整列卡片跟着右移 10px、宽度少 20px，同样是「跳」的来源 */
  html[data-theme] body.dai-fullscreen .side-nav,
  html[data-theme] body.dai-fullscreen .sidebar.dai-side-expanded .side-nav {
    padding: 0 !important;
    margin: 0 !important;
  }

  html[data-theme] body.dai-fullscreen .side-foot,
  html[data-theme] body.dai-fullscreen .sidebar.dai-side-expanded .side-foot {
    padding: 8px 12px 12px !important;
  }

  /* 收起态：无论有没有 expanded，都保持 64px 图标栏 */
  html[data-theme].is-side-collapsed .sidebar,
  html[data-theme].is-side-collapsed .sidebar.dai-side-expanded,
  html[data-theme].is-side-collapsed body.dai-fullscreen .sidebar,
  html[data-theme].is-side-collapsed body.dai-fullscreen .sidebar.dai-side-expanded {
    flex: 0 0 64px !important;
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
  }

  html[data-theme].is-side-collapsed body.dai-fullscreen .side-head,
  html[data-theme].is-side-collapsed body.dai-fullscreen .sidebar.dai-side-expanded .side-head,
  html[data-theme].is-side-collapsed .sidebar.dai-side-expanded .side-head {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* 侧栏内部一律不做位移：hover 只换底色 / 描边 / 颜色 */
  html[data-theme] .sn-promo:hover,
  html[data-theme] .sn-card:hover,
  html[data-theme] .sn-tab:hover,
  html[data-theme] .sn-chip:hover,
  html[data-theme] .sn-more:hover,
  html[data-theme] .side-app:hover,
  html[data-theme] .side-toggle:hover,
  html[data-theme] .side-toggle:active {
    transform: none !important;
  }
}

/* ============================================================================
 * 31. 选中反馈配色：四宫格按页签各用一色 + 分类胶囊实底青
 *     起因：点选模型后那一行突然变成「紫色渐变块」，看着像异常联动。
 *     实为旧 lux 皮肤遗留的取色（.sn-card.is-active 硬编码 rgba(139,92,246)、
 *     --accent 仍是 #8b5cf6），机制本身（路由 hash → is-active）是对的。
 *     这里只换皮：页签按 data-tab 取各自强调色，选中行统一改为品牌青，
 *     不动 JS、不动尺寸，避免影响其它选项与点击选中逻辑。
 * ========================================================================== */

/* —— 31.1 四个页签的强调色令牌（取色自参考图：青 / 紫 / 粉 / 琥珀） —— */
html[data-theme] .sn-tab[data-tab="model"] {
  --tab-ink: #22d3ee;
  --tab-top: rgba(34, 211, 238, 0.16);
  --tab-bot: rgba(34, 211, 238, 0.035);
  --tab-line: rgba(34, 211, 238, 0.2);
  --tab-glow: rgba(34, 211, 238, 0.55);
}
html[data-theme] .sn-tab[data-tab="agent"] {
  --tab-ink: #a855f7;
  --tab-top: rgba(168, 85, 247, 0.17);
  --tab-bot: rgba(168, 85, 247, 0.04);
  --tab-line: rgba(168, 85, 247, 0.22);
  --tab-glow: rgba(168, 85, 247, 0.55);
}
html[data-theme] .sn-tab[data-tab="inspire"] {
  --tab-ink: #f472b6;
  --tab-top: rgba(236, 72, 153, 0.16);
  --tab-bot: rgba(236, 72, 153, 0.04);
  --tab-line: rgba(236, 72, 153, 0.2);
  --tab-glow: rgba(236, 72, 153, 0.5);
}
html[data-theme] .sn-tab[data-tab="api"] {
  --tab-ink: #fbbf24;
  --tab-top: rgba(251, 191, 36, 0.13);
  --tab-bot: rgba(251, 191, 36, 0.03);
  --tab-line: rgba(251, 191, 36, 0.2);
  --tab-glow: rgba(251, 191, 36, 0.5);
}

/* —— 31.2 选中态：淡色渐变底 + 同色描边 + 图标文字染色（不再用中性灰块） —— */
html[data-theme] .sn-tab {
  position: relative !important;
  overflow: visible !important;
}

html[data-theme] .sn-tab.is-active {
  background: linear-gradient(180deg, var(--tab-top), var(--tab-bot)) !important;
  border-color: var(--tab-line) !important;
  color: var(--tab-ink) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 6px 16px -12px var(--tab-glow) !important;
}

html[data-theme] .sn-tab.is-active .sn-tab-ic {
  color: var(--tab-ink) !important;
}

html[data-theme] .sn-tab.is-active .sn-tab-t {
  color: var(--tab-ink) !important;
}

/* 底部一道短发光：参考图的「色块下沿亮线」，绝对定位不参与布局，不影响 58px 行高 */
html[data-theme] .sn-tab.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 28px;
  height: 2px;
  margin-left: -14px;
  border-radius: 2px;
  background: var(--tab-ink);
  box-shadow: 0 0 9px 2px var(--tab-glow);
  opacity: 0.85;
  pointer-events: none;
}

/* 悬停：仍未选中时只用极淡的同色底，避免和选中态撞色 */
html[data-theme] .sn-tab:hover {
  background: rgba(255, 255, 255, 0.045) !important;
  color: #e4e4e7 !important;
}

html[data-theme] .sn-tab.is-active:hover {
  background: linear-gradient(180deg, var(--tab-top), var(--tab-bot)) !important;
  color: var(--tab-ink) !important;
}

/* —— 31.3 开放API 的火焰角标（纯装饰，绝对定位，不影响尺寸与点击） —— */
html[data-theme] .sn-tab-ic {
  position: relative !important;
}

html[data-theme] .sn-tab[data-tab="api"] .sn-tab-ic::after {
  content: "";
  position: absolute;
  right: -6px;
  top: -7px;
  width: 10px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 15'%3E%3Cdefs%3E%3ClinearGradient id='f' x1='0' y1='1' x2='0.3' y2='0'%3E%3Cstop offset='0' stop-color='%23ef4444'/%3E%3Cstop offset='0.55' stop-color='%23f97316'/%3E%3Cstop offset='1' stop-color='%23fbbf24'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M6 0c.6 2.4-.6 3.4-1.6 4.6C3.5 5.8 2.4 6.9 2.4 8.7a3.6 3.6 0 0 0 7.2 0c0-1.9-.9-3-1.8-4.3C7 3.3 6.4 1.8 6 0Z' fill='url(%23f)'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 4px rgba(249, 115, 22, 0.55));
  pointer-events: none;
}

/* —— 31.4 分类胶囊选中态：实底青 + 白字（参考图「全部/图片」） —— */
html[data-theme] .sn-chip.is-active {
  background: linear-gradient(180deg, #00c8de, #00b0c6) !important;
  border-color: transparent !important;
  color: #f4fbfc !important;
  box-shadow: 0 2px 9px -1px rgba(0, 200, 222, 0.35) !important;
}

html[data-theme] .sn-chip.is-active:hover {
  background: linear-gradient(180deg, #00d2e8, #00b8cf) !important;
  color: #ffffff !important;
}

/* 页签区与分类区之间的分隔线（参考图有一条 1px 暗线），用内阴影画，不占高度 */
html[data-theme] .sn-chips {
  box-shadow: inset 0 1px 0 #1d1d21 !important;
}

/* —— 31.5 选中模型行：紫渐变 → 品牌青，改造范围只限 .sn-card.is-active —— */
html[data-theme="dark"] .sn-card.is-active {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.14), rgba(34, 211, 238, 0.03)) !important;
  border-color: rgba(34, 211, 238, 0.26) !important;
}

/* 浅色主题下侧栏本身仍是深色（html[data-theme] .sidebar 被锁成 #111113），
   所以这里用半透明青而不是白底，避免出现「白块 + 白字」看不清 */
html[data-theme="light"] .sn-card.is-active {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.18), rgba(34, 211, 238, 0.05)) !important;
  border-color: rgba(34, 211, 238, 0.32) !important;
}

/* 选中行的左侧指示条：与页签同一套青，点击后一眼能看出「选的是这一条」 */
html[data-theme="dark"] .sn-card.is-active {
  box-shadow: inset 2px 0 0 rgba(34, 211, 238, 0.75) !important;
}

html[data-theme="light"] .sn-card.is-active {
  box-shadow: inset 2px 0 0 rgba(34, 211, 238, 0.8) !important;
}

/* —— 31.6 浅色主题：只把文字/图标色压深以保对比度，底色与发光沿用同一套 —— */
html[data-theme="light"] .sn-tab[data-tab="model"] { --tab-ink: #0e8ba3; --tab-line: rgba(14, 139, 163, 0.3); --tab-glow: rgba(14, 139, 163, 0.3); }
html[data-theme="light"] .sn-tab[data-tab="agent"] { --tab-ink: #7c3aed; --tab-line: rgba(124, 58, 237, 0.3); --tab-glow: rgba(124, 58, 237, 0.3); }
html[data-theme="light"] .sn-tab[data-tab="inspire"] { --tab-ink: #db2777; --tab-line: rgba(219, 39, 119, 0.28); --tab-glow: rgba(219, 39, 119, 0.28); }
html[data-theme="light"] .sn-tab[data-tab="api"] { --tab-ink: #b45309; --tab-line: rgba(180, 83, 9, 0.28); --tab-glow: rgba(180, 83, 9, 0.28); }
html[data-theme="light"] .sn-chips { box-shadow: inset 0 1px 0 #ececef !important; }

/* ============================================================================
 * 32. 侧栏底部：未登录入口 + 登录后账号卡 + 余额/首充礼/充值
 *     对齐参考站：整行卡片（头像 + 标题/副标题 + 箭头），下面一行钱包操作。
 *     只作用于 .side-foot 内部，不涉及侧栏其它区块。
 * ========================================================================== */
html[data-theme] .side-foot {
  padding: 8px 10px 12px !important;
}

html[data-theme] .side-foot .sn-user {
  gap: 10px !important;
  align-items: center !important;
  padding: 9px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.055) !important;
  border-radius: 12px !important;
  background: #181819 !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

html[data-theme] .side-foot .sn-user:hover {
  background: #1e1e21 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* 未登录：不再竖排，跟登录后一样是一行 */
html[data-theme] .side-foot .sn-user-guest {
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
}

html[data-theme] .side-foot .sn-user-guest:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.55);
  outline-offset: 2px;
}

html[data-theme] .side-foot .sn-avatar {
  flex: 0 0 34px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #8b5cf6, #4f46e5) !important;
  color: #fff !important;
  box-shadow: none !important;
}

html[data-theme] .side-foot .sn-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* 未登录的 AI 徽章：中性灰底，和参考站一致，不要抢主色 */
html[data-theme] .side-foot .sn-avatar-ai {
  display: grid !important;
  place-items: center !important;
  background: linear-gradient(160deg, #3c3c43, #232327) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  color: #ececef !important;
  letter-spacing: 0.01em;
}

html[data-theme] .side-foot .sn-user-main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

html[data-theme] .side-foot .sn-user-name {
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  color: #fafafa !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme] .side-foot .sn-user-sub {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
  color: #8b8b93 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme] .side-foot .sn-uid {
  flex: 0 0 auto;
  padding: 1.5px 6px !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #a1a1aa !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
}

html[data-theme] .side-foot .sn-user-go {
  flex: 0 0 auto;
  color: #6b6b74 !important;
  font-size: 14px !important;
  line-height: 1;
}

/* —— 32.2 钱包行：余额 + 首充礼 + 充值 —— */
html[data-theme] .side-foot .sn-wallet {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin-top: 8px;
}

html[data-theme] .side-foot .sn-balance {
  flex: 1 1 auto;
  min-width: 0;
  height: 32px !important;
  padding: 0 11px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.055) !important;
  border-radius: 999px !important;
  background: #181819 !important;
  color: #a1a1aa !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  white-space: nowrap;
  overflow: hidden;
}

html[data-theme] .side-foot .sn-balance-ic {
  display: inline-flex;
  flex: 0 0 13px;
  color: #fbbf24;
}

html[data-theme] .side-foot .sn-balance-ic svg {
  width: 13px !important;
  height: 13px !important;
  display: block;
}

html[data-theme] .side-foot .sn-balance-n {
  color: #fafafa !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
}

html[data-theme] .side-foot .sn-first,
html[data-theme] .side-foot .sn-pay {
  flex: 0 0 auto;
  height: 32px !important;
  padding: 0 11px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  border-radius: 999px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.16s ease, transform 0.16s ease;
}

html[data-theme] .side-foot .sn-first {
  border: 1px solid rgba(255, 214, 120, 0.5) !important;
  background: linear-gradient(180deg, #ffc84c, #f9a729) !important;
  color: #3d2708 !important;
  box-shadow: 0 4px 12px -6px rgba(249, 167, 41, 0.85) !important;
}

html[data-theme] .side-foot .sn-first:hover {
  filter: brightness(1.06);
}

html[data-theme] .side-foot .sn-pay {
  border: 1px solid transparent !important;
  background:
    linear-gradient(#1c1c20, #1c1c20) padding-box,
    linear-gradient(120deg, #f472b6, #a855f7, #38bdf8, #22d3ee, #fbbf24) border-box !important;
  color: #fafafa !important;
  box-shadow: 0 4px 14px -8px rgba(168, 85, 247, 0.9) !important;
}

html[data-theme] .side-foot .sn-pay:hover {
  background:
    linear-gradient(#25252b, #25252b) padding-box,
    linear-gradient(120deg, #f9a8d4, #c084fc, #7dd3fc, #67e8f9, #fcd34d) border-box !important;
}

html[data-theme] .side-foot .sn-first-ic,
html[data-theme] .side-foot .sn-pay-ic {
  display: inline-flex;
  flex: 0 0 13px;
}

html[data-theme] .side-foot .sn-first-ic svg,
html[data-theme] .side-foot .sn-pay-ic svg {
  width: 13px !important;
  height: 13px !important;
  display: block;
}

/* —— 32.3 未登录卡：右边那颗「注册」 —— */
html[data-theme] .side-foot .sn-reg {
  flex: 0 0 auto;
  height: 26px !important;
  padding: 0 11px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #f2f2f4 !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

html[data-theme] .side-foot .sn-reg:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.26) !important;
}

html[data-theme] .side-foot .sn-reg:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.55);
  outline-offset: 2px;
}

/* 副标题里的「账号中心」文字，别被 ID 胶囊挤变形 */
html[data-theme] .side-foot .sn-user-label {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* 钱包行在窄侧栏里也要一行放下：余额可收缩，两颗按钮不换行 */
html[data-theme] .side-foot .sn-wallet {
  flex-wrap: nowrap !important;
}

html[data-theme] .side-foot .sn-balance {
  text-overflow: ellipsis;
}

/* ============================================================================
 * 34. 「AI 帮写」窗口：工作模型选择器
 *     参考站把「工作模型」做成可以随时点开的列表，这里按同一套交互落地：
 *     一行常驻条（图标 + 工作模型 + 当前模型药丸 + 提示），点药丸向下弹出列表，
 *     每行显示模型名 + 能力标签 + 选中勾 + 默认徽标。
 *     只作用于 .ai-modal 内部，不碰弹窗其它部分。
 * ========================================================================== */
.ai-modelbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 2px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.ai-modelbar-ic {
  display: inline-flex;
  flex: 0 0 16px;
  color: #a78bfa;
}

.ai-modelbar-ic svg {
  width: 16px;
  height: 16px;
  display: block;
}

.ai-modelbar-lbl {
  flex: 0 0 auto;
  font-size: 12.5px;
  font-weight: 600;
  color: #9aa0ab;
  letter-spacing: 0.01em;
}

.ai-model-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 58%;
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: #f2f5fa;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.ai-model-btn:hover,
.ai-modelbar.is-open .ai-model-btn {
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(139, 92, 246, 0.14);
}

.ai-model-btn:focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.6);
  outline-offset: 2px;
}

.ai-model-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-model-caret {
  display: inline-flex;
  flex: 0 0 14px;
  color: #8b8b93;
  transition: transform 0.16s ease;
}

.ai-modelbar.is-open .ai-model-caret {
  transform: rotate(180deg);
}

.ai-model-caret svg {
  width: 14px;
  height: 14px;
  display: block;
}

.ai-model-hint {
  margin-left: auto;
  font-size: 11.5px;
  color: #6f7480;
  white-space: nowrap;
}

/* —— 下拉列表 —— */
.ai-model-menu {
  position: absolute;
  left: 10px;
  top: calc(100% + 6px);
  z-index: 6;
  width: 318px;
  max-width: calc(100% - 20px);
  max-height: 286px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #1b1b1f;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  overscroll-behavior: contain;
}

.ai-model-menu[hidden] {
  display: none !important;
}

.ai-model-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #e8e8ee;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease;
}

.ai-model-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.ai-model-item.is-on {
  background: rgba(139, 92, 246, 0.16);
  color: #ffffff;
}

.ai-model-tick {
  display: inline-flex;
  flex: 0 0 14px;
  color: #a78bfa;
  opacity: 0;
}

.ai-model-item.is-on .ai-model-tick {
  opacity: 1;
}

.ai-model-tick svg {
  width: 14px;
  height: 14px;
  display: block;
}

.ai-model-item-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ai-model-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.ai-model-item-tags {
  display: flex;
  gap: 4px;
}

.ai-model-tag {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  color: #9aa0ab;
  font-size: 10px;
  font-weight: 600;
}

.ai-model-item.is-on .ai-model-tag {
  background: rgba(255, 255, 255, 0.12);
  color: #ddd6fe;
}

.ai-model-def {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
  font-size: 10px;
  font-weight: 700;
}

.ai-model-empty {
  padding: 9px 10px;
  color: #8b8b93;
  font-size: 12px;
}

.ai-model-sep {
  margin: 6px 2px 4px;
  padding: 4px 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #7b8090;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

html[data-theme="light"] .ai-model-sep {
  border-top-color: #ececf2;
  color: #8b8f98;
}

/* —— 浅色主题 —— */
html[data-theme="light"] .ai-modelbar {
  border-color: #e6e6ec;
  background: #f8f8fb;
}

html[data-theme="light"] .ai-modelbar-lbl {
  color: #6b7078;
}

html[data-theme="light"] .ai-model-btn {
  border-color: #e2e2ea;
  background: #ffffff;
  color: #1c1c22;
}

html[data-theme="light"] .ai-model-btn:hover,
html[data-theme="light"] .ai-modelbar.is-open .ai-model-btn {
  border-color: #b9a6f5;
  background: #f3efff;
}

html[data-theme="light"] .ai-model-hint {
  color: #8b8f98;
}

html[data-theme="light"] .ai-model-menu {
  border-color: #e6e6ec;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(20, 20, 40, 0.16);
}

html[data-theme="light"] .ai-model-item {
  color: #24242b;
}

html[data-theme="light"] .ai-model-item:hover {
  background: #f3f3f8;
}

html[data-theme="light"] .ai-model-item.is-on {
  background: #efe8ff;
  color: #2c1d63;
}

html[data-theme="light"] .ai-model-tag {
  background: #f0f0f6;
  color: #5c616c;
}

html[data-theme="light"] .ai-model-item.is-on .ai-model-tag {
  background: #e4dbff;
  color: #5b21b6;
}

html[data-theme="light"] .ai-model-def {
  background: #efe8ff;
  color: #6d28d9;
}

/* 窄屏：提示文字让位，模型名别被挤掉 */
@media (max-width: 720px) {
  .ai-model-hint { display: none; }
  .ai-model-btn { max-width: none; flex: 1 1 auto; }
  .ai-model-menu { width: 100%; }
}

/* ============================================================================
 * 33. 「登录 / 注册」→ 目标站的 FLASH 过场：线稿 → 上色 → 淡出
 *     图层顺序：线稿(底) → 彩色(叠加，透明度动画) → 文案/关闭按钮
 * ========================================================================== */
html.lk-flash-lock { overflow: hidden !important; }

.lk-flash {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(34, 211, 238, 0.1), transparent 62%),
    #050508;
  opacity: 0;
  transition: opacity 0.26s ease;
}

.lk-flash.is-in { opacity: 1; }

.lk-flash.is-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lk-flash-card {
  position: relative;
  width: min(1040px, 94vw);
  aspect-ratio: 1400 / 934;
  max-height: 88vh;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: #07070b;
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  transform: scale(0.985);
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.lk-flash.is-in .lk-flash-card { transform: scale(1); }

.lk-flash-art {
  position: absolute;
  inset: 0;
  transform: scale(1);
  transform-origin: 62% 42%;
  transition: transform 4.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 上色后镜头缓慢推近一点，人物更有存在感 */
.lk-flash.is-color .lk-flash-art { transform: scale(1.05); }

.lk-flash-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 先出线稿：从全黑里慢慢"画"出来 */
.lk-flash-sketch {
  opacity: 0;
  filter: contrast(1.04);
  transform: scale(1.015);
  transition: opacity 0.62s ease, transform 1.6s ease;
}

.lk-flash.is-drawn .lk-flash-sketch {
  opacity: 1;
  transform: scale(1);
}

/* 再上色：彩色层淡入，盖住线稿 */
.lk-flash-color {
  opacity: 0;
  transition: opacity 1.05s ease;
}

.lk-flash.is-color .lk-flash-color { opacity: 1; }

/* 眨眼层：与彩色图同尺寸、同裁切，只有眼睛不同；
   叠一层交叉淡化 = 眨一次眼（0.1s 合上，再 0.1s 睁开） */
.lk-flash-blink {
  opacity: 0;
  transition: opacity 0.09s linear;
  will-change: opacity;
}

.lk-flash.is-blink .lk-flash-blink { opacity: 1; }

/* 左侧文字区压一层暗角，保证"欢迎回来"始终看得清 */
.lk-flash-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 120% at 0% 20%, rgba(5, 5, 8, 0.92), rgba(5, 5, 8, 0.55) 42%, transparent 68%),
    linear-gradient(180deg, rgba(5, 5, 8, 0.35), transparent 26%);
}

.lk-flash-title {
  position: absolute;
  left: 6.2%;
  top: 15%;
  margin: 0;
  color: #ffffff;
  font-size: clamp(22px, 3.1vw, 34px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease 0.1s, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s;
}

.lk-flash.is-in .lk-flash-title {
  opacity: 1;
  transform: none;
}

/* 标题下的一道光线：从左向右展开，收尾是渐隐的 */
.lk-flash-title::after {
  content: '';
  display: block;
  width: 76px;
  height: 2px;
  margin-top: 13px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(122, 224, 255, 0.95), rgba(150, 130, 255, 0.6) 55%, rgba(150, 130, 255, 0));
  box-shadow: 0 0 18px rgba(96, 210, 255, 0.55);
  transform: scaleX(0.12);
  transform-origin: left center;
  transition: transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) 0.32s;
}

.lk-flash.is-in .lk-flash-title::after { transform: scaleX(1); }

.lk-flash-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: rgba(10, 10, 14, 0.55);
  color: #d4d4d8;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.lk-flash-close svg { width: 16px; height: 16px; }

.lk-flash-close:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* 减少动态效果时：不跑缩放/长淡入，仍然完成线稿→彩色 */
@media (prefers-reduced-motion: reduce) {
  .lk-flash-card,
  .lk-flash-title,
  .lk-flash-sketch { transition-duration: 0.12s; transform: none !important; }
  .lk-flash-color { transition-duration: 0.2s; }
  .lk-flash-blink { display: none; }
  .lk-flash-art { transform: none !important; transition: none; }
  .lk-flash-title::after { transform: scaleX(1); transition: none; }
}

@media (max-width: 720px) {
  .lk-flash { padding: 12px; }
  .lk-flash-card { width: 100%; aspect-ratio: 4 / 5; max-height: 82vh; }
  .lk-flash-title { top: 10%; left: 8%; }
  .lk-flash-close { top: 10px; right: 10px; }
}

/* ============================================================================
 * 35. 浅色皮肤整体校准 —— 按参考站 lingke 的浅色令牌重做
 *     canvas #f5f7fb / sidebar #fbfcfe / raised #fff
 *     ink #171923 · sub #4b5565 · faint #5b6472 · border rgba(23,25,35,.11)
 *     accent #6d28d9（浅色下用 violet-700，比深色皮肤的 #8b5cf6 更压得住白底）
 *     目标：切到白皮之后侧栏、主区、卡片、按钮是同一套色阶，不再出现
 *     「白底 + 深色侧栏 + 黑面板」的割裂感。
 * ========================================================================== */

html[data-theme="light"] {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-soft: #f2f4f9;
  --ink: #171923;
  --ink-soft: #3f4450;
  --muted: #4b5565;
  --faint: #6b7280;
  --line: rgba(23, 25, 35, 0.11);
  --line-strong: rgba(23, 25, 35, 0.18);
  --accent: #6d28d9;
  --accent-deep: #5b21b6;
  --accent-soft: #f1ebff;
  --shadow: 0 10px 28px rgba(43, 52, 72, 0.10);
  --surface-canvas: #f5f7fb;
  --surface-subtle: #eef1f6;
  --surface-sidebar: #fbfcfe;
  --surface-raised: #ffffff;
  --surface-hover: #f0f2f7;
  --border-default: rgba(23, 25, 35, 0.11);
}

/* —— 35.1 画布与两大面板 —— */
html[data-theme="light"] body {
  background: #f5f7fb !important;
  color: #171923 !important;
}

html[data-theme="light"][data-bg="lingke"] .app-bg {
  background:
    radial-gradient(900px 520px at 86% -12%, rgba(124, 58, 237, 0.07), transparent 62%),
    radial-gradient(760px 480px at 0% 6%, rgba(59, 130, 246, 0.05), transparent 60%),
    linear-gradient(180deg, #f7f9fd 0%, #f5f7fb 55%, #f4f6fa 100%) !important;
}

@media (min-width: 1024px) {
  html[data-theme="light"] .main-col {
    background:
      radial-gradient(82% 42% at 4% -10%, rgba(124, 58, 237, 0.055), transparent 62%),
      radial-gradient(64% 30% at 58% -12%, rgba(37, 99, 235, 0.045), transparent 66%),
      #ffffff !important;
    border-left: 1px solid rgba(23, 25, 35, 0.07) !important;
    box-shadow: 0 16px 44px rgba(43, 52, 72, 0.08) !important;
  }
}

html[data-theme="light"] .content {
  background: transparent !important;
  border-color: rgba(23, 25, 35, 0.07) !important;
}

@media (max-width: 1023px) {
  html[data-theme="light"] .content {
    background: #ffffff !important;
  }
}

/* —— 35.2 侧栏：从深卡换成浅色玻璃 —— */
html[data-theme="light"] .sidebar,
html[data-theme="light"] .sidebar.dai-side-expanded {
  background: #fbfcfe !important;
  border: 1px solid rgba(23, 25, 35, 0.08) !important;
  box-shadow: 0 12px 32px rgba(43, 52, 72, 0.07), inset 0 1px 0 #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-theme="light"] .side-title { color: #171923 !important; }
html[data-theme="light"] .side-sub { color: #5b6472 !important; }

html[data-theme="light"] .side-logo {
  background: linear-gradient(145deg, #ffffff, #f1ebff) !important;
  border-color: rgba(23, 25, 35, 0.08) !important;
  box-shadow: 0 6px 16px rgba(109, 40, 217, 0.14) !important;
  color: #6d28d9 !important;
}

/* 侧栏顶部按钮（收起箭头 / APP 胶囊） */
html[data-theme="light"] .side-toggle {
  background: #ffffff !important;
  border-color: rgba(23, 25, 35, 0.10) !important;
  color: #40454f !important;
  box-shadow: 0 2px 6px rgba(43, 52, 72, 0.08) !important;
}

html[data-theme="light"] .side-toggle:hover {
  background: #f1ebff !important;
  border-color: rgba(109, 40, 217, 0.28) !important;
  color: #5b21b6 !important;
}

html[data-theme="light"] .side-app::after { box-shadow: 0 0 0 2px #fbfcfe !important; }

/* —— 35.3 侧栏内部：页签 / 筛选 / 搜索 / 卡片 / 底部账号 —— */
html[data-theme="light"] .sn-tabs {
  border-bottom-color: rgba(23, 25, 35, 0.07) !important;
}

html[data-theme="light"] .sn-tab { color: #5b6472 !important; }
html[data-theme="light"] .sn-tab:hover { color: #171923 !important; }
html[data-theme="light"] .sn-tab.is-active { color: #6d28d9 !important; }

html[data-theme="light"] .sn-chips {
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme="light"] .sn-chip { color: #4b5565 !important; }
html[data-theme="light"] .sn-chip:hover { color: #171923 !important; background: #eff1f7 !important; }
html[data-theme="light"] .sn-chip.is-active {
  color: #5b21b6 !important;
  background: #efe8ff !important;
  border-color: rgba(109, 40, 217, 0.24) !important;
}

html[data-theme="light"] .sn-search input,
html[data-theme="light"] .sn-search {
  background: #ffffff !important;
  border-color: rgba(23, 25, 35, 0.10) !important;
  color: #171923 !important;
  box-shadow: none !important;
}

html[data-theme="light"] .sn-list { scrollbar-color: rgba(23, 25, 35, 0.22) transparent; }

html[data-theme="light"] .sn-card {
  color: #171923 !important;
  border-color: transparent !important;
}

html[data-theme="light"] .sn-card:hover {
  background: #f4f6fb !important;
  border-color: rgba(23, 25, 35, 0.06) !important;
}

html[data-theme="light"] .sn-card-t { color: #171923 !important; }
html[data-theme="light"] .sn-card-d { color: #5b6472 !important; }
html[data-theme="light"] .sn-card.is-active {
  background: #f4efff !important;
  box-shadow: inset 2px 0 0 #7c3aed, 0 4px 14px -8px rgba(124, 58, 237, 0.5) !important;
}

html[data-theme="light"] .sn-promo {
  background: linear-gradient(180deg, #f8f5ff, #f2ecff) !important;
  border-color: rgba(109, 40, 217, 0.16) !important;
}

html[data-theme="light"] .side-foot {
  border-top-color: rgba(23, 25, 35, 0.07) !important;
  color: #6b7280 !important;
}

html[data-theme="light"] .sn-user {
  background: #ffffff !important;
  border-color: rgba(23, 25, 35, 0.10) !important;
  box-shadow: 0 4px 14px -10px rgba(43, 52, 72, 0.5) !important;
}

html[data-theme="light"] .sn-user:hover {
  background: #f7f8fc !important;
  border-color: rgba(23, 25, 35, 0.16) !important;
}

html[data-theme="light"] .sn-avatar {
  border-color: rgba(23, 25, 35, 0.10) !important;
  box-shadow: none !important;
}

html[data-theme="light"] .sn-avatar-ai {
  background: linear-gradient(160deg, #eef1f7, #e3e7f0) !important;
  border-color: rgba(23, 25, 35, 0.10) !important;
  color: #40454f !important;
}

html[data-theme="light"] .sn-user-name { color: #171923 !important; }
html[data-theme="light"] .sn-user-sub { color: #6b7280 !important; }
html[data-theme="light"] .sn-user-go { color: #98a0ad !important; }

html[data-theme="light"] .sn-uid {
  background: rgba(23, 25, 35, 0.06) !important;
  color: #4b5565 !important;
}

html[data-theme="light"] .sn-login {
  background: #6d28d9 !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

html[data-theme="light"] .sn-balance {
  background: #ffffff !important;
  border-color: rgba(23, 25, 35, 0.10) !important;
  color: #4b5565 !important;
}

html[data-theme="light"] .sn-balance-n { color: #171923 !important; }

html[data-theme="light"] .sn-pay {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(120deg, #f472b6, #a855f7, #38bdf8, #22d3ee, #fbbf24) border-box !important;
  color: #171923 !important;
  box-shadow: 0 6px 16px -10px rgba(168, 85, 247, 0.8) !important;
}

html[data-theme="light"] .sn-pay:hover {
  background:
    linear-gradient(#f7f4ff, #f7f4ff) padding-box,
    linear-gradient(120deg, #ec4899, #8b5cf6, #0ea5e9, #06b6d4, #f59e0b) border-box !important;
}

html[data-theme="light"] .sn-reg {
  background: #ffffff !important;
  border-color: rgba(23, 25, 35, 0.16) !important;
  color: #262a33 !important;
}

html[data-theme="light"] .sn-reg:hover {
  background: #f4efff !important;
  border-color: rgba(109, 40, 217, 0.3) !important;
  color: #5b21b6 !important;
}

html[data-theme="light"] .sn-center {
  background: #ffffff !important;
  border-color: rgba(23, 25, 35, 0.10) !important;
  box-shadow: 0 24px 60px rgba(43, 52, 72, 0.16) !important;
}

/* —— 35.4 顶栏 / 快捷栏 / 通用控件 —— */
html[data-theme="light"] .page-title { color: #171923 !important; }

html[data-theme="light"] .topbar .chip,
html[data-theme="light"] .quickbar .chip,
html[data-theme="light"] .chip {
  background: #ffffff !important;
  border-color: rgba(23, 25, 35, 0.11) !important;
  color: #4b5565 !important;
  box-shadow: 0 1px 2px rgba(43, 52, 72, 0.04) !important;
}

html[data-theme="light"] .topbar .chip:hover,
html[data-theme="light"] .chip:hover {
  border-color: rgba(109, 40, 217, 0.28) !important;
  color: #5b21b6 !important;
}

html[data-theme="light"] .btn.ghost {
  background: #ffffff !important;
  border-color: rgba(23, 25, 35, 0.12) !important;
  color: #3f4450 !important;
}

html[data-theme="light"] .btn.ghost:hover:not(:disabled) {
  background: #f4efff !important;
  border-color: rgba(109, 40, 217, 0.26) !important;
  color: #5b21b6 !important;
}

html[data-theme="light"] .qbtn {
  background: #ffffff !important;
  border-color: rgba(23, 25, 35, 0.10) !important;
  color: #4b5565 !important;
}

html[data-theme="light"] .qbtn:hover {
  background: #f4f6fb !important;
  border-color: rgba(23, 25, 35, 0.16) !important;
}

html[data-theme="light"] .contact-row,
html[data-theme="light"] .quickbar {
  color: #5b6472 !important;
}

html[data-theme="light"] .panel,
html[data-theme="light"] .card,
html[data-theme="light"] .skws-panel {
  background: #ffffff !important;
  border-color: rgba(23, 25, 35, 0.09) !important;
  box-shadow: 0 10px 26px rgba(43, 52, 72, 0.07) !important;
}

html[data-theme="light"] .panel:hover {
  border-color: rgba(23, 25, 35, 0.15) !important;
}

html[data-theme="light"] .modal {
  background: #ffffff !important;
  border-color: rgba(23, 25, 35, 0.09) !important;
  box-shadow: 0 30px 80px rgba(43, 52, 72, 0.22) !important;
}

html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea,
html[data-theme="light"] .input {
  background: #ffffff !important;
  border-color: rgba(23, 25, 35, 0.14) !important;
  color: #171923 !important;
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: #98a0ad !important;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(23, 25, 35, 0.22) !important;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(23, 25, 35, 0.34) !important;
}

/* ============================================================================
 * 36. 顶部浮动导向图（桌面端 / AI订阅 / 我要推广 + 圆形 AI 帮写灯）
 *     · 挂在 .main-col 顶部，居中排布，占一行高度（约 70px），不遮内容
 *     · 每块用一根细线 + 圆环「吊」在顶上，缓慢摆动（transform-origin 在吊点）
 *     · × 可单独关闭，关闭状态由 js/lk-dock.js 记进 localStorage
 * ========================================================================== */

.lk-dock {
  /* 绝对居中挂在顶栏里：不占 flex 空间（否则会把标题挤成省略号、
     把右侧按钮挤到第二行），垂直居中保证与标题、按钮同一条水平线 */
  position: absolute;
  top: 14px;
  bottom: 8px;
  left: 50%;
  height: auto;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  min-height: 0;
  z-index: 5;
  pointer-events: none;
}

.lk-dock.is-empty { display: none; }

.lk-dock-slot {
  position: relative;
  padding-top: 0;
  pointer-events: auto;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lk-dock-slot.is-leaving {
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
}

/* —— 吊线 + 顶部圆环 —— */
.lk-dock-pin {
  position: absolute;
  top: -15px;
  left: 50%;
  width: 1px;
  height: 15px;
  margin-left: -0.5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.32));
}

.lk-dock-pin::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.16);
}

html[data-theme="light"] .lk-dock-pin {
  background: linear-gradient(180deg, rgba(23, 25, 35, 0.04), rgba(23, 25, 35, 0.26));
}

html[data-theme="light"] .lk-dock-pin::before {
  border-color: rgba(23, 25, 35, 0.32);
  background: #ffffff;
}

/* —— 卡片本体 —— */
.lk-dock-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 50px;
  padding: 0 14px 0 10px;
  border-radius: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transform-origin: 50% -22px;
  animation: lkDockSwing 6.4s ease-in-out infinite;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  will-change: transform;
}

.lk-dock-slot:nth-child(2) .lk-dock-card { animation-delay: -0.4s; }
.lk-dock-slot:nth-child(3) .lk-dock-card { animation-delay: -2.1s; }
.lk-dock-slot:nth-child(4) .lk-dock-card { animation-delay: -3.4s; }

.lk-dock-card:hover {
  animation-play-state: paused;
  transform: translateY(-2px) rotate(0deg);
  filter: brightness(1.04);
}

.lk-dock-card:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 3px;
}

@keyframes lkDockSwing {
  0%, 100% { transform: rotate(-1.15deg); }
  50% { transform: rotate(1.15deg); }
}

/* 图标 */
.lk-dock-ic {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.lk-dock-ic svg { width: 18px; height: 18px; display: block; }

/* 文案 */
.lk-dock-tx {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
}

.lk-dock-tx b {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.lk-dock-tx em {
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  opacity: 0.9;
  transition: opacity 0.18s ease;
}

.lk-dock-tx em.is-swap { opacity: 0; }

/* 关闭按钮 */
.lk-dock-x {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 10, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.62;
  transform: scale(1);
  transition: opacity 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.lk-dock-slot:hover .lk-dock-x,
.lk-dock-x:focus-visible {
  opacity: 1;
  transform: scale(1.06);
}

.lk-dock-x:hover {
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
}

html[data-theme="light"] .lk-dock-x {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(23, 25, 35, 0.16);
  color: #4b5565;
  box-shadow: 0 2px 8px rgba(43, 52, 72, 0.16);
}

/* —— 圆形 AI 指示灯 —— */
.lk-dock-orb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 92px;
  height: 44px;
  margin-top: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: linear-gradient(180deg, #14161c, #0b0d12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.lk-dock-orb:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 14px 30px rgba(56, 189, 248, 0.28);
}

.lk-dock-orb i {
  width: 24px;
  height: 13px;
  border-radius: 7px;
  background: radial-gradient(circle at 50% 45%, #bae6fd, #38bdf8 55%, #0ea5e9);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.85), 0 0 24px rgba(56, 189, 248, 0.4);
  animation: lkOrbPulse 3.6s ease-in-out infinite;
}

.lk-dock-orb i:nth-child(2) { animation-delay: -1.8s; }

@keyframes lkOrbPulse {
  0%, 100% { opacity: 0.62; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.04); }
}

/* —— 三张卡各自的配色 —— */
.lk-dock-card.is-desktop {
  background: linear-gradient(180deg, #262019 0%, #17130e 100%);
  border-color: rgba(251, 146, 60, 0.42);
  box-shadow: 0 10px 26px -12px rgba(249, 115, 22, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lk-dock-card.is-desktop .lk-dock-ic {
  background: linear-gradient(160deg, #f59e0b, #ea580c);
  color: #ffffff;
  box-shadow: 0 4px 12px -4px rgba(234, 88, 12, 0.8);
}

.lk-dock-card.is-desktop b { color: #ffffff; }
.lk-dock-card.is-desktop em { color: #fbbf24; }

.lk-dock-card.is-ai {
  background: linear-gradient(135deg, #a855f7 0%, #d946ef 48%, #ec4899 100%);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 12px 28px -12px rgba(217, 70, 239, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.lk-dock-card.is-ai .lk-dock-ic {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.lk-dock-card.is-ai b { color: #ffffff; }
.lk-dock-card.is-ai em { color: rgba(255, 255, 255, 0.92); }

.lk-dock-card.is-promo {
  background: linear-gradient(180deg, #f9d489 0%, #eeb04b 100%);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 26px -12px rgba(234, 179, 8, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.lk-dock-card.is-promo .lk-dock-ic {
  background: rgba(74, 44, 6, 0.14);
  color: #4a2c06;
  border: 1px solid rgba(74, 44, 6, 0.16);
}

.lk-dock-card.is-promo b { color: #4a2c06; }
.lk-dock-card.is-promo em { color: #6b3f07; opacity: 0.95; }

/* 浅色皮肤下把吊线、关闭按钮的对比度补回来 */
html[data-theme="light"] .lk-dock-card.is-desktop {
  box-shadow: 0 12px 26px -14px rgba(180, 83, 9, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .lk-dock-orb {
  border-color: rgba(23, 25, 35, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 22px rgba(43, 52, 72, 0.22);
}

/* 窄屏：导向图让位给内容（再窄就会压到右侧按钮，整条收起） */
@media (max-width: 1320px) {
  .lk-dock { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lk-dock-card { animation: none; }
  .lk-dock-orb i { animation: none; }
}

/* ============================================================================
 * 37. 顶栏高度与 APP 胶囊尺寸
 *     · 顶栏从 46px 抬到 64px：标题与右侧药丸不再贴着上沿，给下方内容留呼吸
 *     · APP 胶囊 26px → 34px，图标 12 → 15，绿点跟着变，辨识度和重量都提上来
 * ========================================================================== */

html[data-theme] .topbar {
  position: relative;
  min-height: 92px !important;
  padding-top: 14px !important;
  padding-bottom: 8px !important;
  align-items: center !important;
}

html[data-theme] .quickbar {
  padding-top: 4px !important;
  padding-bottom: 12px !important;
  row-gap: 10px !important;
}

html[data-theme] .side-app {
  height: 34px !important;
  padding: 0 14px 0 10px !important;
  gap: 6px !important;
  font-size: 12.5px !important;
  border-radius: 999px !important;
}

html[data-theme] .side-app svg {
  width: 15px !important;
  height: 15px !important;
}

html[data-theme] .side-app::after {
  top: -2px !important;
  left: 9px !important;
  width: 7px !important;
  height: 7px !important;
}

@media (max-width: 1023px) {
  html[data-theme] .topbar {
    min-height: 58px !important;
    padding-top: 12px !important;
  }
}

/* —— 35.5 高优先级补丁：底部账号卡与充值按钮（前面几节的 !important 规则
       比通用选择器更具体，这里带着 .side-foot / .btn.recharge 一起覆盖） —— */
html[data-theme="light"] .side-foot .sn-user,
html[data-theme="light"] .side-foot .sn-user-guest {
  background: #ffffff !important;
  border-color: rgba(23, 25, 35, 0.10) !important;
  box-shadow: 0 4px 14px -10px rgba(43, 52, 72, 0.5) !important;
}

html[data-theme="light"] .side-foot .sn-user:hover,
html[data-theme="light"] .side-foot .sn-user-guest:hover {
  background: #f7f8fc !important;
  border-color: rgba(23, 25, 35, 0.16) !important;
}

html[data-theme="light"] .side-foot .sn-avatar {
  border-color: rgba(23, 25, 35, 0.10) !important;
}

html[data-theme="light"] .side-foot .sn-avatar-ai {
  background: linear-gradient(160deg, #eef1f7, #e3e7f0) !important;
  border-color: rgba(23, 25, 35, 0.10) !important;
  color: #40454f !important;
}

html[data-theme="light"] .side-foot .sn-user-name { color: #171923 !important; }
html[data-theme="light"] .side-foot .sn-user-sub { color: #6b7280 !important; }
html[data-theme="light"] .side-foot .sn-user-go { color: #98a0ad !important; }
html[data-theme="light"] .side-foot .sn-user-hint { color: #6b7280 !important; }

html[data-theme="light"] .side-foot .sn-uid {
  background: rgba(23, 25, 35, 0.06) !important;
  color: #4b5565 !important;
}

html[data-theme="light"] .side-foot .sn-balance {
  background: #ffffff !important;
  border-color: rgba(23, 25, 35, 0.10) !important;
  color: #4b5565 !important;
}

html[data-theme="light"] .side-foot .sn-balance-n { color: #171923 !important; }

html[data-theme="light"] .side-foot .sn-pay {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(120deg, #f472b6, #a855f7, #38bdf8, #22d3ee, #fbbf24) border-box !important;
  color: #171923 !important;
}

html[data-theme="light"] .side-foot .sn-pay:hover {
  background:
    linear-gradient(#f7f4ff, #f7f4ff) padding-box,
    linear-gradient(120deg, #ec4899, #8b5cf6, #0ea5e9, #06b6d4, #f59e0b) border-box !important;
}

html[data-theme="light"] .side-foot .sn-reg {
  background: #ffffff !important;
  border-color: rgba(23, 25, 35, 0.16) !important;
  color: #262a33 !important;
}

html[data-theme="light"] .side-foot .sn-reg:hover {
  background: #f4efff !important;
  border-color: rgba(109, 40, 217, 0.3) !important;
  color: #5b21b6 !important;
}

html[data-theme="light"] .btn.recharge {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px -12px rgba(109, 40, 217, 0.9) !important;
}

html[data-theme="light"] .btn.recharge:hover:not(:disabled) {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
  color: #ffffff !important;
}

html[data-theme="light"] .btn.recharge svg { color: #ffffff !important; }

/* 主区白底与卡片同为白色时，用更实的描边把层级拉开 */
html[data-theme="light"] .panel,
html[data-theme="light"] .dai-card,
html[data-theme="light"] .dai-preview {
  border-color: rgba(23, 25, 35, 0.10) !important;
}

/* —— 36.1 中等宽度：先收掉圆灯、再收卡片尺寸，尽量把这一行留住 —— */
@media (max-width: 1420px) {
  .lk-dock-slot.is-orb { display: none; }
  .lk-dock { gap: 10px; }
  .lk-dock-card { height: 46px; padding: 0 11px 0 8px; gap: 7px; border-radius: 13px; }
  .lk-dock-tx b { font-size: 12.5px; }
  .lk-dock-tx em { font-size: 10.5px; }
  .lk-dock-ic { flex-basis: 26px; width: 26px; height: 26px; border-radius: 8px; }
  .lk-dock-ic svg { width: 16px; height: 16px; }
  .lk-dock-pin { top: -13px; height: 13px; }
}

/* —— 37.1 [hidden] 兜底：顶栏几个按钮带 hidden 属性，但 .chip / .btn 上的
       display:inline-flex !important 把它们又显示成了空壳（顶栏那个空心圆） —— */
html[data-theme] .chip[hidden],
html[data-theme] .btn[hidden],
html[data-theme] #userChip[hidden],
html[data-theme] #logoutBtn[hidden],
html[data-theme] .icon-btn[hidden] {
  display: none !important;
}

/* ============================================================================
 * 38. 账户与设置 + 悬浮顶栏
 *
 * 背景：顶栏原本是一条占位很高的固定带（标题 / 导向图 / 计费药丸 / 充值 /
 *      账号药丸 / 退出，下面还有快捷栏与客服信息行），创作区被压得很矮。
 * 做法：① 账号相关入口全部搬进「账户与设置」页面，快捷栏与客服行从 DOM 移除；
 *      ② 顶栏改为绝对定位的悬浮层，不再吃布局高度，内容从面板顶端开始；
 *      ③ 模型工作台（.mb-wide）让内容整体上提，滚动时从悬浮顶栏下方穿过。
 * ========================================================================== */

/* ---------- 38.1 顶栏悬浮（≥1024：侧栏 + 主区并排的桌面形态） ---------- */
@media (min-width: 1024px) {
  html[data-theme] .topbar {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    padding: 16px 26px 10px !important;
    /* 只有按钮和导向图接事件，中间的空隙让点击落到下面的内容上 */
    pointer-events: none;
  }

  html[data-theme] .topbar button,
  html[data-theme] .topbar .lk-dock-slot,
  html[data-theme] .topbar .lk-dock-orb {
    pointer-events: auto;
  }

  /* 内容让出悬浮顶栏的位置（比原来 顶栏92 + 快捷栏50 + 客服行26 省下一大截） */
  html[data-theme] .content {
    padding-top: 104px !important;
  }

  /* 模型工作台：内容整块从顶端开始，滚动时才从顶栏下方穿过 */
  html[data-theme] .main-col.mb-wide > .content {
    padding-top: 0 !important;
  }

  html[data-theme] .main-col.mb-wide > .topbar::before {
    content: '';
    position: absolute;
    inset: 0 0 -24px;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.97) 0%, rgba(24, 24, 27, 0.86) 46%, rgba(24, 24, 27, 0) 100%);
  }

  html[data-theme="light"] .main-col.mb-wide > .topbar::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 46%, rgba(255, 255, 255, 0) 100%);
  }

  /* 消息流首屏让出悬浮顶栏，往下滚就钻到它后面去 */
  html[data-theme] .main-col.mb-wide .mb-stream {
    padding-top: 104px;
  }
}

/* ---------- 38.2 顶栏账号入口：只剩一颗头像 ---------- */
html[data-theme] .chip.user-chip.is-avatar {
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-raised, #18181b) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.7);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

html[data-theme] .chip.user-chip.is-avatar:hover {
  border-color: var(--line-strong) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -12px rgba(139, 92, 246, 0.8);
}

html[data-theme] .chip.user-chip .uc-av {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

html[data-theme] .chip.user-chip .uc-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

html[data-theme="light"] .chip.user-chip.is-avatar {
  background: #fff !important;
  border-color: rgba(23, 25, 35, 0.12) !important;
}

/* ---------- 38.3 账户与设置：分组标题 + 卡片栅格 ---------- */
html[data-theme] .as-wrap {
  margin: 12px 0 2px;
}

html[data-theme] .as-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px 12px;
}

html[data-theme] .as-h {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

html[data-theme] .as-mark {
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, #22d3ee, #a855f7);
}

html[data-theme] .as-en {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--faint);
}

html[data-theme] .as-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

html[data-theme] .as-card {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(24, 24, 27, 0.62);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

html[data-theme] .as-card:hover {
  background: rgba(39, 39, 42, 0.72);
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -18px rgba(0, 0, 0, 0.9);
}

html[data-theme] .as-card:focus-visible {
  outline: 2px solid var(--focus-ring, #a78bfa);
  outline-offset: 2px;
}

html[data-theme] .as-card.is-wide {
  grid-column: 1 / -1;
}

html[data-theme] .as-ic {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

html[data-theme] .as-ic svg {
  width: 17px;
  height: 17px;
  display: block;
}

html[data-theme] .as-ic.tone-gold {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.24);
}

html[data-theme] .as-ic.tone-violet {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.28);
}

html[data-theme] .as-ic.tone-teal {
  color: #2dd4bf;
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.24);
}

html[data-theme] .as-ic.tone-blue {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.24);
}

html[data-theme] .as-ic.tone-red {
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.24);
}

html[data-theme] .as-tx {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

html[data-theme] .as-t {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

html[data-theme] .as-d {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme] .as-go {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
  color: var(--faint);
}

html[data-theme] .as-card.is-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

html[data-theme] .as-card.is-danger:hover .as-t {
  color: #fca5a5;
}

/* 账户卡：头像 + 昵称 + ID/积分 + 充值 */
html[data-theme] .as-card.is-acc {
  padding: 14px 16px;
  background:
    radial-gradient(420px 120px at 0% 0%, rgba(139, 92, 246, 0.16), transparent 70%),
    rgba(24, 24, 27, 0.7);
  cursor: default;
}

html[data-theme] .as-card.is-acc:hover {
  transform: none;
  background:
    radial-gradient(420px 120px at 0% 0%, rgba(139, 92, 246, 0.2), transparent 70%),
    rgba(24, 24, 27, 0.7);
}

html[data-theme] .as-av {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

html[data-theme] .as-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

html[data-theme] .as-acc-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}

html[data-theme] .as-acc-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

html[data-theme] .as-acc-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--muted);
  min-width: 0;
}

html[data-theme] .as-acc-id {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

html[data-theme] .as-acc-pts {
  color: #fbbf24;
  font-weight: 600;
  white-space: nowrap;
}

html[data-theme] .as-sep {
  color: var(--faint);
  font-style: normal;
}

html[data-theme] .as-pay {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  box-shadow: 0 8px 20px -12px rgba(124, 58, 237, 0.9);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

html[data-theme] .as-pay:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 12px 24px -12px rgba(124, 58, 237, 1);
}

/* ---------- 38.4 外观主题弹窗 ---------- */
html[data-theme] .as-look-cur {
  margin: 2px 0 12px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px dashed var(--line-strong);
  font-size: 12.5px;
  color: var(--muted);
}

html[data-theme] .as-look-h {
  margin: 14px 0 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--faint);
}

html[data-theme] .as-look-seg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

html[data-theme] .as-look-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

html[data-theme] .as-look-item.is-on {
  border-color: rgba(139, 92, 246, 0.55);
  background: rgba(139, 92, 246, 0.16);
}

html[data-theme] .as-look-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}

html[data-theme] .as-look-dot.dot-light {
  background: linear-gradient(140deg, #ffffff, #e7e7ee);
}

html[data-theme] .as-look-dot.dot-dark {
  background: linear-gradient(140deg, #27272a, #0b0b0e);
}

html[data-theme] .as-look-bgs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

html[data-theme] .as-look-bg {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

html[data-theme] .as-look-bg.is-on {
  border-color: rgba(139, 92, 246, 0.55);
  background: rgba(139, 92, 246, 0.16);
}

html[data-theme] .as-look-bg .look-dot {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  flex: 0 0 auto;
}

html[data-theme] .as-look-bg-tx {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

html[data-theme] .as-look-bg-tx b {
  font-size: 12.5px;
  font-weight: 600;
}

html[data-theme] .as-look-bg-tx span {
  font-size: 10.5px;
  color: var(--muted);
}

/* 退出登录单独占一行，五张卡不会剩一个空格子 */
html[data-theme] .as-card.is-danger {
  grid-column: 1 / -1;
}

/* 「星野」是默认背景，styles.css 里没给它的色块定义，这里补一个星云味的小图 */
html[data-theme] .as-look-bg .look-dot[data-k="lingke"] {
  background:
    radial-gradient(circle at 30% 26%, rgba(139, 92, 246, 0.85), transparent 62%),
    radial-gradient(circle at 76% 78%, rgba(56, 189, 248, 0.7), transparent 64%),
    linear-gradient(140deg, #1b1330, #0a0910 62%, #0d1524);
}

html[data-theme="light"] .as-look-bg .look-dot[data-k="lingke"] {
  background:
    radial-gradient(circle at 30% 26%, rgba(139, 92, 246, 0.42), transparent 64%),
    radial-gradient(circle at 78% 78%, rgba(56, 189, 248, 0.4), transparent 66%),
    linear-gradient(140deg, #fbfaff, #f1eefb 60%, #eef4fc);
}

/* ---------- 38.5 浅色皮肤 ---------- */
html[data-theme="light"] .as-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(23, 25, 35, 0.1);
  color: #171923;
}

html[data-theme="light"] .as-card:hover {
  background: #fff;
  border-color: rgba(23, 25, 35, 0.16);
}

html[data-theme="light"] .as-card.is-acc,
html[data-theme="light"] .as-card.is-acc:hover {
  background:
    radial-gradient(420px 120px at 0% 0%, rgba(139, 92, 246, 0.12), transparent 70%),
    #fff;
}

html[data-theme="light"] .as-t,
html[data-theme="light"] .as-acc-name,
html[data-theme="light"] .as-h {
  color: #171923;
}

html[data-theme="light"] .as-d,
html[data-theme="light"] .as-acc-meta {
  color: #5b6270;
}

html[data-theme="light"] .as-ic {
  background: rgba(23, 25, 35, 0.04);
  border-color: rgba(23, 25, 35, 0.08);
}

html[data-theme="light"] .as-acc-id {
  background: rgba(23, 25, 35, 0.06);
  border-color: rgba(23, 25, 35, 0.08);
}

html[data-theme="light"] .as-look-item,
html[data-theme="light"] .as-look-bg {
  background: #fff;
  border-color: rgba(23, 25, 35, 0.1);
  color: #171923;
}

html[data-theme="light"] .as-look-item.is-on,
html[data-theme="light"] .as-look-bg.is-on {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(109, 40, 217, 0.4);
}

html[data-theme="light"] .as-look-cur {
  color: #5b6270;
  border-color: rgba(23, 25, 35, 0.18);
}

/* ---------- 38.6 窄屏：单列 ---------- */
@media (max-width: 760px) {
  html[data-theme] .as-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-theme] .as-card.is-acc {
    flex-wrap: wrap;
  }

  html[data-theme] .as-pay {
    width: 100%;
    margin-top: 2px;
  }
}

/* ============================================================================
 * 40. 顶栏「AI 女神眼睛」—— 霓虹光晕 / 视线跟随 / 彩色光斑 / 点击数据互动
 *     · 外壳沿用 .lk-dock-orb 的尺寸（92×44），dock 布局一行都不动
 *     · 虹膜位移由 js/ai-eye.js 写 --ex / --ey，CSS 只负责过渡与光效
 *     · 光斑层是 fixed 的独立层，pointer-events:none，不影响任何页面点击
 * ========================================================================== */

.ai-eye {
  --ex: 0px;
  --ey: 0px;
  position: relative;
  overflow: visible;
  isolation: isolate;
}

/* —— 左右散发的霓虹光晕 —— */
.ai-eye-halo {
  position: absolute;
  inset: -22px -34px;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
  background:
    radial-gradient(58% 64% at 19% 50%, rgba(34, 211, 238, 0.62), rgba(34, 211, 238, 0) 72%),
    radial-gradient(58% 64% at 81% 50%, rgba(168, 85, 247, 0.58), rgba(168, 85, 247, 0) 72%),
    radial-gradient(72% 72% at 50% 50%, rgba(236, 72, 153, 0.2), rgba(236, 72, 153, 0) 74%);
  filter: blur(14px) saturate(1.15);
  opacity: 0.62;
  transition: opacity 0.35s ease, transform 0.35s ease;
  animation: aiEyeHalo 9s linear infinite;
}

.ai-eye.is-hot .ai-eye-halo {
  opacity: 1;
  transform: scale(1.08);
}

@keyframes aiEyeHalo {
  0% { filter: blur(14px) saturate(1.15) hue-rotate(0deg); }
  100% { filter: blur(14px) saturate(1.15) hue-rotate(360deg); }
}

/* —— 点击波纹 —— */
.ai-eye-ring {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.85);
  opacity: 0;
  pointer-events: none;
}

.ai-eye.is-pop .ai-eye-ring { animation: aiEyeRing 0.68s ease-out; }

@keyframes aiEyeRing {
  0% { opacity: 0.9; transform: scale(0.92); }
  100% { opacity: 0; transform: scale(1.85); }
}

/* —— 两只眼睛 —— */
.ai-eye-track {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transform-origin: center center;
}

.ai-eye-ball {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #101a2c 0%, #070a12 74%);
  box-shadow: inset 0 0 8px rgba(56, 189, 248, 0.42), inset 0 -2px 6px rgba(0, 0, 0, 0.72);
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.3s ease;
}

/* 覆盖第 36 节 .lk-dock-orb i 的老样式（发光条），换成虹膜 */
.ai-eye .ai-eye-ball .ai-eye-iris {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #e6feff 0%, #22d3ee 44%, #7c3aed 100%);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.95), 0 0 20px rgba(124, 58, 237, 0.55);
  animation: none;
  transform: translate3d(var(--ex, 0px), var(--ey, 0px), 0);
  transition: transform 0.16s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.3s ease;
}

.ai-eye-glint {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px #ffffff;
}

/* —— 悬停：虹膜换色 + 眼睛放大 —— */
.ai-eye.is-hot .ai-eye-ball {
  transform: scale(1.06);
  box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.6), 0 0 16px rgba(56, 189, 248, 0.4);
}

.ai-eye.is-hot .ai-eye-iris { animation: aiEyeHot 1.8s linear infinite; }

@keyframes aiEyeHot {
  0% { filter: hue-rotate(0deg) saturate(1.35) brightness(1.12); }
  100% { filter: hue-rotate(360deg) saturate(1.35) brightness(1.12); }
}

/* —— 眨眼 —— */
.ai-eye.is-blink .ai-eye-track { animation: aiEyeBlink 0.24s ease-in-out; }

@keyframes aiEyeBlink {
  0% { transform: scaleY(1); }
  42% { transform: scaleY(0.08); }
  58% { transform: scaleY(0.08); }
  100% { transform: scaleY(1); }
}

/* —— 点击爆散的数据粒子 —— */
.ai-eye-burst {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.ai-eye-burst i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(-4px);
  animation: aiEyeBurst 0.72s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

@keyframes aiEyeBurst {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--a)) translateY(-4px) scale(0.6); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(0.15); }
}

/* —— 视线落点的彩色光斑（独立层，不拦事件） —— */
.ai-eye-spark-layer {
  position: fixed;
  inset: 0;
  z-index: 35;
  pointer-events: none;
  overflow: hidden;
  contain: layout paint;
}

.ai-eye-spark-dot {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: aiEyeSparkDot 0.95s ease-out forwards;
}

@keyframes aiEyeSparkDot {
  0% { transform: translate(-50%, -50%) scale(0.35); opacity: 0.95; }
  32% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1.55) translateY(-16px); opacity: 0; }
}

/* —— 台词气泡 —— */
.ai-eye-say {
  position: absolute;
  top: calc(100% + 13px);
  left: 50%;
  z-index: 60;
  width: 278px;
  padding: 12px 13px 11px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.32);
  background: linear-gradient(180deg, rgba(15, 19, 29, 0.98), rgba(8, 10, 16, 0.99));
  box-shadow:
    0 20px 44px -18px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 30px -10px rgba(56, 189, 248, 0.55);
  color: #e8f6ff;
  font-size: 12.5px;
  line-height: 1.62;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 0.22s ease, transform 0.26s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0.22s;
}

.ai-eye-say.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.ai-eye-say::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border-left: 1px solid rgba(56, 189, 248, 0.32);
  border-top: 1px solid rgba(56, 189, 248, 0.32);
  background: rgba(15, 19, 29, 0.98);
  transform: rotate(45deg);
  border-radius: 2px 0 0 0;
}

.ai-eye-say-t {
  min-height: 34px;
  letter-spacing: 0.01em;
}

.ai-eye-say-t.is-typing::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 12px;
  margin-left: 2px;
  vertical-align: -2px;
  background: #67e8f9;
  animation: aiEyeCaret 0.7s steps(1) infinite;
}

@keyframes aiEyeCaret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.ai-eye-say-s {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 11px;
  color: #8ea3b8;
}

.ai-eye-say-v {
  color: #5eead4;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.ai-eye-say-d {
  color: #c4b5fd;
  font-size: 11px;
  opacity: 0;
}

.ai-eye-say-d.is-in { animation: aiEyeDelta 1.3s ease-out; }

@keyframes aiEyeDelta {
  0% { opacity: 0; transform: translateY(4px); }
  22% { opacity: 1; transform: translateY(0); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-4px); }
}

.ai-eye-say-a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 9px;
}

.ai-eye-btn {
  height: 22px;
  padding: 0 9px;
  border-radius: 7px;
  border: 1px solid rgba(56, 189, 248, 0.34);
  background: rgba(56, 189, 248, 0.13);
  color: #a5f3fc;
  font-size: 11px;
  line-height: 20px;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.ai-eye-btn:hover {
  background: rgba(56, 189, 248, 0.26);
  border-color: rgba(56, 189, 248, 0.6);
  color: #eafeff;
}

.ai-eye-btn.is-ghost {
  width: 26px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #7dd3fc;
}

.ai-eye-btn.is-on {
  background: rgba(34, 211, 238, 0.32);
  border-color: rgba(34, 211, 238, 0.72);
  color: #eafeff;
}

.ai-eye-btn svg { width: 13px; height: 13px; display: block; }

/* —— 浅色皮肤：气泡换成浅底，光效不变 —— */
html[data-theme="light"] .ai-eye-say {
  border-color: rgba(23, 25, 35, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 249, 255, 0.99));
  color: #1f2733;
  box-shadow:
    0 20px 44px -18px rgba(23, 25, 35, 0.4),
    0 0 0 1px rgba(23, 25, 35, 0.04) inset,
    0 0 26px -12px rgba(56, 189, 248, 0.7);
}

html[data-theme="light"] .ai-eye-say::before {
  border-color: rgba(23, 25, 35, 0.16);
  background: #fff;
}

html[data-theme="light"] .ai-eye-say-s {
  border-top-color: rgba(23, 25, 35, 0.1);
  color: #64748b;
}

html[data-theme="light"] .ai-eye-say-v { color: #0f766e; }
html[data-theme="light"] .ai-eye-say-d { color: #7c3aed; }

html[data-theme="light"] .ai-eye-btn {
  border-color: rgba(14, 116, 144, 0.28);
  background: rgba(14, 165, 233, 0.1);
  color: #0369a1;
}

html[data-theme="light"] .ai-eye-btn:hover {
  background: rgba(14, 165, 233, 0.2);
  color: #075985;
}

/* —— 减少动态效果：光斑/粒子关掉，眼睛仍然跟着看 —— */
@media (prefers-reduced-motion: reduce) {
  .ai-eye-halo,
  .ai-eye.is-hot .ai-eye-iris,
  .ai-eye.is-blink .ai-eye-track { animation: none; }
  .ai-eye-spark-layer,
  .ai-eye-burst { display: none; }
}

/* ============================================================================
 * 40.1 AI 眼睛的修正档
 *     · 光晕压到胶囊背景之下，只往左右外圈散，不再把眼睛糊成一团
 *     · 眼睛放大一档、加一圈细边光，主体始终看得清
 *     · 气泡左对齐到胶囊左缘、收窄，避开右边三张导向卡
 * ========================================================================== */

.ai-eye-halo {
  z-index: -1;
  inset: -17px -32px;
  opacity: 0.56;
  filter: blur(10px) saturate(1.08);
  animation: aiEyeHalo2 9s linear infinite;
}

.ai-eye.is-hot .ai-eye-halo {
  opacity: 0.85;
  transform: scale(1.07);
}

@keyframes aiEyeHalo2 {
  0% { filter: blur(10px) saturate(1.08) hue-rotate(0deg); }
  100% { filter: blur(10px) saturate(1.08) hue-rotate(360deg); }
}

.ai-eye-ball {
  width: 26px;
  height: 26px;
  background: radial-gradient(circle at 50% 38%, #0e1a2c 0%, #05070d 74%);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.32),
    inset 0 0 8px rgba(56, 189, 248, 0.5),
    inset 0 -2px 6px rgba(0, 0, 0, 0.75);
}

.ai-eye .ai-eye-ball .ai-eye-iris {
  width: 17px;
  height: 17px;
  box-shadow: 0 0 9px rgba(34, 211, 238, 0.95), 0 0 18px rgba(124, 58, 237, 0.5);
}

.ai-eye.is-hot .ai-eye-ball {
  transform: scale(1.05);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.6),
    0 0 14px rgba(56, 189, 248, 0.45),
    inset 0 0 10px rgba(56, 189, 248, 0.62),
    inset 0 -2px 6px rgba(0, 0, 0, 0.75);
}

.ai-eye.is-hot .ai-eye-iris { animation: aiEyeHot 2.4s linear infinite; }

/* 气泡：左对齐胶囊左缘，宽度收窄，给右边三张卡让路 */
.ai-eye-say {
  top: calc(100% + 16px);
  left: 0;
  width: 244px;
  transform: translate(0, -6px);
}

.ai-eye-say.is-on { transform: translate(0, 0); }

.ai-eye-say::before { left: 46px; margin-left: -5.5px; }

/* ============================================================
 * 41. 开放 API · 模型广场（参考目标站布局，沿用本站现有主题配色）
 *     全部颜色取自 styles-lingke.css 的设计令牌，深浅色皮肤自动适配，
 *     不引入任何新的品牌色，保持现有 UI 设计颜色不变。
 * ============================================================ */
.ap-plaza { margin: 18px 0 6px; }
.ap-root { width: 100%; }
.ap-layout { display: grid; grid-template-columns: 246px minmax(0, 1fr); gap: 18px; align-items: start; }
.ap-side {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; position: sticky; top: 104px; max-height: calc(100vh - 130px); overflow-y: auto;
}
.ap-side-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ap-side-h b { font-size: 14px; color: var(--ink); }
.ap-reset { background: none; border: 0; color: var(--accent-deep); font-size: 12px; cursor: pointer; padding: 2px 4px; }
.ap-group { margin-bottom: 16px; }
.ap-group-t { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-chip {
  border: 1px solid var(--line); background: var(--panel-soft); color: var(--ink-soft);
  border-radius: 999px; padding: 4px 10px; font-size: 11.5px; cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.ap-chip:hover { border-color: var(--accent); color: var(--accent-deep); }
.ap-chip.is-on { background: var(--accent-grad); border-color: transparent; color: #fff; }
.ap-more { margin-top: 8px; background: none; border: 0; color: var(--accent-deep); font-size: 11.5px; cursor: pointer; padding: 0; }
.ap-loading, .ap-empty { padding: 26px 14px; color: var(--muted); font-size: 13px; text-align: center; }
.ap-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.ap-search {
  flex: 1; min-width: 220px; background: var(--panel); border: 1px solid var(--line);
  color: var(--ink); border-radius: 10px; padding: 9px 12px; font-size: 13px; outline: none;
  font-family: var(--font);
}
.ap-search::placeholder { color: var(--faint); }
.ap-search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ap-sort {
  background: var(--panel); border: 1px solid var(--line); color: var(--ink);
  border-radius: 10px; padding: 9px 10px; font-size: 12.5px; font-family: var(--font); outline: none;
}
.ap-notice {
  display: flex; gap: 8px; align-items: flex-start; background: var(--accent-soft);
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
  font-size: 12px; color: var(--ink-soft); line-height: 1.65;
}
.ap-notice-i { color: var(--accent-deep); font-size: 14px; line-height: 1.3; }
.ap-stat { font-size: 12px; color: var(--muted); margin: 12px 0 8px; }
.ap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 12px; }
.ap-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  display: flex; flex-direction: column; gap: 9px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ap-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.ap-card-top { display: flex; align-items: center; gap: 10px; }
.ap-ic {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px;
  background: var(--panel-soft); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ap-ic img { width: 28px; height: 28px; object-fit: contain; }
.ap-nb { flex: 1; min-width: 0; }
.ap-name { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-id { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.ap-badge { flex: 0 0 auto; font-size: 10.5px; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); border: 1px solid var(--line); }
.ap-badge.is-sec { background: rgba(234, 179, 8, .12); color: var(--gold); }
.ap-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-meta-i { font-size: 11px; color: var(--muted); background: var(--panel-soft); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.ap-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.ap-tag { font-size: 10.5px; line-height: 1.5; padding: 2px 7px; border-radius: 6px; background: var(--panel-soft); color: var(--ink-soft); border: 1px solid var(--line); cursor: pointer; transition: color .16s ease, border-color .16s ease; }
.ap-tag:hover { color: var(--accent-deep); border-color: var(--accent); }
.ap-proto { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11px; }
.ap-proto-k { color: var(--muted); }
.ap-proto-v { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; color: var(--accent-deep); background: var(--accent-soft); border-radius: 5px; padding: 2px 6px; }
.ap-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 9px; margin-top: auto; }
.ap-price { font-size: 13px; font-weight: 700; color: var(--accent-deep); }
.ap-price.is-none { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.ap-copy { border: 1px solid var(--line); background: var(--panel-soft); color: var(--ink-soft); border-radius: 7px; padding: 4px 9px; font-size: 11px; cursor: pointer; }
.ap-copy:hover { border-color: var(--accent); color: var(--accent-deep); }
.ap-detail-btn { align-self: flex-start; background: none; border: 0; color: var(--muted); font-size: 11px; cursor: pointer; padding: 0; }
.ap-detail-btn:hover { color: var(--accent-deep); }
.ap-detail { font-size: 11.5px; line-height: 1.7; color: var(--ink-soft); background: var(--panel-soft); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; }
.ap-detail p { margin: 0; }
.ap-sec-title { margin: 26px 2px 4px; font-size: 15px; font-weight: 700; color: var(--ink); }
@media (max-width: 1023px) {
  .ap-layout { grid-template-columns: 1fr; }
  .ap-side { position: static; max-height: none; }
  .ap-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* —— 41.1 纯白品牌图标的浅色皮肤可见性适配 ——
   目标站 Mj / happyhorse / vidu 三个 SVG 为纯白填充，深色主题下原样展示；
   浅色主题下仅在显示层做滤镜处理，SVG 源文件、图形细节、尺寸比例、
   透明背景、圆角与描边均不改动，保证与原网址视觉一致且不错位。 */
html[data-theme="light"] .ap-ic img[src*="Mj.svg"],
html[data-theme="light"] .ap-ic img[src*="happyhorse.svg"],
html[data-theme="light"] .ap-ic img[src*="vidu-icon.svg"] {
  filter: brightness(0) opacity(.72);
}

/* ===== OEM总代理入口（顶栏，参考蓝猫的代理商入口按钮） ===== */
.oem-entry {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px 0 10px; margin-right: 8px;
  border-radius: 999px; text-decoration: none;
  color: #f4f1ff;
  background: linear-gradient(135deg, rgb(123 92 255 / 92%), rgb(74 55 190 / 92%));
  border: 1px solid rgb(255 255 255 / 16%);
  box-shadow: 0 6px 18px rgb(94 72 220 / 28%);
  font-size: 13px; font-weight: 600; letter-spacing: .2px;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
  white-space: nowrap;
}
.oem-entry[hidden] { display: none !important; }
.oem-entry:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 10px 22px rgb(94 72 220 / 36%); }
.oem-entry:active { transform: translateY(0); }
.oem-entry-ic { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; }
@media (max-width: 720px) {
  .oem-entry { padding: 0 10px; }
  .oem-entry-t { display: none; }
}
