/* landing 落地页样式，可单独引用与 HTML/JS 组合 */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: #fff;
}
#root { min-height: 100vh; background: #fff; }

.landing {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 16px 48px;
  background: #fff;
}
@media (min-width: 900px) {
  html, body { height: 100%; overflow: hidden; }
  #root { height: 100%; overflow: hidden; display: flex; flex-direction: column; }
  .landing { max-width: 1100px; padding: 12px 32px 12px; margin: 0 auto; flex: 1; display: flex; flex-direction: column; min-height: 0; width: 100%; }
  .landing-mobile { display: none !important; }
  .landing-pc { display: flex !important; align-items: center; justify-content: center; gap: 40px; flex: 1; min-height: 0; max-height: 100%; overflow: hidden; }
  .pc-hero-left { flex: 0 0 380px; min-width: 0; }
  .pc-hero-right { flex: 1; min-width: 0; max-width: 560px; display: flex; align-items: center; justify-content: center; }
  .pc-brand-wrap { line-height: 0; }
  .pc-brand-logo { display: block; height: 48px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
  .pc-slogan-wrap { line-height: 0; }
  .pc-slogan-img { display: block; max-width: 100%; height: auto; }
  .pc-qr-row { display: flex; flex-direction: row; align-items: center; gap: 24px; }
  .pc-qr-wrap { width: 152px; height: 152px; flex-shrink: 0; margin-left: 24px; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid #eee; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #999; padding: 12px; box-sizing: border-box; }
  .pc-qr-wrap canvas, .pc-qr-wrap img { display: block !important; max-width: 100% !important; max-height: 100% !important; margin: 0 auto; }
  .pc-qr-wrap table { border-collapse: collapse; margin: 0 auto; max-width: 100% !important; max-height: 100% !important; }
  .pc-os { font-size: 14px; color: #333; line-height: 1.8; flex: 1; min-width: 0; margin-left: 48px; }
  .pc-os-line { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
  .pc-os-line:last-child { margin-bottom: 0; }
  .pc-os-icon { width: 20px; height: 20px; flex-shrink: 0; object-fit: contain; display: block; }
  .pc-btn-web { display: block; width: 100%; padding: 14px 24px; border-radius: 12px; font-size: 16px; font-weight: 600; color: #fff; background: linear-gradient(135deg, #6272E3 0%, #4F57DB 100%); text-decoration: none; text-align: center; box-shadow: 0 4px 12px rgba(79,87,219,0.3); transition: opacity 0.2s; box-sizing: border-box; }
  .pc-btn-web:hover { opacity: 0.92; }
  .pc-carousel-wrap { position: relative; width: 100%; max-width: 480px; }
  .pc-carousel-inner { position: relative; width: 100%; max-width: 100%; aspect-ratio: 750/906; border-radius: 24px; overflow: hidden; border: 1px solid #fff; background: #fff; box-shadow: none; }
  .pc-carousel-slide { position: absolute; inset: 0; display: none; align-items: stretch; justify-content: center; background: #fff; }
  .pc-carousel-slide.active { display: flex; }
  .pc-carousel-slide img { width: 100%; height: 100%; object-fit: contain; object-position: top center; display: block; }
  .pc-carousel-dots { position: absolute; right: -36px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
  .pc-carousel-dots .dot { width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; background: #c5cae9; cursor: pointer; transition: background 0.2s; }
  .pc-carousel-dots .dot.active { background: #4F57DB; }
  .business-coop-btn { top: 60px; right: 24px; }
  .top-bar-center { display: none !important; }
  .top-bar { flex-shrink: 0; margin-bottom: 8px; }
  .pc-brand-wrap { margin: 0 0 8px; }
  .pc-slogan-wrap { margin: 0 0 16px; }
  .pc-qr-row { margin-bottom: 16px; }
  .pc-tips { text-align: left; padding: 0; margin: 0 0 12px; }
  .pc-carousel-inner { max-height: min(80vh, 640px); width: auto; }
  .pc-carousel-wrap { max-height: min(80vh, 640px); max-width: 480px; }
}

/* 上：顶栏 */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  margin-bottom: 12px;
  padding: 0 4px;
  background: #fff;
}
.top-bar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: #1a237e;
  text-decoration: none;
  font-size: inherit;
}
.top-bar-left, .top-bar-right { flex-shrink: 0; }
.top-bar-left svg { display: block; }
.top-bar-right img { display: block; }
.top-bar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.logo-img { height: 28px; width: auto; display: block; object-fit: contain; }

/* 中上：轮播 */
.carousel-wrap {
  margin-bottom: 8px;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
}
.carousel-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 750/906;
  background: transparent;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}
.carousel-slide.active { display: flex; }
.carousel-img { width: 100%; height: 100%; object-fit: contain; object-position: top center; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px;
}
.carousel-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #9fa8da;
  cursor: pointer;
  transition: background 0.2s;
}
.carousel-dots .dot.active { background: #4F57DB; }

/* 商务合作 */
.business-coop-btn {
  position: fixed;
  top: 25vh;
  right: 0;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px 4px 12px;
  border-radius: 9999px 0 0 9999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #6272E3 0%, #4F57DB 100%);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(79,87,219,0.25);
  transition: opacity 0.2s;
}
.business-coop-btn:hover { opacity: 0.92; }

/* 横幅图 */
.single-banner { margin-bottom: 8px; }
.single-banner img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

/* 下载卡片 */
.card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 10px 8px;
  margin-bottom: 8px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: relative;
}
.card-texas .card-tag {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: auto;
  height: 28px;
  object-fit: contain;
}
.card-body { flex: 1; min-width: 0; padding-left: 30px; }
.card-body h3 { margin: 0 0 2px; font-size: 15px; font-weight: 600; color: #333333; }
.card-body p { margin: 0; font-size: 12px; color: #666666; line-height: 1.35; }
.btn {
  padding: 7px 16px;
  border: none;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.1s;
}
.btn:hover { opacity: 0.92; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: linear-gradient(135deg, #6272E3 0%, #4F57DB 100%); color: #fff; box-shadow: 0 2px 6px rgba(79,87,219,0.25); }

/* 开始游戏 */
.start-wrap { margin-top: 14px; margin-bottom: 12px; }
.start-box {
  display: block;
  width: 100%;
  cursor: pointer;
  padding: 0;
  background: none;
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid #8A9CFF;
  box-sizing: border-box;
}
.start-box:focus { outline: none; }
.start-game {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

/* 文字提示 */
.tips { margin: 0; font-size: 12px; color: #666666; line-height: 1.7; text-align: center; padding: 0 8px; }
.tips-official { margin: 0 0 8px; color: #333333; font-weight: 500; }
.domain-red { color: #E53935; font-weight: 700; }

/* 上滑查看安装教学 */
.tutorial-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 10px;
  font-size: 13px;
  color: #5c6bc0;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
}
.tutorial-trigger:hover { color: #4F57DB; }
.tutorial-trigger .arrow { font-size: 18px; }

/* 安装教学弹窗 */
.tutorial-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  pointer-events: none;
}
.tutorial-modal.show { display: flex; pointer-events: auto; }
.tutorial-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tutorial-modal.show .tutorial-modal-overlay { opacity: 1; }
.tutorial-modal-content {
  position: relative;
  width: 100%;
  max-height: 90vh;
  background: #fff;
  border-radius: 16px 16px 0 0;
  overflow: auto;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.35s ease-out;
}
.tutorial-modal.show .tutorial-modal-content { transform: translateY(0); }
.tutorial-modal-title {
  margin: 0;
  padding: 16px 44px 12px;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  text-align: center;
}
.tutorial-modal-content img { display: block; width: 100%; height: auto; vertical-align: top; }
.tutorial-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
}
.tutorial-modal-close:hover { background: rgba(0,0,0,0.7); }

.landing-pc { display: none; }
