/* 单位换算大冒险 · 专属样式（公共样式见 ../common/base.css） */
/* ---------- 进阶条 ---------- */
.ladder { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.ladder-step {
  text-decoration: none; display: flex; flex-direction: column; align-items: center; padding: 8px 18px; border-radius: 16px; background: #fff;
  border: 2px solid var(--line); min-width: 130px;
}
.ladder-step b { font-size: 16px; }
.ladder-step span { font-weight: 800; color: var(--mc); }
.ladder-step small { color: var(--muted); font-size: 12px; }
.ladder-step.on { border-color: var(--mc); background: var(--mc-soft); }
.ladder-arrow { color: #c9b9a4; font-size: 22px; }

/* ---------- 长度 ---------- */
.stairs { display: flex; align-items: flex-end; gap: 4px; overflow-x: auto; padding: 4px 2px 8px; }
.stair {
  flex: 1; min-width: 70px; border: none; cursor: pointer; border-radius: 14px; padding: 10px 6px; color: #fff;
  background: var(--sc); height: calc(150px - var(--i) * 20px); display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  transition: transform .15s; box-shadow: 0 4px 0 rgba(0,0,0,.12);
}
.stair:nth-of-type(1) { --sc: #e8553a; }
.stair:nth-of-type(2) { --sc: #f08c1c; }
.stair:nth-of-type(3) { --sc: #2fa86a; }
.stair:nth-of-type(4) { --sc: #2d8fd5; }
.stair:nth-of-type(5) { --sc: #7a5ad8; }
.stair b { font-size: 18px; }
.stair small { opacity: .85; }
.stair:hover { transform: translateY(-3px); }
.stair.on { outline: 4px solid #2d2a32; outline-offset: 2px; }
.stair-rate { display: flex; flex-direction: column; align-items: center; font-weight: 800; font-size: 13px; padding-bottom: 8px; }
.stair-rate span { color: var(--mc); }
.stair-rate small { color: var(--muted); }

.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 10px 0 18px; }
.crumb { border: 2px solid var(--line); background: #fff; border-radius: 99px; padding: 4px 12px; cursor: pointer; font-weight: 700; font-size: 14px; }
.crumb.on { background: var(--mc); border-color: var(--mc); color: #fff; }
.crumb-arrow { color: #c9b9a4; }
.crumb-rate { font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 2px; }
.crumb-rate.big { color: var(--bad); }
.zseg.fine { background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.18) 0 1px, transparent 1px 10%); }
.zseg.fine span { background: rgba(255,255,255,.75); border-radius: 6px; padding: 0 4px; }
.zbar { position: relative; display: flex; height: 90px; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 3px rgba(0,0,0,.08); }
.zseg {
  flex: 1; display: grid; place-items: center; cursor: zoom-in; border-right: 2px solid rgba(255,255,255,.7); transition: filter .15s, transform .15s;
  font-weight: 700; font-size: 13px; color: rgba(0,0,0,.65); writing-mode: horizontal-tb; text-align: center; padding: 0 2px;
}
.zseg:hover { filter: brightness(1.08) saturate(1.2); transform: scaleY(1.06); }
.zseg.last { cursor: default; font-size: 18px; }
.zoverlay { position: absolute; top: 0; bottom: 0; transition: all .55s cubic-bezier(.6,.05,.3,1); z-index: 2; box-shadow: 0 0 0 3px #fff inset; }
.zoverlay.sq { bottom: auto; }
.zticks { position: relative; height: 44px; margin: 4px 10px 6px; }
.zticks span { position: absolute; top: 0; transform: translateX(-50%); font-size: 13px; color: var(--muted); }
.zticks span::before { content: ''; display: block; width: 2px; height: 8px; background: #bbb; margin: 0 auto 2px; }
.zticks em { position: absolute; right: -6px; top: 27px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--mc); }
.zcard { display: flex; gap: 20px; align-items: center; }
.zicon { font-size: 76px; width: 120px; height: 120px; display: grid; place-items: center; background: var(--mc-soft); border-radius: 30px; flex-shrink: 0; }
.zcard .eq-big { text-align: left; color: var(--mc); }

.lstage { position: relative; background: #fbf8f3; border-radius: 18px; padding: 118px 26px 40px; margin: 12px 0; overflow: hidden; }
.view-tip { position: absolute; top: 10px; left: 16px; font-weight: 700; font-size: 14px; padding: 2px 8px; border-radius: 8px; }
.lrefs { position: absolute; left: 26px; right: 26px; top: 36px; height: 82px; }
.lref { position: absolute; bottom: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.lref::after { content: ''; width: 2px; height: calc(6px + var(--lift)); background: #cfc6b8; }
.lref span { font-size: 22px; line-height: 1; }
.lref small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.lbar-track { height: 46px; background: repeating-linear-gradient(90deg, #f0ebe3 0 10%, #f7f3ee 10% 20%); border-radius: 10px; position: relative; }
.lbar {
  height: 100%; background: linear-gradient(90deg, var(--mc), color-mix(in srgb, var(--mc) 70%, #ffd23f)); border-radius: 10px; color: #fff;
  font-weight: 800; display: flex; align-items: center; padding-left: 10px; white-space: nowrap; overflow: visible;
  transition: width .6s cubic-bezier(.3,1.3,.5,1); text-shadow: 0 1px 2px rgba(0,0,0,.3); min-width: 4px;
}
.lruler { position: relative; height: 40px; margin-top: 4px; }
.lruler span { position: absolute; transform: translateX(-50%); font-size: 13px; color: var(--muted); }
.lruler span::before { content: ''; display: block; width: 2px; height: 8px; background: #aaa; margin: 0 auto; }
.lruler em { position: absolute; right: -12px; top: 26px; font-size: 12px; font-style: normal; font-weight: 700; color: var(--mc); }
.like-icon { font-size: 26px; margin-right: 8px; vertical-align: middle; }

.cmp-cards { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 18px 0; flex-wrap: wrap; }
.cmp-card { background: var(--mc-soft); border: 3px solid var(--mc); border-radius: 22px; padding: 18px 28px; font-size: 24px; font-weight: 700; min-width: 170px; text-align: center; }
.cmp-card b { font-size: 44px; color: var(--mc); }
.cmp-vs { font-size: 26px; font-weight: 900; color: #c9b9a4; }
.cmp-bars { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.cmp-bar { height: 38px; border-radius: 10px; color: #fff; font-weight: 700; display: flex; align-items: center; padding: 0 10px; white-space: nowrap; animation: grow .7s ease; transform-origin: left; min-width: 90px; }
.cmp-bar.a { background: #ff8a5b; }
.cmp-bar.b { background: #4f9cf7; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- 面积 ---------- */
.rect-box { display: flex; flex-direction: column; align-items: center; margin: 16px 0; --c: 30px; }
.rect-top { font-weight: 700; color: var(--mc); margin-bottom: 4px; }
.rect-row { display: flex; align-items: center; gap: 6px; }
.rect-left { writing-mode: vertical-rl; font-weight: 700; color: var(--mc); }
.rect-grid { display: grid; gap: 2px; padding: 2px; background: var(--mc); border-radius: 6px; }
.rcell { width: var(--c); height: var(--c); background: var(--mc-soft); border-radius: 3px; animation: fadeIn .3s backwards; }

.tile-wrap { display: flex; flex-direction: column; align-items: center; margin: 16px auto 4px; width: fit-content; max-width: 100%; }
.edge-top { display: grid; grid-template-columns: repeat(10, 1fr); width: min(360px, 76vw); margin-left: 44px; font-size: 10px; color: var(--muted); text-align: center; }
.tile-row { display: flex; }
.edge-left { display: grid; grid-template-rows: repeat(10, 1fr); width: 44px; font-size: 10px; color: var(--muted); align-items: center; text-align: right; padding-right: 4px; }
.tile-sq {
  width: min(360px, 76vw); aspect-ratio: 1; display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; padding: 2px;
  background: var(--mc); border-radius: 8px; position: relative;
}
.tcell { background: #fff; border-radius: 3px; cursor: pointer; transition: background .2s, transform .2s; }
.tcell:hover { background: var(--mc-soft); }
.tcell.on { background: color-mix(in srgb, var(--mc) 55%, #fff); animation: pop .3s; }

.agrid-wrap { display: flex; justify-content: center; }
.agrid {
  position: relative; width: min(420px, 86vw); aspect-ratio: 1; display: grid; grid-template-columns: repeat(10, 1fr); gap: 1px; background: #fff;
  border: 3px solid #fff; border-radius: 10px; box-shadow: 0 0 0 2px var(--line); overflow: hidden;
}
.agrid.single { grid-template-columns: 1fr; }
.agrid::after { content: attr(data-label); position: absolute; right: 6px; bottom: 6px; background: rgba(255,255,255,.88); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 8px; pointer-events: none; }
.acell { cursor: zoom-in; transition: filter .15s; }
.acell:hover { filter: brightness(1.12) saturate(1.3); outline: 2px solid #fff; z-index: 1; }
.acell.fine { background-image: linear-gradient(rgba(0,0,0,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.14) 1px, transparent 1px); background-size: 10% 10%; }
.acell.big { cursor: default; display: grid; place-items: center; font-size: 30px; font-weight: 800; color: rgba(0,0,0,.5); }

/* ---------- 体积 ---------- */
.iso-layout { display: grid; grid-template-columns: minmax(240px, 1fr) 1fr; gap: 20px; align-items: center; }
.iso-stage { display: flex; justify-content: center; }
.iso { width: 100%; max-width: 380px; height: auto; overflow: visible; }
.iso .iso-frame line { stroke: #4b5a85; stroke-width: 2; fill: none; }
.iso .iso-frame.back line { stroke-dasharray: 6 5; stroke: #9aa6c7; }
.iso .f-top { fill: color-mix(in srgb, var(--mc) 35%, #fff); }
.iso .f-right { fill: color-mix(in srgb, var(--mc) 70%, #fff); }
.iso .f-left { fill: color-mix(in srgb, var(--mc) 52%, #fff); }
.iso .grid { stroke: rgba(255,255,255,.75); stroke-width: .8; }
.iso .drop { animation: drop .45s cubic-bezier(.4,1.6,.6,1); }
@keyframes drop { from { transform: translateY(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
.iso-side .eq-big { color: var(--mc); }
.compare3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; }
.compare3 > div { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #faf7f2; border-radius: 16px; padding: 14px; }
.compare3 small { color: var(--muted); }
.mini-line { display: grid; grid-template-columns: repeat(10, 1fr); width: 100%; height: 22px; gap: 2px; margin: 40px 0; }
.mini-line i { background: #ff8a5b; border-radius: 3px; }
.mini-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 1px; width: 100px; height: 100px; }
.mini-grid i { background: #22b07d; border-radius: 1px; opacity: .8; }
.mini-cube { width: 110px; --mc: #4f7cf7; }

.pour-stage { display: flex; align-items: flex-end; justify-content: center; gap: 30px; padding: 30px 0 36px; position: relative; min-height: 240px; }
.bottle { display: flex; flex-direction: column; align-items: center; }
.bottle-neck { width: 30px; height: 30px; border: 3px solid #8fb4e8; border-bottom: none; border-radius: 8px 8px 0 0; background: rgba(255,255,255,.6); }
.bottle-body { width: 90px; height: 170px; border: 3px solid #8fb4e8; border-radius: 22px; position: relative; overflow: hidden; background: rgba(240,248,255,.8); display: grid; place-items: center; }
.bottle-body span { position: relative; z-index: 1; font-weight: 800; color: #2a5db0; background: rgba(255,255,255,.8); padding: 2px 8px; border-radius: 8px; }
.bottle-water, .cube-water, .cup-water, .tiny-water {
  position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(#7cc4ff, #3d8bff); transition: height 2.2s ease-in-out;
}
.bottle-water { height: 100%; }
.stream { width: 8px; height: 0; background: linear-gradient(#7cc4ff, #3d8bff); border-radius: 4px; align-self: center; transition: height .3s; margin-bottom: 40px; }
.stream.on { height: 120px; animation: wobble .3s infinite alternate; }
@keyframes wobble { to { transform: translateX(2px); } }
.gc-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gc-svg { width: 340px; max-width: 62vw; height: auto; overflow: visible; }
.gc-back { fill: #eef3fc; }
.gc-hidden { stroke: #9aa6c7; stroke-width: 2; stroke-dasharray: 6 5; }
.gc-glass { fill: rgba(225,236,255,.18); stroke: #4b5a85; stroke-width: 3; stroke-linejoin: round; }
.gc-glass.side { fill: rgba(190,208,240,.22); }
.gc-glass.top { fill: rgba(240,246,255,.3); }
.gc-w-front { fill: rgba(61,139,255,.72); }
.gc-w-side { fill: rgba(40,105,215,.78); }
.gc-w-top { fill: rgba(140,200,255,.9); }
.gc-tick { stroke: #4b5a85; stroke-width: 1.5; }
.gc-text { font-size: 13px; font-weight: 700; fill: #4b5a85; }
.gc-text.small { font-size: 11px; fill: #7a86a8; }
.gc-info { font-size: 13px; color: #4b5a85; background: #f1f5fd; border-radius: 10px; padding: 4px 10px; }
.gc-info b { color: #2a5db0; }
.drop-stage { display: flex; justify-content: center; align-items: flex-end; gap: 30px; padding: 20px; }
.dropper { font-size: 54px; background: none; border: none; cursor: pointer; transition: transform .1s; }
.dropper.drip { animation: drip .3s; }
@keyframes drip { 50% { transform: translateY(12px) scale(.9); } }
.tiny-cube { width: 70px; height: 70px; border: 3px solid #4b5a85; position: relative; overflow: hidden; background: rgba(240,245,255,.7); border-radius: 4px; display: grid; place-items: center; }
.tiny-cube .tiny-water { height: 0; transition: height .25s; }
.tiny-cube small { position: relative; z-index: 1; font-weight: 800; color: #2a3a6a; }
.cup-layout { display: grid; grid-template-columns: 160px 1fr; gap: 26px; align-items: center; }
.cup { width: 130px; height: 260px; margin: 0 auto; border: 3px solid #8fb4e8; border-top: none; border-radius: 0 0 22px 22px; position: relative; overflow: hidden; background: rgba(240,248,255,.6); }
.cup-water { transition: height .35s ease; }
.cup-scale { position: absolute; inset: 0; z-index: 1; }
.cup-scale span { position: absolute; left: 0; width: 100%; border-bottom: 2px solid rgba(43,93,176,.35); font-size: 11px; font-weight: 700; color: #2a5db0; padding-left: 6px; transform: translateY(50%); line-height: 1; }

/* ---------- 质量 ---------- */
.emo { font-size: 30px; line-height: 1; display: inline-block; }
.bag {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 40px; height: 44px; border-radius: 10px 10px 14px 14px;
  font-size: 11px; line-height: 1.1; color: #fff; position: relative; box-shadow: inset 0 -6px 0 rgba(0,0,0,.15);
}
.bag::before { content: ''; position: absolute; top: -5px; width: 18px; height: 8px; border-radius: 4px; background: inherit; }
.bag b { font-size: 15px; }
.bag small { font-size: 9px; opacity: .85; }
.bag.coal { background: #2f2f36; }
.bag.rice { background: #e9d9a8; color: #6b5420; }
.bag.salt { background: #e8f1fb; color: #2a5db0; border: 2px solid #b7cdea; }
.mass-stairs { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.ms { display: flex; flex-direction: column; align-items: center; background: var(--mc-soft); border-radius: 18px; padding: 14px 18px; min-width: 130px; }
.ms-art { font-size: 34px; display: flex; gap: 4px; min-height: 48px; align-items: center; }
.ms b { font-size: 20px; color: var(--mc); }
.ms small { color: var(--muted); }
.ms-arrow { font-weight: 900; color: var(--mc); font-size: 18px; }
.ton-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.ton-card { border: 2px solid var(--line); background: #fff; border-radius: 18px; padding: 12px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: all .15s; }
.ton-card:hover { border-color: var(--mc); transform: translateY(-3px); background: var(--mc-soft); }
.ton-card small { color: var(--muted); font-size: 12px; }
.ton-art { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; min-height: 80px; align-content: center; }
.ton-art.many { max-width: 150px; gap: 1px; }
.ton-art.many .emo { font-size: 13px; }
.ton-art.many .bag { width: 12px; height: 12px; font-size: 0; border-radius: 3px; box-shadow: none; }.ton-art.many .bag b, .ton-art.many .bag small { display: none; }
.ton-art.many .bag::before { width: 8px; height: 4px; top: -3px; }
.palette { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0; }
.pal-item { border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 8px 12px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 86px; transition: all .12s; }
.pal-item:hover { border-color: var(--mc); background: var(--mc-soft); transform: translateY(-2px); }
.pal-item:active { transform: scale(.95); }
.pal-item span:last-child { font-size: 12px; font-weight: 700; }
.scale-layout { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: center; }
.dial { display: flex; justify-content: center; }
.dial-face { position: relative; width: 260px; height: 160px; overflow: hidden; }
.dial-face::before { content: ''; position: absolute; left: 0; top: 0; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(#fff 55%, #f4effb 56%); border: 6px solid var(--mc); box-sizing: border-box; }
.dial-tick { position: absolute; left: 130px; top: 130px; width: 0; height: 0; transform: rotate(var(--a)); }
.dial-tick i { position: absolute; left: -1px; top: -118px; width: 2px; height: 14px; background: #6b5d86; }
.dial-tick em { position: absolute; left: -20px; top: -100px; width: 40px; text-align: center; font-size: 11px; font-style: normal; color: #6b5d86; font-weight: 700; }
.dial-tick.ton i { background: var(--bad); width: 4px; left: -2px; height: 20px; }
.dial-tick.ton em { color: var(--bad); font-size: 13px; }
.needle { position: absolute; left: 127px; top: 30px; width: 6px; height: 100px; background: var(--bad); border-radius: 3px 3px 0 0; transform-origin: 3px 100px; transition: transform .7s cubic-bezier(.3,1.5,.5,1); }
.dial-hub { position: absolute; left: 118px; top: 118px; width: 24px; height: 24px; border-radius: 50%; background: #2d2a32; }
.truck-scale { margin-top: 10px; background: linear-gradient(#cfd5de, #9aa3b1); border-radius: 12px; padding: 10px; box-shadow: 0 10px 0 #6f7887; }
.platform { min-height: 90px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 4px; background: #eef1f5; border-radius: 8px; padding: 10px; }
.platform.dense .emo { font-size: 18px; }
.platform.dense .bag { width: 26px; height: 28px; }
.platform.dense .bag b { font-size: 11px; }
.platform.dense .bag small { display: none; }
.p-item { border: none; background: none; padding: 0; cursor: pointer; animation: drop .35s cubic-bezier(.4,1.6,.6,1); }
.p-item:hover { filter: drop-shadow(0 0 4px var(--bad)); }

.balance { position: relative; width: min(520px, 100%); height: 300px; margin: 20px auto 10px; }
.pillar { position: absolute; left: 50%; bottom: 0; width: 20px; height: 220px; transform: translateX(-50%); background: linear-gradient(90deg, #b48a52, #e2bc85, #b48a52); border-radius: 8px 8px 0 0; }
.pillar::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 160px; height: 18px; transform: translateX(-50%); background: #9b7444; border-radius: 10px; }
.pivot { position: absolute; left: 50%; top: 72px; width: 24px; height: 24px; transform: translate(-50%, -50%); border-radius: 50%; background: #5d4426; box-shadow: 0 0 0 4px #e2bc85; }
.beam { position: absolute; left: 50%; top: 66px; width: 74%; height: 12px; background: #8a6538; border-radius: 6px; transform-origin: 50% 50%; transition: transform .8s cubic-bezier(.3,1.4,.5,1); }
.pan { position: absolute; left: 50%; top: 72px; width: 150px; transition: transform .8s cubic-bezier(.3,1.4,.5,1); display: flex; flex-direction: column; align-items: center; }
.pan::before {
  content: ''; width: 130px; height: 90px; margin-bottom: -60px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 90' preserveAspectRatio='none'><path d='M65 0 L6 90 M65 0 L124 90' stroke='%23b48a52' stroke-width='2' fill='none'/></svg>") no-repeat center / 100% 100%;
}
.pan-items {
  position: relative; width: 150px; height: 64px; border-bottom: 10px solid #c69a5e; border-radius: 0 0 80px 80px / 0 0 26px 26px; display: flex; flex-wrap: wrap-reverse;
  justify-content: center; align-items: flex-end; align-content: flex-start; gap: 1px; padding: 0 8px; overflow: visible;
}
.pan-items.dense .emo { font-size: 18px; }
.pan-items.dense .bag { width: 26px; height: 28px; }
.weight { background: linear-gradient(#7a7f8a, #4b505a); color: #fff; font-weight: 800; font-size: 13px; padding: 10px 8px 6px; border-radius: 10px 10px 4px 4px; }

/* ---------- 人民币 ---------- */
.money {
  border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-direction: column; font-weight: 800;
  transition: transform .12s; flex-shrink: 0; position: relative;
}
.money:hover { transform: translateY(-3px) rotate(-2deg); }
.money:active { transform: scale(.92); }
.money.coin { width: 54px; height: 54px; border-radius: 50%; font-size: 13px; box-shadow: inset 0 0 0 4px rgba(255,255,255,.45), 0 3px 0 rgba(0,0,0,.18); }
.money.note { width: 104px; height: 52px; border-radius: 6px; font-size: 16px; color: #fff; box-shadow: inset 0 0 0 3px rgba(255,255,255,.35), 0 3px 0 rgba(0,0,0,.18); }
.note-face { font-size: 8px; opacity: .8; font-weight: 500; letter-spacing: 1px; }
.m10000 { background: linear-gradient(135deg, #e04848, #b91d2b); }
.m5000 { background: linear-gradient(135deg, #3aa57a, #1d7d58); }
.m2000 { background: linear-gradient(135deg, #b07b4a, #85552d); }
.m1000 { background: linear-gradient(135deg, #4a7ec7, #2b5797); }
.m500 { background: linear-gradient(135deg, #9b5cc8, #6e3a98); }
.m100 { background: radial-gradient(circle at 35% 30%, #fafafa, #b9bec7); color: #4b5160; width: 62px !important; height: 62px !important; }
.m50 { background: radial-gradient(circle at 35% 30%, #fff1b8, #d9a827); color: #6b4c00; }
.m10 { background: radial-gradient(circle at 35% 30%, #fff, #c9ced6); color: #4b5160; width: 46px !important; height: 46px !important; }
.m5, .m2, .m1 { background: radial-gradient(circle at 35% 30%, #fff, #dfe3ea); color: #687080; width: 40px !important; height: 40px !important; font-size: 11px !important; }
.money-palette { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; padding: 12px; background: #faf7f2; border-radius: 16px; margin: 10px 0; }
.tray {
  min-height: 86px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; padding: 12px;
  background: repeating-linear-gradient(45deg, #fff8e6, #fff8e6 10px, #fff3d4 10px, #fff3d4 20px); border: 3px dashed #f3c766; border-radius: 18px; margin: 10px 0;
}
.tray.small { min-height: 0; padding: 8px; margin: 8px 0; background: #fff; }
.tray.small .money { transform: scale(.85); cursor: default; }
.pop-in { animation: pop .3s; }
.money-total { text-align: center; margin: 8px 0; }
.mt-main { font-size: 19px; }
.mt-main b { font-size: 30px; color: var(--mc); }
.mt-conv { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; color: #5d5666; font-weight: 700; }
.rate-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rate { display: flex; align-items: center; gap: 10px; background: #faf7f2; border-radius: 16px; padding: 12px; }
.rate > span { font-size: 26px; font-weight: 900; color: var(--mc); }
.rate-many { display: flex; flex-wrap: wrap; gap: 0; }
.rate-many .money { margin-right: -14px; transform: scale(.8); }
.rate .money { cursor: default; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; padding: 14px; background: #fffdf8; border: 1px solid #f0e6d6; border-bottom: 12px solid #e9dcc8; border-radius: 16px; }
.goods { border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 10px 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: all .12s; font-weight: 700; }
.goods:hover { border-color: var(--mc); transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0,0,0,.08); }
.good-i { font-size: 38px; }
.price { background: #ffe9a8; border-radius: 8px; padding: 2px 8px; display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.price b { color: #b3261e; }
.price small { font-size: 11px; color: #8a6d00; }
.cart { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cart-item { border: 1px solid var(--line); background: #faf7f2; border-radius: 99px; padding: 5px 12px; cursor: pointer; }
.cart-item:hover:not(:disabled) { border-color: var(--bad); text-decoration: line-through; }
.cart-sum { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 18px; margin-top: 10px; }
.cart-sum b { font-size: 26px; color: #b3261e; }
.cart-sum .btn { margin-left: auto; }
.pay-area { margin-top: 16px; padding-top: 16px; border-top: 2px dashed var(--line); }
.pay-area h4 { text-align: center; font-size: 18px; }
.customer { display: flex; align-items: center; gap: 14px; margin: 10px 0; }
.cust-face { font-size: 64px; animation: bob 2.6s ease-in-out infinite; }
.cust-say { background: #fff8db; border-radius: 18px; padding: 12px 16px; font-size: 17px; position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.cust-say .money { transform: scale(.85); cursor: default; }
.receipt { max-width: 300px; margin: 10px auto; background: #fff; border: 1px solid var(--line); padding: 12px 16px; font-family: ui-monospace, Menlo, monospace; box-shadow: var(--shadow); border-radius: 4px; }
.receipt div { display: flex; justify-content: space-between; padding: 2px 0; }
.rc-sum { border-top: 1px dashed #aaa; margin-top: 4px; padding-top: 6px !important; }

/* ---------- 时间 ---------- */
.leap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.scene { border-radius: 20px; padding: 18px; position: relative; overflow: hidden; transition: background .6s; margin-top: 12px; }
.scene.spring { background: linear-gradient(160deg, #e5fbe5, #ffe3ef); }
.scene.summer { background: linear-gradient(160deg, #fff4c2, #c6ecff); }
.scene.autumn { background: linear-gradient(160deg, #ffe1c2, #fff2d6); }
.scene.winter { background: linear-gradient(160deg, #e3efff, #f6f9ff); }
.scene-deco { position: absolute; right: 16px; top: 10px; font-size: 42px; letter-spacing: 6px; opacity: .9; animation: bob 4s ease-in-out infinite; }
.scene-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.scene-month { font-size: 26px; font-weight: 800; }
.scene-month b { font-size: 64px; color: var(--mc); line-height: 1; }
.scene-kind { display: inline-block; font-weight: 800; font-size: 18px; padding: 4px 14px; border-radius: 99px; color: #fff; }
.scene-kind.big, .mth.big { --k: #ff7a45; }
.scene-kind.small, .mth.small { --k: #4f9cf7; }
.scene-kind.feb, .mth.feb { --k: #9b6bf2; }
.scene-kind { background: var(--k); }
.scene-head small { display: block; color: #5d5666; margin-top: 4px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; background: rgba(255,255,255,.75); border-radius: 16px; padding: 12px; max-width: 620px; margin: 0 auto; }
.cal b { text-align: center; color: var(--muted); font-size: 13px; }
.cal span { aspect-ratio: 1.3; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; border-radius: 10px; font-weight: 700; font-size: 17px; animation: fadeIn .3s backwards; }
.cal span.empty { background: transparent; }
.cal span small { font-size: 9px; color: var(--bad); font-weight: 600; line-height: 1; }
.cal span.hol { background: #fff0ef; }
.cal span.today { outline: 3px solid var(--mc); }
.cal span.tail { background: color-mix(in srgb, var(--mc) 18%, #fff); color: var(--mc); }
.fist-wrap { display: flex; justify-content: center; }
.fist { width: 100%; max-width: 600px; }
.fist-body, .fist-knuckle { fill: #ffd7b5; }
.fist-knuckle { stroke: #e9a97a; stroke-width: 3; }
.fist-m { cursor: pointer; }
.fist-m rect { stroke-width: 2; }
.fist-m text { text-anchor: middle; font-weight: 800; font-size: 16px; }
.fist-m.big rect { fill: #fff1e8; stroke: #ff7a45; }
.fist-m.big text { fill: #d0602a; }
.fist-m.small rect { fill: #e8f2ff; stroke: #4f9cf7; }
.fist-m.small text { fill: #2b6fd0; }
.fist-m.feb rect { fill: #f3edff; stroke: #9b6bf2; }
.fist-m.feb text { fill: #6e3fc9; }
.fist-m.on rect { fill: #2d2a32; stroke: #2d2a32; }
.fist-m.on text { fill: #fff; }
.fist-m:hover rect { stroke-width: 4; }
.fist-tip { text-anchor: middle; font-size: 15px; fill: #a0643a; font-weight: 600; }
.rhyme { text-align: center; font-size: 18px; font-weight: 700; background: #fff8db; border-radius: 14px; padding: 10px 14px; margin-bottom: 0; }
.month-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.mth { border: 2px solid var(--k); background: color-mix(in srgb, var(--k) 12%, #fff); border-radius: 14px; padding: 10px 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; transition: transform .12s; }
.mth b { font-size: 18px; color: var(--k); }
.mth span { font-size: 13px; color: #5d5666; }
.mth:hover { transform: translateY(-2px); }
.mth.on { background: var(--k); }
.mth.on b, .mth.on span { color: #fff; }

.sort-card { margin: 18px auto; width: 200px; padding: 24px; border-radius: 26px; background: var(--mc-soft); border: 4px solid var(--mc); text-align: center; font-size: 28px; font-weight: 800; animation: pop .4s; }
.sort-card b { font-size: 70px; color: var(--mc); display: block; line-height: 1.1; }
.sort-fb { text-align: center; color: var(--bad); font-weight: 700; min-height: 24px; }
.sort-bins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.sort-bin { border: 3px solid var(--k); background: color-mix(in srgb, var(--k) 10%, #fff); border-radius: 20px; padding: 14px 8px; cursor: pointer; min-height: 130px; transition: transform .12s; }
.sort-bin:hover { transform: translateY(-3px); }
.sort-bin.big { --k: #ff7a45; }
.sort-bin.small { --k: #4f9cf7; }
.sort-bin.feb { --k: #9b6bf2; }
.sort-bin > b { font-size: 18px; color: var(--k); }
.bin-items { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 8px; }
.bin-items span { background: var(--k); color: #fff; border-radius: 99px; padding: 2px 8px; font-size: 13px; font-weight: 700; animation: pop .3s; }

.clock-layout { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 24px; align-items: center; }
.clock-box { display: flex; justify-content: center; }
.clock { width: 100%; max-width: 380px; touch-action: none; user-select: none; }
.c-rim { fill: var(--mc); }
.c-face { fill: #fff; }
.tk { stroke: #c6bfd0; stroke-width: 2; }
.tk5 { stroke: #2d2a32; stroke-width: 4; stroke-linecap: round; }
.c-num { text-anchor: middle; font-size: 26px; font-weight: 800; fill: #2d2a32; }
.c-min { text-anchor: middle; font-size: 12px; font-weight: 700; fill: var(--mc); }
.hand line { stroke-linecap: round; }
.hand.hour line { stroke: #2d2a32; stroke-width: 10; }
.hand.minute line { stroke: #4f7cf7; stroke-width: 6; }
.hand.minute.thin line { stroke-width: 4; }
.hand.second line { stroke: var(--bad); stroke-width: 3; }
.hand.second circle { fill: var(--bad); }
.hand .grip { cursor: grab; fill: #fff; stroke-width: 4; }
.hand.hour .grip { stroke: #2d2a32; }
.hand.minute .grip { stroke: #4f7cf7; }
.hand .grip:hover { r: 14; }
.hand.hour, .hand.minute { cursor: grab; }
.c-hub { fill: #2d2a32; }
.time-big, .time-24 { background: #faf7f2; border-radius: 16px; padding: 10px 16px; margin-bottom: 10px; }
.time-big small, .time-24 small { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
.time-big b { font-size: 30px; color: var(--mc); }
.time-24 b { font-size: 34px; font-family: ui-monospace, Menlo, monospace; color: #4f7cf7; margin-right: 10px; }
.time-24 span { color: #5d5666; }
.lap { padding: 8px 12px; border-radius: 12px; background: #eef3ff; margin: 8px 0; font-size: 15px; }
.lap b { color: #4f7cf7; font-size: 18px; }
.sky { position: relative; padding-top: 36px; margin: 6px 0; }
.sky-bar { display: grid; grid-template-columns: repeat(24, 1fr); border-radius: 12px; overflow: hidden; height: 40px; }
.sky-h { background: var(--c); color: rgba(255,255,255,.9); font-size: 11px; font-weight: 700; padding: 2px 3px; }
.sky-mark { position: absolute; top: 0; transform: translateX(-50%); font-size: 30px; transition: left .3s; }
.sky-mark::after { content: ''; position: absolute; left: 50%; top: 34px; width: 3px; height: 44px; background: var(--bad); transform: translateX(-50%); border-radius: 2px; }

.carry { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 6px; }
.carry-row { display: grid; grid-template-columns: 34px 1fr 64px 150px; gap: 10px; align-items: center; }
.carry-name { font-weight: 800; font-size: 18px; color: var(--mc); }
.carry-track { height: 20px; background: #f1ece5; border-radius: 99px; overflow: hidden; }
.carry-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--mc), #ffb36b); border-radius: 99px; }
.carry b { font-family: ui-monospace, Menlo, monospace; }
.carry small { color: var(--muted); }

.cline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 16px; overflow: visible; margin: 46px 0 6px; }
.cblock { padding: 16px 8px; text-align: center; transition: all .3s; }
.cblock b { display: block; font-size: 18px; }
.cblock small { color: #5d5666; }
.c19 { background: #f7e7d2; border-radius: 16px 0 0 16px; }
.c20 { background: #e3eefc; }
.c21 { background: #fde3ee; border-radius: 0 16px 16px 0; }
.cblock.on { box-shadow: inset 0 0 0 4px var(--mc); }
.cblock.on b { color: var(--mc); }
.cmark { position: absolute; top: -38px; transform: translateX(-50%); background: var(--mc); color: #fff; font-weight: 800; padding: 3px 10px; border-radius: 10px; transition: left .2s; white-space: nowrap; }
.cmark::after { content: ''; position: absolute; left: 50%; top: 100%; width: 3px; height: 100px; background: var(--mc); transform: translateX(-50%); opacity: .6; }
.family { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.fam { background: var(--mc-soft); border-radius: 14px; padding: 12px; text-align: center; }
.fam span { display: block; color: #5d5666; }
.fam b { font-size: 20px; color: var(--mc); }


/* ---------- 能力小测试 ---------- */
.test-banner {
  display: flex; align-items: center; gap: 18px; text-decoration: none; color: inherit; margin: 0 0 8px;
  background: linear-gradient(120deg, #fff1e6, #fff); border: 3px solid #ffc9a3; border-radius: 24px; padding: 18px 22px; box-shadow: var(--shadow);
  --mc: #e8590c; transition: transform .2s;
}
.test-banner:hover { transform: translateY(-3px); }
.test-banner-icon { font-size: 44px; }
.test-banner b { font-size: 20px; }
.test-banner p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.test-banner > div { flex: 1; }
.t-name { font-size: 18px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 12px; width: 200px; font-weight: 700; }
.t-name:focus { outline: none; border-color: var(--mc); }
.t-progress { height: 10px; background: #efe8de; border-radius: 99px; overflow: hidden; margin-bottom: 14px; }
.t-progress i { display: block; height: 100%; background: var(--mc); border-radius: 99px; transition: width .3s; }
.t-skill { font-size: 13px; color: var(--muted); font-weight: 700; }
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 12px 0 16px; }
.skill-pick { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 14px 16px; text-align: left; }
.skill-pick b { display: block; font-size: 16px; margin-bottom: 6px; }
.skill-pick p { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.skill-result { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; margin: 10px 0; }
.skill-result.good { border-color: #b7ebc6; }
.skill-result.weak { border-color: #ffc9c9; background: #fff8f8; }
.skill-result-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.skill-result p { margin: 8px 0; line-height: 1.5; }
.btn.choice.picked { background: var(--mc-soft); border-color: var(--mc); }
.t-head { display: flex; align-items: center; gap: 26px; }
.t-head h2 { margin: 0 0 4px; }
.t-head p { margin: 4px 0; }
.t-ring {
  flex: none; width: 120px; height: 120px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(#fff 58%, transparent 59%), conic-gradient(var(--c) calc(var(--p) * 1%), #efe8de 0);
}
.t-ring b { font-size: 38px; line-height: 1; color: var(--c); }
.t-ring small { color: var(--muted); }
.t-legend { display: flex; gap: 14px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.t-plan { border: 2px solid var(--line); border-radius: 18px; margin: 12px 0; overflow: hidden; }
.t-plan.weak { border-color: #f5aaa6; }
.t-plan.mid { border-color: #ffd65c; }
.t-plan-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #faf7f2; flex-wrap: wrap; }
.t-plan.weak .t-plan-head { background: #fff0ef; }
.t-plan.mid .t-plan-head { background: #fff8db; }
.t-plan-head b { flex: 1; }
.t-plan-body { padding: 6px 16px 10px; }
.t-plan-body p { margin: 8px 0; }
.t-rank { width: 26px; height: 26px; border-radius: 50%; background: var(--mc); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.t-tag { font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: #eee; white-space: nowrap; }
.t-tag.good { background: #e8f8ef; color: var(--good); }
.t-tag.mid { background: #fff3cc; color: #a26f00; }
.t-tag.weak { background: #fff0ef; color: var(--bad); }
.t-err { display: inline-block; margin: 2px 6px 2px 0; padding: 2px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 14px; }
.t-example { background: #faf7f2; border-radius: 12px; padding: 10px 14px; margin: 8px 0; }
.t-example .ok, .t-wrong .ok { color: var(--good); font-weight: 700; }
.t-wrong .no { color: var(--bad); }
.t-example small, .t-wrong small { color: var(--muted); display: block; margin-top: 4px; }
.t-mod h4 { margin: 14px 0 6px; }
.t-skill-row { display: grid; grid-template-columns: 220px 1fr 44px 96px 60px; gap: 10px; align-items: center; margin: 6px 0; font-size: 14px; }
.t-bar { height: 12px; background: #efe8de; border-radius: 99px; overflow: hidden; }
.t-bar i { display: block; height: 100%; border-radius: 99px; background: var(--good); }
.t-skill-row.mid .t-bar i { background: #f5a623; }
.t-skill-row.weak .t-bar i { background: var(--bad); }
.t-skill-num { color: var(--muted); text-align: right; }
.t-skill-row em { font-style: normal; font-size: 12px; font-weight: 700; }
.t-skill-row em.up { color: var(--good); }
.t-skill-row em.down { color: var(--bad); }
.t-errs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.t-err-card { background: #faf7f2; border-radius: 16px; padding: 12px 14px; }
.t-err-card .badge { float: right; }
.t-err-card p { margin: 8px 0 0; font-size: 14px; color: #5d5666; }
.t-wrongs { display: grid; gap: 10px; }
.t-wrong { border-left: 4px solid var(--bad); background: #fffafa; border-radius: 10px; padding: 8px 14px; }
.t-chart { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding: 10px 0 0; border-bottom: 2px solid var(--line); overflow-x: auto; }
.t-col { flex: 0 0 48px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; }
.t-col i { width: 28px; background: var(--c); border-radius: 8px 8px 0 0; }
.t-col span { font-size: 12px; font-weight: 700; }
.t-col small { font-size: 10px; color: var(--muted); white-space: nowrap; }
.t-list { display: grid; gap: 8px; }
.t-item { display: flex; align-items: center; gap: 14px; text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 10px 14px; cursor: pointer; font: inherit; }
.t-item:hover { border-color: var(--mc); }
.t-item > div { flex: 1; }
.t-item small { color: var(--muted); }
.t-item-score { font-size: 26px; width: 48px; text-align: center; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .path { grid-template-columns: 1fr; }
  .path-arrow { flex-direction: row; gap: 8px; transform: rotate(90deg); height: 30px; }
  .path-arrow span { transform: rotate(-90deg); }
  .iso-layout, .clock-layout, .scale-layout, .cup-layout { grid-template-columns: 1fr; }
  .compare3 { grid-template-columns: 1fr; }
  .rate-row { grid-template-columns: 1fr; }
  .month-strip { grid-template-columns: repeat(4, 1fr); }
  .carry-row { grid-template-columns: 30px 1fr 60px; }
  .carry-row small { grid-column: 1 / -1; }
  .zcard { flex-direction: column; text-align: center; }
  .zcard .eq-big { text-align: center; }
}
@media (max-width: 560px) {
  .sort-bins { grid-template-columns: 1fr; }
  .zseg span { font-size: 10px; }
  .path-arrow { transform: none; flex-direction: column; }
  .path-arrow span { transform: none; }
  .pan, .pan-items { width: 116px; }
  .pan::before { width: 100px; }
  .pan-items .emo { font-size: 22px; }
  .scene-deco { font-size: 26px; letter-spacing: 2px; }
  .scene-month b { font-size: 46px; }
  .cal span { font-size: 14px; }
  .t-head { flex-direction: column; text-align: center; }
  .t-legend { justify-content: center; }
  .t-skill-row { grid-template-columns: 1fr 44px; }
  .t-skill-row .t-bar { grid-column: 1 / -1; grid-row: 2; }
  .t-skill-row .t-tag, .t-skill-row em { grid-row: 3; justify-self: start; }
  .test-banner { flex-direction: column; text-align: center; }
}
@media print {
  body.print-report .main { display: block; }
  body.print-report .mod-head, body.print-report .tabs, body.print-report .no-print, body.print-report .ladder { display: none !important; }
  body.print-report .card, body.print-report .t-plan { box-shadow: none; break-inside: avoid; }
  body.print-report { background: #fff; }
}
