/* relay.css - 中转页样式（简洁版，仿 123zyk + 资源封面） */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f3f6fb;
  min-height: 100vh;
  color: #1f2937;
  padding: 24px 16px;
  line-height: 1.6;
}

.wrap { max-width: 520px; margin: 0 auto; }

/* ===== 资源标题 ===== */
.title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 6px;
  word-break: break-all;
  color: #1f2937;
}
.remark {
  font-size: 14px;
  color: #6b7280;
  text-align: center;
  margin-bottom: 20px;
  white-space: pre-wrap;
}

/* ===== 资源封面图（失败隐藏） ===== */
.cover-wrap { text-align: center; margin-bottom: 22px; }
.cover {
  max-width: 100%;
  max-height: 360px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(30, 64, 120, 0.10);
  object-fit: cover;
}

/* ===== 平台段（多品牌每平台一段） ===== */
.section { margin-bottom: 28px; }

/* 多品牌：横向并排 grid */
.sections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 520px) {
  .sections-grid { grid-template-columns: 1fr; }
}
/* 多品牌：小卡片内尺寸适配 */
.sections-grid .qrcode img { width: 180px; height: 180px; }
.sections-grid .qr-game-title {
  font-size: 14px;
  padding: 8px 10px;
  margin-bottom: 10px;
}
.sections-grid .platform-title { font-size: 17px; margin-bottom: 8px; }
.sections-grid .card { padding: 14px 10px; }
.sections-grid .guide-mini {
  display: block;
  margin: 10px auto 0;
  max-width: 100px;
  max-height: 180px;
  opacity: 0.9;
}

/* 推荐卡片高亮 */
.section.is-recommended .card {
  border-color: #f59e0b;
  background: linear-gradient(180deg, #fffbf3 0%, #f9fafc 100%);
  box-shadow: 0 10px 32px rgba(245, 158, 11, 0.18);
}
.section.is-recommended .qr-game-title {
  border-color: #fcd34d;
  background: #fffbeb;
}

.platform-title {
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}
.badge {
  display: inline-block;
  background: #f59e0b;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 1px 10px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

/* HOT 推荐标（红色） */
.hot {
  display: inline-block;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 10px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
  text-transform: uppercase;
}

/* ===== 卡片（白底 + 网格） ===== */
.card {
  background: #f9fafc;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 480px) {
  .card-grid { gap: 16px; }
  .card { padding: 20px 14px; }
}

.card-left { text-align: center; }
.guide {
  max-width: 100%;
  max-height: 320px;
  border-radius: 8px;
  display: inline-block;
}

.card-right { text-align: center; }

/* ===== 二维码上方游戏名 ===== */
.qr-game-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  line-height: 1.4;
  word-break: break-all;
}

/* ===== 二维码 ===== */
.qrcode {
  position: relative;
  display: inline-block;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  border: 1px solid #eef2f7;
  line-height: 0;
}
.qrcode img { width: 240px; height: 240px; display: block; }

.qrcode-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 8px;
}
.qrcode:hover .qrcode-overlay { opacity: 1; }
.qrcode-overlay-text {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
}

.qr-tip {
  margin-top: 12px;
  font-size: 14px;
  color: #4b5563;
}

/* ===== 使用说明（无图标、纯文字列表） ===== */
.help {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 22px;
  margin-top: 10px;
}
.help-title {
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1f2937;
}
.help-title::before {
  content: "ⓘ";
  display: inline-block;
  margin-right: 6px;
  color: #2563eb;
  font-size: 16px;
  vertical-align: middle;
}
.help ul {
  list-style: disc;
  padding-left: 20px;
}
.help li {
  color: #4b5563;
  padding: 4px 0;
  line-height: 1.7;
}
.help li span { font-weight: 600; }

/* ===== 移动端跳转页 ===== */
.jumping {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jumping-box { text-align: center; max-width: 320px; }
.spinner {
  width: 44px; height: 44px;
  margin: 0 auto 18px;
  border: 4px solid #dbeafe;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.jumping-text { font-size: 15px; color: #374151; margin-bottom: 12px; }
.jumping-link { font-size: 14px; color: #2563eb; text-decoration: underline; }