:root { color-scheme: light; --bg:#f4f6f8; --card:#fff; --text:#1a1d21; --muted:#667085; --line:#e3e7ec; --accent:#1677ff; --danger:#d92d20; }
* { box-sizing: border-box; }
body { margin:0; font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; background:var(--bg); color:var(--text); }
.hidden { display:none !important; }
.topbar { display:flex; align-items:center; gap:10px; padding:12px 20px; background:#fff; color:var(--text); border-bottom:1px solid var(--line); }
.topbar h1 { font-size:20px; margin:0; font-weight:700; letter-spacing:.5px; }
.brand-icon { width:40px; height:40px; border-radius:10px; display:block; }
.topbar-note { margin-left:auto; font-size:13px; color:var(--muted); }
.lobby-icon { display:block; width:72px; height:72px; border-radius:18px; margin:0 auto 14px; }
.card h2 { margin:0 0 6px; font-size:20px; text-align:center; }
.lobby-sub { margin:0 0 18px; font-size:14px; color:var(--muted); text-align:center; }
.foot { text-align:center; font-size:12px; color:var(--muted); padding:0 16px 28px; line-height:1.9; }
.foot .icp { font-size:11px; color:#98a2b3; }
.partners { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:18px 16px 14px; max-width:520px; margin:16px auto 0; }
.partners h3 { margin:0; font-size:14px; color:var(--muted); text-align:center; font-weight:600; letter-spacing:4px; }
.partner-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:12px 6px; margin-top:14px; }
.partner { text-align:center; min-width:0; }
.partner img { width:20px; height:20px; display:block; margin:0 auto 4px; }
.partner span { font-size:9px; color:var(--muted); white-space:nowrap; display:block; overflow:hidden; text-overflow:ellipsis; }
.partner .txt-badge { width:20px; height:20px; border-radius:6px; display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:700; color:#fff; margin:0 auto 4px; }
main { max-width:1100px; margin:24px auto; padding:0 16px 40px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:24px; max-width:520px; margin:0 auto; }
.card h2 { margin:0 0 16px; font-size:18px; }
label { display:block; margin-bottom:14px; font-size:14px; color:var(--muted); }
input[type=text] { display:block; width:100%; margin-top:6px; padding:10px 12px; font-size:16px; border:1px solid var(--line); border-radius:8px; }
.btn-row { display:flex; gap:10px; margin-top:6px; }
.download-row { margin-top:14px; }
.download-row .btn { display:inline-block; text-decoration:none; text-align:center; }
.btn { padding:10px 16px; border:1px solid var(--line); border-radius:8px; background:#fff; font-size:15px; cursor:pointer; }
.btn.primary { background:var(--accent); border-color:var(--accent); color:#fff; }
.btn.danger { background:var(--danger); border-color:var(--danger); color:#fff; }
.btn.toggle.on { border-color:var(--accent); color:var(--accent); }
.btn:disabled { opacity:.55; cursor:not-allowed; }
.error { color:var(--danger); min-height:1.2em; font-size:14px; }
.hint { font-size:13px; color:var(--muted); line-height:1.6; }
.room-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:14px; flex-wrap:wrap; }
.layout { display:grid; grid-template-columns:1fr 300px; gap:16px; align-items:start; }
.video-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:12px; }
.video-tile { position:relative; background:#000; border-radius:10px; overflow:hidden; aspect-ratio:16/9; }
/* 共享聚光：谁在共享，他的画面自动占满整行放大，不用点 */
.video-tile.spotlight { grid-column:1 / -1; }
/* 手机竖屏上聚光画面要够大（竖屏共享/摄像头内容不再是小条） */
@media (max-width:760px) { .video-tile.spotlight { min-height:70vh; } }
.video-tile video { width:100%; height:100%; object-fit:contain; display:block; background:#000; }
.video-tile .name-tag { position:absolute; left:8px; top:8px; background:rgba(0,0,0,.6); color:#fff; font-size:12px; padding:3px 8px; border-radius:6px; }
.video-tile .share-tag { position:absolute; right:8px; top:8px; background:#1677ff; color:#fff; font-size:12px; padding:3px 8px; border-radius:6px; }
.video-tile .stats { position:absolute; left:8px; bottom:8px; background:rgba(0,0,0,.65); color:#e5e7eb; font-size:11px; line-height:1.5; padding:4px 8px; border-radius:6px; white-space:pre-line; }
/* 摄像头/共享都关时：名字居中放大（仿腾讯会议/钉钉） */
.video-tile .tile-avatar { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; pointer-events:none; }
.video-tile .tile-avatar .avatar-circle { width:72px; height:72px; border-radius:50%; background:#1677ff; color:#fff; display:flex; align-items:center; justify-content:center; font-size:30px; font-weight:700; }
.video-tile .tile-avatar .avatar-name { color:#fff; font-size:18px; font-weight:600; text-align:center; max-width:90%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.controls { display:flex; gap:10px; margin-top:14px; flex-wrap:wrap; }
.panel { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:14px; margin-bottom:14px; }
.panel h3 { margin:0 0 10px; font-size:15px; }
.panel ul { margin:0; padding-left:18px; }
.chat-log { height:220px; overflow-y:auto; border:1px solid var(--line); border-radius:8px; padding:10px; font-size:14px; line-height:1.6; }
.chat-input-row { display:flex; gap:8px; margin-top:10px; }
.chat-input-row input { flex:1; }
@media (max-width:760px) { .layout { grid-template-columns:1fr; } .topbar-note { display:none; } }
