/* 首页、报告页、恢复页共用这一份。刻意不做设计，只保证手机上能用、能读，视觉由 Chris 后期定稿
   主要在手机上用：输入框字号至少 16px（否则 iPhone 点输入框会自动放大页面），可点的东西至少 44px 高 */
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* 否则 .field 的 display:block 会把 hidden 盖掉（新疆选项曾因此一直显示） */
body { font-family: system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.7;
       max-width: 760px; margin: 0 auto; padding: 1rem 16px 4rem; color: #111; background: #fff;
       -webkit-text-size-adjust: 100%; }
h1 { font-size: 1.5rem; margin: .5rem 0; }
fieldset { border: 1px solid #ccc; padding: .8rem; margin: 0 0 1.5rem; }
.field { display: block; margin: 0 0 .9rem; }
.field > .label { display: block; font-size: .95rem; color: #333; margin-bottom: .2rem; }
input:not([type=radio]) { font: inherit; font-size: 16px; width: 100%; min-width: 0; max-width: 100%; min-height: 44px;
                          padding: .4rem .6rem; display: block;
                          -webkit-appearance: none; appearance: none; background: #fff; color: #111;
                          border: 1px solid #999; border-radius: 4px; }
/* 输入出生地时在底部临时加空白，让输入框能滚到屏幕上方，下拉提示不被键盘挡住 */
body.typing-place { padding-bottom: 60vh; }

/* ---------- 出生日期与时间：五列滚轮（2026-09-16 换掉系统的日期/时间框） ----------
   原来用 <input type=date/time>，各家长得不一样、时间还会显示"上午/下午"。现在五列同屏、
   肯定是 24 小时制。--wheel-item 要和 wheel.js 里的 ITEM_H 一致 */
.wheel { --wheel-item: 42px; border: 1px solid #999; border-radius: 4px; background: #fff; overflow: hidden; }
.wheel-head { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
              font-size: .85rem; color: #555; background: #f5f5f5; border-bottom: 1px solid #ddd; }
.wheel-head span { text-align: center; padding: .25rem 0; }
.wheel-body { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; }
/* 每列自己能上下滚，松手吸附到最近一格 */
.wheel-col { height: calc(var(--wheel-item) * 5); overflow-y: auto; scroll-snap-type: y mandatory;
             -webkit-overflow-scrolling: touch; scrollbar-width: none;
             padding: calc(var(--wheel-item) * 2) 0; text-align: center; outline: none; }
.wheel-col::-webkit-scrollbar { display: none; }
.wheel-col:focus-visible { background: #f0f6ff; }
.wheel-item { height: var(--wheel-item); line-height: var(--wheel-item); scroll-snap-align: center;
              font-variant-numeric: tabular-nums; color: #999; font-size: 1.05rem; }
.wheel-item.on { color: #111; font-weight: 600; }
/* 中间那一格的横线，只是装饰，不挡手指 */
.wheel-center { position: absolute; left: 0; right: 0; top: calc(var(--wheel-item) * 2);
                height: var(--wheel-item); border-top: 1px solid #bbb; border-bottom: 1px solid #bbb;
                pointer-events: none; }
button { font: inherit; font-size: 16px; min-height: 44px; padding: .4rem 1.2rem; cursor: pointer; }
button[disabled] { cursor: default; opacity: .6; }
#go, #report-btn { width: 100%; }
#status { color: #b00; display: block; margin-top: .5rem; }
#progress { color: #555; display: block; margin-top: .5rem; }
.place-wrap { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 10; background: #fff; border: 1px solid #999;
           max-height: 45vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.suggest button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #eee;
                  background: none; padding: .5rem .6rem; line-height: 1.4; }
.suggest button.active, .suggest button:hover { background: #ddd; }
.suggest .none { padding: .5rem .6rem; color: #555; }
#xinjiang label { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; margin-right: 1rem; }
#chart ul { padding-left: 1.2rem; }
.report { overflow-wrap: anywhere; }
/* 报告标题在手机上别太大：章节标题"一、天赋 · 上升点 合 参宿七 Rigel（误差 0.78°）"很长，24px 会折成三四行 */
.report h1 { font-size: 1.4rem; line-height: 1.4; }
.report h2 { font-size: 1.15rem; line-height: 1.5; margin: 1.6rem 0 .6rem; }
.report blockquote { border-left: 3px solid #999; margin-left: 0; padding-left: .8rem; color: #333; }
.report table { border-collapse: collapse; }
.report td, .report th { border: 1px solid #ccc; padding: .2rem .5rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- 报告链接、我的记录、取回码（2026-09-16 加） ---------- */
.note { color: #555; font-size: .9rem; line-height: 1.6; }
.warn { color: #b00; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0; }
.btn-row button { flex: 1 1 auto; min-width: 8rem; }
.linkbox { word-break: break-all; background: #f5f5f5; border: 1px solid #ddd; padding: .5rem .6rem;
           font-size: .9rem; line-height: 1.5; }
section.block { border-top: 1px solid #ddd; margin-top: 2rem; padding-top: 1rem; }
section.block h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
.records { list-style: none; padding: 0; margin: 0; }
.records li { border-bottom: 1px solid #eee; }
.records a { display: block; min-height: 44px; padding: .5rem 0; color: #111; }
.records .who { font-weight: 600; }
.records .when { color: #555; font-size: .9rem; }
/* 取回码：等宽字体分组显示，抄的时候不容易串行 */
.code { font-family: ui-monospace, "SFMono-Regular", Consolas, "Courier New", monospace;
        font-size: 1.4rem; font-weight: 700; letter-spacing: .06em; word-break: break-all; }
#card-img { display: block; width: 100%; max-width: 300px; height: auto; margin: .8rem 0;
            border: 1px solid #ddd; }
