/* ==========================================================================
   岐黄识穴 · H5
   设计令牌沿用画布：宣纸米白底 / 墨绿主色 / 朱砂点睛 / 宋体标题
   ========================================================================== */

:root {
  --paper: #f7f2e8;
  --card: #fffdf7;
  --green: #2f4a3c;
  --green-deep: #24382e;
  --green-soft: #3e5c4c;
  --green-pale: #eef1ea;
  --cinnabar: #b4473b;
  --cinnabar-ink: #93443a;
  --cinnabar-pale: #f7e8e3;
  --sand: #efe6d4;
  --line: #e7ddc9;
  --ink: #23201b;
  --ink2: #5f5648;
  --ink3: #7a7062;
  --ink4: #9a9080;
  --ink5: #b3a896;
  --gold: #c8ac7a;
  --gold-ink: #7a6a45;

  --serif: Georgia, "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --num: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --shadow: 0 2px 10px rgba(35, 32, 27, 0.04);
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #ede7db;
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body {
  display: flex;
  justify-content: center;
}

#app {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100%;
  max-height: 100vh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(35, 32, 27, 0.08);
}

/* 桌面预览时给一点边距，手机上自动铺满 */
@media (min-width: 520px) and (min-height: 720px) {
  body {
    padding: 20px 0;
  }
  #app {
    height: calc(100% - 40px);
    border-radius: 20px;
  }
}

/* ------------------------------ 屏幕容器 ------------------------------ */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transform: translateX(16px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s;
  will-change: opacity, transform;
}

.screen.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.screen.leaving {
  transform: translateX(-16px);
}

.scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 20px calc(20px + env(safe-area-inset-bottom));
}

.scroll.no-tab {
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

/* 有 tabbar 时给内容留出空间 */
.screen.has-tab .scroll {
  padding-bottom: 16px;
}

/* ------------------------------ 顶栏 ------------------------------ */
.topbar {
  padding: calc(env(safe-area-inset-top) + 14px) 20px 6px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex: none;
}

.topbar h1 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.32;
  margin: 0;
  letter-spacing: 0.01em;
}

.topbar .sub {
  font-size: 12px;
  color: var(--ink3);
  margin-top: 5px;
  line-height: 1.5;
}

.topbar-right {
  flex: none;
  padding-top: 4px;
  font-size: 12px;
  color: var(--ink4);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 二级页返回栏 */
.navbar {
  padding: calc(env(safe-area-inset-top) + 10px) 20px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  min-height: 44px;
}

.navbar .title {
  font-size: 12px;
  color: var(--ink3);
  letter-spacing: 0.08em;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s;
  margin-left: -6px;
}
.icon-btn:active {
  background: rgba(0, 0, 0, 0.05);
}
.icon-btn.right {
  margin-left: 0;
  margin-right: -6px;
}

/* ------------------------------ 通用块 ------------------------------ */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
}

.card.tight {
  padding: 13px;
  border-radius: var(--r-md);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stack.sm {
  gap: 9px;
}

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.sec-head .t {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}
.sec-head .m {
  font-size: 11px;
  color: var(--ink4);
}
.sec-head .m.tap {
  cursor: pointer;
}

.muted {
  color: var(--ink3);
  font-size: 12px;
  line-height: 1.7;
}
.tiny {
  font-size: 10px;
  color: var(--ink4);
  line-height: 1.7;
}

/* ------------------------------ 按钮 ------------------------------ */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 25px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.15s;
  background: var(--green);
  color: var(--card);
}
.btn:active {
  transform: scale(0.985);
  opacity: 0.92;
}
.btn:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}
.btn.cinnabar {
  background: var(--cinnabar);
  color: #fff7f0;
}
.btn.ghost {
  background: var(--card);
  color: var(--ink2);
  border: 1px solid var(--line);
}
.btn.sm {
  height: 42px;
  font-size: 13px;
  border-radius: 21px;
}
.btn .ic {
  flex: none;
}

.btn-row {
  display: flex;
  gap: 10px;
}
.btn-row .btn {
  flex: 1;
}

/* 吸底操作区
 * 实色区必须够长（82%），否则上方滚动内容会从渐变里半透出来，
 * 看起来像「文字压在按钮上」。渐变只留在最上面一段做柔和过渡。 */
.dock {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  padding: 16px 0 calc(8px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--paper) 82%, rgba(247, 242, 232, 0.94) 92%, rgba(247, 242, 232, 0));
}

/* ------------------------------ 标签 / 胶囊 ------------------------------ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: var(--card);
  color: var(--ink2);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
  font-family: var(--sans);
}
.chip.on {
  background: var(--green);
  color: var(--card);
  border-color: var(--green);
}
.chip.sm {
  padding: 6px 12px;
  font-size: 11px;
}
.chip:active {
  transform: scale(0.96);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 500;
  background: var(--sand);
  color: var(--gold-ink);
}

.dot-cinnabar {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cinnabar);
  flex: none;
}

/* ------------------------------ 底部 tabbar ------------------------------ */
.tabbar {
  flex: none;
  padding: 6px 20px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--paper) 70%, rgba(247, 242, 232, 0));
}

.tabbar-inner {
  display: flex;
  gap: 2px;
  padding: 5px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 29px;
  box-shadow: var(--shadow);
}

.tab {
  flex: 1;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: none;
  background: transparent;
  border-radius: 24px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink4);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--sans);
  letter-spacing: 0.02em;
}
.tab.on {
  background: var(--green);
  color: var(--card);
}
.tab svg {
  width: 17px;
  height: 17px;
}
.tab.on svg {
  color: var(--card);
}

/* ------------------------------ 01 首页 ------------------------------ */
.hero {
  position: relative;
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, var(--green-soft) 0%, var(--green-deep) 100%);
  padding: 18px;
  color: var(--card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero::after {
  /* 极淡的圆纹，避免大面积纯色显得平 */
  content: "";
  position: absolute;
  right: -46px;
  top: -56px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(216, 199, 158, 0.16);
  box-shadow: 0 0 0 26px rgba(216, 199, 158, 0.05);
  pointer-events: none;
}

.hero .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.hero .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 20px;
  background: rgba(255, 253, 247, 0.14);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #ebd9b8;
}

.hero .hint {
  font-size: 11px;
  color: #8fa396;
  letter-spacing: 0.05em;
}

.hero h2 {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.42;
  margin: 0;
}

.hero p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 12px;
  line-height: 1.72;
  color: #bfb7a2;
}

.hero .cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--card);
  cursor: pointer;
}

/* 此刻宜养 */
.shichen {
  display: flex;
  align-items: stretch;
  gap: 13px;
}
.shichen .badge {
  flex: none;
  width: 52px;
  border-radius: var(--r-md);
  background: var(--sand);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 9px 0;
}
.shichen .badge .n {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--green);
  line-height: 1;
}
.shichen .badge .m {
  font-size: 9px;
  color: var(--gold-ink);
}
.shichen .body {
  flex: 1;
  min-width: 0;
}
.shichen .body .t {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}
.shichen .body .d {
  font-size: 11px;
  color: var(--ink2);
  line-height: 1.72;
}

/* 今日穴位卡 */
.pt-row {
  display: flex;
  gap: 11px;
}
.pt-card {
  flex: 1;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pt-card:active {
  transform: scale(0.983);
  border-color: var(--gold);
}
.pt-card .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.pt-card .nm {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}
.pt-card .mer {
  font-size: 10px;
  color: var(--ink4);
}
.pt-card .eff {
  font-size: 12px;
  color: var(--ink2);
  line-height: 1.6;
  min-height: 38px;
}
.pt-card .meta {
  font-size: 10px;
  font-weight: 500;
  color: var(--cinnabar);
}

/* 入口行 */
.entry {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: transform 0.14s ease;
}
.entry:active {
  transform: scale(0.988);
}
.entry .seal {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}
.entry .seal.green {
  background: var(--green);
  color: var(--card);
}
.entry .seal.red {
  background: var(--cinnabar);
  color: #fff7f0;
}
.entry .seal.sand {
  background: var(--sand);
  color: var(--green);
}
.entry .txt {
  flex: 1;
  min-width: 0;
}
.entry .txt .t {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
}
.entry .txt .d {
  font-size: 11px;
  color: var(--ink4);
  line-height: 1.6;
}
.entry .arr {
  flex: none;
  color: var(--ink5);
}

/* ------------------------------ 02 识穴 ------------------------------ */
.viewfinder {
  position: relative;
  height: 300px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(160deg, #2a3f34 0%, #1a2821 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewfinder .corner {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.viewfinder .scanline {
  position: absolute;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(200, 172, 122, 0.9), transparent);
  box-shadow: 0 0 12px rgba(200, 172, 122, 0.6);
  animation: scan 2.2s ease-in-out infinite;
}
@keyframes scan {
  0%,
  100% {
    top: 18%;
    opacity: 0.25;
  }
  50% {
    top: 78%;
    opacity: 1;
  }
}

.viewfinder .guide {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 30px;
}
.viewfinder .guide .ic {
  margin: 0 auto 12px;
  opacity: 0.85;
}
.viewfinder .guide .t {
  font-size: 13px;
  color: #cfc5ac;
  margin-bottom: 6px;
}
.viewfinder .guide .s {
  font-size: 10px;
  color: #7e8f7f;
  line-height: 1.7;
}

.viewfinder img.shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.viewfinder .result-chip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 14px;
  background: rgba(51, 71, 58, 0.94);
  backdrop-filter: blur(6px);
  transform: translateY(60px);
  opacity: 0;
  transition: all 0.32s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.viewfinder .result-chip.show {
  transform: translateY(0);
  opacity: 1;
}
.viewfinder .result-chip .t {
  font-size: 11px;
  font-weight: 500;
  color: var(--card);
}
.viewfinder .result-chip .m {
  font-size: 10px;
  color: #a9b6a6;
}

.body-parts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.part {
  padding: 14px 8px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.part.on {
  background: var(--green);
  border-color: var(--green);
}
.part.on .nm {
  color: var(--card);
}
.part.on .ct {
  color: rgba(255, 253, 247, 0.6);
}
.part .nm {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.part .ct {
  font-size: 10px;
  color: var(--ink4);
}

/* ------------------------------ 03 穴位详情 ------------------------------ */
.point-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 0 6px;
}
.point-seal {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 600;
  color: var(--green);
}
.point-name {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.32;
  margin: 2px 0 0;
}
.point-py {
  font-size: 11px;
  color: var(--ink4);
  letter-spacing: 0.04em;
}

.info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.info-head .t {
  font-size: 13px;
  font-weight: 600;
}
.info-body {
  font-size: 12px;
  color: var(--ink2);
  line-height: 1.86;
  margin: 0;
}

.quick-box {
  margin-top: 11px;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  background: var(--green-pale);
  border-left: 2px solid var(--green);
}
.quick-box .lb {
  font-size: 10px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}
.quick-box .tx {
  font-size: 12px;
  color: var(--ink2);
  line-height: 1.78;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 2px;
}
.press-cell {
  background: var(--paper);
  border-radius: var(--r-sm);
  padding: 10px 8px;
  text-align: center;
}
.press-cell .v {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--num);
}
.press-cell .v.serif {
  font-family: var(--serif);
}
.press-cell .k {
  font-size: 9px;
  color: var(--ink4);
  margin-top: 3px;
}

.ind-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ind {
  font-size: 11px;
  color: var(--ink2);
  background: var(--paper);
  border-radius: 8px;
  padding: 5px 10px;
}

.warn-bar {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 12px;
  border-radius: var(--r-sm);
  background: var(--cinnabar-pale);
}
.warn-bar .ic {
  flex: none;
  margin-top: 1px;
}
.warn-bar p {
  margin: 0;
  font-size: 11px;
  color: var(--cinnabar-ink);
  line-height: 1.74;
}

.point-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.fav-btn {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 25px;
  border: 1px solid var(--line);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s;
}
.fav-btn.on {
  background: var(--cinnabar-pale);
  border-color: rgba(180, 71, 59, 0.3);
}
.fav-btn.on svg {
  color: var(--cinnabar);
}

/* ------------------------------ 04 辨证 ------------------------------ */
.bubble {
  border-radius: 4px 18px 18px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 15px;
}
.bubble .t {
  font-size: 14px;
  line-height: 1.72;
  margin: 0 0 7px;
}
.bubble .s {
  font-size: 10px;
  color: var(--ink4);
  margin: 0;
}

.sym-group .gh {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}
.sym-group .gh .n {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
}
.sym-group .gh .c {
  font-size: 10px;
  color: var(--ink5);
}
.sym-group .gh .ln {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.sym-strip {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 8px 0;
  background: linear-gradient(to bottom, var(--paper) 78%, rgba(247, 242, 232, 0));
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--ink3);
}
.sym-strip b {
  color: var(--cinnabar);
  font-family: var(--num);
  font-size: 13px;
}

/* ------------------------------ 05 结果 ------------------------------ */
.concl {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(152deg, var(--green-soft), var(--green-deep));
  padding: 18px;
  color: var(--card);
  overflow: hidden;
}
.concl .lb {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}
.concl .tt {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.42;
  margin: 0 0 8px;
}
.concl .nt {
  font-size: 11px;
  line-height: 1.78;
  color: #bfc7bb;
  margin: 0;
}
.concl .dc {
  font-size: 9px;
  color: #8fa396;
  margin-top: 10px;
}

.alert {
  display: flex;
  gap: 10px;
  padding: 13px;
  border-radius: var(--r-md);
  background: var(--cinnabar-pale);
  border: 1px solid rgba(180, 71, 59, 0.18);
}
.alert .ic {
  flex: none;
  margin-top: 1px;
}
.alert .tt {
  font-size: 12px;
  font-weight: 600;
  color: var(--cinnabar-ink);
  margin-bottom: 4px;
}
.alert .tx {
  font-size: 11px;
  color: var(--cinnabar-ink);
  line-height: 1.72;
  margin: 0;
  opacity: 0.92;
}

.plan-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: transform 0.14s;
}
.plan-row:active {
  transform: scale(0.99);
}
.plan-idx {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
}
.plan-idx.main {
  background: var(--cinnabar);
  color: #fff7f0;
}
.plan-idx.sub {
  background: var(--sand);
  color: var(--green);
}
.plan-txt {
  flex: 1;
  min-width: 0;
}
.plan-txt .n {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}
.plan-txt .m {
  font-size: 10px;
  color: var(--ink4);
  margin-top: 3px;
}
.plan-dur {
  flex: none;
  font-size: 10px;
  font-weight: 500;
  color: var(--gold-ink);
}

.fold {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  overflow: hidden;
}
.fold > summary {
  padding: 13px 15px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink2);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fold > summary::-webkit-details-marker {
  display: none;
}
.fold > summary::after {
  content: "＋";
  color: var(--ink5);
  font-size: 13px;
}
.fold[open] > summary::after {
  content: "−";
}
.fold .inner {
  padding: 0 15px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.fold .inner .row {
  font-size: 11px;
  color: var(--ink3);
  line-height: 1.74;
}
.fold .inner .row b {
  color: var(--ink2);
  font-weight: 600;
}

/* ------------------------------ 06 理疗 ------------------------------ */
#s-therapy {
  background: radial-gradient(120% 80% at 50% 0%, #fbf7ee 0%, var(--paper) 60%);
}

.timer-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 8px auto 4px;
}
.timer-wrap svg {
  position: absolute;
  inset: 0;
}
.ring-bg {
  fill: none;
  stroke: var(--line);
  stroke-width: 7;
}
.ring-fg {
  fill: none;
  stroke: var(--cinnabar);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 603.19;
  stroke-dashoffset: 0;
  transform: rotate(-90deg);
  transform-origin: 110px 110px;
  transition: stroke-dashoffset 0.6s linear;
}
.ring-dot {
  fill: var(--cinnabar);
}
.timer-core {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.timer-core .cur {
  font-size: 12px;
  color: var(--ink3);
  font-weight: 500;
}
.timer-core .big {
  font-family: var(--num);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.timer-core .pg {
  font-size: 10px;
  color: var(--ink4);
}

.rhythm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--sand);
  font-size: 11px;
  font-weight: 500;
  color: var(--gold-ink);
  letter-spacing: 0.03em;
}

.beat {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 16px;
}
.beat i {
  width: 3px;
  border-radius: 2px;
  background: var(--gold-ink);
  opacity: 0.5;
  animation: beat 1.6s ease-in-out infinite;
}
.beat i:nth-child(1) {
  height: 7px;
  animation-delay: 0s;
}
.beat i:nth-child(2) {
  height: 14px;
  animation-delay: 0.2s;
}
.beat i:nth-child(3) {
  height: 9px;
  animation-delay: 0.4s;
}
@keyframes beat {
  0%,
  100% {
    transform: scaleY(0.5);
  }
  50% {
    transform: scaleY(1);
  }
}

.done-panel {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.done-panel.show {
  opacity: 1;
  visibility: visible;
}
.done-panel .seal {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--green);
  color: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 30px;
  margin-bottom: 8px;
  animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.done-panel h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  margin: 0;
}
.done-panel .d {
  font-size: 12px;
  color: var(--ink3);
  text-align: center;
  line-height: 1.8;
  margin: 0;
}
.done-stats {
  display: flex;
  gap: 30px;
  margin: 18px 0 22px;
}
.done-stats .c {
  text-align: center;
}
.done-stats .v {
  font-family: var(--num);
  font-size: 22px;
  font-weight: 600;
}
.done-stats .k {
  font-size: 10px;
  color: var(--ink4);
  margin-top: 2px;
}

/* ------------------------------ 07 图鉴 ------------------------------ */
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--line);
}
.search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  font-family: var(--sans);
  color: var(--ink);
  min-width: 0;
}
.search input::placeholder {
  color: var(--ink5);
}
.search .clr {
  flex: none;
  border: none;
  background: var(--line);
  color: var(--ink3);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}
.search .clr.show {
  display: flex;
}

.filter-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}
.filter-scroll::-webkit-scrollbar {
  display: none;
}

.pt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* 经络卷标：横跨两列，作为「图谱分卷」的视觉锚点 */
.pt-sep {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 -1px;
}
.pt-sep:first-child {
  margin-top: 2px;
}
.pt-sep .t {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.pt-sep .c {
  font-size: 11px;
  color: var(--ink4);
}
.pt-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  align-self: center;
  background: var(--line);
  transform: translateY(1px);
}
.pt-tile {
  padding: 13px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.14s;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pt-tile:active {
  transform: scale(0.98);
}
.pt-tile .n {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}
.pt-tile .m {
  font-size: 10px;
  color: var(--ink4);
}
.pt-tile .c {
  font-size: 10px;
  font-weight: 500;
  color: var(--cinnabar);
}

/* ------------------------------ 08 我的 ------------------------------ */
.constitution {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--green-soft), var(--green-deep));
  color: var(--card);
}
.constitution .seal {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cinnabar);
  color: #fff7f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}
.constitution .n {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}
.constitution .d {
  font-size: 10px;
  color: #bfc7bb;
  margin-top: 4px;
  line-height: 1.6;
}

.stats {
  display: flex;
  padding: 15px 0;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--line);
}
.stats .c {
  flex: 1;
  text-align: center;
  position: relative;
}
.stats .c + .c::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 1px;
  background: var(--line);
}
.stats .v {
  font-family: var(--num);
  font-size: 19px;
  font-weight: 600;
}
.stats .k {
  font-size: 9px;
  color: var(--ink4);
  margin-top: 3px;
}

.week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.wk-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.wk-day .d {
  font-size: 9px;
  color: var(--ink5);
  line-height: 1;
}
.wk-day .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
  display: block;
  margin: 0 auto;
}
.wk-day.on .dot {
  background: var(--cinnabar);
}
.wk-day.today .dot {
  background: transparent;
  border: 1px solid var(--cinnabar);
  box-shadow: 0 0 0 3px rgba(180, 71, 59, 0.14);
}
.wk-day.today .d {
  color: var(--ink);
  font-weight: 600;
}

.rec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--r-sm);
  background: var(--card);
  border: 1px solid var(--line);
}
.rec-item .t {
  flex: 1;
  min-width: 0;
}
.rec-item .n {
  font-size: 12px;
  font-weight: 500;
}
.rec-item .m {
  font-size: 10px;
  color: var(--ink4);
  margin-top: 3px;
}
.rec-item .s {
  flex: none;
  font-size: 10px;
  font-weight: 500;
  color: var(--green);
}

/* ------------------------------ 弹层 / Toast ------------------------------ */
.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(35, 32, 27, 0.36);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet-mask.show {
  opacity: 1;
  visibility: visible;
}
.sheet {
  width: 100%;
  max-width: 480px;
  background: var(--paper);
  border-radius: 22px 22px 0 0;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.24, 0.86, 0.36, 1);
  max-height: 82vh;
  overflow-y: auto;
}
.sheet-mask.show .sheet {
  transform: translateY(0);
}
.sheet .grip {
  width: 34px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  margin: -8px auto 14px;
}
.sheet h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translate(-50%, 14px);
  z-index: 200;
  max-width: 84vw;
  padding: 11px 18px;
  border-radius: 22px;
  background: rgba(35, 32, 27, 0.9);
  color: #fffdf7;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.24s ease;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ------------------------------ 骨架 / 空态 ------------------------------ */
.sk {
  border-radius: var(--r-md);
  background: linear-gradient(90deg, #efe9dc 25%, #f6f1e6 50%, #efe9dc 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.sk-line {
  height: 12px;
  margin-bottom: 8px;
}
.sk-line:last-child {
  width: 60%;
}

.empty {
  padding: 40px 20px;
  text-align: center;
}
.empty .ic {
  margin: 0 auto 12px;
  color: var(--line);
}
.empty .t {
  font-size: 13px;
  color: var(--ink3);
  margin-bottom: 6px;
}
.empty .d {
  font-size: 11px;
  color: var(--ink5);
  line-height: 1.7;
}

.spin {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.fade-in {
  animation: fadeIn 0.32s ease both;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .viewfinder .scanline {
    top: 50%;
  }
}

/* ==========================================================================
   会员体系（登录 / 会员中心 / 疗程）
   这一段是后加的，只依赖上面的令牌，不覆盖任何既有选择器
   ========================================================================== */

/* ---------------- 登录 ---------------- */
.auth-hero {
  padding: 8px 4px 4px;
}
.auth-hero .seal {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #fffdf7;
  font-family: var(--serif);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.auth-hero h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
  color: var(--green);
}
.auth-hero p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink3);
}

.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 11px;
  color: var(--ink3);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}
.field input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  padding: 0 14px;
  font-size: 15px;
  font-family: var(--sans);
  color: var(--ink);
  outline: none;
  transition: border-color 0.16s, background 0.16s;
}
.field input::placeholder {
  color: var(--ink5);
  font-size: 13px;
}
.field input:focus {
  border-color: var(--green-soft);
  background: var(--card);
}
.field input.bad {
  border-color: var(--cinnabar);
}
.field .hint {
  font-size: 10.5px;
  color: var(--ink5);
  margin-top: 6px;
  line-height: 1.6;
}
.field .hint.err {
  color: var(--cinnabar);
}

.card .btn + .btn {
  margin-top: 10px;
}

.note-soft {
  background: var(--green-pale);
  border: 1px solid #dde5d9;
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--ink2);
}
.note-soft b {
  color: var(--green);
}

/* ---------------- 会员状态卡 ---------------- */
.mhero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--green) 0%, var(--green-deep) 100%);
  border-radius: var(--r-lg);
  padding: 20px 18px;
  color: #fffdf7;
}
/* 点阵：和门户页同一套纹理，锚定同一套视觉 */
.mhero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 253, 247, 0.14) 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: linear-gradient(120deg, transparent 30%, #000 100%);
  -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000 100%);
  pointer-events: none;
}
.mhero > * {
  position: relative;
  z-index: 1;
}
.mhero .lb {
  font-size: 10px;
  letter-spacing: 0.22em;
  opacity: 0.62;
  text-transform: uppercase;
}
.mhero h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  margin: 8px 0 6px;
  letter-spacing: 0.02em;
}
.mhero .d {
  font-size: 11.5px;
  line-height: 1.75;
  opacity: 0.78;
  margin: 0;
}
.mhero .mt {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 14px;
}
.mhero .mt .v {
  font-family: var(--num);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.mhero .mt .u {
  font-size: 11px;
  opacity: 0.7;
}
.mhero .exp {
  font-size: 10.5px;
  opacity: 0.6;
  margin-top: 4px;
}
.mhero .soon {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(200, 172, 122, 0.22);
  border: 1px solid rgba(200, 172, 122, 0.45);
  font-size: 10px;
  color: #e8d9b6;
}

/* ---------------- 权益对照 ---------------- */
.feat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}
.feat:last-child {
  border-bottom: none;
}
.feat .mk {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  line-height: 1;
}
.feat .mk.free {
  background: var(--green-pale);
  color: var(--green);
}
.feat .mk.pro {
  background: var(--cinnabar-pale);
  color: var(--cinnabar);
}
.feat .tx {
  flex: 1;
  min-width: 0;
}
.feat .tx .n {
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.5;
}
.feat .tx .note {
  font-size: 10.5px;
  color: var(--ink4);
  margin-top: 2px;
  line-height: 1.6;
}
.feat .vv {
  flex: none;
  font-size: 11px;
  color: var(--ink3);
  text-align: right;
  padding-left: 6px;
}
.feat.always .vv {
  color: var(--green);
  font-size: 10.5px;
}

/* ---------------- 套餐 ---------------- */
.pkg {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  margin-bottom: 9px;
  text-align: left;
  width: 100%;
  font-family: var(--sans);
  transition: border-color 0.16s, background 0.16s;
}
.pkg.on {
  border-color: var(--green);
  background: #fbfdf9;
  box-shadow: 0 0 0 2px rgba(47, 74, 60, 0.07);
}
.pkg .radio {
  flex: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid var(--ink5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pkg.on .radio {
  border-color: var(--green);
}
.pkg.on .radio::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}
.pkg .info {
  flex: 1;
  min-width: 0;
}
.pkg .info .n {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
}
.pkg .info .b {
  font-size: 10.5px;
  color: var(--ink4);
  margin-top: 3px;
  line-height: 1.5;
}
.pkg .price {
  flex: none;
  text-align: right;
}
.pkg .price .p {
  font-family: var(--num);
  font-size: 19px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.02em;
}
.pkg .price .p small {
  font-size: 11px;
  font-weight: 400;
  margin-right: 1px;
}
.pkg .price .o {
  font-size: 10px;
  color: var(--ink5);
  text-decoration: line-through;
  margin-top: 1px;
}
.pkg .badge {
  position: absolute;
  top: -1px;
  right: 12px;
  background: var(--cinnabar);
  color: #fff;
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 0 0 6px 6px;
  letter-spacing: 0.02em;
}

/* ---------------- 兑换码 ---------------- */
.redeem {
  display: flex;
  gap: 8px;
}
.redeem input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  padding: 0 14px;
  font-family: var(--num);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--ink);
  outline: none;
  text-transform: uppercase;
}
.redeem input:focus {
  border-color: var(--green-soft);
  background: var(--card);
}
.redeem .btn {
  flex: none;
  width: auto;
  padding: 0 20px;
  height: 46px;
}

/* 访客的兑换位。没有输入框，只有一个「为什么得先登录」的说明 + 按钮。
 * 这一段只新增类名，不覆盖上面任何既有选择器。 */
.rdguest {
  padding: 3px 2px 1px;
}
.rdguest .t {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.rdguest .d {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink3);
}
.rdguest .btn {
  margin-top: 14px;
  width: 100%;
  height: 44px;
}

.codelog {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 11px;
  color: var(--ink3);
}
.codelog:last-child {
  border-bottom: none;
}
.codelog .c {
  font-family: var(--num);
  letter-spacing: 0.04em;
  color: var(--ink2);
}

/* ---------------- 疗程 ---------------- */
.ccard {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  padding: 16px;
  box-shadow: var(--shadow);
}
.ccard .top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.ccard .top .t {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--green);
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.ccard .top .st {
  flex: none;
  font-size: 9.5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--green-pale);
  color: var(--green);
}
.ccard .top .st.done {
  background: var(--sand);
  color: var(--gold-ink);
}
.ccard .sub {
  font-size: 10.5px;
  color: var(--ink4);
  line-height: 1.6;
  margin-bottom: 12px;
}

.pbar {
  height: 5px;
  border-radius: 3px;
  background: var(--sand);
  overflow: hidden;
  margin: 10px 0 8px;
}
.pbar > i {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 3px;
  transition: width 0.4s ease;
}
.pmeta {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--ink4);
}
.pmeta b {
  font-family: var(--num);
  color: var(--green);
  font-weight: 600;
}

.today-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.today-box .hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.today-box .hd .lb {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink4);
  text-transform: uppercase;
}
.today-box .hd .n {
  font-size: 11px;
  color: var(--cinnabar);
}
.today-box .names {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 12px;
}
.today-box .names em {
  font-style: normal;
  color: var(--ink3);
  font-size: 11px;
  margin-left: 6px;
}

.dgrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.dcell {
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-family: var(--sans);
  padding: 0;
  cursor: pointer;
  transition: transform 0.12s;
}
.dcell:active {
  transform: scale(0.94);
}
.dcell .n {
  font-family: var(--num);
  font-size: 11.5px;
  color: var(--ink4);
  font-weight: 600;
  line-height: 1;
}
.dcell .k {
  font-size: 7.5px;
  color: var(--ink5);
  line-height: 1;
  transform: scale(0.92);
}
.dcell.done {
  background: var(--green);
  border-color: var(--green);
}
.dcell.done .n {
  color: #fffdf7;
}
.dcell.done .k {
  color: rgba(255, 253, 247, 0.62);
}
.dcell.today {
  border-color: var(--cinnabar);
  box-shadow: 0 0 0 2px rgba(180, 71, 59, 0.13);
}
.dcell.today .n {
  color: var(--cinnabar);
}
.dcell.phase-start {
  border-left-width: 2px;
  border-left-color: var(--gold);
}

.phase-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 9.5px;
  color: var(--ink5);
}
.phase-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.phase-legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--ink5);
}

/* ---------------- 锁 / 引导 ---------------- */
.lockbox {
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  padding: 18px 16px;
  text-align: center;
}
.lockbox .ic {
  width: 38px;
  height: 38px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lockbox .t {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 6px;
}
.lockbox .d {
  font-size: 11px;
  color: var(--ink4);
  line-height: 1.8;
  margin: 0 0 14px;
}
.lockbox .btn {
  width: auto;
  padding: 0 22px;
  margin: 0 auto;
  display: inline-flex;
}

.day-locked {
  position: relative;
}
.day-locked::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(247, 242, 232, 0.6) 0 6px,
    rgba(231, 221, 201, 0.42) 6px 12px
  );
  border-radius: 9px;
  pointer-events: none;
}

/* 会员标识小徽章，用在「我的」页头像旁 */
.vip-dot {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c8ac7a, #b4473b);
  color: #fff;
  font-size: 9px;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
