/* 生产版（由本地 demo 版构建，已去掉 ?look 开关）—— 构建于 2026-10-06 */
/* ============================================================================
 * 帮助中心 栏目页（**本机预览，未上线**）—— 与 qdm-help-20261006.js 配套
 *
 * 路由：/?category=help   （和「联机修复工具 / 平台修复工具 / 游戏工具」同一形式）
 * 结构参考同类站点帮助页的组织方式：顶部标题 + 搜索 + 分组筛选 → 分组问答（可折叠）→ 联系我们
 * ⚠️ 内容按**本站真实流程**写（游戏库免积分 / 补丁文章 2 积分 / 网盘弹窗取提取码 / Online-Fix 联机），
 *    文案是自己的；带【待定】的地方等准确值。
 * ========================================================================== */

/* ---------- 进入 help 时：收起框架部分 ---------- */
:root[data-qdm-help="1"] .hero-shell,
:root[data-qdm-help="1"] .content-layout,
:root[data-qdm-help="1"] .qdm-category-header,
:root[data-qdm-help="1"] .toolbar,
:root[data-qdm-help="1"] .qdm-category-empty { display: none !important; }

:root .qdm-help { display: block; }

/* ---------- 顶部：标题 + 搜索 + 筛选 ---------- */
:root .qdm-help-top {
  position: relative;
  padding: 34px 34px 30px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(120% 150% at 10% 0%, rgba(99, 102, 241, .50), transparent 58%),
    radial-gradient(90% 130% at 92% 100%, rgba(56, 189, 248, .30), transparent 62%),
    linear-gradient(116deg, #12163a 0%, #2b3480 48%, #56509f 100%);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .07);
}
:root .qdm-help-top::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 120% at 18% 6%, rgba(255, 255, 255, .10), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 62px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 62px);
}
:root .qdm-help-top > * { position: relative; }
:root .qdm-help-top > span {
  position: relative;
  display: block;
  padding-left: 14px;
  color: #c7d2fe;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .30em;
}
:root .qdm-help-top > span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 14px;
  margin-top: -7px;
  border-radius: 2px;
  background: linear-gradient(180deg, #6366f1, #e9348e);
}
:root .qdm-help-top h1 {
  margin-top: 12px;
  color: #fff;
  font-family: "QDM Sans SC 900", Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.18;
  text-shadow: 0 8px 28px rgba(0, 0, 0, .40);
}
:root .qdm-help-top p {
  margin-top: 12px;
  max-width: 660px;
  color: rgba(233, 236, 245, .78);
  font-size: 14.5px;
  line-height: 1.7;
}

/* 搜索框 */
:root .qdm-help-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  margin-top: 20px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(10, 11, 16, .38);
  backdrop-filter: blur(8px);
  max-width: 460px;
}
:root .qdm-help-search .qdm-icon { width: 17px; height: 17px; color: rgba(233, 236, 245, .6); flex: 0 0 auto; }
:root .qdm-help-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  outline: none;
}
:root .qdm-help-search input::placeholder { color: rgba(233, 236, 245, .5); }
:root .qdm-help-search > b {
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #e9348e);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}

/* 筛选胶囊 */
:root .qdm-help-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
:root .qdm-help-filters button {
  height: 30px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: rgba(233, 236, 245, .82);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
:root .qdm-help-filters button:hover { border-color: rgba(255, 255, 255, .42); color: #fff; }
:root .qdm-help-filters button[data-on="1"] {
  border-color: transparent;
  background: linear-gradient(135deg, #6366f1, #e9348e);
  color: #fff;
}

/* ---------- 分组问答 ---------- */
:root .qdm-help-group { margin-top: 40px; }
:root .qdm-help-group > h2 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding-left: 13px;
  color: var(--qdm-strong, #f3f4f6);
  font-size: 17px;
  font-weight: 700;
}
:root .qdm-help-group > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 17px;
  margin-top: -8.5px;
  border-radius: 2px;
  background: linear-gradient(180deg, #6366f1, #e9348e);
}
:root .qdm-help-group > h2 small {
  color: var(--qdm-muted, #9ca3af);
  font-size: 12.5px;
  font-weight: 400;
}
:root .qdm-help-list {
  border: 1px solid var(--qdm-line, rgba(255, 255, 255, .07));
  border-radius: 14px;
  background: var(--qdm-card, #181a20);
  overflow: hidden;
}
:root .qdm-help-item + .qdm-help-item { border-top: 1px solid var(--qdm-line, rgba(255, 255, 255, .06)); }
:root .qdm-help-item > summary {
  position: relative;
  padding: 15px 46px 15px 20px;
  color: var(--qdm-strong, #f3f4f6);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}
:root .qdm-help-item > summary::-webkit-details-marker { display: none; }
:root .qdm-help-item > summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--qdm-tag-fg, #818cf8);
  font-size: 20px;
  font-weight: 400;
}
:root .qdm-help-item[open] > summary::after { content: "−"; }
:root .qdm-help-item > summary:hover { background: var(--qdm-chip-bg, rgba(255, 255, 255, .03)); }
:root .qdm-help-body {
  padding: 0 22px 18px 20px;
  color: var(--qdm-muted, #9ca3af);
  font-size: 13.5px;
  line-height: 1.9;
}
:root .qdm-help-body p { margin: 0 0 10px; }
:root .qdm-help-body p:last-child { margin-bottom: 0; }
:root .qdm-help-body b,
:root .qdm-help-body strong { color: var(--qdm-strong, #f3f4f6); }
:root .qdm-help-body ol,
:root .qdm-help-body ul { margin: 6px 0 12px; padding-left: 20px; }
:root .qdm-help-body li { margin: 5px 0; }
:root .qdm-help-body code {
  padding: 2px 7px;
  border: 1px solid var(--qdm-line-strong, rgba(255, 255, 255, .14));
  border-radius: 6px;
  background: var(--qdm-chip-bg, rgba(255, 255, 255, .04));
  color: var(--qdm-body, #c3c7d1);
  font-size: 12.5px;
}
:root .qdm-help-body a { color: var(--qdm-tag-fg, #818cf8); text-decoration: none; border-bottom: 1px solid transparent; }
:root .qdm-help-body a:hover { color: var(--qdm-strong, #fff); border-bottom-color: currentColor; }
:root .qdm-help-body .qdm-help-warn {
  margin: 10px 0;
  padding: 10px 14px;
  border-left: 3px solid rgba(245, 158, 11, .65);
  border-radius: 8px;
  background: var(--qdm-panel, #15171d);
  color: var(--qdm-body, #c3c7d1);
}

/* ---------- 解压密码：可点复制的胶囊 ---------- */
:root .qdm-help-pw {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 4px;
}
:root .qdm-help-pw > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 14px;
  border: 1px dashed rgba(240, 161, 106, .55);
  border-radius: 999px;
  background: rgba(240, 161, 106, .10);
  color: #f0a16a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
:root .qdm-help-pw > span:hover { border-color: rgba(240, 161, 106, .9); background: rgba(240, 161, 106, .18); }
:root .qdm-help-pw > span em { font-style: normal; color: #c7cbd6; font-family: inherit; font-size: 11.5px; font-weight: 400; letter-spacing: 0; }
:root .qdm-help-pw > span[data-done="1"] { border-color: rgba(52, 211, 153, .7); background: rgba(52, 211, 153, .16); color: #6ee7b7; }

/* ---------- 底部：还是没解决 ---------- */
:root .qdm-help-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 42px 0 10px;
  padding: 26px 30px;
  border: 1px solid var(--qdm-line, rgba(255, 255, 255, .08));
  border-radius: 18px;
  background:
    radial-gradient(120% 150% at 8% 0%, rgba(99, 102, 241, .20), transparent 58%),
    radial-gradient(90% 130% at 92% 100%, rgba(233, 52, 142, .16), transparent 62%),
    var(--qdm-panel, #15171d);
}
:root .qdm-help-cta strong {
  display: block;
  color: var(--qdm-strong, #f3f4f6);
  font-family: "QDM Sans SC 900", Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 21px;
  font-weight: 900;
}
:root .qdm-help-cta p { margin: 8px 0 0; color: var(--qdm-muted, #9ca3af); font-size: 13.5px; line-height: 1.7; }
:root .qdm-help-cta a {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #e9348e);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(99, 102, 241, .40);
  transition: transform .18s ease, filter .18s ease;
}
:root .qdm-help-cta a:hover { transform: translateY(-2px); filter: brightness(1.06); }

:root .qdm-help-empty {
  margin-top: 26px;
  padding: 34px;
  border: 1px dashed var(--qdm-line-strong, rgba(255, 255, 255, .16));
  border-radius: 14px;
  text-align: center;
  color: var(--qdm-muted, #9ca3af);
  font-size: 14px;
}

/* ---------- 亮色模式 ---------- */
:root .site.light .qdm-help-list,
:root .site.light .qdm-help-cta { background: var(--panel); border-color: var(--line); }
:root .site.light .qdm-help-body .qdm-help-warn { background: var(--panel-2); }
:root .site.light .qdm-help-body code { background: rgba(30, 32, 42, .05); border-color: rgba(30, 32, 42, .12); }

/* ---------- 窄屏 ---------- */
@media (max-width: 1080px) {
  :root .qdm-help-top { padding: 26px 22px; }
  :root .qdm-help-top h1 { font-size: 28px; }
  :root .qdm-help-cta { flex-direction: column; align-items: flex-start; }
}
