* { box-sizing: border-box; }

/* 浏览器自动填充默认给输入框染成浅蓝色，这里统一改成应用的浅灰底。 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #18181b;
  caret-color: #18181b;
  -webkit-box-shadow: 0 0 0 1000px #fafafa inset;
  transition: background-color 9999s ease-out 0s;
}

html.dark input:-webkit-autofill,
html.dark input:-webkit-autofill:hover,
html.dark input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fafafa;
  caret-color: #fafafa;
  -webkit-box-shadow: 0 0 0 1000px #18181b inset;
}

body.help-page {
  min-height: 100vh;
  margin: 0;
  background: #fafafa;
  color: #09090b;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, "Noto Sans SC", sans-serif;
}

/* 顶部导航栏 */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(250 250 250 / 86%);
  border-bottom: 1px solid rgb(24 24 27 / 6%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.app-nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1072px;
  height: 56px;
  margin-inline: auto;
  padding: 0 12px;
}

/* 返回键与账号页、设置页同一规格：32px 方块、8px 圆角、16px 细箭头、
   灰色默认、悬停加深并浮出浅底（对应 Tailwind 页的 w-8 h-8 / zinc-500 配色）。 */
.nav-back {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: -6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #71717a;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.nav-back:hover { background: #f4f4f5; color: #18181b; }
.nav-back:focus-visible { outline: none; box-shadow: 0 0 0 2px #a1a1aa; }
.nav-back svg { width: 16px; height: 16px; }

.nav-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.nav-spacer { width: 32px; }

.app-main { max-width: 1040px; margin-inline: auto; padding: 20px 16px 56px; }

/* 搜索 */
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  border-radius: 13px;
  background: #f4f4f5;
  transition: box-shadow .15s ease;
}
.search-box:focus-within { box-shadow: 0 0 0 3px rgb(24 24 27 / 7%); }
.search-box svg { width: 18px; height: 18px; flex: 0 0 auto; color: #8f8f98; }
.search-box input {
  flex: 1;
  height: 100%;
  border: 0;
  background: transparent;
  color: #18181b;
  font: inherit;
  font-size: 15px;
  outline: none;
}
.search-box input::placeholder { color: #8f8f98; }
.search-box input::-webkit-search-cancel-button { display: none; }

#search-clear {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8f8f98;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
#search-clear:hover { background: #e4e4e7; color: #18181b; }

/* 分类 + 列表布局：移动端上下排列，桌面端左右分栏 */
.help-layout { margin-top: 16px; }

.cat-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }

.cat-nav button {
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #52525b;
  font: inherit;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.cat-nav button:hover { background: #f4f4f5; }
.cat-nav button.active { background: #f4f4f5; color: #18181b; font-weight: 600; }

.q-section { margin-top: 8px; }

/* 意见反馈入口：侧栏底部的常驻卡片，替代原右下角悬浮按钮 */
.side-col { min-width: 0; }
.feedback-aside {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgb(228 228 231 / 70%);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(24 24 27 / 3%);
}
.feedback-aside-title { margin: 0; color: #18181b; font-size: 14px; font-weight: 600; }
.feedback-aside-text { margin: 6px 0 12px; color: #71717a; font-size: 12.5px; line-height: 1.6; }
.feedback-aside-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: #18181b;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.feedback-aside-btn:hover { background: #27272a; }
.feedback-aside-btn svg { width: 15px; height: 15px; }

.app-card {
  overflow: hidden;
  border: 1px solid rgb(228 228 231 / 60%);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(24 24 27 / 3%);
}
/* 反馈卡片里的类型下拉可能向上弹出，需放行溢出；表单自带内边距，圆角不受影响。 */
#view-feedback .app-card { overflow: visible; }

/* 问题行 */
.q-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border: 0;
  background: transparent;
  color: #18181b;
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.q-row:hover { background: #fafafa; }
.q-row + .q-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 0;
  height: 1px;
  background: #f0f0f1;
}
.q-text { flex: 1; line-height: 1.5; }
.q-tag {
  display: block;
  margin-bottom: 3px;
  color: #8f8f98;
  font-size: 12px;
}
.q-row > svg { width: 16px; height: 16px; flex: 0 0 auto; color: #c8c8cd; }

.q-empty { margin-top: 36px; text-align: center; }
.q-empty p { margin: 0 0 10px; color: #71717a; font-size: 13.5px; }
.q-empty button {
  border: 0;
  background: transparent;
  color: #18181b;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.q-empty button:hover { color: #52525b; }

/* 详情与反馈视图 */
.view-article { max-width: 760px; margin-inline: auto; }

.back-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #71717a;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.back-link:hover { color: #18181b; }

.detail-title {
  margin: 14px 0 18px;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.35;
}

.detail-body p { margin: 0 0 12px; color: #3f3f46; font-size: 15px; line-height: 1.9; }
.detail-body ul,
.detail-body ol { margin: 0 0 12px; padding-left: 22px; color: #3f3f46; font-size: 15px; line-height: 1.9; }
.detail-body li { margin: 6px 0; }
.detail-body strong { color: #18181b; font-weight: 600; }

/* 意见反馈表单 */
#report-form { padding: 16px; }
.field { display: block; margin-top: 12px; }
.field:first-child { margin-top: 0; }
.field-label { display: block; margin-bottom: 6px; color: #52525b; font-size: 13px; font-weight: 500; }
.field-label em { margin-left: 4px; color: #a1a1aa; font-size: 12px; font-style: normal; font-weight: 400; }

.field select,
.field input,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  background: #f4f4f5;
  color: #18181b;
  font: inherit;
  font-size: 14.5px;
  line-height: 1.55;
  transition: box-shadow .15s ease;
}
.field select:focus,
.field input:focus,
.field textarea:focus { outline: none; box-shadow: 0 0 0 3px rgb(24 24 27 / 7%); }
.field ::placeholder { color: #a1a1aa; }
.field textarea { resize: vertical; min-height: 96px; }
.field[aria-invalid="true"] select,
.field[aria-invalid="true"] input,
.field[aria-invalid="true"] textarea { box-shadow: 0 0 0 2px rgb(220 38 38 / 55%); }

/* 问题类型自定义下拉：原生 select 的弹层由系统渲染、无法统一风格，
   由 help.js 在隐藏的 select 上叠一层同风格触发器与菜单，选中值仍写回 select。 */
.type-select { position: relative; }
.type-select-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  background: #f4f4f5;
  color: #18181b;
  font: inherit;
  font-size: 14.5px;
  text-align: left;
  cursor: pointer;
  transition: box-shadow .15s ease;
}
.type-select-trigger:hover { background: #ebebed; }
.type-select-trigger:focus-visible,
.type-select:focus-within .type-select-trigger { outline: none; box-shadow: 0 0 0 3px rgb(24 24 27 / 7%); }
.type-select-trigger .type-select-value { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.type-select-trigger.is-placeholder .type-select-value { color: #a1a1aa; }
.type-select-trigger > svg { width: 16px; height: 16px; flex: 0 0 auto; color: #8f8f98; transition: transform .18s ease; }
.type-select.is-open .type-select-trigger > svg { transform: rotate(180deg); }
.field[aria-invalid="true"] .type-select-trigger { box-shadow: 0 0 0 2px rgb(220 38 38 / 55%); }

.type-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  gap: 2px;
  max-height: 336px; /* 恰好放下全部选项，常规窗口不出现内滚动 */
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgb(228 228 231 / 80%);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgb(24 24 27 / 10%);
  scrollbar-width: thin;
  scrollbar-color: #d4d4d8 transparent;
  animation: type-menu-in 140ms cubic-bezier(.22, 1, .36, 1) both;
}
/* 元素自身声明了 display: grid，会盖过浏览器对 [hidden] 的默认 display: none，
   必须显式补一条，否则 hidden = true 时菜单在视觉上永远收不起来。 */
.type-select-menu[hidden] { display: none; }
@keyframes type-menu-in { from { opacity: 0; transform: translateY(-4px); } }
/* 上拉弹出：触发器下方空间不足且上方更宽裕时由 help.js 切换 is-drop-up */
.type-select.is-drop-up .type-select-menu {
  top: auto;
  bottom: calc(100% + 6px);
  animation-name: type-menu-up-in;
}
@keyframes type-menu-up-in { from { opacity: 0; transform: translateY(4px); } }
/* 窗口过矮菜单被压低时才会出现的滚动条：细条样式，替代系统原生粗滚动条 */
.type-select-menu::-webkit-scrollbar { width: 6px; }
.type-select-menu::-webkit-scrollbar-thumb { border-radius: 999px; background: #d4d4d8; }
.type-select-menu::-webkit-scrollbar-track { background: transparent; }
.type-select-menu button {
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #3f3f46;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.type-select-menu button:hover,
.type-select-menu button.is-active { background: #f4f4f5; color: #18181b; }
.type-select-menu button[aria-selected="true"] { background: #f4f4f5; color: #18181b; font-weight: 600; }

/* 诊断信息：默认收起为一行平实说明，点开看具体值 */
.diagnostics {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f4f4f5;
}
.diag-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #52525b;
  font-size: 12.5px;
  line-height: 1.6;
  list-style: none;
}
.diag-summary::-webkit-details-marker { display: none; }
.diag-summary span { flex: 1; }
.diag-summary svg { width: 14px; height: 14px; flex: 0 0 auto; color: #8f8f98; transition: transform .18s ease; }
.diagnostics[open] .diag-summary svg { transform: rotate(180deg); }
#diag-list { display: grid; grid-template-columns: max-content 1fr; gap: 5px 18px; margin: 12px 0 0; }
#diag-list > div { display: contents; }
#diag-list dt { color: #8f8f98; font-size: 12.5px; }
#diag-list dd { margin: 0; color: #52525b; font-size: 12.5px; line-height: 1.6; overflow-wrap: anywhere; }

.report-error { margin: 12px 0 0; color: #dc2626; font-size: 12.5px; }

.report-actions { margin-top: 16px; }
.btn-primary {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: #18181b;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary:hover { background: #27272a; }

/* 提示气泡 */
#help-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  max-width: calc(100vw - 48px);
  padding: 10px 18px;
  border-radius: 999px;
  background: #18181b;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 28px rgb(24 24 27 / 22%);
}

/* 桌面端 */
@media (min-width: 900px) {
  .app-main { padding: 24px 32px 56px; }
  .help-layout {
    display: grid;
    grid-template-columns: 216px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
    margin-top: 20px;
    position: relative;
  }
  /* 中缝分隔线：类似设置页侧栏与内容之间的边界，随列表整列延伸。 */
  .help-layout::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 234px; /* 216px 导航列 + 36px 间距的中点 */
    width: 1px;
    background: #e4e4e7;
  }
  .cat-nav {
    flex-direction: column;
    gap: 4px;
    overflow: visible;
  }
  /* 侧栏（分类 + 反馈入口）整列粘性吸顶，滚动时保持可见 */
  .side-col {
    position: sticky;
    top: 80px;
    align-self: start;
  }
  .cat-nav button {
    padding: 10px 14px;
    border-radius: 12px;
    text-align: left;
  }
  .q-section { margin-top: 0; }
  #help-toast { bottom: 36px; }
}

/* 移动端 */
@media (max-width: 760px) {
  .app-main { padding: 14px 12px 48px; }
  .search-box { height: 44px; }
  .search-box input { font-size: 14px; }
  .q-row { padding: 14px 14px; font-size: 14.5px; }
  .detail-title { font-size: 22px; }
  .detail-body p,
  .detail-body ul,
  .detail-body ol { font-size: 14px; }
  #report-form { padding: 14px; }
  .field textarea { min-height: 88px; }
}

/* 深色主题 */
html.dark { color-scheme: dark; }
html.dark body { background: #09090b; color: #fafafa; }
html.dark body ::selection { background: #3f3f46; color: #fafafa; }
html.dark .app-nav { background: rgb(9 9 11 / 82%); border-bottom-color: rgb(250 250 250 / 8%); }
html.dark .nav-back { color: #a1a1aa; }
html.dark .nav-back:hover { background: #1c1c1f; color: #e4e4e7; }
html.dark .nav-back:focus-visible { box-shadow: 0 0 0 2px #52525b; }
html.dark .nav-title { color: #fafafa; }
html.dark .search-box { background: #18181b; }
html.dark .search-box:focus-within { box-shadow: 0 0 0 3px rgb(250 250 250 / 8%); }
html.dark .search-box input { color: #fafafa; }
html.dark .search-box input::placeholder { color: #5b5b63; }
html.dark #search-clear { color: #8b8b93; }
html.dark #search-clear:hover { background: #27272a; color: #e4e4e7; }
html.dark .cat-nav button { color: #a1a1aa; }
html.dark .cat-nav button:hover { background: #18181b; color: #e4e4e7; }
html.dark .cat-nav button.active { background: #27272a; color: #fafafa; }
html.dark .help-layout::before { background: #27272a; }
html.dark .app-card { border-color: rgb(39 39 42 / 60%); background: #111113; box-shadow: none; }
html.dark .q-row { color: #e4e4e7; }
html.dark .q-row:hover { background: #161618; }
html.dark .q-row + .q-row::before { background: #1f1f23; }
html.dark .q-tag { color: #71717a; }
html.dark .q-row > svg { color: #52525b; }
html.dark .q-empty p { color: #8b8b93; }
html.dark .q-empty button { color: #e4e4e7; }
html.dark .q-empty button:hover { color: #a1a1aa; }
html.dark .back-link { color: #8b8b93; }
html.dark .back-link:hover { color: #e4e4e7; }
html.dark .detail-title { color: #fafafa; }
html.dark .detail-body p,
html.dark .detail-body ul,
html.dark .detail-body ol { color: #a1a1aa; }
html.dark .detail-body strong { color: #e4e4e7; }
html.dark .field-label { color: #a1a1aa; }
html.dark .field select,
html.dark .field input,
html.dark .field textarea { background: #18181b; color: #fafafa; }
html.dark .field select:focus,
html.dark .field input:focus,
html.dark .field textarea:focus { box-shadow: 0 0 0 3px rgb(250 250 250 / 8%); }
html.dark .field ::placeholder { color: #5b5b63; }
html.dark .field[aria-invalid="true"] select,
html.dark .field[aria-invalid="true"] input,
html.dark .field[aria-invalid="true"] textarea { box-shadow: 0 0 0 2px rgb(248 113 113 / 60%); }
html.dark .type-select-trigger { background: #18181b; color: #fafafa; }
html.dark .type-select-trigger:hover { background: #1f1f23; }
html.dark .type-select-trigger:focus-visible,
html.dark .type-select:focus-within .type-select-trigger { box-shadow: 0 0 0 3px rgb(250 250 250 / 8%); }
html.dark .type-select-trigger.is-placeholder .type-select-value { color: #5b5b63; }
html.dark .type-select-trigger > svg { color: #8b8b93; }
html.dark .field[aria-invalid="true"] .type-select-trigger { box-shadow: 0 0 0 2px rgb(248 113 113 / 60%); }
html.dark .type-select-menu { border-color: rgb(39 39 42 / 80%); background: #1c1c1f; box-shadow: 0 12px 32px rgb(0 0 0 / 45%); scrollbar-color: #3f3f46 transparent; }
html.dark .type-select-menu::-webkit-scrollbar-thumb { background: #3f3f46; }
html.dark .type-select-menu button { color: #d4d4d8; }
html.dark .type-select-menu button:hover,
html.dark .type-select-menu button.is-active { background: #27272a; color: #fafafa; }
html.dark .type-select-menu button[aria-selected="true"] { background: #27272a; color: #fafafa; }
html.dark .diagnostics { background: #18181b; }
html.dark .diag-summary { color: #a1a1aa; }
html.dark .diag-summary svg { color: #71717a; }
html.dark #diag-list dt { color: #71717a; }
html.dark #diag-list dd { color: #a1a1aa; }
html.dark .report-error { color: #f87171; }
html.dark .btn-primary { background: #fafafa; color: #18181b; }
html.dark .btn-primary:hover { background: #d4d4d8; }
html.dark .feedback-aside { border-color: rgb(39 39 42 / 60%); background: #111113; box-shadow: none; }
html.dark .feedback-aside-title { color: #fafafa; }
html.dark .feedback-aside-text { color: #8b8b93; }
html.dark .feedback-aside-btn { background: #fafafa; color: #18181b; }
html.dark .feedback-aside-btn:hover { background: #d4d4d8; }
html.dark #help-toast { background: #e4e4e7; color: #18181b; box-shadow: 0 10px 28px rgb(0 0 0 / 45%); }

/* 浅色主题与首页、登录页统一：雾蓝底色、钢蓝交互与柔和粉蓝环境光。 */
html:not(.dark) body.help-page {
  --help-ink: #172c3c;
  --help-text: #314a5b;
  --help-muted: #647785;
  --help-steel: #8395a3;
  --help-blue: #6290b1;
  --help-soft: #e3e9f2;
  --help-line: #d5dfe9;
  --help-canvas: #f4f6f9;
  background:
    radial-gradient(ellipse at 8% 0%, rgb(156 195 221 / 25%), transparent 34rem),
    radial-gradient(ellipse at 94% 74%, rgb(217 196 209 / 16%), transparent 30rem),
    var(--help-canvas);
  color: var(--help-ink);
}

html:not(.dark) body.help-page .app-nav {
  background: rgb(255 255 255 / 84%);
  border-bottom-color: rgb(213 223 233 / 78%);
}
html:not(.dark) body.help-page .nav-back { color: var(--help-muted); }
html:not(.dark) body.help-page .nav-back:hover { background: var(--help-soft); color: var(--help-ink); }
html:not(.dark) body.help-page .nav-back:focus-visible { box-shadow: 0 0 0 2px rgb(98 144 177 / 55%); }
html:not(.dark) body.help-page .nav-title { color: var(--help-ink); }

html:not(.dark) body.help-page .search-box {
  border: 1px solid rgb(213 223 233 / 76%);
  background: rgb(255 255 255 / 82%);
}
html:not(.dark) body.help-page .search-box:focus-within { box-shadow: 0 0 0 3px rgb(98 144 177 / 14%); }
html:not(.dark) body.help-page .search-box svg,
html:not(.dark) body.help-page .search-box input::placeholder,
html:not(.dark) body.help-page #search-clear { color: var(--help-steel); }
html:not(.dark) body.help-page .search-box input { color: var(--help-ink); }
html:not(.dark) body.help-page #search-clear:hover { background: var(--help-soft); color: var(--help-ink); }

html:not(.dark) body.help-page .cat-nav button { color: var(--help-muted); }
html:not(.dark) body.help-page .cat-nav button:hover { background: rgb(227 233 242 / 68%); color: var(--help-text); }
html:not(.dark) body.help-page .cat-nav button.active {
  background: rgb(156 195 221 / 28%);
  color: var(--help-ink);
  box-shadow: inset 3px 0 0 var(--help-blue);
}
html:not(.dark) body.help-page .help-layout::before { background: var(--help-line); }

html:not(.dark) body.help-page .feedback-aside,
html:not(.dark) body.help-page .app-card {
  border-color: rgb(213 223 233 / 86%);
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 8px 22px rgb(31 55 72 / 5%);
}
html:not(.dark) body.help-page .feedback-aside-title,
html:not(.dark) body.help-page .q-row,
html:not(.dark) body.help-page .q-empty button,
html:not(.dark) body.help-page .detail-body strong { color: var(--help-ink); }
html:not(.dark) body.help-page .feedback-aside-text,
html:not(.dark) body.help-page .q-empty p,
html:not(.dark) body.help-page .back-link { color: var(--help-muted); }
html:not(.dark) body.help-page .feedback-aside-btn,
html:not(.dark) body.help-page .btn-primary {
  background: var(--help-ink);
  color: #fff;
  box-shadow: 0 7px 16px rgb(23 44 60 / 13%);
}
html:not(.dark) body.help-page .feedback-aside-btn:hover,
html:not(.dark) body.help-page .btn-primary:hover { background: #29495f; }

html:not(.dark) body.help-page .q-row:hover { background: rgb(227 233 242 / 38%); }
html:not(.dark) body.help-page .q-row + .q-row::before { background: var(--help-line); }
html:not(.dark) body.help-page .q-tag,
html:not(.dark) body.help-page .q-row > svg { color: var(--help-steel); }
html:not(.dark) body.help-page .q-empty button:hover,
html:not(.dark) body.help-page .back-link:hover { color: var(--help-blue); }
html:not(.dark) body.help-page .detail-title { color: var(--help-ink); }
html:not(.dark) body.help-page .detail-body p,
html:not(.dark) body.help-page .detail-body ul,
html:not(.dark) body.help-page .detail-body ol { color: var(--help-text); }

html:not(.dark) body.help-page .field-label,
html:not(.dark) body.help-page .diag-summary { color: var(--help-text); }
html:not(.dark) body.help-page .field-label em,
html:not(.dark) body.help-page .field ::placeholder { color: var(--help-steel); }
html:not(.dark) body.help-page .field select,
html:not(.dark) body.help-page .field input,
html:not(.dark) body.help-page .field textarea,
html:not(.dark) body.help-page .type-select-trigger {
  border: 1px solid var(--help-line);
  background: #f8fafc;
  color: var(--help-ink);
}
html:not(.dark) body.help-page .field select:focus,
html:not(.dark) body.help-page .field input:focus,
html:not(.dark) body.help-page .field textarea:focus,
html:not(.dark) body.help-page .type-select-trigger:focus-visible,
html:not(.dark) body.help-page .type-select:focus-within .type-select-trigger {
  border-color: var(--help-blue);
  box-shadow: 0 0 0 3px rgb(98 144 177 / 14%);
}
html:not(.dark) body.help-page .type-select-trigger:hover { background: var(--help-soft); }
html:not(.dark) body.help-page .type-select-trigger.is-placeholder .type-select-value,
html:not(.dark) body.help-page .type-select-trigger > svg,
html:not(.dark) body.help-page .diag-summary svg,
html:not(.dark) body.help-page #diag-list dt { color: var(--help-steel); }
html:not(.dark) body.help-page .type-select-menu {
  border-color: var(--help-line);
  background: #fff;
  box-shadow: 0 12px 32px rgb(31 55 72 / 12%);
  scrollbar-color: var(--help-line) transparent;
}
html:not(.dark) body.help-page .type-select-menu button { color: var(--help-text); }
html:not(.dark) body.help-page .type-select-menu button:hover,
html:not(.dark) body.help-page .type-select-menu button.is-active,
html:not(.dark) body.help-page .type-select-menu button[aria-selected="true"] {
  background: var(--help-soft);
  color: var(--help-ink);
}
html:not(.dark) body.help-page .diagnostics { background: rgb(227 233 242 / 64%); }
html:not(.dark) body.help-page #diag-list dd { color: var(--help-text); }
html:not(.dark) body.help-page #help-toast {
  background: var(--help-ink);
  box-shadow: 0 10px 28px rgb(31 55 72 / 18%);
}

/* 深色帮助与反馈页沿用发音反馈的深海军蓝与蓝灰层次。 */
html.dark body.help-page {
  --help-ink: #e4f0f7;
  --help-text: #c1d3df;
  --help-muted: #a6bece;
  --help-steel: #819eaf;
  --help-blue: #7cb8d8;
  --help-soft: #183448;
  --help-line: #254355;
  --help-canvas: #0d1b26;
  --help-surface: #122635;
  --help-raised: #173044;
  background:
    radial-gradient(ellipse at 8% 0%, rgb(56 101 130 / 18%), transparent 34rem),
    radial-gradient(ellipse at 94% 74%, rgb(104 147 178 / 10%), transparent 30rem),
    var(--help-canvas);
  color: var(--help-ink);
}

html.dark body.help-page .app-nav {
  background: rgb(13 27 38 / 90%);
  border-bottom-color: rgb(37 67 85 / 76%);
}
html.dark body.help-page .nav-back { color: var(--help-muted); }
html.dark body.help-page .nav-back:hover { background: var(--help-soft); color: var(--help-ink); }
html.dark body.help-page .nav-back:focus-visible { box-shadow: 0 0 0 2px rgb(124 184 216 / 60%); }
html.dark body.help-page .nav-title { color: var(--help-ink); }

html.dark body.help-page .search-box {
  border: 1px solid var(--help-line);
  background: #132b3b;
}
html.dark body.help-page .search-box:focus-within { box-shadow: 0 0 0 3px rgb(124 184 216 / 18%); }
html.dark body.help-page .search-box svg,
html.dark body.help-page .search-box input::placeholder,
html.dark body.help-page #search-clear { color: var(--help-steel); }
html.dark body.help-page .search-box input { color: var(--help-ink); }
html.dark body.help-page #search-clear:hover { background: var(--help-soft); color: var(--help-ink); }

html.dark body.help-page .cat-nav button { color: var(--help-muted); }
html.dark body.help-page .cat-nav button:hover { background: var(--help-soft); color: var(--help-text); }
html.dark body.help-page .cat-nav button.active {
  background: rgb(124 184 216 / 16%);
  color: var(--help-ink);
  box-shadow: inset 3px 0 0 var(--help-blue);
}
html.dark body.help-page .help-layout::before { background: var(--help-line); }

html.dark body.help-page .feedback-aside,
html.dark body.help-page .app-card {
  border-color: var(--help-line);
  background: var(--help-surface);
  box-shadow: 0 12px 30px rgb(0 0 0 / 16%);
}
html.dark body.help-page .feedback-aside-title,
html.dark body.help-page .q-row,
html.dark body.help-page .q-empty button,
html.dark body.help-page .detail-body strong { color: var(--help-ink); }
html.dark body.help-page .feedback-aside-text,
html.dark body.help-page .q-empty p,
html.dark body.help-page .back-link { color: var(--help-muted); }
html.dark body.help-page .feedback-aside-btn,
html.dark body.help-page .btn-primary {
  background: var(--help-blue);
  color: #0d1b26;
  box-shadow: 0 7px 18px rgb(0 0 0 / 18%);
}
html.dark body.help-page .feedback-aside-btn:hover,
html.dark body.help-page .btn-primary:hover { background: #91c6e2; }

html.dark body.help-page .q-row:hover { background: rgb(124 184 216 / 8%); }
html.dark body.help-page .q-row + .q-row::before { background: var(--help-line); }
html.dark body.help-page .q-tag,
html.dark body.help-page .q-row > svg { color: var(--help-steel); }
html.dark body.help-page .q-empty button:hover,
html.dark body.help-page .back-link:hover { color: var(--help-blue); }
html.dark body.help-page .detail-title { color: var(--help-ink); }
html.dark body.help-page .detail-body p,
html.dark body.help-page .detail-body ul,
html.dark body.help-page .detail-body ol { color: var(--help-text); }

html.dark body.help-page .field-label,
html.dark body.help-page .diag-summary { color: var(--help-text); }
html.dark body.help-page .field-label em,
html.dark body.help-page .field ::placeholder { color: var(--help-steel); }
html.dark body.help-page .field select,
html.dark body.help-page .field input,
html.dark body.help-page .field textarea,
html.dark body.help-page .type-select-trigger {
  border: 1px solid var(--help-line);
  background: #102331;
  color: var(--help-ink);
}
html.dark body.help-page .field select:focus,
html.dark body.help-page .field input:focus,
html.dark body.help-page .field textarea:focus,
html.dark body.help-page .type-select-trigger:focus-visible,
html.dark body.help-page .type-select:focus-within .type-select-trigger {
  border-color: var(--help-blue);
  box-shadow: 0 0 0 3px rgb(124 184 216 / 18%);
}
html.dark body.help-page .field[aria-invalid="true"] select,
html.dark body.help-page .field[aria-invalid="true"] input,
html.dark body.help-page .field[aria-invalid="true"] textarea,
html.dark body.help-page .field[aria-invalid="true"] .type-select-trigger {
  box-shadow: 0 0 0 2px rgb(248 113 113 / 60%);
}
html.dark body.help-page .type-select-trigger:hover { background: var(--help-raised); }
html.dark body.help-page .type-select-trigger.is-placeholder .type-select-value,
html.dark body.help-page .type-select-trigger > svg,
html.dark body.help-page .diag-summary svg,
html.dark body.help-page #diag-list dt { color: var(--help-steel); }
html.dark body.help-page .type-select-menu {
  border-color: var(--help-line);
  background: var(--help-surface);
  box-shadow: 0 12px 32px rgb(0 0 0 / 32%);
  scrollbar-color: var(--help-blue) transparent;
}
html.dark body.help-page .type-select-menu::-webkit-scrollbar-thumb { background: var(--help-blue); }
html.dark body.help-page .type-select-menu button { color: var(--help-text); }
html.dark body.help-page .type-select-menu button:hover,
html.dark body.help-page .type-select-menu button.is-active,
html.dark body.help-page .type-select-menu button[aria-selected="true"] {
  background: var(--help-soft);
  color: var(--help-ink);
}
html.dark body.help-page .diagnostics { background: var(--help-raised); }
html.dark body.help-page #diag-list dd { color: var(--help-text); }
html.dark body.help-page #help-toast {
  background: #234e68;
  color: #e4f0f7;
  box-shadow: 0 10px 28px rgb(0 0 0 / 30%);
}
html.dark body.help-page input:-webkit-autofill,
html.dark body.help-page input:-webkit-autofill:hover,
html.dark body.help-page input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--help-ink);
  caret-color: var(--help-ink);
  -webkit-box-shadow: 0 0 0 1000px #102331 inset;
}
