/* 前台公共样式（首页 + 游戏详情页）—— 暗夜琥珀主题 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Yuanti SC", "YouYuan", "幼圆", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #e8ecf4;
  min-height: 100vh;
}
button { font-family: inherit; }
a { text-decoration: none; color: inherit; }

/* 背景层 */
#bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 620px at 12% -5%, rgba(251, 191, 36, .16), transparent 60%),
    radial-gradient(820px 620px at 96% 6%, rgba(56, 189, 248, .12), transparent 55%),
    linear-gradient(165deg, #0d1226, #131a30 55%, #0a1020);
  background-size: cover; background-position: center;
}

.wrap { max-width: 480px; margin: 0 auto; padding: 72px 16px 40px; }
.page-game .wrap { padding-top: 88px; }

/* 头部 */
.site-head { text-align: center; margin-bottom: 18px; }
.avatar {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(251, 191, 36, .45);
  box-shadow: 0 8px 24px rgba(2, 6, 23, .55), 0 0 0 5px rgba(251, 191, 36, .08);
  background: #1a2440;
}
.site-head h1 {
  font-size: 25px; font-weight: 800; margin-top: 12px; letter-spacing: 2px;
  color: #f8fafc; text-shadow: 0 2px 14px rgba(2, 6, 23, .6);
}
.site-head .desc { font-size: 13.5px; color: #93a1bb; margin-top: 8px; line-height: 1.7; }
.page-game .site-head h1 { text-shadow: 0 2px 14px rgba(2, 6, 23, .75); }
.page-game .site-head .desc { color: #a5b1c6; text-shadow: 0 1px 8px rgba(2, 6, 23, .6); }

/* 公告 */
.announce {
  background: rgba(251, 191, 36, .09);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(251, 191, 36, .28);
  border-radius: 16px; padding: 12px 14px;
  font-size: 12.5px; line-height: 1.7; color: #fcd34d;
  margin-bottom: 16px;
}

/* 链接卡片 */
.cards { display: flex; flex-direction: column; gap: 14px; }
.card {
  display: flex; align-items: center; gap: 12px;
  background: rgba(21, 29, 50, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 22px; padding: 18px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, .45);
  cursor: pointer; text-align: left; width: 100%; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  animation: rise .45s ease both;
}
.card:hover {
  transform: translateY(-2px); border-color: rgba(251, 191, 36, .35);
  box-shadow: 0 14px 34px rgba(2, 6, 23, .55), 0 0 18px rgba(251, 191, 36, .1);
}
.card:active { transform: scale(.985); }
.card .icon-circle {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(251, 191, 36, .13); color: #fbbf24;
  display: flex; align-items: center; justify-content: center;
}
.card .card-main { flex: 1; min-width: 0; }
.card .card-label { font-size: 15.5px; font-weight: 700; color: #f4f6fb; line-height: 1.45; }
.card .card-desc { font-size: 12px; color: #8fa0b8; margin-top: 4px; line-height: 1.6; }
.card .pill {
  flex: none; font-size: 12.5px; color: #fcd34d;
  background: rgba(251, 191, 36, .14);
  border: 1px solid rgba(251, 191, 36, .2);
  border-radius: 999px; padding: 6px 13px; white-space: nowrap;
}

/* 纯展示卡（不可点击） */
.card.info { cursor: default; display: block; }
.card.info:hover {
  transform: none; border-color: rgba(255, 255, 255, .09);
  box-shadow: 0 10px 30px rgba(2, 6, 23, .45);
}
.card.info .info-head { display: flex; align-items: center; gap: 12px; }
.card.info .info-body {
  margin-top: 12px; font-size: 13px; color: #b6c1d4; line-height: 1.9;
  white-space: pre-line; word-break: break-word;
}

/* 游戏列表 */
.games { margin-top: 26px; }
.games-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.games-head h3 { font-size: 17px; font-weight: 800; color: #f4f6fb; letter-spacing: 1px; }
.games-head span { font-size: 12px; color: #7e8cab; }
.search {
  width: 100%; border: 1px solid rgba(255, 255, 255, .1); outline: none;
  background: rgba(21, 29, 50, .72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 999px; padding: 12px 18px; font-size: 14px; color: #e8ecf4;
  margin-bottom: 14px; box-shadow: 0 6px 20px rgba(2, 6, 23, .4);
}
.search:focus { border-color: rgba(251, 191, 36, .45); }
.search::placeholder { color: #64748b; }
.game-list { display: flex; flex-direction: column; gap: 12px; }
.game-card {
  display: flex; align-items: center; gap: 12px;
  background: rgba(21, 29, 50, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 20px; padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(2, 6, 23, .42);
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  animation: rise .45s ease both;
}
.game-card:hover {
  transform: translateY(-2px); border-color: rgba(251, 191, 36, .35);
  box-shadow: 0 12px 30px rgba(2, 6, 23, .55), 0 0 18px rgba(251, 191, 36, .1);
}
.game-card img.g-avatar {
  flex: none; width: 62px; height: 62px; border-radius: 16px; object-fit: cover;
  background: #1a2440; border: 1px solid rgba(255, 255, 255, .12);
}
.game-card .g-main { flex: 1; min-width: 0; }
.game-card .g-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.game-card .g-title { font-size: 15.5px; font-weight: 700; color: #f4f6fb; }
.game-card .g-tag {
  flex: none; font-size: 11px; font-weight: 700; color: #fca5a5;
  background: rgba(248, 113, 113, .15); border: 1px solid rgba(248, 113, 113, .25);
  border-radius: 999px; padding: 2px 9px;
}
.game-card .g-codes { margin-top: 6px; display: flex; flex-direction: column; gap: 2px; }
.game-card .g-codes span { font-size: 12px; color: #7e8cab; line-height: 1.5; }
.game-card .g-enter { flex: none; font-size: 13px; color: #7e8cab; white-space: nowrap; }
.empty { text-align: center; color: #7e8cab; font-size: 13px; padding: 30px 0; }

/* 返回主页 */
.back-btn {
  position: fixed; top: 14px; left: 14px; z-index: 10;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(21, 29, 50, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px; padding: 8px 15px;
  font-size: 13px; color: #c7d2e3; cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 6, 23, .5);
}

/* 页脚 */
.footer { text-align: center; font-size: 12px; color: #6b7a94; margin-top: 34px; line-height: 1.7; }
.page-game .footer { color: #7e8cab; text-shadow: 0 1px 6px rgba(2, 6, 23, .6); }

/* 后台入口 */
.admin-entry {
  position: fixed; right: 14px; bottom: 14px; z-index: 10;
  background: rgba(21, 29, 50, .78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #7e8cab; font-size: 12px; border-radius: 999px; padding: 7px 14px;
}

.loading, .notfound { text-align: center; color: #93a1bb; padding-top: 120px; font-size: 15px; }
.notfound .big { font-size: 44px; margin-bottom: 12px; }
.notfound a {
  display: inline-block; margin-top: 18px; background: rgba(21, 29, 50, .85);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px; padding: 10px 22px; font-size: 14px; color: #c7d2e3;
}

/* QQ 加群弹窗 */
.qq-mask {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(3, 7, 18, .62);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.qq-modal {
  position: relative; width: 100%; max-width: 380px;
  background: #171f36; border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 24px; padding: 26px 22px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  animation: rise .25s ease both;
}
.qq-close {
  position: absolute; top: 14px; right: 16px; border: none; background: none;
  font-size: 22px; color: #7e8cab; cursor: pointer; line-height: 1; padding: 4px;
}
.qq-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-right: 24px; }
.qq-icon {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(251, 191, 36, .13); color: #fbbf24;
  display: flex; align-items: center; justify-content: center;
}
.qq-title { font-size: 16px; font-weight: 800; color: #f4f6fb; }
.qq-glabel { font-size: 13px; color: #8fa0b8; margin-top: 3px; }
.qq-btn {
  display: block; width: 100%; text-align: center; cursor: pointer;
  border-radius: 14px; padding: 14px; font-size: 15px; font-weight: 700;
  border: none; margin-bottom: 10px;
}
.qq-btn.primary { background: #fbbf24; color: #231a04; }
.qq-btn.primary:hover { background: #f59e0b; }
.qq-btn.ghost { background: rgba(255, 255, 255, .07); color: #dbe4f0; }
.qq-btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.qq-copy-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 4px; margin-top: 4px;
}
.qq-copy-row .num { font-size: 15px; font-weight: 700; color: #f4f6fb; letter-spacing: .5px; }
.qq-copy-row button {
  border: none; background: none; color: #fbbf24; font-size: 13.5px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 4px;
}
.qq-desc { font-size: 12.5px; color: #8fa0b8; line-height: 1.8; text-align: center; margin-top: 10px; }

/* 链接跳转弹窗 */
.lk-mask {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(3, 7, 18, .62);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lk-modal {
  width: 100%; max-width: 380px;
  background: #171f36; border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 24px; padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  animation: rise .25s ease both;
}
.lk-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.lk-title {
  flex: 1; min-width: 0;
  font-size: 16px; font-weight: 800; color: #f4f6fb;
  line-height: 1.5; word-break: break-word;
}
.lk-x {
  flex: none; border: none; background: none;
  font-size: 22px; color: #7e8cab; cursor: pointer; line-height: 1.2; padding: 0 2px;
}
.lk-tip {
  background: rgba(251, 191, 36, .09); border: 1px solid rgba(251, 191, 36, .25);
  border-radius: 12px;
  font-size: 12.5px; color: #fcd34d; line-height: 1.6;
  padding: 10px 12px; margin-bottom: 12px;
}
.lk-urlbox {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 14px;
}
.lk-url-label { font-size: 11.5px; color: #7e8cab; margin-bottom: 4px; }
.lk-url { font-size: 14px; color: #dbe4f0; line-height: 1.5; word-break: break-all; }
.lk-btn {
  display: block; width: 100%; text-align: center; cursor: pointer;
  border: none; border-radius: 14px; padding: 13px;
  font-size: 15px; font-weight: 700; margin-bottom: 10px;
}
.lk-btn.primary { background: #fbbf24; color: #231a04; }
.lk-btn.primary:hover { background: #f59e0b; }
.lk-btn.copy { background: transparent; color: #fbbf24; border: 1.5px solid rgba(251, 191, 36, .4); }
.lk-btn.copy:hover { background: rgba(251, 191, 36, .1); }
.lk-btn.close { background: rgba(255, 255, 255, .07); color: #8fa0b8; font-weight: 500; margin-bottom: 0; }
.lk-btn.close:hover { background: rgba(255, 255, 255, .12); }

/* 首页分享按钮 */
.share-btn {
  position: fixed; top: 14px; right: 14px; z-index: 10;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(21, 29, 50, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #c7d2e3; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(2, 6, 23, .5);
}

/* 分享弹窗 */
.sh-mask {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(3, 7, 18, .62);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.sh-modal {
  width: 100%; max-width: 360px; text-align: center;
  background: #171f36; border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 24px; padding: 20px 22px 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  animation: rise .25s ease both;
}
.sh-head { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.sh-qr-icon {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  background: rgba(251, 191, 36, .13); color: #fbbf24;
  display: flex; align-items: center; justify-content: center;
}
.sh-head-title { flex: 1; text-align: left; font-size: 16px; font-weight: 800; color: #f4f6fb; }
.sh-x {
  flex: none; border: none; background: none;
  font-size: 22px; color: #7e8cab; cursor: pointer; line-height: 1.2; padding: 0 2px;
}
.sh-site { font-size: 17px; font-weight: 800; color: #f4f6fb; }
.sh-sub { font-size: 12.5px; color: #8fa0b8; margin-top: 6px; }
.sh-qr {
  margin: 16px auto; min-height: 190px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 16px;
  box-shadow: 0 4px 18px rgba(2, 6, 23, .5);
}
.sh-qr img { width: 180px; height: auto; display: block; }
.sh-link-row {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px; padding: 8px 8px 8px 14px;
}
.sh-link {
  flex: 1; min-width: 0; text-align: left;
  font-size: 13px; color: #b6c1d4; word-break: break-all; line-height: 1.5;
}
.sh-copy {
  flex: none; border: none; cursor: pointer;
  background: #fbbf24; color: #231a04;
  font-size: 13px; font-weight: 700; border-radius: 10px; padding: 10px 16px;
  display: inline-flex; align-items: center; gap: 5px;
}
.sh-copy:hover { background: #f59e0b; }
.sh-foot { font-size: 11.5px; color: #7e8cab; line-height: 1.7; margin-top: 14px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
