/* ========== 今日页 ========== */
.hello { display: flex; justify-content: space-between; align-items: center; padding: 6px 2px 0; }
.hello h2 { font-size: 21px; font-weight: 700; }
.hello p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.star-pill { background: #FFF6D8; color: #A8790F; font-weight: 700; padding: 7px 14px; border-radius: 20px; font-size: 15px; box-shadow: inset 0 0 0 1px #F6E3A6; }
.banner { display: block; background: #FFF6E5; color: #94690F; border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.6; box-shadow: inset 0 0 0 1px #F6E2B5; }
.banner.warn { background: #FFF0EC; color: #B4452A; box-shadow: inset 0 0 0 1px #F7CFC4; }

.due-card { background: linear-gradient(135deg, #FFF3EC 0%, #FFFFFF 70%); }
.due-card.calm { background: linear-gradient(135deg, #EFF8F1 0%, #FFFFFF 70%); }
.due-main { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.due-num { font-size: 15px; color: var(--ink2); }
.due-num b { font-size: 38px; color: var(--primary); font-weight: 800; line-height: 1.1; margin-right: 2px; }
.due-card.calm .due-num { font-size: 32px; }
.due-text { color: var(--ink2); font-size: 14px; }
.due-subs { display: flex; gap: 6px; flex-wrap: wrap; }

.checkin-row, .checked { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checkin-row p, .checked p { color: var(--muted); font-size: 13px; }
.checked { justify-content: flex-start; }
.checked .flower { font-size: 34px; animation: bloom .6s ease; }
@keyframes bloom { 0% { transform: scale(.3) rotate(-30deg); } 70% { transform: scale(1.15); } 100% { transform: none; } }
.today-stats { display: flex; gap: 6px; border-top: 1px dashed var(--line); padding-top: 10px; font-size: 13px; color: var(--muted); justify-content: space-between; }
.today-stats b { color: var(--ink); font-size: 15px; margin-left: 2px; }

.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.quick-btn {
  height: 66px; border-radius: 14px; background: var(--cs); color: var(--c);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 18%, transparent);
}
.quick-btn b { font-size: 22px; line-height: 1; }
.quick-btn:active { transform: scale(.96); }

/* ========== 记录卡片 ========== */
.rlist { display: flex; flex-direction: column; gap: 10px; }
.rcard {
  position: relative; display: flex; gap: 12px; align-items: stretch;
  background: #fff; border-radius: 14px; padding: 12px 12px 12px 15px; box-shadow: var(--shadow);
  overflow: hidden; cursor: pointer;
}
.rcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.rcard:active { transform: scale(.99); }
.rcard.selected { box-shadow: 0 0 0 2px var(--primary), var(--shadow); }
.rcard-check {
  align-self: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 700;
}
.rcard.selected .rcard-check { background: var(--primary); border-color: var(--primary); }
.rcard-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.rcard-top { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.rcard-date { margin-left: auto; font-size: 12px; color: var(--muted); }
.rcard-title { font-size: 15.5px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
.rcard-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard-thumb { position: relative; flex-shrink: 0; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--line2); align-self: center; }
.rcard-thumb canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.rcard-thumb i { position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.55); color: #fff; font-style: normal; font-size: 11px; padding: 0 5px; border-radius: 6px; }

/* ========== 错题本 ========== */
.search-box { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 12px; height: 46px; color: var(--muted); }
.search-input { flex: 1; border: 0; outline: 0; background: none; font-size: 16px; color: var(--ink); min-width: 0; }
.list-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); padding: 0 2px; }
.batch-bar {
  position: fixed; left: 0; right: 0; z-index: 25; max-width: 720px; margin: 0 auto;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 8px);
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
  margin-inline: auto; width: calc(100% - 20px); padding: 8px 10px;
  background: #3A3530; color: #fff; border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.batch-bar button { color: #fff; font-size: 14px; font-weight: 600; padding: 6px 8px; border-radius: 8px; }
.batch-bar button.danger { color: #FF9C8F; }
.batch-n { font-size: 13px; opacity: .8; }

/* ========== 抽屉 / 弹窗 ========== */
.sheet-ov {
  position: fixed; inset: 0; z-index: 100; background: rgba(40, 32, 24, 0);
  display: flex; align-items: flex-end; justify-content: center; transition: background .22s;
}
.sheet-ov.show { background: rgba(40, 32, 24, .42); }
.sheet {
  width: 100%; max-width: 720px; max-height: 88vh; background: var(--bg);
  border-radius: 22px 22px 0 0; display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .24s cubic-bezier(.2, .8, .3, 1);
}
.sheet.full { height: calc(100vh - var(--safe-t) - 12px); height: calc(100dvh - var(--safe-t) - 12px); max-height: none; }
.sheet-ov.show .sheet { transform: none; }
.sheet-hd { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; border-bottom: 1px solid var(--line); }
.sheet-hd h3 { flex: 1; font-size: 17px; text-align: center; }
.sheet-x { width: 36px; height: 36px; border-radius: 50%; background: var(--line2); color: var(--ink2); font-size: 15px; }
.sheet-hd-r { min-width: 36px; display: flex; justify-content: flex-end; }
.sheet-bd { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 16px calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 16px; }

.dlg-ov { position: fixed; inset: 0; z-index: 150; background: rgba(40, 32, 24, .45); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fadeIn .15s; }
.dlg { width: 100%; max-width: 340px; background: #fff; border-radius: 18px; padding: 22px 18px 16px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.dlg p { font-size: 16px; line-height: 1.6; text-align: center; color: var(--ink); }
.dlg-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ========== 录入面板 ========== */
.seg { display: flex; background: var(--line2); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; height: 40px; border-radius: 10px; font-weight: 600; color: var(--muted); font-size: 15px; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.seg button.on.mistake { color: #D9534F; }
.seg button.on.keypoint { color: #B7861B; }
.seg-sm button { height: 34px; font-size: 13.5px; }
.subj-chips .chip { height: 36px; padding: 0 16px; font-size: 15px; }
.extra-box { background: #fff; border-radius: 14px; padding: 12px; box-shadow: inset 0 0 0 1.5px var(--line2); display: flex; flex-direction: column; gap: 8px; }
.tone-keys { display: flex; flex-wrap: wrap; gap: 6px; }
.tone-keys div { display: flex; gap: 3px; background: var(--line2); border-radius: 9px; padding: 3px; }
.tone-keys button { width: 32px; height: 32px; border-radius: 7px; background: #fff; font-size: 17px; font-family: "Times New Roman", serif; }
.tone-keys button:active { background: var(--primary-soft); color: var(--primary); }
.poly-tips { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #8A6A2E; background: #FFF8E6; border-radius: 10px; padding: 8px 10px; }
.poly-tips:empty { display: none; }
.poly-tips b { font-family: var(--kai); font-size: 17px; margin-right: 4px; color: var(--ink); }

.photos { display: flex; gap: 10px; flex-wrap: wrap; }
.ph, .ph-add { position: relative; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.ph { background: var(--line2); }
.ph canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph em { position: absolute; left: 4px; top: 4px; font-size: 10px; font-style: normal; background: #F3D27A; color: #6B5310; padding: 0 5px; border-radius: 5px; }
.ph-anno { position: absolute; left: 0; right: 0; bottom: 0; height: 28px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; }
.ph-del { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; }
.ph-add { border: 2px dashed #DCD3C4; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 26px; color: var(--muted); }
.ph-add span { font-size: 12px; }

/* ========== 田字格生字卡 ========== */
.char-cards { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.char-cards:empty { display: none; }
.char-card { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.char-py { font-size: 15px; color: var(--ink2); min-height: 22px; font-family: "Times New Roman", "Songti SC", serif; letter-spacing: .5px; }
.tzg { display: block; }
.rv-hide { visibility: hidden; }
.rv-hide.shown { visibility: visible; animation: fadeIn .2s; }

/* ========== 图片标注 ========== */
.anno-ov { position: fixed; inset: 0; z-index: 160; background: #1E1A16; color: #fff; display: flex; flex-direction: column; padding-top: var(--safe-t); padding-bottom: var(--safe-b); }
.anno-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-weight: 600; }
.anno-top button { color: #fff; font-size: 15px; padding: 6px 10px; }
.anno-top .anno-done { background: var(--primary); border-radius: 10px; padding: 6px 16px; }
.anno-stage { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.anno-stage canvas { touch-action: none; border-radius: 4px; background: #fff; }
.anno-tip { text-align: center; font-size: 12px; opacity: .7; padding: 6px 10px; }
.anno-tools { display: flex; gap: 6px; padding: 8px 10px 12px; overflow-x: auto; }
.anno-tools button { flex: 1; min-width: 64px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; font-size: 13.5px; white-space: nowrap; }
.anno-tools button.on { background: #fff; color: var(--ink); font-weight: 700; }

/* ========== 复习抽查（亲子大字模式） ========== */
.rv-ov { position: fixed; inset: 0; z-index: 120; background: #FBF7EE; display: flex; flex-direction: column; padding-top: var(--safe-t); padding-bottom: var(--safe-b); animation: fadeIn .2s; }
.rv-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.rv-x { width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); font-size: 16px; color: var(--ink2); }
.rv-prog { flex: 1; height: 10px; background: #EFE7D9; border-radius: 5px; overflow: hidden; }
.rv-prog div { height: 100%; background: linear-gradient(90deg, #F7A35C, #E8684A); border-radius: 5px; transition: width .3s; }
.rv-count { font-size: 14px; color: var(--muted); font-weight: 600; }
.rv-stars { font-weight: 700; color: #A8790F; background: #FFF3CC; padding: 3px 10px; border-radius: 14px; font-size: 14px; }
.rv-scroll { flex: 1; overflow-y: auto; padding: 6px 16px 16px; -webkit-overflow-scrolling: touch; }
.rv-card { max-width: 640px; margin: 0 auto; background: #fff; border-radius: 22px; padding: 22px 18px; box-shadow: 0 6px 24px rgba(80,60,30,.08); display: flex; flex-direction: column; gap: 16px; border-top: 6px solid var(--c); }
.rv-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rv-unit { font-size: 12px; color: var(--muted); }
.rv-title { font-size: 26px; line-height: 1.6; font-weight: 600; color: #2B2622; word-break: break-word; letter-spacing: .5px; }
.rv-chars { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rv-chars .char-cards { justify-content: center; }
.rv-chars .char-py { font-size: 22px; min-height: 30px; }
.rv-word { font-size: 40px; font-weight: 700; text-align: center; color: #2B2622; font-family: "Comic Sans MS", "Chalkboard SE", "Segoe UI", sans-serif; word-break: break-word; }
.rv-speak { display: flex; gap: 10px; justify-content: center; }
.rv-img { width: 100%; border-radius: 12px; display: block; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.rv-answer { background: #F1F8F2; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; animation: fadeIn .25s; }
.rv-a-row { font-size: 20px; line-height: 1.6; color: #2B4A33; }
.rv-a-row b { display: block; font-size: 13px; color: #4C8A5E; margin-bottom: 2px; }
.rv-a-row.wrong { color: #A24A3A; }
.rv-a-row.wrong b { color: #C2664F; }
.rv-bottom { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 10px; max-width: 680px; width: 100%; margin: 0 auto; }
.btn-reveal { height: 52px; border-radius: 16px; background: #fff; color: var(--ink); font-size: 18px; box-shadow: var(--shadow); }
.rv-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rv-grade button { height: 76px; border-radius: 18px; font-size: 15px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.rv-grade button b { font-size: 28px; line-height: 1; }
.rv-grade button:active { transform: scale(.95); }
.g-again { background: #FDECEA; color: #C74B3C; }
.g-hard { background: #FFF4DC; color: #A57812; }
.g-good { background: #E3F5E8; color: #2E8A52; }
.star-pop { position: fixed; left: 50%; top: 42%; z-index: 130; transform: translate(-50%, -50%); font-size: 44px; font-weight: 800; color: #E2A000; text-shadow: 0 2px 10px rgba(255,190,0,.5); animation: pop .9s ease forwards; pointer-events: none; }
@keyframes pop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.5); } 30% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); } 100% { opacity: 0; transform: translate(-50%, -120%) scale(1); } }
.rv-done { margin: auto; max-width: 420px; width: 100%; padding: 30px 22px; text-align: center; display: flex; flex-direction: column; gap: 14px; }
.rv-flowers { font-size: 46px; letter-spacing: 4px; animation: bloom .7s ease; }
.rv-done h2 { font-size: 23px; }
.rv-total { font-size: 17px; color: var(--ink2); }
.rv-total b { color: #C28A00; font-size: 22px; }
.rv-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rv-sum div { background: #fff; border-radius: 14px; padding: 12px 4px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.rv-sum b { font-size: 26px; }
.rv-sum span { font-size: 12.5px; color: var(--muted); }
.rv-mastered { color: #2E8A52; font-weight: 600; }

/* ========== 详情页 ========== */
.detail { border-top: 5px solid var(--c); }
.d-title { font-size: 20px; line-height: 1.6; font-weight: 700; word-break: break-word; }
.d-sec { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.d-label { font-size: 13px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stroke-note { font-size: 14px; color: var(--ink2); background: #FFF8EE; padding: 8px 10px; border-radius: 10px; }
.d-word { font-size: 32px; font-weight: 700; font-family: "Comic Sans MS", "Chalkboard SE", sans-serif; }
.d-meaning { font-size: 17px; color: var(--ink2); }
.d-img { width: 100%; border-radius: 12px; display: block; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.wrong-box p { color: #B04A3A; text-decoration: line-through; text-decoration-color: rgba(176,74,58,.5); font-size: 16px; }
.answer-box p { font-size: 16.5px; color: #2B4A33; background: #F1F8F2; padding: 10px 12px; border-radius: 12px; }
.d-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); padding-top: 10px; border-top: 1px dashed var(--line); }
.d-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.d-actions .btn-primary { grid-column: 1 / -1; height: 48px; }

/* ========== 复习页 ========== */
.sub-starts { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.sub-start { background: var(--cs); color: var(--c); border-radius: 12px; padding: 10px 12px; text-align: left; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.upcoming { display: flex; justify-content: space-between; align-items: flex-end; gap: 6px; height: 110px; padding-top: 6px; }
.up-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.up-col i { width: 70%; max-width: 30px; background: linear-gradient(180deg, #F7B08F, #E8684A); border-radius: 6px 6px 3px 3px; opacity: .85; }
.up-n { font-size: 12px; color: var(--ink2); font-weight: 600; min-height: 16px; }
.tips { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink2); line-height: 1.75; display: flex; flex-direction: column; gap: 4px; }

/* ========== 成长页 ========== */
.wallet { background: linear-gradient(140deg, #FFF7DE 0%, #FFFFFF 65%); }
.wallet-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wallet-top p { font-size: 13px; color: var(--ink2); }
.wallet-num { font-size: 20px; }
.wallet-num b { font-size: 42px; color: #C28A00; font-weight: 800; }
.wallet-sub { color: var(--muted) !important; font-size: 12px !important; }
.wishes { display: flex; flex-direction: column; gap: 8px; }
.wish { background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: inset 0 0 0 1.5px var(--line2); display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; }
.wish.ready { box-shadow: inset 0 0 0 1.5px #F2CF6B; }
.wish-name { font-weight: 600; font-size: 14.5px; }
.wish-bar { grid-column: 1; height: 6px; background: var(--line2); border-radius: 3px; overflow: hidden; }
.wish-bar i { display: block; height: 100%; background: linear-gradient(90deg, #FFD36B, #F2A51A); }
.wish-act { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #A8790F; font-weight: 600; }
.wish-del { color: var(--muted); font-size: 12px; padding: 4px; }

.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-head h3 { font-size: 16px; }
.cal-stats { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 4px; }
.cal-stats b { color: var(--primary); font-size: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-w { text-align: center; font-size: 12px; color: var(--muted); padding: 2px 0; }
.cal-d { position: relative; aspect-ratio: 1 / 1.05; border-radius: 10px; background: #FBF9F5; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 3px; font-size: 13px; }
.cal-d.empty { background: none; }
.cal-d.future { opacity: .45; }
.cal-d.checked { background: #FDECF1; }
.cal-d.today { box-shadow: inset 0 0 0 2px var(--primary); }
.cal-n { line-height: 1.2; color: var(--ink2); }
.cal-f { font-size: 14px; line-height: 1.1; }
.cal-dots { position: absolute; bottom: 3px; display: flex; gap: 2px; }
.cal-dots i, .cal-legend i { font-style: normal; font-size: 9px; min-width: 13px; height: 13px; line-height: 13px; border-radius: 7px; color: #fff; text-align: center; padding: 0 2px; }
.cal-dots i.a, .cal-legend i.a { background: #E8684A; }
.cal-dots i.r, .cal-legend i.r { background: #3B82C4; }
.cal-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); align-items: center; flex-wrap: wrap; }
.cal-legend span { display: inline-flex; align-items: center; gap: 4px; }
.cal-legend i { display: inline-block; min-width: 12px; height: 12px; border-radius: 4px; }
.cal-legend i.ok, .stack-bar i.ok { background: #4CAF7A; }
.cal-legend i.rev, .stack-bar i.rev { background: #7DB3E3; }
.cal-legend i.neu, .stack-bar i.neu { background: #F0C8A8; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.kpis div { background: #FBF9F5; border-radius: 12px; padding: 10px 2px; display: flex; flex-direction: column; }
.kpis b { font-size: 22px; color: var(--ink); }
.kpis span { font-size: 12px; color: var(--muted); }
.sub-stat { display: flex; flex-direction: column; gap: 6px; }
.sub-stat-hd { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 13px; color: var(--muted); }
.sub-stat-hd b { color: var(--c); font-size: 15px; }
.stack-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--line2); }
.stack-bar i { display: block; height: 100%; }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 28px; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.bar-k { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink2); }
.bar { height: 10px; background: var(--line2); border-radius: 5px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #F7A35C, #E8684A); border-radius: 5px; }
.bar-row b { text-align: right; color: var(--primary); }
.rw-list { display: flex; flex-direction: column; }
.rw { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line2); font-size: 14px; }
.rw span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rw b.earn { color: #C28A00; }
.rw b.spend { color: var(--muted); }

/* ========== 设置页 ========== */
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--muted); padding: 4px 0; border-bottom: 1px dashed var(--line2); }
.kv b { color: var(--ink2); font-weight: 500; text-align: right; }
.sub-list { display: flex; flex-direction: column; gap: 6px; }
.sub-item { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: #FBF9F5; text-align: left; }
.sub-item i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.sub-item b { font-size: 15px; }
.sub-item span { flex: 1; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-item em { font-style: normal; color: var(--muted); }
.colors { display: flex; gap: 10px; flex-wrap: wrap; }
.color { width: 34px; height: 34px; border-radius: 50%; }
.color.on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.about { text-align: center; color: var(--muted); font-size: 12px; line-height: 1.8; padding: 8px 0; }

/* ========== 宽屏（平板 / 电脑） ========== */
@media (min-width: 640px) {
  #view { padding-left: 20px; padding-right: 20px; }
  .sheet { border-radius: 22px; margin-bottom: 20px; }
  .sheet.full { height: calc(100vh - 40px); }
  .rcard-thumb { width: 88px; height: 88px; }
}
