/* ===========================================================================
   小夜客服 · DNF 暗金主题（xiaoye-theme.css）
   参考：腾讯客服 DNF 专区（kf.qq.com pro_code=A1110）的官方设计 token
     主文字 #FFEECC / 次 #D0C8B3 / 三级 #928B81 / 弱化 #575552
     金 #DDA700 / 亮金 #FFC042 / 红 #DF3C34 / 蓝 #7799FF / 绿 #5DCA77
     背景 #060606 / 遮罩 rgba(104,48,36,.6) / 浮层 rgba(255,248,235,.1)
     标题衬线 Source Han Serif SC · 正文 Source Han Sans CN · 圆角 4px
   本文件在 serve.mjs 注入到 </head> 前，优先级高于 main.css。
   =========================================================================== */

:root {
  --dnf-ink: #FFEECC;
  --dnf-ink-2: #d0c8b3;
  --dnf-ink-3: #928b81;
  --dnf-ink-4: #575552;
  --dnf-gold: #dda700;
  --dnf-gold-bright: #ffc042;
  --dnf-gold-dim: rgba(221, 167, 0, 0.45);
  --dnf-red: #df3c34;
  --dnf-blue: #7799ff;
  --dnf-green: #5dca77;
  --dnf-bg: #0b0908;
  --dnf-panel: #141110;
  --dnf-panel-2: #1c1815;
  --dnf-line: rgba(221, 167, 0, 0.16);
  --dnf-line-soft: rgba(221, 167, 0, 0.09);
  --dnf-serif: 'Microsoft YaHei UI', 'Microsoft YaHei', 'PingFang SC', 'Source Han Sans CN', 'Noto Sans SC', system-ui, sans-serif;
  --dnf-sans: 'Microsoft YaHei UI', 'Microsoft YaHei', 'PingFang SC', 'Source Han Sans CN', 'Noto Sans SC', system-ui, sans-serif;
}

/* ---------- 1. 基础变量：把 chat-demo 的色彩体系整体换成 DNF 暗金 ---------- */
body[data-ds-dark-theme] {
  /* 静态色板（组件偶尔直接引用） */
  --dsw-static-neutral-bluish-1000: #070605;
  --dsw-static-neutral-bluish-950: #0b0908;
  --dsw-static-neutral-bluish-900: #100e0c;
  --dsw-static-neutral-bluish-850: #171310;
  --dsw-static-neutral-bluish-800: #1e1a16;
  --dsw-static-neutral-bluish-750: #26211c;
  --dsw-static-neutral-bluish-700: #332c25;
  --dsw-static-neutral-bluish-600: #5c534a;
  --dsw-static-neutral-bluish-400: #928b81;
  --dsw-static-neutral-bluish-300: #d0c8b3;
  --dsw-static-neutral-bluish-50: #FFEECC;
  --dsw-static-amber-400: #dda700;
  --dsw-static-amber-500: #dda700;
  --dsw-static-red-400: #df3c34;
  --dsw-static-blue-450: #7799ff;
  --dsw-static-blue-400: #99b3ff;

  /* 背景层 */
  --dsw-alias-bg-base: #0b0908;
  --dsw-alias-bg-layer-2: #141110;
  --dsw-alias-bg-layer-3: #1c1815;
  --dsw-alias-bg-skeleton: rgba(255, 248, 235, 0.05);

  /* 边框：一律金色半透明，这是 DNF 的骨架 */
  --dsw-alias-border-inverted: var(--dnf-line);
  --dsw-alias-border-l1: rgba(221, 167, 0, 0.12);
  --dsw-alias-border-l2: rgba(221, 167, 0, 0.2);
  --dsw-alias-border-l2-darkmode-thin: rgba(221, 167, 0, 0.14);
  --dsw-alias-border-l3: rgba(221, 167, 0, 0.32);

  /* 品牌与按钮 */
  --dsw-alias-brand-primary: #dda700;
  --dsw-alias-brand-text: #ffc042;
  --dsw-alias-brand-primary-invert: #FFEECC;
  --dsw-alias-button-primary-fill: linear-gradient(180deg, #ffc042 0%, #dda700 55%, #b98b00 100%);
  --dsw-alias-button-primary-hover: linear-gradient(180deg, #ffd166 0%, #ffc042 55%, #dda700 100%);
  --dsw-alias-button-contrast-fill: #FFEECC;
  --dsw-alias-button-elevated-fill: #26211c;
  --dsw-alias-button-ghost-active-border: rgba(221, 167, 0, 0.5);
  --dsw-alias-button-ghost-active-fill: rgba(221, 167, 0, 0.12);
  --dsw-alias-button-ghost-active-hover: rgba(221, 167, 0, 0.2);

  /* 文字 */
  --dsw-alias-label-primary: #FFEECC;
  --dsw-alias-label-secondary: #d0c8b3;
  --dsw-alias-label-tertiary: #928b81;
  --dsw-alias-label-caption: #6e655c;
  --dsw-alias-label-dimmed: #4a423b;
  --dsw-alias-label-primary-foreground: #1a1206;
  --dsw-alias-label-primary-inverted: #0b0908;

  /* 交互态 */
  --dsw-alias-interactive-bg-hover: rgba(255, 248, 235, 0.06);
  --dsw-alias-interactive-bg-active: rgba(255, 248, 235, 0.11);
  --dsw-alias-interactive-bg-hover-accent: rgba(221, 167, 0, 0.16);
  --dsw-alias-interactive-bg-hover-danger: rgba(223, 60, 52, 0.14);

  /* markdown 代码块等 */
  --dsw-alias-markdown-citation: #1e1a16;
  --dsw-alias-markdown-code-block: #100e0c;
  --dsw-alias-markdown-code-block-banner: #1a1613;
  --dsw-alias-markdown-inline-code: #1e1a16;
  --dsw-alias-markdown-placeholder: #241f1a;
  --dsw-alias-markdown-tag: #1e1a16;

  /* 状态 */
  --dsw-alias-state-error-primary: #df3c34;
  --dsw-alias-state-error-secondary: #f06a5f;
  --dsw-alias-toast-bg: #241f1a;
  --dsw-alias-tooltip-bg: #2a241e;

  /* 专属区域：用户气泡用暗红棕，输入框用暖白薄雾 */
  --dsw-specific-bubble: rgba(104, 48, 36, 0.5);
  --dsw-specific-input-major: rgba(255, 248, 235, 0.04);
  --dsw-specific-login-input: #141110;
  --dsw-specific-menu: #1c1815;
  --dsw-specific-selector: #241f1a;
  --dsw-specific-sidebar-fill: #080706;
  --dsw-specific-sidebar-nav-item-active-accent: rgba(221, 167, 0, 0.14);
  --dsw-specific-sidebar-nav-item-hover: rgba(255, 248, 235, 0.05);

  /* 阴影：金色微光 + 深黑投影 */
  --dsw-shadow-lv3: 0 0 1px 0 rgba(221, 167, 0, 0.25), 0 0 12px 0 rgba(0, 0, 0, 0.55),
    0 12px 32px 0 rgba(0, 0, 0, 0.55);
}

/* ---------- 2. 字体：标题衬线、正文思源黑 ---------- */
:root {
  --dsw-font-family: var(--dnf-sans);
}

body[data-ds-dark-theme] {
  --dsw-font-markdown-h1: 700 26px/40px var(--dnf-serif);
  --dsw-font-markdown-h2: 700 23px/36px var(--dnf-serif);
  --dsw-font-markdown-h3: 700 20px/32px var(--dnf-serif);
  --dsw-font-markdown-h4: 600 17px/29px var(--dnf-sans);
  --dsw-font-markdown-base: 15px/28px var(--dnf-sans);
  --dsw-font-markdown-base-strong: 600 15px/28px var(--dnf-sans);
  --dsw-font-markdown-table: 14px/24px var(--dnf-sans);
  --dsw-font-markdown-table-head: 600 14px/24px var(--dnf-sans);
  --dsw-font-markdown-small: 13px/23px var(--dnf-sans);
  --dsw-font-markdown-small-strong: 600 13px/23px var(--dnf-sans);
}

/* ---------- 3. 全局底：近黑 + 暗金晕染 + 极细织纹 ---------- */
body[data-ds-dark-theme] {
  background-color: #0b0908 !important;
  background-image:
    radial-gradient(1200px 520px at 50% -12%, rgba(221, 167, 0, 0.11), transparent 62%),
    radial-gradient(900px 600px at 108% 18%, rgba(104, 48, 36, 0.16), transparent 60%),
    radial-gradient(1000px 700px at -10% 88%, rgba(104, 48, 36, 0.13), transparent 62%),
    linear-gradient(180deg, #0d0b09 0%, #080706 60%, #060504 100%);
  background-attachment: fixed;
  color: var(--dnf-ink);
  font-family: var(--dnf-sans);
}

/* 顶部一条金色细光带，像 DNF 界面的金边 */
body[data-ds-dark-theme] .frame-_9fdf5::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(221, 167, 0, 0.75) 22%, #ffc042 50%, rgba(221, 167, 0, 0.75) 78%, transparent);
  opacity: 0.5;
  pointer-events: none;
  z-index: 999;
}

/* ---------- 4. 侧栏：纯黑底 + 右侧金线 ---------- */
body[data-ds-dark-theme] [class*='sider'][class*='-ac14ac'] {
  background: linear-gradient(180deg, #0a0807 0%, #070605 100%) !important;
  border-right: 1px solid rgba(221, 167, 0, 0.14) !important;
  box-shadow: 1px 0 0 rgba(0, 0, 0, 0.6), inset -1px 0 24px rgba(0, 0, 0, 0.5);
}

/* 侧栏顶部标题 */
body[data-ds-dark-theme] [class*='appName-'] {
  font-family: var(--dnf-serif);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--dnf-ink) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

/* 新建对话按钮：金色描边胶囊 */
body[data-ds-dark-theme] [class*='newChat-'] {
  background: linear-gradient(180deg, rgba(255, 248, 235, 0.055), rgba(255, 248, 235, 0.02)) !important;
  border: 1px solid rgba(221, 167, 0, 0.35) !important;
  border-radius: 4px !important;
  color: var(--dnf-ink) !important;
  transition: all 0.18s ease;
}
body[data-ds-dark-theme] [class*='newChat-']:hover {
  border-color: rgba(255, 192, 66, 0.7) !important;
  box-shadow: 0 0 18px rgba(221, 167, 0, 0.22);
  background: rgba(221, 167, 0, 0.1) !important;
}

/* 会话分组标题：金色小字、大写感 */
body[data-ds-dark-theme] [class*='sectionHeader-'] {
  color: rgba(221, 167, 0, 0.82) !important;
  font-size: 11px !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* 会话条目 */
body[data-ds-dark-theme] [class*='item-ff6fc9'] {
  border-radius: 4px !important;
  color: var(--dnf-ink-2) !important;
}
body[data-ds-dark-theme] [class*='item-ff6fc9']:hover {
  background: linear-gradient(90deg, rgba(221, 167, 0, 0.14), rgba(221, 167, 0, 0.02)) !important;
  color: var(--dnf-ink) !important;
}
/* 选中的会话：左侧金色竖条 + 暗金底 */
body[data-ds-dark-theme] [class*='item-ff6fc9'][class*='active-'] {
  background: linear-gradient(90deg, rgba(221, 167, 0, 0.22), rgba(221, 167, 0, 0.04)) !important;
  box-shadow: inset 2px 0 0 0 var(--dnf-gold-bright), inset 0 0 24px rgba(221, 167, 0, 0.08);
  color: var(--dnf-ink) !important;
}

/* 底部设置项 */
body[data-ds-dark-theme] [class*='settings-ac14ac'],
body[data-ds-dark-theme] [class*='settings-'] {
  color: var(--dnf-ink-2);
}

/* ---------- 5. 主内容区：透明，露出底板 ---------- */
body[data-ds-dark-theme] .main-_9fdf5,
body[data-ds-dark-theme] .content-_9fdf5 {
  background: transparent !important;
}

/* ---------- 6. 消息区 ---------- */
/* 用户消息气泡：暗红棕 + 金边 */
body[data-ds-dark-theme] [class*='bubble'] {
  background: linear-gradient(160deg, rgba(104, 48, 36, 0.55), rgba(50, 24, 18, 0.55)) !important;
  border: 1px solid rgba(221, 167, 0, 0.3) !important;
  border-radius: 4px !important;
  color: var(--dnf-ink) !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* 消息里的正文 */
body[data-ds-dark-theme] [class*='message-e1faee'] {
  color: var(--dnf-ink) !important;
}

/* 思考/工具折叠条 */
body[data-ds-dark-theme] [class*='notice-'],
body[data-ds-dark-theme] [class*='summary-'] {
  border-color: rgba(221, 167, 0, 0.18) !important;
  color: var(--dnf-ink-3) !important;
}

/* ---------- 7. 输入区：暖白薄雾 + 金边，聚焦时金边发亮 ---------- */
body[data-ds-dark-theme] [class*='wrapper-ed6f47'] {
  background: linear-gradient(180deg, rgba(255, 248, 235, 0.045), rgba(255, 248, 235, 0.015)) !important;
  border: 1px solid rgba(221, 167, 0, 0.28) !important;
  border-radius: 6px !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
body[data-ds-dark-theme] [class*='wrapper-ed6f47']:focus-within {
  border-color: rgba(255, 192, 66, 0.75) !important;
  box-shadow: 0 0 0 1px rgba(221, 167, 0, 0.35), 0 0 26px rgba(221, 167, 0, 0.22), 0 10px 30px rgba(0, 0, 0, 0.45);
}

body[data-ds-dark-theme] [class*='textarea-ed6f47'] {
  color: var(--dnf-ink) !important;
  background: transparent !important;
}
body[data-ds-dark-theme] [class*='textarea-ed6f47']::placeholder,
body[data-ds-dark-theme] [class*='placeholder-'] {
  color: rgba(146, 139, 129, 0.85) !important;
}

/* 发送按钮：金 */
body[data-ds-dark-theme] [class*='sendButton-'] {
  color: #1a1206 !important;
}

/* 输入区下方功能条 */
body[data-ds-dark-theme] [class*='toggles-'],
body[data-ds-dark-theme] [class*='toggle-ed6f47'],
body[data-ds-dark-theme] [class*='toggleLabel-'],
body[data-ds-dark-theme] [class*='functionRow-'] {
  color: var(--dnf-ink-3) !important;
}

/* ---------- 8. 按钮 ---------- */
body[data-ds-dark-theme] [class*='button-_7c3cd'] {
  border-radius: 4px !important;
  font-family: var(--dnf-sans);
  transition: all 0.16s ease;
}
body[data-ds-dark-theme] [class*='button-_7c3cd'][class*='primary-_7c3cd'] {
  background: linear-gradient(180deg, #ffc042 0%, #dda700 55%, #b98b00 100%) !important;
  color: #1a1206 !important;
  border: 1px solid #ffd166 !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 0 16px rgba(221, 167, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-shadow: none;
}
body[data-ds-dark-theme] [class*='button-_7c3cd'][class*='primary-_7c3cd']:hover {
  background: linear-gradient(180deg, #ffd166 0%, #ffc042 55%, #dda700 100%) !important;
  box-shadow: 0 0 26px rgba(255, 192, 66, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* ---------- 9. 弹窗 / 菜单 / 下拉：黑金卡片 ---------- */
body[data-ds-dark-theme] [class*='card-bab5a2'],
body[data-ds-dark-theme] [class*='menu-b81146'],
body[data-ds-dark-theme] [class*='panel-'] {
  background: linear-gradient(180deg, #1a1613 0%, #100e0c 100%) !important;
  border: 1px solid rgba(221, 167, 0, 0.24) !important;
  border-radius: 4px !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 18px 48px rgba(0, 0, 0, 0.6), 0 0 40px rgba(221, 167, 0, 0.06);
}

body[data-ds-dark-theme] [class*='option-b81146']:hover,
body[data-ds-dark-theme] [class*='menuItem']:hover {
  background: rgba(221, 167, 0, 0.14) !important;
  color: var(--dnf-ink) !important;
}

/* ---------- 10. 欢迎页：衬线大标题 + 金色小标 ---------- */
body[data-ds-dark-theme] [class*='greeting-cc04e9'] {
  font-family: var(--dnf-serif);
  font-weight: 700;
  color: var(--dnf-ink) !important;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}
body[data-ds-dark-theme] [class*='logo-cc04e9'] {
  filter: sepia(1) saturate(2.4) hue-rotate(-8deg) brightness(1.05);
  opacity: 0.95;
}

/* ---------- 11. 滚动条：暗金 ---------- */
body[data-ds-dark-theme] {
  scrollbar-color: rgba(221, 167, 0, 0.35) transparent;
}
body[data-ds-dark-theme] ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
body[data-ds-dark-theme] ::-webkit-scrollbar-track {
  background: transparent;
}
body[data-ds-dark-theme] ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(221, 167, 0, 0.4), rgba(221, 167, 0, 0.22));
  border-radius: 4px;
}
body[data-ds-dark-theme] ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 192, 66, 0.6);
}

/* ---------- 12. 选中文字 / 链接 / 分割线 ---------- */
body[data-ds-dark-theme] ::selection {
  background: rgba(221, 167, 0, 0.32);
  color: #fff8eb;
}
body[data-ds-dark-theme] a {
  color: var(--dnf-gold-bright) !important;
}
body[data-ds-dark-theme] a:hover {
  color: #ffd166 !important;
  text-shadow: none;
}
body[data-ds-dark-theme] hr,
body[data-ds-dark-theme] [class*='divider'] {
  border-color: rgba(221, 167, 0, 0.16) !important;
  background: rgba(221, 167, 0, 0.16) !important;
}

/* ---------- 13. markdown 正文里的标题走衬线，正文米黄白 ---------- */
body[data-ds-dark-theme] [class*='markdown'] h1,
body[data-ds-dark-theme] [class*='markdown'] h2,
body[data-ds-dark-theme] [class*='markdown'] h3,
body[data-ds-dark-theme] [class*='ds-markdow'] h1,
body[data-ds-dark-theme] [class*='ds-markdow'] h2,
body[data-ds-dark-theme] [class*='ds-markdow'] h3 {
  font-family: var(--dnf-serif);
  color: var(--dnf-ink);
  border-bottom: 1px solid rgba(221, 167, 0, 0.18);
  padding-bottom: 6px;
}
body[data-ds-dark-theme] [class*='markdown'] p,
body[data-ds-dark-theme] [class*='markdown'] li,
body[data-ds-dark-theme] [class*='ds-markdow'] p,
body[data-ds-dark-theme] [class*='ds-markdow'] li {
  color: var(--dnf-ink);
}
body[data-ds-dark-theme] [class*='markdown'] strong,
body[data-ds-dark-theme] [class*='ds-markdow'] strong {
  color: var(--dnf-gold-bright);
}
body[data-ds-dark-theme] code {
  background: rgba(255, 248, 235, 0.07) !important;
  color: #ffd166 !important;
  border: 1px solid rgba(221, 167, 0, 0.18);
  border-radius: 3px;
}


/* ===========================================================================
   14. 第二轮：品牌与氛围强化（对齐腾讯客服 DNF 专区的质感）
   =========================================================================== */

/* 侧栏顶部：暗红棕火光晕，像游戏界面里的灯 */
[class*='sider'][class*='-ac14ac'] [class*='top-ac14ac'] {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(104, 48, 36, 0.55) 0%, rgba(104, 48, 36, 0.12) 45%, rgba(104, 48, 36, 0) 75%);
}

/* 品牌名：DNF 式金色渐变 + 深色描边投影 */
[class*='sider'][class*='-ac14ac'] [class*='appName-'] {
  font-size: 17px !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em !important;
  background: linear-gradient(180deg, #FFEFC2 0%, #FFC042 42%, #DDA700 74%, #A87A00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  text-shadow: none !important;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 10px rgba(221, 167, 0, 0.25));
}

/* 主区大气息：顶部暗红棕 + 两侧压暗 */
[class*='main-_9fdf5'] {
  background:
    radial-gradient(140% 80% at 50% 0%, rgba(104, 48, 36, 0.18) 0%, rgba(104, 48, 36, 0.04) 42%, rgba(0, 0, 0, 0) 68%),
    radial-gradient(80% 60% at 50% 120%, rgba(221, 167, 0, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
}

/* 欢迎语：金色渐变标题 */
[class*='greeting-cc04e9'] {
  background: linear-gradient(180deg, #FFF6DC 0%, #FFEECC 42%, #E6C473 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  text-shadow: none !important;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.75));
}

/* 输入框：米黄薄雾面板 + 亮金细边 + 外发光 */
[class*='wrapper-ed6f47'] {
  background: linear-gradient(180deg, rgba(255, 248, 235, 0.06) 0%, rgba(255, 248, 235, 0.022) 100%) !important;
  border-color: rgba(221, 167, 0, 0.5) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 235, 0.07),
    0 0 0 1px rgba(255, 192, 66, 0.06),
    0 18px 50px rgba(0, 0, 0, 0.6) !important;
}
[class*='wrapper-ed6f47']:focus-within {
  border-color: rgba(255, 192, 66, 0.9) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 235, 0.1),
    0 0 0 1px rgba(255, 192, 66, 0.22),
    0 0 26px rgba(221, 167, 0, 0.28),
    0 18px 50px rgba(0, 0, 0, 0.65) !important;
}

/* 功能胶囊（深度思考 / 智能搜索）：金边 + 暖底 */
[class*='toggle-ed6f47'] {
  border: 1px solid rgba(221, 167, 0, 0.42) !important;
  background: rgba(255, 248, 235, 0.03) !important;
  color: #D0C8B3 !important;
}
[class*='toggle-ed6f47']:hover {
  border-color: rgba(255, 192, 66, 0.7) !important;
  background: rgba(221, 167, 0, 0.12) !important;
  color: #FFEECC !important;
}
[class*='toggle-ed6f47'][class*='selected-ed6f47'] {
  border-color: #FFC042 !important;
  background: rgba(221, 167, 0, 0.2) !important;
  color: #FFC042 !important;
}
/* ── 15. DNF 氛围背景层（整页） ─────────────────────────── */
body[data-ds-dark-theme]{
  background-color:#080706 !important;
  background-image:
    linear-gradient(180deg, rgba(8,7,6,0.22) 0%, rgba(8,7,6,0.55) 14%, rgba(8,7,6,0.9) 30%, rgba(6,5,4,1) 46%),
    radial-gradient(120% 70% at 50% 0%, rgba(104,48,36,0.5) 0%, rgba(104,48,36,0) 70%),
    url('dnf-header.png') !important;
  background-size: 100% auto, auto, 100% auto !important;
  background-position: center top, center top, center top !important;
  background-repeat: no-repeat, no-repeat, no-repeat !important;
  background-attachment: scroll, scroll, scroll !important;
}

/* 侧栏：左侧竖条 + 顶部把背景图透一点出来 */
[class*='sider'][class*='-ac14ac']{
  background-image:
    radial-gradient(120% 80% at 50% -8%, rgba(104,48,36,0.5) 0%, rgba(104,48,36,0) 68%),
    linear-gradient(180deg, rgba(10,8,7,0.86) 0%, rgba(7,6,5,0.94) 100%) !important;
}

/* 输入区再提一点暖光，压住背景 */
[class*='wrapper'][class*='-ed6f47']{
  background-image:
    linear-gradient(180deg, rgba(255,248,235,0.075) 0%, rgba(255,248,235,0.028) 100%) !important;
  backdrop-filter: blur(6px);
}

/* 欢迎语：白字 + 冷金描边（对齐官网 hero 的白标题观感） */
[class*='greeting-cc04e9']{
  color:#FFFFFF !important;
  text-shadow:0 2px 10px rgba(0,0,0,0.85), 0 0 26px rgba(221,167,0,0.18) !important;
  letter-spacing:0.01em !important;
}
/* ───────────────────────────────────────────────
   16. 把 DNF 钟面横幅挂到真正铺满视口的 .frame 上
   根因：.frame-_9fdf5 是 position:fixed + inset:0 + 背景色 bg-base(#0b0908)，
   把 body 的 background-image 整个盖住了 —— 所以之前怎么调都看不见图。
   同时把侧栏改成半透明，让横幅从侧栏后面透一点出来。
   ─────────────────────────────────────────────── */
body[data-ds-dark-theme] .frame-_9fdf5{
  background-color:#080706 !important;
  background-image:
    linear-gradient(180deg, rgba(8,7,6,0.14) 0%, rgba(8,7,6,0.40) 8%, rgba(8,7,6,0.68) 17%,
                            rgba(7,6,5,0.88) 26%, rgba(6,5,4,1) 35%),
    radial-gradient(115% 55% at 50% 0%, rgba(104,48,36,0.42) 0%, rgba(104,48,36,0) 66%),
    url('dnf-header.png') !important;
  background-size: 100% auto, auto, 100% auto !important;
  background-position: center top, center top, center top !important;
  background-repeat: no-repeat, no-repeat, no-repeat !important;
}

body[data-ds-dark-theme] [class*='sider'][class*='-ac14ac']{
  background-image: linear-gradient(180deg, rgba(10,8,7,0.92) 0%, rgba(7,6,5,0.96) 100%) !important;
  backdrop-filter: blur(3px);
}

body[data-ds-dark-theme] .main-_9fdf5{
  background-image: none !important;
}

/* 欢迎语：金色渐变在子元素上吃不到，改回纯金色 + 柔和描边，保证清晰 */
body[data-ds-dark-theme] [class*='greeting-cc04e9'],
body[data-ds-dark-theme] [class*='greeting-cc04e9'] *{
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: currentColor !important;
  color: #FFF3D0 !important;
  text-shadow: 0 2px 14px rgba(0,0,0,0.92), 0 0 30px rgba(221,167,0,0.20) !important;
}
/* ================= 17. 顶部品牌栏（注入 DOM，见 serve.mjs TOPBAR） ================= */
#dnf-topbar{
  position:fixed; inset:0 0 auto 0; height:64px; z-index:1200;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 20px 0 18px;
  background:linear-gradient(180deg, rgba(14,11,9,.99) 0%, rgba(9,8,6,.97) 70%, rgba(8,7,6,.94) 100%);
  border-bottom:1px solid rgba(221,167,0,.34);
  box-shadow:0 2px 16px rgba(0,0,0,.72), inset 0 -1px 0 rgba(255,192,66,.10);
  font-family:var(--dnf-sans);
}
#dnf-topbar::after{
  content:""; position:absolute; left:0; right:0; bottom:-1px; height:1px;
  background:linear-gradient(90deg, transparent, rgba(255,192,66,.55) 18%, rgba(221,167,0,.28) 50%, rgba(255,192,66,.55) 82%, transparent);
}
.dnf-brand{ display:flex; align-items:center; gap:12px; }
.dnf-brand-mark{
  width:42px; height:42px; display:grid; place-items:center;
  font:900 15px/1 var(--dnf-sans); letter-spacing:.02em; color:#2a1206;
  background:linear-gradient(160deg,#FFC042 0%,#DDA700 55%,#a8790a 100%);
  border:1px solid rgba(255,224,150,.55); border-radius:3px;
  box-shadow:0 0 14px rgba(221,167,0,.35), inset 0 1px 0 rgba(255,240,200,.55);
  text-shadow:0 1px 0 rgba(255,255,255,.28);
}
.dnf-brand-text{ display:flex; flex-direction:column; gap:3px; }
.dnf-brand-text b{
  font:900 17px/1 var(--dnf-sans); letter-spacing:.04em;
  background:linear-gradient(180deg,#FFF6DC 0%,#FFEECC 42%,#E2BE6E 100%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.dnf-brand-text i{
  font:400 11px/1 var(--dnf-sans); font-style:normal;
  color:rgba(208,200,179,.72); letter-spacing:.12em;
}
.dnf-topbar-right{ display:flex; align-items:center; gap:14px; }
.dnf-online{
  display:inline-flex; align-items:center; gap:7px;
  padding:6px 14px; font:500 12px/1 var(--dnf-sans); color:#FFEECC;
  background:linear-gradient(180deg, rgba(255,232,180,.10), rgba(255,232,180,.03));
  border:1px solid rgba(221,167,0,.34); border-radius:3px;
}
.dnf-online i{
  width:7px; height:7px; border-radius:50%; background:#5DCA77;
  box-shadow:0 0 8px rgba(93,202,119,.9); animation:dnfPulse 2.4s ease-in-out infinite;
}
@keyframes dnfPulse{ 0%,100%{opacity:1} 50%{opacity:.35} }

/* 窗口整体下移 64px，给品牌栏让位 */
body[data-ds-dark-theme] .frame-_9fdf5{
  top:64px !important;
  height:calc(100dvh - 64px) !important;
}
/* 侧栏顶部的标题由品牌栏代替，隐藏避免重复 */
body[data-ds-dark-theme] [class*='sider'][class*='-ac14ac'] [class*='top-ac14ac']{
  display:none !important;
}

/* ================= 18. 消息头像 + 气泡造型（对齐腾讯客服聊天结构） ================= */
body[data-ds-dark-theme] [class*='message-e1faee']{
  position:relative;
}
/* AI 回复整行：左侧留出头像位 */
body[data-ds-dark-theme] [class*='message-e1faee']:has([class*='tool']) {}
/* ── 18. 侧栏快捷导航 + 欢迎页快捷问题卡 + 底部信息条 ── */
#dnf-sidenav{
  position:fixed;left:0;top:206px;width:236px;z-index:1100;
  padding:0 14px;pointer-events:none;
}
#dnf-sidenav .dnf-sn-title{
  font-size:11px;letter-spacing:.18em;color:rgb(221,167,0);
  padding:0 6px 8px;border-bottom:1px solid rgba(221,167,0,.16);
  margin-bottom:8px;
}
#dnf-sidenav a{
  display:flex;align-items:center;gap:9px;
  padding:9px 10px;margin-bottom:2px;
  font-size:13px;color:rgb(208,200,179);
  border-radius:3px;border-left:2px solid transparent;
  transition:background .18s,color .18s,border-color .18s;
  pointer-events:auto;cursor:pointer;user-select:none;
}
#dnf-sidenav a:hover{
  color:rgb(255,238,204);
  background:linear-gradient(90deg,rgba(221,167,0,.14),rgba(221,167,0,0));
  border-left-color:rgb(255,192,66);
}
#dnf-sidenav a i{
  width:5px;height:5px;border-radius:50%;
  background:rgb(221,167,0);opacity:.62;flex:none;
}
#dnf-faq{
  position:fixed;left:calc(50% + 112px);transform:translateX(-50%);
  bottom:298px;width:min(680px,68vw);z-index:1100;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
  pointer-events:none;
}
#dnf-faq .dnf-faq-item{
  pointer-events:auto;display:flex;align-items:flex-start;gap:10px;
  padding:12px 14px;
  background:linear-gradient(160deg,rgba(28,24,21,.86),rgba(16,14,12,.93));
  border:1px solid rgba(221,167,0,.18);
  border-left:2px solid rgba(221,167,0,.55);
  border-radius:3px;cursor:pointer;
  transition:border-color .18s,box-shadow .18s,background .18s;
}
#dnf-faq .dnf-faq-item:hover{
  border-color:rgba(255,192,66,.5);border-left-color:rgb(255,192,66);
  background:linear-gradient(160deg,rgba(40,32,24,.9),rgba(20,16,12,.94));
  box-shadow:0 6px 20px rgba(0,0,0,.5),0 0 14px rgba(221,167,0,.12);
}
#dnf-faq .dnf-faq-item em{
  font-style:normal;font-size:15px;line-height:1;
  color:rgb(221,167,0);flex:none;margin-top:2px;
}
#dnf-faq .dnf-faq-item b{
  display:block;font-size:13.5px;font-weight:700;
  color:rgb(255,238,204);margin-bottom:3px;
}
#dnf-faq .dnf-faq-item span{
  display:block;font-size:11.5px;color:rgb(146,139,129);line-height:1.5;
}
#dnf-footer{
  position:fixed;left:0;right:0;bottom:0;height:34px;z-index:1100;
  display:flex;align-items:center;justify-content:center;gap:20px;
  font-size:11px;color:rgb(87,85,82);
  background:linear-gradient(180deg,rgba(8,7,6,0),rgba(8,7,6,.94));
  border-top:1px solid rgba(221,167,0,.10);
  pointer-events:none;
}
#dnf-footer b{color:rgb(146,139,129);font-weight:600;}
#dnf-footer span{color:rgb(87,85,82);}

/* ============ 19. TOP BANNER + SINGLE CONVERSATION ============ */
/* 客服只要一个对话：整条左侧多会话栏隐藏 */
[class*="sider-"] {
  display: none !important;
}

#dnf-banner {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  height: 186px;
  z-index: 1150;
  display: flex;
  align-items: flex-end;
  padding: 0 32px 20px;
  background-image: url('dnf-header.png');
  background-size: cover;
  background-position: center 36%;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(221, 167, 0, 0.38);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.66);
}

#dnf-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(8, 7, 6, 0.34) 0%,
    rgba(8, 7, 6, 0.10) 42%,
    rgba(8, 7, 6, 0.78) 86%,
    rgba(8, 7, 6, 0.96) 100%
  );
}

.dnf-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dnf-banner-inner b {
  font-size: 21px;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #fff6dc 0%, #FFEECC 52%, #e2be6e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.dnf-banner-inner i {
  font-style: normal;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.16em;
  color: rgba(208, 200, 179, 0.86);
}

/* 内容区下移到横幅之下 */
body[data-ds-dark-theme] .frame-_9fdf5 {
  top: 250px !important;
  height: calc(100dvh - 250px) !important;
}
/* ==== 段20：横幅左侧柔化渐变 —— 背景原画左缘是纯黑，加一层横向过渡避免"半截图" ==== */
#dnf-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(90deg,
    rgba(8,7,6,0.97) 0%,
    rgba(8,7,6,0.92) 14%,
    rgba(8,7,6,0.62) 30%,
    rgba(8,7,6,0.24) 46%,
    rgba(8,7,6,0.04) 62%,
    rgba(8,7,6,0) 72%);
}
#dnf-banner .dnf-banner-inner { z-index: 2; }
/* ══════════ 段 21：仿腾讯 PC 版客服专区（整屏原画 + 居中欢迎 + 巨输入框 + 图标网格） ══════════ */

/* 1) 去掉旧横幅 */
#dnf-banner { display: none !important; }

/* 2) header 收窄成 52px 纯黑（对齐官方顶部条） */
#dnf-topbar {
  height: 52px !important;
  padding: 0 24px !important;
  background: rgba(0, 0, 0, 0.92) !important;
  border-bottom: 1px solid rgba(221, 167, 0, 0.16) !important;
  box-shadow: none !important;
}
.dnf-brand-mark { width: 34px !important; height: 34px !important; font-size: 12px !important; }
.dnf-brand-text b { font-size: 15px !important; line-height: 20px !important; }
.dnf-brand-text i { font-size: 10px !important; line-height: 15px !important; }

/* 3) 主内容区整屏铺原画 */
body[data-ds-dark-theme] .frame-_9fdf5 {
  top: 52px !important;
  height: calc(100dvh - 52px) !important;
  background-color: #0a0906 !important;
  background-image: url('dnf-bg.png') !important;
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
}

/* 4) 欢迎区整体上移，给底部图标网格让位 */
[class*="welcome-"] { padding-bottom: 300px !important; }

/* 5) 金色细分隔线 */
#dnf-grid-sep {
  position: fixed;
  left: 50%;
  bottom: 272px;
  transform: translateX(-50%);
  width: min(1080px, 84vw);
  height: 1px;
  z-index: 1100;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(221,167,0,0) 0%, rgba(221,167,0,0.32) 12%, rgba(221,167,0,0.32) 88%, rgba(221,167,0,0) 100%);
}

/* 6) 图标网格：7 列 × 2 行 */
#dnf-grid {
  position: fixed;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  z-index: 1100;
  display: grid;
  grid-template-columns: repeat(7, 132px);
  gap: 12px;
  justify-content: center;
}
.dnf-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 6px 9px;
  color: rgba(226, 220, 208, 0.78);
  font-size: 11.5px;
  line-height: 16px;
  text-align: center;
  background: rgba(8, 7, 6, 0.44);
  border: 1px solid rgba(196, 166, 106, 0.14);
  border-radius: 4px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.dnf-grid-item:hover {
  color: #FFF6DC;
  background: rgba(30, 24, 14, 0.76);
  border-color: rgba(221, 167, 0, 0.58);
  transform: translateY(-2px);
}
.dnf-grid-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 17px;
  line-height: 1;
  color: rgba(221, 167, 0, 0.92);
  background: radial-gradient(circle at 50% 40%, rgba(221, 167, 0, 0.18), rgba(8, 7, 6, 0.24) 72%);
  border: 1px solid rgba(196, 166, 106, 0.30);
  border-radius: 50%;
}

/* 7) 底部信息条隐藏（官方布局到图标网格为止） */
#dnf-footer { display: none !important; }
/* ===== 22. 输入框拉高成官方大框 ===== */
[class*="textareaWrapper-"] {
  min-height: 132px !important;
}
[class*="textareaWrapper-"] [class*="mirror-"] {
  min-height: 132px !important;
}
[class*="textareaWrapper-"] [class*="textarea-"] {
  min-height: 132px !important;
}

/* ── 段 23：网格图标居中 + 发送按钮对齐官方（蓝紫渐变圆角方块） ── */
.dnf-grid-ico { display: flex; align-items: center; justify-content: center; }
[class*="sendButton-"] {
  width: 36px !important;
  height: 36px !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #4B7BFF 0%, #6E9BFF 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 10px rgba(75,123,255,0.45) !important;
}
[class*="sendButton-"]:not([disabled]):hover {
  background: linear-gradient(135deg, #3E6DF5 0%, #5F8DFF 100%) !important;
  box-shadow: 0 4px 16px rgba(75,123,255,0.62) !important;
}

/* ===== 段 24：底部图标网格只在欢迎页显示 =====
   网格是 position:fixed; bottom:42px，进入对话后 ChatInput 也吸底，两者会压在一起。
   用 :has() 检测欢迎页容器（.welcome-xxx），不在欢迎页就整块隐藏。 */
body:not(:has([class*="welcome-"])) #dnf-grid,
body:not(:has([class*="welcome-"])) #dnf-grid-sep { display: none !important; }

/* ===== 段 25：网格项改为 <a> 后的链接样式 ===== */
a.dnf-grid-item,
a.dnf-grid-item:visited {
  color: rgba(226, 220, 208, 0.78) !important;
  text-decoration: none !important;
}
a.dnf-grid-item:hover,
a.dnf-grid-item:focus-visible {
  color: #FFF6DC !important;
  text-decoration: none !important;
}
a.dnf-grid-item:focus-visible {
  outline: 1px solid rgba(221, 167, 0, 0.62) !important;
  outline-offset: 2px !important;
}
/* ===== 段 26：撤掉深度思考 / 智能搜索两个开关按钮 =====
   按钮从界面上撤掉（夜夜 2026-11-17「取消深度思考和智能搜索按钮，默认开启」）。
   thinking / search 改默认常开：
   - 默认值：settings.ts L96-97 改成 read(...) !== 'false'
   - 每次访问强制回 true：serve.mjs 的 BOOTSTRAP 里 localStorage.setItem(...) */
[class*="toggles-"] { display: none !important; }

/* ===== 段 27：手机端适配（夜夜 2026-11-17「手机版ui有问题」）=====
   病因：段 4 的 [class*="welcome-"]{padding-bottom:300px!important} 是给桌面
   底部固定图标网格让位的，手机上照样生效 → 可用高度凭空少 300px；而移动端
   .welcome 又是 justify-content:flex-end，一挤压就从顶部把 hero 图标和标题顶掉。
   手机上 #dnf-grid 是页面里的独立 3 列块，不需要这块留白。 */
@media (max-width: 767px) {
  /* 1) 撤掉桌面那 300px 底部留白 */
  [class*="welcome-"] {
    padding-top: 40px !important;
    /* 注意：这里加多少 padding-bottom 都没用。.welcome 是 flex:1 的固定高度盒子，
       padding 只缩小内容盒，内容溢出照画（overflow: visible），不会滚动、也不会被顶上去。
       真正的让位在下面第 6 条：把底部网格压成一行、贴到离底 24px。 */
    padding-bottom: 10px !important;
  }

  /* 2) 顶部对齐：内容再高也只往下撑，绝不把 hero 顶出屏幕（居中会在矮屏上切掉上半截） */
  [class*="welcome-"] {
    justify-content: flex-start !important;
  }

  /* 3) hero 收紧。移动端原本还有 margin-top:auto，会把标题顶到底部，一起撤掉 */
  [class*="heroIcon-"] {
    width: 44px !important;
    height: 44px !important;
    margin-bottom: 8px !important;
  }

  [class*="heroTitle-"] {
    margin-top: 0 !important;
    font-size: 20px !important;
    line-height: 27px !important;
  }

  [class*="heroSub-"] {
    margin-bottom: 12px !important;
    font-size: 12px !important;
    line-height: 18px !important;
  }

  /* 4) 输入框别占太高，两行高度就够 */
  [class*="textareaWrapper-"] {
    min-height: 96px !important;
  }

  [class*="mirror-"] {
    max-height: 180px !important;
  }

  /* 5) 快捷问题两列排，比一列省一半高度 */
  [class*="quickRow-"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 12px !important;
  }

  [class*="quickChip-"] {
    height: 42px !important;
    padding: 0 10px !important;
    font-size: 12.5px !important;
  }

  /* 6) 底部图标网格：手机只留前 6 个，压成一行（夜夜 2026-11-17「保留六个吧」）。
        排两行要 150px，矮屏上会顶到快捷问题、字叠字（真机截图踩过），
        所以改成 1 行 6 格、约 60px 高、离底 24px；桌面端仍是 7×2 全部 14 个。 */
  #dnf-grid {
    left: 10px !important;
    right: 10px !important;
    transform: none !important;
    width: auto !important;
    bottom: 24px !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  #dnf-grid .dnf-grid-item:nth-child(n + 7) {
    display: none !important;
  }

  #dnf-grid .dnf-grid-item {
    gap: 4px !important;
    padding: 7px 2px 6px !important;
    font-size: 10px !important;
    line-height: 14px !important;
  }

  #dnf-grid .dnf-grid-ico {
    width: 28px !important;
    height: 28px !important;
    font-size: 14px !important;
  }

  /* 金色分隔线在手机上没意义（网格已经贴底，也没有内容需要分隔） */
  #dnf-grid-sep {
    display: none !important;
  }
}

/* ===== 段 28：小窗口下底部图标不要压输入框 =====
   网格是 position: fixed; bottom: 42px，两行约 150px 高；窗口不够高时会直接盖住输入框
   和四个快捷问题（2026-11-19 上线后在 1060×632 / 900×600 都能复现叠字）。
   这里按窗口高度逐级缩小网格，并把欢迎区底部留白一起收。 */
@media (min-width: 768px) and (max-height: 860px) {
  [class*="welcome-"] { padding-bottom: 230px !important; }
  #dnf-grid { bottom: 20px !important; grid-template-columns: repeat(7, 112px) !important; gap: 10px !important; }
  .dnf-grid-item { padding: 8px 4px 7px !important; font-size: 10.5px !important; line-height: 14px !important; }
  .dnf-grid-ico { width: 32px !important; height: 32px !important; font-size: 14px !important; }
  #dnf-grid-sep { bottom: 196px !important; }
}
@media (min-width: 768px) and (max-height: 720px) {
  [class*="welcome-"] { padding-bottom: 186px !important; }
  [class*="heroIcon-"] { display: none !important; }
  [class*="heroSub-"] { display: none !important; }
  [class*="heroTitle-"] { font-size: 26px !important; line-height: 34px !important; margin-bottom: 6px !important; }
  [class*="textareaWrapper-"],
  [class*="textareaWrapper-"] [class*="mirror-"],
  [class*="textareaWrapper-"] [class*="textarea-"] { min-height: 104px !important; }
  #dnf-grid { bottom: 14px !important; grid-template-columns: repeat(7, 104px) !important; gap: 8px !important; }
  .dnf-grid-item { padding: 6px 3px 5px !important; font-size: 10px !important; line-height: 13px !important; }
  .dnf-grid-ico { width: 26px !important; height: 26px !important; font-size: 12px !important; }
  #dnf-grid-sep { bottom: 154px !important; }
}

/* ===== 段 29：收起侧栏按钮别再露出来 =====
   单对话模式下左侧没有会话列表，但 header 里还留着一个「打开边栏」按钮
   （2026-11-19 上线实测左上角一个小方块）。按 aria-label 隐藏最稳，类名是构建哈希。 */
button[aria-label="打开边栏"] { display: none !important; }
/* ===== 段 30：收起后的「展开侧栏 / 新对话」按钮组也去掉 =====
   单对话模式下 CollapsedSider（左上角两个金按钮）没有意义，网页上不该出现
   （2026-11-19 上线截图里左上角还剩一个小方块）。它的容器类名是构建哈希，
   只能按前缀匹配；SessionView 的 withCollapsedSider 不含 "collapsed-"，不会误伤。 */
div[class*="collapsed-"] { display: none !important; }

/* ===== 段 31：极矮窗口（<700px 高）直接不显示底部图标网格 =====
   段 28 缩到 104px 列宽仍会在 1060×632 这种窗口里压住快捷问题（实测叠字），
   窗口这么矮时优先保证能正常提问，图标让位。 */
@media (min-width: 768px) and (max-height: 700px) {
  #dnf-grid, #dnf-grid-sep { display: none !important; }
  [class*="welcome-"] { padding-bottom: 40px !important; }
}

/* ===== 段 32：底部图标文字统一金色 =====
   原来常态是亮金 #FFC042，但鼠标悬停（手机上点一下也会卡住 hover）那一格会变成近白 #FFF6DC，
   看起来就是「有的白有的黄」（夜夜 2026-11-19「下面的字怎么有白有黄」→「全改黄」）。
   统一成金色系：常态亮金，悬停/聚焦只亮一档，绝不再出现白色。 */
#dnf-grid .dnf-grid-item,
#dnf-grid .dnf-grid-item:link,
#dnf-grid .dnf-grid-item:visited,
#dnf-grid .dnf-grid-label {
  color: #FFC042 !important;
}
#dnf-grid .dnf-grid-item:hover,
#dnf-grid .dnf-grid-item:focus-visible,
#dnf-grid .dnf-grid-item:hover .dnf-grid-label,
#dnf-grid .dnf-grid-item:focus-visible .dnf-grid-label {
  color: #FFDE8A !important;
}

/* ===== 段 33：手机上输入框有焦点（弹出输入法）时收起底部图标 =====
   手机键盘弹起后可视区变矮，position:fixed 的 #dnf-grid 会顶到输入框上，
   压在输入框和快捷问题上（2026-11-19 夜夜手机实测「输入法会把图标顶上去」）。
   手机上只要输入框有焦点就藏起来，收起键盘自动回来；桌面端不受影响，
   免得电脑上打字时图标忽隐忽现。 */
@media (max-width: 767px) {
  body:focus-within #dnf-grid,
  body:focus-within #dnf-grid-sep { display: none !important; }
}
