/* 小树成长计划 - 整站样式(移动端优先) */

/* ---- 变量与基础 ---- */

:root {
  --bg: #FBF6EF;
  --card: #FFFFFF;
  --ink: #3D3A36;
  --muted: #8A857D;
  --line: #EFE8DD;
  --primary: #E8825A;
  --primary-soft: #FCEDE4;
  --green: #7FB069;
  --blue: #5B9BD5;
}

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

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  /* 顶部极浅米色渐变,增强头部层次(米色→透明) */
  background-image: linear-gradient(180deg, #F6EDDF 0%, rgba(246, 237, 223, 0) 100%);
  background-repeat: no-repeat;
  background-size: 100% 150px;
  color: var(--ink);
  font-family: -apple-system, 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

body.modal-open { overflow: hidden; }

button {
  font-family: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---- 顶部 ---- */

.app-header {
  max-width: 640px;
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) 14px 6px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.app-title { font-size: 18px; font-weight: 800; letter-spacing: .3px; }

.app-sub { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: .2px; }

/* ---- 主体布局与页面切换 ---- */

#main {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 14px calc(84px + env(safe-area-inset-bottom));
}

.page { display: none; }

.page.active { display: block; animation: page-in .18s ease-out; }

@keyframes page-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* ---- 通用卡片 ---- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(80, 60, 40, .04), 0 4px 14px rgba(80, 60, 40, .05);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.card-head h2 { font-size: 16px; font-weight: 700; }

.head-side { font-size: 12px; color: var(--muted); flex-shrink: 0; }

.hint { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 2px 0 10px; }

.blank-note {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  padding: 24px 8px;
}

.sub-h { font-size: 14px; font-weight: 700; margin: 14px 0 8px; }

/* ---- 今日看板 ---- */

#today-date { margin: 6px 0 14px; }

.today-big { font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: .2px; }

.today-big span { font-size: 15px; font-weight: 400; color: var(--muted); margin-left: 4px; }

.today-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* 统计瓦片 */

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.stat-row.wrap { grid-template-columns: repeat(2, 1fr); }

.stat-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 6px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(80, 60, 40, .04), 0 4px 14px rgba(80, 60, 40, .05);
}

.stat-value { font-size: 26px; font-weight: 700; line-height: 1.25; }

.stat-value small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 2px; }

.stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }

.stat-tile.accent { background: var(--primary-soft); border-color: #F6DECC; box-shadow: none; }
.stat-tile.accent .stat-value { color: var(--primary); }

/* 场景 chip 行 */

.scene-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.scene-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sc, var(--primary));
  background: var(--primary-soft);
  background: color-mix(in srgb, var(--sc, var(--primary)) 15%, white);
}

.scene-note, .scene-week { font-size: 12px; color: var(--muted); }

/* 完成横幅 */

.done-banner {
  background: #F1F7EC;
  color: #55803F;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  margin-bottom: 10px;
}

/* ---- 打卡列表 ---- */

.ck-list { display: flex; flex-direction: column; gap: 8px; }

.ck-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
}

.ck-item:not(:disabled):active { transform: scale(.97); }

.ck-item:disabled { opacity: .55; cursor: default; }

.ck-icon { font-size: 22px; flex-shrink: 0; }

.area-badge {
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  padding: 2px 6px;
  flex-shrink: 0;
}

.ck-name { flex: 1; min-width: 0; }

.ck-box {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #DDD6CC;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
}

.ck-tick {
  color: #fff;
  font-size: 14px;
  line-height: 1;
  opacity: 0;
  transform: scale(0);
  transition: transform .2s, opacity .2s;
}

.ck-item.checked { background: #F1F7EC; border-color: var(--green); }
.ck-item.checked .ck-box { background: var(--green); border-color: var(--green); }
.ck-item.checked .ck-tick { opacity: 1; transform: scale(1); }

.ck-item.pop { animation: pop .25s ease; }

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* ---- 时间轴 ---- */

.timeline { padding: 2px 0; }

.tl-row {
  position: relative;
  display: grid;
  grid-template-columns: 88px 18px 1fr;
  column-gap: 10px;
  padding: 5px 8px 9px;
}

/* 圆点间竖线 */
.tl-row::before {
  content: "";
  position: absolute;
  left: 114px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.tl-row:first-child::before { top: 16px; }
.tl-row:last-child::before { bottom: calc(100% - 16px); }
.tl-row:only-child::before { display: none; }

.tl-time {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  padding-top: 3px;
  white-space: nowrap;
}

.tl-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 6px auto 0;
  background: var(--muted);
}

.tl-body { min-width: 0; }

.tl-line { display: flex; align-items: center; gap: 6px; }

.tl-icon { font-size: 15px; line-height: 1; flex-shrink: 0; }

.tl-title { font-size: 15px; }

.tl-note { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* 各类型圆点颜色 */
.tl-life .tl-dot { background: #B8B2A8; }
.tl-meal .tl-dot { background: #D4A03C; }
.tl-play .tl-dot { background: #9B8AC4; }
.tl-sport .tl-dot { background: #E8825A; }
.tl-study .tl-dot { background: #5B9BD5; }
.tl-sleep .tl-dot { background: #8A857D; }
.tl-read .tl-dot { background: #C96A8B; }
.tl-out .tl-dot { background: #7FB069; }

.tl-row.now { background: var(--primary-soft); border-radius: 10px; }
.tl-row.now .tl-title { font-weight: 700; }

/* 当前时段圆点:呼吸光晕 */
.tl-row.now .tl-dot { animation: dot-pulse 1.6s ease-out infinite; }

@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 130, 90, .38); }
  70% { box-shadow: 0 0 0 7px rgba(232, 130, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 130, 90, 0); }
}

/* ---- 场景分段切换 ---- */

.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

.seg-btn {
  flex: 1 0 28%;
  min-height: 44px;
  border: none;
  border-radius: 999px;
  background: #F5F0E8;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.seg-btn.active { background: var(--sc, var(--primary)); color: #fff; }

.scene-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.mini-chip {
  font-size: 12px;
  color: var(--ink);
  background: #F5F0E8;
  border-radius: 999px;
  padding: 3px 9px;
}

/* ---- 日历 ---- */

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.legend-chip { display: inline-flex; align-items: center; gap: 5px; }

.legend-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* 浅底彩边小方块图例(具体 fill/描边色由 views.js 内联) */
.legend-chip i.legend-sq {
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}

.cal-headcell {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 2px 0;
}

.cal-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 3px 2px;
  cursor: pointer;
}

.cal-num { font-size: 14px; line-height: 1.2; }

.cal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 1px;
  background: var(--sc, var(--muted));
}

.cal-prog { font-size: 10px; color: var(--muted); line-height: 1.2; }

.cal-done { font-size: 12px; color: var(--green); font-weight: 700; line-height: 1.2; }

.cal-cell.today { border: 2px solid var(--primary); box-shadow: 0 0 0 3px rgba(232, 130, 90, .14); }
.cal-cell.today .cal-num { font-weight: 700; color: var(--primary); }

.cal-cell.future { opacity: .55; }

.cal-cell.alldone { background: #F3F9EF; border-color: #DBEACF; }

.cal-cell.empty { background: none; border: none; cursor: default; }

/* ---- 课程周卡 ---- */

.week-card summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
}

.week-card summary::-webkit-details-marker { display: none; }

.week-card[open] summary { margin-bottom: 4px; }

.week-tag {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.week-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.week-label { font-size: 15px; font-weight: 700; }

.week-range { font-size: 12px; color: var(--muted); }

.week-prog { font-size: 13px; color: var(--muted); flex-shrink: 0; }

.progress-bar {
  height: 6px;
  border-radius: 3px;
  background: #F0EAE0;
  overflow: hidden;
  margin: 8px 0 10px;
}

.progress-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--green);
  transition: width .3s ease;
}

/* ---- 图表与按钮 ---- */

.chart { height: 280px; }

.chart-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 10px;
}

#chart-ability { height: 400px; min-width: 560px; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
}

.btn:active { opacity: .88; transform: scale(.97); }

.btn.ghost {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-row { display: flex; gap: 10px; margin-top: 4px; }

.btn-row .btn { flex: 1; }

/* ---- 链接卡片(跳转外部页面) ---- */

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.link-card .link-arrow { font-size: 18px; line-height: 1; flex-shrink: 0; }

/* ---- 能力投资行 ---- */

.ability-row {
  position: relative;
  padding: 12px 0 12px 14px;
}

.ability-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 2px;
  background: var(--gc, var(--muted));
}

.ability-row + .ability-row { border-top: 1px solid var(--line); }

.ability-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ability-name { font-size: 15px; font-weight: 700; }

.ability-window { font-size: 12px; color: var(--muted); }

.focus-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 2px 8px;
}

.ability-desc { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.6; }

/* ---- 原则区 ---- */

.filters { margin: 4px 0; }

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0;
  line-height: 1.55;
}

.filter-row b { font-size: 14px; }

.filter-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.filter-desc { font-size: 12px; color: var(--muted); }

.avoid-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }

.avoid-chip {
  background: #FBEAEA;
  color: #B0524D;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
}

.iron-rule {
  background: var(--primary-soft);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  margin-top: 12px;
}

/* ---- 底部导航 ---- */

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(80, 60, 40, .04);
  padding: 5px 0 calc(5px + env(safe-area-inset-bottom));
  z-index: 50;
}

.tab-btn {
  flex: 1;
  max-width: 128px;
  min-height: 48px;
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted);
  cursor: pointer;
  transition: color .15s;
}

.tab-icon {
  font-size: 20px;
  line-height: 1.2;
  padding: 2px 14px;
  border-radius: 999px;
  transition: background-color .15s, transform .15s;
}

.tab-label { font-size: 11px; line-height: 1.2; transition: color .15s; }

.tab-btn.active { color: var(--primary); }
.tab-btn.active .tab-icon { background: var(--primary-soft); transform: scale(1.06); }
.tab-btn.active .tab-label { font-weight: 700; }

/* ---- 弹窗 ---- */

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal {
  background: #fff;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  animation: modal-up .28s ease;
}

@keyframes modal-up {
  from { transform: translateY(48px); opacity: .5; }
  to { transform: none; opacity: 1; }
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.modal-date { font-size: 17px; font-weight: 700; margin-bottom: 6px; }

#modal-title .scene-chip { margin-right: 6px; }

.modal-close {
  border: none;
  background: none;
  width: 44px;
  height: 44px;
  margin: -8px -10px 0 0;
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
}

.modal-hint { margin: 4px 0 10px; }

/* ---- 轻提示 ---- */

.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(96px + env(safe-area-inset-bottom));
  background: rgba(52, 47, 42, .92);
  color: #fff;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 999px;
  max-width: 82vw;
  text-align: center;
  opacity: 0;
  transition: opacity .25s;
  z-index: 200;
  pointer-events: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(40, 30, 20, .18);
}

.toast.show { opacity: 1; }

/* ---- 星星激励体系 ---- */

.score-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  align-items: center;
  background: linear-gradient(135deg, #FFF8EA, #FCEDE4);
  border: 1px solid #F0DEB8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 2px 10px rgba(192, 138, 45, .08);
}

.score-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.tree-emoji { font-size: 40px; line-height: 1; animation: tree-float 2.5s ease-in-out infinite; }

@keyframes tree-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
.tree-name { font-size: 11px; color: var(--muted); }

.score-nums { display: flex; gap: 22px; }

.score-num { display: flex; flex-direction: column; align-items: center; }
.score-num b { font-size: 24px; color: #C08A2D; }
.score-num span { font-size: 11px; color: var(--muted); }

.rw-next { grid-column: 1 / -1; }
.rw-next-txt { font-size: 13px; color: var(--ink); margin-bottom: 6px; }
.rw-next-txt b { color: #C08A2D; }

.progress-bar.gold i { background: #E8B54D; }

/* 时间轴节点打卡星(触控目标 ≥44px) */
.tl-row.checkable { grid-template-columns: 88px 18px 1fr 48px; }

/* 挂接核心打卡项的节点:大勾选圈 */
.tl-ck {
  align-self: center;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tl-ck.checked .ck-box { background: var(--green); border-color: var(--green); }
.tl-ck.checked .ck-tick { opacity: 1; transform: scale(1); }
.tl-ck.pop { animation: pop .25s ease; }

.tl-row.tl-core .tl-title { font-weight: 600; }

.tl-row.tl-core.checkable {
  background: linear-gradient(135deg, #FFFDF6, #FCF6EA);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px #F6EEDD;
}
.tl-row.tl-core.checkable + .tl-row.tl-core.checkable { margin-top: 2px; }

.ck-hint { margin: 2px 2px 8px; }

.tl-extra { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 4px; }
.tl-extra .sub-h { margin: 6px 2px 8px; font-size: 13px; color: var(--muted); }

.tl-star {
  align-self: center;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  font-size: 21px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.tl-star::before { content: "☆"; color: #D8D2C8; }
.tl-star.checked::before { content: "⭐"; }
.tl-star.pop { animation: pop .25s ease; }

/* 打卡爆星粒子 */
.star-fly {
  position: fixed;
  z-index: 999;
  font-size: 18px;
  pointer-events: none;
  animation: star-fly .85s ease-out forwards;
}

@keyframes star-fly {
  from { transform: translate(0, 0) scale(.6); opacity: 1; }
  to { transform: translate(var(--dx), var(--dy)) scale(1.4); opacity: 0; }
}

/* 奖励里程碑 */
.rw-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
}

.rw-row:last-child { border-bottom: none; }

.rw-icon { font-size: 26px; }

.rw-info { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.rw-title { font-size: 14px; font-weight: 600; }

.rw-stat { font-size: 12px; color: var(--muted); white-space: nowrap; }

.rw-row.got { background: #FDF6E7; border-radius: 10px; padding: 10px 8px; }
.rw-row.got .rw-stat { color: #C08A2D; font-weight: 700; }

/* 家教评分行 */
.rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 12px;
  background: #F6F1FB;
  border: 1px solid #E5DCF2;
  border-radius: 12px;
}

.rate-label { font-size: 14px; font-weight: 600; }

.rate-stars { display: flex; gap: 2px; }

.rate-star {
  border: none;
  background: none;
  font-size: 24px;
  line-height: 1;
  min-width: 40px;
  min-height: 44px;
  padding: 0;
  color: #DDD6CC;
  cursor: pointer;
  transition: color .15s, transform .15s;
}

.rate-star.on { color: #E8B54D; }
.rate-star:active { transform: scale(1.2); }

/* 排期预告 */
.np-list { margin-top: 4px; }
.np-point { font-size: 14px; line-height: 1.6; }

/* 长期运动建议 */
.sport-row {
  display: flex;
  gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
}

.sport-row:last-of-type { border-bottom: none; }

.sport-icon { font-size: 26px; line-height: 1.2; }

.sport-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }

.sport-top { display: flex; align-items: center; gap: 8px; }
.sport-top b { font-size: 15px; }

.sport-freq {
  font-size: 11px;
  color: #3AA675;
  background: #E4F5EC;
  border-radius: 8px;
  padding: 2px 8px;
}

.sport-why { font-size: 13px; color: var(--muted); line-height: 1.5; }

.sport-note {
  margin-top: 10px;
  padding: 10px 12px;
  background: #E4F5EC;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
}

/* ---- 桌面微调 ---- */

@media (min-width: 641px) {
  .app-header { padding-top: 20px; }

  .modal-mask { align-items: center; padding: 20px; }

  .modal {
    max-width: 480px;
    border-radius: 16px;
    padding: 18px;
    animation: modal-fade .2s ease;
  }

  @keyframes modal-fade {
    from { transform: translateY(14px); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
}
