/* 提瓦特答题祭 —— 明亮配色 + 液态玻璃。
 *
 * 设计思路（写给以后接手的人）：
 *   ① 底色不做纯白，做"清晨的提瓦特"：天空蓝 → 薄荷绿 → 淡金 的多层径向渐变，
 *      再叠一层极淡的噪点，玻璃才有东西可以折射，不然白糊糊一片；
 *   ② 玻璃卡片 = 半透明白 + backdrop-filter(blur+saturate) + 1px 高光边
 *      + 顶部镜面高光(::before) + 噪点(::after)，这四样缺一样就"塑料感"；
 *   ③ 七元素色只用在**点缀**（标签、进度、排名徽章、按钮描边），不要大面积铺；
 *   ④ 装饰全部是 CSS/SVG 画的：风车、元素晶球、羽毛、星屑 —— 不依赖外部图片，
 *      加载快、不会挂、也不涉及素材版权。
 */

:root {
  /* 天空与光 */
  --sky-1: #eaf6ff;
  --sky-2: #dff0ff;
  --mint: #d8f7ee;
  --sun: #fff4d6;
  --lilac: #e9e2ff;

  /* 墨色 */
  --ink: #1d2836;
  --ink-2: #46586f;
  --ink-3: #7a8ca3;

  /* 七元素 */
  --anemo: #58d6c7;
  --geo: #e8b44a;
  --electro: #a98bff;
  --dendro: #7fcf5e;
  --hydro: #4aa8ff;
  --pyro: #ff8a5c;
  --cryo: #7fd8f7;

  /* 主色（金 / 风） */
  --gold: #e7b24c;
  --gold-2: #f7d79a;
  --accent: #2fa9c9;

  --glass-bg: linear-gradient(150deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .42));
  --glass-line: rgba(255, 255, 255, .85);
  --glass-shadow: 0 18px 44px rgba(54, 92, 148, .16), 0 2px 8px rgba(54, 92, 148, .08);
  --radius: 22px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font: 15px/1.65 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  letter-spacing: .2px;
  background:
    radial-gradient(1100px 700px at 12% -8%, var(--sun) 0%, transparent 62%),
    radial-gradient(900px 620px at 88% 4%, var(--lilac) 0%, transparent 60%),
    radial-gradient(1000px 760px at 50% 108%, var(--mint) 0%, transparent 62%),
    linear-gradient(160deg, var(--sky-1), var(--sky-2) 55%, #eaf7f4);
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
}

/* 极淡噪点：让玻璃有折射的"颗粒"，同时压掉大色块的塑料感 */
body::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ---------------------------------------------------------------- 漂浮光斑 */
.orbs { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orbs i {
  position: absolute; border-radius: 50%; filter: blur(28px); opacity: .55;
  animation: float 18s ease-in-out infinite;
}
.orbs i:nth-child(1) { width: 260px; height: 260px; left: -60px; top: 8%; background: var(--anemo); }
.orbs i:nth-child(2) { width: 220px; height: 220px; right: -40px; top: 22%; background: var(--gold-2); animation-delay: -6s; }
.orbs i:nth-child(3) { width: 300px; height: 300px; left: 32%; bottom: -110px; background: var(--hydro); opacity: .32; animation-delay: -11s; }
.orbs i:nth-child(4) { width: 180px; height: 180px; right: 18%; bottom: -30px; background: var(--electro); opacity: .3; animation-delay: -3s; }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(14px, -26px, 0) scale(1.08); }
}

/* ---------------------------------------------------------------- 布局 */
.app { position: relative; z-index: 1; width: min(1020px, 100%); margin: 0 auto; padding: 22px 18px 64px; }

/* 顶部：风车 + 站名 + 导航 */
.top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand .sigil { width: 40px; height: 40px; flex: none; animation: spin 16s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.brand b { font-size: 17px; letter-spacing: 2px; }
.brand span { display: block; font-size: 11.5px; color: var(--ink-3); letter-spacing: 3px; }
.nav { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.nav a {
  text-decoration: none; color: var(--ink-2); font-size: 13.5px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 4px 14px rgba(70, 110, 170, .08);
  transition: transform .16s ease, background .16s ease, color .16s ease;
}
.nav a:hover { transform: translateY(-1px); background: #fff; }
.nav a.on { color: #fff; background: linear-gradient(135deg, var(--accent), #35c2d8); border-color: transparent; font-weight: 600; }

/* ---------------------------------------------------------------- 玻璃卡片 */
.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  padding: 20px;
  overflow: hidden;
}
/* 顶部镜面高光 */
.glass::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 60% at 18% -20%, rgba(255, 255, 255, .95), transparent 60%),
    radial-gradient(60% 40% at 100% 0%, rgba(255, 255, 255, .55), transparent 70%);
}
/* 极细的内描边，模拟玻璃厚度 */
.glass::after {
  content: "";
  position: absolute; inset: 1px; border-radius: calc(var(--radius) - 1px);
  border: 1px solid rgba(255, 255, 255, .55);
  pointer-events: none;
}

/* ---------------------------------------------------------------- 首屏 */
.hero { padding: 34px 26px 28px; text-align: center; }
/* 首屏右下的"风纹"水印：一个螺旋风的 SVG，压到 10% 当底纹。
   纯 SVG，不依赖任何外部图片。 */
.hero::after {
  content: "";
  position: absolute; right: -70px; bottom: -90px; width: 340px; height: 340px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%233fa9d8' stroke-width='7' stroke-linecap='round'%3E%3Cpath d='M40 118c22-30 62-38 88-16 22 19 18 50-6 60-20 8-40-2-42-20-2-16 12-26 26-22'/%3E%3Cpath d='M28 76c26-26 70-30 96-6' opacity='.6'/%3E%3Cpath d='M52 152c26 12 58 8 78-10' opacity='.45'/%3E%3C/g%3E%3C/svg%3E") no-repeat center/contain;
  opacity: .1; transform: rotate(-8deg); pointer-events: none;
}
.hero .elem-row { display: flex; justify-content: center; gap: 10px; margin-bottom: 16px; }
.hero .elem-row i {
  width: 26px; height: 26px; display: block; border-radius: 9px;
  box-shadow: 0 6px 14px rgba(60, 100, 160, .18);
  animation: bob 3.6s ease-in-out infinite;
}
.hero .elem-row i:nth-child(1) { background: var(--anemo); }
.hero .elem-row i:nth-child(2) { background: var(--geo); animation-delay: .2s; }
.hero .elem-row i:nth-child(3) { background: var(--electro); animation-delay: .4s; }
.hero .elem-row i:nth-child(4) { background: var(--dendro); animation-delay: .6s; }
.hero .elem-row i:nth-child(5) { background: var(--hydro); animation-delay: .8s; }
.hero .elem-row i:nth-child(6) { background: var(--pyro); animation-delay: 1s; }
.hero .elem-row i:nth-child(7) { background: var(--cryo); animation-delay: 1.2s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.hero h1 {
  margin: 0 0 8px; font-size: clamp(30px, 6vw, 46px); letter-spacing: 6px; line-height: 1.2;
  background: linear-gradient(120deg, #1f7ea8 0%, #37b8cf 30%, #e2ac45 62%, #b98adf 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 10px rgba(90, 140, 200, .18));
}
.hero .sub { color: var(--ink-2); font-size: 14.5px; letter-spacing: 1px; margin-bottom: 6px; }
.hero .meta { color: var(--ink-3); font-size: 12.5px; }
.hero .meta b { color: var(--accent); }

/* 三个入口 */
.entries { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 18px; }
.entry {
  display: block; text-decoration: none; color: inherit; padding: 18px 16px;
  border-radius: var(--radius-sm); position: relative; overflow: hidden;
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 10px 26px rgba(70, 110, 170, .1);
  transition: transform .18s ease, box-shadow .18s ease;
}
.entry:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(70, 110, 170, .18); }
.entry .ico { font-size: 24px; line-height: 1; }
.entry b { display: block; margin: 8px 0 3px; font-size: 16px; letter-spacing: 1px; }
.entry span { color: var(--ink-3); font-size: 12.5px; }
.entry::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .9), transparent 70%);
}
.entry.up { border-top: 3px solid var(--anemo); }
.entry.ans { border-top: 3px solid var(--hydro); }
.entry.gal { border-top: 3px solid var(--electro); }
.entry.rank { border-top: 3px solid var(--gold); }

/* ---------------------------------------------------------------- 通用小件 */
h2.sec { font-size: 16px; letter-spacing: 1px; margin: 26px 0 10px; display: flex; align-items: center; gap: 8px; }
h2.sec::before { content: ""; width: 6px; height: 18px; border-radius: 4px; background: linear-gradient(180deg, var(--anemo), var(--hydro)); }

/* 胶囊开关（"先藏着答案"那种）：原生 checkbox 太难看了 */
.pill { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none;
        padding: 8px 14px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2);
        background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .9);
        box-shadow: 0 4px 14px rgba(70, 110, 170, .08); }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill .dot { width: 34px; height: 19px; border-radius: 999px; background: rgba(70, 110, 170, .22);
             position: relative; transition: background .16s ease; flex: none; }
.pill .dot::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px;
                    border-radius: 50%; background: #fff; transition: transform .16s ease;
                    box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.pill input:checked + .dot { background: linear-gradient(135deg, #43c6d8, #2f9fd0); }
.pill input:checked + .dot::after { transform: translateX(15px); }

.muted { color: var(--ink-3); font-size: 13px; }
.tip { color: var(--ink-2); font-size: 13px; background: rgba(255, 246, 224, .8); border: 1px solid rgba(231, 178, 76, .45); border-radius: 12px; padding: 10px 12px; }
.tip b { color: #b57b19; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 20px; border-radius: 999px; cursor: pointer; font-size: 14.5px; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .9); text-decoration: none;
  color: var(--ink); background: rgba(255, 255, 255, .75);
  box-shadow: 0 10px 22px rgba(70, 110, 170, .12);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn.primary {
  color: #4a3308; border-color: rgba(255, 255, 255, .8);
  background: linear-gradient(135deg, #ffe6a8, var(--gold) 55%, #e0a63c);
  box-shadow: 0 12px 26px rgba(224, 166, 60, .35), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.btn.wind { color: #fff; background: linear-gradient(135deg, #43c6d8, #2f9fd0); border-color: transparent; }
.btn.ghost { background: rgba(255, 255, 255, .35); }

.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; letter-spacing: .5px; }
input[type=text], input[type=password], input[type=file] {
  width: 100%; padding: 12px 14px; font-size: 15px; color: var(--ink);
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 14px; outline: none;
  box-shadow: inset 0 2px 6px rgba(70, 110, 170, .07);
  transition: box-shadow .16s ease, border-color .16s ease;
  font-family: inherit;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47, 169, 201, .16); }
input.code { letter-spacing: 3px; font-weight: 700; text-transform: uppercase; }

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }

/* ---------------------------------------------------------------- 上传 */
.drop {
  display: block; padding: 26px 18px; text-align: center; cursor: pointer;
  border: 2px dashed rgba(47, 169, 201, .45); border-radius: 18px;
  background: rgba(255, 255, 255, .5); transition: background .16s ease, border-color .16s ease;
}
.drop:hover, .drop.over { background: rgba(255, 255, 255, .8); border-color: var(--accent); }
.drop .big { font-size: 34px; line-height: 1; margin-bottom: 8px; }
.drop b { display: block; margin-bottom: 4px; }
.preview { margin-top: 14px; display: none; }
.preview img { width: 100%; max-height: 360px; object-fit: contain; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .9); background: #fff; }

/* ---------------------------------------------------------------- 题目 / 对答案 */
.q { padding: 16px 18px; margin-bottom: 12px; }
.q .no { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: 1px; }
.q .no .tag {
  font-size: 11.5px; font-weight: 600; letter-spacing: 1px; padding: 2px 8px; border-radius: 999px;
  color: #1d6f80; background: rgba(88, 214, 199, .22); border: 1px solid rgba(88, 214, 199, .5);
}
.q .stem { margin: 8px 0 10px; font-size: 14.5px; line-height: 1.7; }
.opts { display: grid; gap: 7px; }
.opt {
  display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px;
  border-radius: 12px; background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .8); font-size: 14px;
}
.opt .k {
  flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #2c5d70;
  background: rgba(47, 169, 201, .16); border: 1px solid rgba(47, 169, 201, .35);
}
.opt.right { background: rgba(127, 207, 94, .18); border-color: rgba(94, 175, 66, .55); }
.opt.right .k { background: var(--dendro); color: #fff; border-color: transparent; }
.opt.picked { background: rgba(74, 168, 255, .16); border-color: rgba(74, 168, 255, .5); }
.opt.bad { background: rgba(255, 138, 92, .16); border-color: rgba(255, 138, 92, .55); }
.q .note { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); }
.q .ans-line { margin-top: 8px; font-size: 13px; }
.q .ans-line b { color: #2e8b3f; letter-spacing: 2px; }
.hide-answer .opt.right { background: rgba(255, 255, 255, .55); border-color: rgba(255, 255, 255, .8); }
.hide-answer .opt.right .k { background: rgba(47, 169, 201, .16); color: #2c5d70; border-color: rgba(47, 169, 201, .35); }
.hide-answer .ans-line { display: none; }

/* ---------------------------------------------------------------- 排行榜 */
.rank-list { display: grid; gap: 9px; }
.rank-row {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center;
  padding: 11px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 8px 20px rgba(70, 110, 170, .08);
  transition: transform .16s ease;
}
.rank-row:hover { transform: translateX(2px); }
.rank-row .rk { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 17px; color: var(--ink-2); }
.rank-row .who { min-width: 0; }
.rank-row .who b { display: block; font-size: 15px; letter-spacing: .5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .who span { font-size: 12px; color: var(--ink-3); letter-spacing: 1px; }
.rank-row .sc { text-align: right; }
.rank-row .sc b { font-size: 21px; color: var(--accent); font-variant-numeric: tabular-nums; }
.rank-row .sc span { font-size: 11.5px; color: var(--ink-3); }
.rank-row.top1 { background: linear-gradient(135deg, rgba(255, 244, 214, .95), rgba(255, 255, 255, .6)); border-color: rgba(231, 178, 76, .7); }
.rank-row.top2 { background: linear-gradient(135deg, rgba(238, 246, 255, .95), rgba(255, 255, 255, .6)); border-color: rgba(160, 190, 220, .8); }
.rank-row.top3 { background: linear-gradient(135deg, rgba(255, 238, 228, .95), rgba(255, 255, 255, .6)); border-color: rgba(226, 170, 130, .8); }
.rank-row.me { outline: 2px solid var(--accent); outline-offset: 1px; }
.medal { width: 26px; height: 26px; }

/* 名次分布条 */
.bar-wrap { height: 6px; border-radius: 6px; background: rgba(70, 110, 170, .12); overflow: hidden; margin-top: 6px; }
.bar-wrap i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--anemo), var(--hydro)); }

/* ---------------------------------------------------------------- 结果卡 / 统计 */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stat { padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .9); text-align: center; }
.stat b { display: block; font-size: 24px; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--ink-3); letter-spacing: 1px; }
.steps { counter-reset: s; display: grid; gap: 10px; }
.steps li {
  list-style: none; position: relative; padding: 12px 14px 12px 46px;
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 14px; font-size: 14px;
}
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--anemo), var(--hydro));
}

/* ---------------------------------------------------------------- 答题卡墙 */
.gal { columns: 3 240px; column-gap: 12px; }
.gal .card {
  break-inside: avoid; margin: 0 0 12px; position: relative; cursor: zoom-in;
  border-radius: 16px; overflow: hidden; background: #fff;
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 10px 24px rgba(70, 110, 170, .14);
  transition: transform .18s ease, box-shadow .18s ease;
  display: block;
}
.gal .card:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: 0 18px 34px rgba(70, 110, 170, .22); }
.gal .card img { display: block; width: 100%; height: auto; }
.gal .card .meta {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  font-size: 12.5px; color: var(--ink-2); background: rgba(255, 255, 255, .92);
  border-top: 1px solid rgba(70, 110, 170, .1);
}
.gal .card .meta b { font-size: 13px; max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal .card .meta .cd { color: var(--ink-3); font-size: 11.5px; letter-spacing: .5px; }
.gal .card .meta .sc { margin-left: auto; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.gal .card .badge {
  position: absolute; left: 8px; top: 8px; font-size: 11px; padding: 3px 9px; border-radius: 999px;
  background: rgba(28, 40, 54, .62); color: #fff; letter-spacing: 1px; backdrop-filter: blur(6px);
}
.gal .card.pending .badge { background: rgba(231, 178, 76, .9); color: #4a3308; }

/* 大图浮层 */
.lb { position: fixed; inset: 0; z-index: 90; display: none; background: rgba(16, 26, 38, .82);
      backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lb.on { display: block; }
.lb .stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; }
.lb img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.5); background: #fff; }
.lb .bar {
  position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
  color: #fff; font-size: 13px; max-width: calc(100vw - 24px); flex-wrap: wrap; justify-content: center;
}
.lb .bar b { font-size: 15px; }
.lb .bar .sc { color: #ffe6a8; font-weight: 800; }
.lb .bar a, .lb .bar button {
  color: #fff; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; text-decoration: none;
}
.lb .close { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%;
             background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35); color: #fff;
             font-size: 20px; line-height: 1; cursor: pointer; }
.lb .nav-prev, .lb .nav-next {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.32); color: #fff;
  font-size: 22px; cursor: pointer;
}
.lb .nav-prev { left: 12px; }
.lb .nav-next { right: 12px; }
@media (max-width: 560px) {
  .gal { columns: 2 150px; column-gap: 8px; }
  .gal .card { margin-bottom: 8px; }
  .gal .card .meta { padding: 6px 8px; font-size: 11.5px; }
  .lb .nav-prev, .lb .nav-next { display: none; }
}

/* ---------------------------------------------------------------- 提示条 */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px);
  background: rgba(28, 40, 54, .92); color: #fff; padding: 11px 18px; border-radius: 999px;
  font-size: 13.5px; opacity: 0; pointer-events: none; transition: all .2s ease; z-index: 50;
  max-width: min(88vw, 560px); text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.foot { margin-top: 30px; text-align: center; color: var(--ink-3); font-size: 12px; line-height: 1.9; }

/* 入场动画：逐个上浮，别一起蹦 */
.rise { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.rise:nth-child(2) { animation-delay: .06s; }
.rise:nth-child(3) { animation-delay: .12s; }
.rise:nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 560px) {
  .app { padding: 16px 12px 54px; }
  .hero { padding: 26px 16px 20px; }
  .glass { padding: 16px; }
  .rank-row { grid-template-columns: 44px 1fr auto; gap: 8px; padding: 10px 12px; }
  .rank-row .sc b { font-size: 18px; }
  /* 手机上导航不要换行成两排（会顶掉半屏），改成横向滑 */
  .nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 2px;
         -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  .orbs i, .brand .sigil, .hero .elem-row i, .rise { animation: none !important; }
}

@media print {
  .orbs, .nav, .foot { display: none !important; }
  body { background: #fff; }
  .glass { box-shadow: none; border-color: #ddd; }
}
