/* Drift 顺流 · 黑白灰极简，朱砂红唯一强调色，无大片空白 */
:root{
  --ink:#111; --sub:#5c5c5c; --faint:#9a9a9a; --line:#e6e6e3; --bg:#fafaf8; --card:#fff;
  --accent:#c2402a; /* 朱砂红：全站唯一强调色 */
  --radius:14px;
}
*{box-sizing:border-box; -webkit-tap-highlight-color:transparent}
html,body{margin:0; padding:0}
body{font-family:-apple-system,"PingFang SC","Microsoft YaHei",Segoe UI,sans-serif; background:var(--bg); color:var(--ink); font-size:15px; line-height:1.55}
button{font:inherit; cursor:pointer}
.hidden{display:none !important}

.topbar{position:sticky; top:0; z-index:20; display:flex; justify-content:space-between; align-items:center;
  padding:10px 16px; background:rgba(250,250,248,.92); backdrop-filter:blur(8px); border-bottom:1px solid var(--line)}
.brand{font-weight:800; font-size:19px; letter-spacing:.2px}
.brand-zh{color:var(--sub); font-weight:600; font-size:14px; margin-left:2px}
.account-area{position:relative; display:flex; align-items:center; gap:8px}
.account-btn{display:flex; align-items:center; gap:7px; background:none; border:1px solid var(--line); border-radius:999px; padding:4px 10px 4px 4px; background:#fff}
.avatar{width:26px; height:26px; border-radius:50%; background:#111; color:#fff; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; overflow:hidden}
.avatar img{width:100%; height:100%; object-fit:cover}
.dot{width:7px; height:7px; border-radius:50%; background:#2e9e5b}
.account-menu{position:absolute; right:0; top:42px; width:230px; background:#fff; border:1px solid var(--line); border-radius:12px;
  box-shadow:0 12px 32px rgba(0,0,0,.12); padding:12px; z-index:30}
.account-menu .nm{font-weight:700}
.account-menu .em{color:var(--sub); font-size:12.5px; word-break:break-all}
.account-menu button{width:100%; margin-top:10px}

main{max-width:640px; margin:0 auto; padding:14px 14px 96px}
.view h1.hero{font-size:32px; line-height:1.25; margin:18px 0 8px; font-weight:800}
.hero-sub{color:var(--sub); margin:0 0 18px}
.login-box{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:16px; display:flex; flex-direction:column; gap:10px}
.note{color:var(--faint); font-size:12.5px; margin:2px 0}
#google-note.warn{color:var(--accent)}

.btn{border:1px solid var(--line); background:#fff; color:var(--ink); border-radius:10px; padding:10px 14px; font-weight:600}
.btn.primary{background:var(--ink); color:#fff; border-color:var(--ink)}
.btn.accent{background:var(--accent); border-color:var(--accent); color:#fff}
.btn.ghost{background:#fff}
.btn.small{padding:5px 10px; font-size:13px}
.btn:disabled{opacity:.4; cursor:default}
.btn.block{width:100%}

.banner{display:flex; justify-content:space-between; align-items:center; gap:10px; background:#111; color:#fff;
  border-radius:10px; padding:9px 12px; font-size:13px; margin-bottom:12px}
.banner .btn{background:#fff; border:none}

.chips{display:flex; gap:6px; flex-wrap:wrap}
.chip{border:1px solid var(--line); background:#fff; border-radius:999px; padding:4px 11px; font-size:13px; color:var(--sub)}
.chip.on{background:#111; color:#fff; border-color:#111}
.feed-head{display:flex; justify-content:space-between; align-items:flex-start; gap:10px; margin-bottom:10px}
.muted{color:var(--faint); font-size:12.5px; white-space:nowrap; padding-top:5px}

.card{background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:18px}
.card .cat{color:var(--accent); font-size:12.5px; font-weight:700; letter-spacing:.6px}
.card h2{font-size:20px; margin:6px 0 10px; line-height:1.35}
.card .body{font-size:16.5px; line-height:1.75}
.card .body b.w{color:var(--accent); font-weight:700; border-bottom:1px dotted var(--accent); cursor:pointer}
.card .zh{color:var(--sub); font-size:14px; margin-top:12px; border-top:1px dashed var(--line); padding-top:10px}
.card .tools{display:flex; gap:8px; margin-top:12px; flex-wrap:wrap}
.quiz{margin-top:14px; border-top:1px solid var(--line); padding-top:12px}
.quiz .qq{font-weight:700; margin-bottom:8px}
.quiz .opt{display:block; width:100%; text-align:left; margin:6px 0; padding:9px 12px; border:1px solid var(--line); border-radius:10px; background:#fff}
.quiz .opt.right{border-color:#2e9e5b; background:#f0faf3}
.quiz .opt.wrong{border-color:var(--accent); background:#fdf1ee}
.quiz .why{color:var(--sub); font-size:13.5px; margin-top:6px}
.feed-nav{display:flex; justify-content:space-between; margin-top:12px}

.sc-item{display:flex; justify-content:space-between; align-items:center; background:#fff; border:1px solid var(--line);
  border-radius:var(--radius); padding:14px 16px; margin-bottom:10px; width:100%; text-align:left}
.sc-item .t{font-weight:700; font-size:16px}
.sc-item .p{color:var(--sub); font-size:13px}
.sc-item .score{color:var(--accent); font-weight:700}
.chat{display:flex; flex-direction:column; gap:8px; margin:12px 0}
.bubble{max-width:86%; padding:9px 12px; border-radius:14px; font-size:15px}
.bubble.npc{background:#f0f0ec; align-self:flex-start; border-bottom-left-radius:4px}
.bubble.me{background:#111; color:#fff; align-self:flex-end; border-bottom-right-radius:4px}
.bubble.fb{background:#fff; border:1px dashed var(--line); color:var(--sub); font-size:13.5px; align-self:stretch; max-width:100%}
.opts{display:flex; flex-direction:column; gap:8px}
.debrief{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:16px}
.debrief .big{font-size:26px; font-weight:800}
.phrase{display:flex; justify-content:space-between; gap:10px; padding:7px 0; border-bottom:1px dashed var(--line); font-size:14px}
.phrase:last-child{border-bottom:none}
.phrase .m{color:var(--sub)}

.wcard{background:#111; color:#fff; border-radius:18px; padding:34px 20px; text-align:center; min-height:190px;
  display:flex; flex-direction:column; justify-content:center; gap:8px; cursor:pointer}
.wcard .w{font-size:30px; font-weight:800}
.wcard .ph{color:#bbb}
.wcard.light{background:#fff; color:var(--ink); border:1px solid var(--line)}
.wcard .mn{font-size:17px}
.wcard .ex{color:var(--sub); font-size:13.5px}
.rate{display:flex; gap:8px; margin-top:12px}
.rate button{flex:1}
.stat-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:12px 0}
.stat{background:#fff; border:1px solid var(--line); border-radius:12px; padding:12px; text-align:center}
.stat .n{font-size:22px; font-weight:800}
.stat .l{color:var(--sub); font-size:12.5px}
.queue-item{display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px dashed var(--line); font-size:14px}
.queue-item .when{color:var(--accent); font-weight:600}

.sheet{position:fixed; left:0; right:0; bottom:0; z-index:40; background:#fff; border-top:1px solid var(--line);
  border-radius:18px 18px 0 0; box-shadow:0 -12px 32px rgba(0,0,0,.14); padding:18px; max-width:640px; margin:0 auto}
.sheet .w{font-size:22px; font-weight:800}
.sheet .ph{color:var(--faint)}
.sheet .mn{margin:6px 0}
.sheet .ex{color:var(--sub); font-size:14px}
.sheet .row{display:flex; gap:8px; margin-top:12px}
.toast{position:fixed; left:50%; transform:translateX(-50%); bottom:110px; z-index:50; background:#111; color:#fff;
  padding:9px 16px; border-radius:999px; font-size:13.5px}
.tabbar{position:fixed; left:0; right:0; bottom:0; z-index:20; display:flex; background:rgba(255,255,255,.96);
  border-top:1px solid var(--line); max-width:640px; margin:0 auto}
.tabbtn{flex:1; background:none; border:none; padding:12px 0 calc(12px + env(safe-area-inset-bottom)); color:var(--sub); font-weight:600}
.tabbtn.active{color:var(--accent)}
.section-t{font-weight:800; font-size:16px; margin:16px 0 8px}
