* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 40%, #fbc2eb 100%);
  color: #334155;
  padding-bottom: 60px;
}

.bg-decor {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.5) 0 40px, transparent 41px),
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.4) 0 60px, transparent 61px),
    radial-gradient(circle at 78% 80%, rgba(255,255,255,.35) 0 50px, transparent 51px),
    radial-gradient(circle at 20% 85%, rgba(255,255,255,.4) 0 35px, transparent 36px);
}

/* 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(100,116,139,.15);
}
.logo { font-size: 22px; font-weight: 800; color: #2563eb; }
.user-area { display: flex; align-items: center; gap: 14px; }
.username {
  font-weight: 700; color: #7c3aed; cursor: pointer;
  border-bottom: 2px dashed #c4b5fd; padding: 2px 4px;
}
.coin-box {
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  border-radius: 999px; padding: 6px 16px;
  font-weight: 800; font-size: 18px; color: #92400e;
  box-shadow: 0 3px 8px rgba(251,191,36,.5);
  transition: transform .15s;
}
.coin-box.bump { transform: scale(1.15); }
.coin-icon { font-size: 20px; }

/* 标签页 */
.tabs {
  position: relative; z-index: 1;
  display: flex; gap: 10px; justify-content: center;
  padding: 18px 16px 6px; flex-wrap: wrap;
}
.tab {
  border: none; cursor: pointer;
  padding: 10px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 700; font-family: inherit;
  background: rgba(255,255,255,.65); color: #475569;
  box-shadow: 0 2px 6px rgba(100,116,139,.12);
  transition: all .2s;
}
.tab:hover { transform: translateY(-2px); }
.tab.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; box-shadow: 0 4px 14px rgba(99,102,241,.45);
}

main { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 16px; }
.page { display: none; }
.page.active { display: block; animation: fadeIn .3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; } }

/* 打卡横幅 */
.banner {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background: rgba(255,255,255,.8); border-radius: 20px;
  padding: 20px 26px; margin-bottom: 18px; flex-wrap: wrap;
  box-shadow: 0 4px 16px rgba(100,116,139,.12);
}
.banner h2 { font-size: 24px; color: #1e293b; }
.streak { margin-top: 6px; color: #ea580c; font-weight: 700; }
.progress-wrap { min-width: 240px; flex: 1; max-width: 360px; }
.progress-label { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: #64748b; }
.progress-bar { height: 14px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.progress-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, #34d399, #10b981);
  transition: width .5s;
}

/* 打卡卡片 */
.task-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.task-card {
  background: rgba(255,255,255,.9); border-radius: 18px;
  padding: 18px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 4px 14px rgba(100,116,139,.12);
  border: 2px solid transparent; transition: all .2s;
}
.task-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(100,116,139,.2); }
.task-card.done { border-color: #34d399; background: #f0fdf4; }
.task-head { display: flex; align-items: center; gap: 10px; }
.task-icon { font-size: 30px; }
.task-name { font-weight: 800; font-size: 16px; }
.task-desc { font-size: 13px; color: #64748b; flex: 1; }
.task-foot { display: flex; justify-content: space-between; align-items: center; }
.reward { color: #b45309; font-weight: 800; font-size: 14px; background: #fef3c7; padding: 3px 10px; border-radius: 999px; }
.btn {
  border: none; cursor: pointer; font-family: inherit;
  padding: 8px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  box-shadow: 0 3px 8px rgba(59,130,246,.4);
  transition: all .15s;
}
.btn:hover:not(:disabled) { transform: scale(1.06); }
.btn:disabled { background: #cbd5e1; box-shadow: none; cursor: not-allowed; }
.btn.done-btn { background: #34d399; box-shadow: none; }

.rule-card {
  margin-top: 20px; background: rgba(255,255,255,.75);
  border-radius: 16px; padding: 16px 20px;
  border-left: 6px solid #fbbf24; line-height: 1.8; font-size: 14px;
}
.rule-card h3 { margin-bottom: 4px; color: #b45309; }

/* 商店 */
.shop-title { margin: 18px 4px 12px; font-size: 18px; color: #1e293b; }
.shop-title small { font-size: 13px; color: #94a3b8; font-weight: 400; }
.shop-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.shop-card {
  background: rgba(255,255,255,.9); border-radius: 18px; padding: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; box-shadow: 0 4px 14px rgba(100,116,139,.12);
  transition: transform .2s; position: relative;
}
.shop-card:hover { transform: translateY(-3px); }
.shop-card.owned { outline: 2px solid #fbbf24; }
.shop-icon { font-size: 40px; }
.color-swatch { width: 44px; height: 44px; border-radius: 12px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5), 0 2px 6px rgba(0,0,0,.2); }
.color-swatch.rainbow { background: linear-gradient(135deg,#f87171,#fbbf24,#34d399,#60a5fa,#a78bfa); }
.shop-name { font-weight: 800; }
.shop-desc { font-size: 12px; color: #64748b; min-height: 32px; }
.price { font-weight: 800; color: #b45309; }
.owned-tag {
  position: absolute; top: 8px; right: 8px;
  background: #fde68a; color: #92400e; font-size: 12px; font-weight: 700;
  border-radius: 999px; padding: 2px 8px;
}
.btn.buy { background: linear-gradient(135deg, #f59e0b, #f97316); box-shadow: 0 3px 8px rgba(249,115,22,.4); }
.btn.equip { background: linear-gradient(135deg, #8b5cf6, #d946ef); box-shadow: 0 3px 8px rgba(217,70,239,.35); }
.btn.gray { background: #94a3b8; box-shadow: none; }

/* 我的笔袋 */
#caseArea { display: flex; flex-direction: column; align-items: center; gap: 24px; padding-top: 10px; }
.case-stage { position: relative; padding: 46px 30px 30px; }
.pencil-case {
  position: relative; width: 340px; height: 150px;
  border-radius: 26px; background: #e2e8f0;
  box-shadow: 0 12px 28px rgba(30,41,59,.3), inset 0 -8px 0 rgba(0,0,0,.08);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  transition: background .4s;
  perspective: 700px; cursor: pointer; user-select: none;
}

/* 笔袋内部 */
.case-inside {
  position: absolute; inset: 10px; border-radius: 18px;
  background: rgba(15, 23, 42, .22);
  box-shadow: inset 0 4px 12px rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.case-item { font-size: 44px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); opacity: 0; }
.pencil-case.open .case-item { animation: itemPop .45s cubic-bezier(.34,1.56,.64,1) forwards; }
@keyframes itemPop {
  0% { transform: translateY(-26px) scale(.3) rotate(-20deg); opacity: 0; }
  100% { transform: translateY(0) scale(1) rotate(0); opacity: 1; }
}

/* 笔袋盖子 */
.case-lid {
  position: absolute; inset: 0; border-radius: 26px;
  background: inherit;
  box-shadow: 0 6px 16px rgba(30,41,59,.25), inset 0 -8px 0 rgba(0,0,0,.08);
  transform-origin: top center;
  transition: transform .65s cubic-bezier(.34,1.3,.5,1);
  backface-visibility: hidden;
  overflow: hidden;
}
.pencil-case.open .case-lid { transform: rotateX(-104deg); }
.case-lid::after {  /* 缝线装饰 */
  content: ""; position: absolute; inset: 8px; border-radius: 18px;
  border: 2px dashed rgba(255,255,255,.5); pointer-events: none;
}
.lid-shine {  /* 高光 */
  position: absolute; top: -30%; left: -20%; width: 60%; height: 160%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent);
  transform: rotate(8deg); pointer-events: none;
}
.lid-sticker { position: absolute; font-size: 22px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.2)); }
.lid-sticker.s1 { top: 12px; left: 18px; transform: rotate(-14deg); }
.lid-sticker.s2 { bottom: 14px; right: 20px; transform: rotate(10deg); }
.lid-sticker.s3 { top: 16px; right: 52px; transform: rotate(6deg); font-size: 18px; }
.lid-label {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,.95);
  text-shadow: 0 1px 3px rgba(0,0,0,.35); white-space: nowrap;
}

/* 打开时的星光 */
.case-sparkles .sp {
  position: absolute; font-size: 18px; opacity: 0; pointer-events: none;
}
.pencil-case.open .sp { animation: sparkleUp 1s ease-out forwards; }
.sp1 { top: 8px; left: 12%; animation-delay: .15s !important; }
.sp2 { top: 0; left: 45%; animation-delay: .3s !important; font-size: 24px; }
.sp3 { top: 10px; right: 15%; animation-delay: .45s !important; }
.sp4 { top: -6px; right: 40%; animation-delay: .6s !important; font-size: 14px; }
@keyframes sparkleUp {
  0% { transform: translateY(10px) scale(.4); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(-34px) scale(1.2); opacity: 0; }
}

.case-hint { font-size: 13px; color: #64748b; font-weight: 600; margin-top: -8px; }
.pencil-case.rainbow { background: linear-gradient(135deg,#f87171,#fbbf24,#34d399,#60a5fa,#a78bfa); }
.pencil-case.starry {
  background: #1e293b;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent),
    radial-gradient(2px 2px at 60% 70%, #fde68a, transparent),
    radial-gradient(1.5px 1.5px at 80% 25%, #fff, transparent),
    radial-gradient(1px 1px at 40% 80%, #bae6fd, transparent),
    radial-gradient(2px 2px at 90% 60%, #fff, transparent);
}
.pencil-case.glow { animation: glowPulse 2s infinite alternate; }
@keyframes glowPulse {
  from { box-shadow: 0 0 18px 4px rgba(167,243,208,.55), 0 12px 28px rgba(30,41,59,.3); }
  to   { box-shadow: 0 0 38px 12px rgba(110,231,183,.9), 0 12px 28px rgba(30,41,59,.3); }
}
.zipper {
  position: absolute; top: 14px; left: 16px; right: 16px; height: 0;
  border-top: 3px dashed rgba(255,255,255,.75);
}
.zipper::after {
  content: "🤐"; position: absolute; right: -6px; top: -16px; font-size: 18px;
}
.case-item { font-size: 44px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); }
.case-empty-hint { font-size: 14px; color: rgba(255,255,255,.9); font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.3); }
.charm { position: absolute; top: -34px; right: 34px; font-size: 34px; animation: swing 2.4s ease-in-out infinite; transform-origin: top center; }
@keyframes swing { 0%,100% { transform: rotate(12deg);} 50% { transform: rotate(-12deg);} }
.lock-badge { position: absolute; bottom: -14px; right: 22px; font-size: 26px; }
.nametag {
  position: absolute; top: -16px; left: 26px;
  background: #fff; border: 2px solid #f59e0b; border-radius: 10px;
  padding: 3px 12px; font-size: 13px; font-weight: 800; color: #b45309;
  transform: rotate(-5deg); box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.mirror-badge { position: absolute; top: 38%; left: -20px; font-size: 28px; }
.ruler-badge { position: absolute; bottom: -12px; left: 40px; font-size: 26px; transform: rotate(-8deg); }
.schedule-card {
  position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  background: #fff; border-radius: 8px; padding: 3px 12px;
  font-size: 12px; font-weight: 700; color: #475569;
  box-shadow: 0 2px 8px rgba(0,0,0,.18); white-space: nowrap;
}
.layers-badge { position: absolute; top: -14px; right: 42%; font-size: 24px; }

.func-panel {
  width: 100%; max-width: 560px;
  background: rgba(255,255,255,.85); border-radius: 18px; padding: 18px 22px;
  box-shadow: 0 4px 14px rgba(100,116,139,.12);
}
.func-panel h3 { margin-bottom: 12px; }
.func-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px dashed #e2e8f0;
}
.func-row:last-child { border-bottom: none; }
.func-row .fname { flex: 1; font-weight: 700; }
.switch { position: relative; width: 48px; height: 26px; cursor: pointer; }
.switch input { display: none; }
.slider {
  position: absolute; inset: 0; border-radius: 999px;
  background: #cbd5e1; transition: .25s;
}
.slider::before {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px; transition: .25s;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.switch input:checked + .slider { background: #34d399; }
.switch input:checked + .slider::before { transform: translateX(22px); }

.empty-case {
  background: rgba(255,255,255,.85); border-radius: 18px; padding: 40px 30px;
  text-align: center; font-size: 16px; line-height: 2;
  box-shadow: 0 4px 14px rgba(100,116,139,.12);
}

/* 记录 */
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-row {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.85); border-radius: 12px;
  padding: 10px 16px; font-size: 14px;
  box-shadow: 0 2px 6px rgba(100,116,139,.08);
}
.history-row .h-time { color: #94a3b8; font-size: 12px; width: 140px; flex-shrink: 0; }
.history-row .h-reason { flex: 1; font-weight: 600; }
.h-delta { font-weight: 800; }
.h-delta.plus { color: #059669; }
.h-delta.minus { color: #dc2626; }
.h-balance { color: #94a3b8; font-size: 12px; width: 90px; text-align: right; }
.history-empty { text-align: center; color: #64748b; padding: 30px; }

/* 答题弹窗 */
.modal-mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(30,41,59,.45); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center;
  padding: 16px;
}
.modal-mask.show { display: flex; }
.quiz-box {
  background: #fff; border-radius: 22px; width: 100%; max-width: 520px;
  max-height: 86vh; overflow-y: auto; padding: 22px 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
  animation: popIn .25s;
}
@keyframes popIn { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.quiz-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 18px; font-weight: 800; color: #1e293b;
}
.quiz-close {
  border: none; background: #f1f5f9; border-radius: 50%;
  width: 32px; height: 32px; cursor: pointer; font-size: 14px; color: #64748b;
}
.quiz-close:hover { background: #e2e8f0; }
.quiz-tip { font-size: 13px; color: #7c3aed; margin: 8px 0 14px; font-weight: 600; }
.quiz-q { margin-bottom: 16px; padding: 12px 14px; border-radius: 14px; background: #f8fafc; border: 2px solid transparent; }
.quiz-q.wrong { border-color: #fca5a5; background: #fef2f2; }
.quiz-q-text { font-weight: 700; margin-bottom: 10px; line-height: 1.5; }
.quiz-opt {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; margin: 6px 0; border-radius: 10px;
  background: #fff; border: 2px solid #e2e8f0;
  cursor: pointer; transition: all .15s; font-size: 15px;
}
.quiz-opt:hover { border-color: #93c5fd; background: #eff6ff; }
.quiz-opt.picked { border-color: #6366f1; background: #eef2ff; font-weight: 700; }
.quiz-opt input { accent-color: #6366f1; }
.quiz-submit { width: 100%; padding: 12px; font-size: 16px; margin-top: 4px; }
.quiz-box { position: relative; }

/* 逐题模式 */
.step-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.step-bar { flex: 1; height: 10px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.step-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #34d399, #10b981); transition: width .3s;
}
.step-no { font-size: 13px; font-weight: 700; color: #64748b; white-space: nowrap; }
.step-correct { color: #059669; display: inline-block; }
.step-correct.bump { animation: correctBump .45s ease; }
@keyframes correctBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.step-q {
  font-size: 20px; font-weight: 800; color: #1e293b; line-height: 1.6;
  margin-bottom: 18px; min-height: 60px;
}
.step-opts { display: flex; flex-direction: column; gap: 10px; }
.step-opt {
  border: 2px solid #e2e8f0; background: #f8fafc; border-radius: 14px;
  padding: 14px 18px; font-size: 17px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: all .15s; text-align: left; color: #334155;
}
.step-opt:hover:not(:disabled) { border-color: #6366f1; background: #eef2ff; transform: scale(1.02); }
.step-opt:disabled { cursor: default; }
.step-opt.opt-right { border-color: #34d399; background: #f0fdf4; color: #16a34a; }
.step-opt.opt-wrong { border-color: #f87171; background: #fef2f2; color: #dc2626; }
.step-fill-row { display: flex; gap: 10px; }
.step-input { flex: 1; width: auto; font-size: 18px; padding: 12px 14px; }
.step-input.input-right { border-color: #34d399; background: #f0fdf4; }
.step-input.input-wrong { border-color: #f87171; background: #fef2f2; }
.step-ok { padding: 12px 26px; font-size: 16px; flex-shrink: 0; }

/* 即时反馈特效 */
.step-fx {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 22px; pointer-events: none;
  animation: fxPop 1.15s ease forwards;
}
.step-fx.fx-good { background: rgba(240, 253, 244, .92); }
.step-fx.fx-bad { background: rgba(255, 241, 242, .92); }
.fx-text {
  font-size: 34px; font-weight: 800;
  animation: fxBounce .5s ease;
}
.fx-good .fx-text { color: #16a34a; text-shadow: 0 2px 12px rgba(52,211,153,.5); }
.fx-bad .fx-text { color: #e11d48; font-size: 26px; }
.fx-ans { margin-top: 10px; font-size: 17px; color: #475569; }
.fx-ans b { color: #16a34a; font-size: 20px; }
@keyframes fxPop {
  0% { opacity: 0; }
  12% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes fxBounce {
  0% { transform: scale(.3); }
  55% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* 登录 / 注册 */
.auth-screen {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 40%, #fbc2eb 100%);
  padding: 16px;
}
.auth-box {
  background: rgba(255,255,255,.95); border-radius: 24px;
  padding: 32px 30px; width: 100%; max-width: 380px;
  box-shadow: 0 20px 50px rgba(30,41,59,.25);
  animation: popIn .3s;
}
.auth-logo { font-size: 28px; font-weight: 800; color: #2563eb; text-align: center; }
.auth-sub { text-align: center; color: #94a3b8; font-size: 13px; margin: 6px 0 18px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.auth-tab {
  flex: 1; border: none; cursor: pointer; font-family: inherit;
  padding: 10px; border-radius: 12px; font-size: 15px; font-weight: 700;
  background: #f1f5f9; color: #64748b; transition: all .2s;
}
.auth-tab.active { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; }
.auth-input {
  width: 100%; padding: 12px 14px; margin-bottom: 12px;
  border: 2px solid #e2e8f0; border-radius: 12px;
  font-size: 15px; font-family: inherit; outline: none;
  transition: border-color .2s; background: #f8fafc;
}
.auth-input:focus { border-color: #6366f1; background: #fff; }
.auth-btn { width: 100%; padding: 12px; font-size: 16px; }
.auth-error {
  min-height: 20px; margin: -6px 0 10px;
  color: #dc2626; font-size: 13px; font-weight: 700; text-align: center;
}
.auth-error.shake { animation: shakeX .4s; }
@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

/* 个人信息 */
.profile-row {
  display: flex; align-items: center; gap: 12px;
  margin: 12px 0; font-size: 15px;
}
.profile-row label { font-weight: 700; width: 70px; flex-shrink: 0; }
.profile-row .auth-input { margin-bottom: 0; flex: 1; }
.profile-btn { width: 100%; padding: 10px; margin-top: 4px; }
.profile-divider { border-top: 1px dashed #e2e8f0; margin: 18px 0; }

/* 数学口算 */
.math-box { max-width: 720px; }
.math-timer {
  font-size: 18px; font-weight: 800; color: #059669;
  background: #ecfdf5; border-radius: 999px; padding: 4px 14px;
}
.math-timer.danger { color: #dc2626; background: #fef2f2; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .5; } }
.math-grid {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin-bottom: 14px;
}
.math-q {
  display: flex; align-items: center; gap: 6px;
  background: #f8fafc; border-radius: 10px; padding: 8px 10px;
  font-size: 15px;
}
.math-no { color: #94a3b8; font-size: 12px; width: 20px; flex-shrink: 0; }
.math-text { font-weight: 700; white-space: nowrap; }
.math-input {
  width: 64px; padding: 5px 8px; text-align: center;
  border: 2px solid #e2e8f0; border-radius: 8px;
  font-size: 15px; font-weight: 700; font-family: inherit; outline: none;
}
.math-input:focus { border-color: #6366f1; background: #fff; }
.math-input::-webkit-outer-spin-button,
.math-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* 注册行（年龄+年级并排） */
.reg-row { display: flex; gap: 10px; }
.reg-row .auth-input { flex: 1; }

/* 连线题 */
.match-q { background: #fdf4ff; }
.match-rights {
  font-size: 14px; color: #7c3aed; margin-bottom: 10px;
  background: #fff; border-radius: 8px; padding: 8px 10px;
  border: 1px dashed #d8b4fe;
}
.match-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.match-left { font-weight: 700; min-width: 110px; }
.match-select {
  padding: 6px 10px; border-radius: 8px; border: 2px solid #e2e8f0;
  font-family: inherit; font-size: 14px; outline: none; background: #fff;
}
.match-select:focus { border-color: #a855f7; }

/* 错题本 */
.wb-badge {
  background: #ef4444; color: #fff; border-radius: 999px;
  font-size: 12px; padding: 1px 7px; margin-left: 2px;
}
.wb-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; margin: 4px 4px 12px;
}
.wb-group {
  background: rgba(255,255,255,.9); border-radius: 16px;
  padding: 14px 18px; margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(100,116,139,.12);
}
.wb-group-title { font-weight: 800; margin-bottom: 8px; color: #1e293b; }
.wb-row {
  padding: 10px 0; border-bottom: 1px dashed #e2e8f0;
  display: flex; flex-direction: column; gap: 4px;
}
.wb-row:last-child { border-bottom: none; }
.wb-q { font-weight: 600; font-size: 14px; line-height: 1.5; }
.wb-meta { display: flex; gap: 14px; font-size: 12px; align-items: center; }
.wb-answer { color: #059669; font-weight: 700; }
.wb-count { color: #dc2626; }
.wb-solved { opacity: .62; }
.wb-solved .wb-q { color: #64748b; }
.wb-solved-tag {
  display: inline-block; font-size: 11px; font-weight: 700; color: #059669;
  background: #d1fae5; border-radius: 999px; padding: 1px 8px; margin-right: 6px;
  vertical-align: 1px;
}
.wb-del {
  margin-left: auto; border: 1px solid #fecaca; background: #fff5f5; color: #ef4444;
  font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 10px;
  cursor: pointer; transition: all .15s;
}
.wb-del:hover { background: #fee2e2; }
.wb-del:disabled { opacity: .5; cursor: default; }
.quiz-q.right { border-color: #34d399; background: #f0fdf4; }

/* 提示条 & 金币飞行动画 */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(80px);
  background: #1e293b; color: #fff; padding: 12px 26px; border-radius: 999px;
  font-weight: 700; z-index: 99; opacity: 0; transition: all .3s;
  box-shadow: 0 8px 24px rgba(0,0,0,.3); max-width: 90vw; text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.coin-fly {
  position: fixed; z-index: 98; font-size: 34px; pointer-events: none;
  opacity: 0; transition: all .8s ease-in;
}

/* 任务分组标题 */
.task-group-title {
  margin: 18px 4px 12px; font-size: 18px; color: #1e293b;
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.task-group-title small { font-size: 13px; color: #94a3b8; font-weight: 400; }

/* 金币统计卡片 */
.stat-cards {
  display: grid; gap: 12px; margin: 6px 0 18px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.stat-card {
  background: rgba(255,255,255,.9); border-radius: 16px;
  padding: 14px 16px; text-align: center;
  box-shadow: 0 4px 14px rgba(100,116,139,.12);
  border-top: 4px solid #c7d2fe;
}
.stat-card.sc-balance { border-top-color: #fbbf24; }
.stat-card.sc-earn { border-top-color: #34d399; }
.stat-card.sc-spend { border-top-color: #f87171; }
.stat-card.sc-today { border-top-color: #60a5fa; }
.stat-card.sc-check { border-top-color: #a78bfa; }
.stat-card.sc-days { border-top-color: #fb923c; }
.stat-num { font-size: 22px; font-weight: 800; color: #1e293b; }
.stat-label { font-size: 12px; color: #94a3b8; margin-top: 4px; font-weight: 600; }

/* 图表卡片 */
.chart-card {
  background: rgba(255,255,255,.9); border-radius: 16px;
  padding: 16px 18px; box-shadow: 0 4px 14px rgba(100,116,139,.12);
}
.bar-chart {
  display: flex; align-items: flex-end; gap: 8px;
  height: 150px; padding-top: 8px;
}
.bc-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.bc-bars {
  flex: 1; width: 100%; display: flex; align-items: flex-end;
  justify-content: center; gap: 4px;
}
.bc-bar { width: 14px; border-radius: 5px 5px 0 0; min-height: 2px; transition: height .4s; }
.bc-earn { background: linear-gradient(180deg, #6ee7b7, #10b981); }
.bc-spend { background: linear-gradient(180deg, #fca5a5, #ef4444); }
.bc-val { font-size: 11px; font-weight: 700; color: #059669; height: 15px; margin-top: 3px; }
.bc-label { font-size: 11px; color: #94a3b8; }
.chart-legend {
  display: flex; gap: 18px; justify-content: center;
  margin-top: 10px; font-size: 12px; color: #64748b;
}
.lg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; }
.lg-earn { background: #10b981; }
.lg-spend { background: #ef4444; }

/* 来源 / 去向横条 */
.rc-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; }
.rc-name { flex: 0 0 118px; font-weight: 600; color: #475569; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-bar-wrap { flex: 1; height: 12px; background: #f1f5f9; border-radius: 6px; overflow: hidden; }
.rc-bar { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #6ee7b7, #10b981); transition: width .4s; }
.rc-bar-spend { background: linear-gradient(90deg, #fca5a5, #ef4444); }
.rc-val { flex: 0 0 96px; text-align: right; font-weight: 800; color: #059669; font-size: 13px; }
.rc-val small { font-weight: 400; color: #94a3b8; }
.rc-val-spend { color: #dc2626; }
.h-icon { flex-shrink: 0; font-size: 16px; }

@media (max-width: 640px) {
  body { padding-bottom: 30px; }

  /* 顶栏 */
  .topbar { padding: 10px 14px; }
  .logo { font-size: 17px; }
  .username { font-size: 14px; }
  .coin-box { padding: 4px 12px; font-size: 15px; }
  .coin-icon { font-size: 16px; }

  /* 导航：横向滑动，不换行 */
  .tabs {
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    padding: 12px 10px 6px; gap: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 8px 14px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }

  main { padding: 10px; }

  /* 打卡页 */
  .banner { flex-direction: column; align-items: stretch; padding: 14px 16px; border-radius: 16px; }
  .banner h2 { font-size: 18px; }
  .streak { font-size: 13px; }
  .progress-wrap { min-width: 0; max-width: none; }
  .task-group-title { font-size: 16px; margin: 14px 2px 10px; }
  .task-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .task-card { padding: 12px; border-radius: 14px; gap: 6px; }
  .task-icon { font-size: 24px; }
  .task-name { font-size: 14px; }
  .task-desc { font-size: 12px; }
  .task-foot { flex-direction: column; gap: 8px; align-items: stretch; }
  .task-foot .btn { width: 100%; padding: 8px 10px; }
  .reward { text-align: center; font-size: 12px; }
  .rule-card { font-size: 13px; padding: 12px 14px; }

  /* 商店 / 笔袋 */
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .shop-card { padding: 12px; }
  .shop-icon { font-size: 32px; }
  .shop-desc { min-height: 0; }
  .pencil-case { width: 290px; height: 130px; }
  .case-stage { padding: 40px 10px 24px; }

  /* 弹窗 */
  .modal-mask { padding: 8px; }
  .quiz-box { padding: 16px 14px; border-radius: 18px; max-height: 92vh; }
  .quiz-head { font-size: 16px; }
  .math-box { max-width: 100%; }
  .math-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .math-q { padding: 6px 8px; font-size: 14px; }
  .math-input { width: 52px; }
  .quiz-opt { font-size: 14px; padding: 8px 10px; }
  .step-q { font-size: 17px; min-height: 48px; }
  .step-no { font-size: 11px; }
  .step-opt { padding: 12px 14px; font-size: 15px; }
  .fx-text { font-size: 26px; }
  .fx-bad .fx-text { font-size: 20px; }
  .poem-title { font-size: 20px; }
  .poem-content p { font-size: 16px; letter-spacing: 1px; }

  /* 错题本 / 学情报告 */
  .wb-head { flex-direction: column; align-items: stretch; }
  .wb-head .btn { width: 100%; }
  .kp-grid { grid-template-columns: 1fr; }
  .kp-name { flex: 0 0 92px; font-size: 12px; }

  /* 金币记录 */
  .stat-cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-num { font-size: 18px; }
  .bar-chart { height: 120px; gap: 4px; }
  .bc-bar { width: 10px; }
  .rc-name { flex: 0 0 88px; font-size: 12px; }
  .rc-val { flex: 0 0 84px; font-size: 12px; }
  .history-row { flex-wrap: wrap; gap: 6px 10px; padding: 10px 12px; }
  .history-row .h-time { width: auto; order: 3; }
  .history-row .h-reason { flex: 1 1 60%; }
  .h-balance { width: auto; order: 4; margin-left: auto; }

  /* 登录 */
  .auth-box { padding: 24px 20px; }
  .reg-row { flex-direction: column; gap: 0; }

  /* 管理后台 */
  .admin-tabs { gap: 6px; }
  .admin-tab { padding: 7px 14px; font-size: 13px; }
  .admin-card { padding: 12px 14px; }
  .uc-form { grid-template-columns: 1fr 1fr; }
  .uc-btns .btn { flex: 1; }
  .q-form-grid { grid-template-columns: 1fr 1fr; }
  #qOptionsWrap { grid-template-columns: 1fr; }
  .q-item-btns .btn { flex: 1; }
  .ck-row { flex-wrap: wrap; }
  .ck-row .btn { flex: 1; }
  .ck-add-row { flex-direction: column; }
  .level-badge { flex-wrap: wrap; padding: 5px 12px; }
  .level-bar { width: 70px; }
  .sound-toggle { width: 32px; height: 32px; font-size: 15px; }
}

/* ---------- 学情报告 ---------- */
.advice-card {
  background: linear-gradient(135deg, #fff7e6, #ffedd5);
  border: 2px solid #fdba74; border-radius: 16px;
  padding: 16px 20px; margin-bottom: 18px;
}
.advice-card h3 { margin: 0 0 8px; color: #c2410c; font-size: 17px; }
.advice-card p { margin: 6px 0; font-size: 14px; color: #7c2d12; line-height: 1.6; }
.kp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.kp-card {
  background: #fff; border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.kp-subject { font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.kp-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; }
.kp-name { flex: 0 0 108px; color: #444; }
.kp-cur {
  font-style: normal; font-size: 10px; background: #dbeafe; color: #1d4ed8;
  border-radius: 6px; padding: 1px 5px; margin-left: 4px; vertical-align: 1px;
}
.kp-bar { flex: 1; height: 10px; background: #f1f5f9; border-radius: 6px; overflow: hidden; }
.kp-fill { height: 100%; border-radius: 6px; transition: width .4s; }
.kp-fill.kp-none { background: #e2e8f0; }
.kp-fill.kp-weak { background: #f87171; }
.kp-fill.kp-learning { background: #60a5fa; }
.kp-fill.kp-mastered { background: #4ade80; }
.kp-pct { flex: 0 0 36px; text-align: right; color: #888; font-size: 12px; }
.kp-tag { flex: 0 0 52px; text-align: center; font-size: 11px; border-radius: 8px; padding: 2px 0; }
.kp-tag.kp-none { background: #f1f5f9; color: #94a3b8; }
.kp-tag.kp-weak { background: #fee2e2; color: #dc2626; }
.kp-tag.kp-learning { background: #dbeafe; color: #2563eb; }
.kp-tag.kp-mastered { background: #dcfce7; color: #16a34a; }

/* ---------- 知识图谱 SVG ---------- */
.kg-legend {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  background: #fff; border-radius: 12px; padding: 10px 16px;
  font-size: 13px; color: #555; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.kg-legend .dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -1px; }
.kg-legend .dot.kg-mastered { background: #4ade80; }
.kg-legend .dot.kg-learning { background: #60a5fa; }
.kg-legend .dot.kg-weak { background: #f87171; }
.kg-legend .dot.kg-none { background: #e2e8f0; }
.kg-legend-arrow { color: #94a3b8; }
.kg-scroll { overflow-x: hidden; padding-bottom: 6px; }
.poem-card { background: linear-gradient(135deg, #fff7ed, #fef3c7); border: 2px solid #fcd34d; border-radius: 16px; padding: 24px 20px; margin: 12px 0; text-align: center; }
.poem-title { font-size: 24px; font-weight: 800; color: #92400e; margin-bottom: 6px; }
.poem-author { font-size: 14px; color: #b45309; margin-bottom: 16px; }
.poem-content p { font-size: 19px; line-height: 2; color: #451a03; margin: 0; letter-spacing: 2px; }
.kg-band-title { font-size: 14px; font-weight: 700; color: #64748b; margin: 14px 0 4px; padding-left: 4px; border-left: 4px solid #a5b4fc; }
.kg-mine { font-size: 12px; color: #4f46e5; background: #e0e7ff; border-radius: 999px; padding: 2px 8px; margin-left: 4px; }
.kg-svg { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.kg-edge { stroke: #cbd5e1; stroke-width: 1.6; fill: none; }
.kg-arrow { fill: #cbd5e1; }
.kg-node { cursor: pointer; }
.kg-node rect { stroke-width: 2; transition: filter .15s; }
.kg-node:hover rect { filter: brightness(.93); }
.kg-node.kg-none rect { fill: #f8fafc; stroke: #cbd5e1; }
.kg-node.kg-weak rect { fill: #fef2f2; stroke: #f87171; }
.kg-node.kg-learning rect { fill: #eff6ff; stroke: #60a5fa; }
.kg-node.kg-mastered rect { fill: #f0fdf4; stroke: #4ade80; }
.kg-node rect.kg-current { stroke-dasharray: 5 3; stroke-width: 2.6; }
.kg-name { font-size: 12px; font-weight: 700; fill: #334155; text-anchor: middle; }
.kg-pct { font-size: 10.5px; fill: #94a3b8; text-anchor: middle; }
.kg-node.kg-weak .kg-pct { fill: #dc2626; font-weight: 700; }
.kg-node.kg-mastered .kg-pct { fill: #16a34a; font-weight: 700; }

/* ---------- 管理后台 ---------- */
.admin-tabs { display: flex; gap: 8px; margin: 4px 4px 14px; flex-wrap: wrap; }
.admin-tab {
  border: none; cursor: pointer; font-family: inherit;
  padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: rgba(255,255,255,.65); color: #475569;
  box-shadow: 0 2px 6px rgba(100,116,139,.12); transition: all .2s;
}
.admin-tab.active {
  background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff;
  box-shadow: 0 4px 14px rgba(249,115,22,.4);
}
.admin-pane { display: none; }
.admin-pane.active { display: block; animation: fadeIn .3s; }
.admin-card {
  background: rgba(255,255,255,.92); border-radius: 16px;
  padding: 16px 18px; margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(100,116,139,.12);
}
.admin-card h4 { margin: 0 0 12px; color: #1e293b; font-size: 16px; }

.uc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.uc-name { font-weight: 800; font-size: 16px; color: #1e293b; }
.uc-username { color: #94a3b8; font-size: 13px; }
.uc-role {
  background: #fee2e2; color: #dc2626; font-size: 11px; font-weight: 700;
  border-radius: 6px; padding: 2px 8px;
}
.uc-coins { margin-left: auto; font-weight: 800; color: #b45309; }
.uc-stats { font-size: 12px; color: #64748b; margin: 6px 0 10px; }
.uc-form { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: 8px; margin-bottom: 10px; }
.uc-form .auth-input { margin-bottom: 0; padding: 8px 10px; font-size: 14px; }
.uc-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.uc-btns .btn { padding: 7px 14px; font-size: 13px; }

.q-form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.q-form-grid .auth-input { margin-bottom: 10px; }
#qOptionsWrap { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#qOptionsWrap .auth-input { margin-bottom: 10px; }
#qModal .quiz-box { max-width: 560px; }
#qModal textarea, #qModal #qAnswer { margin-bottom: 10px; }
.q-form-btns { display: flex; gap: 8px; }
.q-form-btns .btn { flex: 1; }

.q-item {
  border: 2px solid #e2e8f0; border-radius: 12px;
  padding: 12px 14px; margin-bottom: 10px; background: #fff;
}
.q-item.q-disabled { opacity: .55; border-style: dashed; }
.q-item-head { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.q-tag {
  font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 8px;
  background: #dbeafe; color: #1d4ed8;
}
.q-tag-kp { background: #ede9fe; color: #6d28d9; }
.q-tag-type { background: #fef3c7; color: #b45309; }
.q-item-q { font-weight: 700; font-size: 14px; margin-bottom: 6px; line-height: 1.5; }
.q-item-opts { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; margin-bottom: 6px; }
.q-item-opts span { background: #f1f5f9; border-radius: 8px; padding: 3px 10px; }
.q-item-opts .q-opt-right { background: #dcfce7; color: #16a34a; font-weight: 700; }
.q-item-ans { font-size: 13px; color: #475569; margin-bottom: 8px; }
.q-item-btns { display: flex; gap: 8px; }
.q-item-btns .btn { padding: 5px 12px; font-size: 12px; }

.task-setting .ts-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.task-setting .ts-switch { margin-left: auto; }
.task-setting .ts-desc { margin-bottom: 10px; }
.task-setting .ts-save { padding: 8px 18px; font-size: 13px; }

/* 等级称号 */
.level-badge {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  background: linear-gradient(135deg, #ede9fe, #e0e7ff);
  border-radius: 999px; padding: 6px 14px; width: fit-content;
  box-shadow: 0 2px 8px rgba(124,58,237,.18);
}
.level-icon { font-size: 20px; }
.level-name { font-weight: 800; font-size: 14px; color: #6d28d9; white-space: nowrap; }
.level-bar { width: 90px; height: 8px; background: rgba(255,255,255,.8); border-radius: 999px; overflow: hidden; }
.level-fill { height: 100%; background: linear-gradient(90deg, #a78bfa, #7c3aed); border-radius: 999px; transition: width .5s; }
.level-next { font-size: 11px; color: #7c3aed; white-space: nowrap; }

/* 音效开关 */
.sound-toggle {
  border: none; background: rgba(255,255,255,.8); border-radius: 50%;
  width: 36px; height: 36px; cursor: pointer; font-size: 17px;
  box-shadow: 0 2px 6px rgba(100,116,139,.15); transition: transform .15s;
}
.sound-toggle:hover { transform: scale(1.1); }

/* 庆祝彩带 */
.confetti {
  position: fixed; top: -40px; z-index: 200; pointer-events: none;
  animation: confettiFall 3.2s ease-in forwards;
}
@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(105vh) rotate(540deg); opacity: 0; }
}

/* 题目标签补充 */
.q-tag-diff { background: #fef9c3; color: #a16207; }
.q-tag-src { background: #e0e7ff; color: #4338ca; }
.q-tag-custom { background: #fce7f3; color: #be185d; }
.q-total { font-size: 12px; color: #94a3b8; font-weight: 400; }
.q-list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; flex-wrap: wrap; }
.q-list-head .btn { padding: 8px 16px; font-size: 13px; }
.q-pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 14px; }
.q-pager .btn { padding: 6px 16px; font-size: 13px; }
.q-pager .btn:disabled { opacity: .4; cursor: default; }
.q-page-info { font-size: 13px; font-weight: 700; color: #64748b; }

/* 打卡记录管理弹窗 */
.ck-date-row { display: flex; gap: 8px; margin: 10px 0 14px; }
.ck-date-row .auth-input { margin-bottom: 0; flex: 1; }
.ck-date-row .btn { flex-shrink: 0; }
.ck-row {
  display: flex; align-items: center; gap: 10px;
  background: #f8fafc; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
}
.ck-icon { font-size: 22px; }
.ck-info { flex: 1; min-width: 0; }
.ck-name { font-weight: 700; font-size: 14px; }
.ck-coins { color: #b45309; font-size: 12px; font-weight: 600; }
.ck-ts { font-size: 12px; color: #94a3b8; }
.ck-row .btn { padding: 5px 12px; font-size: 12px; flex-shrink: 0; }
.ck-add-row { display: flex; gap: 8px; margin-top: 14px; }
.ck-add-row .auth-input { margin-bottom: 0; flex: 1; }
.ck-add-row .btn { flex-shrink: 0; }

/* ---------- 答题结果 / 错题提示 ---------- */
.result-row {
  background: #fff7f7; border: 1px solid #fecaca; border-radius: 12px;
  padding: 10px 14px; margin-bottom: 10px;
}
.result-q { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 6px; }
.result-a { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.result-your { color: #dc2626; }
.result-right { color: #16a34a; font-weight: 700; }
