/* 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.jpg?v=20261007h") 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.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; }

/* 徽记 */
.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; }

/* ---- 表单 ---- */
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;
}

/* ---- 列表条目 ---- */
.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); }

/* ---- 页脚 ---- */
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 .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px;
}
footer.site .col h4 {
  margin: 0 0 10px;
  font-size: 12.5px;
  letter-spacing: 1.6px;
  color: var(--gold);
  font-weight: 600;
}
footer.site .col a, footer.site .col span { display: block; margin-bottom: 7px; color: var(--dim); }
footer.site .col a:hover { color: var(--gold); }
footer.site .tail {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #6d7ba0;
}

/* ---- 台词库：左侧筛选 + 右侧列表 ---- */
.browse {
  display: grid;
  grid-template-columns: 244px 1fr;
  gap: 26px;
  align-items: start;
}
.filters { position: sticky; top: 80px; display: grid; gap: 4px; }
.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); }

/* 列表条目 */
.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; }
.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; }
.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; }

/* ---- 移动端 ---- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding: 44px 0 34px; text-align: left; }
  .medallion { order: -1; }
  .browse { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; overflow: visible; }
  .medallion img { width: 150px; }
  .medallion .halo { width: 200px; height: 200px; }
  .medallion .halo.h2 { width: 236px; height: 236px; }
  .medallion .glow { width: 190px; height: 190px; }
  header.site .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
  nav.main { margin-left: 0; width: 100%; }
  section { padding: 32px 0; }
  .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 16px;
  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:last-child { text-align: right; white-space: nowrap; }
table.dl td.upd { white-space: nowrap; color: var(--dim); font-variant-numeric: tabular-nums; }
.btn.sm { padding: 7px 16px; font-size: 13px; border-radius: 8px; }

@media (max-width: 640px) {
  table.dl { min-width: 460px; }
  table.dl th, table.dl td { padding: 11px 12px; }
}
