/* ============================================================
   门户补充样式：公告条 / 登录徽章位 / 打赏卡片 / 弹层 / 页脚法务链接
   追加在 style.css 之后（同一文件末尾亦可，独立文件便于回滚）
   ============================================================ */

/* 顶部右侧（登录/积分徽章挂载位） */
.hero { position: relative; }
.top-right { position: absolute; top: 14px; right: 16px; z-index: 5; display: flex; align-items: center; gap: 8px; }
@media (max-width: 520px) {
  .top-right { position: static; display: flex; justify-content: center; margin-bottom: 12px; }
}

/* 右上角独立「用户登录」按钮 */
.user-login-btn {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, #5a96ff, #7ec2ff);
  border: 0;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(90, 150, 255, .35);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  white-space: nowrap;
}
.user-login-btn:hover { filter: brightness(1.08); }
.user-login-btn.hide { display: none; }
/* 门户已有独立登录按钮，隐藏 SDK 的未登录营销徽章，避免两个入口并排 */
#topRight .gp-pill[data-act="login"] { display: none; }

/* 公告条 */
.ann-bar {
  position: relative; z-index: 6;
  display: flex; align-items: center; gap: 10px;
  max-width: 1080px; margin: 14px auto 0; padding: 10px 14px;
  background: linear-gradient(120deg, rgba(255,180,60,.16), rgba(255,120,80,.10));
  border: 1px solid rgba(255,190,90,.4);
  border-radius: 12px;
  font-size: 13.5px; color: #ffe0ab;
}
.ann-bar.hide { display: none; }
.ann-tag {
  flex: none; padding: 2px 9px; border-radius: 8px;
  font-size: 11.5px; font-weight: 800; color: #2a1a05;
  background: linear-gradient(120deg, #ffd06a, #ffb144);
}
.ann-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ann-close {
  flex: none; width: 24px; height: 24px; line-height: 1;
  font-size: 17px; color: #ffd9a0;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,190,90,.3);
  border-radius: 50%; cursor: pointer;
}

/* 打赏卡片 */
.donate {
  margin-top: 26px; padding: 18px 20px;
  background: linear-gradient(150deg, rgba(255,200,120,.12), rgba(255,140,90,.06));
  border: 1px solid rgba(255,190,120,.32);
  border-radius: 18px;
}
.donate.hide { display: none; }
.donate-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.donate-title { font-size: 17px; font-weight: 800; color: #ffe0b0; }
.donate-sub { margin-top: 5px; font-size: 12.5px; color: #b9a68b; }
.donate-more {
  padding: 9px 18px; font-size: 13.5px; font-weight: 800; color: #2a1a05;
  background: linear-gradient(120deg, #ffd06a, #ffb144);
  border: 0; border-radius: 11px; cursor: pointer;
}

/* 通用弹层（打赏码放大） */
.modal { position: fixed; inset: 0; z-index: 100050; background: rgba(5,10,20,.75); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 18px; }
.modal.hide { display: none; }
.modal-box {
  position: relative; width: 100%; max-width: 340px;
  padding: 20px; text-align: center;
  background: linear-gradient(165deg, #24325a, #131c33);
  border: 1px solid rgba(255,200,140,.28); border-radius: 18px;
  color: #f3e8d8; box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.modal-box h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: #ffe6bd; }
.modal-sub { margin: 0 0 14px; font-size: 12.5px; color: #b8a48c; line-height: 1.6; }
.modal-close {
  position: absolute; top: 8px; right: 12px;
  font-size: 20px; line-height: 1; color: #c8b6a0;
  background: none; border: 0; cursor: pointer;
}
.qr-box {
  width: 100%; aspect-ratio: 1 / 1; max-height: 280px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); border: 1px dashed rgba(255,200,140,.35);
  border-radius: 14px; overflow: hidden;
  font-size: 12.5px; color: #a89684;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.modal-tip { margin: 14px 0 0; font-size: 11.5px; color: #9c8b76; line-height: 1.7; text-align: left; }

/* 页脚扩充 */
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-bottom: 10px; }
.foot-links a { color: #8fa8cc; font-size: 12.5px; text-decoration: none; }
.foot-links a:hover { color: #b9d2f5; text-decoration: underline; }
.foot-links .sep { color: #3f5474; }
.foot-copy { color: #5f7295; font-size: 12.5px; letter-spacing: 1px; }
.foot-icp { margin-top: 8px; font-size: 12px; }
.foot-icp a { color: #6d84a8; text-decoration: none; }
.foot-icp a:hover { text-decoration: underline; }
.foot-icp .hide, .foot-icp a.hide { display: none; }
.foot-note { margin-top: 10px; max-width: 620px; margin-left: auto; margin-right: auto; font-size: 11.5px; color: #4d5e7c; line-height: 1.8; }
.muted { color: #8fa2c4; }

/* 顶部徽章（.top-right 内不使用 fixed） */
.top-right .gp-hud { position: static; }
