/* DuMate 健身打卡 · Web 版用户前台
   视觉语言与 /admin 管理后台一致：深色底 + 霓虹主色 + 玻璃卡片 */
:root {
  --bg: #0e1116;
  --bg-soft: #12161d;
  --card: rgba(255, 255, 255, 0.045);
  --card-hover: rgba(255, 255, 255, 0.07);
  --brd: rgba(255, 255, 255, 0.085);
  --acc: #00e5a0;
  --acc2: #7c5cff;
  --txt: #e9f1f7;
  --txt2: #7d8794;
  --txt3: #5a6472;
  --warn: #ffb020;
  --danger: #ff5c7a;
  --r: 16px;
  --r-sm: 10px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: calc(70px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(680px 380px at 12% -8%, rgba(0, 229, 160, 0.10), transparent 60%),
    radial-gradient(720px 420px at 92% 6%, rgba(124, 92, 255, 0.10), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

#app { position: relative; z-index: 1; }

/* ---------- 顶部 ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(14, 17, 22, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--brd);
}
.hdr-title { font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.hdr-sub { font-size: 11px; color: var(--txt2); margin-top: 1px; }
.hdr-right { display: flex; align-items: center; gap: 10px; }

.lv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 229, 160, .16), rgba(124, 92, 255, .16));
  border: 1px solid rgba(0, 229, 160, .28);
  font-size: 12px;
  font-weight: 600;
  color: var(--acc);
  white-space: nowrap;
}

/* ---------- 容器 / 卡片 ---------- */
.wrap { max-width: 860px; margin: 0 auto; padding: 16px 14px 8px; }

.card {
  background: var(--card);
  border: 1px solid var(--brd);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.card-h {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.card-t { font-size: 14px; font-weight: 700; }
.card-t small { font-weight: 400; color: var(--txt2); margin-left: 6px; font-size: 11px; }

.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 560px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }

.stat {
  background: var(--card);
  border: 1px solid var(--brd);
  border-radius: var(--r-sm);
  padding: 12px 10px;
  text-align: center;
}
.stat-v { font-size: 21px; font-weight: 700; color: var(--acc); line-height: 1.25; }
.stat-v.sm { font-size: 17px; }
.stat-v.warn { color: var(--warn); }
.stat-v.pur { color: var(--acc2); }
.stat-l { font-size: 11px; color: var(--txt2); margin-top: 3px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--brd);
  background: var(--card);
  color: var(--txt);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s, background .16s, border-color .16s;
  font-family: inherit;
}
.btn:hover { background: var(--card-hover); border-color: rgba(255, 255, 255, .16); }
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--acc), #00b884);
  color: #05221a;
  border-color: transparent;
  box-shadow: 0 6px 22px rgba(0, 229, 160, .26);
}
.btn-primary:hover { background: linear-gradient(135deg, #10efad, #00c48c); }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; padding: 13px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-pur { background: linear-gradient(135deg, var(--acc2), #6244e0); color: #fff; border-color: transparent; }
.btn-danger { color: var(--danger); border-color: rgba(255, 92, 122, .3); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 表单 ---------- */
.field { display: block; margin-bottom: 13px; }
.field > span { display: block; font-size: 12px; color: var(--txt2); margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--brd);
  background: rgba(0, 0, 0, .26);
  color: var(--txt);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .16s, box-shadow .16s;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(0, 229, 160, .5);
  box-shadow: 0 0 0 3px rgba(0, 229, 160, .1);
}
textarea { resize: vertical; min-height: 76px; }
input[type="date"], input[type="number"] { -webkit-appearance: none; appearance: none; }
select option { background: #12161d; color: var(--txt); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* 星级（主观强度） */
.stars { display: flex; gap: 8px; }
.star {
  flex: 1; text-align: center; padding: 10px 0;
  border-radius: var(--r-sm);
  border: 1px solid var(--brd);
  background: rgba(0, 0, 0, .22);
  font-size: 15px; font-weight: 700; color: var(--txt2);
  cursor: pointer; transition: all .16s;
  font-family: inherit;
}
.star:hover { border-color: rgba(0, 229, 160, .4); }
.star.on { background: linear-gradient(135deg, var(--acc), #00b884); color: #05221a; border-color: transparent; }

/* chips 筛选 */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; }
.chips::-webkit-scrollbar { display: none; }
/* 部位筛选有十来个，横向滚动会滚掉一半，直接换行铺开 */
.chips-wrap { flex-wrap: wrap; overflow-x: visible; row-gap: 6px; }
.chips-wrap .chip { padding: 5px 11px; font-size: 12px; }
/* 主导航 6 个 tab：18 个字 + 内边距按默认档排要 380px，390 屏放不下，
   换行又会剩「跑步」孤零零一个。收紧到 11.5px / 9px 内边距刚好一行，
   真遇超窄屏还有 wrap 兜底 */
.chips-nav { gap: 5px; flex-wrap: wrap; overflow-x: visible; row-gap: 6px; }
.chips-nav .chip { padding: 6px 9px; font-size: 11.5px; letter-spacing: 0; }

.chip {
  flex: 0 0 auto; padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--brd);
  background: rgba(0, 0, 0, .2);
  color: var(--txt2);
  font-size: 12.5px; cursor: pointer; white-space: nowrap;
  transition: all .16s; font-family: inherit;
}
.chip.on { background: rgba(0, 229, 160, .14); color: var(--acc); border-color: rgba(0, 229, 160, .4); }

/* ---------- 列表项 ---------- */
.item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.item:last-child { border-bottom: 0; }
.item-l { min-width: 0; flex: 1; }
.item-t { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 整句结论（本周概览的 highlights）要允许换行，单行省略会截成「……训练开…」 */
.item-t.item-t-wrap { white-space: normal; line-height: 1.55; font-weight: 500; overflow: visible; }
.item-s { font-size: 11.5px; color: var(--txt2); margin-top: 2px; }
.item-r { text-align: right; flex: 0 0 auto; }
.item-rv { font-size: 14px; font-weight: 700; color: var(--acc); }
.item-rl { font-size: 11px; color: var(--txt2); }

.tag {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600;
  background: rgba(124, 92, 255, .16); color: #b9a7ff;
  border: 1px solid rgba(124, 92, 255, .26);
}
.tag.g { background: rgba(0, 229, 160, .14); color: var(--acc); border-color: rgba(0, 229, 160, .26); }
.tag.w { background: rgba(255, 176, 32, .14); color: var(--warn); border-color: rgba(255, 176, 32, .26); }

/* ---------- 打卡日历 / 热力图 ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-d {
  aspect-ratio: 1; border-radius: 6px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--txt3); cursor: pointer; transition: all .14s;
}
.cal-d.has { background: rgba(0, 229, 160, .2); color: var(--acc); border-color: rgba(0, 229, 160, .3); font-weight: 700; }
.cal-d.today { border-color: var(--acc2); }
.cal-d.empty { visibility: hidden; }
.cal-wk { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 5px; }
.cal-wk span { text-align: center; font-size: 10.5px; color: var(--txt3); }

.heat { display: flex; gap: 3px; flex-wrap: wrap; }
.heat-c { width: 12px; height: 12px; border-radius: 3px; background: rgba(255, 255, 255, .05); }
.heat-c.l1 { background: rgba(0, 229, 160, .25); }
.heat-c.l2 { background: rgba(0, 229, 160, .45); }
.heat-c.l3 { background: rgba(0, 229, 160, .7); }
.heat-c.l4 { background: var(--acc); }
.heat-wrap { display: flex; flex-wrap: wrap; gap: 3px; }
.heat-col { display: flex; flex-direction: column; gap: 3px; }

/* ---------- 徽章 / 历程 ---------- */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.badge {
  text-align: center; padding: 12px 6px;
  border-radius: var(--r-sm);
  border: 1px solid var(--brd);
  background: rgba(0, 0, 0, .22);
  transition: all .16s;
}
.badge.on { border-color: rgba(0, 229, 160, .35); background: rgba(0, 229, 160, .08); }
.badge-i { font-size: 25px; line-height: 1.2; filter: grayscale(1); opacity: .38; }
.badge.on .badge-i { filter: none; opacity: 1; }
.badge-n { font-size: 11px; margin-top: 5px; color: var(--txt2); font-weight: 600; }
.badge.on .badge-n { color: var(--txt); }

.tl { position: relative; padding-left: 22px; }
.tl::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 1px; background: linear-gradient(180deg, var(--acc), rgba(124, 92, 255, .35));
}
.tl-i { position: relative; padding-bottom: 14px; }
.tl-i::before {
  content: ""; position: absolute; left: -19px; top: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--acc); box-shadow: 0 0 0 3px rgba(0, 229, 160, .16);
}
.tl-t { font-size: 13px; font-weight: 600; }
.tl-d { font-size: 11.5px; color: var(--txt2); margin-top: 1px; }

/* 进度条 */
.bar { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar > i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--acc), var(--acc2));
  transition: width .5s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- tabBar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 7px 0 calc(7px + env(safe-area-inset-bottom));
  background: rgba(14, 17, 22, .9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--brd);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: 0; padding: 4px 0;
  color: var(--txt2); font-size: 10.5px; cursor: pointer;
  font-family: inherit; transition: color .16s;
}
.tab.on { color: var(--acc); }
.tab-i { font-size: 19px; line-height: 1; font-weight: 700; }
.tab.on .tab-i { text-shadow: 0 0 14px rgba(0, 229, 160, .5); }

/* ---------- 登录 ---------- */
.login-wrap {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: radial-gradient(900px 600px at 50% 0%, rgba(0, 229, 160, .08), var(--bg) 62%);
}
.login-card {
  width: 100%; max-width: 380px;
  background: var(--card);
  border: 1px solid var(--brd);
  border-radius: 22px;
  padding: 30px 26px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}
.login-logo { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.login-sub { font-size: 12.5px; color: var(--txt2); margin: 6px 0 22px; }
.login-err { font-size: 12px; color: var(--danger); margin-top: 10px; min-height: 17px; }

/* ---------- 反馈层 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(14px);
  z-index: 200; max-width: 84vw;
  padding: 11px 20px; border-radius: 999px;
  background: rgba(18, 22, 29, .96);
  border: 1px solid var(--brd);
  color: var(--txt); font-size: 13px;
  opacity: 0; pointer-events: none;
  transition: opacity .24s, transform .24s;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .45);
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

.modal-bg {
  position: fixed; inset: 0; z-index: 150;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(5px);
}
.modal {
  width: 100%; max-width: 400px; max-height: 82vh; overflow-y: auto;
  background: #12161d; border: 1px solid var(--brd);
  border-radius: 20px; padding: 22px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .6);
}
.modal-t { font-size: 16px; font-weight: 700; margin-bottom: 14px; }

/* 解锁弹窗 */
.unlock-pop { text-align: center; }
.unlock-icon { font-size: 46px; margin-bottom: 8px; }
.unlock-name { font-size: 16px; font-weight: 700; color: var(--acc); }

/* ---------- 通用状态 ---------- */
.empty { text-align: center; padding: 34px 14px; color: var(--txt2); font-size: 13px; }
.empty i { display: block; font-size: 32px; font-style: normal; opacity: .5; margin-bottom: 8px; }
.loading { text-align: center; padding: 40px; color: var(--txt2); font-size: 13px; }
.spin {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid rgba(255, 255, 255, .13);
  border-top-color: var(--acc);
  border-radius: 50%;
  animation: sp .7s linear infinite;
}
@keyframes sp { to { transform: rotate(360deg); } }

.muted { color: var(--txt2); font-size: 12px; }
.ok { color: var(--acc); }
.disclaimer {
  font-size: 11px; color: var(--txt3); line-height: 1.5;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, .08);
}
.hr { height: 1px; background: var(--brd); margin: 14px 0; }

/* 动作演示画布 */
.fig-box { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .fig-box { grid-template-columns: 1fr; } }
.fig-box canvas {
  width: 100%; height: auto; aspect-ratio: 1;
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, .3);
  border: 1px solid var(--brd);
}
.fig-cap { text-align: center; font-size: 11px; color: var(--txt2); margin-top: 5px; }

/* 饮食目标环 */
.ring-wrap { display: flex; gap: 14px; align-items: center; }
.ring-num { font-size: 26px; font-weight: 800; color: var(--acc); }

/* ===== 打卡月历 ===== */
.cal-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 6px; }
.cal-head span { text-align: center; font-size: 11px; color: var(--txt3); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal .d {
  position: relative; aspect-ratio: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px;
  border-radius: var(--r-sm); border: 1px solid var(--brd);
  background: var(--bg-soft); cursor: default;
}
.cal .d b { font-size: 13px; font-weight: 600; color: var(--txt2); }
.cal .d i { font-style: normal; font-size: 9.5px; color: var(--acc); line-height: 1; }
.cal .d.empty { border: 0; background: transparent; }
.cal .d.future b { color: var(--txt3); }
.cal .d.today { border-color: rgba(124, 92, 255, .55); }
.cal .d.on {
  cursor: pointer;
  background: rgba(0, 229, 160, .13);
  border-color: rgba(0, 229, 160, .42);
}
.cal .d.on b { color: var(--acc); font-weight: 700; }
.cal .d.on:hover { background: rgba(0, 229, 160, .22); }

/* 登录页：注册/登录切换与分隔线 */
.login-split {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0 12px; color: var(--txt3); font-size: 11px;
}
.login-split::before, .login-split::after {
  content: ""; flex: 1; height: 1px; background: var(--brd);
}

/* ===== 动作详情（v1.8.2 重做：可播放演示 + 教学信息） ===== */
.ex-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.ex-name { font-size: 22px; font-weight: 800; letter-spacing: .2px; line-height: 1.25; }
/* 英文动作名：照抄视频左上角的写法，全大写 + 拉开字距，一眼看出是「片名」不是副标题 */
.ex-en {
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  color: var(--acc); opacity: .82; margin-top: 5px;
  text-transform: uppercase;
}
.ex-sub { font-size: 12px; color: var(--txt2); margin-top: 4px; }

.ex-stage {
  position: relative; padding: 0; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(0, 229, 160, .10), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
}
.ex-stage::after {
  /* 底部一层渐暗，画布和控件之间不会硬切 */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 92px;
  background: linear-gradient(180deg, transparent, rgba(9, 12, 16, .78));
  pointer-events: none;
}
.ex-stage canvas {
  display: block; width: 100%; height: auto;
  aspect-ratio: 560 / 520;
}
.ex-veil { position: absolute; inset: 0; pointer-events: none; }

.ex-hud {
  position: absolute; left: 14px; right: 14px; top: 12px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; pointer-events: none;
  font-size: 12px; color: var(--txt2);
}
#exPhase {
  /* 口令常常二三十个字，铺开会把右边的次数挤成两行，压成一行省略 */
  flex: 1 1 auto; min-width: 0; max-width: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, .38); border: 1px solid rgba(255, 255, 255, .08);
  color: var(--txt); font-size: 12px; line-height: 1.4;
}
.ex-hud-r { font-variant-numeric: tabular-nums; letter-spacing: .5px; }

.ex-bar {
  position: absolute; left: 0; right: 0; bottom: 62px; height: 2px;
  background: rgba(255, 255, 255, .07);
}
.ex-bar i {
  display: block; height: 100%; width: 100%;
  transform-origin: left center; transform: scaleX(0);
  background: linear-gradient(90deg, var(--acc), #7c5cff);
  box-shadow: 0 0 12px rgba(0, 229, 160, .55);
}

.ex-ctrl {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ex-btn, .ex-s {
  appearance: none; cursor: pointer;
  padding: 7px 13px; border-radius: 999px; font-size: 12px;
  color: var(--txt2); background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  transition: all .16s ease;
}
.ex-btn:hover, .ex-s:hover { color: var(--txt); border-color: rgba(255, 255, 255, .2); }
.ex-btn.on, .ex-s.on {
  color: #04150f; background: var(--acc); border-color: transparent; font-weight: 700;
}
.ex-speeds { display: flex; gap: 6px; margin-right: auto; }

.ex-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; }
@media (max-width: 720px) { .ex-grid { grid-template-columns: 1fr; } }
.ex-col { display: flex; flex-direction: column; gap: 12px; }
.ex-text { white-space: pre-wrap; font-size: 13.5px; line-height: 1.75; }

/* 动作要领：导语一段 + 带编号的分步，编号做成圆角小方块而不是默认数字，
   跟深色背景更搭，扫读时也更容易定位到第几步 */
.ex-lead {
  font-size: 13.5px; line-height: 1.7; color: var(--txt2);
  padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, .08);
}
.ex-steps { list-style: none; margin: 0; padding: 0; }
.ex-steps li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; line-height: 1.7; margin-bottom: 10px;
}
.ex-steps li:last-child { margin-bottom: 0; }
.ex-steps li i {
  flex: 0 0 20px; height: 20px; margin-top: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 11.5px; font-weight: 700;
  border-radius: 6px; color: var(--accent);
  background: rgba(0, 229, 160, .12);
  border: 1px solid rgba(0, 229, 160, .28);
}

/* 关键提示：主提示做成一条高亮条，下面三条口令用左侧竖线串起来 */
.ex-tip {
  font-size: 13.5px; line-height: 1.7; font-weight: 600;
  padding: 10px 12px; border-radius: 10px;
  color: var(--accent);
  background: rgba(0, 229, 160, .08);
  border-left: 2px solid var(--accent);
  margin-bottom: 12px;
}
.ex-cues { list-style: none; margin: 0; padding: 0; }
.ex-cues li {
  position: relative; padding: 2px 0 2px 16px;
  font-size: 13.5px; line-height: 1.7;
}
.ex-cues li::before {
  content: ''; position: absolute; left: 3px; top: 11px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--purple, #7c5cff);
}
.ex-cues li + li { margin-top: 4px; }

.ex-mist { margin: 0; padding-left: 20px; }
.ex-mist li { font-size: 13.5px; line-height: 1.7; margin-bottom: 6px; }
.ex-mist li::marker { color: var(--danger); font-weight: 800; }

.ex-kv { display: flex; flex-direction: column; gap: 2px; }
.ex-kv-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 0; border-bottom: 1px dashed rgba(255, 255, 255, .07);
}
.ex-kv-row:last-child { border-bottom: 0; }
.ex-kv-row span { flex: 0 0 62px; font-size: 12px; color: var(--txt3); }
.ex-kv-row b { font-size: 13.5px; font-weight: 600; }

/* 居中限宽：860px 容器里铺满会高到近 690px，得滚过一整屏才看得到下面的内容 */
.ex-body2 { max-width: 620px; margin: 0 auto; }
.ex-body2 canvas { display: block; width: 100%; height: auto; aspect-ratio: 620 / 516; }
/* 色块只说明「哪块亮」，补一行肌群名才读得出练的是什么 */
.ex-mus-names { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 12px; }
.ex-mus-names .tag {
  background: rgba(226, 84, 47, .14); color: #f0a78e;
  border-color: rgba(226, 84, 47, .28);
}

/* 肌群图图例：主练赭红、辅助淡一档，跟画布里两档填充颜色对应（肌肉用红是解剖图惯例） */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 4px 0 10px; vertical-align: middle; }
.dot-p { background: #e2542f; box-shadow: 0 0 6px rgba(226, 84, 47, 0.7); }
.dot-s { background: rgba(243, 189, 168, 0.85); }

/* 有视频时主视觉换成 <video>，尺寸和画布保持一致，切换不会跳版 */
/* 有视频时舞台按视频真实比例撑开（JS 读到分辨率后会覆盖 aspect-ratio），
   默认先给 16:9，和常见素材一致，避免加载瞬间高度塌成 0 */
.ex-stage.has-video {
  aspect-ratio: 16 / 9;
  max-height: 62vh;
}
.ex-stage.has-video video {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%;
  object-fit: contain;
  background: #0a0e13;
}

/* GIF 动图：浏览器自己循环，没有控件；比例由 JS 按 naturalWidth 覆盖 */
.ex-stage.has-gif {
  aspect-ratio: 16 / 9;
  max-height: 62vh;
}
.ex-stage.has-gif img {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%;
  object-fit: contain;
  background: #0a0e13;
}

/* ---------- 排行榜 / 里程碑 / 跑步 ---------- */

/* 我的成绩卡：左排名右数值，一眼能对上自己在榜里什么位置 */
.me-card .me-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0 2px; }
.me-rank { font-size: 20px; font-weight: 700; color: var(--acc); }
.me-val { font-size: 15px; font-weight: 600; }
.hint-box {
  margin-top: 10px; padding: 10px 12px;
  border-radius: var(--r-sm);
  background: rgba(255, 176, 32, .08);
  border: 1px solid rgba(255, 176, 32, .2);
  color: var(--txt2); font-size: 12px; line-height: 1.6;
}

/* 榜单行：名次 / 昵称 / 数值三栏，等宽数字避免上下跳动 */
.rank-list { margin-top: 4px; }
.rank-row {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--brd);
}
.rank-row:last-child { border-bottom: 0; }
.rank-row.me { background: rgba(0, 229, 160, .06); border-radius: var(--r-sm); padding-left: 10px; padding-right: 10px; }
.medal {
  flex: 0 0 26px; text-align: center;
  font-size: 14px; font-weight: 700; color: var(--txt3);
}
.medal.m1 { color: #ffd45e; }
.medal.m2 { color: #cfd6de; }
.medal.m3 { color: #d08a54; }
.rank-name { flex: 1; min-width: 0; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-name .lv { font-size: 11px; color: var(--txt3); margin-left: 6px; }
.rank-val { flex: 0 0 auto; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--txt); }

/* 头像：没有就退成昵称首字，空着一块比不显示还难看 */
.rank-av {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
  object-fit: cover; background: rgba(255, 255, 255, .06);
  border: 1px solid var(--brd);
}
.rank-av-t {
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 12px; font-weight: 700; color: var(--txt2);
}
/* 我掉出前 N 名时，榜单末尾用省略号接上自己那一行 */
.rank-gap { text-align: center; color: var(--txt3); font-size: 12px; padding: 6px 0; letter-spacing: 3px; }

/* 里程碑进度 */
.goal-list { display: grid; gap: 14px; }
.goal { padding: 2px 0; }
.goal-h { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.goal-i { font-size: 15px; }
.goal-t { flex: 1; font-size: 13.5px; font-weight: 600; }
.goal-n { font-size: 12px; color: var(--txt2); font-variant-numeric: tabular-nums; }
.goal-s { font-size: 11.5px; color: var(--txt3); margin-top: 5px; }
.goal.done .goal-t { color: var(--acc); }
.goal.done .bar > i { background: linear-gradient(90deg, var(--acc), var(--acc2)); }

/* 已达成时间线 */
.timeline { position: relative; }
.tl-row { display: flex; gap: 12px; padding: 9px 0; align-items: flex-start; }
.tl-dot {
  flex: 0 0 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--brd);
}
.tl-dot.t-bronze { border-color: rgba(208, 138, 84, .45); }
.tl-dot.t-silver { border-color: rgba(207, 214, 222, .45); }
.tl-dot.t-gold { border-color: rgba(255, 212, 94, .5); box-shadow: 0 0 12px rgba(255, 212, 94, .18); }
.tl-dot.t-platinum, .tl-dot.t-diamond { border-color: rgba(124, 92, 255, .5); box-shadow: 0 0 12px rgba(124, 92, 255, .2); }
.tl-body { flex: 1; min-width: 0; }
.tl-t { font-size: 13.5px; font-weight: 600; }
.tl-s { font-size: 11.5px; color: var(--txt2); margin-top: 2px; }
.tl-time { flex: 0 0 auto; font-size: 11px; color: var(--txt3); }

/* 里程统计三卡 */
.stat-row { display: flex; gap: 10px; }
.stat-box {
  flex: 1; min-width: 0; text-align: center;
  padding: 14px 8px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--brd);
}
.stat-box b { display: block; font-size: 21px; font-weight: 700; color: var(--acc); font-variant-numeric: tabular-nums; }
.stat-box span { display: block; font-size: 11.5px; color: var(--txt2); margin-top: 2px; }
.stat-box i { display: block; font-size: 10.5px; color: var(--txt3); font-style: normal; margin-top: 4px; }

/* 12 周里程柱状：纯 CSS，不引图表库 */
.trend {
  display: flex; align-items: flex-end; gap: 5px;
  height: 96px; margin-top: 16px;
  overflow: hidden;   /* 日期标签在窄屏会顶破卡片，超出的直接裁掉 */
}
.trend-col {
  flex: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  gap: 5px;
}
.trend-col > i {
  display: block; width: 100%; min-height: 3px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--acc), rgba(0, 229, 160, .25));
}
.trend-col { min-width: 0; }
.trend-col > span { font-size: 9.5px; color: var(--txt3); white-space: nowrap; transform: scale(.9); }

/* ---------- 打卡页动作选择器 ---------- */
.ex-pick {
  border: 1px solid var(--brd);
  border-radius: var(--r-sm);
  padding: 10px;
  background: rgba(0, 0, 0, .16);
}
.ex-pick #exSearch { margin-bottom: 10px; }
.ex-pick-list {
  max-height: 264px;
  overflow-y: auto;
  margin-top: 2px;
  -webkit-overflow-scrolling: touch;
}
.ex-pick-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.ex-pick-row:hover { background: rgba(255, 255, 255, .05); }
.ex-pick-row.on { background: rgba(0, 229, 160, .14); }
.ex-pick-row.on .ex-pick-n { color: var(--acc); font-weight: 600; }
/* 中文名和英文名各自截断：挤在一格里的话，中文长的动作会把英文切成
   「OVERHEAD TRICEPS S…」，等于没显示。中文优先给宽度，英文最多占四成。 */
.ex-pick-n {
  flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px;
  overflow: hidden;
}
.ex-pick-n > b {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: inherit;
}
.ex-pick-en {
  flex: 0 1 auto; min-width: 0; max-width: 42%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-style: normal; font-size: 9.5px; letter-spacing: .08em;
  color: var(--txt3); opacity: .75;
}
.ex-pick-m { flex: 0 0 auto; font-size: 11px; color: var(--txt3); }
.ex-picked {
  margin-top: 10px; padding: 9px 12px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .04);
  font-size: 12.5px; color: var(--txt2);
}
.ex-picked b { color: var(--acc); }

/* ---------- 运动圈 ---------- */
.compose { padding: 12px 14px; }
.compose textarea {
  width: 100%; border: 0; background: transparent; resize: none;
  color: var(--txt); font-size: 14px; font-family: inherit; line-height: 1.6;
  outline: none; padding: 2px 0 6px;
  /* 全局 textarea 有 min-height: 76px，发帖框会白白空出一大块 */
  min-height: 46px;
}
.compose textarea::placeholder { color: var(--txt3); }
.compose-pics { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.cp { position: relative; width: 66px; height: 66px; border-radius: 8px; overflow: hidden; }
.cp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-x {
  position: absolute; top: 2px; right: 2px; width: 18px; height: 18px;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .62); color: #fff;
  font-size: 12px; line-height: 18px; padding: 0; cursor: pointer;
}
.compose-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding-top: 8px; border-top: 1px solid var(--brd);
}
.compose-act { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.ref-tog {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--txt2); cursor: pointer; user-select: none;
}
.ref-tog input {
  width: 14px; height: 14px; min-width: 0; padding: 0; margin: 0;
  accent-color: var(--acc); cursor: pointer;
}
/* 全局兜底：没套 .ref-tog 的复选框（比如个人页的「排行榜显示我」）
   默认是浏览器蓝色方块，在深色霓虹界面里非常扎眼，统一成主题绿。 */
input[type="checkbox"] { accent-color: var(--acc); cursor: pointer; }

.post-list-card { padding: 0; overflow: hidden; }
.post-list { display: block; }
.post {
  padding: 14px; border-bottom: 1px solid var(--brd);
  border-radius: 0; background: transparent;
}
.post:last-child { border-bottom: 0; }
.post-h { display: flex; align-items: center; gap: 10px; }
.post-av {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--brd); background: rgba(255, 255, 255, .05);
}
.face-t {
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-weight: 700; font-size: 14px; color: var(--acc);
  background: rgba(0, 229, 160, .10);
}
.post-who { flex: 1; min-width: 0; }
.post-name {
  font-size: 13.5px; font-weight: 700; display: flex; align-items: baseline; gap: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.post-name .lv { font-size: 10.5px; font-weight: 500; color: var(--txt3); }
.post-time { font-size: 11px; color: var(--txt3); }
.post-del {
  flex: 0 0 auto; border: 0; background: transparent; color: var(--txt3);
  font-size: 12px; padding: 4px 6px; cursor: pointer; font-family: inherit;
}
.post-del:hover { color: var(--danger); }
.post-text {
  margin: 10px 0 0; font-size: 14px; line-height: 1.65; color: var(--txt);
  white-space: pre-wrap; word-break: break-word;
}

.pics { display: grid; gap: 5px; margin-top: 10px; }
.pics.n1 { grid-template-columns: 1fr; }
.pics.n1 .pic { max-height: 300px; width: auto; max-width: 100%; border-radius: 10px; }
.pics.n2 { grid-template-columns: repeat(2, 1fr); }
.pics.n3 { grid-template-columns: repeat(3, 1fr); }
.pic {
  width: 100%; min-width: 0; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 8px; display: block; cursor: zoom-in; background: rgba(255, 255, 255, .04);
}
.pics.n1 .pic { aspect-ratio: auto; }

/* 关联的打卡 / 跑步成绩小票 */
.ticket {
  display: flex; align-items: center; gap: 10px; margin-top: 10px;
  padding: 10px 12px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgba(0, 229, 160, .10), rgba(124, 92, 255, .08));
  border: 1px solid rgba(0, 229, 160, .18);
}
.tk-ico { flex: 0 0 auto; font-size: 20px; }
.tk-body { min-width: 0; }
.tk-t { font-size: 13px; font-weight: 700; color: var(--acc); }
.tk-s { font-size: 11.5px; color: var(--txt2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.post-act { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.pa {
  display: inline-flex; align-items: center; gap: 5px;
  border: 0; background: transparent; color: var(--txt2);
  font-size: 12.5px; padding: 4px 2px; cursor: pointer; font-family: inherit;
}
.pa:active { transform: scale(.94); }
.pa-i { font-size: 15px; line-height: 1; }
.pa.on { color: var(--danger); }
.pa-n { font-variant-numeric: tabular-nums; min-width: 8px; }
.pa-n:empty { display: none; }

.cmt-box {
  margin-top: 10px; padding: 10px 12px; border-radius: var(--r-sm);
  background: rgba(0, 0, 0, .22);
}
.cmt-empty { font-size: 12px; color: var(--txt3); }
.cmt { display: flex; gap: 6px; font-size: 12.5px; line-height: 1.6; padding: 3px 0; }
.cmt-n { flex: 0 0 auto; color: var(--acc2); font-weight: 600; }
.cmt-c { flex: 1; min-width: 0; color: var(--txt); word-break: break-word; }
.cmt-del {
  flex: 0 0 auto; border: 0; background: transparent; color: var(--txt3);
  font-size: 11px; cursor: pointer; padding: 0 2px; font-family: inherit;
}
.cmt-del:hover { color: var(--danger); }
.cmt-form { display: flex; gap: 8px; margin-top: 8px; }
.cmt-form input {
  flex: 1; min-width: 0; padding: 7px 10px; font-size: 12.5px;
  border-radius: 999px; background: rgba(255, 255, 255, .05);
}

.more-btn { display: block; margin: 12px auto; }
.empty-box { text-align: center; padding: 34px 16px; }
.empty-i { font-size: 30px; }
.empty-t { font-size: 14px; font-weight: 700; margin-top: 8px; }
.empty-s { font-size: 12px; color: var(--txt2); margin-top: 5px; }

.lightbox {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0, 0, 0, .92);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  cursor: zoom-out;
}
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; object-fit: contain; }

/* ===== v1.20.0 动作库：卡片网格 + 本地筛选 ===== */
.ex-lib-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(120deg, rgba(0, 229, 160, .12), rgba(124, 92, 255, .10));
  border-color: rgba(0, 229, 160, .24);
}
.ex-lib-cta .btn { flex: 0 0 auto; }
.ex-toolbar { display: grid; grid-template-columns: 1fr 132px; gap: 10px; margin-bottom: 12px; }
.ex-toolbar input, .ex-toolbar select { margin: 0; }
.ex-toolbar select { padding: 11px 8px; font-size: 12.5px; }
.ex-filter-label { font-size: 12px; font-weight: 700; margin: 2px 0 8px; }
.ex-filter-label .muted { font-weight: 400; font-size: 11px; margin-left: 6px; }
.ex-count { font-size: 11.5px; color: var(--txt2); margin: 2px 0 10px; }

.ex-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ex-card {
  min-width: 0; padding: 13px; border-radius: var(--r);
  border: 1px solid var(--brd); background: var(--card); cursor: pointer;
  transition: transform .14s, border-color .16s, background .16s;
}
.ex-card:hover { transform: translateY(-2px); border-color: rgba(0, 229, 160, .4); background: var(--card-hover); }
.ex-card-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.ex-card-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 9px; font-size: 13px; font-weight: 800;
  color: var(--acc); background: rgba(0, 229, 160, .12);
  border: 1px solid rgba(0, 229, 160, .24);
}
.ex-card-name { font-size: 14.5px; font-weight: 700; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-card-en {
  font-size: 10px; letter-spacing: .1em; color: var(--txt3); height: 15px; margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase;
}
.ex-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.ex-card-tags span {
  font-size: 10.5px; padding: 2px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); color: var(--txt2);
  border: 1px solid rgba(255, 255, 255, .07);
}
/* 动作模式 / 复合孤立：跟部位、器械、难度区分开，扫列表时多一层筛选直觉 */
.ex-card-tags span.pat {
  color: #b9a7ff; background: rgba(124, 92, 255, .13);
  border-color: rgba(124, 92, 255, .26);
}
.ex-card-mus {
  font-size: 11px; color: var(--txt3); margin-top: 9px; padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, .07);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ex-card-bd { min-width: 0; }
/* 移动端才出现的箭头，桌面是网格卡片不需要 */
.ex-card-arrow { display: none; color: var(--txt3); font-size: 17px; line-height: 1; }

/* ===== v1.23.0 动作库：吸顶筛选条 + 可折叠面板 =====
   215 个动作要滚很久，筛选条吸在页头下方，换条件不用滚回顶部。
   顶部高度由 JS 量一次写进 --dm-hdr-h（页头高度随字号/安全区变）。 */
.ex-sticky {
  position: sticky; top: var(--dm-hdr-h, 56px); z-index: 15;
  margin: 0 -14px 8px; padding: 8px 14px 4px;
  background: rgba(14, 17, 22, .97);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
/* 吸顶条下沿做一道渐隐，否则列表滚上来会被一条硬边切断 */
.ex-sticky::after {
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 14px;
  background: linear-gradient(180deg, rgba(14, 17, 22, .97), rgba(14, 17, 22, 0));
  pointer-events: none;
}
.ex-sticky .ex-toolbar { margin-bottom: 10px; }
.ex-sticky .chips { margin-bottom: 6px; }
/* 摘要行：折叠面板收起时唯一能看到「现在筛了什么」的地方，桌面有 chips 就不需要 */
.ex-sum { display: none; }
.ex-more-btn { display: none; }
@media (max-width: 620px) {
  .ex-card-grid { grid-template-columns: 1fr; gap: 8px; }
  .ex-toolbar { grid-template-columns: minmax(0, 1fr) 84px auto; gap: 8px; }
  .ex-toolbar input { font-size: 13px; padding: 10px 12px; }
  .ex-toolbar select { font-size: 12px; padding: 10px 4px; }
  .ex-lib-cta { flex-wrap: nowrap; padding: 11px 12px; gap: 10px; }
  .ex-lib-cta .muted { display: none; }
  .ex-lib-cta .btn { width: auto; flex: 0 0 auto; padding: 8px 12px; }

  /* 筛选入口：竖排小按钮，右上角带已选条件数 */
  .ex-more-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 0 10px; border-radius: 10px; font-size: 12px;
    color: var(--txt2); background: rgba(255, 255, 255, .05);
    border: 1px solid var(--brd); cursor: pointer; white-space: nowrap;
  }
  .ex-more-btn.on { color: var(--acc); border-color: rgba(0, 229, 160, .4); background: rgba(0, 229, 160, .1); }
  .ex-more-btn b { font-size: 11px; }
  .ex-more-btn b.on::before { content: '·'; margin-right: 2px; }
  .ex-sum { display: block; font-size: 11px; color: var(--txt3); margin: -4px 0 8px; }

  /* 折叠：默认收起，器械 + 素材 4 行 chip 会让首屏一张卡都放不下 */
  .ex-more { display: none; }
  .ex-more.open { display: block; }

  /* 卡片改紧凑行：图标 + 名称/标签/主练 + 箭头，一屏从 2 张变成 7～8 张 */
  .ex-card { display: flex; align-items: center; gap: 11px; padding: 11px 12px; }
  .ex-card:hover { transform: none; }
  .ex-card-hd { flex-direction: column; align-items: center; gap: 5px; margin: 0; flex: 0 0 auto; }
  .ex-card-hd .tag { font-size: 9.5px; padding: 1px 6px; border-radius: 999px; }
  .ex-card-bd { flex: 1 1 auto; min-width: 0; }
  .ex-card-name { font-size: 14px; }
  .ex-card-en { display: none; }
  .ex-card-tags { margin-top: 6px; gap: 4px; }
  .ex-card-tags span { font-size: 10px; padding: 1px 7px; }
  .ex-card-mus { margin-top: 5px; padding-top: 0; border-top: 0; font-size: 10.5px; }
  .ex-card-arrow { display: block; flex: 0 0 auto; }
}

/* ===== v1.20.0 制定训练计划：器械库 + 身高体重 ===== */
.pm-hero {
  background: linear-gradient(120deg, rgba(124, 92, 255, .14), rgba(0, 229, 160, .10));
  border-color: rgba(124, 92, 255, .28);
}
.pm-label { font-size: 12px; font-weight: 700; margin: 6px 0 8px; }
.pm-group { margin-bottom: 14px; }
.pm-group:last-child { margin-bottom: 0; }
.pm-group-t { font-size: 11.5px; color: var(--txt2); margin-bottom: 8px; letter-spacing: .04em; }
.pm-eq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.pm-eq {
  display: flex; align-items: flex-start; gap: 9px; text-align: left; min-width: 0;
  padding: 10px; border-radius: 12px; border: 1px solid var(--brd);
  background: rgba(0, 0, 0, .2); color: var(--txt);
  cursor: pointer; font-family: inherit; transition: all .16s;
}
.pm-eq:hover { border-color: rgba(0, 229, 160, .35); }
.pm-eq.on { border-color: rgba(0, 229, 160, .55); background: rgba(0, 229, 160, .10); }
.pm-eq-ico {
  flex: 0 0 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 12px; font-weight: 800; color: var(--acc2);
  background: rgba(124, 92, 255, .16);
}
.pm-eq.on .pm-eq-ico { color: var(--acc); background: rgba(0, 229, 160, .16); }
.pm-eq-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pm-eq-main b { font-size: 12.5px; font-weight: 700; }
.pm-eq-main i { font-style: normal; font-size: 10.5px; color: var(--acc); }
.pm-eq-main em {
  font-style: normal; font-size: 10.5px; color: var(--txt3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pm-eq-check { flex: 0 0 14px; font-size: 13px; color: var(--acc); text-align: center; }
.pm-err {
  font-size: 12.5px; color: var(--danger); background: rgba(255, 92, 122, .10);
  border: 1px solid rgba(255, 92, 122, .28); border-radius: 10px;
  padding: 9px 11px; margin-bottom: 12px;
}
.pm-stats { margin: 4px 0 12px; }
.pm-note {
  font-size: 12px; line-height: 1.7; color: var(--txt2); padding: 10px 12px;
  border-radius: 10px; background: rgba(255, 255, 255, .04); border-left: 2px solid var(--acc);
}
.pm-list { margin-top: 12px; }
.pm-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .07);
}
.pm-row:last-child { border-bottom: 0; }
.pm-idx {
  flex: 0 0 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 7px; font-size: 11px; font-weight: 700; color: var(--acc);
  background: rgba(0, 229, 160, .12);
}
.pm-row b { font-size: 13px; }
.pm-row .muted { font-size: 10.5px; margin-top: 2px; }
.pm-set { margin-left: auto; flex: 0 0 auto; font-size: 11.5px; color: var(--txt2); white-space: nowrap; }
.pm-actions { display: flex; gap: 10px; margin-top: 14px; }
.pm-actions .btn { flex: 1; }
@media (max-width: 560px) { .pm-eq-grid { grid-template-columns: 1fr; } }

/* ===== 动作详情增强（v1.21.0）：属性标签墙 / 训练规格 / 我的数据 / 相关动作 ===== */
.card-a { font-size: 11px; font-weight: 400; color: var(--txt3); text-align: right; flex: 0 1 auto; }
.ex-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 10px; }
.ex-tags .tag { padding: 3px 10px; font-size: 11px; }
.ex-summary {
  font-size: 12.5px; line-height: 1.7; color: var(--txt2);
  margin: 0 0 14px; padding-left: 10px;
  border-left: 2px solid rgba(0, 229, 160, .4);
}
.ex-spec-foot { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.ex-spec-foot > div {
  font-size: 12px; line-height: 1.6; color: var(--txt2);
  background: rgba(255, 255, 255, .035); border-radius: 9px; padding: 8px 10px;
}
.ex-spec-foot span {
  display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 6px;
  font-size: 10.5px; font-weight: 700; color: var(--acc);
  background: rgba(0, 229, 160, .12);
}
.ex-my-empty { text-align: center; padding: 8px 4px 4px; }
.ex-my-empty b { display: block; font-size: 13px; margin-bottom: 6px; }
.ex-my-empty p { margin: 0; font-size: 12px; line-height: 1.7; color: var(--txt3); }
.ex-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ex-stat {
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--brd);
  min-width: 0;
}
.ex-stat b { display: block; font-size: 18px; line-height: 1.35; color: var(--acc); white-space: nowrap; }
.ex-stat span { font-size: 11px; color: var(--txt3); }
.ex-hist { margin-top: 14px; }
.ex-hist-t { font-size: 11px; color: var(--txt3); margin-bottom: 4px; }
.ex-hist-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 6px 0; border-bottom: 1px dashed rgba(255, 255, 255, .07); font-size: 12px;
}
.ex-hist-row:last-child { border-bottom: 0; }
.ex-hist-row span { color: var(--txt3); flex: 0 0 auto; }
.ex-hist-row b { font-weight: 600; text-align: right; }
.ex-my-extra { margin-top: 10px; font-size: 11px; line-height: 1.6; color: var(--txt3); }
.ex-rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 9px; }
.ex-rel {
  cursor: pointer; padding: 10px 11px; border-radius: 10px;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--brd);
  transition: border-color .18s, background .18s, transform .18s;
  min-width: 0;
}
.ex-rel:hover { border-color: rgba(0, 229, 160, .42); background: rgba(0, 229, 160, .07); transform: translateY(-1px); }
.ex-rel-t { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-rel-en { font-size: 10px; color: var(--txt3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-rel-r { font-size: 11px; color: var(--acc); margin-top: 6px; line-height: 1.4; }
.ex-rel-m { font-size: 10.5px; color: var(--txt3); margin-top: 3px; }
.ex-courses { display: flex; flex-direction: column; gap: 2px; }
.ex-course {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 9px 2px; border-bottom: 1px dashed rgba(255, 255, 255, .07); font-size: 12px;
}
.ex-course:last-child { border-bottom: 0; }
.ex-course b { flex: 1; min-width: 0; font-weight: 600; }
.ex-course span { flex: 0 0 auto; color: var(--txt2); font-size: 11px; }
.ex-course:hover b { color: var(--acc); }
.ex-foot { display: flex; gap: 10px; }
.ex-foot .btn { flex: 1; }

/* 宽屏时舞台原本按 860px 全宽撑到 770px 高，首屏只剩一个动画；
   把画布限到 540px 居中，人物不变小，下面的内容能进首屏 */
.ex-stage { display: flex; align-items: center; justify-content: center; }
.ex-stage > canvas { max-width: 540px; }
@media (max-width: 560px) {
  .ex-rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-a { font-size: 10px; }
  .ex-stat b { font-size: 16px; }
}

/* ===== 演示节拍：进度条上的可点刻度 + 第几次 ===== */
.ex-hud-r { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; white-space: nowrap; }
.ex-loop { color: var(--acc); font-weight: 700; letter-spacing: 0; }
.ex-ticks {
  position: absolute; left: 14px; right: 14px; bottom: 56px; height: 14px;
  pointer-events: none; z-index: 3;
}
.ex-tick {
  position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  appearance: none; cursor: pointer; pointer-events: auto; padding: 0;
  border-radius: 50%; background: rgba(9, 12, 16, .92);
  border: 1.5px solid rgba(255, 255, 255, .30);
  transition: transform .16s, border-color .16s, background .16s;
}
.ex-tick:hover { border-color: var(--acc); transform: scale(1.2); }
.ex-tick.on {
  border-color: var(--acc); background: var(--acc);
  box-shadow: 0 0 10px rgba(0, 229, 160, .6);
}

/* ===== 边看边练：分步导览条 ===== */
.ex-walk-card { padding-bottom: 15px; }
.ex-walk { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.ex-walk::-webkit-scrollbar { height: 0; }
.ex-walk-s {
  appearance: none; cursor: pointer; flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 8px; border-radius: 999px; font-size: 12px;
  color: var(--txt2); background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09); transition: all .16s;
}
.ex-walk-s i {
  font-style: normal; width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700;
  background: rgba(255, 255, 255, .10); color: var(--txt2);
}
.ex-walk-s:hover { color: var(--txt); border-color: rgba(255, 255, 255, .22); }
.ex-walk-s.on { color: #04150f; background: var(--acc); border-color: transparent; font-weight: 700; }
.ex-walk-s.on i { background: rgba(4, 21, 15, .18); color: #04150f; }
.ex-walk-text {
  margin-top: 10px; font-size: 12.5px; line-height: 1.7; color: var(--txt);
  padding: 10px 12px; border-radius: 10px;
  background: rgba(0, 229, 160, .06); border-left: 2px solid rgba(0, 229, 160, .55);
}
.ex-walk-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ex-meta-b {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--txt2);
  padding: 4px 9px 4px 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .07);
}
.ex-meta-b i {
  font-style: normal; font-size: 10px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .10); color: var(--txt2);
}
.ex-meta-b.in i { background: rgba(124, 92, 255, .22); color: #b8a4ff; }
.ex-meta-b.out i { background: rgba(0, 229, 160, .18); color: var(--acc); }
/* 没有圈的那种：目标次数本身已经带单位，圈里再写「次」就重复了 */
.ex-meta-b.plain { padding-left: 9px; }

@media (max-width: 560px) {
  .ex-walk { gap: 5px; }
  .ex-walk-s { padding: 6px 10px 6px 7px; font-size: 11.5px; }
  .ex-walk-text { font-size: 12px; }
}
