:root {
  --night: #140d0a; --night-2: #1f1410; --night-3: #2a1b15;
  --gold: #d8b36a; --gold-2: #f0d595; --gold-deep: #a97c35; --mist: #e2d8cb; --mist-2: #b8a996;
  --ink: #3b2716; --sub: #876a4d; --line: #e6d6b6; --paper: #fcf7ec; --paper-2: #f4ead5;
  --red: #b5361f; --red-2: #d2502c; --red-deep: #7d2414; --btn-ink: #fff8ea; --ok: #2e7d32;
  --title: "STKaiti", "KaiTi", "楷体", "Kaiti SC", "Songti SC", serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
* { box-sizing: border-box; }
/* 带 hidden 的元素一律隐藏，不被下面的 display 规则盖掉 */
[hidden] { display: none !important; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--mist);
  font: 15px/1.65 "Microsoft YaHei", "PingFang SC", sans-serif;
  background:
    radial-gradient(1200px 600px at 85% 120%, rgba(181, 54, 31, .16), transparent 60%),
    radial-gradient(900px 500px at -10% 60%, rgba(216, 179, 106, .08), transparent 60%),
    var(--night);
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
svg { width: 1.15em; height: 1.15em; flex: none; }

/* ===== 顶栏：首页压在大图上透明，滚动后变实 ===== */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 14px 40px; transition: background .25s, padding .25s, box-shadow .25s; }
.top.solid, body:not([data-page=anno]) .top { background: rgba(20, 13, 10, .94); padding-top: 10px; padding-bottom: 10px; box-shadow: 0 1px 0 rgba(216, 179, 106, .28), 0 8px 24px rgba(0, 0, 0, .35); backdrop-filter: blur(6px); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold-2); text-decoration: none; font: 26px/1.2 var(--title); letter-spacing: 4px; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.seal { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; background: linear-gradient(145deg, var(--red-2), var(--red-deep)); color: var(--btn-ink); font: 20px/1 var(--title); letter-spacing: 0; box-shadow: inset 0 0 0 1px rgba(255, 220, 160, .35), 0 2px 6px rgba(0, 0, 0, .4); }
.top nav { display: flex; gap: 2px; flex-wrap: wrap; }
.top nav a { position: relative; color: var(--mist); text-decoration: none; padding: 7px 14px; border-radius: 4px; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); transition: color .15s, background .15s; }
.top nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 2px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); transition: left .2s, right .2s; }
.top nav a:hover { color: var(--gold-2); }
.top nav a.cur { color: var(--gold-2); }
.top nav a.cur::after, .top nav a:hover::after { left: 14px; right: 14px; }

/* ===== 首屏大图 ===== */
.hero { position: relative; min-height: min(86vh, 680px); display: flex; align-items: center; background: url(img/hero.jpg) center 22% / cover no-repeat; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(20, 13, 10, .92) 0%, rgba(20, 13, 10, .62) 32%, rgba(20, 13, 10, .1) 60%, transparent 75%),
  linear-gradient(180deg, rgba(20, 13, 10, .55) 0%, transparent 22%, transparent 62%, var(--night) 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; background:
  radial-gradient(60px 26px at 10% 100%, var(--night) 98%, transparent), radial-gradient(90px 34px at 30% 100%, var(--night) 98%, transparent),
  radial-gradient(70px 28px at 52% 100%, var(--night) 98%, transparent), radial-gradient(100px 36px at 74% 100%, var(--night) 98%, transparent),
  radial-gradient(70px 26px at 94% 100%, var(--night) 98%, transparent); opacity: .9; pointer-events: none; }
.hero-body { position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 90px 40px 110px; }
.hero-kicker { display: inline-block; margin: 0 0 14px; padding: 4px 14px; border: 1px solid rgba(216, 179, 106, .55); border-radius: 999px; color: var(--gold-2); font-size: 13px; letter-spacing: 4px; background: rgba(20, 13, 10, .45); }
.hero h1 { margin: 0; font: 84px/1.08 var(--title); letter-spacing: 14px; background: linear-gradient(180deg, #fff3cf 0%, #f0d595 38%, #c99a48 70%, #f4dca0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 rgba(90, 44, 14, .9)) drop-shadow(0 12px 28px rgba(0, 0, 0, .65)); }
.hero-sub { margin: 14px 0 28px; max-width: 460px; font-size: 16px; color: #f3eadf; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* 按钮 */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 150px; padding: 12px 28px; border: 1px solid #e07a4e; border-radius: 6px; background: linear-gradient(180deg, var(--red-2), var(--red) 55%, var(--red-deep)); color: var(--btn-ink); font-size: 16px; letter-spacing: 2px; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255, 210, 160, .45), 0 8px 22px rgba(125, 36, 20, .45); transition: transform .15s, box-shadow .15s, filter .15s; cursor: pointer; }
.cta:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255, 210, 160, .5), 0 12px 28px rgba(125, 36, 20, .55); }
.cta.ghost { background: rgba(20, 13, 10, .45); border-color: var(--gold); color: var(--gold-2); box-shadow: inset 0 0 0 1px rgba(216, 179, 106, .15); backdrop-filter: blur(4px); }
.cta.ghost:hover { background: var(--gold); color: var(--night); }

/* 快捷入口：首页压在大图下沿 */
.quick { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 1200px; margin: -70px auto 0; padding: 0 40px; }
.quick a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px 20px; border-radius: 10px; text-decoration: none; color: var(--mist); background: linear-gradient(160deg, rgba(52, 34, 26, .95), rgba(28, 18, 14, .96)); border: 1px solid rgba(216, 179, 106, .32); box-shadow: var(--shadow); transition: transform .18s, border-color .18s; }
.quick a:hover { transform: translateY(-4px); border-color: var(--gold); }
.quick svg { grid-row: 1 / 3; width: 42px; height: 42px; padding: 9px; border-radius: 50%; color: var(--gold-2); background: radial-gradient(circle at 30% 30%, rgba(240, 213, 149, .25), rgba(169, 124, 53, .12)); border: 1px solid rgba(216, 179, 106, .45); }
.quick b { color: var(--gold-2); font: 19px/1.3 var(--title); letter-spacing: 3px; }
.quick span { color: var(--mist-2); font-size: 13px; }
body:not([data-page=anno]) .quick { display: none; }

/* 内页：首屏收成标题横幅 */
body:not([data-page=anno]) .hero { min-height: 0; height: 250px; align-items: flex-end; background-position: center 20%; }
body:not([data-page=anno]) .hero::before { background: linear-gradient(180deg, rgba(20, 13, 10, .7), rgba(20, 13, 10, .55) 50%, var(--night)); }
body:not([data-page=anno]) .hero::after { display: none; }
body:not([data-page=anno]) .hero-body { padding: 0 40px 34px; text-align: center; }
body:not([data-page=anno]) .hero h1 { font-size: 52px; letter-spacing: 12px; margin-right: -12px; }
body:not([data-page=anno]) .hero-kicker, body:not([data-page=anno]) .hero-cta { display: none; }
body:not([data-page=anno]) .hero-sub { margin: 8px auto 0; font-size: 15px; }

/* ===== 内容区 ===== */
main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 44px 40px 64px; }
body:not([data-page=anno]) main { padding-top: 26px; }
.sec-title { display: flex; align-items: center; gap: 18px; margin: 0 0 18px; color: var(--gold-2); font: 30px/1.3 var(--title); letter-spacing: 10px; white-space: nowrap; }
.sec-title span { position: relative; margin-right: -10px; padding: 0 6px; }
.sec-title span::before, .sec-title span::after { content: "◆"; position: absolute; top: 50%; transform: translateY(-50%); font-size: 10px; color: var(--gold); letter-spacing: 0; }
.sec-title span::before { left: -18px; } .sec-title span::after { right: -8px; }
.sec-title::before, .sec-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(216, 179, 106, .8)); }
.sec-title::after { transform: scaleX(-1); }
.cats { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 18px; }
.cats button, .pager button { border: 1px solid rgba(216, 179, 106, .45); background: rgba(42, 27, 21, .6); color: var(--mist); padding: 7px 22px; border-radius: 999px; cursor: pointer; font: inherit; transition: background .15s, color .15s, border-color .15s; }
.cats button:hover, .pager button:not(:disabled):hover { color: var(--gold-2); border-color: var(--gold); }
.cats button.cur { background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-color: var(--gold); color: var(--night); font-weight: bold; }
.pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 20px; color: var(--mist-2); }
.pager button:disabled { opacity: .4; cursor: default; }

/* 公告：左列表右正文，卷轴纸面 */
.anno { position: relative; display: grid; grid-template-columns: 330px minmax(0, 1fr); min-height: 500px; color: var(--ink); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(216, 179, 106, .6); background: var(--paper); }
.anno::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(169, 124, 53, .28); border-radius: 6px; pointer-events: none; }
.anno-list { display: flex; flex-direction: column; background: linear-gradient(180deg, #f1e3c6, #ead9b7); border-right: 1px solid var(--line); padding: 8px 0; }
.anno-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; width: 100%; padding: 14px 20px; border: 0; border-bottom: 1px dashed rgba(169, 124, 53, .3); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .15s; }
.anno-item:hover { background: rgba(255, 250, 238, .6); }
.anno-item.sel { background: var(--paper); box-shadow: inset 4px 0 0 var(--red); }
.anno-item .tag { justify-self: start; padding: 0 9px; border-radius: 3px; background: rgba(169, 124, 53, .18); color: #7a5420; font-size: 12px; line-height: 21px; }
.anno-item.sel .tag { background: var(--red); color: var(--btn-ink); }
.anno-item time { color: var(--sub); font-size: 12px; }
.anno-item .ti { grid-column: 1 / -1; grid-row: 2; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; }
.anno-item.sel .ti { font-weight: bold; color: #4d2813; }
.anno-body { min-width: 0; padding: 32px 44px 40px; scroll-margin-top: 80px; overflow-wrap: anywhere; background: radial-gradient(600px 300px at 100% 0%, rgba(216, 179, 106, .12), transparent 70%), var(--paper); }
.anno-body h2 { margin: 0; font: bold 26px/1.4 "Microsoft YaHei", "PingFang SC", sans-serif; color: #4d2813; }
.anno-body .meta { margin: 8px 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--sub); font-size: 13px; }
.anno-body h3 { margin: 22px 0 10px; padding-left: 12px; border-left: 4px solid var(--red); font-size: 17px; line-height: 1.5; color: #8a4a17; }
.anno-body p { margin: 0 0 12px; font-size: 15px; line-height: 1.9; white-space: pre-wrap; }
.anno-body img { display: block; max-width: 100%; height: auto; margin: 0 0 14px; border-radius: 6px; box-shadow: 0 4px 14px rgba(59, 39, 22, .18); }
.anno-none { padding: 120px 0; text-align: center; color: var(--sub); font-size: 16px; }
.anno-none::before { content: "卷"; display: block; margin: 0 auto 12px; width: 54px; height: 54px; line-height: 54px; border-radius: 50%; border: 1px dashed rgba(169, 124, 53, .5); font: 26px/54px var(--title); color: rgba(169, 124, 53, .7); }
.anno-none button { display: block; margin: 14px auto 0; padding: 7px 24px; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }

/* ===== 游戏下载 ===== */
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; }
.dl.ios-first [data-plat=ios] { order: -1; }
.dl-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 34px 28px 28px; background: linear-gradient(180deg, var(--paper), var(--paper-2)); color: var(--ink); border: 1px solid rgba(216, 179, 106, .7); border-radius: 12px; text-align: center; box-shadow: var(--shadow); }
.dl-card::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(169, 124, 53, .25); border-radius: 8px; pointer-events: none; }
.dl-badge { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, var(--red-2), var(--red-deep)); color: var(--btn-ink); font: 30px/1 var(--title); box-shadow: 0 0 0 4px rgba(216, 179, 106, .35), 0 8px 18px rgba(125, 36, 20, .35); }
.dl-card h3 { margin: 4px 0 0; font: 28px/1.3 var(--title); letter-spacing: 6px; margin-right: -6px; color: #5c2c16; }
.dl-meta { margin: 0; color: var(--sub); font-size: 14px; }
.dl-card .cta { margin: 6px 0 4px; }
.dl-card .tip { margin: 0; color: var(--sub); font-size: 13px; line-height: 1.75; }
.dl-foot { margin: 22px 0 0; text-align: center; color: #94877b; font-size: 13px; }
.dl-foot a { margin-left: 10px; color: var(--gold-2); }
.progress { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress div { width: 0; height: 100%; background: linear-gradient(90deg, var(--red), var(--red-2)); transition: width .2s; }

/* ===== 表单卡片 ===== */
.card { position: relative; max-width: 460px; margin: 0 auto; background: linear-gradient(180deg, var(--paper), var(--paper-2)); color: var(--ink); border: 1px solid rgba(216, 179, 106, .75); border-radius: 12px; padding: 34px 36px 34px; display: flex; flex-direction: column; gap: 15px; box-shadow: var(--shadow); }
.card::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(169, 124, 53, .25); border-radius: 8px; pointer-events: none; }
.card::after { content: ""; position: absolute; top: -1px; left: 50%; width: 120px; height: 4px; transform: translateX(-50%); border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-2), var(--gold-deep)); }
.card h2 { margin: 0; text-align: center; font: 30px/1.3 var(--title); letter-spacing: 8px; margin-right: -8px; color: #5c2c16; }
.card .tip { margin: -4px 0 4px; text-align: center; color: var(--sub); font-size: 13px; }
.card label { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #5a3f27; }
.card input, .card select, .card textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fffdf8; color: var(--ink); width: 100%; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.card textarea { resize: vertical; min-height: 120px; line-height: 1.7; }
.card input::placeholder, .card textarea::placeholder { color: #b9a58b; }
.card input:focus, .card select:focus, .card textarea:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px rgba(181, 54, 31, .14); }
.card .code { display: flex; gap: 8px; }
.card input[name=invite] { text-transform: uppercase; letter-spacing: 2px; }
.card .sub { font-size: 12px; color: var(--red); min-height: 1em; }
.card .sub.ok { color: var(--ok); }
.card .code button { flex: none; min-width: 112px; white-space: nowrap; border: 1px solid var(--red); color: var(--red); background: #fff; border-radius: 6px; padding: 0 12px; cursor: pointer; font: inherit; transition: background .15s; }
.card .code button:hover:not(:disabled) { background: #fff1ea; }
.card .code button:disabled { opacity: .5; cursor: default; }
.card .primary { position: relative; z-index: 1; margin-top: 4px; background: linear-gradient(180deg, var(--red-2), var(--red) 55%, var(--red-deep)); color: var(--btn-ink); border: 1px solid #e07a4e; border-radius: 6px; padding: 12px; font: inherit; font-size: 17px; letter-spacing: 4px; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 210, 160, .45), 0 6px 16px rgba(125, 36, 20, .3); transition: filter .15s, transform .15s; }
.card .primary:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.card .primary:disabled { opacity: .6; cursor: default; }
.err { position: relative; z-index: 1; color: var(--red); min-height: 1.2em; font-size: 13px; }
.ok, .err.ok { color: var(--ok); }

/* ===== BUG 反馈 ===== */
.bug-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.card.wide { max-width: none; margin: 0; }
.grid2 { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.count { align-self: flex-end; font-size: 12px; color: var(--sub); }
.count.over { color: var(--red); }
.files { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.files-head { display: flex; justify-content: space-between; align-items: baseline; color: #5a3f27; font-size: 14px; }
.files-head b { font-weight: normal; }
.files-head .sub { color: var(--sub); }
.drop { flex-direction: row !important; align-items: center; justify-content: center; gap: 10px !important; padding: 22px; border: 1.5px dashed rgba(169, 124, 53, .55); border-radius: 8px; background: rgba(255, 253, 248, .7); color: var(--sub) !important; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--red); background: #fff8f1; color: var(--red) !important; }
/* 文件框是隐藏的，键盘切到它时把整个拖放区框起来 */
.drop:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop svg { width: 26px; height: 26px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #2a1b15; border: 1px solid var(--line); }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .kind { position: absolute; left: 6px; top: 6px; padding: 0 6px; border-radius: 3px; background: rgba(20, 13, 10, .7); color: #fff; font-size: 11px; line-height: 18px; }
.thumb .size { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 6px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff; font-size: 11px; }
.thumb button { position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(20, 13, 10, .75); color: #fff; font-size: 15px; line-height: 24px; cursor: pointer; }
.thumb .bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--gold); transition: width .2s; }
.thumb.ok::after, .thumb.fail::after { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: #fff; }
.thumb.ok::after { content: "已上传"; background: rgba(46, 125, 50, .55); }
.thumb.fail::after { content: "上传失败"; background: rgba(181, 54, 31, .6); }
.bug-tips { position: sticky; top: 84px; padding: 24px 24px 18px; border-radius: 12px; background: linear-gradient(160deg, rgba(52, 34, 26, .95), rgba(28, 18, 14, .96)); border: 1px solid rgba(216, 179, 106, .32); box-shadow: var(--shadow); }
.bug-tips h3 { margin: 0 0 10px; color: var(--gold-2); font: 21px/1.3 var(--title); letter-spacing: 4px; }
.bug-tips ol { margin: 0 0 12px; padding-left: 20px; color: var(--mist); font-size: 14px; line-height: 1.85; }
.bug-tips li::marker { color: var(--gold); }
.bug-tips .sub { margin: 0; color: var(--mist-2); font-size: 12px; }
.card.done { align-items: center; text-align: center; }
.card.done p { position: relative; z-index: 1; margin: 0; color: var(--sub); }
.done-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, #43a047, #1b5e20); color: #fff; font-size: 34px; box-shadow: 0 0 0 5px rgba(67, 160, 71, .18); }

/* ===== 页脚 ===== */
.foot { margin-top: 20px; border-top: 1px solid rgba(216, 179, 106, .22); background: linear-gradient(180deg, rgba(31, 20, 16, .6), rgba(12, 8, 6, .9)); }
.foot-inner { max-width: 1200px; margin: 0 auto; padding: 28px 40px 30px; text-align: center; color: #94877b; font-size: 12px; }
.foot-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; color: var(--gold-2); font: 22px/1.2 var(--title); letter-spacing: 4px; }
.foot-brand .seal { width: 26px; height: 26px; font-size: 16px; }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 22px; margin-bottom: 14px; }
.foot-links a { color: var(--mist-2); text-decoration: none; font-size: 13px; }
.foot-links a:hover { color: var(--gold-2); }
.foot p { margin: 3px 0; }

/* ===== 滑块验证浮层 ===== */
.slider-mask { position: fixed; inset: 0; background: rgba(20, 10, 4, .62); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 16px; backdrop-filter: blur(3px); }
.slider-mask.show { display: flex; }
.slider-panel { width: 100%; max-width: 340px; background: var(--paper); border: 1px solid var(--gold); border-radius: 10px; padding: 14px 16px 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.slider-head { display: flex; justify-content: space-between; align-items: center; color: var(--ink); margin-bottom: 10px; }
.slider-head button { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--sub); cursor: pointer; }
.slider-stage { position: relative; width: 100%; aspect-ratio: 2 / 1; border-radius: 6px; overflow: hidden; background: #f4efe4; user-select: none; }
.slider-stage img { position: absolute; left: 0; top: 0; display: block; pointer-events: none; -webkit-user-drag: none; }
.slider-stage [data-bg] { width: 100%; height: 100%; }
.slider-stage [data-piece] { filter: drop-shadow(0 0 3px rgba(0, 0, 0, .6)); }
.slider-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--sub); background: #f4efe4; }
.slider-bar { position: relative; height: 42px; margin-top: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; overflow: hidden; touch-action: none; user-select: none; }
.slider-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #f3dcc0; }
.slider-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--sub); font-size: 13px; pointer-events: none; }
.slider-handle { position: absolute; left: 0; top: 0; width: 46px; height: 40px; background: linear-gradient(180deg, var(--red-2), var(--red)); color: var(--btn-ink); display: flex; align-items: center; justify-content: center; cursor: grab; z-index: 1; touch-action: none; border-radius: 5px; }
.slider-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 13px; }
.slider-msg { color: var(--red); min-height: 1.2em; }
.slider-foot button { border: 1px solid var(--red); color: var(--red); background: #fff; border-radius: 5px; padding: 2px 10px; cursor: pointer; font: inherit; }

/* ===== 窄屏（断点同 site.js 的 stacked） ===== */
@media (max-width: 960px) {
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bug-wrap { grid-template-columns: minmax(0, 1fr); }
  .bug-tips { position: static; }
}
@media (max-width: 760px) {
  .dl { grid-template-columns: minmax(0, 1fr); }
  .anno { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .anno-list { border-right: 0; border-bottom: 3px solid var(--line); }
  .anno-body { padding: 24px 20px 28px; }
}
@media (max-width: 640px) {
  .top { position: sticky; flex-direction: column; gap: 4px; padding: 8px 12px; background: rgba(20, 13, 10, .94); }
  .brand { font-size: 22px; }
  .top nav { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { padding: 4px 10px; white-space: nowrap; font-size: 14px; }
  .hero { min-height: 430px; align-items: flex-end; background-position: 58% top; }
  .hero::before { background: linear-gradient(180deg, transparent 30%, rgba(20, 13, 10, .82) 70%, var(--night) 100%); }
  .hero-body { padding: 0 16px 90px; text-align: center; }
  .hero-kicker { font-size: 12px; letter-spacing: 3px; }
  .hero h1 { font-size: 52px; letter-spacing: 10px; margin-right: -10px; }
  .hero-sub { margin: 10px auto 20px; font-size: 14px; }
  .hero-cta { justify-content: center; }
  .cta { min-width: 132px; padding: 11px 18px; }
  .quick { margin-top: -60px; padding: 0 12px; gap: 10px; }
  .quick a { padding: 12px; column-gap: 10px; }
  .quick svg { width: 34px; height: 34px; padding: 7px; }
  .quick b { font-size: 16px; letter-spacing: 1px; }
  .quick span { font-size: 12px; }
  body:not([data-page=anno]) .hero { height: 130px; }
  body:not([data-page=anno]) .hero-body { padding-bottom: 20px; }
  body:not([data-page=anno]) .hero h1 { font-size: 36px; letter-spacing: 8px; margin-right: -8px; }
  body:not([data-page=anno]) .hero-sub { display: none; }
  main { padding: 28px 16px 48px; }
  .sec-title { font-size: 24px; letter-spacing: 6px; }
  .card { padding: 26px 18px 24px; }
  .card h2 { font-size: 26px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .foot-inner { padding: 22px 16px 24px; }
}
