/* 称骨体验页 cg.{root}/tiyan.html：杆秤、签牌、统计柱图（输入行与换算卡在 tiyan-base.css）。变量一律 --c-*（CssTokenTest）。 */


/* 杆秤：预留固定比例，脚本绘制前后不跳动；木杆 / 铜件 / 铁砣的渐变在 SVG defs 里 */
.ty-stagebox { margin-top: 10px; padding: 10px 8px 2px; border-radius: 14px; border: 1px solid var(--c-line);
  background: radial-gradient(ellipse at 50% 18%, var(--c-paper-card) 0%, var(--c-paper-card) 45%, var(--c-primary-soft) 140%); }
.ty-scale { display: block; width: 100%; max-width: 560px; height: auto; aspect-ratio: 360 / 250; margin: 0 auto; overflow: visible; }
.ty-cord { stroke: #7a5a3a; stroke-width: 1.1; fill: none; }
.ty-cord.back { opacity: .45; }
.ty-ring { fill: none; stroke: #b5853a; stroke-width: 2.2; }
.ty-ground { fill: #3b2412; opacity: .1; }
.ty-stars circle { fill: #f8dc8c; }
.ty-ticks text { fill: var(--c-ink-2); font-size: 11px; text-anchor: middle; font-family: var(--font-serif); }
.ty-reading { fill: var(--c-primary); font-size: 16px; font-weight: 700; text-anchor: middle; font-family: var(--font-serif);
  stroke: var(--c-paper-card); stroke-width: 4px; stroke-linejoin: round; paint-order: stroke; }
.ty-block .tag { fill: #fffaf0; stroke: #b8322a; stroke-width: 1; }
.ty-block .hd { fill: #b8322a; }
.ty-block .in { fill: none; stroke: #e8c7a0; stroke-width: .6; }
.ty-block text { text-anchor: middle; font-family: var(--font-serif); }
.ty-block .k { fill: #fff3d6; font-size: 9px; letter-spacing: 1px; }
.ty-block .v { fill: #5a2a12; font-size: 13.5px; font-weight: 700; }
.ty-block .f { fill: #b8322a; font-size: 9.5px; }
.ty-block { animation: tyDrop .45s cubic-bezier(.3,.1,.4,1.35) both; }
@keyframes tyDrop { from { transform: translateY(-70px); opacity: 0; } 70% { opacity: 1; } to { transform: none; opacity: 1; } }

/* 秤下一行：正在查哪张表、依据是什么 */
.ty-cap { min-height: 3em; margin: 6px 0 0; text-align: center; font-size: var(--t-sm); color: var(--c-ink-2); }
.ty-cap b { color: var(--c-primary-deep); }

/* 示意图（即 og 分享图）：按真实比例缩放，四角的说明不被裁 */

/* 「大家称出的骨重」：21–72 钱共 52 根柱 */
.ty-stats [hidden], .ty-stats[hidden] { display: none !important; }
.ty-hist { display: flex; align-items: flex-end; gap: 1px; height: 96px; padding: 0 2px; border-bottom: 1px solid var(--c-line); }
.ty-hist i { flex: 1 1 0; min-width: 0; background: var(--c-gold); opacity: .55; border-radius: 2px 2px 0 0; }
.ty-hist i.top { opacity: .9; }
.ty-hist i.me { background: var(--c-primary); opacity: 1; }
.ty-hist-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--c-ink-3); padding: 3px 0 0; font-family: var(--font-serif); }
.ty-stats-sum { margin: 10px 0 0; }
.ty-stats-sum b { color: var(--c-primary-deep); }

@media (prefers-reduced-motion: reduce) {
  .ty-reveal, .ty-block { animation: none; }
}
