/* 所有页面共用：栏目导航、页脚、AI 标识、站长的话、说明类页面 */
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 12px; color: var(--ink); font-size: 15px; font-weight: 750; text-decoration: none; border-radius: 9px; }
.site-nav a:hover, .site-nav [aria-current] { background: var(--paper-2); }

.site-footer.shell-footer { display: grid; justify-items: center; gap: 4px; max-width: 1216px; margin-inline: auto; padding: 22px 20px 30px; text-align: center; font-size: 13px; color: var(--ink-2); }
.shell-footer p { margin: 0; }
.shell-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 6px; }
.shell-footer nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 2px 8px; }
.shell-footer #site-record { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }

.ai-badge { position: absolute; top: 8px; right: 8px; z-index: 2; padding: 1px 9px; font-size: 12px; font-weight: 800; color: #fff; background: rgba(31, 42, 68, .74); border: 1px solid rgba(255, 255, 255, .5); border-radius: 99px; pointer-events: none; }
/* 视频上的标识做小一些，少挡画面 */
.player-screen .ai-badge { top: 5px; right: 5px; padding: 0 5px; font-size: 11px; line-height: 15px; font-weight: 700; background: rgba(31, 42, 68, .6); }
.ai-chip { padding: 1px 9px; font-size: 12px; font-weight: 800; white-space: nowrap; color: var(--ink); background: var(--sky); border: 1px solid var(--ink); border-radius: 99px; }

.welcome { width: min(560px, calc(100vw - 28px)); max-height: calc(100dvh - 40px); overflow: auto; padding: 24px 24px 20px; color: var(--ink); background: var(--card); border: 2px solid var(--ink); border-radius: 20px; box-shadow: 0 8px 0 var(--ink); }
.welcome::backdrop { background: rgba(12, 18, 34, .66); }
.welcome h2 { margin: 0 0 12px; font-size: 22px; }
.welcome-text p { margin: 0 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.welcome .button { display: flex; margin: 6px auto 0; padding-inline: 28px; }

.doc-page { max-width: 760px; margin-inline: auto; padding: 30px 20px 20px; }
.doc-page h1 { font-size: clamp(27px, 4vw, 38px); margin-bottom: 6px; }
.doc-page h2 { margin: 26px 0 8px; font-size: 19px; }
.doc-page p, .doc-page li { line-height: 1.85; }
.doc-page p { margin: 0 0 10px; }
.doc-page ul { margin: 0 0 10px; padding-left: 22px; }
.doc-page table { width: 100%; margin: 6px 0 12px; border-collapse: collapse; font-size: 14px; line-height: 1.65; }
.doc-page th, .doc-page td { padding: 8px 10px; text-align: left; vertical-align: top; border: 1px solid var(--line); overflow-wrap: anywhere; }
.doc-page th { background: var(--paper-2); }

.lost { max-width: 620px; margin-inline: auto; padding: 40px 20px; text-align: center; }
.lost svg { width: min(300px, 80%); }
.lost h1 { font-size: clamp(26px, 5vw, 38px); }
.lost p { margin: 8px 0 20px; color: var(--ink-2); }
.lost .button { display: inline-flex; margin: 0 6px 10px; text-decoration: none; }

@media (max-width: 760px) {
  .site-nav { order: 3; flex-basis: 100%; margin: 0; overflow-x: auto; }
  .site-nav a { flex: 1; justify-content: center; font-size: 14px; white-space: nowrap; min-height: 40px; }
  .site-footer.shell-footer { padding-bottom: 96px; }
}
.nav-avatar { width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; object-fit: cover; vertical-align: middle; }
