/* ============================================================
   （耿溢宸）学习工作台 · Premium CSS
   配色：浅蓝 #4BA7CA + 柔粉 #FFB6C1 ｜ 圆润大按钮 ｜ 亮/暗双主题
   ============================================================ */

:root {
  --blue: #4BA7CA;
  --blue-light: #7FC8E0;
  --blue-deep: #2E7FA0;
  --pink: #FFB6C1;
  --pink-deep: #FF8DA3;
  --pink-soft: #FFE3EA;

  --font-fun: 'ZCOOL KuaiLe', 'Baloo 2', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;

  --radius: 26px;
  --radius-sm: 18px;
  --radius-pill: 999px;

  --shadow-soft: 0 10px 30px rgba(75,167,202,.18);
  --shadow-pop: 0 14px 40px rgba(255,141,163,.30);

  --bg: #FFF4F8;
  --bg-grad: radial-gradient(1200px 600px at 10% -10%, #CFEAFF 0%, transparent 50%),
             radial-gradient(1000px 500px at 110% 10%, #FFE0E9 0%, transparent 55%),
             linear-gradient(180deg, #FFF7FB 0%, #F3F9FE 100%);
  --card: rgba(255,255,255,.86);
  --card-solid: #ffffff;
  --text: #2C3E50;
  --text-soft: #6B7C8C;
  --line: rgba(75,167,202,.18);
  --chip: rgba(75,167,202,.12);
}

[data-theme="dark"] {
  --bg: #0E1726;
  --bg-grad: radial-gradient(1200px 600px at 10% -10%, #14304a 0%, transparent 50%),
             radial-gradient(1000px 500px at 110% 10%, #3a1f33 0%, transparent 55%),
             linear-gradient(180deg, #0E1726 0%, #0B1220 100%);
  --card: rgba(28,40,60,.78);
  --card-solid: #18243A;
  --text: #EAF2FB;
  --text-soft: #9FB3C8;
  --line: rgba(127,200,224,.22);
  --chip: rgba(127,200,224,.16);
  --shadow-soft: 0 10px 30px rgba(0,0,0,.35);
  --shadow-pop: 0 14px 40px rgba(0,0,0,.45);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-fun);
  background: var(--bg);
  background-image: var(--bg-grad);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 92px;
  overflow-x: hidden;
  transition: background-color .4s ease, color .4s ease;
}
button { font-family: var(--font-fun); cursor: pointer; border: none; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--blue-light); border-radius: 8px; }

/* ===================== 顶部栏 ===================== */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 12px 16px;
  background: var(--card);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo {
  width: 46px; height: 46px; flex: 0 0 auto;
  display: grid; place-items: center;
  font-size: 24px; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}
.brand-title { font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 11px; color: var(--text-soft); }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.stat-pills { display: flex; gap: 6px; }
.stat-pill {
  display: flex; align-items: center; gap: 3px;
  font-size: 13px; font-weight: 800;
  padding: 5px 10px; border-radius: var(--radius-pill);
  background: var(--chip); color: var(--blue-deep);
}
[data-theme="dark"] .stat-pill { color: var(--blue-light); }
.icon-btn {
  width: 42px; height: 42px; border-radius: 14px;
  font-size: 20px; background: var(--chip); color: var(--text);
  display: grid; place-items: center; transition: transform .15s;
}
.icon-btn:active { transform: scale(.88); }
.install-btn { background: linear-gradient(135deg, var(--blue), var(--pink)); color: #fff; }

/* ===================== 视图切换 ===================== */
.view { display: none; padding: 16px; max-width: 880px; margin: 0 auto; animation: fadeUp .35s ease; }
.view.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ===================== 通用卡片/按钮 ===================== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 14px;
}
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 4px 2px 14px;
}
.section-head h2 { font-size: 22px; margin: 0; display: flex; align-items: center; gap: 8px; }
.back-btn {
  background: var(--chip); color: var(--blue-deep);
  border-radius: var(--radius-pill); padding: 8px 16px; font-size: 14px; font-weight: 700;
}
[data-theme="dark"] .back-btn { color: var(--blue-light); }
.back-btn:active { transform: scale(.9); }

.btn-primary, .btn-ghost, .btn-pink {
  border-radius: var(--radius-pill); padding: 12px 22px; font-size: 16px; font-weight: 800;
  transition: transform .12s cubic-bezier(.16,1,.3,1), box-shadow .2s;
}
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-light)); color: #fff; box-shadow: var(--shadow-soft); }
.btn-pink { background: linear-gradient(135deg, var(--pink), var(--pink-deep)); color: #fff; box-shadow: var(--shadow-pop); }
.btn-ghost { background: var(--chip); color: var(--blue-deep); }
[data-theme="dark"] .btn-ghost { color: var(--blue-light); }
.btn-primary:active, .btn-pink:active, .btn-ghost:active { transform: scale(.92); }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--chip); font-size: 13px; font-weight: 700; color: var(--blue-deep); }
[data-theme="dark"] .chip { color: var(--blue-light); }

/* ===================== 首页 ===================== */
.hero {
  background: linear-gradient(135deg, var(--blue), var(--pink));
  color: #fff; border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow-pop); position: relative; overflow: hidden; margin-bottom: 16px;
}
.hero h1 { margin: 0 0 4px; font-size: 24px; }
.hero p { margin: 0; opacity: .92; font-size: 14px; }
.hero .hero-pet { position: absolute; right: 14px; top: 14px; font-size: 52px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.2)); }
.hero-stats { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.hero-stat { background: rgba(255,255,255,.2); border-radius: 16px; padding: 8px 14px; font-weight: 800; font-size: 14px; }
.hero-stat b { font-size: 20px; }

.today-list { display: flex; flex-direction: column; gap: 10px; }
.today-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; box-shadow: var(--shadow-soft); cursor: pointer; transition: transform .15s;
}
.today-item:active { transform: scale(.98); }
.today-ico { font-size: 30px; width: 46px; text-align: center; }
.today-main { flex: 1; min-width: 0; }
.today-main .t-title { font-size: 16px; font-weight: 800; }
.today-main .t-sub { font-size: 12px; color: var(--text-soft); }
.today-done { font-size: 26px; }

.week-bar { display: flex; gap: 6px; margin-top: 6px; }
.week-day { flex: 1; text-align: center; font-size: 12px; color: var(--text-soft); }
.week-dot { height: 30px; border-radius: 10px; background: var(--chip); display: grid; place-items: center; font-size: 16px; margin-bottom: 3px; }
.week-dot.on { background: linear-gradient(135deg, var(--blue), var(--pink)); color: #fff; }

/* ===================== 学习总览网格 ===================== */
.study-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.study-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 14px; text-align: center; box-shadow: var(--shadow-soft);
  transition: transform .18s cubic-bezier(.16,1,.3,1); position: relative; overflow: hidden;
}
.study-card:active { transform: scale(.95); }
.study-card .sc-ico { font-size: 42px; }
.study-card .sc-name { font-size: 17px; font-weight: 800; margin-top: 4px; }
.study-card .sc-prog { font-size: 12px; color: var(--text-soft); margin-top: 2px; }
.study-card .sc-badge { position: absolute; top: 8px; right: 8px; font-size: 16px; }
.study-card.done { background: linear-gradient(135deg, rgba(75,167,202,.16), rgba(255,182,193,.16)); }

/* ===================== 国学 ===================== */
.poem-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow-soft); }
.poem-card.classic { border-left: 5px solid var(--pink-deep); }
.poem-title { font-size: 20px; font-weight: 800; }
.poem-meta { font-size: 13px; color: var(--text-soft); margin: 2px 0 10px; }
.poem-body { font-size: 18px; line-height: 1.9; letter-spacing: 1px; }
.poem-body span { display: block; }
.poem-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.learn-toggle { font-size: 14px; padding: 8px 16px; border-radius: var(--radius-pill); font-weight: 800; }
.learn-toggle.off { background: var(--chip); color: var(--blue-deep); }
.learn-toggle.on { background: linear-gradient(135deg, var(--blue), var(--pink)); color: #fff; }

/* ===================== 拼音 ===================== */
.py-group { margin-bottom: 16px; }
.py-group h3 { font-size: 16px; margin: 6px 2px; color: var(--blue-deep); }
[data-theme="dark"] .py-group h3 { color: var(--blue-light); }
.py-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px,1fr)); gap: 10px; }
.py-cell {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 10px 4px; text-align: center; font-size: 22px; font-weight: 800; box-shadow: var(--shadow-soft);
  transition: transform .15s;
}
.py-cell small { display: block; font-size: 11px; color: var(--text-soft); font-weight: 600; }
.py-cell.learned { background: linear-gradient(135deg, rgba(75,167,202,.18), rgba(255,182,193,.18)); }
.py-cell:active { transform: scale(.9); }

/* ===================== 识字 ===================== */
.word-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow-soft); text-align: center; }
.word-big { font-size: 72px; font-weight: 800; line-height: 1; color: var(--blue-deep); }
[data-theme="dark"] .word-big { color: var(--blue-light); }
.word-py { font-size: 18px; color: var(--text-soft); margin: 6px 0; }
.word-words { font-size: 16px; margin-bottom: 12px; }
.word-nav { display: flex; gap: 10px; justify-content: center; }

/* ===================== 数学 ===================== */
.stage-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; }
.stage-tab { flex: 0 0 auto; padding: 8px 14px; border-radius: var(--radius-pill); background: var(--chip); font-size: 14px; font-weight: 700; color: var(--blue-deep); white-space: nowrap; }
[data-theme="dark"] .stage-tab { color: var(--blue-light); }
.stage-tab.active { background: linear-gradient(135deg, var(--blue), var(--pink)); color: #fff; }
.math-q { font-size: 40px; text-align: center; font-weight: 800; margin: 16px 0; }
.math-opts { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.math-opt { padding: 18px; font-size: 28px; font-weight: 800; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.math-opt:active { transform: scale(.94); }
.math-opt.right { background: linear-gradient(135deg,#7BE0A3,#4BA7CA); color: #fff; }
.math-opt.wrong { background: linear-gradient(135deg,#FF9A9A,#FF6B6B); color: #fff; }

/* ===================== 英语 ===================== */
.en-card { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow-soft); }
.en-emoji { font-size: 36px; }
.en-word { font-size: 20px; font-weight: 800; }
.en-zh { font-size: 13px; color: var(--text-soft); }
.en-speak { margin-left: auto; font-size: 22px; padding: 6px 12px; border-radius: 14px; background: var(--chip); }
.word-speak { width: 100%; margin-top: 10px; }
.cat-filter { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; }

/* ===================== 控笔描红 ===================== */
.trace-area { background: var(--card); border: 2px dashed var(--blue-light); border-radius: var(--radius); padding: 12px; text-align: center; box-shadow: var(--shadow-soft); }
.trace-area svg { width: 100%; max-width: 320px; height: 220px; touch-action: none; }
.trace-path { fill: none; stroke: var(--blue); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; opacity: .25; }
.trace-user { fill: none; stroke: var(--pink-deep); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.trace-big { font-size: 64px; font-weight: 800; color: var(--blue-deep); }

/* ===================== 游泳 / 思维 / 自由 ===================== */
.skill-list { display: flex; flex-direction: column; gap: 10px; }
.skill-item { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow-soft); }
.skill-item .sk-ico { font-size: 28px; }
.skill-item .sk-main { flex: 1; }
.skill-item .sk-title { font-weight: 800; font-size: 16px; }
.skill-item .sk-sub { font-size: 12px; color: var(--text-soft); }
.skill-check { font-size: 26px; }

/* ===================== 宠物 ===================== */
.pet-stage { text-align: center; background: linear-gradient(135deg, rgba(75,167,202,.14), rgba(255,182,193,.14)); border-radius: var(--radius); padding: 28px 18px; margin-bottom: 16px; box-shadow: var(--shadow-soft); }
.pet-emoji { font-size: 96px; filter: drop-shadow(0 10px 14px rgba(0,0,0,.18)); cursor: pointer; transition: transform .15s; display: inline-block; }
.pet-emoji:active { transform: scale(1.15) rotate(-4deg); }
.pet-name { font-size: 22px; font-weight: 800; }
.pet-level { font-size: 14px; color: var(--text-soft); }
.pet-exp-bar { height: 12px; border-radius: 999px; background: var(--chip); margin: 12px auto; max-width: 280px; overflow: hidden; }
.pet-exp-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--pink)); width: 0%; transition: width .5s ease; }
.pet-actions { display: flex; gap: 12px; justify-content: center; }
.pet-types { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 8px; }
.pet-type { background: var(--card); border: 2px solid transparent; border-radius: var(--radius-sm); padding: 12px 4px; text-align: center; box-shadow: var(--shadow-soft); }
.pet-type.sel { border-color: var(--pink-deep); }
.pet-type .pt-emoji { font-size: 38px; }
.pet-type .pt-name { font-size: 13px; font-weight: 700; }

/* ===================== 勋章 ===================== */
.medal-balance { text-align: center; font-size: 18px; margin-bottom: 14px; }
.medal-balance b { font-size: 30px; color: var(--pink-deep); }
.exchange-card { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-soft); }
.exchange-ico { font-size: 40px; }
.exchange-main { flex: 1; }
.exchange-main .ex-title { font-weight: 800; font-size: 17px; }
.exchange-main .ex-cost { font-size: 13px; color: var(--text-soft); }
.medal-log-item { font-size: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; }

/* ===================== 家长后台 ===================== */
.calendar { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; }
.cal-cell { aspect-ratio: 1; border-radius: 12px; background: var(--chip); display: grid; place-items: center; font-size: 15px; font-weight: 700; position: relative; }
.cal-cell.has { background: linear-gradient(135deg, var(--blue), var(--pink)); color: #fff; cursor: pointer; }
.cal-cell.today { outline: 3px solid var(--pink-deep); }
.cal-dow { text-align: center; font-size: 12px; color: var(--text-soft); }
/* 日历翻页栏 */
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cal-nav { width: 40px; height: 40px; padding: 0; font-size: 22px; line-height: 1; border-radius: 50%; flex: 0 0 auto; }
.setting-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); gap: 10px; }
.setting-row input { width: 70px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-solid); color: var(--text); font-size: 16px; text-align: center; font-weight: 700; }
.report-line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }

/* ===================== 底部导航 ===================== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-around; align-items: center;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  background: var(--card); backdrop-filter: blur(18px) saturate(160%);
  border-top: 1px solid var(--line);
}
.nav-item { flex: 1; background: none; color: var(--text-soft); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; padding: 4px 0; border-radius: 14px; transition: transform .15s; }
.nav-item .nav-ico { font-size: 24px; }
.nav-item.active { color: var(--blue-deep); transform: translateY(-2px); }
[data-theme="dark"] .nav-item.active { color: var(--blue-light); }
.nav-item.active .nav-ico { filter: drop-shadow(0 4px 6px rgba(75,167,202,.5)); }

/* ===================== 浮层 / 动画 ===================== */
.toast {
  position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%) translateY(20px);
  background: rgba(20,30,45,.92); color: #fff; padding: 12px 22px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 700; opacity: 0; pointer-events: none; transition: all .3s; z-index: 100; max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.confetti-piece { position: absolute; top: -20px; width: 12px; height: 16px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: .9; } }
.float-star { position: absolute; font-size: 22px; pointer-events: none; animation: floatUp 1.1s ease-out forwards; }
@keyframes floatUp { 0% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-90px) scale(1.6); } }

.modal-mask { position: fixed; inset: 0; background: rgba(10,18,30,.5); backdrop-filter: blur(4px); z-index: 120; display: grid; place-items: center; padding: 24px; }
.modal-card { background: var(--card-solid); border-radius: var(--radius); padding: 24px; width: 100%; max-width: 360px; box-shadow: var(--shadow-pop); text-align: center; }
.modal-card h3 { margin: 0 0 8px; font-size: 22px; }
.modal-tip { font-size: 14px; color: var(--text-soft); margin: 0 0 14px; }
.modal-card input { width: 100%; padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 20px; text-align: center; margin-bottom: 16px; font-family: var(--font-fun); }
.modal-actions { display: flex; gap: 12px; }
.modal-actions button { flex: 1; }

/* ===================== 小游戏 ===================== */
.game-layer { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top) + 8px) 0 0; overflow: hidden; }
.game-layer[hidden] { display: none; }
.game-shell { display: flex; flex-direction: column; height: 100%; width: 100%; max-width: 560px; margin: 0 auto; padding: 4px 12px; }
.game-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.game-head .back-btn { flex: 0 0 auto; }
.game-title { font-size: 20px; margin: 0; flex: 1; }
.game-score { font-size: 16px; font-weight: 800; color: var(--pink-deep); white-space: nowrap; }
.game-body { flex: 1; overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-bottom: 20px; }
.game-cv { width: 100%; max-width: 340px; height: auto; background: var(--card-solid); border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-soft); touch-action: none; }
.game-hint { font-size: 13px; color: var(--text-soft); text-align: center; }
.game-restart { margin-top: 4px; width: auto; padding: 10px 24px; }
/* 方向键 */
.dpad { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dpad > div { display: flex; gap: 8px; }
.dpad button { width: 62px; height: 62px; font-size: 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--chip); color: var(--text); box-shadow: var(--shadow-soft); }
.dpad button:active { transform: scale(.92); }
/* 俄罗斯方块按键 */
.game-tpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: 300px; }
.game-tpad button { height: 56px; font-size: 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--chip); color: var(--text); }
.game-tpad button:active { transform: scale(.94); }
/* 游戏启动按钮（自由时间内） */
.game-launch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.game-launch-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; font-size: 30px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.game-launch-btn span { font-size: 13px; font-weight: 700; color: var(--blue-deep); }
[data-theme="dark"] .game-launch-btn span { color: var(--blue-light); }
.game-launch-btn:active { transform: scale(.94); }
/* 扫雷 */
.ms-bar { display: flex; justify-content: space-between; width: 100%; max-width: 340px; font-size: 18px; font-weight: 800; color: var(--blue-deep); }
[data-theme="dark"] .ms-bar { color: var(--blue-light); }
.ms-toggle { display: flex; gap: 8px; }
.ms-grid { display: grid; gap: 4px; width: 100%; max-width: 340px; }
.ms-cell { aspect-ratio: 1 / 1; border: none; border-radius: 8px; background: var(--chip); font-size: 18px; font-weight: 800; color: var(--text); box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); display: flex; align-items: center; justify-content: center; }
.ms-cell.open { background: var(--card-solid); box-shadow: inset 0 0 0 1px var(--line); }
.ms-cell.mine { background: #ff7a90; }
.ms-cell:active { transform: scale(.96); }

/* ===================== 响应式 ===================== */
@media (min-width: 720px) {
  .study-grid { grid-template-columns: repeat(3, 1fr); }
  .pet-types { grid-template-columns: repeat(6,1fr); }
  .brand-title { font-size: 19px; }
}
@media (max-width: 480px) {
  .topbar {
    flex-wrap: wrap; gap: 6px; padding: 10px 12px;
  }
  .brand { gap: 8px; }
  .brand-logo { width: 38px; height: 38px; font-size: 20px; border-radius: 13px; }
  .brand-title { font-size: 14px; }
  .brand-sub { display: none; }
  .topbar-right { gap: 5px; flex-wrap: wrap; }
  .stat-pills { gap: 4px; }
  .stat-pill { font-size: 11px; padding: 3px 7px; }
  .icon-btn { width: 36px; height: 36px; font-size: 17px; border-radius: 11px; }
}

@media (max-width: 380px) {
  .brand-title { font-size: 13px; }
  .stat-pill { font-size: 10px; padding: 2px 6px; }
}
