/* 九九消寒图（gongju/jiujiu-xiaohantu.html）：宣纸底 + 米字格 + 空心朱线字，描过的笔填天气色。
 * 变量一律 --c-* 或本文件 --xh-*（CssTokenTest）。 */
.xh-status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 12px; padding: 10px 14px; border-radius: 10px;
  background: var(--c-primary-soft); color: var(--c-ink-2); font-size: var(--t-sm); line-height: 1.7; }
.xh-status b { font-family: var(--font-serif); font-size: var(--t-md); color: var(--c-primary-deep); }
.xh-board { position: relative; border-radius: 14px; padding: 18px; overflow: hidden;
  background: linear-gradient(rgba(251, 247, 239, .78), rgba(251, 247, 239, .9)), var(--xh-bg, none) center / cover no-repeat, #fbf7ef; }
.xh-aigc { position: absolute; right: 10px; top: 6px; margin: 0; font-size: 11px; color: rgba(90, 70, 60, .7); }
.xh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 560px; margin: 0 auto; }
.xh-cell { position: relative; aspect-ratio: 1; border: 2px solid #c9a39a; background: rgba(255, 253, 248, .85); }
.xh-cell::before, .xh-cell::after { content: ""; position: absolute; pointer-events: none; }
.xh-cell::before { left: 50%; top: 0; bottom: 0; border-left: 1px dashed #dcc0b8; }
.xh-cell::after { top: 50%; left: 0; right: 0; border-top: 1px dashed #dcc0b8; }
.xh-ch { position: relative; z-index: 1; display: block; width: 100%; height: 100%; padding: 6%; box-sizing: border-box; }
.xh-out path { fill: #b8322a; stroke: #b8322a; stroke-width: 18; stroke-linejoin: round; }
.xh-paper path { fill: #fffdf8; }
.xh-s { fill: transparent; transition: fill .5s ease; }
.xh-s.xh-today { fill: rgba(224, 86, 63, .18); animation: xhBlink 1.6s ease-in-out infinite; }
@keyframes xhBlink { 50% { fill: rgba(224, 86, 63, .5); } }
.xh-weather[hidden] { display: none; }
.xh-weather { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; font-size: var(--t-sm); color: var(--c-ink-2); }
.xh-wx { min-width: 44px; min-height: 36px; padding: 4px 10px; border-radius: 18px; border: 2px solid var(--xh-c, #b8322a); background: #fff; color: var(--xh-c, #b8322a); font-weight: 600; cursor: pointer; }
.xh-wx.xh-wx-on { background: var(--xh-c, #b8322a); color: #fff; }
.xh-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.xh-note { margin: 10px 0 0; font-size: var(--t-xs); color: var(--c-ink-3); }
.xh-explain h3 { margin: 14px 0 6px; font-size: var(--t-md); font-family: var(--font-serif); }
.xh-explain p, .xh-explain li { line-height: 1.85; }
.xh-dz { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--t-sm); }
.xh-dz li { display: grid; gap: 2px; }
.xh-dz span { color: var(--c-ink-3); font-size: var(--t-xs); }
@media (max-width: 560px) { .xh-board { padding: 10px; } .xh-grid { gap: 6px; } .xh-actions .btn { flex: 1 1 calc(50% - 8px); } }
@media (prefers-reduced-motion: reduce) { .xh-s.xh-today { animation: none; } .xh-s { transition: none; } }
