/* 生产版（由本地 demo 版构建，已去掉 ?look 开关）—— 构建于 2026-10-06 */
/* ============================================================================
 * Steam 入库 栏目页（**本机预览，未上线**）—— 与 qdm-steam-20261006.js 配套
 *
 * 路由：/?category=steam-ruku  （和「联机修复工具 / 平台修复工具 / 游戏工具」同一形式）
 * 结构参考同类工具落地页：主视觉 → 为什么选我们 → 三步上手 → 套餐 → 常见问题 → 底部 CTA
 * ⚠️ 文案与参数全部是**本站自己的初稿**，没有照抄参考站；带【待定】的地方等你给准确值。
 *
 * 做法：进入这个路由时把本站「分类页」的框架部分收起来（站点 hero、RESOURCE CATEGORY、
 *       排序栏、空状态），在 .page-shell 里插入一整页落地内容。
 * ========================================================================== */

/* ---------- 进入 steam-ruku 时：收起框架部分，整页交给落地页 ---------- */
:root[data-qdm-steam="1"] .hero-shell,
:root[data-qdm-steam="1"] .content-layout,
:root[data-qdm-steam="1"] .qdm-category-header,
:root[data-qdm-steam="1"] .toolbar,
:root[data-qdm-steam="1"] .qdm-category-empty { display: none !important; }

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

/* ---------- 通用：区块与标题 ---------- */
:root .qdm-steam-section { margin-top: 46px; }
:root .qdm-steam-head { text-align: center; margin-bottom: 22px; }
:root .qdm-steam-head > span {
  position: relative;
  display: inline-block;
  padding-left: 14px;
  color: var(--qdm-tag-fg, #818cf8);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
}
:root .qdm-steam-head > span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 13px;
  margin-top: -6.5px;
  border-radius: 2px;
  background: linear-gradient(180deg, #6366f1, #e9348e);
}
:root .qdm-steam-head > strong {
  display: block;
  margin-top: 10px;
  color: var(--qdm-strong, #f3f4f6);
  font-family: "QDM Sans SC 900", Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .01em;
}
:root .qdm-steam-head > p {
  margin: 10px auto 0;
  max-width: 620px;
  color: var(--qdm-muted, #9ca3af);
  font-size: 14px;
  line-height: 1.7;
  /* 中文长句不再出现"最后一行只剩两三个字"的孤儿行（浏览器不支持时自动忽略） */
  text-wrap: pretty;
}
/* 带「小节按钮」的小节头：整体左对齐，左边标题+说明，右边一个按钮（文案页里配，如淘宝下单） */
:root .qdm-steam-head[data-side="1"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  text-align: left;
}
:root .qdm-steam-head[data-side="1"] > .qdm-steam-head-main { flex: 1 1 auto; min-width: 0; }
:root .qdm-steam-head[data-side="1"] .qdm-steam-head-main > span { padding-left: 0; }
:root .qdm-steam-head[data-side="1"] .qdm-steam-head-main > span::before { display: none; }
:root .qdm-steam-head[data-side="1"] .qdm-steam-head-main > p { margin: 10px 0 0; max-width: 900px; }
:root .qdm-steam-head-btn { flex: 0 0 auto; white-space: nowrap; padding: 0 26px; font-size: 15px; }

/* ---------- ① 主视觉 ---------- */
:root .qdm-steam-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .95fr);
  gap: 34px;
  align-items: center;
  min-height: 300px;
  padding: 40px 40px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(120% 150% at 12% 0%, rgba(99, 102, 241, .58), transparent 58%),
    radial-gradient(90% 130% at 90% 100%, rgba(56, 189, 248, .34), 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-steam-hero::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-steam-hero-copy { position: relative; }
:root .qdm-steam-hero-copy > span {
  position: relative;
  display: block;
  padding-left: 14px;
  color: #c7d2fe;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .30em;
}
:root .qdm-steam-hero-copy > 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-steam-hero-copy h1 {
  margin-top: 12px;
  color: #fff;
  font-family: "QDM Sans SC 900", Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.18;
  text-shadow: 0 8px 28px rgba(0, 0, 0, .40);
}
:root .qdm-steam-hero-copy p {
  margin-top: 14px;
  max-width: 560px;
  color: rgba(233, 236, 245, .78);
  font-size: 15px;
  line-height: 1.75;
}
:root .qdm-steam-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
:root .qdm-steam-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
:root .qdm-steam-btn-primary {
  border: 0;
  background: linear-gradient(135deg, #6366f1, #e9348e);
  color: #fff;
  box-shadow: 0 14px 32px rgba(99, 102, 241, .45);
}
:root .qdm-steam-btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
:root .qdm-steam-btn-ghost {
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  color: #eef1f7;
}
:root .qdm-steam-btn-ghost:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .45); }
:root .qdm-steam-btn .qdm-icon { width: 16px; height: 16px; }

/* 主视觉右侧：一张"当前数据"卡（数字留待确认） */
:root .qdm-steam-hero-card {
  position: relative;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  background: rgba(10, 11, 16, .38);
  backdrop-filter: blur(8px);
}
:root .qdm-steam-hero-card > span {
  display: block;
  color: #c7d2fe;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .22em;
}
:root .qdm-steam-hero-card dl { margin: 14px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; }
:root .qdm-steam-hero-card dt { color: rgba(233, 236, 245, .62); font-size: 13px; }
:root .qdm-steam-hero-card dd { margin: 0; color: #fff; font-size: 13.5px; font-weight: 700; }
:root .qdm-steam-hero-card dd em { font-style: normal; color: #ffbd58; }

/* ---------- ② 特点卡 ---------- */
:root .qdm-steam-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
:root .qdm-steam-card {
  padding: 22px 22px 20px;
  border: 1px solid var(--qdm-line, rgba(255, 255, 255, .07));
  border-radius: 14px;
  background: var(--qdm-card, #181a20);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
/* 悬停时边框和光晕用这张卡自己的图标配色（每张卡颜色不同） */
:root .qdm-steam-card:hover {
  transform: translateY(-3px);
  border-color: var(--qdm-ic-ring, rgba(99, 102, 241, .50));
  box-shadow: 0 18px 40px var(--qdm-ic-glow, rgba(0, 0, 0, .45));
}
:root .qdm-steam-card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--qdm-ic-soft, rgba(99, 102, 241, .26)), var(--qdm-ic-soft2, rgba(233, 52, 142, .13)));
  box-shadow: inset 0 0 0 1px var(--qdm-ic-ring, rgba(255, 255, 255, .07));
  color: var(--qdm-ic, #a5b4fc);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
:root .qdm-steam-card:hover .qdm-steam-card-icon {
  box-shadow: inset 0 0 0 1px var(--qdm-ic-ring, rgba(255, 255, 255, .14)), 0 10px 24px var(--qdm-ic-glow, rgba(99, 102, 241, .28));
  transform: translateY(-1px) scale(1.04);
}
:root .qdm-steam-card-icon .qdm-icon { width: 22px; height: 22px; }
:root .qdm-steam-card h3 {
  margin: 14px 0 0;
  color: var(--qdm-strong, #f3f4f6);
  font-size: 15.5px;
  font-weight: 700;
}
:root .qdm-steam-card p {
  margin: 8px 0 0;
  color: var(--qdm-muted, #9ca3af);
  font-size: 13.5px;
  line-height: 1.7;
}

/* ---------- ③ 三步 ---------- */
:root .qdm-steam-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
:root .qdm-steam-step {
  position: relative;
  padding: 22px 22px 20px;
  border: 1px solid var(--qdm-line, rgba(255, 255, 255, .07));
  border-radius: 14px;
  background: var(--qdm-card, #181a20);
}
:root .qdm-steam-step > b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #e9348e);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
:root .qdm-steam-step h3 { margin: 14px 0 0; color: var(--qdm-strong, #f3f4f6); font-size: 15.5px; font-weight: 700; }
:root .qdm-steam-step p { margin: 8px 0 0; color: var(--qdm-muted, #9ca3af); font-size: 13.5px; line-height: 1.7; }
:root .qdm-steam-step code {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 9px;
  border: 1px dashed var(--qdm-line-strong, rgba(255, 255, 255, .18));
  border-radius: 8px;
  color: var(--qdm-body, #c3c7d1);
  font-size: 12.5px;
  word-break: break-all;
}

/* ---------- ④ 套餐：两档并排、一样高，鼠标放上去那一档整块亮、按钮变紫粉 ---------- */
:root .qdm-steam-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
:root .qdm-steam-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
  border: 1px solid var(--qdm-line, rgba(255, 255, 255, .07));
  border-radius: 16px;
  background: var(--qdm-card, #181a20);
  transition: border-color .22s ease, background .22s ease, box-shadow .22s ease, transform .22s ease;
}
/* 两档卡片默认都是暗的，鼠标放上去才整块亮起来（写没写「标记」都一样） */
:root .qdm-steam-plan:hover,
:root .qdm-steam-plan:focus-within {
  border-color: rgba(99, 102, 241, .55);
  background: linear-gradient(180deg, rgba(99, 102, 241, .10), rgba(24, 26, 32, 0) 42%), var(--qdm-card, #181a20);
  box-shadow: 0 20px 46px rgba(99, 102, 241, .22);
  transform: translateY(-3px);
}
:root .qdm-steam-plan-tag {
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #e9348e);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
}
:root .qdm-steam-plan > span { color: var(--qdm-muted, #9ca3af); font-size: 13px; }
:root .qdm-steam-plan > h3 {
  margin: 8px 0 0;
  color: var(--qdm-strong, #f3f4f6);
  font-family: "QDM Sans SC 900", Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 24px;
  font-weight: 900;
}
:root .qdm-steam-plan > b {
  display: block;
  margin-top: 6px;
  color: #ffbd58;
  font-size: 26px;
  font-weight: 800;
}
:root .qdm-steam-plan > b small { margin-left: 4px; color: var(--qdm-muted, #9ca3af); font-size: 13px; font-weight: 400; }
/* 第二档价格（45/月 + 138/永久卡 这种两个价）：和第一个价一样大一样金，只用一个「或」隔开 */
:root .qdm-steam-plan > b .qdm-steam-price-2 {
  margin-left: 10px;
  color: #ffbd58;
  font-size: 26px;
  font-weight: 800;
}
:root .qdm-steam-plan > b .qdm-steam-price-2::before {
  content: "或";
  margin-right: 10px;
  color: var(--qdm-muted, #9ca3af);
  font-size: 14px;
  font-weight: 400;
}
:root .qdm-steam-plan > b .qdm-steam-price-2 small { font-size: 13px; font-weight: 400; color: #ffbd58; }
:root .qdm-steam-plan ul { margin: 16px 0 20px; padding: 0; list-style: none; }
:root .qdm-steam-plan li {
  position: relative;
  padding: 6px 0 6px 24px;
  color: var(--qdm-body, #c3c7d1);
  font-size: 13.5px;
  line-height: 1.6;
}
:root .qdm-steam-plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 6px;
  color: #6ee7b7;
  font-weight: 800;
}
:root .qdm-steam-plan li[data-no="1"] { color: var(--qdm-faint, #7b8291); }
:root .qdm-steam-plan li[data-no="1"]::before { content: "×"; color: #f87171; }
/* 按钮钉在卡片底部：两档一列一列对齐，高度不一样也能平行 */
:root .qdm-steam-plan .qdm-steam-btn { width: 100%; justify-content: center; margin-top: auto; }
/* 鼠标停在哪一档，那一档自己的按钮就亮成紫粉渐变（不是两档一起亮） */
:root .qdm-steam-plan:hover .qdm-steam-btn,
:root .qdm-steam-plan:focus-within .qdm-steam-btn {
  border-color: transparent;
  background: linear-gradient(135deg, #6366f1, #e9348e);
  color: #fff;
  box-shadow: 0 12px 28px rgba(233, 52, 142, .34);
  transform: translateY(-2px);
}
:root .qdm-steam-note {
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px dashed var(--qdm-line-strong, rgba(255, 255, 255, .16));
  border-radius: 12px;
  color: var(--qdm-muted, #9ca3af);
  font-size: 12.5px;
  line-height: 1.7;
}

/* ---------- ⑤ 常见问题（原生 details 折叠） ---------- */
:root .qdm-steam-faq {
  border: 1px solid var(--qdm-line, rgba(255, 255, 255, .07));
  border-radius: 14px;
  background: var(--qdm-card, #181a20);
  overflow: hidden;
}
:root .qdm-steam-faq details + details { border-top: 1px solid var(--qdm-line, rgba(255, 255, 255, .06)); }
:root .qdm-steam-faq summary {
  position: relative;
  padding: 16px 46px 16px 20px;
  color: var(--qdm-strong, #f3f4f6);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
:root .qdm-steam-faq summary::-webkit-details-marker { display: none; }
:root .qdm-steam-faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--qdm-tag-fg, #818cf8);
  font-size: 20px;
  font-weight: 400;
  transition: transform .18s ease;
}
:root .qdm-steam-faq details[open] summary::after { content: "−"; }
:root .qdm-steam-faq summary:hover { background: var(--qdm-chip-bg, rgba(255, 255, 255, .03)); }
:root .qdm-steam-faq p {
  margin: 0;
  padding: 0 46px 18px 20px;
  color: var(--qdm-muted, #9ca3af);
  font-size: 13.5px;
  line-height: 1.85;
}

/* ---------- ⑥ 底部 CTA ---------- */
:root .qdm-steam-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 46px 0 10px;
  padding: 28px 32px;
  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, .22), transparent 58%),
    radial-gradient(90% 130% at 92% 100%, rgba(233, 52, 142, .18), transparent 62%),
    var(--qdm-panel, #15171d);
}
:root .qdm-steam-cta strong {
  display: block;
  color: var(--qdm-strong, #f3f4f6);
  font-family: "QDM Sans SC 900", Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 22px;
  font-weight: 900;
}
:root .qdm-steam-cta p { margin: 8px 0 0; color: var(--qdm-muted, #9ca3af); font-size: 13.5px; line-height: 1.7; }

/* ---------- 亮色模式 ---------- */
:root .site.light .qdm-steam-card,
:root .site.light .qdm-steam-step,
:root .site.light .qdm-steam-plan,
:root .site.light .qdm-steam-faq { background: var(--panel); border-color: var(--line); }
:root .site.light .qdm-steam-plan:hover,
:root .site.light .qdm-steam-plan:focus-within {
  background: linear-gradient(180deg, rgba(99, 102, 241, .08), rgba(255, 255, 255, 0) 42%), var(--panel);
}
:root .site.light .qdm-steam-cta { background: var(--panel-2); }
:root .site.light .qdm-steam-card-icon {
  background: linear-gradient(145deg, var(--qdm-ic-soft, rgba(99, 102, 241, .18)), var(--qdm-ic-soft2, rgba(233, 52, 142, .10)));
  box-shadow: inset 0 0 0 1px var(--qdm-ic-ring, rgba(15, 23, 42, .06));
  color: var(--qdm-ic, #6366f1);
}
/* 亮色底上把图标描边压深一点，白底也看得清 */
:root .site.light .qdm-steam-card-icon .qdm-icon { filter: saturate(1.3) brightness(.82); }

/* ---------- 窄屏 ---------- */
@media (max-width: 1080px) {
  :root .qdm-steam-hero { grid-template-columns: 1fr; padding: 28px 24px; }
  :root .qdm-steam-head[data-side="1"] { flex-direction: column; align-items: flex-start; gap: 16px; }
  :root .qdm-steam-grid-3,
  :root .qdm-steam-steps,
  :root .qdm-steam-plans { grid-template-columns: 1fr; }
  :root .qdm-steam-cta { flex-direction: column; align-items: flex-start; }
}
