/* 学员手机页：单手操作，按钮够大，内容居中最宽 560px */
body { background: radial-gradient(120% 60% at 50% -10%, #fbf3df 0%, var(--bg) 55%); }
#view { max-width: 560px; margin: 0 auto; padding: 14px 16px calc(96px + env(safe-area-inset-bottom)); }
.boot { min-height: 60vh; display: flex; align-items: center; justify-content: center; }

/* 顶栏 */
#top { position: sticky; top: 0; z-index: 20; background: rgba(246, 241, 231, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; }
.room { font-size: 12px; letter-spacing: .08em; color: var(--gold); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pts { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; height: 48px; border-radius: 14px; background: var(--ink); color: var(--bg); }
.pts b { font-size: 18px; line-height: 1.1; font-variant-numeric: tabular-nums; } .pts span { font-size: 11px; opacity: .7; }
#pushbar { max-width: 560px; margin: 0 auto 10px; padding: 0 16px; }
#pushbar button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, var(--gold2), var(--gold)); color: #1b1305; font-weight: 700; text-align: left; animation: rise .3s; }
#pushbar button span { flex: 1; }

/* 底部导航 */
#tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; background: rgba(255, 253, 248, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
#tabs button { flex: 1; max-width: 140px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 8px; color: var(--ink3); font-size: 12px; }
#tabs button i { font-style: normal; font-size: 18px; line-height: 1.2; }
#tabs button.on { color: var(--gold); font-weight: 700; }

/* 入班 */
.join { padding-top: 6vh; animation: rise .4s; }
.join .k { font-size: 12px; letter-spacing: .3em; color: var(--gold); font-weight: 700; }
.join h1 { font-size: 30px; line-height: 1.3; margin: 10px 0 6px; }
.join h1 b { color: var(--gold); }
.join .lead { color: var(--ink2); margin-bottom: 24px; }
.groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.groups button { min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font-weight: 600; }
.groups button.on { border-color: var(--gold); background: var(--gold-wash); color: var(--gold); }

/* 活动头 */
.act-head { margin: 6px 0 14px; animation: rise .3s; }
.act-head .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.act-head h2 { font-size: 24px; line-height: 1.35; }
.act-head .desc { color: var(--ink2); margin-top: 6px; }
.timer { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 800; color: var(--bad); }
.status { padding: 26px 18px; text-align: center; color: var(--ink2); }
.status .big { font-size: 44px; margin-bottom: 6px; }

/* 选项按钮 */
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); text-align: left; font-size: 17px; font-weight: 500; transition: .15s; }
.opt .mk { flex: 0 0 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: transparent; }
.opt.multi .mk { border-radius: 7px; }
.opt.on { border-color: var(--gold); background: var(--gold-wash); }
.opt.on .mk { border-color: var(--gold); background: var(--gold); color: #fff; }
.opt.right { border-color: var(--ok); background: rgba(47, 143, 91, .1); }
.opt.wrong { border-color: var(--bad); background: rgba(199, 72, 58, .08); }
.opt[disabled] { opacity: 1; }
.race-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.race-opts .opt { min-height: 74px; justify-content: center; text-align: center; font-weight: 700; }
.race-opts .opt:nth-child(4n+1) { background: #fde7d9; border-color: #f3c3a4; } .race-opts .opt:nth-child(4n+2) { background: #dcebfb; border-color: #a9caf0; }
.race-opts .opt:nth-child(4n+3) { background: #e2f4e6; border-color: #a7d8b3; } .race-opts .opt:nth-child(4n+4) { background: #f3e5fb; border-color: #d3b3ea; }
.race-opts .opt.on { outline: 3px solid var(--ink); }
.stars { display: flex; justify-content: center; gap: 8px; font-size: 42px; }
.stars button { color: var(--line); transition: transform .1s; } .stars button.on { color: var(--gold2); } .stars button:active { transform: scale(1.2); }

/* 结果条 */
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar { position: relative; border-radius: 12px; background: var(--bg2); overflow: hidden; min-height: 44px; display: flex; align-items: center; padding: 0 14px; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--gold-wash), #f1d796); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.bar span { position: relative; flex: 1; font-weight: 600; } .bar b { position: relative; font-variant-numeric: tabular-nums; }
.bar.mine span::after { content: " · 我选的"; color: var(--gold); font-weight: 500; font-size: 13px; }

/* 题目 */
.q { margin-bottom: 14px; }
.q .qn { font-size: 13px; color: var(--gold); font-weight: 800; letter-spacing: .05em; }
.q .qp { font-size: 18px; font-weight: 600; margin: 4px 0 12px; line-height: 1.55; white-space: pre-wrap; }
.q .exp { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg2); color: var(--ink2); font-size: 15px; }
.seg { display: block; width: 100%; text-align: left; padding: 12px 14px; margin-bottom: 8px; border-radius: 12px; border: 1.5px dashed var(--line); background: var(--card); font-size: 16px; line-height: 1.6; }
.seg.on { border-style: solid; border-color: var(--bad); background: rgba(199, 72, 58, .07); }
.seg.right { border-style: solid; border-color: var(--ok); } .seg.miss { border-style: solid; border-color: var(--gold); background: var(--gold-wash); }
.seg small { display: block; margin-top: 6px; color: var(--ink2); font-size: 14px; }
.copybox { position: relative; padding: 14px 14px 14px; border-radius: 12px; background: var(--bg2); white-space: pre-wrap; font-size: 15px; line-height: 1.65; }
.stagebar { display: flex; gap: 6px; margin-bottom: 14px; } .stagebar i { flex: 1; height: 5px; border-radius: 9px; background: var(--line); } .stagebar i.done { background: var(--gold); } .stagebar i.now { background: var(--gold2); }
.score-card { text-align: center; padding: 22px; } .score-card .n { font-size: 54px; font-weight: 800; color: var(--gold); line-height: 1; } .score-card .of { color: var(--ink3); }

/* 作品 */
.uploader { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.uploader .th, .uploader .add { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg2); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; color: var(--ink2); }
.uploader .add { border: 1.5px dashed var(--gold); color: var(--gold); font-weight: 700; font-size: 15px; flex-direction: column; gap: 4px; }
.uploader .add b { font-size: 28px; line-height: 1; }
.uploader .th img { width: 100%; height: 100%; object-fit: cover; }
.uploader .th .x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 15px; line-height: 26px; }
.uploader .th .doc { padding: 8px; word-break: break-all; }
.uploader .th .prog { position: absolute; inset: 0; background: rgba(255, 255, 255, .7); display: flex; align-items: center; justify-content: center; }
.work { border-radius: 14px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.work .imgs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--bg2); }
.work .imgs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.work .imgs img:only-child { grid-column: span 2; aspect-ratio: auto; max-height: 420px; object-fit: contain; background: #fff; }
.work .tx { padding: 12px 14px; white-space: pre-wrap; font-size: 15px; }
.work .files { padding: 0 14px 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.work.pick { outline: 3px solid transparent; transition: .15s; } .work.pick.on { outline-color: var(--gold); }
.works { display: grid; gap: 14px; }

/* 互评 */
.crit { margin-bottom: 14px; } .crit .row b { font-variant-numeric: tabular-nums; color: var(--gold); font-size: 20px; }
input[type=range] { width: 100%; height: 34px; accent-color: var(--gold); }
.progress { display: flex; gap: 6px; margin-bottom: 12px; } .progress i { flex: 1; height: 6px; border-radius: 9px; background: var(--line); } .progress i.done { background: var(--ok); } .progress i.now { background: var(--gold); }

/* 抢答器 */
.buzz { display: flex; align-items: center; justify-content: center; padding: 26px 0; }
.buzz button { width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8a75, #d6402c 60%, #a5291b); color: #fff; font-size: 34px; font-weight: 900; box-shadow: 0 14px 0 #7d1d12, 0 22px 40px rgba(165, 41, 27, .45); transition: transform .06s, box-shadow .06s; }
.buzz button:active { transform: translateY(10px); box-shadow: 0 4px 0 #7d1d12, 0 10px 20px rgba(165, 41, 27, .4); }
.buzz button[disabled] { filter: grayscale(.8); opacity: .6; }

/* 词云 / 问题墙 */
.cloud { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 6px 0; }
.cloud span { padding: 4px 12px; border-radius: 999px; background: var(--gold-wash); color: var(--gold); font-weight: 700; animation: pop .3s; }
.qwall .qi { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.qwall .qi p { flex: 1; white-space: pre-wrap; } .qwall .like { display: flex; flex-direction: column; align-items: center; min-width: 46px; color: var(--ink3); font-size: 13px; }
.qwall .like b { font-size: 20px; } .qwall .like.on { color: var(--gold); }

/* 列表 / 我的 */
.sec-t { font-size: 13px; letter-spacing: .1em; color: var(--ink3); font-weight: 700; margin: 18px 4px 8px; }
.li { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); margin-bottom: 8px; text-align: left; }
.li .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--gold-wash); display: flex; align-items: center; justify-content: center; font-size: 20px; flex: 0 0 40px; }
.li .t { font-weight: 600; } .li .s { font-size: 13px; color: var(--ink3); }
.li.off { opacity: .55; box-shadow: none; background: transparent; border: 1px dashed var(--line); }
.report-hero { text-align: center; padding: 26px 18px; background: linear-gradient(160deg, #2a2112, #120f09); color: #f3eee3; border-radius: 20px; }
.report-hero .n { font-size: 56px; font-weight: 900; color: #e8c672; line-height: 1.1; }
.report-hero .k { font-size: 12px; letter-spacing: .3em; color: #e8c672; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.kpis div { background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 10px 4px; } .kpis b { display: block; font-size: 22px; color: #fff; } .kpis span { font-size: 12px; opacity: .65; }
.rank { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.rank .no { width: 28px; height: 28px; border-radius: 50%; background: var(--bg2); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.rank:nth-child(1) .no { background: #f3d58e; } .rank:nth-child(2) .no { background: #e1e1e1; } .rank:nth-child(3) .no { background: #ecc6a1; }
.rank.me { background: var(--gold-wash); border-radius: 10px; }
