/* 瑜伽垫尺寸与厚度选择器 · 青绿单列主题 */
:root {
  --ym-a: #0d9488;
  --ym-a2: #2dd4bf;
  --ym-a3: #0f766e;
  --ym-soft: #ccfbf1;
  --ym-bg: #f2fbfa;
  --ym-card: #ffffff;
  --ym-card2: #f7fdfc;
  --ym-txt: #0f2e2b;
  --ym-txt2: #47635f;
  --ym-txt3: #7c9691;
  --ym-line: #d5ece8;
  --ym-line2: #e9f6f4;
  --ym-ok: #15803d;
  --ym-warn: #b45309;
  --ym-bad: #be123c;
  --ym-shadow: 0 1px 2px rgba(13, 148, 136, .06), 0 12px 32px -16px rgba(15, 118, 110, .28);
  --ym-r: 18px;
  --ym-r2: 11px;
}

[data-theme='dark'] .ym {
  --ym-a: #2dd4bf;
  --ym-a2: #5eead4;
  --ym-a3: #99f6e4;
  --ym-soft: #0f3b36;
  --ym-bg: #081715;
  --ym-card: #10231f;
  --ym-card2: #0c1c19;
  --ym-txt: #e6fbf7;
  --ym-txt2: #a9c8c1;
  --ym-txt3: #71918b;
  --ym-line: #1e3b36;
  --ym-line2: #17302c;
  --ym-ok: #4ade80;
  --ym-warn: #fbbf24;
  --ym-bad: #fb7185;
  --ym-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 36px -18px rgba(0, 0, 0, .65);
}

.ym { background: var(--ym-bg); color: var(--ym-txt); padding: 26px 0 46px; }
.ym-inner { width: min(1140px, calc(100% - 44px)); max-width: none; margin: 0 auto; }

/* ================= Hero ================= */
.ym-hero {
  position: relative;
  text-align: center;
  padding: 34px 34px 18px;
  border-radius: 24px;
  background:
    radial-gradient(760px 260px at 50% -10%, rgba(45, 212, 191, .22), transparent 70%),
    linear-gradient(180deg, var(--ym-card) 0%, var(--ym-card2) 100%);
  border: 1px solid var(--ym-line);
  box-shadow: var(--ym-shadow);
  overflow: hidden;
}
.ym-hero::before {
  content: '';
  position: absolute; left: 50%; top: -180px; transform: translateX(-50%);
  width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid rgba(45, 212, 191, .2);
  box-shadow: 0 0 0 60px rgba(45, 212, 191, .05), 0 0 0 130px rgba(45, 212, 191, .035);
  pointer-events: none;
}
.ym-kicker {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .5px;
  color: var(--ym-a3);
  background: var(--ym-soft);
  border: 1px solid color-mix(in srgb, var(--ym-a) 24%, transparent);
  padding: 6px 13px; border-radius: 999px;
}
.ym-hero h1 {
  position: relative;
  margin: 15px auto 0; max-width: 820px;
  font-size: clamp(27px, 3.6vw, 42px); line-height: 1.2;
  letter-spacing: -.8px; font-weight: 800;
}
.ym-hero h1 em {
  font-style: normal; display: inline-block; margin-top: 6px;
  color: var(--ym-a);
  background: linear-gradient(180deg, transparent 60%, rgba(45, 212, 191, .3) 60%);
  padding: 0 3px;
}
.ym-sub {
  position: relative;
  margin: 14px auto 0; max-width: 66ch;
  font-size: 14.5px; line-height: 1.85; color: var(--ym-txt2);
}
.ym-sub b { color: var(--ym-txt); font-weight: 700; }
.ym-tags { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.ym-tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px;
  padding: 6px 11px; border-radius: 9px;
  background: var(--ym-card); border: 1px solid var(--ym-line); color: var(--ym-txt2);
}
.ym-tag i { color: var(--ym-a); font-style: normal; font-weight: 800; }

/* ---- 纯 CSS 插画：卷起的瑜伽垫 + 人体剪影 ---- */
.ym-art { position: relative; height: 236px; margin-top: 4px; }
.ym-mat {
  position: absolute; left: 50%; bottom: 24px;
  width: 300px; height: 120px;
  transform: translateX(-56%) rotate(-6deg);
}
.ym-mat-roll {
  position: absolute; left: 0; bottom: 0;
  width: 100px; height: 92px;
  border-radius: 50% 48% 48% 50% / 50%;
  background: linear-gradient(140deg, #5eead4 0%, #2dd4bf 38%, #0d9488 100%);
  box-shadow: inset -10px -8px 18px rgba(0, 0, 0, .22), 0 10px 22px -12px rgba(13, 148, 136, .7);
  z-index: 3;
}
.ym-mat-spiral {
  position: absolute; inset: 13px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, .55);
  background: radial-gradient(circle at 40% 38%, rgba(255, 255, 255, .55) 0 18%, transparent 19%);
  box-shadow: inset 0 0 0 4px rgba(15, 118, 110, .25), inset 0 0 0 8px rgba(255, 255, 255, .28);
}
.ym-mat-tail {
  position: absolute; left: 82px; bottom: 12px;
  width: 210px; height: 58px;
  border-radius: 4px 28px 28px 4px;
  background: linear-gradient(180deg, #99f6e4 0%, #2dd4bf 45%, #0d9488 100%);
  box-shadow: 0 12px 24px -16px rgba(13, 148, 136, .8);
  z-index: 2;
}
.ym-mat-lines { position: absolute; left: 100px; bottom: 12px; width: 190px; height: 58px; pointer-events: none; }
.ym-mat-lines s {
  position: absolute; left: 0; right: 0; height: 1px;
  background: rgba(255, 255, 255, .35);
}
.ym-mat-lines s:nth-child(1) { top: 18px; }
.ym-mat-lines s:nth-child(2) { top: 29px; }
.ym-mat-lines s:nth-child(3) { top: 40px; }

.ym-figure {
  position: absolute; right: 14%; bottom: 26px;
  width: 130px; height: 190px;
}
.ym-figure-h {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(160deg, #0f766e, #134e4a);
  box-shadow: 0 6px 14px -8px rgba(15, 118, 110, .8);
}
.ym-figure-t {
  position: absolute; left: 50%; top: 40px; transform: translateX(-50%);
  width: 58px; height: 78px;
  border-radius: 28px 28px 20px 20px;
  background: linear-gradient(160deg, #0f766e, #115e59);
}
.ym-figure-arm {
  position: absolute; top: 50px;
  width: 15px; height: 62px; border-radius: 999px;
  background: linear-gradient(160deg, #0f766e, #134e4a);
  transform-origin: 50% 8px;
}
.ym-figure-arm.a1 { left: 15px; transform: rotate(26deg); }
.ym-figure-arm.a2 { right: 15px; transform: rotate(-26deg); }
.ym-figure-leg {
  position: absolute; bottom: 0;
  width: 84px; height: 46px;
  border-radius: 50% 50% 40% 40% / 70% 70% 30% 30%;
  background: linear-gradient(180deg, #115e59, #134e4a);
}
.ym-figure-leg.l1 { left: 6px; transform: rotate(9deg); }
.ym-figure-leg.l2 { right: 6px; transform: rotate(-9deg); }
.ym-wave {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: 420px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(45, 212, 191, .35);
  border-top-color: transparent;
  animation: ymBreath 5.5s ease-in-out infinite;
}
.ym-wave.w2 { width: 520px; height: 62px; opacity: .5; animation-delay: 2.7s; }
@keyframes ymBreath {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: .55; }
  50% { transform: translateX(-50%) scale(1.05); opacity: .95; }
}
.ym-chip {
  position: absolute; z-index: 5;
  font-size: 11.5px; padding: 6px 11px; border-radius: 9px;
  background: var(--ym-card); border: 1px solid var(--ym-line);
  color: var(--ym-txt2); box-shadow: var(--ym-shadow); white-space: nowrap;
}
.ym-chip b { color: var(--ym-a); }
.ym-chip.ym-c1 { left: 6%; top: 42px; animation: ymFloat 4.4s ease-in-out infinite; }
.ym-chip.ym-c2 { right: 5%; top: 96px; animation: ymFloat 4.4s ease-in-out .8s infinite; }
@keyframes ymFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ================= 单列主体 ================= */
.ym-body { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }

.ym-card {
  background: var(--ym-card);
  border: 1px solid var(--ym-line);
  border-radius: var(--ym-r);
  box-shadow: var(--ym-shadow);
  padding: 22px 24px 24px;
}
.ym-card-h {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 18px;
}
.ym-card-h h2 {
  margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.2px;
  display: flex; align-items: center; gap: 9px;
}
.ym-no {
  font-size: 11px; font-weight: 800; letter-spacing: .5px; color: #fff;
  background: var(--ym-a3); padding: 3px 7px; border-radius: 6px;
}
[data-theme='dark'] .ym .ym-no { color: #06201d; }
.ym-card-h small { font-size: 12px; color: var(--ym-txt3); }

.ym-field { margin-bottom: 4px; min-width: 0; }
.ym-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ym-label label { font-size: 13.5px; font-weight: 600; color: var(--ym-txt); }
.ym-label label b { color: var(--ym-bad); }
.ym-hint { font-size: 11.5px; color: var(--ym-txt3); }

.ym-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.ym-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; }

.ym-range-row { display: grid; grid-template-columns: 1fr 120px; gap: 14px; align-items: center; }
.ym-range-row input[type='range'] {
  -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--ym-a2), var(--ym-a)) no-repeat var(--ym-line);
  background-size: 100% 100%;
  outline: none;
}
.ym-range-row input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ym-a); border: 3px solid var(--ym-card);
  box-shadow: 0 0 0 1px var(--ym-a); cursor: pointer;
}
.ym-range-row input[type='range']::-moz-range-thumb {
  width: 16px; height: 16px; border: none; border-radius: 50%; background: var(--ym-a); cursor: pointer;
}
.ym-numbox {
  display: flex; align-items: center; border: 1px solid var(--ym-line);
  border-radius: var(--ym-r2); background: var(--ym-card2); overflow: hidden;
}
.ym-numbox input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ym-txt);
  font-size: 15px; font-weight: 700; padding: 9px 10px; outline: none;
}
.ym-numbox span {
  padding: 0 10px; font-size: 12px; color: var(--ym-txt3);
  background: var(--ym-line2); align-self: stretch; display: flex; align-items: center;
}
.ym-err { display: none; margin-top: 6px; font-size: 12px; color: var(--ym-bad); }
.ym-err.on { display: block; }
.ym-field.bad .ym-numbox, .ym-field.bad .ym-control,
.ym-field.bad .ym-range-row input[type='range'] {
  border-color: var(--ym-bad);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ym-bad) 14%, transparent);
}

.ym-meta-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed var(--ym-line);
}
.ym-meta {
  font-size: 12px; color: var(--ym-txt3);
  background: var(--ym-card2); border: 1px solid var(--ym-line);
  padding: 5px 10px; border-radius: 8px;
}
.ym-meta b { color: var(--ym-a); font-size: 13px; margin: 0 2px; }

.ym-seg { display: flex; gap: 6px; flex-wrap: wrap; background: var(--ym-line2); padding: 5px; border-radius: var(--ym-r2); }
.ym-segbtn {
  flex: 1 1 auto; min-width: 100px; border: 0; background: transparent; color: var(--ym-txt2);
  font-size: 12.5px; font-weight: 600; padding: 10px 10px; border-radius: 8px; cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s;
}
.ym-segbtn.on { background: var(--ym-card); color: var(--ym-a3); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
[data-theme='dark'] .ym .ym-segbtn.on { color: var(--ym-a); }
.ym-segbtn:hover { color: var(--ym-a); }

.ym-control { border: 1px solid var(--ym-line); border-radius: var(--ym-r2); background: var(--ym-card2); }
.ym-control select {
  width: 100%; border: 0; background: transparent; color: var(--ym-txt);
  font-size: 13.5px; padding: 11px 12px; outline: none; cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ym-txt3) 50%), linear-gradient(135deg, var(--ym-txt3) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.ym-switch-row { display: flex; align-items: center; gap: 9px; height: 42px; }
.ym-switch {
  appearance: none; width: 44px; height: 25px; border-radius: 999px;
  background: var(--ym-line); position: relative; cursor: pointer; transition: background .2s; flex: none;
}
.ym-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.ym-switch:checked { background: var(--ym-a); }
.ym-switch:checked::after { transform: translateX(19px); }
.ym-switch-txt { font-size: 12.5px; color: var(--ym-txt2); }

.ym-tip {
  margin: 14px 0 0; font-size: 12.5px; line-height: 1.75; color: var(--ym-txt3);
  background: var(--ym-line2); border-left: 3px solid var(--ym-a2);
  padding: 10px 13px; border-radius: 0 9px 9px 0;
}
.ym-tip code { font-size: 12px; background: var(--ym-card); padding: 1px 5px; border-radius: 4px; color: var(--ym-a); }

.ym-thickfield { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--ym-line); }
.ym-thick-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; }
.ym-thick-foot > span { font-size: 12px; color: var(--ym-txt3); }
.ym-mini {
  border: 1px solid var(--ym-line); background: var(--ym-card2); color: var(--ym-a);
  font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 7px; cursor: pointer;
}
.ym-mini:hover { background: var(--ym-soft); }

.ym-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.ym-actions.tight { margin-top: 12px; }
.ym-btn {
  border: 1px solid var(--ym-line); background: var(--ym-card); color: var(--ym-txt);
  font-size: 13px; font-weight: 600; padding: 10px 17px; border-radius: 10px; cursor: pointer;
  transition: transform .12s, box-shadow .18s, background .18s;
}
.ym-btn:hover { transform: translateY(-1px); box-shadow: 0 7px 18px -12px rgba(0, 0, 0, .55); }
.ym-btn.primary { background: var(--ym-a); border-color: var(--ym-a); color: #fff; }
[data-theme='dark'] .ym .ym-btn.primary { color: #06201d; }
.ym-btn.ghost { background: transparent; color: var(--ym-txt2); }
.ym-msg { margin-top: 10px; font-size: 12.5px; color: var(--ym-txt3); }

/* ================= 结果卡 ================= */
.ym-result { border-color: color-mix(in srgb, var(--ym-a) 32%, var(--ym-line)); }
.ym-result .ym-card-h small { font-weight: 700; color: var(--ym-txt3); }
.ym-result .ym-card-h small.ok { color: var(--ym-ok); }
.ym-result .ym-card-h small.warn { color: var(--ym-warn); }

.ym-verdict {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 22px; border-radius: 14px;
  background: linear-gradient(120deg, var(--ym-soft), transparent 70%);
  border: 1px solid color-mix(in srgb, var(--ym-a) 18%, var(--ym-line));
}
.ym-verdict-label { display: block; font-size: 12px; color: var(--ym-txt3); letter-spacing: .5px; }
.ym-verdict-num { display: flex; align-items: baseline; gap: 4px; margin-top: 2px; }
.ym-verdict-num strong {
  font-size: clamp(42px, 6vw, 60px); line-height: 1; font-weight: 800;
  color: var(--ym-a); letter-spacing: -2px;
}
.ym-verdict-num span { font-size: 14px; color: var(--ym-txt2); }
.ym-verdict p { margin: 8px 0 0; font-size: 13px; color: var(--ym-txt2); max-width: 46ch; line-height: 1.7; }
.ym-verdict-right { display: flex; align-items: center; gap: 10px; flex: none; }
.ym-verdict-size { text-align: center; }
.ym-verdict-size b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.ym-verdict-size small { font-size: 11px; color: var(--ym-txt3); }
.ym-verdict-x { color: var(--ym-txt3); font-size: 16px; }

.ym-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--ym-line2); margin-top: 14px; border-radius: 12px; overflow: hidden; }
.ym-kpi { background: var(--ym-card); padding: 14px 16px; }
.ym-kpi span { display: block; font-size: 11.5px; color: var(--ym-txt3); }
.ym-kpi b { display: inline-block; font-size: 18px; font-weight: 800; color: var(--ym-txt); margin-top: 3px; letter-spacing: -.4px; }
.ym-kpi small { font-size: 11px; color: var(--ym-txt3); margin-left: 3px; }

/* ---- 0–12mm 厚度刻度尺 ---- */
.ym-ruler-box { margin-top: 18px; padding: 16px 18px 12px; border: 1px solid var(--ym-line); border-radius: 14px; background: var(--ym-card2); }
.ym-ruler-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ym-ruler-head h3 { margin: 0; font-size: 14px; font-weight: 800; }
.ym-ruler-head span { font-size: 11.5px; color: var(--ym-txt3); }
.ym-ruler { position: relative; height: 76px; margin: 26px 6px 0; }
.ym-ruler::before {
  content: ''; position: absolute; left: 0; right: 0; top: 20px; height: 12px;
  border-radius: 999px; background: var(--ym-line2);
  border: 1px solid var(--ym-line);
}
.ym-ruler::after {
  content: ''; position: absolute; left: 0; right: 0; top: 25px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--ym-line) 0 1px, transparent 1px calc(100% / 12));
}
.ym-ruler-band {
  position: absolute; left: 41.6%; width: 25%; top: 16px; height: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(45, 212, 191, .35), rgba(13, 148, 136, .45));
  border: 1px dashed color-mix(in srgb, var(--ym-a) 45%, transparent);
  display: flex; align-items: center; justify-content: center;
}
.ym-ruler-band span { font-size: 9.5px; color: var(--ym-a3); font-weight: 700; white-space: nowrap; }
[data-theme='dark'] .ym .ym-ruler-band span { color: var(--ym-a); }
.ym-ruler-pin {
  position: absolute; top: -4px; left: 41.6%; width: 42px; transform: translateX(-50%);
  transition: left .35s ease;
  text-align: center; z-index: 4;
}
.ym-ruler-pin b {
  display: inline-block; min-width: 34px;
  font-size: 12px; font-weight: 800; color: #fff; background: var(--ym-a);
  padding: 3px 6px; border-radius: 7px 7px 2px 2px;
  box-shadow: 0 5px 12px -6px rgba(13, 148, 136, .8);
}
[data-theme='dark'] .ym .ym-ruler-pin b { color: #06201d; }
.ym-ruler-pin i {
  display: block; margin: 0 auto; width: 2px; height: 30px;
  background: var(--ym-a);
}
.ym-ruler-ticks { position: absolute; left: 0; right: 0; top: 38px; height: 38px; }
.ym-ruler-ticks span { position: absolute; top: 0; transform: translateX(-50%); text-align: center; }
.ym-ruler-ticks u {
  display: block; width: 1px; height: 8px; margin: 0 auto 3px;
  background: var(--ym-txt3); text-decoration: none;
}
.ym-ruler-ticks span b {
  display: block; font-size: 10.5px; font-weight: 500; color: var(--ym-txt3); white-space: nowrap;
}
.ym-ruler-ticks .t3 b, .ym-ruler-ticks .t5 b, .ym-ruler-ticks .t6 b,
.ym-ruler-ticks .t8 b, .ym-ruler-ticks .t10 b { color: var(--ym-a); font-weight: 800; }
.ym-ruler-ticks .t0 { left: 0; }
.ym-ruler-ticks .t1 { left: 8.33%; }
.ym-ruler-ticks .t2 { left: 16.66%; }
.ym-ruler-ticks .t3 { left: 25%; }
.ym-ruler-ticks .t4 { left: 33.33%; }
.ym-ruler-ticks .t5 { left: 41.66%; }
.ym-ruler-ticks .t6 { left: 50%; }
.ym-ruler-ticks .t7 { left: 58.33%; }
.ym-ruler-ticks .t8 { left: 66.66%; }
.ym-ruler-ticks .t9 { left: 75%; }
.ym-ruler-ticks .t10 { left: 83.33%; }
.ym-ruler-ticks .t11 { left: 91.66%; }
.ym-ruler-ticks .t12 { left: 100%; }
.ym-ruler-foot { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ym-txt3); margin-top: 2px; }

/* ---- 四类练习对照 ---- */
.ym-spec { margin-top: 18px; }
.ym-spec h3 { margin: 0 0 10px; font-size: 14px; font-weight: 800; }
.ym-spec h3 small { font-weight: 500; font-size: 11.5px; color: var(--ym-txt3); margin-left: 6px; }
.ym-spec tr.on td { background: var(--ym-soft); }
.ym-spec tr.on td:first-child { font-weight: 800; color: var(--ym-a3); }
[data-theme='dark'] .ym .ym-spec tr.on td:first-child { color: var(--ym-a); }
.ym-spec td b { color: var(--ym-a); }

.ym-advice { margin-top: 18px; }
.ym-advice h3 { margin: 0 0 9px; font-size: 13.5px; font-weight: 800; }
.ym-advice ul { margin: 0; padding-left: 19px; }
.ym-advice li { font-size: 12.8px; line-height: 1.8; color: var(--ym-txt2); margin-bottom: 5px; }
.ym-advice li b { color: var(--ym-txt); }
.ym-risk {
  margin-top: 12px; padding: 11px 13px; border-radius: 10px;
  background: color-mix(in srgb, var(--ym-warn) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--ym-warn) 34%, transparent);
  font-size: 12.5px; line-height: 1.7; color: var(--ym-txt2);
}
.ym-risk strong { color: var(--ym-warn); margin-right: 6px; }

/* ================= 三档方案 ================= */
.ym-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ym-plan {
  position: relative; border: 1.5px solid var(--ym-line); border-radius: 15px;
  background: var(--ym-card2); padding: 18px 17px 15px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.ym-plan.rec {
  border-color: var(--ym-a); background: var(--ym-card);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ym-a) 15%, transparent);
}
.ym-plan-tag {
  position: absolute; right: 13px; top: -10px;
  font-size: 10.5px; font-weight: 800; color: #fff; background: var(--ym-a);
  padding: 3px 9px; border-radius: 999px;
}
[data-theme='dark'] .ym .ym-plan-tag { color: #06201d; }
.ym-plan h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
.ym-plan h3 span { font-size: 12px; font-weight: 500; color: var(--ym-txt3); margin-left: 5px; }
.ym-plan > p { margin: 4px 0 12px; font-size: 12px; color: var(--ym-txt3); }
.ym-plan dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; font-size: 12.5px; }
.ym-plan dt { color: var(--ym-txt3); }
.ym-plan dd { margin: 0; text-align: right; font-weight: 600; color: var(--ym-txt); }
.ym-plan .ym-note { margin-top: 10px; font-size: 12px; line-height: 1.7; color: var(--ym-txt3); }
.ym-plan .ym-note em { font-style: normal; color: var(--ym-ok); }
.ym-plan .ym-note u { text-decoration: none; color: var(--ym-warn); }
.ym-plan .ym-pick {
  margin-top: auto; padding-top: 12px;
}
.ym-plan .ym-pick button {
  width: 100%; border: 0; border-radius: 9px; padding: 9px;
  font-size: 12.5px; font-weight: 700; cursor: pointer;
  background: var(--ym-line2); color: var(--ym-txt2);
}
.ym-plan.rec .ym-pick button { background: var(--ym-a); color: #fff; }
[data-theme='dark'] .ym .ym-plan.rec .ym-pick button { color: #06201d; }

/* ================= 表格 / 步骤 ================= */
.ym-table-wrap { overflow-x: auto; border: 1px solid var(--ym-line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.ym-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.ym-table th, .ym-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--ym-line2); vertical-align: top; }
.ym-table th { background: var(--ym-line2); font-size: 12px; color: var(--ym-txt2); font-weight: 700; white-space: nowrap; }
.ym-table td:last-child { color: var(--ym-txt3); font-size: 12px; }
.ym-table td b { color: var(--ym-txt); }
.ym-table tr:last-child td { border-bottom: 0; }
.ym-table tbody tr:hover td { background: color-mix(in srgb, var(--ym-a) 5%, transparent); }

.ym-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.ym-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: 13px; line-height: 1.8; color: var(--ym-txt2); }
.ym-steps li b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--ym-soft); color: var(--ym-a3); font-size: 12px; font-weight: 800;
}
[data-theme='dark'] .ym .ym-steps li b { color: var(--ym-a); }
.ym-steps li p { margin: 0; }
.ym-steps li em {
  display: block; font-style: normal;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; color: var(--ym-a); margin-top: 3px;
  background: var(--ym-card2); border-left: 2px solid var(--ym-a2); padding: 3px 8px;
}

.ym-textarea {
  width: 100%; min-height: 118px; resize: vertical; box-sizing: border-box;
  border: 1px solid var(--ym-line); border-radius: 12px; background: var(--ym-card2);
  color: var(--ym-txt); font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; line-height: 1.7; padding: 12px; margin-top: 10px;
}
.ym-textarea:focus { outline: 2px solid color-mix(in srgb, var(--ym-a) 40%, transparent); border-color: var(--ym-a); }

.ym-history { display: flex; flex-direction: column; gap: 8px; }
.ym-hist-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--ym-line); border-radius: 10px; padding: 10px 13px;
  background: var(--ym-card2); font-size: 12.5px; color: var(--ym-txt2);
}
.ym-hist-item b { color: var(--ym-txt); }
.ym-hist-item button {
  border: 0; background: var(--ym-soft); color: var(--ym-a3);
  font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 7px; cursor: pointer;
}
[data-theme='dark'] .ym .ym-hist-item button { color: var(--ym-a); }
.ym-empty { font-size: 12.5px; color: var(--ym-txt3); margin: 0; }

/* ================= 响应式 ================= */
@media (max-width: 1024px) {
  .ym-art { height: 210px; }
  .ym-figure { right: 6%; }
  .ym-plans { grid-template-columns: 1fr 1fr; }
  .ym-verdict { flex-direction: column; align-items: flex-start; }
  .ym-verdict-right { align-self: flex-end; }
}
@media (max-width: 700px) {
  .ym-inner { width: calc(100% - 28px); }
  .ym { padding: 18px 0 34px; }
  .ym-hero { padding: 24px 18px 14px; border-radius: 18px; }
  .ym-hero::before { display: none; }
  .ym-art { height: 180px; transform: scale(.86); transform-origin: center bottom; }
  .ym-mat { left: 46%; }
  .ym-figure { right: 0; }
  .ym-chip.ym-c1 { left: 0; top: 18px; }
  .ym-chip.ym-c2 { right: 0; top: 70px; }
  .ym-card { padding: 17px 16px 19px; }
  .ym-grid2, .ym-grid3 { grid-template-columns: 1fr; }
  .ym-range-row { grid-template-columns: 1fr 104px; }
  .ym-kpis { grid-template-columns: 1fr 1fr; }
  .ym-plans { grid-template-columns: 1fr; }
  .ym-verdict-num strong { font-size: 46px; }
  .ym-actions .ym-btn { flex: 1 1 44%; }
  .ym-ruler { margin-left: 10px; margin-right: 10px; }
  .ym-ruler-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ym-ruler-head span { align-self: flex-end; }
  .ym-ruler-ticks span b { font-size: 9px; }
  .ym-ruler-band span { display: none; }
  .ym-table { min-width: 560px; }
}

/* ================= 打印 ================= */
@media print {
  .ym-actions, .ym-textarea, .ym-history, .ym-thick-foot, .ym-msg,
  .ym-hero-art, .ym-art, .tsk-crumb-bar, .ym-mini { display: none !important; }
  .ym { padding: 0; background: #fff; }
  .ym-hero { box-shadow: none; border-color: #ddd; background: #fff; }
  .ym-card, .ym-result { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .ym-table-wrap { overflow: visible; }
  .ym-table { min-width: 0; }
  .ym-plans { grid-template-columns: 1fr 1fr 1fr; }
}

/* ================= 全站对齐：面包屑 / 内容 / 底部 ================= */
.tsk-crumb-bar-in {
  width: min(1140px, calc(100% - 44px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 11px 0 !important;
}
.tsk-crumb { font-size: 13px; }
@media (max-width: 700px) {
  .tsk-crumb-bar-in { width: calc(100% - 28px) !important; padding: 9px 0 !important; }
}
