/* ============================================================
   练了么 · 移动优先样式
   设计口径：90% 的手机使用场景。所有触控目标 ≥ 44px，
   主 CTA 72px；弹层一律底部 sheet，不用居中 modal；
   禁止依赖 hover（touch 设备没有 hover）；输入框 16px 防 iOS 自动放大。
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --bg: #f5f7fa;
  --bg-2: #eceff4;
  --card: #ffffff;
  --card-2: #fafbfd;
  --ink: #15181d;
  --ink-2: #5a6271;
  --ink-3: #98a1b0;
  --line: #e7eaf0;
  --line-2: #f0f2f6;

  --oran: #ff5a2b;
  --oran-2: #e8391a;
  --oran-soft: #fff0ea;
  --mint: #12b886;
  --mint-soft: #e6f8f1;
  --gold: #ffc53d;
  --gold-soft: #fff8e3;
  --violet: #7c5cff;
  --violet-soft: #f0ecff;
  --grey: #8a93a3;

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;

  --shadow-1: 0 1px 2px rgba(21, 24, 29, 0.04), 0 4px 14px -6px rgba(21, 24, 29, 0.08);
  --shadow-2: 0 2px 6px rgba(21, 24, 29, 0.05), 0 14px 34px -14px rgba(21, 24, 29, 0.16);
  --shadow-hero: 0 10px 26px -10px rgba(255, 74, 31, 0.6);

  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --tabh: 58px;

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-num: "SF Mono", "DIN Alternate", ui-monospace, "Menlo", monospace;
}

html[data-theme="night"] {
  --bg: #0d0f13;
  --bg-2: #12151a;
  --card: #171b21;
  --card-2: #1c212a;
  --ink: #f2f5f9;
  --ink-2: #a8b1c0;
  --ink-3: #6c7684;
  --line: #262c36;
  --line-2: #20252d;

  --oran: #ff6b3d;
  --oran-2: #ff4a1f;
  --oran-soft: #2a1a14;
  --mint: #22cf98;
  --mint-soft: #10261f;
  --gold: #ffcf5c;
  --gold-soft: #2a2314;
  --violet: #9b81ff;
  --violet-soft: #1e1a2e;
  --grey: #7d8798;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 12px 30px -12px rgba(0, 0, 0, 0.7);
  --shadow-hero: 0 10px 26px -10px rgba(255, 74, 31, 0.45);
}

/* ---------- 基础重置 ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* [hidden] 必须显式压掉 display：日记吃过 .mask{display:flex} 覆盖 [hidden] 的亏 */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
body {
  /* 极淡的双光斑，避免大面积纯色显得廉价；不影响可读性 */
  background-image:
    radial-gradient(760px 420px at 12% -8%, rgba(255, 90, 43, 0.1), transparent 62%),
    radial-gradient(680px 400px at 92% 4%, rgba(18, 184, 134, 0.09), transparent 60%);
  background-attachment: fixed;
}
html[data-theme="night"] body {
  background-image:
    radial-gradient(760px 420px at 12% -8%, rgba(255, 90, 43, 0.14), transparent 62%),
    radial-gradient(680px 400px at 92% 4%, rgba(18, 184, 134, 0.1), transparent 60%);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: 16px; /* 低于 16px 时 iOS Safari 聚焦会自动放大页面 */
  color: inherit;
}
button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation; /* 去掉 300ms 点击延迟 */
}
a { color: var(--oran); text-decoration: none; }
code { font-family: var(--font-num); font-size: 0.92em; background: var(--bg-2); padding: 1px 5px; border-radius: 5px; }
.ic { width: 24px; height: 24px; display: block; flex: 0 0 auto; }

/* 滚动条：移动端不显示，桌面端细一点 */
.main::-webkit-scrollbar, .sheet-body::-webkit-scrollbar { width: 4px; }
.main::-webkit-scrollbar-thumb, .sheet-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

/* ============================================================
   登录层
   ============================================================ */
.auth {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-top: calc(24px + var(--sat));
  background: var(--bg);
}
.auth::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(520px 320px at 18% 8%, rgba(255, 90, 43, 0.18), transparent 60%),
    radial-gradient(460px 300px at 86% 92%, rgba(18, 184, 134, 0.16), transparent 62%);
  pointer-events: none;
}
.auth-card {
  position: relative;
  width: 100%;
  max-width: 330px;
  text-align: center;
  animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.auth-logo {
  width: 76px;
  height: 76px;
  border-radius: 21px;
  box-shadow: var(--shadow-hero);
  margin-bottom: 16px;
}
.auth-title {
  margin: 0;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.auth-sub { margin: 6px 0 26px; color: var(--ink-3); font-size: 13.5px; letter-spacing: 0.06em; }
.auth-input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: var(--card);
  outline: none;
  text-align: center;
  letter-spacing: 0.12em;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.auth-input:focus { border-color: var(--oran); box-shadow: 0 0 0 4px var(--oran-soft); }
.auth-err { margin: 12px 0 0; font-size: 13px; color: var(--oran-2); }
.auth-tip { margin: 20px 0 0; font-size: 11.5px; color: var(--ink-3); }
#auth-form .btn { display: flex; width: 100%; margin-top: 12px; }

/* ============================================================
   主框架
   ============================================================ */
.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}
@media (min-width: 560px) {
  /* 桌面预览时给一个手机宽度容器，不铺满整个屏幕 */
  .app { box-shadow: 0 0 0 1px var(--line), 0 24px 60px -30px rgba(0, 0, 0, 0.18); background: var(--bg); }
}

.topbar {
  flex: 0 0 auto;
  padding-top: var(--sat);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  z-index: 20;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar-in {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark { width: 27px; height: 27px; border-radius: 8px; }
.brand-name { font-size: 16.5px; font-weight: 800; letter-spacing: 0.1em; }

.streak-chip {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 32px;
  padding: 0 11px 0 8px;
  border-radius: 999px;
  background: var(--oran-soft);
  color: var(--oran-2);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: transform 0.14s;
}
.streak-chip .ic { width: 17px; height: 17px; }
.streak-chip:active { transform: scale(0.94); }
.streak-unit { font-size: 11.5px; font-weight: 600; opacity: 0.75; margin-left: 1px; }
.streak-chip.is-zero { background: var(--bg-2); color: var(--ink-3); }

.main {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}
.view {
  padding: 14px 16px calc(var(--tabh) + var(--sab) + 22px);
  animation: fadeUp 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.view.no-anim { animation: none; }

/* ---------- 底栏 ---------- */
.tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  height: calc(var(--tabh) + var(--sab));
  padding-bottom: var(--sab);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--line);
}
.tab {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: color 0.16s, transform 0.14s;
}
.tab .ic { width: 22px; height: 22px; }
.tab.is-on { color: var(--oran); }
.tab.is-on .ic { transform: translateY(-1px); }
.tab:active { transform: scale(0.92); }

/* ============================================================
   通用件
   ============================================================ */
.card {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line);
  padding: 16px;
}
.card-flat { background: var(--card-2); border: 1px solid var(--line-2); box-shadow: none; }

.sec { margin-top: 22px; }
.sec:first-child { margin-top: 4px; }
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 2px 10px;
}
.sec-title { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; }
.sec-title .dim { color: var(--ink-3); font-weight: 500; font-size: 12px; margin-left: 6px; }
.sec-act { font-size: 12.5px; color: var(--oran); font-weight: 600; padding: 4px 0; }
.sec-act:active { opacity: 0.6; }

.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.bold { font-weight: 700; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--bg-2);
  color: var(--ink);
  transition: transform 0.13s, opacity 0.15s, background 0.16s;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.965); }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn .ic { width: 19px; height: 19px; }
.btn-primary {
  background: linear-gradient(135deg, #ff8a4c, var(--oran) 46%, var(--oran-2));
  color: #fff;
  box-shadow: var(--shadow-hero);
}
.btn-mint { background: linear-gradient(135deg, #3ddc97, var(--mint) 60%, #0a9463); color: #fff; box-shadow: 0 10px 26px -12px rgba(18, 184, 134, 0.6); }
.btn-ghost { background: var(--card); border: 1.5px solid var(--line); color: var(--ink); }
.btn-quiet { background: var(--bg-2); color: var(--ink-2); }
.btn-danger { background: var(--oran-soft); color: var(--oran-2); }
.btn-lg { height: 54px; font-size: 16.5px; border-radius: 16px; }
.btn-block { display: flex; width: 100%; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-sm .ic { width: 15px; height: 15px; }
.btn-icon { width: 34px; height: 34px; padding: 0; border-radius: 10px; }
.btn-icon .ic { width: 17px; height: 17px; }
/* 点击时的光泽扫过，给实体按键的手感 */
.btn-primary::after, .btn-mint::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-18deg);
  transition: left 0.42s ease;
  pointer-events: none;
}
.btn-primary:active::after, .btn-mint:active::after { left: 120%; }

/* ---------- HERO：今日打卡主卡 ---------- */
.hero {
  position: relative;
  border-radius: 26px;
  padding: 24px 20px 20px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(140deg, #ff9250, var(--oran) 42%, var(--oran-2));
  box-shadow: var(--shadow-hero);
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
  text-align: left;
  width: 100%;
  display: block;
}
.hero::before {
  /* 右上角柔光，避免大块纯色 */
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  right: -70px; top: -90px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 68%);
  pointer-events: none;
}
.hero:active { transform: scale(0.978); }
.hero-kicker { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; opacity: 0.86; }
.hero-date { font-size: 20px; font-weight: 800; margin-top: 3px; letter-spacing: 0.01em; }
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 72px;
  margin-top: 16px;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--oran-2);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0.14em;
  box-shadow: 0 6px 18px -8px rgba(120, 20, 0, 0.5);
  transition: transform 0.13s, background 0.2s;
}
.hero:active .hero-cta { transform: scale(0.975); background: #fff; }
.hero-cta .ic { width: 26px; height: 26px; }
.hero-hint { margin-top: 11px; font-size: 12.5px; opacity: 0.82; letter-spacing: 0.02em; }

/* 已打卡态：换薄荷渐变 + 细密流光 */
.hero.is-done {
  background: linear-gradient(140deg, #2ee0a3, var(--mint) 46%, #0a9463);
  box-shadow: 0 10px 26px -12px rgba(18, 184, 134, 0.62);
}
.hero.is-done::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.16) 46%, transparent 62%);
  background-size: 260% 100%;
  animation: sheen 3.4s ease-in-out infinite;
  pointer-events: none;
}
.hero-done-row { display: flex; align-items: center; gap: 11px; margin-top: 14px; }
.hero-check {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--mint);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  box-shadow: 0 4px 12px -4px rgba(0, 40, 26, 0.4);
  animation: pop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.hero-check .ic { width: 25px; height: 25px; }
.hero-done-main { font-size: 21px; font-weight: 900; letter-spacing: 0.04em; }
.hero-done-sub { font-size: 13px; opacity: 0.9; margin-top: 1px; }
.hero-lines {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12px;
  opacity: 0.9;
  letter-spacing: 0.02em;
}

/* ---------- 快捷动作格 ---------- */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.qb {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  min-height: 74px;
  padding: 11px 12px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  text-align: left;
  transition: transform 0.13s, border-color 0.16s, background 0.16s;
  position: relative;
  overflow: hidden;
}
.qb:active { transform: scale(0.955); border-color: var(--oran); background: var(--oran-soft); }
.qb-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--oran);
  flex: 0 0 auto;
}
.qb-dot[data-cat="cardio"] { background: var(--mint); }
.qb-dot[data-cat="ball"] { background: var(--gold); }
.qb-dot[data-cat="flex"] { background: var(--violet); }
.qb-dot[data-cat="other"] { background: var(--grey); }
.qb-name { font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.qb-last { font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.qb-more {
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  border-style: dashed;
  background: transparent;
  box-shadow: none;
}
.qb-more .ic { width: 20px; height: 20px; }

/* ---------- 今日项目列表 ---------- */
.item-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-2);
}
.item-row:last-child { border-bottom: 0; }
.item-bar {
  width: 4px;
  align-self: stretch;
  min-height: 34px;
  border-radius: 3px;
  background: var(--oran);
  flex: 0 0 auto;
}
.item-bar[data-cat="cardio"] { background: var(--mint); }
.item-bar[data-cat="ball"] { background: var(--gold); }
.item-bar[data-cat="flex"] { background: var(--violet); }
.item-bar[data-cat="other"] { background: var(--grey); }
.item-name { font-size: 14.5px; font-weight: 700; }
.item-detail { font-size: 12px; color: var(--ink-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.item-act { display: flex; gap: 2px; flex: 0 0 auto; }
/* 列表里的图标按钮给到 38px：34px 在手机上点偏容易点空 */
.item-act .btn-icon { width: 38px; height: 38px; }
.item-act .btn-icon .ic { width: 18px; height: 18px; }

/* 首页三个次操作：等宽三列。图标按钮不带文字会让人猜，一律配标签 */
.act-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.act-row .btn {
  padding: 0 6px;
  font-size: 13.5px;
  gap: 5px;
  height: 44px;
  border-radius: 12px;
}
.act-row .btn .ic { width: 17px; height: 17px; }

/* ---------- 空状态 ---------- */
.empty {
  text-align: center;
  padding: 26px 18px;
  color: var(--ink-3);
}
.empty-ic {
  width: 54px; height: 54px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
}
.empty-ic .ic { width: 26px; height: 26px; }
.empty-title { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.empty-desc { font-size: 12.5px; margin-top: 4px; }

/* ============================================================
   统计 / 图表
   ============================================================ */
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.kpi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 14px;
  box-shadow: var(--shadow-1);
}
.kpi-label { font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.04em; }
.kpi-value {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.kpi-unit { font-size: 12px; font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.kpi-delta { font-size: 11.5px; margin-top: 2px; font-weight: 600; }
.kpi-delta.up { color: var(--oran); } /* 中国习惯：涨用红 */
.kpi-delta.down { color: var(--mint); }

.seg {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--bg-2);
  border-radius: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg-btn {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background 0.16s, color 0.16s;
  white-space: nowrap;
}
.seg-btn.is-on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-1); }
.seg-btn:active { opacity: 0.7; }

.chart-box { width: 100%; overflow: hidden; }
.chart-box svg { display: block; width: 100%; height: auto; }

/* 环形图：SVG 默认 width:100% 会把图例挤走，必须定宽 + nowrap */
.donut-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}
.donut-row svg { width: 118px; flex: 0 0 118px; height: 118px; }
.donut-legend { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.lg-row { display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
.lg-dot { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 auto; }
.lg-pct { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: 11.5px; }

/* 日历热力 */
.cal-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
.cal-wd { text-align: center; font-size: 10.5px; color: var(--ink-3); font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell {
  aspect-ratio: 1;
  border-radius: 9px;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  position: relative;
  transition: transform 0.12s;
  border: 1.5px solid transparent;
}
.cal-cell.blank { background: transparent; pointer-events: none; }
.cal-cell[data-lv="1"] { background: color-mix(in srgb, var(--oran) 16%, var(--bg-2)); color: var(--ink); }
.cal-cell[data-lv="2"] { background: color-mix(in srgb, var(--oran) 36%, var(--bg-2)); color: var(--ink); }
.cal-cell[data-lv="3"] { background: color-mix(in srgb, var(--oran) 62%, var(--bg-2)); color: #fff; }
.cal-cell[data-lv="4"] { background: linear-gradient(140deg, #ff8a4c, var(--oran-2)); color: #fff; box-shadow: 0 4px 10px -5px rgba(255, 90, 43, 0.7); }
.cal-cell.is-today { border-color: var(--ink); }
.cal-cell.is-sel { border-color: var(--oran); border-width: 2px; }
.cal-cell:active { transform: scale(0.92); }

/* 建议卡 */
.advice {
  border-radius: var(--r-md);
  padding: 13px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3.5px solid var(--grey);
  box-shadow: var(--shadow-1);
  margin-bottom: 9px;
}
.advice[data-lv="warn"] { border-left-color: var(--oran); }
.advice[data-lv="good"] { border-left-color: var(--mint); }
.advice[data-lv="info"] { border-left-color: var(--violet); }
.advice-title { font-size: 14px; font-weight: 700; line-height: 1.35; }
.advice-body { font-size: 13px; color: var(--ink-2); margin-top: 5px; line-height: 1.6; }
.advice-basis {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--bg-2);
  font-size: 11px;
  color: var(--ink-2);
}
.advice-basis .ic { width: 12px; height: 12px; }

.disclaimer {
  margin-top: 10px;
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.6;
  padding: 9px 11px;
  background: var(--bg-2);
  border-radius: 10px;
}

/* ============================================================
   旅程 / 等价物
   ============================================================ */
.jr-hero {
  position: relative;
  border-radius: 24px;
  padding: 20px;
  background: linear-gradient(155deg, #1b2130, #10131a);
  color: #eef2f8;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
html[data-theme="night"] .jr-hero { background: linear-gradient(155deg, #1e2534, #0f1218); }
.jr-hero::before {
  /* 星点：三层不同大小的 radial，纯 CSS 不额外请求资源 */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 18% 22%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1.2px 1.2px at 72% 14%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 44% 68%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.6px 1.6px at 86% 58%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 28% 88%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.2px 1.2px at 62% 82%, rgba(255, 255, 255, 0.55), transparent);
  pointer-events: none;
}
.jr-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; }
.jr-stage-tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #dfe6f2;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.jr-mid { display: flex; align-items: center; gap: 16px; margin-top: 14px; position: relative; }
.jr-ring { width: 108px; height: 108px; flex: 0 0 108px; }
.jr-here { flex: 1 1 auto; min-width: 0; }
.jr-here-label { font-size: 19px; font-weight: 800; letter-spacing: 0.02em; }
.jr-here-desc { font-size: 12px; color: #9aa7bd; margin-top: 5px; line-height: 1.55; }
.jr-metrics { display: flex; gap: 8px; margin-top: 15px; position: relative; }
.jr-metric { flex: 1 1 0; background: rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 8px 10px; }
.jr-metric b { display: block; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.jr-metric span { font-size: 10.5px; color: #98a5bb; }
.jr-next {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: #a9b6cb;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}
.jr-next b { color: #ffd06b; font-weight: 700; }
.jr-nodes { margin-top: 14px; position: relative; display: flex; flex-direction: column; gap: 0; }
.jr-node {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  opacity: 0.45;
}
.jr-node.is-past { opacity: 0.72; }
.jr-node.is-here { opacity: 1; }
.jr-node-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-top: 5px;
  background: rgba(255, 255, 255, 0.28);
  flex: 0 0 auto;
  position: relative;
}
.jr-node.is-past .jr-node-dot { background: #3ddc97; }
.jr-node.is-here .jr-node-dot {
  background: #ffd06b;
  box-shadow: 0 0 0 4px rgba(255, 208, 107, 0.22);
}
.jr-node-txt { font-size: 12.5px; line-height: 1.45; }
.jr-node-txt b { font-weight: 700; }
.jr-node-at { font-size: 10.5px; color: #8b98ae; font-variant-numeric: tabular-nums; }

/* 等价物通用卡 */
.eq {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  margin-bottom: 10px;
}
.eq-ic {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  font-size: 22px;
}
.eq-ic.oran { background: var(--oran-soft); }
.eq-ic.mint { background: var(--mint-soft); }
.eq-ic.gold { background: var(--gold-soft); }
.eq-txt { flex: 1 1 auto; min-width: 0; }
.eq-kicker { font-size: 11.5px; color: var(--ink-3); }
.eq-main { font-size: 16px; font-weight: 800; margin-top: 1px; line-height: 1.3; }
.eq-sub { font-size: 11.5px; color: var(--ink-2); margin-top: 3px; }
.eq-bar { height: 7px; border-radius: 4px; background: var(--bg-2); margin-top: 9px; overflow: hidden; }
.eq-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #ff8a4c, var(--oran)); transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.eq-bar i.mint { background: linear-gradient(90deg, #3ddc97, var(--mint)); }
.eq-bar i.gold { background: linear-gradient(90deg, #ffd966, var(--gold)); }

/* 徽章 */
.badge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.bd {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 4px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  text-align: center;
  transition: transform 0.13s;
}
.bd:active { transform: scale(0.93); }
.bd-medal {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2);
  color: var(--ink-3);
}
.bd-medal .ic { width: 19px; height: 19px; }
.bd.is-on .bd-medal { background: linear-gradient(140deg, #ffd966, #f2a81b); color: #6b4400; box-shadow: 0 4px 12px -5px rgba(242, 168, 27, 0.8); }
.bd.is-on.silver .bd-medal { background: linear-gradient(140deg, #e8eef8, #b9c6d8); color: #4a5566; }
.bd.is-on.gold .bd-medal { background: linear-gradient(140deg, #ffe28a, #f0a800); color: #6b4400; }
.bd-name { font-size: 10.5px; font-weight: 600; line-height: 1.25; color: var(--ink-2); }
.bd.is-on .bd-name { color: var(--ink); }
.bd.is-locked { opacity: 0.55; }

/* ============================================================
   底部弹层 sheet
   ============================================================ */
.sheet-host { position: fixed; inset: 0; z-index: 70; }
.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.44);
  backdrop-filter: blur(2px);
  animation: fadeIn 0.22s ease both;
}
.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-width: 520px;
  margin: 0 auto;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 40px -14px rgba(0, 0, 0, 0.35);
  animation: sheetUp 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
  padding-bottom: var(--sab);
  overflow: hidden;
}
.sheet.is-closing { animation: sheetDown 0.22s ease both; }
.sheet-grip {
  height: 5px;
  width: 38px;
  border-radius: 3px;
  background: var(--line);
  margin: 8px auto 0;
  flex: 0 0 auto;
}
.sheet-head {
  padding: 12px 20px 8px;
  flex: 0 0 auto;
}
.sheet-head h3 { margin: 0; font-size: 17px; font-weight: 800; }
.sheet-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-3); }
.sheet-body {
  padding: 4px 20px 8px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  flex: 1 1 auto;
}
.sheet-foot {
  padding: 10px 20px 14px;
  flex: 0 0 auto;
  display: flex;
  gap: 9px;
  border-top: 1px solid var(--line-2);
  background: var(--card);
}
.sheet-foot .btn { flex: 1 1 0; }

/* 表单件 */
.field { margin-bottom: 13px; }
.field-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.field-label .hint { font-size: 11px; color: var(--ink-3); font-weight: 500; }
.input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--card-2);
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.input:focus { border-color: var(--oran); box-shadow: 0 0 0 3.5px var(--oran-soft); background: var(--card); }
textarea.input { height: auto; min-height: 78px; padding: 11px 13px; resize: vertical; line-height: 1.55; }
.input-num { text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }

/* 步进器：手机上没有物理键盘，-/+ 比直接打字快得多 */
.stepper {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 13px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: var(--card-2);
}
.step-btn {
  width: 52px;
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--card);
  transition: background 0.13s, transform 0.1s;
  user-select: none;
  -webkit-user-select: none;
}
.step-btn:active { background: var(--oran-soft); color: var(--oran-2); transform: scale(0.94); }
.step-btn:disabled { opacity: 0.32; }
.step-mid { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 4px; position: relative; }
.step-mid input {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  outline: none;
  padding: 12px 0;
  -moz-appearance: textfield;
}
.step-mid input::-webkit-outer-spin-button,
.step-mid input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step-unit { position: absolute; right: 10px; font-size: 11px; color: var(--ink-3); pointer-events: none; }
.step-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s, color 0.15s, transform 0.12s;
  white-space: nowrap;
}
.chip:active { transform: scale(0.94); }
.chip.is-on { background: var(--oran); color: #fff; box-shadow: 0 4px 12px -6px rgba(255, 90, 43, 0.8); }
.chip-sm { height: 30px; padding: 0 11px; font-size: 12px; }

.list-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 50px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
  text-align: left;
}
.list-btn:last-child { border-bottom: 0; }
.list-btn:active { opacity: 0.62; }
.list-btn .ic-lead {
  width: 33px; height: 33px;
  border-radius: 10px;
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  flex: 0 0 auto;
}
.list-btn .ic-lead .ic { width: 17px; height: 17px; }
.list-btn .lt { font-size: 14px; font-weight: 600; }
.list-btn .ls { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.list-btn .ic-arrow { width: 17px; height: 17px; color: var(--ink-3); flex: 0 0 auto; }

/* ============================================================
   Toast / 庆祝层
   ============================================================ */
.toast-host {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(var(--tabh) + var(--sab) + 16px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  pointer-events: none;
  padding: 0 20px;
}
.toast {
  max-width: 100%;
  padding: 10px 16px;
  border-radius: 13px;
  background: rgba(21, 24, 29, 0.93);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
  text-align: center;
}
.toast.warn { background: rgba(232, 57, 26, 0.95); }
.toast.good { background: rgba(10, 148, 99, 0.95); }
.toast.is-out { animation: toastOut 0.2s ease both; }

.celebrate {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 12, 16, 0.62);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.24s ease both;
}
.celebrate-in {
  width: 100%;
  max-width: 320px;
  background: var(--card);
  border-radius: 26px;
  padding: 26px 22px 20px;
  text-align: center;
  box-shadow: var(--shadow-2);
  animation: pop 0.44s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.celebrate-icon {
  width: 68px; height: 68px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #ffd966, #f0a800);
  color: #6b4400;
  font-size: 32px;
  box-shadow: 0 10px 26px -10px rgba(240, 168, 0, 0.85);
}
.celebrate-title { margin: 0; font-size: 19px; font-weight: 800; }
.celebrate-desc { margin: 7px 0 18px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }

/* ---------- 骨架屏 ---------- */
.skel {
  background: linear-gradient(90deg, var(--bg-2) 25%, var(--card-2) 37%, var(--bg-2) 63%);
  background-size: 400% 100%;
  animation: skel 1.3s ease infinite;
  border-radius: 10px;
}
.skel-hero { height: 168px; border-radius: 26px; margin-bottom: 16px; }
.skel-row { height: 60px; margin-bottom: 9px; }

/* ============================================================
   肌群示意图
   ============================================================ */
:root {
  --fig-body: #eef1f6;
  --fig-idle: #dde3ec;
  --fig-line: #cfd8e5;
  --fig-main: #ff5a2b;
  --fig-sec: #12b886;
}
html[data-theme="night"] {
  --fig-body: #1f242e;
  --fig-idle: #2c3341;
  --fig-line: #3a4352;
  --fig-main: #ff6b3d;
  --fig-sec: #1ec99a;
}
.fig { display: block; flex: 0 0 auto; }
.fig-lg { width: 100%; height: auto; }

.fdot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-right: 3px;
  background: var(--fig-idle);
}
.fdot[data-rank="main"] { background: var(--fig-main); }
.fdot[data-rank="sec"] { background: var(--fig-sec); opacity: 0.6; }
.eqico { display: block; }

/* 首页「今天原本练X」入口：一行纯文字，不占卡片，不加视觉重量 */
.plan-line {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 44px;
  margin: -4px 0 2px;
  padding: 0 6px;
  font-size: 13px;
  color: var(--ink-2);
  text-align: left;
}
.plan-line:active { opacity: 0.6; }
.plan-line b { color: var(--ink); font-weight: 700; }
.plan-line .pl-go { margin-left: auto; color: var(--oran); font-weight: 600; font-size: 12.5px; }

/* 选择器：按部位分组 */
.pk-group { margin-top: 15px; }
.pk-group:first-child { margin-top: 2px; }
.pk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 2px 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.pk-more { font-size: 11.5px; color: var(--oran); font-weight: 700; letter-spacing: 0; }
.pk-thumb { width: 28px; flex: 0 0 28px; display: flex; align-items: center; justify-content: center; }

/* 统计页「按部位」：正/背两张人体图 + 漏练提示 */
.fig-pair {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
}
.fig-cell { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fig-cap { font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.1em; }
.fig-note {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.6;
  text-align: center;
}
.fig-note b { color: var(--ink-2); }

/* ============================================================
   打卡卡（9:16，供截屏分享）
   ============================================================ */
.share-card {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 18px 16px;
  background: var(--sc-bg);
  color: var(--sc-ink);
  box-shadow: var(--shadow-2);
}
.share-card[data-t="light"] {
  --sc-bg: linear-gradient(165deg, #ffffff 0%, #f3f6fb 58%, #eef2f9 100%);
  --sc-ink: #15181d;
  --sc-sub: #5a6271;
  --sc-dim: #98a1b0;
  --sc-line: rgba(21, 24, 29, 0.08);
  --sc-chip: rgba(21, 24, 29, 0.045);
}
.share-card[data-t="dark"] {
  --sc-bg: linear-gradient(165deg, #1b2028 0%, #12161c 60%, #0b0e12 100%);
  --sc-ink: #f2f5f9;
  --sc-sub: #a8b1c0;
  --sc-dim: #6c7684;
  --sc-line: rgba(255, 255, 255, 0.09);
  --sc-chip: rgba(255, 255, 255, 0.06);
}
.share-card[data-t="xuan"] {
  --sc-bg: linear-gradient(165deg, #fbf7ec 0%, #f4ecdb 60%, #eee3cd 100%);
  --sc-ink: #2e2a26;
  --sc-sub: #6d6357;
  --sc-dim: #9c9184;
  --sc-line: rgba(46, 42, 38, 0.1);
  --sc-chip: rgba(46, 42, 38, 0.045);
}
.sc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--sc-sub);
  letter-spacing: 0.06em;
}
.sc-brand { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--sc-ink); }
.sc-brand .sc-mark {
  width: 20px; height: 20px;
  border-radius: 6px;
  background: linear-gradient(140deg, #ff8a4c, #ff4020);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 800;
}
.sc-hero { margin-top: 14px; }
.sc-day {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-family: var(--font-num);
  color: var(--sc-ink);
}
.sc-day small { font-size: 14px; font-weight: 700; margin-left: 5px; letter-spacing: 0; }
.sc-day.is-zero { font-size: 28px; }
.sc-sub { margin-top: 5px; font-size: 12.5px; color: var(--sc-sub); }
.sc-figrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  min-height: 0;
}
.sc-figbox { flex: 0 0 100px; display: flex; justify-content: center; }
.sc-figbox .fig { width: 100px; height: 150px; }
.sc-parts { flex: 1 1 auto; min-width: 0; }
.sc-parts-label { font-size: 11px; color: var(--sc-dim); letter-spacing: 0.08em; }
.sc-parts-main { font-size: 15.5px; font-weight: 800; margin-top: 3px; letter-spacing: 0.02em; line-height: 1.4; }
.sc-parts-sub { font-size: 11.5px; color: var(--sc-sub); margin-top: 6px; line-height: 1.55; }
.sc-list { flex: 1 1 auto; margin-top: 12px; overflow: hidden; }
.sc-li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--sc-line);
  font-size: 13.5px;
}
.sc-li:last-child { border-bottom: 0; }
.sc-li-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sc-li-val { flex: 0 0 auto; color: var(--sc-sub); font-family: var(--font-num); font-size: 12.5px; }
.sc-nums { display: flex; gap: 6px; margin-top: auto; padding-top: 10px; }
.sc-num {
  flex: 1 1 0;
  background: var(--sc-chip);
  border-radius: 11px;
  padding: 8px 6px;
  text-align: center;
}
.sc-num b { display: block; font-size: 14.5px; font-weight: 800; font-family: var(--font-num); }
.sc-num span { display: block; font-size: 10px; color: var(--sc-dim); margin-top: 2px; letter-spacing: 0.06em; }
.sc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--sc-line);
  font-size: 10.5px;
  color: var(--sc-dim);
}
.sc-seal {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1.5px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; letter-spacing: 0.02em;
  color: var(--sc-seal, #b03a2e);
  line-height: 1.15;
  text-align: center;
  transform: rotate(-4deg);
}
.share-tools { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; width: 100%; }
.share-tip { text-align: center; font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }

/* ============================================================
   动画
   ============================================================ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes sheetDown { from { transform: translateY(0); } to { transform: translateY(100%); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes pop { 0% { transform: scale(0.55); opacity: 0; } 60% { transform: scale(1.07); opacity: 1; } 100% { transform: scale(1); } }
@keyframes sheen { 0%, 100% { background-position: 160% 0; } 50% { background-position: -60% 0; } }
@keyframes skel { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes ringIn { from { stroke-dashoffset: var(--dash-len); } }
@keyframes bump { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.14); } }
.bump { animation: bump 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* 横屏（手机转过来）时压缩纵向留白 */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { padding: 16px; }
  .hero-cta { height: 56px; font-size: 20px; margin-top: 10px; }
  .view { padding-top: 8px; }
}
