/* 星骇官网 · 2026-10-23 修复层（batch A）
   临时文件：等 CSS 合并（batch B）时并入 site.css 后即可删除。
   必须最后加载，否则会被前面的主题皮肤层覆盖。 */

/* 1) [hidden] 兜底
   作者样式里的 display:grid 会盖掉浏览器默认的 [hidden]{display:none}，
   导致 Wiki 加载中/失败时露出空的侧栏与正文框。 */
[hidden]{display:none!important}

/* 2) 空状态与加载失败提示 */
.empty{padding:18px 0;color:var(--muted);font-size:14px;line-height:1.9}

/* 3) 阅读栏对齐
   FAQ / 更新公告 / 活动公告 原本 max-width:900px 却各自摆在不同位置，
   统一成与 page-head 同宽的居中阅读栏。 */
.wrap--reading{width:min(900px,calc(100% - 64px))}
.faq-list,.update-record{max-width:none}

/* 4) 字号下限：正文 14 / 次要 12，像素字号保持 12 的整数倍 */
.eyebrow{font-size:12px;letter-spacing:2.2px}
.card-number{font-size:12px;letter-spacing:1.6px}
.art-label,.home-art>span{font-size:11px}
.hero-caption{font-size:12px}
footer p{font-size:12px}
.connection p,.motd-panel p{font-size:12px}

/* 5) 点击区
   视觉尺寸不变，用伪元素把可点区域扩到 44px。 */
.text-link,.join-links a,.record-links a{position:relative}
.text-link::after,.join-links a::after,.record-links a::after{
  content:"";position:absolute;inset:-10px -6px}

/* 6) 备案行统一（原本 index/updates/events 用内联样式，wiki 用了未定义的类，其余页面缺失） */
.record-links{
  display:flex;flex-wrap:wrap;justify-content:center;gap:0 10px;
  padding:2px 18px 26px;font-size:12px;color:var(--muted)}
.record-links a{color:inherit}
.record-links a:hover{color:var(--text)}
.record-links span{opacity:.45}

/* 7) 移动端首屏
   原 min-height:calc(100svh - 92px) 按 92px 导航计算，
   但移动端导航实际 182px，导致 390×844 下 hero 762px 溢出、
   "向下探索"与第三条信息被推到折叠线以下。 */
@media(max-width:700px){
  .hero.hero-centered{min-height:auto;display:block;padding-bottom:32px}
  .hero-centered .hero-inner{padding:24px 0 0}
  .hero-official-logo{width:168px;height:168px}
  .hero-centered .hero-intro{font-size:18px;line-height:1.7;margin-top:16px;max-width:340px}
  .hero-centered .actions{margin-top:18px;gap:8px}
  .hero-centered .button{min-height:50px;padding:12px 18px;font-size:17px}
  .hero-facts{flex-wrap:wrap;justify-content:center;gap:8px 14px;margin-top:18px}
  .hero-facts img{width:24px;height:24px}
  .hero-facts span{font-size:12px}
  .hero-facts strong{font-size:14px}
  .hero-scroll{position:static;left:auto;transform:none;margin:14px auto 0;width:max-content;font-size:12px}
  .hero-scroll b{font-size:26px}
}

/* 小屏补两处字号下限（pixel-font.css 在 360px 会把 hero-facts 压到 10px） */
@media(max-width:360px){
  .hero-facts strong{font-size:12px}
  .hero-facts span{font-size:11px}
  .brand small{font-size:11px}
}

/* 弹窗按钮在窄屏改为整行堆叠，避免"查看更新记录 →"折行 */
@media(max-width:420px){
  .dialog-actions{flex-direction:column;align-items:stretch}
  .dialog-actions .button{width:100%}
}

/* 8) 职业第 5 张卡
   bright-violet 的 grid-column:1/-1 被 card-art 的 auto 抵消，移动端只剩半行。
   补回整行，并改成"图左文右"，避免把 3:4 立绘裁成 16:9。 */
@media(max-width:700px){
  .career-grid .art-card:last-child{
    grid-column:1/-1;display:grid;grid-template-columns:44% minmax(0,1fr);align-items:center}
  .career-grid .art-card:last-child .card-visual img{aspect-ratio:3/4;object-position:center}
  .career-grid .art-card:last-child .art-copy{padding:20px 18px}
  .career-grid .art-card:last-child .art-copy h3{margin:8px 0 10px}
}

/* 9) 离线状态：MOTD 为空时不再留 185px 空盒 */
.motd-panel.is-quiet{padding:12px 16px;background:transparent;border-style:dashed}
