/* ============================================================
   矿山救护刷题系统 · 大厂风 UI（阿里/抖音/腾讯级质感）
   设计语言：清爽留白 · 柔和层次 · 细腻圆角 · 品牌渐变 · 微交互
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #2f6bff;          /* 品牌主色 · 现代蓝 */
  --primary-2: #5b8cff;        /* 主色亮 */
  --primary-3: #7aa5ff;        /* 主色更亮 */
  --primary-d: #1f4fd6;        /* 主色深 */
  --primary-soft: #eef3ff;     /* 主色浅底 */
  --accent: #00b8b0;           /* 点缀 · 青 */
  --green: #16a86a;
  --red: #e5484d;
  --orange: #f08a24;
  --bg: #f4f6fb;
  --card: #ffffff;
  --line: #e6ebf4;
  --txt: #1b2333;
  --mut: #6b7690;
  --shadow: 0 1px 2px rgba(23,37,74,.05), 0 4px 16px rgba(23,37,74,.06);
  --shadow-lg: 0 8px 30px rgba(23,37,74,.10), 0 2px 8px rgba(23,37,74,.06);
  --shadow-btn: 0 4px 14px rgba(47,107,255,.28);
  --radius: 16px;
  --radius-sm: 10px;
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC","MiSans","HarmonyOS Sans SC","Microsoft YaHei",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background: var(--bg);
  color: var(--txt);
  font-size: 15px;
  line-height: 1.65;
  padding-bottom: 84px;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(1200px 400px at 50% -8%, rgba(47,107,255,.05), transparent 60%);
}
a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-d); }

/* ============ 个人中心（功能网格） ============ */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 11px; }
.f-tile {
  display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 15px 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 15px; color: var(--txt);
  text-decoration: none; transition: all .16s; box-shadow: var(--shadow); text-align: center;
}
.f-tile:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--txt); }
.f-tile .fi { width: 46px; height: 46px; border-radius: 14px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; transition: transform .16s; }
.f-tile .fi svg { width: 23px; height: 23px; color: #fff; stroke-width: 2.2; }
.f-tile:hover .fi { transform: scale(1.08); }
.f-tile span { font-size: 12.5px; color: var(--mut); font-weight: 500; }
.f-tile:hover span { color: var(--primary-d); }
/* 九宫格图标：多彩渐变 */
.feature-grid .f-tile:nth-child(9n+1) .fi { background: linear-gradient(135deg,#5b8cff,#2f6bff); }
.feature-grid .f-tile:nth-child(9n+2) .fi { background: linear-gradient(135deg,#ffb05c,#f08a24); }
.feature-grid .f-tile:nth-child(9n+3) .fi { background: linear-gradient(135deg,#3ddc97,#16a86a); }
.feature-grid .f-tile:nth-child(9n+4) .fi { background: linear-gradient(135deg,#8f6bff,#6a3be8); }
.feature-grid .f-tile:nth-child(9n+5) .fi { background: linear-gradient(135deg,#4fd2ff,#1f8fd6); }
.feature-grid .f-tile:nth-child(9n+6) .fi { background: linear-gradient(135deg,#f06b6b,#e5484d); }
.feature-grid .f-tile:nth-child(9n+7) .fi { background: linear-gradient(135deg,#54d3c0,#00a8a0); }
.feature-grid .f-tile:nth-child(9n+8) .fi { background: linear-gradient(135deg,#ffcf5c,#f0a41e); }
.feature-grid .f-tile:nth-child(9n+9) .fi { background: linear-gradient(135deg,#7aa5ff,#4f7ef0); }
.feature-grid .f-tile:nth-child(9n+10) .fi { background: linear-gradient(135deg,#5f6bff,#3947e8); }

/* ============ 顶栏（大厂风 · 磨砂玻璃） ============ */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.topbar .inner {
  max-width: 1000px; margin: 0 auto; padding: 0 16px; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: 10px; flex: 1; justify-content: center; }
.nav-menu a {
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 999px;
  color: var(--mut); font-size: 13.5px; font-weight: 500; text-decoration: none; transition: all .15s;
}
.nav-menu a:hover { background: var(--primary-soft); color: var(--primary-d); }
.nav-menu a.active { background: linear-gradient(135deg,var(--primary-2),var(--primary)); color: #fff; box-shadow: 0 3px 10px rgba(47,107,255,.28); }
.nav-menu a .ico { display: inline-flex; }
.topbar h1 { font-size: 17px; font-weight: 700; letter-spacing: .3px; color: var(--txt); }
.topbar h1 a { color: var(--txt); display: flex; align-items: center; gap: 10px; }
.topbar h1 a:hover { color: var(--txt); }
.topbar .brand-badge {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--primary) 0%, #5b8cff 100%);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; color: #fff;
  box-shadow: 0 4px 12px rgba(47,107,255,.32);
}
.topbar .nav { display: flex; align-items: center; gap: 6px; }
.topbar .nav > a {
  color: #4a5468; font-size: 14px; padding: 7px 12px; border-radius: 10px; transition: all .15s;
}
.topbar .nav > a:hover { background: var(--primary-soft); color: var(--primary-d); }
.userinfo { display: inline-flex; align-items: center; gap: 7px; color: #3a4357; padding: 5px 10px; border-radius: 10px; }
.userinfo:hover { background: var(--primary-soft); color: var(--primary-d); }
.userinfo span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.online {
  color: var(--mut); font-size: 12.5px; margin-right: 4px; white-space: nowrap;
  background: var(--primary-soft); padding: 5px 11px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 5px;
}
.online::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(22,168,106,.18); }
.theme-btn {
  border: none; background: linear-gradient(135deg,#5b8cff,#2f6bff); color: #fff; cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(47,107,255,.28); transition: all .15s;
}
.theme-btn svg { width: 18px; height: 18px; color: #fff; stroke-width: 2.2; }
.theme-btn:hover { transform: rotate(15deg) scale(1.06); }

/* ============ 容器 ============ */
.container { max-width: 900px; margin: 0 auto; padding: 22px 14px 48px; }

/* ============ 卡片 ============ */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.card h2 { font-size: 16px; font-weight: 700; margin-bottom: 14px; color: #161e2e;
  display: flex; align-items: center; gap: 8px; }
.card h2::before { content: ""; width: 4px; height: 16px; border-radius: 2px;
  background: linear-gradient(180deg,var(--primary-2),var(--primary)); }
.card h3 { font-size: 14px; margin: 8px 0; }

/* ============ 统计面板 ============ */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 16px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 12px; text-align: center; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--primary-2), var(--primary));
}
.stat .num { font-size: 26px; font-weight: 800; color: var(--primary); letter-spacing: .5px; line-height: 1.2; }
.stat .lab { font-size: 12px; color: var(--mut); margin-top: 3px; }
.stat.green::before{background:linear-gradient(90deg,#3ddc97,var(--green));} .stat.green .num{color:var(--green);}
.stat.red::before{background:linear-gradient(90deg,#f07c7c,var(--red));} .stat.red .num{color:var(--red);}
.stat.orange::before{background:linear-gradient(90deg,#f6b558,var(--orange));} .stat.orange .num{color:var(--orange);}

/* ============ 题库选择 ============ */
.bank-block { margin-bottom: 18px; }
.bank-block .bank-name {
  font-weight: 700; margin: 4px 0 12px; display: flex; align-items: center; font-size: 14px; color: #202a3c;
}
.bank-block .bank-name .dot {
  width: 10px; height: 10px; border-radius: 4px; background: linear-gradient(135deg,var(--primary-2),var(--primary));
  display: inline-block; margin-right: 9px; box-shadow: 0 0 0 3px var(--primary-soft);
}
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 7px 16px; font-size: 13px;
  cursor: pointer; color: var(--txt); box-shadow: 0 1px 2px rgba(23,37,74,.04);
  transition: all .18s; user-select: none;
}
.chip:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(47,107,255,.14); }
.chip .n { color: var(--mut); font-size: 12px; }
.chip.active {
  background: linear-gradient(135deg, var(--primary-2), var(--primary)); color: #fff; border-color: transparent;
  box-shadow: 0 5px 16px rgba(47,107,255,.30);
}
.chip.active .n { color: #e8efff; }

/* ============ 题目 ============ */
.q-meta { font-size: 12px; color: var(--mut); margin-bottom: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tag { background: var(--primary-soft); color: var(--primary-d); padding: 3px 11px; border-radius: 20px; font-weight: 600; font-size: 12px; }
.tag.alt { background: #f1f4f9; color: var(--mut); font-weight: 500; }
.q-stem { font-size: 16px; font-weight: 600; margin: 6px 0 14px; white-space: pre-wrap; color: #161e2e; line-height: 1.75; }
/* 填进括号的答案 · 高亮区分 */
.blank-ans {
  color: #d9480f; font-weight: 800; background: rgba(217,72,15,.10);
  border-radius: 5px; padding: 0 3px; letter-spacing: .3px;
}

.options { display: flex; flex-direction: column; gap: 11px; }
.fillchoice-group { margin-bottom: 6px; }
.fillchoice-group + .fillchoice-group { margin-top: 4px; }
.fillblank-lab { font-size: 13px; font-weight: 600; color: var(--muted, #667); margin: 2px 0 7px 2px; display: flex; align-items: center; gap: 7px; }
.fillblank-lab::before { content: ''; width: 16px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--primary-2), var(--primary)); }
.option {
  border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 15px; cursor: pointer;
  display: flex; align-items: flex-start; gap: 12px; transition: all .16s; background: #fff;
}
.option:hover { border-color: var(--primary); background: #fbfdff; transform: translateX(2px); }
.option .k {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 9px; background: #f1f4f9;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #5a6a84;
  transition: all .16s;
}
.option.sel { border-color: var(--primary); background: var(--primary-soft); }
.option.sel .k { background: linear-gradient(135deg,var(--primary-2),var(--primary)); color: #fff; box-shadow: 0 3px 8px rgba(47,107,255,.3); }
.option.right { border-color: var(--green); background: #eefaf3; }
.option.right .k { background: linear-gradient(135deg,#34cf8f,var(--green)); color: #fff; }
.option.wrong { border-color: var(--red); background: #fdf1f2; }
.option.wrong .k { background: linear-gradient(135deg,#f07878,var(--red)); color: #fff; }
.option.disabled { pointer-events: none; }

/* 判断按钮 */
.judge-btns { display: flex; gap: 12px; }
.judge-btns .jb {
  flex: 1; padding: 14px; text-align: center; border: 1.5px solid var(--line); border-radius: 14px;
  cursor: pointer; font-size: 16px; font-weight: 700; color: #5a6a84; background: #fff;
  transition: all .16s;
}
.judge-btns .jb:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.judge-btns .jb.sel { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-d); }
.jb.right { background: #eefaf3; border-color: var(--green); color: var(--green); }
.jb.wrong { background: #fdf1f2; border-color: var(--red); color: var(--red); }

/* ============ 答案区 ============ */
.answer-box { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 14px; display: none; }
.answer-box.show { display: block; animation: fadeIn .25s; }
.answer-box .ans { font-size: 15px; font-weight: 600; }
.answer-box .ok { color: var(--green); }
.answer-box .no { color: var(--red); }
.answer-box .ref {
  margin-top: 10px; color: #33465f; background: #f7f9fd; border: 1px solid var(--line);
  border-radius: 12px; padding: 13px; font-size: 14px; white-space: pre-wrap; line-height: 1.7;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ============ 按钮 ============ */
.actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.btn {
  padding: 10px 20px; border: none; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer;
  background: linear-gradient(135deg, var(--primary-2), var(--primary)); color: #fff;
  box-shadow: var(--shadow-btn); transition: all .16s;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(47,107,255,.36); }
.btn:active { transform: translateY(0); }
.btn.gray { background: #eef2f8; color: #43506a; box-shadow: none; }
.btn.gray:hover { background: #e2e9f3; filter: none; box-shadow: none; }
.btn.green { background: linear-gradient(135deg,#2fd18d,var(--green)); box-shadow: 0 4px 14px rgba(22,168,106,.30); }
.btn.red { background: linear-gradient(135deg,#f07075,var(--red)); box-shadow: 0 4px 14px rgba(229,72,77,.28); }
.btn.orange { background: linear-gradient(135deg,#f6ab4d,var(--orange)); box-shadow: 0 4px 14px rgba(240,138,36,.28); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-sm { padding: 7px 15px; font-size: 13px; border-radius: 10px; }

/* QQ 风格快捷按钮：彩色渐变圆角图标块 + 文字 */
.btn.qbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.qbtn .qic { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.14); flex: none; }
.qbtn .qic svg { width: 15px; height: 15px; color: #fff; stroke-width: 2.2; }
.btn-sm.qbtn .qic { width: 20px; height: 20px; border-radius: 6px; }
.btn-sm.qbtn .qic svg { width: 12px; height: 12px; }
.btn.qbtn:disabled { opacity: .55; cursor: not-allowed; }
.qic1{background:linear-gradient(135deg,#5b8cff,#2f6bff);}
.qic2{background:linear-gradient(135deg,#ffb05c,#f08a24);}
.qic3{background:linear-gradient(135deg,#3ddc97,#16a86a);}
.qic4{background:linear-gradient(135deg,#8f6bff,#6a3be8);}
.qic5{background:linear-gradient(135deg,#4fd2ff,#1f8fd6);}
.qic6{background:linear-gradient(135deg,#f06b6b,#e5484d);}
.qic7{background:linear-gradient(135deg,#7aa5ff,#4f7ef0);}
.qic8{background:linear-gradient(135deg,#ffcf5c,#f0a41e);}
.qic9{background:linear-gradient(135deg,#54d3c0,#00a8a0);}
.qic10{background:linear-gradient(135deg,#ff8a5c,#f06824);}

/* ============ 底部导航（大厂风 · 悬浮胶囊） ============ */
.bottom-nav {
  position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 60;
  background: rgba(255,255,255,.9); backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--line); border-radius: 22px;
  display: flex; padding: 6px; box-shadow: 0 8px 30px rgba(23,37,74,.14);
  width: min(92%, 520px);
}
.bottom-nav a { flex: 1; text-align: center; padding: 8px 4px; color: var(--mut); font-size: 11px; border-radius: 16px; transition: all .18s; }
.bottom-nav a .ico { display: block; margin-bottom: 3px; transition: transform .18s; }
.bottom-nav a .ico svg { width: 22px; height: 22px; margin: 0 auto; }
.bottom-nav a.active { color: #fff; font-weight: 700; background: linear-gradient(135deg,var(--primary-2),var(--primary)); box-shadow: 0 4px 12px rgba(47,107,255,.32); }
.bottom-nav a.active .ico { transform: translateY(-1px); }
.bottom-nav a:not(.active):hover { color: var(--primary); background: #f5f7fc; }

/* ============ 表单 ============ */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--mut); margin-bottom: 6px; font-weight: 500; }
.field input, .field select {
  width: 100%; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 15px;
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47,107,255,.12); }

/* 分类选择下拉框（清爽，点击展开下滑选择） */
.select-full {
  width: 100%; padding: 13px 38px 13px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 15px; background: #fff; color: var(--text); cursor: pointer;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238f9bb0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  transition: border-color .15s, box-shadow .15s;
}
.select-full:hover { border-color: var(--primary); }
.select-full:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47,107,255,.12); }
body.dark .select-full { background-color: #1b2430; color: var(--text); border-color: var(--line); }

/* ============ 登录卡片 ============ */
.auth-wrap { max-width: 400px; margin: 56px auto; }
.auth-card {
  background: var(--card); border-radius: 20px; border: 1px solid var(--line); padding: 30px 28px;
  box-shadow: var(--shadow-lg);
}
.auth-tabs { display: flex; margin-bottom: 22px; background: #f1f4fa; border-radius: 12px; padding: 4px; }
.auth-tabs a { flex: 1; text-align: center; padding: 9px; border-radius: 9px; color: var(--mut); font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.auth-tabs a .qic { width: 20px; height: 20px; border-radius: 6px; }
.auth-tabs a .qic svg { width: 12px; height: 12px; }
.auth-tabs a.active { background: #fff; color: var(--primary); font-weight: 700; box-shadow: 0 2px 8px rgba(23,37,74,.08); }

/* ============ 列表 ============ */
.row { display: flex; align-items: center; justify-content: space-between; padding: 12px 2px; border-bottom: 1px solid #eef2f8; }
.row:last-child { border-bottom: none; }
.row .t { font-size: 14px; }

/* ============ 提示 ============ */
.msg { padding: 13px 15px; border-radius: 14px; margin-bottom: 14px; font-size: 14px; border: 1px solid transparent; }
.msg.err { background: #fdf1f2; color: var(--red); border-color: #f5d3d4; }
.msg.ok { background: #eefaf3; color: var(--green); border-color: #c9ead9; }
.msg.info { background: var(--primary-soft); color: var(--primary-d); border-color: #d3e0fa; }

/* ============ 进度条 ============ */
.pbar { height: 10px; background: #e9eef6; border-radius: 6px; overflow: hidden; margin: 10px 0; }
.pbar > div { height: 100%; background: linear-gradient(90deg,var(--primary-3),var(--primary)); border-radius: 6px; transition: width .35s; }

/* ============ 表格 ============ */
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th, table.tbl td { border: 1px solid var(--line); padding: 10px 11px; text-align: left; }
table.tbl th { background: #f4f7fc; color: #394a63; font-weight: 700; }
table.tbl tr:nth-child(even) td { background: #fafcff; }
table.tbl tr:hover td { background: #f2f7ff; }

/* ============ 考试 ============ */
.exam-q { margin-bottom: 16px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.timer {
  position: fixed; bottom: 84px; right: 12px; z-index: 50;
  max-width: calc(100vw - 24px);
  background: rgba(20,22,28,.82); color: #fff; text-align: center;
  padding: 7px 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .3px;
  border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.16);
  backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.08);
}
body.dark .timer { background: rgba(10,12,18,.82); }

.text-mut { color: var(--mut); }
.small { font-size: 12px; }
.gap { border: none; background: transparent; }

/* ============ 在线 / 头像 / 设置 ============ */
.avatar { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; overflow: hidden; flex: none; }

.auto-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #44546b; cursor: pointer; margin-top: 10px; }
.auto-switch input { width: 18px; height: 18px; accent-color: var(--primary); }

.avatar-picker { display: flex; flex-wrap: wrap; gap: 9px; margin: 4px 0 14px; }
.av-opt {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; border: 2px solid var(--line); border-radius: 50%; cursor: pointer; background: #fff;
  transition: all .18s;
}
.av-opt:hover { border-color: var(--primary); transform: scale(1.08); }
.av-opt.active { border-color: var(--primary); background: var(--primary-soft); transform: scale(1.12); box-shadow: 0 0 0 4px rgba(47,107,255,.12); }

.rank-me { background: #fff6e6 !important; }
.rank-me td { font-weight: 700; }
.rank-me:hover td { background: #fff0d2 !important; }

/* ============ 排行榜（卡片榜单，移动/桌面自适应） ============ */
.rank-head .rank-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rank-head .rank-title-row .t { display: flex; align-items: center; gap: 10px; }
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-row {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 14px; box-shadow: var(--shadow); transition: all .16s;
}
.rank-row:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.rank-row.me { background: linear-gradient(90deg, #fff6e6, #fff); border-color: #ffd98a; }
.rk-medal {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800; color: #fff;
}
.rk-medal.g { background: linear-gradient(135deg,#ffd86b,#f5a623); box-shadow: 0 3px 10px rgba(245,166,35,.35); }
.rk-medal.s { background: linear-gradient(135deg,#dfe7f2,#a8b6cc); box-shadow: 0 3px 10px rgba(168,182,204,.35); }
.rk-medal.b { background: linear-gradient(135deg,#f3b58a,#d9823f); box-shadow: 0 3px 10px rgba(217,130,63,.3); }
.rk-medal.n { background: linear-gradient(135deg,#8fa1b7,#6b7f96); }
.rk-user { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.rk-name { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-tag { font-style: normal; font-size: 10px; color: #fff; background: linear-gradient(135deg,var(--primary-2),var(--primary)); padding: 1px 6px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.rk-stats { display: flex; gap: 14px; flex: none; }
.rk-cell { display: flex; flex-direction: column; align-items: center; min-width: 40px; }
.rk-cell b { font-size: 15px; color: var(--txt); }
.rk-cell i { font-style: normal; font-size: 10.5px; color: var(--mut); }
.rank-me-card { display: flex; align-items: center; gap: 12px; }
.session-card .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.session-card .actions .btn { flex: 1; min-width: 140px; }
.session-card .actions .btn.red { background: linear-gradient(135deg,#f05959,#e33); color: #fff; }
.intro-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px;
  color: var(--mut); font-size: 12.5px; font-weight: 500; text-decoration: none; border: 1px solid var(--line);
  background: var(--card); transition: all .15s; white-space: nowrap;
}
.intro-link:hover { color: var(--primary-d); border-color: var(--primary); background: var(--primary-soft); }
.intro-link svg { flex: none; }
body.dark .rank-row { background: #151d29; border-color: #2a394c; }
body.dark .rank-row.me { background: linear-gradient(90deg,#2a2118,#151d29); border-color: #5a4a26; }
body.dark .rk-cell b { color: #e7edf5; }
@media (max-width: 480px) {
  .rk-stats { gap: 10px; }
  .rk-cell { min-width: 34px; }
  .rk-medal { width: 36px; height: 36px; font-size: 15px; }
}

.resume-card {
  display: block; text-decoration: none; color: inherit;
  background: linear-gradient(90deg, var(--primary-soft), #fff 65%);
  border-left: 5px solid var(--primary); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px;
  box-shadow: var(--shadow); transition: all .18s;
}
.resume-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.resume-card .row { align-items: center; border: none; padding: 0; }

/* ============ 通用微调 ============ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cdd6e4; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #b4c0d2; }
button, a { -webkit-tap-highlight-color: transparent; }

/* ============ 响应式 ============ */
@media (max-width: 520px) {
  .stats { grid-template-columns: repeat(2,1fr); }
  .container { padding: 16px 12px 96px; }
  .online { display: none; }
  .topbar .nav > a { padding: 7px 8px; }
  .card { padding: 16px; }
  .topbar .inner { padding: 0 12px; }
}
/* 桌面端：显示顶栏导航菜单，隐藏悬浮底栏 */
@media (min-width: 768px) {
  .bottom-nav { display: none; }
}
/* 手机端：隐藏顶栏导航菜单，仅用悬浮底栏 */
@media (max-width: 767px) {
  .nav-menu { display: none; }
  .bottom-nav { display: flex; }
  .topbar h1 { font-size: 15px; }
  .intro-link { padding: 6px 8px; }
  .intro-link span { display: none; }
  .intro-link svg { width: 16px; height: 16px; }
}

/* ============ 深色模式 ============ */
body.dark {
  --bg: #0d1219;
  --card: #151d29;
  --line: #253242;
  --txt: #e7edf5;
  --mut: #8fa1b7;
  --primary-soft: #1b2f4d;
  --primary-d: #a8c6f5;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 6px 20px rgba(0,0,0,.45);
  background: var(--bg); color: var(--txt);
  background-image: radial-gradient(1200px 400px at 50% -8%, rgba(47,107,255,.08), transparent 60%);
}
body.dark .topbar { background: rgba(15,22,31,.8); border-bottom-color: #253242; }
body.dark .topbar h1, body.dark .topbar h1 a { color: #e7edf5; }
body.dark .topbar .nav > a, body.dark .userinfo { color: #aab9cd; }
body.dark .theme-btn, body.dark .chip, body.dark .option, body.dark .judge-btns .jb,
body.dark .auth-card, body.dark .field input, body.dark .field select,
body.dark .av-opt, body.dark .stat, body.dark .option.disabled {
  background: #151d29; border-color: #2a394c; color: var(--txt);
}
body.dark .theme-btn { color: #cdd9e8; }
body.dark .field input:focus, body.dark .field select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47,107,255,.22); }
body.dark .tag { background: #1b2f4d; color: #a8c6f5; }
body.dark .tag.alt { background: #223043; color: #9db0c4; }
body.dark .option:hover { background: #1a2634; border-color: var(--primary); }
body.dark .option.sel { background: #1b2f4d; }
body.dark .option .k, body.dark .jb { background: #223043; color: #c6d6e8; }
body.dark table.tbl th { background: #1d2b3b; color: #cddaea; }
body.dark table.tbl th, body.dark table.tbl td { border-color: #253242; }
body.dark table.tbl tr:nth-child(even) td { background: #19232f; }
body.dark table.tbl tr:hover td { background: #1f2e42; }
body.dark .row { border-color: #22303f; }
body.dark .answer-box .ref { background: #19232f; color: #c7d5e5; border-color: #2a394c; }
body.dark .resume-card { background: linear-gradient(90deg, #16283f, #151d29 70%); }
body.dark .msg.err { background: #2a1f20; color: #f0a6a8; border-color: #4a3032; }
body.dark .msg.ok { background: #162a23; color: #7fd6ac; border-color: #234a38; }
body.dark .msg.info { background: #17293d; color: #9cc4ee; border-color: #27405e; }
body.dark .bottom-nav { background: rgba(21,29,41,.9); border-color: #253242; }
body.dark .bottom-nav a.active { color: #fff; background: linear-gradient(135deg,var(--primary-2),var(--primary)); }
body.dark .bottom-nav a:not(.active):hover { color: #7db4f0; background: #1b2735; }
body.dark .pbar { background: #263445; }
body.dark .btn.gray { background: #223243; color: #d4e0ef; box-shadow: none; }
body.dark .btn.gray:hover { background: #2b3c50; filter: none; }
body.dark .exam-q { background: #151d29; }
body.dark .auto-switch { color: #b7c6d8; }
body.dark .rank-me { background: #2b2412 !important; }
body.dark .rank-me:hover td { background: #362d17 !important; }
body.dark .answer-box { border-top-color: #2a394c; }
body.dark .online { background: #1b2f4d; color: #a8c6f5; }
body.dark .auth-tabs { background: #1a2431; }
body.dark .auth-tabs a.active { background: #151d29; }
body.dark .feature-grid .f-tile { background: #151d29; border-color: #2a394c; }
body.dark .feature-grid .f-tile .fi { background: #1b2f4d; }
body.dark .feature-grid .f-tile span { color: #aab9cd; }
body.dark .feature-grid .f-tile:hover { border-color: var(--primary); }
body.dark .blank-ans { color: #ffa05c; background: rgba(255,140,60,.16); }

/* 深色模式：修正题干/标题等硬编码深色文字（避免深底黑字看不清） */
body.dark .q-stem { color: #e7edf5; }
body.dark .card h2 { color: #e7edf5; }
body.dark .bank-name { color: #d6e2f2; }
body.dark .btn-sm.gray, body.dark .btn.gray { background: #223243; color: #d4e0ef; }
body.dark .option .k { background: #223043; color: #c6d6e8; }
/* 答对 / 答错 高亮在深色下的底色与文字 */
body.dark .option.right { background: #162a23; border-color: #2f8f6a; }
body.dark .option.right .k { background: linear-gradient(135deg, #2fd18d, var(--green)); color: #fff; }
body.dark .option.right span { color: #8fe0bb; }
body.dark .option.wrong { background: #2a1f20; border-color: #a24548; }
body.dark .option.wrong .k { background: linear-gradient(135deg, #f07075, var(--red)); color: #fff; }
body.dark .option.wrong span { color: #f0a6a8; }
body.dark .jb.right { background: #162a23; border-color: #2f8f6a; color: #8fe0bb; }
body.dark .jb.wrong { background: #2a1f20; border-color: #a24548; color: #f0a6a8; }
body.dark .answer-box .ans { color: #e7edf5; }
body.dark .answer-box .ans .blank-ans { color: #ffa05c; }
body.dark .msg { color: var(--txt); }

/* ===== 首页选择题库 · 页面内点开下滑（QQ 风格） ===== */
.bank-pick {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 13px 14px; margin: 0;
  background: var(--card); border: 1.5px solid var(--primary); border-radius: 12px;
  color: var(--txt); font-size: 15px; font-weight: 500; cursor: pointer;
  box-shadow: var(--shadow); -webkit-appearance: none; appearance: none; text-align: left;
}
.bank-pick-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bank-pick-arrow { flex: none; color: var(--primary); font-size: 16px; transition: transform .2s ease; }
.bank-pick.open .bank-pick-arrow { transform: rotate(180deg); }
.bank-pick.open { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
body.dark .bank-pick { background: #1b2430; color: var(--txt); }

.bank-panel {
  display: none; margin-top: 8px;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--card); box-shadow: var(--shadow);
  max-height: 58vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.bank-panel.open { display: block; }
.bank-group { padding: 4px 0; }
.bank-group + .bank-group { border-top: 1px solid var(--line); }
.bank-head {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px 4px;
  font-size: 14px; font-weight: 600; color: var(--txt); position: sticky; top: 0;
  background: var(--card); z-index: 2;
}
body.dark .bank-head { background: #1b2430; }
.bank-logo {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#4f8cff,#3b6ef5); color: #fff;
}
.bank-count { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--mut); background: var(--bg); border-radius: 10px; padding: 2px 8px; }
.bank-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; margin: 3px 8px; border-radius: 11px;
  background: var(--bg); border: 1px solid var(--line); text-decoration: none;
  transition: transform .06s ease;
}
.bank-item:active { transform: scale(.98); }
.bank-name { flex: 1; font-size: 15px; color: var(--txt); font-weight: 500; }
.bank-q { font-size: 13px; color: var(--mut); }
.bank-radio {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  border: 2px solid var(--line); background: transparent; position: relative;
}
.bank-item:hover .bank-radio { border-color: var(--green); }
.bank-item:hover .bank-radio::after {
  content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 10px;
  border: solid var(--green); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
body.dark .bank-item { background: #23272f; border-color: #333a45; }
body.dark .bank-count { background: #2b313c; color: #aeb6c2; }

/* ============================================================
   丝滑升级层 · 大厂级动效与质感（QQ / 抖音 / 阿里）
   统一贝塞尔曲线 · 入场动效 · 按压反馈 · 数字滚动 · 图标流光
   ============================================================ */
html { scroll-behavior: smooth; }

/* 统一按压反馈 + 顺滑过渡（弹性回弹贝塞尔） */
button, .btn, .chip, .option, .jb, .bank-item, .f-tile, .rank-row,
.bottom-nav a, .av-opt, .bank-pick, .rank-me-card, .intro-link, .stat {
  transition: transform .16s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease,
              border-color .22s ease, background .22s ease, color .22s ease, opacity .22s ease;
}
button:active, .btn:active, .chip:active, .option:active, .jb:active, .bank-item:active,
.f-tile:active, .rank-row:active, .bottom-nav a:active, .av-opt:active, .bank-pick:active,
.intro-link:active { transform: scale(.96); }

/* 页面入场：卡片逐层浮起淡入 */
@keyframes riseIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.card { animation: riseIn .55s cubic-bezier(.22,1,.36,1) backwards; }
.card:nth-child(1){ animation-delay: .02s; } .card:nth-child(2){ animation-delay: .07s; }
.card:nth-child(3){ animation-delay: .12s; } .card:nth-child(4){ animation-delay: .17s; }
.card:nth-child(5){ animation-delay: .22s; } .card:nth-child(6){ animation-delay: .27s; }
.card:nth-child(7){ animation-delay: .32s; } .card:nth-child(8){ animation-delay: .37s; }
.card:nth-child(9){ animation-delay: .42s; } .card:nth-child(n+10){ animation-delay: .45s; }
@media (prefers-reduced-motion: reduce) { .card { animation: none; } }

/* 卡片桌面浮起质感 */
@media (hover:hover) and (min-width: 768px) {
  .card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: #d9e2f2; }
  .card:active { transform: translateY(0); }
}

/* 统计数字：数字滚动节律 + 呼吸光晕 */
.stat { position: relative; }
.stat .num { display: inline-block; font-variant-numeric: tabular-nums; }
.stat.green .num, .stat.orange .num, .stat.red .num { animation: none; }
@keyframes glow { 0%,100%{ box-shadow: 0 0 0 0 var(--glow,rgba(47,107,255,.0));} 50%{ box-shadow: 0 0 14px 2px var(--glow,rgba(47,107,255,.14));} }
.stat:hover { animation: glow 1.8s ease-in-out infinite; }
.stat.green:hover{ --glow: rgba(22,168,106,.18);} .stat.red:hover{ --glow: rgba(229,72,77,.16);}
.stat.orange:hover{ --glow: rgba(240,138,36,.18);}

/* 选项：正确/错误 平滑回弹 */
.option.right, .option.wrong { animation: popIn .35s cubic-bezier(.22,1,.36,1); }
@keyframes popIn { 0%{ transform: scale(.92);} 60%{ transform: scale(1.03);} 100%{ transform: none;} }

/* 功能九宫格：图标流光扫过 */
.feature-grid .f-tile .fi { position: relative; overflow: hidden; }
.feature-grid .f-tile .fi::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(120deg, transparent 32%, rgba(255,255,255,.4) 50%, transparent 68%);
  transform: translateX(-110%); transition: transform .6s ease;
}
.feature-grid .f-tile:hover .fi::after { transform: translateX(110%); }
.feature-grid .f-tile .fi svg { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.feature-grid .f-tile:hover .fi svg { transform: scale(1.12) rotate(-4deg); }

/* 底部导航：激活项弹簧弹起 + 图标浮升 */
.bottom-nav a { transition: color .2s ease, background .2s ease; }
.bottom-nav a .ico { transition: transform .32s cubic-bezier(.34,1.56,.64,1); }
.bottom-nav a.active .ico { transform: translateY(-2px) scale(1.1); }
.bottom-nav a.active { box-shadow: 0 6px 16px rgba(47,107,255,.36); }
@keyframes navPop { 0%{ transform: scale(.96);} 100%{ transform: none;} }
.bottom-nav a.active { animation: navPop .3s cubic-bezier(.34,1.56,.64,1); }

/* 顶栏品牌徽标：细腻悬停 */
.brand-badge { transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease; }
.topbar h1 a:hover .brand-badge { transform: rotate(-6deg) scale(1.06); box-shadow: 0 6px 18px rgba(47,107,255,.4); }

/* 答题进度条：柔和渐变呼吸 */
.pbar > div { background: linear-gradient(90deg, var(--primary-3), var(--primary), var(--primary-2)); background-size: 200% 100%; animation: pbarFlow 3s linear infinite; }
@keyframes pbarFlow { 0%{ background-position: 0% 0; } 100%{ background-position: 200% 0; } }

/* 在线绿点：呼吸 */
.online::before { animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 0%,100%{ opacity: 1;} 50%{ opacity: .4;} }

/* 选项卡（登录/分类切换）：平滑滑入 */
.auth-tabs a { transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s, color .2s, background .2s; }
.auth-tabs a:active { transform: scale(.96); }

/* 表单聚焦光晕 */
.field input:focus, .field select:focus, .select-full:focus { box-shadow: 0 0 0 4px rgba(47,107,255,.14), 0 2px 8px rgba(47,107,255,.10); }
.field input, .field select, .select-full { transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }

/* 榜单行：进入浮起 + 高亮行微光 */
.rank-row { animation: riseIn .5s cubic-bezier(.22,1,.36,1) backwards; }
.rank-row.me { box-shadow: 0 4px 18px rgba(245,166,35,.20); }
@media (prefers-reduced-motion: reduce) { .rank-row { animation: none; } }

/* 通用焦点可见环（无障碍 + 质感） */
a:focus-visible, button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

/* 微滚动条（细、圆润、低存在感） */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(139,153,176,.5); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(111,128,152,.7); }
body.dark ::-webkit-scrollbar-thumb { background: rgba(140,160,184,.35); }

/* 深色模式微调：弹簧阴影更含蓄 */
body.dark .card:hover { border-color: #2f4158; box-shadow: 0 10px 34px rgba(0,0,0,.5); }
body.dark .brand-badge { box-shadow: 0 4px 14px rgba(47,107,255,.45); }

/* ============================================================
   Toast 轻提示（大厂风 · 丝滑入场）
   ============================================================ */
#toastWrap {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 999;
  display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none;
  width: min(88%, 420px);
}
.toast {
  background: rgba(23,35,53,.92); color: #fff; font-size: 14px; font-weight: 600;
  padding: 11px 20px; border-radius: 999px; box-shadow: 0 8px 26px rgba(0,0,0,.22);
  backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.10);
  opacity: 0; transform: translateY(-16px) scale(.96); transition: all .28s cubic-bezier(.22,1,.36,1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
  animation: none;
}
.toast.show { opacity: 1; transform: translateY(0) scale(1); }
.toast.ok { background: rgba(22,168,106,.94); }
.toast.err { background: rgba(229,72,77,.94); }
.toast.warn { background: rgba(240,138,36,.94); }
body.dark .toast { border-color: rgba(255,255,255,.12); }

/* ============================================================
   站内确认弹层（替代浏览器原生 confirm / alert）
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15,23,34,.46); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity .22s ease;
}
.modal-overlay.show { opacity: 1; }
.modal {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  width: min(92%, 360px); padding: 26px 22px 22px; box-shadow: 0 24px 60px rgba(0,0,0,.22);
  transform: translateY(16px) scale(.92); transition: transform .26s cubic-bezier(.22,1,.36,1);
  text-align: center;
}
.modal-overlay.show .modal { transform: none; }
.modal .m-icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  background: linear-gradient(135deg,#f6b558,var(--orange));
  box-shadow: 0 8px 20px rgba(240,138,36,.28);
}
.modal.danger .m-icon { background: linear-gradient(135deg,#f07c7c,var(--red)); box-shadow: 0 8px 20px rgba(229,72,77,.28); }
.modal .m-title { font-size: 16px; font-weight: 700; color: var(--txt); margin-bottom: 8px; }
.modal .m-msg { font-size: 13.5px; color: var(--mut); line-height: 1.65; margin-bottom: 22px; white-space: pre-wrap; word-break: break-word; }
.modal .m-btns { display: flex; gap: 10px; }
.modal .m-btns .btn { flex: 1; padding: 12px; justify-content: center; }
body.dark .modal { border-color: #2a394c; }
body.dark .modal-overlay { background: rgba(5,8,13,.6); }

/* ===== 悬浮实时统计小窗 ===== */
.float-stats {
  position: fixed; right: 14px; bottom: 78px; z-index: 60;
  display: flex; align-items: center; gap: 7px;
  padding: 7px 11px; border-radius: 999px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,.08); box-shadow: 0 6px 20px rgba(20,40,80,.12);
  font-size: 12.5px; color: #3a4556; cursor: grab; user-select: none;
  max-width: 80vw; white-space: nowrap; transition: opacity .2s;
  touch-action: none;   /* 手机端触控：避免浏览器把拖动当成滚动 */
}
.float-stats .fs-body .ok { color: #1f9d63; font-weight: 700; }
.float-stats .fs-body .bad { color: #e23b3e; font-weight: 700; }
.float-stats:active { cursor: grabbing; }
.float-stats .fs-icon { font-size: 14px; line-height: 1; }
.float-stats .fs-body b { color: #1f6feb; font-weight: 700; margin: 0 1px; }
.float-stats .fs-btn {
  border: none; background: transparent; color: #8a94a6; cursor: pointer;
  width: 20px; height: 20px; line-height: 18px; border-radius: 50%; font-size: 13px; padding: 0;
}
.float-stats .fs-btn:hover { background: rgba(0,0,0,.08); color: #333; }
.float-dot {
  position: fixed; right: 16px; bottom: 80px; z-index: 60;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,.08); box-shadow: 0 6px 18px rgba(20,40,80,.15);
  cursor: pointer; font-size: 16px;
}
body.dark .float-stats { background: rgba(21,29,41,.92); border-color: rgba(255,255,255,.1); color: #c6d2e0; }
body.dark .float-stats .fs-body b { color: #6ea8ff; }
body.dark .float-stats .fs-body .ok { color: #34c98a; }
body.dark .float-stats .fs-body .bad { color: #ff6b6f; }
body.dark .float-stats .fs-btn { color: #7c8aa0; }
body.dark .float-stats .fs-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
body.dark .float-dot { background: rgba(21,29,41,.94); border-color: rgba(255,255,255,.1); }

/* ===== 翻题速度选择器 ===== */
.speed-sel {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  border: 1px solid var(--line); background: var(--card); color: var(--txt);
  border-radius: 8px; padding: 3px 24px 3px 8px; font-size: 12.5px; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 7px center;
}
.speed-sel:focus { outline: none; border-color: var(--primary); }
body.dark .speed-sel { background-color: #1b2430; border-color: #2a394c; }

/* ===== 发起人查看成绩弹窗 ===== */
.score-modal { max-width: 640px; width: 92vw; }
.score-body { padding: 8px 0 4px; }
.scr-head { font-size: 12px; color: var(--mut); padding: 4px 14px 10px; }
.scr-row { border-bottom: 1px solid var(--line); padding: 10px 14px; cursor: pointer; }
.scr-row:active { background: rgba(0,0,0,.03); }
.scr-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.scr-main .rk { font-weight: 700; color: #c96a2b; width: 24px; }
.scr-main .name { flex: 1; min-width: 120px; font-weight: 600; color: var(--txt); }
.scr-main .name small { color: var(--mut); font-weight: 400; }
.scr-main .score b { color: var(--primary); font-size: 16px; }
.scr-main .det { color: var(--mut); font-size: 12px; }
.scr-detail { display: none; margin-top: 8px; background: var(--bg); border-radius: 10px; padding: 8px 10px; max-height: 240px; overflow: auto; }
.scr-row.open .scr-detail { display: block; }
.scr-detail .qrow { font-size: 12.5px; padding: 4px 2px; color: var(--txt); line-height: 1.5; }
.scr-detail .qrow .t { color: var(--mut); font-size: 11px; margin-right: 4px; }
body.dark .scr-row { border-color: #26343f; }
body.dark .scr-row:active { background: rgba(255,255,255,.03); }
