/* web.css — 手游趣网页版补充样式：扫码登录弹窗、返回首页按钮、页脚开源声明（变量来自 css/dashboard.css） */

/* 刷新、设置旁的「返回手游趣」 */
.wb-home-btn { display: inline-grid; place-items: center; text-decoration: none; color: inherit; }

.wb-footer-credit { display: block; margin-top: 8px; font-size: 12px; line-height: 1.7; }
.wb-footer-credit a { color: var(--info); text-decoration: none; }
.wb-footer-credit a:hover { text-decoration: underline; }
a.settings-link-btn { text-decoration: none; }

/* ---- 扫码登录弹窗 ---- */
.wb-login { position: fixed; inset: 0; z-index: 30000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.wb-login-backdrop { position: absolute; inset: 0; background: rgba(10, 14, 20, 0.55); }
.wb-login-card {
  position: relative; width: min(100%, 400px); max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--bg-card); color: var(--text-primary);
  border: 1px solid var(--border-light); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 24px 20px 18px; text-align: center; font-family: var(--font-body);
}
.wb-login-close {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px;
  border: 0; border-radius: 8px; background: transparent; color: var(--text-secondary); font-size: 22px; line-height: 1; cursor: pointer;
}
.wb-login-close:hover { background: var(--bg-muted); }
.wb-login-kicker { color: var(--accent-strong); font-size: 12px; text-align: left; margin-bottom: 12px; }
.wb-login-card h2 { margin: 0 0 8px; font-size: 19px; color: var(--text-primary); }
.wb-login-desc { margin: 0 0 14px; font-size: 13px; line-height: 1.7; color: var(--text-secondary); }
.wb-qr-box {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 220px; height: 220px; margin: 0 auto; padding: 8px;
  background: #fff; border: 1px solid var(--border-strong); border-radius: 12px; cursor: default;
}
.wb-qr-img { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.wb-qr-loading, .wb-qr-fallback { font-size: 13px; color: #556; padding: 12px; line-height: 1.6; }
.wb-qr-box.is-expired { cursor: pointer; }
.wb-qr-box.is-expired::after {
  content: "点击刷新"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(255, 255, 255, 0.92); color: #111; font-weight: 700; font-size: 15px;
}
.wb-login-status { min-height: 22px; margin: 12px 0 6px; font-size: 14px; font-weight: 600; color: var(--text-primary); }
.wb-login-status[data-kind="ok"] { color: var(--success); }
.wb-login-status[data-kind="warn"] { color: var(--warn); cursor: pointer; }
.wb-open-link { display: inline-block; margin: 2px 0 12px; font-size: 13px; color: var(--info); text-decoration: underline; }
.wb-open-link[hidden] { display: none; }
.wb-login-note {
  margin: 4px 0 0; padding: 10px 12px; text-align: left; font-size: 12px; line-height: 1.7; color: var(--text-tertiary);
  background: var(--bg-muted); border-radius: 8px;
}

@media (max-width: 639px) {
  .wb-login { padding: 0; align-items: flex-end; }
  .wb-login-card { width: 100%; padding: 20px 14px calc(14px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; }
  .wb-qr-box { width: 200px; height: 200px; }
  /* 手机上直接打开授权页更方便，放大成按钮 */
  .wb-open-link {
    display: block; margin: 4px 0 12px; padding: 11px 12px; border-radius: 10px; text-decoration: none; font-weight: 700;
    color: var(--primary-text); background: var(--primary-bg); border: 1px solid var(--primary-border);
  }
}
