/* 自己托管的字体：思源宋体（常用字 + 页面用字，字重 500–900）、Cormorant Garamond（数字和西文） */
@font-face{font-family:"XH Serif";src:url(fonts/xh-serif.woff2?v=9) format("woff2");font-weight:500 900;font-style:normal;font-display:swap}
@font-face{font-family:"XH Num";src:url(fonts/xh-num-normal.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap;unicode-range:U+0020-002F,U+003A-007E,U+00A0-00FF}
@font-face{font-family:"XH Num";src:url(fonts/xh-num-italic.woff2) format("woff2");font-weight:400 700;font-style:italic;font-display:swap;unicode-range:U+0020-002F,U+003A-007E,U+00A0-00FF}
/* 星火艺途平台 · 全站共用的一层：颜色字体、顶栏、等待屏、提醒条、小游戏层。每个页面都引这个文件。 */
:root{
  --xh-bg:#0F0D0B;--xh-bg2:#1A1612;--xh-bg3:#241F19;--xh-cream:#F3ECE0;--xh-dim:#A39A8C;--xh-gold:#D8B36B;
  --xh-paper:#F4EEE4;--xh-ink:#1F1A15;--xh-ink2:#6B6257;--xh-gold-ink:#96742F;
  --xh-hair-d:rgba(243,236,224,.16);--xh-hair-l:rgba(31,26,21,.15);
  --xh-serif:"XH Serif","Noto Serif SC","Source Han Serif SC","Noto Serif SC Title","Songti SC","STSong","SimSun",serif;
  --xh-sans:"Noto Sans SC","Source Han Sans SC","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  --xh-num:"XH Num","XH Serif","Cormorant Garamond","Noto Serif SC","Songti SC",Georgia,serif;
}
.xh-brand,.xh-me{color:inherit;text-decoration:none}
.xh-me{font-size:13px;letter-spacing:.2em;color:var(--xh-dim);padding:10px 0 10px 16px;margin-right:-.2em}
.xh-glow{display:block;flex:none;width:56px;height:56px;border-radius:50%;
  background:radial-gradient(circle,rgba(236,224,198,.95) 0%,rgba(214,196,160,.6) 30%,rgba(190,168,128,.22) 62%,rgba(190,168,128,0) 100%);
  animation:xh-breathe 4.8s ease-in-out infinite}
@keyframes xh-breathe{0%,100%{opacity:.55;transform:scale(1)}50%{opacity:1;transform:scale(1.15)}}
@media (prefers-reduced-motion:reduce){.xh-glow{animation:none}}

/* —— 等待屏：整屏。等的时候想干什么都行 —— */
#xhWait{position:fixed;inset:0;z-index:60;display:flex;flex-direction:column;align-items:center;background:var(--xh-bg);color:var(--xh-cream);
  font-family:var(--xh-sans);padding:0 24px calc(24px + env(safe-area-inset-bottom,0px));box-sizing:border-box}
#xhWait[hidden]{display:none}
#xhWait .w-top{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;text-align:center;min-height:0}
#xhWait .w-top .xh-glow{width:72px;height:72px}
#xhWait h2{margin:0;font:700 22px/1.4 var(--xh-serif);letter-spacing:.12em}
#xhWait .w-sub{margin:0;color:var(--xh-dim);font-size:14px;line-height:1.7}
#xhWait .w-acts{width:100%;max-width:420px;display:flex;flex-direction:column;gap:12px}
#xhWait .w-kicker{margin:0 0 2px;color:var(--xh-dim);font-size:13px;letter-spacing:.2em;text-align:center}
.xh-btn{display:block;width:100%;min-height:54px;border:0;border-radius:4px;background:var(--xh-cream);color:var(--xh-ink);
  font:700 18px/1 var(--xh-serif);letter-spacing:.2em;cursor:pointer;text-align:center;text-decoration:none;box-sizing:border-box}
a.xh-btn{line-height:54px}
.xh-btn--gold{background:var(--xh-gold)}
.xh-btn--line{min-height:48px;background:transparent;color:var(--xh-cream);border:1px solid rgba(243,236,224,.42);font:500 15px/1 var(--xh-sans);letter-spacing:.08em}
#xhWait .w-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#xhWait .w-ad{width:100%;max-width:420px;margin-top:16px}
#xhWait .w-ad[hidden]{display:none}

/* —— 提醒条：不在等待屏的时候，挂在每一页最上面 —— */
#xhBar{position:fixed;top:0;left:0;right:0;z-index:55;display:flex;align-items:center;justify-content:center;gap:10px;min-height:42px;
  padding:env(safe-area-inset-top,0px) 16px 0;border:0;width:100%;box-sizing:border-box;cursor:pointer;text-decoration:none;
  background:rgba(26,22,18,.96);color:var(--xh-cream);font:500 14px/1 var(--xh-sans);letter-spacing:.06em;border-bottom:1px solid var(--xh-hair-d)}
#xhBar[hidden]{display:none}
#xhBar i{width:10px;height:10px;border-radius:50%;background:var(--xh-gold);animation:xh-breathe 1.6s ease-in-out infinite}
#xhBar.is-ready{background:var(--xh-gold);color:var(--xh-ink);font-weight:700;border-bottom-color:transparent}
#xhBar.is-ready i{display:none}
body.xh-has-bar{padding-top:42px}

/* —— 小游戏层 —— */
#xhGame{position:fixed;inset:0;z-index:70;display:flex;flex-direction:column;background:#07070B}
#xhGame[hidden]{display:none}
#xhGame .g-bar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:env(safe-area-inset-top,0px) 6px 0 6px;background:var(--xh-bg);color:var(--xh-cream);font-family:var(--xh-sans)}
#xhGame .g-bar button{border:0;background:none;color:inherit;font:500 14px/1 var(--xh-sans);padding:12px 10px;cursor:pointer}
#xhGame .g-state{font-size:13px;color:var(--xh-dim);padding-right:10px}
#xhGame .g-go{background:var(--xh-gold)!important;color:var(--xh-ink)!important;font-weight:700!important;border-radius:3px;padding:9px 14px!important;margin-right:4px}
#xhGame .g-go[hidden]{display:none}
#xhGame iframe{flex:1;width:100%;border:0;display:block;min-height:0}

/* 顶栏右边：同路人、我的 */
.xh-nav{display:flex;align-items:center;gap:6px}
.xh-nav .xh-me{padding-left:12px}
.xh-nav .xh-me{color:#CFC6B8}

/* 数字用等高的（Cormorant 默认是高低错落的老式数字，放在专属码和分数上显得乱） */
html{font-variant-numeric:lining-nums}
