/* QuestEcho 官网样式 v2 —— 奥术深蓝 + 符文金，与插件徽记同色系 */

:root {
  --ink-0: #070a16;
  --ink-1: #0c1226;
  --ink-2: #131c38;
  --ink-3: #1c2750;
  --line: rgba(122, 158, 255, .16);
  --line-2: rgba(122, 158, 255, .30);
  --gold: #e9c37a;
  --gold-2: #b4903f;
  --gold-soft: rgba(233, 195, 122, .12);
  --arcane: #5ec9ff;
  --arcane-2: #8a7bff;
  --text: #e8edfb;
  --dim: #93a1c6;
  --ok: #63c98a;
  --warn: #e0a33f;
  --err: #e2665c;
  --r: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* 底色放在 html 上：body 若自带不透明底色，会把 z-index 为负的背景层整层盖住 */
  background: var(--ink-0);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

/* ---- 背景：奥术辉光 + 魔兽学堂插画 + 缓慢旋转的符文环 ----
   background 多层列表，第一层在最上，顺序即层级：
     ① 首屏遮罩渐变（把插画在正文区之前渐隐掉，避免压字）
     ②③④ 站点原有的三处辉光
     ⑤ 插画（钉在顶部、cover 铺满）
     ⑥ 基底深蓝渐变
   插画本身已压暗并混过底色（questecho-tools/make_bg_scene2.py）。
   注意：不能另起 html::before 放插画——根元素带不透明底色时，根元素的负 z-index
   伪元素会被根部画布底色盖掉，实测整层不显示；所有层必须挤在 body::before 里。 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    /* ①a 左侧遮罩：正文（标题/正文/按钮）在左半屏，把它压下去，右侧留给插画 */
    linear-gradient(90deg,
      rgba(7, 10, 22, .88) 0%,
      rgba(7, 10, 22, .70) 26%,
      rgba(7, 10, 22, .36) 48%,
      rgba(7, 10, 22, .08) 68%,
      rgba(7, 10, 22, 0) 78%),
    /* ①b 首屏遮罩：插画在正文区之前渐隐 */
    linear-gradient(180deg,
      rgba(7, 10, 22, 0) 0%,
      rgba(7, 10, 22, 0) 38%,
      rgba(7, 10, 22, .55) 60%,
      rgba(7, 10, 22, .90) 80%,
      rgba(7, 10, 22, 1) 100%),
    radial-gradient(940px 540px at 14% -10%, rgba(94, 201, 255, .17), transparent 62%),
    radial-gradient(800px 500px at 90% 2%, rgba(138, 123, 255, .16), transparent 60%),
    radial-gradient(1100px 660px at 50% 112%, rgba(233, 195, 122, .10), transparent 64%),
    url("assets/bg-academy-1280.webp?v=20261119p") center top / cover no-repeat,
    linear-gradient(180deg, #070a16 0%, #0a1024 45%, #070a16 100%);
}
body::after {
  content: "";
  position: fixed;
  z-index: -2;
  width: min(128vw, 1240px);
  aspect-ratio: 1;
  left: 50%;
  top: -16%;
  transform: translateX(-50%);
  background: url("assets/rune-ring.svg") center/contain no-repeat;
  opacity: .085;
  animation: qe-spin 240s linear infinite;
  pointer-events: none;
}
@keyframes qe-spin {
  to { transform: translateX(-50%) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: #f3d79b; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---- 顶栏 ---- */
header.site {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 10, 22, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand img {
  width: 36px;
  /* 高度交给 aspect-ratio，避免被 HTML 的 height 属性锁死后在窄屏被压扁 */
  height: auto;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(94, 201, 255, .45));
}
.brand .bt { line-height: 1.15; }
.brand .b1 {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .8px;
  color: var(--gold);
}
.brand .b2 { display: block; font-size: 11px; color: var(--dim); letter-spacing: 2.4px; }

nav.main { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
nav.main a {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--dim);
  border: 1px solid transparent;
  transition: .18s;
}
nav.main a:hover { color: var(--text); background: rgba(122, 158, 255, .08); }
nav.main a.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
  margin-left: 8px;
  padding: 5px 10px 3px;
  border: 1px solid rgba(233, 195, 122, .35);
  border-radius: 8px;
  font-size: 13px;
  letter-spacing: .5px;
}
nav.main a.on {
  color: var(--gold);
  border-color: rgba(233, 195, 122, .34);
  background: var(--gold-soft);
}

/* ---- 首屏 ---- */
.hero {
  position: relative;
  padding: 66px 0 54px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: center;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--arcane);
  border: 1px solid rgba(94, 201, 255, .28);
  background: rgba(94, 201, 255, .07);
  border-radius: 999px;
  padding: 4px 13px;
  margin-bottom: 18px;
}
h1 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: .5px;
  /* 与 h2（"三步，把台词交出来"）同一支金色，不做渐变 */
  color: var(--gold);
}
.lede { font-size: 15.5px; color: #b9c4e2; margin: 0 0 24px; max-width: 620px; }

/* 首屏文字压在插画上，给一点投影把笔画托起来（不改字号与配色） */
.hero h1, .hero .lede, .hero .sub { text-shadow: 0 1px 3px rgba(4, 7, 18, .8), 0 8px 28px rgba(4, 7, 18, .6); }
.acts { display: flex; gap: 12px; flex-wrap: wrap; }

/* 功能页（台词库）的 hero：首屏要给列表让位，品牌区压到一半高 */
.hero-compact { padding: 34px 0 24px; grid-template-columns: 1fr 190px; gap: 26px; }
.hero-compact h1 { font-size: clamp(24px, 2.5vw, 32px); margin-bottom: 10px; }
.hero-compact .lede { font-size: 14.5px; margin-bottom: 0; max-width: 680px; }
.hero-compact .eyebrow { margin-bottom: 12px; }
.hero-compact .medallion img { width: 150px; }
.hero-compact .medallion .halo { width: 196px; height: 196px; }
.hero-compact .medallion .halo.h2 { width: 232px; height: 232px; }
.hero-compact .medallion .glow { width: 182px; height: 182px; }

/* 徽记 */
.medallion { position: relative; display: grid; place-items: center; flex: 0 0 auto; }
.medallion img {
  /* 只给宽度，高度由 aspect-ratio 等比推导。
     若同时被 HTML 的 height 表现属性锁死，图片会被拉成 232x180 的扁形。 */
  width: 232px;
  height: auto;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  position: relative;
  z-index: 2;
  animation: qe-float 7s ease-in-out infinite;
}
.medallion .halo {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px dashed rgba(94, 201, 255, .32);
  animation: qe-spin2 46s linear infinite;
}
.medallion .halo.h2 { width: 350px; height: 350px; border-style: solid; border-color: rgba(233, 195, 122, .18); animation-duration: 72s; animation-direction: reverse; }
.medallion .glow {
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 201, 255, .30), transparent 66%);
  filter: blur(22px);
}
@keyframes qe-spin2 { to { transform: rotate(360deg); } }
@keyframes qe-float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
  .medallion img, .medallion .halo { animation: none; }
}

/* ---- 通用区块 ---- */
section { padding: 42px 0; }
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 0;
  color: var(--gold-2);
}
.divider::before, .divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.divider i {
  width: 9px; height: 9px;
  background: var(--gold-2);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(233, 195, 122, .5);
}
h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .6px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}
h2::before {
  content: "";
  width: 4px; height: 17px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--arcane), var(--arcane-2));
  box-shadow: 0 0 10px rgba(94, 201, 255, .6);
}
h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.sub { color: var(--dim); font-size: 14px; margin: 0 0 22px; }
p { margin: 0 0 12px; }
.muted { color: var(--dim); font-size: 13.5px; }

small, .tag { font-size: 12px; }

code {
  background: rgba(94, 201, 255, .10);
  border: 1px solid rgba(94, 201, 255, .22);
  border-radius: 5px;
  padding: 1px 7px;
  font-family: ui-monospace, Consolas, "Cascadia Mono", monospace;
  font-size: 13px;
  color: #a8dfff;
}

/* ---- 按钮 ---- */
.btn, button {
  display: inline-block;
  border: 0;
  border-radius: 9px;
  padding: 10px 22px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: .18s;
  background: linear-gradient(180deg, #f0d091, var(--gold-2));
  color: #1a1508;
  box-shadow: 0 6px 18px -8px rgba(233, 195, 122, .8);
}
.btn:hover, button:hover { filter: brightness(1.08); transform: translateY(-1px); }
button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(233, 195, 122, .38);
  box-shadow: none;
}
.btn.ghost:hover { background: var(--gold-soft); }

/* ---- 卡片 ---- */
.grid { display: grid; gap: 14px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }

.panel, .card, .item, .stat {
  position: relative;
  background: linear-gradient(180deg, rgba(23, 33, 66, .72), rgba(12, 18, 38, .72));
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.panel { padding: 22px 24px; }
.card { padding: 16px 18px; transition: .2s; }
.card:hover { border-color: rgba(233, 195, 122, .40); transform: translateY(-2px); }
.card .k { font-size: 12.5px; color: var(--dim); letter-spacing: .4px; margin-bottom: 5px; }
.card .v { font-size: 14.5px; word-break: break-word; }

/* ---- 步骤 ---- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 20px 52px;
  margin: 0;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid rgba(233, 195, 122, .42);
  border-radius: 50%;
  background: var(--gold-soft);
}
.steps li::after {
  content: "";
  position: absolute;
  left: 17px; top: 36px; bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, var(--line-2), transparent);
}
.steps li:last-child::after { display: none; }
.steps b { color: var(--gold); font-weight: 600; }
.steps .dialist { list-style: none; margin: 12px 0 2px; padding: 0; }
.steps .dialist li { position: static; counter-increment: none; padding: 4px 0; font-size: 14px; color: var(--dim); }
.steps .dialist li::before { display: none; }
.steps .dialist code { margin-right: 8px; }

/* ---- 表单 ---- */
textarea, input[type="text"], input[type="url"], select {
  width: 100%;
  background: rgba(7, 11, 26, .78);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 11px 13px;
  font-size: 14px;
  font-family: inherit;
  transition: .15s;
}
textarea {
  min-height: 200px;
  font-family: ui-monospace, Consolas, "Cascadia Mono", monospace;
  font-size: 13px;
  line-height: 1.65;
  resize: vertical;
}
textarea:focus, input:focus, select:focus {
  outline: none;
  border-color: rgba(94, 201, 255, .55);
  box-shadow: 0 0 0 3px rgba(94, 201, 255, .10);
}
select { width: auto; min-width: 130px; cursor: pointer; }
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 13px; color: var(--dim); margin-bottom: 6px; }

.drop {
  margin-top: 12px;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  color: var(--dim);
  font-size: 13.5px;
  cursor: pointer;
  background: rgba(94, 201, 255, .04);
  transition: .18s;
}
.drop:hover, .drop.over {
  border-color: var(--gold);
  color: var(--text);
  background: var(--gold-soft);
}
.drop .small { display: block; margin-top: 8px; font-size: 12.5px; line-height: 1.65; text-align: left; }
.small code { word-break: break-all; }

.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.row input[type="text"] { flex: 1; min-width: 190px; }
.row .lbl { font-size: 13px; color: var(--dim); }
.row select { flex: 1; min-width: 220px; }

.msg {
  margin-top: 14px;
  padding: 11px 15px;
  border-radius: 9px;
  font-size: 13.5px;
  display: none;
}
.msg.show { display: block; }
.msg.ok { background: rgba(99, 201, 138, .12); border: 1px solid rgba(99, 201, 138, .5); color: #8fe0ad; }
.msg.err { background: rgba(226, 102, 92, .12); border: 1px solid rgba(226, 102, 92, .5); color: #f09b93; }
.msg.info { background: rgba(94, 201, 255, .08); border: 1px solid var(--line-2); color: #a9c2ea; }

/* ---- 数据 ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(146px, 1fr)); gap: 12px; }
.stat { padding: 16px 18px; overflow: hidden; }
.stat::after {
  content: "";
  position: absolute;
  right: -22px; top: -22px;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 201, 255, .22), transparent 68%);
}
.stat .n {
  font-size: 27px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.stat .l { font-size: 12.5px; color: var(--dim); margin-top: 2px; }

.bars { display: grid; gap: 11px; }
.bar .t {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 4px;
}
.bar .t span:last-child { color: var(--dim); font-variant-numeric: tabular-nums; }
.bar .b {
  height: 7px;
  background: rgba(7, 11, 26, .8);
  border: 1px solid var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.bar .b i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--arcane), var(--arcane-2) 70%, var(--gold));
  box-shadow: 0 0 12px rgba(94, 201, 255, .55);
  transition: width .5s ease;
}
/* 还没开工的方言：合并成一行文字，不画空轨道 */
.bar-pending .t span:first-child { color: var(--dim); }
.bar-pending .t span:last-child {
  color: var(--gold-2); border: 1px solid rgba(233, 195, 122, .28);
  background: var(--gold-soft); border-radius: 999px; padding: 0 9px; font-size: 11.5px;
}
.bar-note { margin: 6px 0 0; font-size: 11.5px; color: #6f7da2; line-height: 1.5; }

/* 语音版本：每个语音列出已上线的客户端版本，不展示完成度。 */
.voice-cover { display: grid; gap: 12px; }
.vc {
  position: relative;
  background: linear-gradient(180deg, rgba(23, 33, 66, .72), rgba(12, 18, 38, .72));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 18px 15px;
}
.vc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.vc-head h4 { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--gold); letter-spacing: .02em; }
.vc-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; font-style: normal; }
.vc-legend em { font-style: normal; color: var(--dim); position: relative; padding-left: 11px; white-space: nowrap; }
.vc-legend em::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 2px; background: var(--gold);
}
/* 图例色块按客户端版本着色，与进度条填充一一对应 */
.vc-legend em.fl-era::before     { background: #d98a4f; }
.vc-legend em.fl-forever::before { background: #f0c95a; }
.vc-legend em.fl-tbc::before     { background: var(--ok); }
.vc-legend em.fl-wlk::before     { background: var(--arcane); }
.vc-badge {
  font-size: 11px; letter-spacing: .04em; color: var(--ok);
  border: 1px solid rgba(99, 201, 138, .35); background: rgba(47, 158, 99, .10);
  border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}
.vc-vers { display: flex; gap: 7px; flex-wrap: wrap; }
.vc-vtag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px;
  background: rgba(7, 11, 26, .55); color: #c9b98d;
  font-size: 11.5px; line-height: 1; white-space: nowrap;
}
.vc-vtag::before {
  content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--gold);
}
.vc-vtag.fl-era::before     { background: #d98a4f; }
.vc-vtag.fl-forever::before { background: #f0c95a; }
.vc-vtag.fl-tbc::before     { background: var(--ok); }
.vc-vtag.fl-wlk::before     { background: var(--arcane); }
.vc-track { display: flex; gap: 3px; height: 26px; width: 100%; }
.vc-seg {
  position: relative; min-width: 0; height: 100%;
  background: rgba(7, 11, 26, .85);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.vc-seg i {
  position: absolute; left: 0; top: 0; bottom: 0; display: block;
  opacity: .9;
  transition: width .5s ease;
}
/* 四个客户端版本各自色系：60经典铜、无限服金黄、TBC绿、WLK蓝 */
.vc-seg.fl-era i     { background: linear-gradient(90deg, #a35a2e, #d98a4f); }
.vc-seg.fl-forever i { background: linear-gradient(90deg, #c8952f, #f0c95a); }
.vc-seg.fl-tbc i     { background: linear-gradient(90deg, #2f9e63, #6fd49a); }
.vc-seg.fl-wlk i     { background: linear-gradient(90deg, #2f7fc4, #6fcbf5); }
.vc-seg.vc-hold { background: repeating-linear-gradient(135deg, rgba(224, 163, 63, .10) 0 6px, rgba(7, 11, 26, .85) 6px 12px); }
.vc-seg.vc-off { background: rgba(7, 11, 26, .5); border-style: dashed; }
/* 无填充段也带版本色边框，方言的暂缓/未覆盖段仍可一眼分辨属于哪个版本 */
.vc-seg.fl-era.vc-hold,      .vc-seg.fl-era.vc-off      { border-color: rgba(217, 138, 79, .5); }
.vc-seg.fl-forever.vc-hold,  .vc-seg.fl-forever.vc-off  { border-color: rgba(240, 201, 90, .5); }
.vc-seg.fl-tbc.vc-hold,      .vc-seg.fl-tbc.vc-off      { border-color: rgba(99, 201, 138, .5); }
.vc-seg.fl-wlk.vc-hold,      .vc-seg.fl-wlk.vc-off      { border-color: rgba(94, 201, 255, .5); }
.vc-seg span {
  position: relative; z-index: 1; font-size: 11px; line-height: 1;
  font-variant-numeric: tabular-nums; color: #f3e9d4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9); white-space: nowrap;
}
.vc-seg.vc-hold span { color: var(--warn); text-shadow: none; }
.vc-seg.vc-off span { color: #637096; text-shadow: none; }
.vc-note { margin: 8px 0 0; font-size: 11.5px; color: #6f7da2; line-height: 1.5; }
/* 语音版本表：语言为行、客户端版本为列，✓ 表示已支持 */
.vc-table-wrap {
  width: 100%; overflow-x: auto;
  background: rgba(7, 11, 26, .42); border: 1px solid var(--line); border-radius: var(--r);
}
.vc-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.vc-table th, .vc-table td {
  border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: center;
}
.vc-table th:not(:first-child), .vc-table td:not(:first-child) {
  border-left: 1px solid rgba(217, 178, 106, .07);
}
.vc-table thead th {
  color: #8d97ae; font-size: 11.5px; font-weight: 600; letter-spacing: .03em;
  background: rgba(7, 11, 26, .45); white-space: nowrap;
}
.vc-table thead th:first-child, .vc-table td:first-child { width: 36%; text-align: left; }
.vc-table tbody tr:hover td { background: rgba(217, 178, 106, .05); }
.vc-lang { color: var(--g-text); font-weight: 500; }
.vc-fl { display: inline-flex; align-items: center; gap: 5px; }
.vc-fl::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); }
.vc-fl.fl-era::before     { background: #d98a4f; }
.vc-fl.fl-forever::before { background: #f0c95a; }
.vc-fl.fl-tbc::before     { background: var(--ok); }
.vc-fl.fl-wlk::before     { background: var(--arcane); }
.vc-check { color: var(--ok); font-weight: 700; }
.vc-no { color: #46506d; }
.vc-group-row th {
  text-align: left; color: #8d97ae; font-size: 11px; letter-spacing: .12em;
  padding-top: 12px; border-bottom: 1px solid var(--line);
  background: rgba(217, 178, 106, .05);
}
.vc-foot { margin: 9px 0 0; font-size: 11.5px; color: #6f7da2; }
@media (max-width: 600px) {
  .vc-table th, .vc-table td { padding: 7px 5px; font-size: 11.5px; }
  .vc-table thead th { font-size: 10.5px; }
  .vc-table thead th:first-child, .vc-table td:first-child { width: 32%; }
}
/* 语音支持状态总览：已支持 / 筹备中 / 转换中 */
.vc-summary {
  display: grid; gap: 12px;
  padding: 14px 18px 15px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: rgba(7, 11, 26, .42);
}
.vc-summary-row { display: flex; align-items: flex-start; gap: 14px; }
.vc-summary-row + .vc-summary-row {
  padding-top: 12px;
  border-top: 1px solid rgba(217, 178, 106, .07);
}
.vc-summary-label {
  flex: 0 0 64px; padding-top: 3px;
  color: var(--gold); font-size: 12.5px; font-weight: 600;
}
.vc-empty { padding-top: 3px; color: #6f7da2; font-size: 12px; }
@media (max-width: 600px) {
  .vc-summary-row { flex-direction: column; gap: 7px; }
  .vc-summary-label { flex-basis: auto; }
}
.vc-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.vtag {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 11px; font-size: 12.5px; color: var(--dim);
  background: rgba(122, 158, 255, .05);
}
.vtag em { font-style: normal; font-size: 11px; color: #6f7da2; }
.vtag-on { border-color: rgba(99, 201, 138, .30); background: rgba(47, 158, 99, .08); color: #b9e6ca; }
.vtag-doing { border-color: rgba(94, 201, 255, .38); background: rgba(94, 201, 255, .09); color: #9ad9ff; }
.vtag-doing em { color: #7fc4ee; }

/* ---- 列表条目 ---- */
.item { padding: 15px 17px; margin-bottom: 10px; transition: .18s; }
.item:hover { border-color: rgba(233, 195, 122, .34); }
.item .meta { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 8px; }
.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 9px;
  background: rgba(122, 158, 255, .07);
  color: #a8b6da;
  line-height: 1.7;
  white-space: nowrap;
}
.tag.gold { border-color: rgba(233, 195, 122, .42); background: var(--gold-soft); color: var(--gold); }
.tag.blue { border-color: rgba(94, 201, 255, .38); background: rgba(94, 201, 255, .09); color: #9ad9ff; }
.tag.seed { border-color: rgba(138, 123, 255, .40); background: rgba(138, 123, 255, .10); color: #bdb3ff; }
.item .txt { font-size: 14px; white-space: pre-wrap; word-break: break-word; color: #dbe3f6; }

.pager { display: flex; gap: 12px; align-items: center; margin-top: 18px; font-size: 13.5px; flex-wrap: wrap; }
.pager button { padding: 7px 16px; font-size: 13.5px; }
.pager .pgin { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-size: 13.5px; }
.pager #pageJump {
  width: 58px; padding: 6px 8px; font: inherit; font-size: 13.5px;
  color: var(--text); background: rgba(255,255,255,.04);
  border: 1px solid var(--line); border-radius: 7px;
}
.pager #pageJump:focus { outline: none; border-color: rgba(122,158,255,.5); }

/* ---- 页脚 ----
   只保留「加群 / 充电」两个出口：两张与正文 .card 同源的动作卡（同一渐变底 +
   1px 描边 + 14px 圆角），默认可有可无，悬停才点亮金色并轻抬 2px。
   删掉原来的四列链接后整块收窄居中，避免留下一条空荡的通栏。 */
footer.site {
  margin-top: 30px;
  padding: 38px 0 52px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
  background: linear-gradient(180deg, transparent, rgba(7, 10, 22, .7));
}
footer.site .fans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}
/* 两行栅格：第一行「图标 / 标题+主值 / 动作」，第二行注释（从文字列起，跨到右边）。
   注释单独占行是为了容纳「所有赞助将用于UP主本人吃喝玩乐与快活」这种长句 ——
   塞进第一行会顶到卡片右边框、和「前往 ›」挤在一起。 */
footer.site .fan {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "i t a"
    ". n n";
  align-items: center;
  column-gap: 14px;
  row-gap: 3px;
  padding: 15px 18px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(23, 33, 66, .72), rgba(12, 18, 38, .72));
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: .2s;
}
footer.site .fan:hover {
  color: var(--text);
  border-color: rgba(233, 195, 122, .40);
  background: linear-gradient(180deg, rgba(32, 44, 82, .80), rgba(14, 21, 44, .80));
  transform: translateY(-2px);
}
footer.site .fi {
  grid-area: i;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(233, 195, 122, .26);
}
footer.site .fi svg { width: 20px; height: 20px; }
footer.site .ft { grid-area: t; min-width: 0; display: grid; gap: 1px; line-height: 1.45; }
footer.site .fk { font-size: 11.5px; letter-spacing: .6px; color: var(--dim); }
footer.site .fv { font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
footer.site .fn { grid-area: n; font-size: 11.5px; line-height: 1.4; color: #6d7ba0; }
footer.site .fa { grid-area: a; font-size: 12.5px; color: var(--gold); white-space: nowrap; }
footer.site .fan:hover .fa { color: #f3d79b; }
footer.site .tail {
  max-width: 720px;
  margin: 22px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.75;
  text-align: center;
  text-wrap: balance;
  color: #6d7ba0;
}
/* 640px 以下并排会让「QQ 群 782957402」和右侧箭头挤成两行（实测 570px 时卡高
   89→111），所以直接改成上下两张。 */
@media (max-width: 640px) {
  footer.site .fans { grid-template-columns: 1fr; }
  footer.site .fa { display: none; }
}

/* 台词库顶部统计区：比普通 section 紧一点，首屏留给列表 */
.ov-wrap { padding: 26px 0 6px; }

/* ---- 台词库：左侧筛选 + 右侧列表 ---- */
.browse {
  display: grid;
  grid-template-columns: 244px 1fr;
  gap: 26px;
  align-items: start;
}
/* 筛选栏常驻左侧。必须限高 + 内部滚动：整栏实测 1156px，在 1440×900 这类
   屏幕上「语音版本」「客户端」两组会永远滚不到（sticky 元素高过视口时，
   页面怎么滚它的底部都贴着视口外沿）。 */
.filters {
  position: sticky; top: 80px; display: grid; gap: 4px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(233, 195, 122, .35) transparent;
}
.filters::-webkit-scrollbar { width: 8px; }
.filters::-webkit-scrollbar-track { background: transparent; }
.filters::-webkit-scrollbar-thumb {
  background: rgba(233, 195, 122, .28);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.filters:hover::-webkit-scrollbar-thumb { background: rgba(233, 195, 122, .45); background-clip: padding-box; }
/* 移动端折叠开关：桌面隐藏 */
.filters-toggle { display: none; }
.fgroup { padding: 12px 0 14px; border-bottom: 1px solid var(--line); }
.fgroup:last-child { border-bottom: 0; }
.fgroup h5 {
  margin: 0 0 9px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: var(--gold-2);
}
.fitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 5px 9px;
  margin: 0 0 2px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--dim);
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: .15s;
  box-shadow: none;
}
.fitem:hover { background: rgba(122, 158, 255, .09); color: var(--text); transform: none; filter: none; }
.fitem .c { font-size: 12px; color: #6f7da2; font-variant-numeric: tabular-nums; }
.fitem.on {
  background: var(--gold-soft);
  border-color: rgba(233, 195, 122, .36);
  color: var(--gold);
}
.fitem.on .c { color: var(--gold-2); }
.fitem.zero { opacity: .42; }
.fnote { font-size: 11.5px; color: #6f7da2; line-height: 1.6; margin: 6px 0 0; }
.fselect {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(122, 158, 255, .22);
  border-radius: 7px;
  background: rgba(15, 22, 42, .6);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}
.fselect:focus { outline: none; border-color: rgba(233, 195, 122, .5); }

.rbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.rbar .n { font-size: 20px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.rbar .u { font-size: 12.5px; color: var(--dim); margin-right: 4px; }
.rbar input[type="text"] { flex: 1; min-width: 160px; }
.rbar select { min-width: 124px; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(233, 195, 122, .34);
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 12.5px;
  cursor: pointer;
}
.chip b { font-weight: 600; }
.chip:hover { border-color: var(--gold); }
/* 「重置筛选」是动作不是条件：用文字链接，别和筛选胶囊同一个壳、也别带 × */
.chip-reset {
  display: inline-flex; align-items: center;
  padding: 3px 4px; margin-left: 2px;
  background: none; border: 0;
  color: var(--dim); font: inherit; font-size: 12.5px;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.chip-reset:hover { color: var(--gold); }

/* 列表条目 */
.brow {
  padding: 16px 18px;
  margin-bottom: 10px;
  background: linear-gradient(180deg, rgba(23, 33, 66, .66), rgba(12, 18, 38, .66));
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: .18s;
}
.brow:hover { border-color: rgba(233, 195, 122, .32); }
.brow .hd { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; }
.brow .k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(94, 201, 255, .12);
  border: 1px solid rgba(94, 201, 255, .3);
  color: #9ad9ff;
}
.brow .k.quest { background: var(--gold-soft); border-color: rgba(233, 195, 122, .36); color: var(--gold); }
.brow .nm { font-size: 15px; font-weight: 600; color: #f0e2c2; }
.brow .id { font-size: 12px; color: #6f7da2; font-variant-numeric: tabular-nums; }
.brow .tx { font-size: 14px; color: #dbe3f6; white-space: pre-wrap; word-break: break-word; line-height: 1.75; }
/* 正文默认压到 2 行：一整条实测 234px，一屏只能看 1.9 条；
   折叠后同样一屏能看到 6~8 条，需要全文再点「展开」。 */
.brow .tx.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.brow .tx-more {
  display: inline-block; margin-top: 6px; padding: 0;
  background: none; border: 0;
  color: var(--gold-2); font: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.brow .tx-more:hover { color: var(--gold); }
.brow .ft { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.st {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 1px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(122, 158, 255, .07);
  color: #a8b6da;
}
.st.done { border-color: rgba(99, 201, 138, .45); background: rgba(99, 201, 138, .12); color: #8fe0ad; }
.st.todo { border-color: rgba(224, 163, 63, .45); background: rgba(224, 163, 63, .12); color: #f0c885; }
.st.by { border-color: rgba(167, 139, 250, .42); background: rgba(167, 139, 250, .10); color: #c4b0f5; }
/* 投稿日期：只出现在有贡献者的行上。待配音的会带「已等 N 天」，
   颜色用中性灰蓝，避免和「已配音 / 待配音」抢注意力。 */
.st.date { border-color: rgba(122, 158, 255, .26); background: rgba(122, 158, 255, .06); color: #93a4c9; }
.st .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.empty { padding: 40px 20px; text-align: center; color: var(--dim); }

/* ---- 进度条行（按客户端 / 按类型）---- */
.sect {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  color: #8ea3c8;
}
.sect::before {
  content: "";
  display: inline-block;
  width: 3px; height: 12px;
  margin-right: 8px;
  vertical-align: -1px;
  background: var(--gold, #d8b676);
  border-radius: 2px;
}
.progwrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.prow {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(90px, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(122, 158, 255, .04);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.prow:hover { border-color: rgba(122, 158, 255, .38); background: rgba(122, 158, 255, .08); }
.prow.on { border-color: rgba(216, 182, 118, .6); background: rgba(216, 182, 118, .1); }
.prow.zero { opacity: .45; }
.prow .pn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .nt { font-style: normal; font-size: 11px; color: var(--dim); }
.prow .pb {
  position: relative;
  height: 8px;
  min-width: 80px;
  border-radius: 999px;
  background: rgba(122, 158, 255, .13);
  overflow: hidden;
}
.prow .pb > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4b8fd6, #63c98a);
  transition: width .5s ease;
}
.prow .pc { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- 可访问性：跳转链接 + 拖拽区键盘聚焦 ---- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  background: var(--gold);
  color: #1a1508;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: none;
}
.skip:focus { left: 12px; top: 12px; outline: 2px solid #fff; }
.drop:focus-visible,
.drop:focus {
  outline: 2px solid rgba(94, 201, 255, .75);
  outline-offset: 2px;
  border-color: var(--gold);
  color: var(--text);
  background: var(--gold-soft);
}

/* ---- 移动端 ---- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding: 18px 0 16px; text-align: left; gap: 12px; }
  .hero-compact { padding: 12px 0 10px; gap: 10px; }
  .hero-compact h1 { font-size: 24px; margin-bottom: 8px; }
  .hero-compact .lede { font-size: 13.5px; }
  /* 说明文字只压字号、不截断：截了没有展开入口，等于把这部分说明永久藏掉 */
  .fnote { font-size: 11px; line-height: 1.55; }
  .medallion { order: -1; display: none; }
  .browse { grid-template-columns: 1fr; }
  /* 手机上整栏 1156px（约 1.4 屏），默认收起，点「筛选」再展开，
     否则进页面要滚过一整屏才看到第一条台词。 */
  .filters-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; padding: 10px 14px; margin-bottom: 10px;
    border: 1px solid var(--line); border-radius: var(--r);
    background: linear-gradient(180deg, rgba(23, 33, 66, .72), rgba(12, 18, 38, .72));
    color: var(--text); font: inherit; font-size: 13.5px; font-weight: 600;
    cursor: pointer;
  }
  .filters-toggle .ft-l { display: inline-flex; align-items: center; gap: 8px; }
  .filters-toggle .ft-arrow { transition: transform .18s; color: var(--gold-2); }
  .filters-toggle[aria-expanded="true"] .ft-arrow { transform: rotate(180deg); }
  .filters-toggle .ft-n {
    font-size: 11.5px; font-weight: 600; color: var(--gold);
    border: 1px solid rgba(233, 195, 122, .36); background: var(--gold-soft);
    border-radius: 999px; padding: 1px 8px;
  }
  .filters-toggle .ft-n:empty { display: none; }
  .filters {
    display: none; position: static; max-height: none; overflow: visible;
    padding-right: 0; margin-bottom: 16px;
  }
  .filters.open { display: grid; }
  .medallion img { width: 76px; }
  .medallion .halo { width: 112px; height: 112px; }
  .medallion .halo.h2 { width: 132px; height: 132px; }
  .medallion .glow { width: 104px; height: 104px; }
  header.site .wrap { height: auto; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; }
  nav.main { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 2px; scrollbar-width: none; }
  nav.main::-webkit-scrollbar { display: none; }
  nav.main a { white-space: nowrap; flex: 0 0 auto; }
  section { padding: 24px 0; }
  /* 统计卡在手机上改成横向滑动：5 张卡按 2 列排要占 3 行（约 230px），
     横滑一行只占 ~90px，首屏才腾得出来给正文。 */
  .stats {
    display: flex; gap: 8px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px; margin-right: -18px; padding-right: 18px;
    scrollbar-width: none;
  }
  .stats::-webkit-scrollbar { display: none; }
  .stat { flex: 0 0 132px; scroll-snap-align: start; padding: 11px 13px; }
  .stat .n { font-size: 21px; }
  .stat .l { font-size: 11.5px; }
  .ov-wrap { padding: 10px 0 2px !important; }
  .progwrap { grid-template-columns: 1fr; }
  .prow { grid-template-columns: minmax(0, 1fr) auto; }
  .prow .pb { grid-column: 1 / -1; }
}

/* ---- 下载表格（插件下载页）---- */
.tbl {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(23, 33, 66, .72), rgba(12, 18, 38, .72));
}
table.dl { width: 100%; border-collapse: collapse; min-width: 540px; }
table.dl th, table.dl td {
  padding: 13px 12px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
table.dl thead th {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dim);
  letter-spacing: .4px;
  white-space: nowrap;
  background: rgba(122, 158, 255, .06);
}
table.dl tbody tr:last-child td { border-bottom: 0; }
table.dl tbody tr:hover { background: var(--gold-soft); }
table.dl td:first-child { white-space: nowrap; }
table.dl td:first-child code { font-size: 12px; }
table.dl th:nth-child(2), table.dl td:nth-child(2) { width: 30%; }
table.dl td:last-child { text-align: right; white-space: nowrap; }
table.dl td.upd { white-space: nowrap; color: var(--dim); font-variant-numeric: tabular-nums; }
table.dl td.upd .ver { display: block; font-size: 11px; color: var(--gold); font-weight: 600; letter-spacing: .3px; margin-top: 2px; }
table.dl td.note { font-size: 12.5px; color: var(--dim); line-height: 1.55; max-width: 330px; }
table.dl td.note code { font-size: 11.5px; }
table.dl td.note b { color: var(--gold); font-weight: 600; }
.btn.sm { padding: 7px 16px; font-size: 13px; border-radius: 8px; }
.dl-btns { display: inline-flex; flex-direction: column; gap: 6px; align-items: stretch; }
.dl-btns .btn.sm { width: 76px; text-align: center; padding: 6px 10px; }

/* 安装器推荐卡 */
.installer{
  border:1px solid rgba(233,195,122,.30);
  background:linear-gradient(180deg, rgba(233,195,122,.07), rgba(233,195,122,.02));
  border-radius:16px;
  padding:22px 24px 24px;
  margin:0 0 26px;
}
.installer .ihead{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.installer .ihead h3{margin:0;font-size:19px;font-weight:700;letter-spacing:.4px;color:#f2e2c0}
.installer .ihead .ver{font-size:12px;color:var(--gold);font-weight:600;letter-spacing:.3px}
.installer .desc{color:#c3cde8;font-size:14.5px;line-height:1.65;margin:0 0 16px;max-width:660px}
.installer .acts{margin-bottom:10px}
.installer .note-min{color:var(--dim);font-size:13px;margin:0 0 16px}
/* 安装被拦截是"会导致装不上"的实操提示，不能和平台说明混在同一行同一灰度 */
.installer .note-min + .note-warn{margin-top:-8px}
.installer .note-warn{
  color:#e9c37a;font-size:12.5px;line-height:1.6;margin:0 0 16px;
  padding:7px 12px;border-left:3px solid rgba(233,195,122,.65);
  background:rgba(233,195,122,.08);border-radius:0 7px 7px 0;
}
.installer .feats{list-style:none;margin:0 0 18px;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:9px 22px}
.installer .feats li{position:relative;padding-left:23px;font-size:13.5px;color:#c3cde8;line-height:1.5}
.installer .feats li::before{content:"";position:absolute;left:1px;top:5px;width:14px;height:14px;border-radius:50%;background:var(--gold-soft);border:1px solid rgba(233,195,122,.55)}
.installer .feats li::after{content:"";position:absolute;left:5px;top:8px;width:5px;height:8px;border:solid var(--gold);border-width:0 2px 2px 0;transform:rotate(45deg)}
.clients{margin:20px 0 0}
.cl-h{font-size:13px;font-weight:700;color:var(--gold);letter-spacing:.4px;margin-bottom:14px}
.client-grid{display:flex;flex-wrap:wrap;gap:16px 12px;margin:0 0 14px}
.client-grid .ci{display:flex;flex-direction:column;align-items:center;width:76px;text-align:center}
.client-grid .badge{width:54px;height:54px;object-fit:contain;display:block;filter:drop-shadow(0 5px 12px rgba(0,0,0,.45))}
.client-grid .cap{margin-top:8px;font-size:11.5px;line-height:1.35;color:#c3cde8;min-height:31px;display:flex;align-items:flex-start;justify-content:center}
.cl-note{font-size:12.5px;color:var(--dim);line-height:1.6;margin:0}
.installer .shot{margin:2px 0 0;border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:0 14px 40px rgba(2,5,16,.55);background:#0b1020}
.installer .shot img{display:block;width:100%;height:auto}
.subhead{margin:32px 0 8px;font-size:16px;font-weight:700;color:var(--gold);letter-spacing:.4px}
@media (max-width:640px){ .installer{padding:18px 16px 20px} .installer .ihead h3{font-size:17px} }

@media (max-width: 640px) {
  table.dl { min-width: 460px; }
  table.dl th, table.dl td { padding: 11px 12px; }
}

/* 锚点跳到宝典时别被吸顶导航盖住 */
#codex { scroll-margin-top: 92px; }

/* ---- 艾泽拉斯宝典（首页）· 配色与插件宝典一致：深棕黑底 + 金字 ---------- */
.codex {
  /* 和游戏里宝典窗口同一套色：背景深棕黑，文字金，选中行蓝灰高亮 */
  --g-bg: #17140f;
  --g-bg2: #201b14;
  --g-text: #e8dcc0;
  --g-gold: #d9b26a;
  --g-gold2: #a5854a;
  --g-dim: #9a8d74;
  --g-line: rgba(217, 178, 106, .16);
  --g-line2: rgba(217, 178, 106, .30);
  --g-sel: rgba(122, 158, 220, .22);
  --g-hover: rgba(217, 178, 106, .08);
  border: 1px solid var(--g-line2); border-radius: var(--r);
  background: var(--g-bg); color: var(--g-text); overflow: hidden; margin-top: 6px;
}
.cx-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 11px 16px; border-bottom: 1px solid var(--g-line); background: var(--g-bg2);
}
.cx-head-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cx-desc { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--g-dim); max-width: 640px; }
@media (max-width: 900px) { .cx-desc { font-size: 12px; } }
.cx-title { margin: 0; font-size: 19px; font-weight: 700; color: var(--g-gold); letter-spacing: .05em; }
.cx-langs { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.cx-lang-row { display: flex; gap: 6px; flex-wrap: wrap; }
.cx-lang-g { align-self:center; color:#8d97ae; font-size:11px; letter-spacing:.08em; margin:0 2px 0 10px; }
.cx-lang-row .cx-lang-g:first-child { margin-left:0; }
.cx-pill {
  border: 1px solid var(--g-line2); background: transparent; color: var(--g-dim);
  border-radius: 999px; padding: 5px 13px; font-size: 12.5px; cursor: pointer; font-family: inherit;
}
.cx-pill:hover { color: var(--g-text); }
.cx-pill.on { background: rgba(217, 178, 106, .14); border-color: var(--g-gold2); color: var(--g-gold); }
.cx-body { display: grid; grid-template-columns: 46% 54%; grid-template-rows: minmax(0, 1fr); height: 600px; }
@media (max-width: 900px) { .cx-body { height: auto; } }
/* 手机上是上下叠的：树不限高会被几百行撑开，右侧正文要翻好几屏才看得到 */
@media (max-width: 900px) { .cx-tree { max-height: 42vh; } }
@media (max-width: 900px) { .cx-body { grid-template-columns: 1fr; } }
.cx-left { border-right: 1px solid var(--g-line); min-width: 0; display: flex; flex-direction: column; }
@media (max-width: 900px) { .cx-left { border-right: 0; border-bottom: 1px solid var(--g-line); } }
.cx-tabs { display: flex; border-bottom: 1px solid var(--g-line); background: var(--g-bg2); }
.cx-tab {
  flex: 1; border: 0; border-right: 1px solid var(--g-line); background: transparent; color: var(--g-dim);
  padding: 9px 4px; font-size: 13.5px; cursor: pointer; font-family: inherit;
}
.cx-tab:last-child { border-right: 0; }
.cx-tab.on { background: #d8d2c4; color: #17140f; font-weight: 600; }
.cx-search { position: relative; padding: 8px 12px; border-bottom: 1px solid var(--g-line); }
.cx-search svg {
  position: absolute; left: 22px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%);
  fill: none; stroke: var(--g-dim); stroke-width: 1.6; stroke-linecap: round;
}
.cx-search input {
  width: 100%; box-sizing: border-box; background: #100e0a; border: 1px solid var(--g-line);
  border-radius: 8px; color: var(--g-text); font-size: 13px; padding: 7px 10px 7px 30px; font-family: inherit;
}
.cx-search input:focus { outline: none; border-color: var(--g-gold2); }
/* 左栏列表一路铺到面板下沿（和游戏里一样），不再留空白 */
.cx-tree { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 4px 0 8px; }
.cx-row {
  display: flex; align-items: center; gap: 6px; height: 30px; padding-right: 12px;
  cursor: pointer; font-size: 13px; color: var(--g-text); border-bottom: 1px solid rgba(217, 178, 106, .08);
}
.cx-row:hover { background: var(--g-hover); }
.cx-row.sel { background: var(--g-sel); }
.cx-arw { flex: none; width: 13px; color: var(--g-dim); font-size: 10px; }
.cx-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 地区行后面的推荐等级（「1-10 级」）：比地区名淡一档，别和名字抢眼 */
.cx-lv { margin-left: 7px; color: #8a8578; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.cx-cont .cx-name { color: var(--g-gold); font-weight: 600; }
.cx-zone .cx-name, .cx-city .cx-name, .cx-dungeon .cx-name { color: var(--g-text); }
.cx-chain .cx-name, .cx-subsec .cx-name, .cx-bosssub .cx-name { color: #cbb98f; }
.cx-quest .cx-name, .cx-region .cx-name, .cx-item .cx-name, .cx-boss .cx-name { color: #d5c9ab; }
.cx-city .cx-name::before, .cx-dungeon .cx-name::before { content: "\25C7\00a0"; color: var(--g-gold2); }
.cx-boss .cx-name::before { content: "\2726\00a0"; color: var(--g-gold2); }
.cx-subsec .cx-name { font-size: 12.5px; }
.cx-row .cnt { flex: none; color: #8a8578; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.cx-row .cnt b { color: #7fb0e8; font-weight: 600; }
.cx-tree::-webkit-scrollbar, .cx-right::-webkit-scrollbar { width: 10px; }
.cx-tree::-webkit-scrollbar-track, .cx-right::-webkit-scrollbar-track {
  background: #120f0a; border-left: 1px solid var(--g-line);
}
.cx-tree::-webkit-scrollbar-thumb, .cx-right::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6b5a34, #4a3d22);
  border: 1px solid rgba(217, 178, 106, .45); border-radius: 2px;
}
.cx-tree::-webkit-scrollbar-thumb:hover, .cx-right::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #8a7442, #5d4d2b);
}
.cx-tree, .cx-right { scrollbar-width: thin; scrollbar-color: #6b5a34 #120f0a; }
.cx-loading, .cx-more { color: var(--g-dim); font-size: 12.5px; cursor: default; }
.cx-more { color: var(--g-gold); cursor: pointer; height: 32px; }
.cx-rhint {
  padding: 6px 12px; color: var(--g-dim); font-size: 12px;
  border-bottom: 1px solid var(--g-line); background: rgba(217, 178, 106, .06);
}
.cx-right { padding: 18px 22px; min-height: 0; overflow: auto; }
@media (max-width: 900px) { .cx-right { overflow: visible; } }
/* 右栏的分段块（接受任务 / 进度 / 完成 / 解说）。左栏的分组行已改走 .cx-zone，
   这里的样式只作用于右栏，别再挂到树上。 */
.cx-right .cx-sec { margin-bottom: 16px; background: rgba(217, 178, 106, .05); }
.cx-rtitle { font-size: 20px; font-weight: 700; color: var(--g-gold); line-height: 1.35; }
.cx-rsub { font-size: 12px; color: var(--g-dim); margin: 4px 0 12px; }
.cx-linehead { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 6px; min-width: 0; }
.cx-linewho { min-width: 0; flex: 1; padding-top: 1px; }
.cx-npcline { font-size: 14.5px; font-weight: 700; color: var(--g-gold); line-height: 1.3; }
.cx-linekind { font-size: 11.5px; color: var(--g-dim); margin-top: 3px; letter-spacing: .04em; }
.cx-linehead .cx-play { margin-top: 9px; }
.cx-npcimg {
  flex: none; width: 46px; height: 46px; object-fit: cover; border-radius: 4px;
  border: 2px solid #6b5a34; background: #0d0b07; box-shadow: 0 0 0 1px #1a150c inset, 0 2px 8px rgba(0,0,0,.45);
}
@media (max-width: 560px) {
  .cx-linehead { gap: 8px; }
  .cx-npcimg { width: 40px; height: 40px; }
}
.cx-rimg {
  display: block; width: 256px; max-width: 100%; height: auto; margin: 0 0 14px;
  border: 1px solid var(--g-line2); border-radius: 6px; background: #100e0a;
}
.cx-sech { font-size: 12.5px; color: var(--g-gold2); margin-bottom: 6px; letter-spacing: .05em; }
.cx-para { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.cx-ptext { font-size: 13.5px; line-height: 1.8; color: var(--g-text); white-space: pre-wrap; min-width: 0; flex: 1; }
.cx-note { font-size: 12px; color: var(--g-dim); margin-top: 4px; }
.cx-play {
  flex: none; width: 28px; height: 28px; margin-top: 3px; border-radius: 50%; padding: 0;
  border: 1px solid var(--g-line2); background: #241f16; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.cx-play i {
  width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--g-gold); margin-left: 2px;
}
.cx-play:hover { border-color: var(--g-gold2); }
.cx-play.on { background: rgba(99, 201, 138, .18); border-color: rgba(99, 201, 138, .55); }
.cx-play.on i {
  width: 9px; height: 10px; margin-left: 0; border: 0; color: #8fe0ad;
  background: currentColor; border-left: 3px solid currentColor;
  border-right: 3px solid currentColor; box-sizing: border-box;
}
.cx-play.on:hover { border-color: rgba(99, 201, 138, .85); }
.cx-play.off { opacity: .3; cursor: not-allowed; }

/* 手动下载：方言 / 外语下拉分组 */
.dl-more {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.dl-picker {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 15px 16px 13px;
  background: linear-gradient(180deg, rgba(23, 33, 66, .72), rgba(12, 18, 38, .72));
}
.dl-picker-head h4 {
  margin: 0 0 2px;
  font-size: 15px;
  color: var(--gold);
  letter-spacing: .3px;
}
.dl-picker-head p {
  margin: 0;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.55;
}
.dl-picker-control {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 10px;
}
.dl-picker-control label {
  color: var(--dim);
  font-size: 12.5px;
  white-space: nowrap;
}
.dl-picker select {
  appearance: none;
  min-width: 300px;
  max-width: 100%;
  padding: 9px 34px 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%) calc(100% - 17px) 55% / 6px 6px no-repeat,
    linear-gradient(135deg, var(--gold) 50%, transparent 50%) calc(100% - 11px) 55% / 6px 6px no-repeat,
    rgba(8, 13, 29, .86);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  outline: none;
}
.dl-picker select:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px var(--gold-soft); }
.dlg-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(7, 11, 25, .38);
}
.dlg-item-main { min-width: 0; flex: 1 1 520px; }
.dlg-name { color: var(--text); font-weight: 600; font-size: 13.5px; }
.dlg-meta {
  margin-top: 2px;
  color: var(--gold);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}
.dlg-note { margin-top: 5px; color: var(--dim); font-size: 12.5px; line-height: 1.6; }
.dlg-btns { display: inline-flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.dlg-btns .btn.sm { min-width: 76px; text-align: center; }
@media (max-width: 640px) {
  .dl-picker select { min-width: 0; width: 100%; }
  .dlg-item-main { flex-basis: 100%; }
  .dlg-btns { width: 100%; justify-content: flex-start; }
}

/* 手动下载：插件主体 / 普通话 / 英文 三组彩色框体 */
table.dl tbody tr.dl-core td {
  background: rgba(216, 178, 90, .10);
}
table.dl tbody tr.dl-core td:first-child {
  border-left: 4px solid #d8b25a;
}
table.dl tbody tr.dl-zh td {
  background: rgba(96, 158, 255, .085);
}
table.dl tbody tr.dl-zh td:first-child {
  border-left: 4px solid #6aa8ff;
}
table.dl tbody tr.dl-en td {
  background: rgba(78, 199, 155, .085);
}
table.dl tbody tr.dl-en td:first-child {
  border-left: 4px solid #4ec79b;
}
table.dl tbody tr.dl-band td {
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .25px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
table.dl tbody tr.dl-band.dl-zh td {
  color: #9cc7ff;
  background: rgba(96, 158, 255, .16);
  border-left: 4px solid #6aa8ff;
}
table.dl tbody tr.dl-band.dl-en td {
  color: #8ee0c2;
  background: rgba(78, 199, 155, .15);
  border-left: 4px solid #4ec79b;
}
table.dl tbody tr.dl-core:hover td { background: rgba(216, 178, 90, .17); }
table.dl tbody tr.dl-zh:hover td { background: rgba(96, 158, 255, .16); }
table.dl tbody tr.dl-en:hover td { background: rgba(78, 199, 155, .16); }
table.dl tbody tr.dl-band:hover td { background: rgba(96, 158, 255, .18); }
table.dl tbody tr.dl-band.dl-en:hover td { background: rgba(78, 199, 155, .17); }

