/* 抢单吧 / GrabIt —— 手机优先 */
:root {
  --bg: #FFF5EC; --bg2: #FFE9D6; --card: #FFFFFF; --ink: #231A30; --ink2: #6F667E; --ink3: #A39BB0;
  --line: #F1E5D8; --brand: #FF5533; --brand2: #FF9A1F; --gold: #F5A800; --gold-bg: #FFF3CC;
  --mint: #12A87C; --mint-bg: #DDF7EC; --red: #E2324B; --red-bg: #FFE3E6; --violet: #6A4BF2; --violet-bg: #ECE7FF;
  --amber: #C97A00; --amber-bg: #FFEFCF; --shadow: 0 6px 22px rgba(120, 60, 20, .10);
  --r: 20px; --nav-h: 68px; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14101C; --bg2: #1B1526; --card: #211A2E; --ink: #F5EEFB; --ink2: #B1A7C2; --ink3: #7C728E;
    --line: #322842; --gold-bg: #3A2E0A; --mint-bg: #0F3A2D; --red-bg: #45141C; --violet-bg: #2A2157;
    --amber-bg: #3D2C08; --shadow: 0 6px 22px rgba(0, 0, 0, .35); color-scheme: dark;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -.02em; }
svg.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

#app { max-width: 520px; margin: 0 auto; min-height: 100dvh; position: relative; padding-bottom: calc(var(--nav-h) + 40px + env(safe-area-inset-bottom)); }
@media (min-width: 560px) { body { background: radial-gradient(1200px 600px at 50% -10%, var(--bg2), var(--bg)); } }

/* 顶栏 */
.top { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 16px 8px; position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 20px; letter-spacing: -.02em; }
.logo i { width: 30px; height: 30px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand2)); display: grid; place-items: center; color: #fff; transform: rotate(-8deg); box-shadow: 0 4px 10px rgba(255, 85, 51, .35); }
.logo i svg { width: 18px; height: 18px; stroke-width: 2.6; }
.logo small { font-weight: 700; color: var(--ink3); font-size: 12px; letter-spacing: .02em; }
.top .sp { flex: 1; }
.pill { height: 34px; padding: 0 12px; border-radius: 17px; background: var(--card); box-shadow: var(--shadow); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.bell { position: relative; width: 38px; height: 38px; border-radius: 19px; background: var(--card); box-shadow: var(--shadow); display: grid; place-items: center; }
.badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.bell.ring svg { animation: ring .7s ease 2; transform-origin: 50% 10%; }
@keyframes ring { 20% { transform: rotate(16deg); } 50% { transform: rotate(-14deg); } 80% { transform: rotate(8deg); } }

main { padding: 6px 16px 0; }
.h-row { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 10px; }
.h-row h2 { font-size: 19px; font-weight: 900; letter-spacing: -.01em; }
.h-row .sub { color: var(--ink2); font-size: 13px; }
.link { color: var(--brand); font-weight: 700; font-size: 13px; }

/* 主卡：我的分数 */
.hero { border-radius: 26px; padding: 18px 18px 16px; color: #fff; position: relative; overflow: hidden; background: linear-gradient(135deg, #FF4D2E 0%, #FF7A1A 55%, #FFB21E 100%); box-shadow: 0 12px 30px rgba(255, 90, 40, .32); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .13); }
.hero::before { width: 190px; height: 190px; right: -60px; top: -80px; }
.hero::after { width: 110px; height: 110px; right: 50px; bottom: -70px; background: rgba(255, 255, 255, .09); }
.hero > * { position: relative; z-index: 1; }
.hero .hi { display: flex; align-items: center; gap: 10px; }
.hero .hi b { font-size: 18px; font-weight: 800; }
.lv { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 4px; border-radius: 14px; background: rgba(0, 0, 0, .18); font-size: 12px; font-weight: 800; }
.lv em { font-style: normal; background: #fff; color: var(--brand); border-radius: 10px; padding: 0 7px; font-size: 11px; }
.hero .nums { display: flex; gap: 26px; margin: 14px 0 12px; }
.hero .nums div span { display: block; font-size: 12px; opacity: .85; font-weight: 600; }
.hero .nums div b { font-size: 40px; line-height: 1.05; display: block; }
.hero .nums div b.small { font-size: 40px; }
.bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: #fff; transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.hero .foot { display: flex; justify-content: space-between; font-size: 12px; opacity: .92; margin-top: 7px; font-weight: 600; gap: 8px; flex-wrap: wrap; }

/* 团队关卡 */
.team { margin-top: 12px; background: var(--card); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.team .t1 { display: flex; align-items: center; justify-content: space-between; font-weight: 800; }
.team .t1 span { font-size: 13px; color: var(--ink2); font-weight: 600; }
.gate { position: relative; height: 14px; border-radius: 7px; background: var(--line); margin: 12px 0 24px; }
.gate > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; background: linear-gradient(90deg, var(--brand2), var(--brand)); transition: width .9s cubic-bezier(.2, .8, .2, 1); min-width: 0; }
.gate.pass > i { background: linear-gradient(90deg, #34D399, var(--mint)); }
.gate > b { position: absolute; top: -5px; bottom: -5px; width: 3px; border-radius: 2px; background: var(--ink); }
.gate > b::after { content: attr(data-l); position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 800; color: var(--ink2); white-space: nowrap; }
.team p { font-size: 13px; color: var(--ink2); }
.team p b { color: var(--ink); }
.team p b.neg { color: var(--red); }
.dots { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.dots span { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: var(--red-bg); color: var(--red); }
.dots span.ok { background: var(--mint-bg); color: var(--mint); }

/* 分段按钮 */
.seg { display: flex; background: var(--card); border-radius: 16px; padding: 4px; box-shadow: var(--shadow); gap: 2px; }
.seg button { flex: 1; height: 38px; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--ink2); white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 5px; }
.seg button.on { background: var(--ink); color: var(--bg); }
.seg button .n { font-size: 11px; background: var(--red); color: #fff; border-radius: 9px; padding: 0 6px; min-width: 18px; height: 18px; line-height: 18px; }
.seg button .n.z { background: var(--line); color: var(--ink2); }
.seg button.on .n.z { background: rgba(255, 255, 255, .2); color: inherit; }

/* 任务票 */
.list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.ticket { display: grid; grid-template-columns: 1fr 84px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); position: relative; text-align: left; width: 100%; animation: pop-in .35s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.ticket .body { padding: 14px 12px 12px 16px; min-width: 0; }
.ticket .stub { border-left: 2px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 6px; position: relative; }
.ticket .stub::before, .ticket .stub::after { content: ""; position: absolute; left: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); }
.ticket .stub::before { top: -9px; } .ticket .stub::after { bottom: -9px; }
.ticket .pts { font-size: 30px; line-height: 1; color: var(--gold); }
.ticket .pts.zero { color: var(--ink3); }
.ticket .unit { font-size: 11px; font-weight: 700; color: var(--ink2); }
.ticket .up { font-size: 11px; font-weight: 800; color: var(--mint); }
.ticket .bty { margin-top: 4px; font-size: 12px; font-weight: 800; color: var(--violet); background: var(--violet-bg); border-radius: 9px; padding: 1px 7px; white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.ticket .bty svg { width: 12px; height: 12px; }
.ticket .txt { font-weight: 700; font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.ticket .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.ticket.overdue { box-shadow: 0 0 0 2px var(--red), var(--shadow); }
.ticket.done .txt { color: var(--ink2); text-decoration: line-through; text-decoration-color: var(--ink3); }
.ticket .who { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--ink2); font-weight: 600; min-width: 0; }
.ticket .who svg { width: 14px; height: 14px; color: var(--ink3); }
.ticket .who .grow { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 700; background: var(--line); color: var(--ink2); white-space: nowrap; }
.chip svg { width: 13px; height: 13px; }
.chip.red { background: var(--red-bg); color: var(--red); } .chip.amber { background: var(--amber-bg); color: var(--amber); }
.chip.mint { background: var(--mint-bg); color: var(--mint); } .chip.violet { background: var(--violet-bg); color: var(--violet); }
.chip.gold { background: var(--gold-bg); color: var(--amber); }
.av { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; flex: none; }
.av.lg { width: 44px; height: 44px; font-size: 18px; } .av.xl { width: 64px; height: 64px; font-size: 26px; }
.av.pool { background: var(--ink) !important; color: var(--bg); }

/* 按钮 */
.btn { height: 46px; padding: 0 18px; border-radius: 15px; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--line); color: var(--ink); transition: transform .12s; white-space: nowrap; }
.btn:active { transform: scale(.96); }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; box-shadow: 0 6px 16px rgba(255, 85, 51, .32); }
.btn.dark { background: var(--ink); color: var(--bg); }
.btn.mint { background: var(--mint); color: #fff; }
.btn.danger { background: var(--red-bg); color: var(--red); }
.btn.sm { height: 34px; border-radius: 12px; padding: 0 13px; font-size: 13px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btns .btn { flex: 1; min-width: 120px; }

/* 底部导航 */
nav.tabs { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); width: min(488px, calc(100vw - 24px)); height: var(--nav-h); background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 24px; box-shadow: 0 10px 34px rgba(60, 30, 10, .18); display: flex; z-index: 30; padding: 0 6px; }
nav.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--ink3); font-size: 11px; font-weight: 700; position: relative; }
nav.tabs a.on { color: var(--brand); }
nav.tabs a.on svg { transform: translateY(-1px) scale(1.08); }
nav.tabs a .badge { top: 8px; right: calc(50% - 22px); border-color: var(--card); }
.fab { position: fixed; z-index: 31; right: max(16px, calc(50% - 244px)); bottom: calc(var(--nav-h) + 26px + env(safe-area-inset-bottom)); width: 58px; height: 58px; border-radius: 20px; background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(255, 85, 51, .45); transition: transform .15s; }
.fab:active { transform: scale(.92) rotate(90deg); }
.fab svg { width: 28px; height: 28px; stroke-width: 2.8; }

/* 空状态 */
.empty { text-align: center; padding: 34px 20px; color: var(--ink2); }
.empty .big { font-size: 44px; line-height: 1; margin-bottom: 8px; }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.loading { text-align: center; color: var(--ink3); padding: 30px; font-weight: 600; }

/* 看板 */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.person { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; text-align: left; }
.person .p1 { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.person .p1 small { display: block; font-weight: 600; color: var(--ink3); font-size: 11px; }
.person .cnt { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; text-align: center; }
.person .cnt b { display: block; font-size: 22px; line-height: 1.1; }
.person .cnt span { font-size: 11px; color: var(--ink2); font-weight: 600; }
.person .cnt .od b { color: var(--ink3); } .person .cnt .od.hot b { color: var(--red); } .person .cnt .od.hot span { color: var(--red); }
.person.hot { box-shadow: 0 0 0 2px var(--red), var(--shadow); }
.banner { border-radius: var(--r); padding: 12px 14px; background: var(--red-bg); color: var(--red); font-weight: 800; display: flex; align-items: center; gap: 8px; }
.tile { background: var(--ink); color: var(--bg); border-radius: var(--r); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; width: 100%; font-weight: 800; }
.tile b { font-size: 26px; }

/* 排行榜 */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin: 26px 0 6px; text-align: center; }
.podium .col { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.podium .col .name { font-weight: 800; font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .col .p { font-size: 13px; color: var(--ink2); font-weight: 700; }
.podium .step { width: 100%; border-radius: 16px 16px 6px 6px; display: grid; place-items: center; font-size: 28px; font-weight: 900; color: rgba(255, 255, 255, .95); }
.podium .c1 .step { height: 92px; background: linear-gradient(180deg, #FFC629, #F59E0B); }
.podium .c2 .step { height: 66px; background: linear-gradient(180deg, #C7CCD6, #9AA1AF); }
.podium .c3 .step { height: 50px; background: linear-gradient(180deg, #E8A877, #C27A45); }
.podium .crown { font-size: 24px; line-height: 1; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-6deg); } }
.rows { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; margin-top: 12px; }
.row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.row:last-child { border-bottom: 0; }
.row .rk { width: 22px; text-align: center; font-weight: 900; color: var(--ink3); }
.row .nm { flex: 1; min-width: 0; font-weight: 700; }
.row .nm small { display: block; font-weight: 600; color: var(--ink3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .val { font-weight: 800; text-align: right; white-space: nowrap; }
.row .val small { display: block; font-weight: 600; color: var(--ink3); font-size: 11px; }
.row.me { background: var(--gold-bg); }
.pos { color: var(--mint); } .neg { color: var(--red); }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }

/* 我 */
.profile { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.profile h3 { font-size: 20px; font-weight: 900; }
.profile p { color: var(--ink2); font-size: 13px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.stat { background: var(--card); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.stat span { font-size: 12px; color: var(--ink2); font-weight: 700; }
.stat b { display: block; font-size: 28px; line-height: 1.15; }
.stat small { color: var(--ink3); font-size: 11px; font-weight: 600; }
.stat.gold b { color: var(--gold); } .stat.violet b { color: var(--violet); }
.menu { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; margin-top: 12px; }
.menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; font-weight: 700; border-bottom: 1px solid var(--line); text-align: left; }
.menu button:last-child { border-bottom: 0; }
.menu button .sp { flex: 1; } .menu button em { font-style: normal; color: var(--ink3); font-weight: 600; font-size: 13px; }
.menu button svg { color: var(--ink2); }

/* 弹层 */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(20, 10, 30, .45); animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: min(520px, 100%); max-height: 92dvh; background: var(--bg); border-radius: 26px 26px 0 0; display: flex; flex-direction: column; animation: up .28s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
@media (min-width: 560px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 26px; max-height: 88dvh; } }
.sheet .sh { display: flex; align-items: center; gap: 10px; padding: 16px 18px 8px; }
.sheet .sh h3 { flex: 1; font-size: 18px; font-weight: 900; }
.sheet .x { width: 34px; height: 34px; border-radius: 17px; background: var(--line); display: grid; place-items: center; }
.sheet .x svg { width: 18px; height: 18px; }
.sheet .sb { padding: 6px 18px 18px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet .sf { padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); border-radius: 0 0 26px 26px; }
.field { margin-top: 14px; }
.field > label, .lbl { display: block; font-size: 13px; font-weight: 800; color: var(--ink2); margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--ink3); margin-top: 5px; font-weight: 600; }
.in { width: 100%; border: 2px solid var(--line); background: var(--card); border-radius: 14px; padding: 11px 13px; outline: none; font-size: 16px; }
.in:focus { border-color: var(--brand); }
textarea.in { min-height: 92px; resize: vertical; }
select.in { appearance: none; -webkit-appearance: none; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; }
.opt > span { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px; border-radius: 13px; background: var(--card); border: 2px solid var(--line); font-weight: 700; font-size: 14px; }
.opt > input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--card)); color: var(--brand); }
.opt.big > span { flex-direction: column; height: 64px; min-width: 84px; justify-content: center; gap: 0; }
.opt.big > span b { font-size: 22px; color: var(--gold); line-height: 1.1; }
.err { color: var(--red); font-weight: 700; font-size: 13px; margin-top: 10px; min-height: 0; }
.files { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.file { width: 76px; height: 76px; border-radius: 14px; background: var(--card); border: 2px solid var(--line); position: relative; overflow: hidden; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--ink2); text-align: center; padding: 2px; word-break: break-all; }
.file img, .file video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.file .rm { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 11px; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; z-index: 2; }
.file .rm svg { width: 12px; height: 12px; }
.file .prog { position: absolute; left: 0; bottom: 0; height: 5px; background: var(--brand); z-index: 2; }
.file.add { border-style: dashed; color: var(--ink3); cursor: pointer; }
.file.add svg { width: 26px; height: 26px; }
.file .play { position: absolute; z-index: 1; width: 28px; height: 28px; border-radius: 14px; background: rgba(0, 0, 0, .55); display: grid; place-items: center; color: #fff; }
.file .play svg { width: 14px; height: 14px; fill: #fff; stroke: none; }

/* 任务详情 */
.d-status { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.d-text { font-size: 17px; font-weight: 700; white-space: pre-wrap; word-break: break-word; line-height: 1.5; }
.d-box { background: var(--card); border-radius: 16px; padding: 12px 14px; margin-top: 12px; box-shadow: var(--shadow); }
.kv { display: flex; gap: 10px; padding: 5px 0; font-size: 14px; }
.kv > span { width: 78px; flex: none; color: var(--ink2); font-weight: 700; font-size: 13px; }
.kv > div { flex: 1; min-width: 0; font-weight: 600; word-break: break-word; }
.d-pts { display: flex; gap: 10px; margin-top: 12px; }
.d-pts > div { flex: 1; border-radius: 16px; padding: 10px 14px; background: var(--gold-bg); }
.d-pts > div.v { background: var(--violet-bg); }
.d-pts span { font-size: 12px; font-weight: 800; color: var(--amber); } .d-pts .v span { color: var(--violet); }
.d-pts b { display: block; font-size: 28px; line-height: 1.1; color: var(--amber); } .d-pts .v b { color: var(--violet); }
.d-pts small { font-size: 11px; font-weight: 700; color: var(--ink2); }
.tl { margin-top: 4px; }
.tl div { display: flex; gap: 8px; font-size: 13px; padding: 4px 0; color: var(--ink2); }
.tl div time { width: 84px; flex: none; color: var(--ink3); font-variant-numeric: tabular-nums; }
.media video { width: 100%; border-radius: 14px; margin-top: 8px; background: #000; max-height: 60dvh; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .92); display: grid; place-items: center; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* 登录 */
.login { min-height: 100dvh; display: flex; flex-direction: column; margin: 0 -0px; }
.splash { background: linear-gradient(140deg, #FF4D2E, #FF7A1A 55%, #FFB21E); color: #fff; padding: calc(56px + env(safe-area-inset-top)) 28px 64px; border-radius: 0 0 40px 40px; position: relative; overflow: hidden; }
.splash::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -90px; top: -70px; background: rgba(255, 255, 255, .13); }
.splash h1 { font-size: 46px; font-weight: 900; letter-spacing: -.03em; line-height: 1.05; position: relative; z-index: 1; }
.splash h1 small { display: block; font-size: 18px; letter-spacing: .12em; opacity: .9; font-weight: 800; margin-top: 4px; }
.splash p { margin-top: 14px; font-weight: 700; opacity: .95; position: relative; z-index: 1; }
.login form { margin: -34px 20px 0; background: var(--card); border-radius: 24px; padding: 8px 18px 18px; box-shadow: var(--shadow); position: relative; z-index: 2; }
.login .lang { text-align: center; margin: 18px 0; }

/* 提示、撒花 */
#toasts { position: fixed; left: 0; right: 0; top: calc(14px + env(safe-area-inset-top)); z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 14px; font-weight: 700; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: toast-in .3s cubic-bezier(.2, .9, .3, 1.3) both; max-width: 88vw; text-align: center; }
.toast.bad { background: var(--red); color: #fff; }
@keyframes toast-in { from { transform: translateY(-16px) scale(.9); opacity: 0; } }
#confetti { position: fixed; inset: 0; z-index: 110; pointer-events: none; width: 100%; height: 100%; }
.burst { position: fixed; inset: 0; z-index: 111; display: grid; place-items: center; pointer-events: none; }
.burst > div { text-align: center; animation: burst 2.1s cubic-bezier(.2, .9, .2, 1) both; }
.burst b { display: block; font-size: 84px; font-weight: 900; line-height: 1; letter-spacing: -.04em; color: #fff; -webkit-text-stroke: 3px var(--brand); text-shadow: 0 8px 0 var(--brand), 0 14px 30px rgba(255, 85, 51, .5); }
.burst span { display: inline-block; margin-top: 16px; background: var(--ink); color: #fff; font-weight: 800; padding: 6px 16px; border-radius: 16px; font-size: 15px; }
.burst span.v { background: var(--violet); margin-left: 6px; }
@keyframes burst { 0% { transform: scale(.2) rotate(-12deg); opacity: 0; } 18% { transform: scale(1.18) rotate(3deg); opacity: 1; } 30% { transform: scale(1) rotate(0); } 78% { transform: scale(1) translateY(0); opacity: 1; } 100% { transform: scale(.9) translateY(-60px); opacity: 0; } }

/* 管理后台 */
.adm h4 { margin: 18px 2px 8px; font-size: 14px; font-weight: 900; color: var(--ink2); }
.set { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.set:last-child { border-bottom: 0; }
.set label { flex: 1; font-weight: 600; font-size: 14px; }
.set label small { display: block; color: var(--ink3); font-size: 11px; }
.set input { width: 92px; text-align: right; padding: 7px 10px; font-size: 15px; border-radius: 10px; }
.set input.wide { width: 170px; }
table.tb { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tb th, table.tb td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); }
table.tb th { color: var(--ink2); font-size: 12px; }
table.tb td.r, table.tb th.r { text-align: right; }
.scroll-x { overflow-x: auto; }
.ucard { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ucard:last-child { border-bottom: 0; }
.ucard .u1 { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.ucard .u1 small { color: var(--ink3); font-weight: 600; }
.ucard .u2 { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; align-items: center; }
.ucard select { padding: 6px 10px; border-radius: 10px; font-size: 14px; width: auto; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 20px; font-weight: 800; background: var(--card); border: 2px dashed var(--brand); border-radius: 14px; padding: 12px; text-align: center; letter-spacing: .06em; user-select: all; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* 第二版：日清分组、徽章 */
.rq-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 4px 2px -4px; flex-wrap: wrap; }
.rq-head b { font-size: 15px; font-weight: 900; } .rq-head span { font-size: 12px; color: var(--ink2); font-weight: 600; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; width: 100%; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px 14px; margin-top: 12px; text-align: left; }
.badges em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink2); margin-left: auto; white-space: nowrap; }
.bdg { display: inline-grid; place-items: center; }
.bdg i { font-style: normal; font-size: 20px; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--line); filter: grayscale(1); opacity: .35; }
.bdg.on i { background: var(--gold-bg); filter: none; opacity: 1; }
.badges.big { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: none; box-shadow: none; padding: 0; margin-top: 0; }
.badges.big .bdg { background: var(--card); border-radius: 16px; padding: 14px 10px; text-align: center; gap: 4px; box-shadow: var(--shadow); }
.badges.big .bdg i { font-size: 30px; width: 54px; height: 54px; border-radius: 18px; }
.badges.big .bdg b { font-size: 14px; } .badges.big .bdg small { font-size: 11px; color: var(--ink2); font-weight: 600; line-height: 1.35; }
.badges.big .bdg:not(.on) b { color: var(--ink3); }
.opt input[type=checkbox]:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--card)); color: var(--brand); }

.ticket .who > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket .who .btn { flex: none; }
