/* 预测宝分享页：组件对齐 Android（白卡、头像角标、标签、准章、对照条）。颜色只用 tokens.css 里的变量。 */
@font-face { font-family: "Num"; src: url("barlow_condensed_bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font-family: -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 14px; line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 480px; margin: 0 auto; padding: 0 10px 120px; }
.num { font-family: "Num", sans-serif; font-weight: 700; font-variant-numeric: tabular-nums; }
.mute { color: var(--mute); }
.sub { font-size: 11px; color: var(--mute); }

/* 顶部品牌条 */
.brand { display: flex; align-items: center; gap: 8px; padding: 12px 4px 10px; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand b { font-size: 16px; font-weight: 900; }
.brand span { font-size: 11px; color: var(--mute); margin-left: auto; }

/* 头图 */
.hero { margin: 0 -10px; padding: 14px 20px 54px; color: #fff; }
.hero.red { background: linear-gradient(160deg, #FF6A55, var(--red) 55%, var(--red-deep)); }
.hero.brown { background: linear-gradient(#2A1712, var(--brown2)); }
.hero.ai { background: linear-gradient(160deg, var(--ai-light), var(--ai)); }
.overlap { margin-top: -40px; position: relative; }

/* 卡片 */
.c { background: var(--card); border-radius: var(--r-card); padding: 10px 12px; margin-bottom: var(--s-card-gap); }
.ttl { display: flex; justify-content: space-between; align-items: center; font-weight: 900; font-size: 15px; }
.ttl small { font-size: 11px; color: var(--mute); font-weight: 500; }
.row { display: flex; align-items: center; gap: 9px; }
.li { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-top: 1px solid #F2F2F2; }
.li:first-of-type { border-top: 0; }

/* 头像 */
.av { position: relative; display: inline-block; flex: none; }
.av img, .av .xb { border-radius: 50%; display: block; object-fit: cover; background: #ddd; }
.av .xb { display: grid; place-items: center; color: #fff; font-weight: 900; background: linear-gradient(135deg, var(--ai-light), var(--ai)); }
.av.ring img, .av.ring .xb { border: 3px solid #fff; }
.av .bd { position: absolute; right: -2px; bottom: -1px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff;
  display: grid; place-items: center; font-size: 8px; font-weight: 900; color: #fff; }
.bd.fire { background: linear-gradient(#FF7A4D, var(--red)); }
.bd.v { background: var(--gold); }
.bd.ai { background: var(--ai); }

/* 标签与按钮 */
.tg { display: inline-flex; align-items: center; height: 18px; padding: 0 5px; border-radius: var(--r-tag); font-size: 10px; font-weight: 700; white-space: nowrap; vertical-align: middle; }
.tg.r { background: var(--red-bg); color: var(--red); }
.tg.g { background: var(--gold-bg); color: var(--gold-ink); }
.tg.ai { background: var(--ai-bg); color: var(--ai); }
.tg.k { background: var(--grey-btn); color: #888; }
.tg.on-red { background: rgba(255,255,255,.22); color: #fff; }
.bt { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 22px; font-weight: 800; font-size: 15px; }
.bt.p { background: linear-gradient(90deg, var(--red2), var(--red)); color: #fff; }
.bt.s { border: 1px solid var(--red); color: var(--red); background: #fff; }

/* 大号数字 */
.big { font-family: "Num", sans-serif; font-weight: 700; color: var(--red); line-height: 1; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); row-gap: 12px; text-align: center; padding: 12px 6px; }
.stats .lab { font-size: 10.5px; color: var(--mute); margin-top: 3px; }

/* 对照条 */
.bar { display: grid; grid-template-columns: 56px 1fr 38px; gap: 8px; align-items: center; font-size: 11.5px; margin: 5px 0; }
.bar .track { height: 6px; background: var(--track); border-radius: 3px; overflow: hidden; }
.bar .fill { height: 100%; border-radius: 3px; }
.bar b { text-align: right; }

/* 平面准章 */
.stamp { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border: 2.5px solid var(--red); color: var(--red);
  border-radius: 8px; font-weight: 900; font-size: 16px; transform: rotate(-10deg); box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3.5px var(--red); }
.stamp.miss { border-color: #BBB; color: #BBB; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3.5px #BBB; font-size: 10px; }

/* 二选一 */
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick div { border: 1px solid #E5E5E5; border-radius: 12px; text-align: center; padding: 12px 0; }
.pick b { display: block; font-size: 22px; font-weight: 900; color: var(--ink2); }
.pick .on { border: 2px solid var(--red); background: #FFF6F5; }
.pick .on b { color: var(--red); }

/* 叠放头像 */
.stack { display: flex; align-items: center; }
.stack .av { margin-left: -10px; }
.stack .av:first-child { margin-left: 0; }
.stack .av img { border: 2px solid #fff; }

/* 底部打开 App 条 */
.open { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
.open .in { max-width: 480px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.open .in svg { width: 36px; height: 36px; flex: none; }
.open .in div { flex: 1; font-size: 12px; color: var(--ink2); line-height: 1.35; }
.open .in div b { display: block; font-size: 14px; color: var(--ink); }
.open .bt { height: 36px; padding: 0 16px; font-size: 13px; }

/* 微信 / 微博内置浏览器提示 */
.wx-tip { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.72); color: #fff; z-index: 9; text-align: right; padding: 14px 22px; font-size: 15px; line-height: 1.7; }
.wx-tip.show { display: block; }

/* 页脚：合规与备案 */
.foot { text-align: center; font-size: 10.5px; color: #AAA; padding: 14px 10px 0; line-height: 1.7; }
.foot a { color: #AAA; }
.note { font-size: 10.5px; color: #AAA; padding: 2px 4px 8px; }
