Files
TermiNexus f8d356f3ff chore(baseline): 注册 RollCall/Viper/Venom 子域与站点,补 rollcall 应用
Main.py:WHITE_HOSTS 增 rollcall/viper/venom 主机,STATIC_SITES 增 rollcall/venom 静态根,静态站点路由下 /API/ 前缀请求转交 Django 处理。

gvsds:settings.py 注册 gvsds.apps.rollcall,urls.py 挂载 API/RollCall/;新增 rollcall 应用(模型/视图/路由/迁移 + RollCallManager 数据访问层)与 TempLate/rollcall 前端站点。

.gitignore:排除 Viper/Venom 前端工程与部署产物、TempLate/FTP 二进制分发目录。
2026-09-14 12:30:06 +08:00

1054 lines
32 KiB
CSS

/* ============ 设计变量 ============ */
:root {
--ink: #1a2238;
--ink-soft: #2c3654;
--ink-deep: #0f1525;
--paper: #f5f0e6;
--paper-2: #efe8d8;
--paper-3: #e8e0cc;
--card: #fffdf8;
--card-2: #fbf6ea;
--gold: #e8a838;
--gold-light: #f4c668;
--gold-deep: #c8861a;
--gold-glow: rgba(232, 168, 56, 0.35);
--red: #c84b4b;
--red-soft: #fce8e8;
--green: #3a8c7a;
--green-soft: #e6f4ea;
--muted: #8a8275;
--muted-2: #b5ac9c;
--border: #e2dac8;
--border-soft: #efe8d8;
--shadow-xs: 0 1px 3px rgba(26, 34, 56, 0.06);
--shadow-sm: 0 4px 14px rgba(26, 34, 56, 0.08);
--shadow: 0 8px 30px rgba(26, 34, 56, 0.12);
--shadow-lg: 0 20px 60px rgba(26, 34, 56, 0.22);
--shadow-gold: 0 8px 28px rgba(232, 168, 56, 0.4);
--radius: 14px;
--radius-sm: 10px;
--radius-lg: 20px;
--serif: "Noto Serif SC", "Songti SC", serif;
--sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
font-family: var(--sans);
background: var(--paper);
background-image:
radial-gradient(circle at 12% 8%, rgba(232, 168, 56, 0.12), transparent 40%),
radial-gradient(circle at 88% 92%, rgba(58, 140, 122, 0.10), transparent 42%),
radial-gradient(circle at 50% 50%, rgba(232, 168, 56, 0.04), transparent 60%);
background-attachment: fixed;
color: var(--ink);
min-height: 100vh;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
/* ============ 顶部导航 ============ */
.topbar {
display: flex;
align-items: center;
gap: 28px;
padding: 14px 32px;
background: rgba(255, 253, 248, 0.85);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border);
box-shadow: 0 2px 20px rgba(26, 34, 56, 0.06);
position: sticky;
top: 0;
z-index: 50;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: flex; align-items: center; filter: drop-shadow(0 2px 6px rgba(232, 168, 56, 0.3)); }
.brand-title {
font-family: var(--serif);
font-size: 22px;
font-weight: 900;
letter-spacing: 1px;
color: var(--ink);
}
.brand-sub {
font-size: 12px;
color: var(--muted);
padding-left: 12px;
margin-left: 4px;
border-left: 1px solid var(--border);
letter-spacing: 0.5px;
}
.tabs { display: flex; gap: 4px; margin-left: 12px; }
.tab {
border: none;
background: transparent;
font-family: var(--sans);
font-size: 15px;
font-weight: 500;
color: var(--muted);
padding: 9px 18px;
border-radius: 999px;
cursor: pointer;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
}
.tab:hover { color: var(--ink); background: var(--paper-2); }
.tab.active { color: var(--card); background: var(--ink); box-shadow: 0 4px 12px rgba(26, 34, 56, 0.25); }
.topbar-right { margin-left: auto; }
.count-badge {
font-size: 13px;
font-weight: 700;
color: var(--ink);
background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
padding: 6px 14px;
border-radius: 999px;
box-shadow: 0 4px 12px rgba(232, 168, 56, 0.3);
}
/* ============ 主区域 ============ */
.app { max-width: 1280px; margin: 0 auto; padding: 28px 32px 80px; }
.view { display: none; animation: fadeIn 0.35s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* ============ 点名舞台 ============ */
.roll-stage {
position: relative;
background: linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 60%, var(--ink-deep) 100%);
border-radius: var(--radius-lg);
padding: 60px 32px;
overflow: hidden;
box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.08);
min-height: 360px;
display: flex;
align-items: center;
justify-content: center;
}
.roll-stage::before {
content: "";
position: absolute;
inset: 0;
background-image:
radial-gradient(circle at 20% 30%, rgba(232, 168, 56, 0.22), transparent 35%),
radial-gradient(circle at 80% 70%, rgba(58, 140, 122, 0.18), transparent 38%),
radial-gradient(circle at 50% 100%, rgba(232, 168, 56, 0.12), transparent 50%);
pointer-events: none;
}
.roll-stage::after {
content: "";
position: absolute;
inset: 0;
background-image:
repeating-linear-gradient(45deg, transparent 0 28px, rgba(255,255,255,0.022) 28px 29px),
repeating-linear-gradient(-45deg, transparent 0 56px, rgba(232,168,56,0.015) 56px 57px);
pointer-events: none;
}
.roller { position: relative; z-index: 2; text-align: center; }
.roller-card {
display: flex;
flex-direction: column;
align-items: center;
gap: 18px;
transition: transform 0.15s;
}
.roller-card.spinning { animation: cardShake 0.12s linear infinite; }
@keyframes cardShake {
0% { transform: translateX(-2px); }
50% { transform: translateX(2px); }
100% { transform: translateX(-2px); }
}
.roller-avatar {
width: 136px;
height: 136px;
border-radius: 30px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
box-shadow: 0 16px 50px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.1);
border: 3px solid rgba(255,255,255,0.18);
position: relative;
}
.roller-avatar svg { width: 100%; height: 100%; display: block; }
.roller-name {
font-family: var(--serif);
font-size: 46px;
font-weight: 900;
color: #fff;
letter-spacing: 2px;
text-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 40px rgba(232,168,56,0.2);
min-height: 60px;
}
.roller-tag {
font-size: 15px;
color: rgba(255,255,255,0.65);
letter-spacing: 1px;
}
.roller-card.done .roller-name {
color: var(--gold-light);
animation: namePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
text-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 60px rgba(232,168,56,0.6);
}
@keyframes namePop {
0% { transform: scale(0.6); opacity: 0; }
60% { transform: scale(1.12); }
100% { transform: scale(1); opacity: 1; }
}
.roller-card.done .roller-avatar {
animation: avatarGlow 0.8s ease;
border-color: var(--gold);
box-shadow: 0 0 60px rgba(232, 168, 56, 0.7), 0 16px 50px rgba(0,0,0,0.45);
}
@keyframes avatarGlow {
0% { transform: scale(0.8) rotate(-8deg); }
50% { transform: scale(1.1) rotate(4deg); }
100% { transform: scale(1) rotate(0); }
}
/* 题目模式下的 roller 卡片 */
.roller-card.question-mode .roller-name {
font-size: 36px;
}
.roller-card.question-mode .roller-tag {
font-size: 16px;
max-width: 600px;
line-height: 1.6;
color: rgba(255,255,255,0.85);
}
.roller-card.question-mode.done .roller-name {
color: var(--gold-light);
}
.confetti {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 3;
}
.result-toast {
position: absolute;
top: 24px;
left: 50%;
transform: translateX(-50%);
z-index: 4;
animation: toastIn 0.5s ease;
}
.result-toast[hidden] { display: none; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.result-toast-inner {
background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
color: var(--ink);
padding: 9px 24px;
border-radius: 999px;
font-size: 14px;
font-weight: 700;
display: flex;
align-items: center;
gap: 10px;
box-shadow: 0 10px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.4);
}
.result-label { opacity: 0.85; }
.result-name { font-family: var(--serif); font-size: 17px; }
/* ============ 控制栏 ============ */
.controls {
display: flex;
align-items: center;
gap: 16px;
margin-top: 24px;
flex-wrap: wrap;
}
.mode-switch {
display: flex;
background: var(--card);
border: 1px solid var(--border);
border-radius: 999px;
padding: 4px;
box-shadow: var(--shadow-xs);
}
.mode-btn {
border: none;
background: transparent;
font-family: var(--sans);
font-size: 14px;
font-weight: 500;
color: var(--muted);
padding: 8px 18px;
border-radius: 999px;
cursor: pointer;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.mode-btn:hover { color: var(--ink); }
.mode-btn.active { color: var(--card); background: var(--ink); box-shadow: 0 4px 10px rgba(26, 34, 56, 0.2); }
.multi-config {
display: flex;
align-items: center;
gap: 12px;
margin-top: 14px;
color: var(--muted);
font-size: 14px;
}
.multi-config[hidden] { display: none; }
.stepper { display: flex; align-items: center; gap: 10px; }
.step-btn {
width: 32px; height: 32px;
border: 1px solid var(--border);
background: var(--card);
border-radius: 8px;
font-size: 18px;
font-weight: 700;
color: var(--ink);
cursor: pointer;
transition: all 0.15s;
}
.step-btn:hover { background: var(--ink); color: var(--card); border-color: var(--ink); transform: translateY(-1px); }
.step-btn:active { transform: translateY(0); }
.step-val { min-width: 28px; text-align: center; font-weight: 700; font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
/* ============ 按钮 ============ */
.btn {
display: inline-flex;
align-items: center;
gap: 8px;
border: 1px solid var(--border);
background: var(--card);
font-family: var(--sans);
font-size: 14px;
font-weight: 600;
color: var(--ink);
padding: 10px 20px;
border-radius: var(--radius-sm);
cursor: pointer;
transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
white-space: nowrap;
position: relative;
overflow: hidden;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-xs); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--card); }
.btn-primary {
background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
color: #fff;
border-color: transparent;
box-shadow: var(--shadow-gold);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(232, 168, 56, 0.55); }
.btn-danger { color: var(--red); border-color: rgba(200, 75, 75, 0.3); }
.btn-danger:hover { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 8px 20px rgba(200, 75, 75, 0.35); }
.btn-lg { font-size: 16px; padding: 15px 36px; border-radius: 12px; }
.btn-sm { font-size: 13px; padding: 7px 14px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-icon { display: flex; }
/* ============ 学生卡片墙 ============ */
.wall-section, .history-section { margin-top: 36px; }
.section-head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 18px;
flex-wrap: wrap;
gap: 12px;
}
.section-title {
font-family: var(--serif);
font-size: 22px;
font-weight: 700;
color: var(--ink);
position: relative;
padding-left: 14px;
}
.section-title::before {
content: "";
position: absolute;
left: 0; top: 50%;
transform: translateY(-50%);
width: 4px; height: 20px;
background: var(--gold);
border-radius: 2px;
}
.section-desc { font-size: 13px; color: var(--muted); margin-top: 4px; }
.wall-filter { display: flex; gap: 6px; }
.filter-btn {
border: 1px solid var(--border);
background: var(--card);
font-family: var(--sans);
font-size: 13px;
color: var(--muted);
padding: 6px 14px;
border-radius: 999px;
cursor: pointer;
transition: all 0.15s;
}
.filter-btn span { font-weight: 700; color: var(--ink); margin-left: 4px; }
.filter-btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 4px 10px rgba(26, 34, 56, 0.2); }
.filter-btn.active span { color: var(--gold-light); }
.wall {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
gap: 14px;
}
.wall-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 16px 10px 12px;
text-align: center;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
cursor: default;
position: relative;
overflow: hidden;
}
.wall-card::before {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(135deg, transparent 0%, rgba(232,168,56,0.06) 100%);
opacity: 0;
transition: opacity 0.2s;
pointer-events: none;
}
.wall-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.wall-card:hover::before { opacity: 1; }
.wall-card.picked { opacity: 0.55; }
.wall-card.picked::after {
content: "已抽";
position: absolute;
top: 8px; right: 8px;
font-size: 10px;
font-weight: 700;
color: #fff;
background: var(--green);
padding: 2px 8px;
border-radius: 999px;
box-shadow: 0 2px 6px rgba(58, 140, 122, 0.4);
}
.wall-card.current {
border-color: var(--gold);
box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.3), var(--shadow);
transform: translateY(-4px) scale(1.04);
}
.wall-card.current::before { opacity: 1; }
.wall-avatar { width: 56px; height: 56px; margin: 0 auto 8px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-xs); }
.wall-avatar svg { width: 100%; height: 100%; display: block; }
.wall-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.wall-no { font-size: 11px; color: var(--muted); margin-top: 2px; }
.wall-group { font-size: 10px; color: var(--gold-deep); margin-top: 3px; background: rgba(232,168,56,0.12); padding: 1px 8px; border-radius: 999px; display: inline-block; }
.empty-state {
text-align: center;
padding: 48px 20px;
color: var(--muted);
}
.empty-state p { margin-bottom: 16px; font-size: 15px; }
/* ============ 历史记录 ============ */
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-item {
display: flex;
align-items: center;
gap: 14px;
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 10px 16px;
animation: slideIn 0.3s ease;
transition: all 0.15s;
}
.history-item:hover { border-color: var(--gold); box-shadow: var(--shadow-xs); }
@keyframes slideIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.history-idx {
font-family: var(--serif);
font-size: 18px;
font-weight: 900;
color: var(--gold);
min-width: 32px;
}
.history-avatar { width: 36px; height: 36px; border-radius: 10px; overflow: hidden; flex-shrink: 0; box-shadow: var(--shadow-xs); }
.history-avatar svg { width: 100%; height: 100%; }
.history-name { font-weight: 600; color: var(--ink); }
.history-no { font-size: 12px; color: var(--muted); margin-left: 8px; }
.history-time { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.history-empty { text-align: center; color: var(--muted); padding: 24px; font-size: 14px; }
.history-empty[hidden] { display: none; }
/* ============ 学生管理 ============ */
.manage-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.manage-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.search-bar {
display: flex;
align-items: center;
gap: 10px;
background: var(--card);
border: 1px solid var(--border);
border-radius: 999px;
padding: 10px 18px;
margin-bottom: 18px;
color: var(--muted);
}
.search-bar:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,168,56,0.15); }
.search-bar input { border: none; outline: none; background: transparent; font-family: var(--sans); font-size: 14px; color: var(--ink); flex: 1; }
.table-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.student-table { width: 100%; border-collapse: collapse; }
.student-table th {
text-align: left;
font-size: 13px;
font-weight: 700;
color: var(--muted);
padding: 14px 18px;
background: var(--paper-2);
border-bottom: 1px solid var(--border);
letter-spacing: 0.5px;
}
.student-table td { padding: 12px 18px; border-bottom: 1px solid var(--border-soft); font-size: 14px; color: var(--ink); }
.student-table tbody tr:last-child td { border-bottom: none; }
.student-table tbody tr { transition: background 0.15s; }
.student-table tbody tr:hover { background: var(--paper); }
.row-avatar { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-xs); }
.row-avatar svg { width: 100%; height: 100%; }
.row-actions { display: flex; gap: 8px; }
.icon-btn {
width: 32px; height: 32px;
border: 1px solid var(--border);
background: var(--card);
border-radius: 8px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
color: var(--muted);
transition: all 0.15s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-1px); }
.icon-btn.danger:hover { color: #fff; background: var(--red); border-color: var(--red); }
/* ============ 设置 ============ */
.settings-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 8px 24px;
margin-bottom: 18px;
max-width: 720px;
box-shadow: var(--shadow-sm);
}
.settings-group-title { font-family: var(--serif); font-size: 17px; font-weight: 700; padding: 18px 0 8px; border-bottom: 1px solid var(--border); }
.setting-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--border); gap: 20px; }
.setting-row:last-child { border-bottom: none; }
.setting-name { font-size: 15px; font-weight: 600; color: var(--ink); display: block; }
.setting-desc { font-size: 13px; color: var(--muted); display: block; margin-top: 2px; }
.setting-control { display: flex; align-items: center; gap: 14px; }
.setting-val { font-size: 13px; color: var(--muted); min-width: 48px; text-align: right; }
.slider { -webkit-appearance: none; appearance: none; width: 180px; height: 6px; background: var(--paper-2); border-radius: 3px; outline: none; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; background: var(--gold); border-radius: 50%; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.slider::-moz-range-thumb { width: 18px; height: 18px; background: var(--gold); border-radius: 50%; cursor: pointer; border: none; }
.switch { position: relative; display: inline-block; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-track { display: block; width: 46px; height: 26px; background: var(--paper-2); border-radius: 999px; transition: 0.2s; position: relative; }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: 0.25s; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.switch input:checked + .switch-track { background: var(--green); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(20px); }
.settings-foot { font-size: 13px; color: var(--muted); margin-top: 8px; }
/* ============ 弹窗 ============ */
.modal-mask {
position: fixed;
inset: 0;
background: rgba(15, 21, 37, 0.6);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
display: flex;
align-items: center;
justify-content: center;
z-index: 100;
animation: maskIn 0.2s ease;
}
.modal-mask[hidden] { display: none; }
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
background: var(--card);
border-radius: var(--radius-lg);
width: 460px;
max-width: 92vw;
max-height: 90vh;
overflow: auto;
box-shadow: 0 30px 80px rgba(0,0,0,0.4);
animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.92) translateY(20px); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 14px; }
.modal-head h3 { font-family: var(--serif); font-size: 20px; font-weight: 700; }
.modal-close { border: none; background: transparent; font-size: 26px; color: var(--muted); cursor: pointer; line-height: 1; padding: 0 4px; transition: color 0.15s; }
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 0 24px 8px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px 24px; }
.avatar-picker { margin-bottom: 18px; }
.avatar-preview { width: 80px; height: 80px; border-radius: 18px; overflow: hidden; margin: 0 auto 14px; box-shadow: var(--shadow); }
.avatar-preview svg { width: 100%; height: 100%; }
.avatar-options { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.avatar-opt {
width: 40px; height: 40px;
border-radius: 10px;
overflow: hidden;
cursor: pointer;
border: 2px solid transparent;
transition: all 0.15s;
}
.avatar-opt:hover { transform: scale(1.1); }
.avatar-opt.selected { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(232,168,56,0.3); }
.avatar-opt svg { width: 100%; height: 100%; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.req { color: var(--red); }
.form-row input {
width: 100%;
border: 1px solid var(--border);
background: var(--paper);
border-radius: var(--radius-sm);
padding: 11px 14px;
font-family: var(--sans);
font-size: 14px;
color: var(--ink);
outline: none;
transition: all 0.15s;
}
.form-row input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,168,56,0.15); background: var(--card); }
/* ============ Toast ============ */
.toast {
position: fixed;
bottom: 32px;
left: 50%;
transform: translateX(-50%);
background: var(--ink);
color: #fff;
padding: 12px 24px;
border-radius: 999px;
font-size: 14px;
font-weight: 500;
z-index: 200;
box-shadow: var(--shadow-lg);
animation: toastUp 0.3s ease;
}
.toast[hidden] { display: none; }
.toast.error { background: var(--red); }
.toast.success { background: var(--green); }
@keyframes toastUp { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
/* ============ 响应式 ============ */
@media (max-width: 768px) {
.topbar { padding: 12px 16px; gap: 12px; flex-wrap: wrap; }
.brand-sub { display: none; }
.app { padding: 20px 16px 60px; }
.roll-stage { padding: 40px 16px; min-height: 300px; border-radius: var(--radius); }
.roller-avatar { width: 104px; height: 104px; border-radius: 26px; }
.roller-name { font-size: 34px; }
.roller-card.question-mode .roller-name { font-size: 26px; }
.controls { gap: 10px; }
.wall { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.manage-head { flex-direction: column; align-items: stretch; }
.manage-actions { flex-wrap: wrap; }
.multi-results-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.section-title { font-size: 19px; }
}
@media (max-width: 480px) {
.topbar { padding: 10px 14px; gap: 8px; }
.brand-title { font-size: 18px; }
.tabs { margin-left: 0; gap: 2px; }
.tab { padding: 7px 12px; font-size: 13px; }
.app { padding: 16px 12px 50px; }
.roll-stage { padding: 32px 12px; min-height: 260px; }
.roller-avatar { width: 88px; height: 88px; border-radius: 22px; }
.roller-name { font-size: 28px; }
.roller-card.question-mode .roller-name { font-size: 22px; }
.roller-tag { font-size: 13px; }
.mode-toggle { padding: 8px 16px; font-size: 14px; }
.btn-lg { font-size: 15px; padding: 13px 28px; }
.wall { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
.wall-card { padding: 12px 8px 10px; }
.wall-avatar { width: 48px; height: 48px; }
.wall-name { font-size: 13px; }
}
/* ============ 分组筛选 ============ */
.group-filter {
display: flex;
align-items: center;
gap: 8px;
background: var(--card);
border: 1px solid var(--border);
border-radius: 999px;
padding: 4px 4px 4px 16px;
}
.group-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.group-select {
border: none;
background: var(--paper-2);
font-family: var(--sans);
font-size: 14px;
font-weight: 500;
color: var(--ink);
padding: 8px 14px;
border-radius: 999px;
cursor: pointer;
outline: none;
transition: all 0.15s;
}
.group-select:hover { background: var(--ink); color: var(--card); }
/* ============ 模式开关(抽人/抽题) ============ */
.mode-toggles {
display: flex;
gap: 10px;
margin-top: 20px;
margin-bottom: 4px;
}
.mode-toggle {
display: inline-flex;
align-items: center;
gap: 8px;
border: 2px solid var(--border);
background: var(--card);
font-family: var(--sans);
font-size: 15px;
font-weight: 600;
color: var(--muted);
padding: 10px 22px;
border-radius: 999px;
cursor: pointer;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.mode-toggle:hover { border-color: var(--gold); color: var(--ink); transform: translateY(-1px); }
.mode-toggle.active {
border-color: var(--ink);
background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
color: #fff;
box-shadow: 0 8px 20px rgba(26, 34, 56, 0.3);
}
.mode-toggle.active svg { color: var(--gold-light); }
.person-controls, .question-controls {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.person-controls[hidden], .question-controls[hidden] { display: none; }
/* 内联复选框 */
.check-inline {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 14px;
font-weight: 500;
color: var(--ink);
cursor: pointer;
user-select: none;
}
.check-inline input { width: 16px; height: 16px; accent-color: var(--ink); cursor: pointer; }
/* ============ 题目结果展示区 ============ */
.question-result {
margin-top: 20px;
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px 24px;
animation: fadeIn 0.4s ease;
box-shadow: var(--shadow-sm);
}
.question-result[hidden] { display: none; }
.question-result-head { margin-bottom: 14px; }
.qr-title {
font-family: var(--serif);
font-size: 17px;
font-weight: 700;
color: var(--ink);
padding-left: 14px;
position: relative;
}
.qr-title::before {
content: "";
position: absolute;
left: 0; top: 50%;
transform: translateY(-50%);
width: 4px; height: 18px;
background: var(--green);
border-radius: 2px;
}
/* ============ 多人结果展示 ============ */
.multi-results {
margin-top: 20px;
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px 24px;
animation: fadeIn 0.4s ease;
box-shadow: var(--shadow-sm);
}
.multi-results[hidden] { display: none; }
.multi-results-head {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 16px;
}
.multi-results-title {
font-family: var(--serif);
font-size: 17px;
font-weight: 700;
color: var(--ink);
}
.multi-results-count {
font-size: 13px;
color: var(--muted);
background: var(--paper-2);
padding: 3px 10px;
border-radius: 999px;
}
.multi-results-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
gap: 14px;
}
.multi-result-card {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
padding: 18px 10px 14px;
background: linear-gradient(160deg, var(--paper) 0%, var(--paper-2) 100%);
border: 2px solid var(--gold);
border-radius: var(--radius);
animation: cardAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
position: relative;
box-shadow: 0 6px 20px rgba(232, 168, 56, 0.2);
}
@keyframes cardAppear {
from { opacity: 0; transform: scale(0.7) translateY(20px); }
to { opacity: 1; transform: none; }
}
.multi-result-card .mr-avatar { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.multi-result-card .mr-avatar svg { width: 100%; height: 100%; }
.multi-result-card .mr-name { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--ink); }
.multi-result-card .mr-no { font-size: 12px; color: var(--muted); }
.multi-result-card .mr-idx {
position: absolute;
top: -8px; left: -8px;
font-family: var(--serif);
font-size: 13px;
font-weight: 900;
color: #fff;
background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
width: 26px; height: 26px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 10px rgba(232, 168, 56, 0.4);
}
/* ============ 随机题目区 ============ */
.question-picker {
margin-top: 20px;
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px 24px;
}
.question-picker-head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 14px;
}
.qp-title {
font-family: var(--serif);
font-size: 17px;
font-weight: 700;
color: var(--ink);
padding-left: 14px;
position: relative;
}
.qp-title::before {
content: "";
position: absolute;
left: 0; top: 50%;
transform: translateY(-50%);
width: 4px; height: 18px;
background: var(--green);
border-radius: 2px;
}
.subject-select, .subject-filter {
border: 1px solid var(--border);
background: var(--card);
font-family: var(--sans);
font-size: 14px;
color: var(--ink);
padding: 8px 14px;
border-radius: 999px;
cursor: pointer;
outline: none;
transition: all 0.15s;
}
.subject-select:hover, .subject-filter:hover { border-color: var(--gold); }
.subject-select:focus, .subject-filter:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,168,56,0.15); }
.question-display {
background: linear-gradient(135deg, var(--paper) 0%, var(--paper-2) 100%);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 24px 28px;
min-height: 80px;
margin-bottom: 14px;
display: flex;
align-items: center;
transition: all 0.3s;
}
.question-display.has-question {
border-color: var(--green);
background: linear-gradient(135deg, #f0f7f4 0%, #e6f0ec 100%);
animation: questionReveal 0.5s ease;
box-shadow: 0 4px 14px rgba(58, 140, 122, 0.12);
}
@keyframes questionReveal {
from { opacity: 0; transform: scale(0.96); }
to { opacity: 1; transform: none; }
}
.question-placeholder { color: var(--muted); font-size: 14px; }
.question-content {
display: flex;
flex-direction: column;
gap: 10px;
width: 100%;
}
.question-meta {
display: flex;
gap: 8px;
align-items: center;
}
.question-subject-tag {
font-size: 12px;
font-weight: 700;
color: #fff;
background: var(--green);
padding: 3px 10px;
border-radius: 999px;
box-shadow: 0 2px 6px rgba(58, 140, 122, 0.3);
}
.question-diff-tag {
font-size: 12px;
font-weight: 600;
padding: 3px 10px;
border-radius: 999px;
}
.question-diff-tag.简单 { background: var(--green-soft); color: var(--green); }
.question-diff-tag.中等 { background: #fef3e0; color: var(--gold-deep); }
.question-diff-tag.困难 { background: var(--red-soft); color: var(--red); }
.question-text {
font-size: 17px;
line-height: 1.7;
color: var(--ink);
font-weight: 500;
}
/* ============ 题目表格学科标签 ============ */
.subject-tag {
display: inline-block;
font-size: 12px;
font-weight: 700;
color: #fff;
padding: 3px 12px;
border-radius: 999px;
white-space: nowrap;
}
.group-tag {
display: inline-block;
font-size: 12px;
font-weight: 600;
color: var(--gold-deep);
background: rgba(232,168,56,0.15);
padding: 3px 10px;
border-radius: 999px;
white-space: nowrap;
}
.diff-tag {
display: inline-block;
font-size: 12px;
font-weight: 600;
padding: 3px 10px;
border-radius: 999px;
}
.diff-tag.简单 { background: #e6f4ea; color: var(--green); }
.diff-tag.中等 { background: #fef3e0; color: var(--gold-deep); }
.diff-tag.困难 { background: #fce8e8; color: var(--red); }
/* ============ 难度选择器 ============ */
.difficulty-picker { display: flex; gap: 8px; }
.diff-btn {
border: 1px solid var(--border);
background: var(--card);
font-family: var(--sans);
font-size: 14px;
color: var(--muted);
padding: 8px 20px;
border-radius: 999px;
cursor: pointer;
transition: all 0.15s;
}
.diff-btn:hover { border-color: var(--gold); color: var(--ink); transform: translateY(-1px); }
.diff-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 4px 12px rgba(26, 34, 56, 0.25); }
/* ============ Textarea ============ */
.form-row textarea {
width: 100%;
border: 1px solid var(--border);
background: var(--paper);
border-radius: var(--radius-sm);
padding: 11px 14px;
font-family: var(--sans);
font-size: 14px;
color: var(--ink);
outline: none;
transition: all 0.15s;
resize: vertical;
line-height: 1.6;
}
.form-row textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,168,56,0.15); background: var(--card); }
/* 学科筛选下拉在搜索栏内 */
.search-bar .subject-filter { margin-left: 8px; }