/* theme-261017 — 会火攻略站视觉壳（偏白 Superdesign）
 * SSOT: E:\豆包\项目区\本地日常项目\newbie-guide 各页
 * red noir 仅作基因参考，强调色落地为奶油白 #f5f1e8，非整站纯红黑。
 * 挂在 html[data-theme="261017"]；不改业务 DOM/文案/solver。
 */
html[data-theme="261017"] {
  --ink: #000000;
  --panel: #0a0a0a;
  --line: rgba(255, 255, 255, 0.09);
  --cream: #f5f1e8;
  --gold: #f5f1e8; /* 初版金 → 偏白强调色，便于旧页 var(--gold) 自动跟色 */
  --muted: #a1a1aa;
  --accent: #f5f1e8;
  --red: #f5f1e8;
  --red-hover: #ffffff;
  --red-glow: rgba(245, 241, 232, 0.5);
  --red-soft: rgba(245, 241, 232, 0.12);
  --z-300: #d4d4d8;
  --z-400: #a1a1aa;
  --z-500: #71717a;
  --z-600: #52525b;
  --z-800: #27272a;
  --z-900: #18181b;
  --ease-261017: cubic-bezier(0.22, 1, 0.36, 1);
  --nb-pad-top: 88px;
  color-scheme: dark;
}

html[data-theme="261017"],
html[data-theme="261017"] body {
  background: #000 !important;
  color: #fff;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

html[data-theme="261017"] ::selection {
  background: #f5f1e8;
  color: #000;
}

/* ── 背景层（注入 .animbg / .gradient-blur）───────────────── */
html[data-theme="261017"] .animbg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
html[data-theme="261017"] .animbg .veil {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(245, 241, 232, 0.06), transparent 55%);
}
html[data-theme="261017"] .animbg .glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(circle, rgba(245, 241, 232, 0.07), transparent 65%);
  filter: blur(40px);
}
html[data-theme="261017"] .animbg .gridline {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 75%);
}

html[data-theme="261017"] .animbg .stars {
  position: absolute; top: 0; left: 0; width: 1px; height: 1px;
  background: transparent; border-radius: 50%; opacity: .8;
}
html[data-theme="261017"] .animbg .stars-1 {
  box-shadow: 234px 124px #fff, 654px 345px #fff, 876px 12px #fff, 1200px 800px #fff,
    400px 1500px #fff, 1800px 200px #fff, 100px 1000px #fff, 900px 1900px #fff,
    500px 600px #fff, 1400px 100px #fff, 300px 400px #fff, 1600px 1200px #fff,
    250px 1700px #fff, 1100px 1450px #fff, 700px 2100px #fff;
  animation: animStar 60s linear infinite;
}
html[data-theme="261017"] .animbg .stars-2 {
  width: 2px; height: 2px;
  box-shadow: 123px 456px #fff, 789px 234px #fff, 456px 890px #fff, 1100px 300px #fff,
    200px 1200px #fff, 1500px 500px #fff, 600px 1700px #fff, 1300px 900px #fff,
    350px 1300px #fff, 1700px 1600px #fff;
  animation: animStar 90s linear infinite;
}
html[data-theme="261017"] .animbg .vein {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 1200px; height: 1200px; border-radius: 50%; filter: blur(40px);
  background: conic-gradient(from 90deg at 50% 50%, transparent 0%, rgba(245,241,232,.05) 12%, transparent 24%, transparent 60%, rgba(245,241,232,.04) 72%, transparent 85%);
  animation: veinRot 50s linear infinite;
}
@keyframes animStar {
  from { transform: translateY(0); }
  to { transform: translateY(-2200px); }
}
@keyframes veinRot {
  to { transform: translateX(-50%) rotate(360deg); }
}

html[data-theme="261017"] .gradient-blur {
  /* 261017 死规定：进页不要整页/顶区毛玻璃；仅作淡黑过渡，无 backdrop-filter */
  position: fixed; top: 0; left: 0; right: 0; height: 96px; z-index: 40;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* 页面内容抬到背景之上（masthead / #supmask 勿入此组：
 * 本组 z-index:10 特异性高于 `.masthead{z-index:50}`，会让顶栏落到
 * `.gradient-blur`(z=40) 之下被黑渐变盖住；支持弹层需保持 style.css 的高层。） */
html[data-theme="261017"] body > main,
html[data-theme="261017"] body > footer,
html[data-theme="261017"] body > .footer,
html[data-theme="261017"] body > .sup,
html[data-theme="261017"] body > .wrap {
  position: relative;
  z-index: 10;
}
html[data-theme="261017"] body > .masthead {
  /* 仅抬层，不动 position（由下方 fixed !important 接管） */
  z-index: 50;
}
html[data-theme="261017"] body > #supmask,
html[data-theme="261017"] body > .supmask {
  z-index: 99;
}

/* ── 顶栏：既有 .masthead/.brand/.topnav → 胶囊毛玻璃 ─────── */
html[data-theme="261017"] .masthead {
  position: fixed !important;
  top: 14px; left: 0; right: 0;
  z-index: 50 !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 18px !important;
  width: calc(100% - 32px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

html[data-theme="261017"] .masthead .brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex: none;
}
html[data-theme="261017"] .masthead .brand-cn {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
html[data-theme="261017"] .masthead .brand-cn .dot {
  background: var(--red);
  width: 4px; height: 4px;
  margin: 0 0 2px 4px;
}
html[data-theme="261017"] .masthead .brand-en {
  display: none; /* 胶囊栏空间紧，英文副标隐藏 */
}

html[data-theme="261017"] .masthead .topnav {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  margin: 0 !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 14px;
  row-gap: 4px;
}
html[data-theme="261017"] .masthead .topnav a {
  padding: 0;
  border: none !important;
  background: transparent !important;
  border-radius: 0;
  font-size: 13.5px;
  letter-spacing: 0;
  color: var(--z-400) !important;
  box-shadow: none !important;
  transition: color 0.18s;
}
html[data-theme="261017"] .masthead .topnav a:hover,
html[data-theme="261017"] .masthead .topnav a.cur,
html[data-theme="261017"] .masthead .topnav a[aria-current="page"] {
  color: var(--red) !important;
}
html[data-theme="261017"] .masthead .topnav a.supnav {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px !important;
  border-radius: 999px !important;
  border: 1px solid var(--line) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 600;
}
html[data-theme="261017"] .masthead .topnav a.supnav:hover {
  border-color: rgba(245, 241, 232, 0.5) !important;
  box-shadow: 0 0 16px rgba(245, 241, 232, 0.15) !important;
  color: #fff !important;
}

/* 为固定顶栏腾出空间 */
html[data-theme="261017"] body {
  padding-top: var(--nb-pad-top);
}

@media (max-width: 980px) {
  html[data-theme="261017"] .masthead .topnav a:not(.supnav) {
    /* 窄屏保留链接，允许换行 */
  }
}
@media (max-width: 720px) {
  html[data-theme="261017"] {
    --nb-pad-top: 120px;
  }
  html[data-theme="261017"] .masthead {
    border-radius: 22px !important;
    flex-wrap: wrap;
    padding: 12px 14px !important;
  }
  html[data-theme="261017"] .masthead .topnav {
    width: 100%;
    justify-content: flex-start;
  }
  html[data-theme="261017"] .masthead .topnav a:not(.supnav) {
    font-size: 12.5px;
  }
}

/* ── 属性筛选 chips ──────────────────────────────────────── */
html[data-theme="261017"] .attrbar {
  position: sticky;
  top: calc(var(--nb-pad-top) - 14px);
  z-index: 35;
  max-width: 1080px;
  margin: 8px auto 0;
  padding: 0 20px 2px;
}
html[data-theme="261017"] .attrbar .chip,
html[data-theme="261017"] .chip {
  background: transparent;
  border: 1px solid transparent;
  color: var(--z-400);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13.5px;
  letter-spacing: 0;
  box-shadow: none;
}
html[data-theme="261017"] .chip:hover {
  color: #fff;
  border-color: transparent;
}
html[data-theme="261017"] .chip.on {
  background: rgba(245, 241, 232, 0.12);
  border-color: rgba(245, 241, 232, 0.45);
  color: var(--red);
  box-shadow: none;
}
/* 包一层胶囊感：attrbar 自身 */
html[data-theme="261017"] .attrbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  width: calc(100% - 40px);
  box-sizing: border-box;
}

/* ── 角色卡片网格（index）────────────────────────────────── */
/* 内容壳口径（261017·用户裁定）：各页主内容区与总览 .grid 同宽 max-width:1200px；左对齐 hero 外壳与总览 .hero-261017 同宽 1080px（glossary hero 文案冻结，只扩壳）；不收窄总览。 */
html[data-theme="261017"] .grid {
  max-width: 1200px;
  gap: 18px;
  padding: 28px 20px 8px;
  margin: 12px auto 40px;
}
html[data-theme="261017"] .card-tile {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(24, 24, 27, 0.6), rgba(0, 0, 0, 0.4));
  overflow: hidden;
  transition: transform 0.3s var(--ease-261017), border-color 0.3s var(--ease-261017), box-shadow 0.3s var(--ease-261017);
}
html[data-theme="261017"] .card-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 241, 232, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 24px rgba(245, 241, 232, 0.08);
}
html[data-theme="261017"] .card-tile .frame {
  background: #0a0a0a;
  aspect-ratio: 3 / 4.2;
}
html[data-theme="261017"] .card-tile .edition {
  color: rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line);
  border-radius: 6px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(6px);
}
html[data-theme="261017"] .card-tile .meta {
  padding: 12px 14px 14px;
}
html[data-theme="261017"] .card-tile .meta .name {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
html[data-theme="261017"] .card-tile .meta .sub {
  color: var(--red);
  letter-spacing: 0.08em;
}
html[data-theme="261017"] .card-tile .meta .tag {
  color: var(--z-500);
}

/* ── 页脚 ────────────────────────────────────────────────── */
html[data-theme="261017"] .footer {
  border-top: 1px solid var(--z-800);
  color: var(--z-600);
  background: #000;
}

/* ── 支持作者弹层（偏白边框）──────────────────────────────── */
/* 选核心输出弹窗：毛玻璃对齐 .masthead；外框对齐 .codesbar-inner（var(--line)+14px） */
html[data-theme="261017"] .supmask {
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
/* .supbox frame = codesbar 气质但边框更亮（var(--line) 0.09 太淡看不清）；keep masthead frost */
html[data-theme="261017"] .supbox {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 241, 232, 0.38);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  color: var(--z-400);
  font-size: 15px; /* 正文口径 */
}
html[data-theme="261017"] .suptitle {
  color: #fff;
  font-size: 15px;
}
html[data-theme="261017"] .suptitle b,
html[data-theme="261017"] .supbox .suptitle {
  color: var(--red);
}
html[data-theme="261017"] .supbox .supsub,
html[data-theme="261017"] .supbox .supnote,
html[data-theme="261017"] .supbox .supqrs figcaption,
html[data-theme="261017"] .supbox .supdy figcaption,
html[data-theme="261017"] .supbox .pkshallow-hint,
html[data-theme="261017"] .supbox .pkfilter .pkf,
html[data-theme="261017"] .supbox .supbtn {
  font-size: 15px !important; /* 抬齐偏小文案；覆盖 style.css / 内联偏小字号 */
}
html[data-theme="261017"] .supbtn {
  border-color: rgba(245, 241, 232, 0.35);
  color: var(--red);
}
html[data-theme="261017"] .supbtn:hover {
  border-color: rgba(245, 241, 232, 0.7);
  color: #fff;
  background: rgba(245, 241, 232, 0.06);
}

/* ── 通用内容页（newbie / glossary / system / codes / team）── */
html[data-theme="261017"] .glopage h1,
html[data-theme="261017"] .glopage h2,
html[data-theme="261017"] .glopage h3 {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
html[data-theme="261017"] .glopage h1 {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
}
html[data-theme="261017"] .glopage h2 {
  color: var(--red);
  border-bottom-color: rgba(245, 241, 232, 0.12);
}
html[data-theme="261017"] .glopage .lead,
html[data-theme="261017"] .glopage p {
  color: var(--z-300);
}
html[data-theme="261017"] .glopage .lead b,
html[data-theme="261017"] .glopage p b {
  color: var(--red);
}
html[data-theme="261017"] .toc a {
  font-size: 16px;
  color: var(--z-300);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}
html[data-theme="261017"] .toc a:hover {
  border-color: rgba(245, 241, 232, 0.45);
  background: rgba(245, 241, 232, 0.08);
  color: var(--red);
}

/* 段落卡片化：入坑/术语等 section 轻抬升 */
html[data-theme="261017"] .glopage section {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 8px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  margin-top: 20px;
  scroll-margin-top: calc(var(--nb-pad-top) + 12px);
}

/* team 页常见容器：只换皮，不动 id */
html[data-theme="261017"] .teampage section,
html[data-theme="261017"] .teampage .panel,
html[data-theme="261017"] .teampage .block,
html[data-theme="261017"] .teampage .card,
html[data-theme="261017"] .teampage .box {
  /* 兜底；具体 class 由内联样式主导时用下面更宽的边框规则 */
}

html[data-theme="261017"] body.teampage,
html[data-theme="261017"] body.syspage,
html[data-theme="261017"] body.codepage,
html[data-theme="261017"] body.glopage {
  /* body 已统一黑底 */
}

/* 表格 / callout 跟色 */
html[data-theme="261017"] .tbl th {
  color: var(--red);
}
html[data-theme="261017"] .tbl th,
html[data-theme="261017"] .tbl td {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

/* ── 动效（尊重 reduced-motion）──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html[data-theme="261017"] * {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}


/* ── teampage / syspage / codespage 内容壳 ───────────────── */
html[data-theme="261017"] body.teampage .wrap,
html[data-theme="261017"] body.syspage .wrap,
html[data-theme="261017"] body.codespage .wrap,
html[data-theme="261017"] body.teampage > main,
html[data-theme="261017"] body.syspage > main,
html[data-theme="261017"] body.codespage > main {
  position: relative;
  z-index: 10;
}
html[data-theme="261017"] body.teampage h1,
html[data-theme="261017"] body.syspage h1,
html[data-theme="261017"] body.codespage h1 {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #fff;
  font-weight: 800;
}
html[data-theme="261017"] body.teampage h2,
html[data-theme="261017"] body.syspage h2,
html[data-theme="261017"] body.codespage h2 {
  color: var(--red);
}
/* 配队工具条 / 区块：轻玻璃边，不改内部 id */
html[data-theme="261017"] body.teampage .tools,
html[data-theme="261017"] body.teampage .tbwrap,
html[data-theme="261017"] body.teampage .poswrap,
html[data-theme="261017"] body.teampage .posbox {
  border-color: var(--line);
}
html[data-theme="261017"] body.teampage .leadbtn,
html[data-theme="261017"] body.teampage .sigbtn,
html[data-theme="261017"] body.teampage .avoidbtn,
html[data-theme="261017"] body.teampage .lockbtn {
  border-radius: 999px;
}
/* system / codes 段落块 */
html[data-theme="261017"] body.syspage section,
html[data-theme="261017"] body.codespage section {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  margin-top: 18px;
  scroll-margin-top: calc(var(--nb-pad-top) + 12px);
}


/* 261017 no-glass pages：总览/兑换码无分区标签 → 不要进页模糊层 */
html[data-theme="261017"] body:not(.glopage):not(.syspage):not(.teampage) .gradient-blur,
html[data-theme="261017"] body.codespage .gradient-blur {
  display: none !important;
}

/* attrbar 不做毛玻璃（总览无分区标签页）——保留胶囊外形 */
html[data-theme="261017"] .attrbar {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(0, 0, 0, 0.72) !important;
}

/* ===== 分区标签 tocbar：仅 sticky 贴顶后毛玻璃 ===== */
html[data-theme="261017"] .toc-sentinel {
  height: 1px;
  width: 100%;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
html[data-theme="261017"] .tocbar {
  position: sticky;
  top: calc(var(--nb-pad-top) - 14px);
  z-index: 36;
  max-width: 1200px;
  margin: 16px auto 8px;
  padding: 0 16px;
}
/* 次导航常显半透胶囊，对齐总览 .attrbar（blur 关闭同属标签页兼容；is-stuck 仅补阴影加权重） */
html[data-theme="261017"] .tocbar .toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  transition: background 0.2s var(--ease-261017), border-color 0.2s var(--ease-261017), box-shadow 0.2s var(--ease-261017);
}
html[data-theme="261017"] .tocbar.is-stuck .toc {
  background: rgba(0, 0, 0, 0.78);
  border-color: var(--line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55);
  padding: 9px 10px;
}
html[data-theme="261017"] body.syspage .tocbar {
  max-width: 1200px;
}
html[data-theme="261017"] body.syspage .tocbar .toc {
  flex-wrap: wrap;
  overflow-x: visible;
  justify-content: center;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
html[data-theme="261017"] body.syspage .tocbar .toc::-webkit-scrollbar { display: none; }
html[data-theme="261017"] body.syspage .tocbar .toc a {
  flex: none;
  white-space: nowrap;
  font-size: 16px; /* align glossary/newbie .toc a */
}

/* ===== 总览 CHARACTERS 大字英雄区 ===== */
html[data-theme="261017"] /* 261017 hero: index/newbie = center giant; others = left compact */
.hero-261017 {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 24px 8px;
  max-width: 1080px;
  margin: 0 auto;
}
.hero-261017-left {
  position: relative;
  z-index: 10;
  display: block;
  text-align: left;
  padding: 28px 24px 12px;
  max-width: 1200px; /* align content shell; index .hero-261017 stays 1080 */
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}
.hero-261017-left.hero-mw-codes { max-width: 1200px; } /* align content shell */

/* team hero 外框对齐术语科普 .glopage section（术语冻结，只给 team hero 补同款框） */
html[data-theme="261017"] .teampage .hero-261017-left {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 8px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  margin-top: 20px;
  max-width: 1200px; /* align content shell (.tbmain) */
  width: 100%;
  box-sizing: border-box;
}

/* Left hero：压过页内 .syspage/.glopage/.teampage/.codespage h1{30px/23px}
   模板参考（战斗体系.html）：.hero h1 { font-size:clamp(40px,6vw,64px); font-weight:900; line-height:1.12 }
   兑换码模板：clamp(42px,7vw,72px) */
html[data-theme="261017"] .hero-261017-left h1 {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.12;
  margin: 20px 0 12px;
  font-size: clamp(40px, 6vw, 64px); /* 改前≈30px（页内压死）；改后=模板 */
  color: inherit;
}
html[data-theme="261017"] .hero-261017-left.hero-mw-codes h1 {
  font-size: clamp(42px, 7vw, 72px); /* 模板兑换码 */
}
html[data-theme="261017"] .hero-261017-left .t-grad,
html[data-theme="261017"] .hero-261017-left .t-red {
  display: block;
}
html[data-theme="261017"] .hero-261017-left .t-red svg { display: none; }
html[data-theme="261017"] .hero-261017-left .lead,
html[data-theme="261017"] .hero-261017-left .hero-sub {
  font-size: 15px; /* 压过 .syspage .lead{14px} */
  color: var(--z-400, #cfc6b2);
  line-height: 1.9;
  max-width: 720px;
  margin: 0 0 8px;
  text-align: left;
}
html[data-theme="261017"] .hero-261017-left .lead b,
html[data-theme="261017"] .hero-261017-left .hero-sub b {
  color: #fff;
  font-weight: 600;
}
@media (max-width: 720px) {
  html[data-theme="261017"] .hero-261017-left h1 {
    font-size: clamp(40px, 8vw, 64px); /* 压过页内 media h1{23px} */
  }
  html[data-theme="261017"] .hero-261017-left.hero-mw-codes h1 {
    font-size: clamp(42px, 9vw, 72px);
  }
}
html[data-theme="261017"] .hero-261017 .hero-badge,
.hero-261017-left .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: rgba(245, 241, 232, 0.92);
  letter-spacing: 0.04em;
}
html[data-theme="261017"] .hero-261017 .pulse,
.hero-261017-left .pulse {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--red);
}
html[data-theme="261017"] .hero-261017 .pulse::after,
.hero-261017-left .pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1px solid var(--red);
  animation: pulseRing261017 1.8s ease-out infinite;
}
@keyframes pulseRing261017 {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
html[data-theme="261017"] .hero-261017 .hero-title {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.12;
  margin: 20px 0 16px;
  font-size: clamp(52px, 9vw, 104px);
}
html[data-theme="261017"] .hero-261017 .t-grad,
.hero-261017-left .t-grad {
  display: block;
  background: linear-gradient(180deg, #fff 20%, rgba(255, 255, 255, 0.45));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
html[data-theme="261017"] .hero-261017 .t-red,
.hero-261017-left .t-red {
  display: block;
  color: var(--red);
  position: relative;
  font-family: Manrope, "Noto Sans SC", sans-serif;
  font-weight: 800;
}
html[data-theme="261017"] .hero-261017 .t-red svg {
  display: block;
  width: 100%;
  height: 12px;
  margin-top: 6px;
  color: var(--red);
  opacity: 0.55;
}
html[data-theme="261017"] .hero-261017 .hero-sub {
  font-size: clamp(14px, 1.7vw, 17px);
  color: var(--z-400);
  max-width: 720px;
  margin: 0 auto 8px;
  line-height: 1.8;
}
html[data-theme="261017"] .hero-261017 .hero-sub b { color: #fff; font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  html[data-theme="261017"] .hero-261017 .pulse::after,
.hero-261017-left .pulse::after { animation: none; }
}


/* 总览兑换码小框：对齐术语科普 section 卡片壳 */
html[data-theme="261017"] .codesbar-card {
  max-width: 940px;
  margin: 8px auto 18px;
  padding: 0 16px;
}
html[data-theme="261017"] .codesbar-card .codesbar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  color: #f0e0b8;
  font-size: 14px;
  letter-spacing: .04em;
  transition: border-color .15s, background .15s;
}
html[data-theme="261017"] .codesbar-card .codesbar-inner b {
  color: var(--gold, #e8c77c);
}
html[data-theme="261017"] .codesbar-card .codesbar-inner #codesbar-txt {
  color: #cfc6b2;
}
html[data-theme="261017"] .codesbar-card .codesbar-inner .arrow {
  color: #a8915f;
}
html[data-theme="261017"] .codesbar-card .codesbar-inner:hover {
  border-color: rgba(245, 241, 232, 0.28);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

/* section numbered titles — mirror newbie-guide 入坑指南 .sec-title .idx / h2 sizes */
html[data-theme="261017"] .glopage h2,
html[data-theme="261017"] .syspage h2,
html[data-theme="261017"] .teampage h2 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1.25;
  color: var(--cream, #f5f1e8);
}
html[data-theme="261017"] .glopage h2 .num,
html[data-theme="261017"] .syspage h2 .num,
html[data-theme="261017"] .teampage h2 .num {
  font-family: Manrope, "Noto Sans SC", sans-serif;
  font-size: clamp(34px, 5vw, 46px) !important;
  font-weight: 800;
  letter-spacing: .01em;
  color: transparent !important;
  -webkit-text-stroke: 1.4px rgba(245, 241, 232, .5);
  margin-right: 0;
  flex: none;
}
@media (max-width: 760px) {
  html[data-theme="261017"] .glopage h2 .num,
  html[data-theme="261017"] .syspage h2 .num,
  html[data-theme="261017"] .teampage h2 .num {
    font-size: 34px !important;
  }
}


/* back-top — mirror newbie-guide/入坑指南.html */
@property --ga {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes borderSpin {
  to { --ga: 360deg; }
}
html[data-theme="261017"] .back-top {
  --ga: 0deg;
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 60;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background:
    linear-gradient(#000, #000) padding-box,
    conic-gradient(from var(--ga), transparent 0%, #f5f1e8 8%, #f5f1e8 20%, transparent 32%, transparent 100%) border-box;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5f1e8;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s var(--ease-261017, cubic-bezier(.4,0,.2,1)),
              transform .25s var(--ease-261017, cubic-bezier(.4,0,.2,1)),
              visibility .25s;
  animation: borderSpin 2.6s linear infinite;
  box-shadow: 0 0 24px rgba(245, 241, 232, .12);
}
html[data-theme="261017"] .back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
html[data-theme="261017"] .back-top:hover {
  box-shadow: 0 0 30px rgba(245, 241, 232, .3);
}
html[data-theme="261017"] .back-top .icon,
html[data-theme="261017"] .back-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html[data-theme="261017"] .back-top .bt-ring { display: none; }
@media (max-width: 680px) {
  html[data-theme="261017"] .back-top {
    right: 16px; bottom: 16px; width: 46px; height: 46px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme="261017"] .animbg .stars-1,
  html[data-theme="261017"] .animbg .stars-2,
  html[data-theme="261017"] .animbg .vein,
  html[data-theme="261017"] .back-top {
    animation: none !important;
  }
}


/* team quick buttons: codesbar-inner frame; #tbRun: back-top borderSpin only (opaque face) */
html[data-theme="261017"] body.teampage .tools button {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  color: #f0e0b8;
  transition: border-color .15s, background .15s;
}
html[data-theme="261017"] body.teampage .tools button:hover {
  border-color: rgba(245, 241, 232, 0.28);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}
/* #tbRun: same border-only spin as .back-top (opaque #000 face + conic border-box; no fill flash) */
html[data-theme="261017"] body.teampage #tbRun {
  --ga: 0deg;
  border: 2px solid transparent;
  border-radius: 14px;
  background:
    linear-gradient(#000, #000) padding-box,
    conic-gradient(from var(--ga), transparent 0%, #f5f1e8 8%, #f5f1e8 20%, transparent 32%, transparent 100%) border-box;
  color: var(--cream, #f5f1e8);
  font-weight: 600;
  animation: borderSpin 2.6s linear infinite;
  box-shadow: 0 0 18px rgba(245, 241, 232, 0.10);
  transition: box-shadow .15s;
}
html[data-theme="261017"] body.teampage #tbRun:hover {
  /* mirror .back-top:hover - shadow only, face stays static */
  box-shadow: 0 0 24px rgba(245, 241, 232, 0.22);
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme="261017"] body.teampage #tbRun {
    animation: none !important;
    border: 1px solid var(--line);
    background: #000;
  }
}

/* keep nested team UI headings from inheriting giant section title sizes */
html[data-theme="261017"] .teampage .tbdet h2,
html[data-theme="261017"] .teampage .tbm h2,
html[data-theme="261017"] .teampage .tbmslot h2,
html[data-theme="261017"] .teampage .parcard h2 {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .1em;
  gap: 0;
}
html[data-theme="261017"] .teampage .tbdet h2 .num,
html[data-theme="261017"] .teampage .tbm h2 .num {
  font-size: inherit !important;
  font-weight: inherit;
  color: #6f6446 !important;
  -webkit-text-stroke: 0;
  margin-right: 8px;
}

/* === mobile-261018-m4: scroll-lerp nav fold (PC untouched) === */
html[data-theme="261017"] .nav-toggle {
  display: none;
}
@media (max-width: 720px) {
  html[data-theme="261017"] {
    /* 首屏默认展开，避免顶部落地先闪收起；JS 随 scroll 插值覆盖 */
    --nb-pad-top: 150px;
    --nav-expand: 1;
    --nav-panel-h: 88px;
  }
  html[data-theme="261017"] .masthead {
    flex-wrap: wrap !important;
    align-items: center;
    align-content: flex-start;
    gap: 6px 8px;
    padding: 8px 12px !important;
  }
  html[data-theme="261017"] .masthead .brand {
    flex: 1 1 auto;
    min-width: 0;
  }
  html[data-theme="261017"] .masthead .brand .brand-en {
    display: none;
  }
  html[data-theme="261017"] .nav-toggle {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin: 0;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: #f0e0b8;
    font: inherit;
    font-size: 12px;
    letter-spacing: 0.04em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  /* 始终占位；用 max-height/opacity 跟 --nav-expand 插值，忌 display 瞬间切换 */
  html[data-theme="261017"] .masthead .topnav {
    display: flex !important;
    width: 100%;
    flex-basis: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 5px 7px;
    box-sizing: border-box;
    margin-top: calc(var(--nav-expand) * 6px);
    padding-top: calc(var(--nav-expand) * 6px);
    border-top: 1px solid rgba(255, 255, 255, calc(var(--nav-expand) * 0.08));
    max-height: calc(var(--nav-expand) * var(--nav-panel-h));
    opacity: var(--nav-expand);
    overflow: hidden;
    transform: translateY(calc((1 - var(--nav-expand)) * -6px));
    will-change: max-height, opacity, transform;
  }
  html[data-theme="261017"] .masthead .topnav a:not(.supnav) {
    font-size: 12px;
    padding: 4px 8px;
    line-height: 1.25;
  }
  html[data-theme="261017"] .masthead .topnav a.supnav {
    font-size: 12px;
    padding: 4px 8px;
    line-height: 1.25;
  }
/* 总览属性筛选：缩小、尽量一行；手机端不 sticky */
  html[data-theme="261017"] .attrbar {
    position: static !important;
    top: auto !important;
    max-width: 100%;
    margin: 6px 12px 0;
    padding: 0;
  }
  html[data-theme="261017"] .attrbar .chip,
  html[data-theme="261017"] .chip {
    padding: 4px 8px !important;
    font-size: 11.5px !important;
    gap: 4px;
  }
  html[data-theme="261017"] .attrbar .chip img,
  html[data-theme="261017"] .chip img {
    width: 14px !important;
    height: 14px !important;
  }
  html[data-theme="261017"] .attrbar {
    /* inner capsule already on .attrbar itself in theme — shrink padding */
  }
  /* 若 attrbar 自身是胶囊：收紧 */
  html[data-theme="261017"] section.attrbar,
  html[data-theme="261017"] #attrbar.attrbar {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 5px 6px !important;
    border-radius: 999px;
    scrollbar-width: none;
  }
  html[data-theme="261017"] #attrbar.attrbar::-webkit-scrollbar { display: none; }

  /* 角色卡两列 */
  html[data-theme="261017"] .grid,
  html[data-theme="261017"] #card-grid.grid,
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* 次导航：手机端取消 sticky */
  html[data-theme="261017"] .tocbar {
    position: static !important;
    top: auto !important;
    margin: 10px 12px 6px;
    padding: 0;
  }
}


/* === mobile-261018-m2: toc 2-row + (PC untouched) === */
@media (max-width: 720px) {
  /* 次导航缩小字号/间距，体系 7 钮也最多 2 行 */
  html[data-theme="261017"] .tocbar .toc,
  html[data-theme="261017"] body.syspage .tocbar .toc {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px 5px !important;
    justify-content: flex-start !important;
    overflow: visible !important;
    white-space: normal !important;
  }
  html[data-theme="261017"] .tocbar .toc a,
  html[data-theme="261017"] body.syspage .tocbar .toc a {
    font-size: 11px !important;
    padding: 4px 7px !important;
    letter-spacing: 0.02em !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
  }
}
