/* betso88con.click - design.css | Prefix: pg04- */
:root {
  --pg04-pink: #FF69B4; --pg04-gray: #A9A9A9; --pg04-navy: #1A1A2E;
  --pg04-navy-2: #20203a; --pg04-navy-3: #2b2b4d; --pg04-orange: #FFB347;
  --pg04-berry: #B03060; --pg04-text: #f5f5fa; --pg04-text-dim: #c7c7d6;
  --pg04-line: rgba(255, 255, 255, 0.08); --pg04-radius: 12px;
  --pg04-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); --pg04-max: 430px;
  font-size: 62.5%;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -10%, #2b1b3a 0%, var(--pg04-navy) 55%);
  color: var(--pg04-text);
  font-family: "Helvetica Neue", Arial, "PingFang SC", system-ui, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--pg04-orange); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1em; }

/* ---------- Layout shell ---------- */
.pg04-shell {
  max-width: var(--pg04-max);
  margin: 0 auto;
  background: var(--pg04-navy);
  min-height: 100vh;
  position: relative;
  box-shadow: var(--pg04-shadow);
}

main.pg04-main { padding: 76px 14px 90px; }

/* ---------- Header ---------- */
.pg04-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--pg04-navy) 0%, var(--pg04-berry) 100%);
  border-bottom: 1px solid var(--pg04-line);
}
.pg04-header-inner {
  max-width: var(--pg04-max);
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}
.pg04-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.8rem;
  color: #fff;
  letter-spacing: 0.3px;
  flex: 1;
  min-width: 0;
}
.pg04-logo img { width: 30px; height: 30px; border-radius: 6px; }
.pg04-logo span { color: var(--pg04-pink); }

.pg04-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.35rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  color: #fff;
  white-space: nowrap;
}
.pg04-btn:hover { text-decoration: none; transform: translateY(-1px); }
.pg04-btn-register { background: linear-gradient(90deg, var(--pg04-pink), var(--pg04-berry)); box-shadow: 0 3px 10px rgba(255,105,180,0.35); }
.pg04-btn-login { background: transparent; border: 1.5px solid var(--pg04-orange); color: var(--pg04-orange); }

.pg04-menu-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pg04-header-scrolled { box-shadow: 0 4px 14px rgba(0,0,0,0.4); }

/* ---------- Mobile menu ---------- */
.pg04-mobile-menu {
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: var(--pg04-navy-2);
  border-bottom: 1px solid var(--pg04-line);
  padding: 10px 14px 14px;
  z-index: 9999;
  transform: translateY(-130%);
  transition: transform 0.25s ease;
}
.pg04-mobile-menu.pg04-menu-open { transform: translateY(0); }
.pg04-mobile-menu a {
  display: block;
  padding: 10px 8px;
  border-bottom: 1px solid var(--pg04-line);
  color: var(--pg04-text);
  font-size: 1.45rem;
}
.pg04-mobile-menu a:last-child { border-bottom: none; }

/* ---------- Hero ---------- */
.pg04-hero {
  position: relative;
  border-radius: var(--pg04-radius);
  overflow: hidden;
  margin-bottom: 18px;
}
.pg04-hero img { width: 100%; height: 200px; object-fit: cover; }
.pg04-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,26,46,0.25) 0%, rgba(26,26,46,0.85) 100%);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}
.pg04-hero h1 { color: #fff; margin: 0 0 6px; font-size: 2.2rem; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.pg04-hero p { margin: 0 0 10px; color: var(--pg04-text-dim); font-size: 1.35rem; }
.pg04-hero-cta { display: flex; gap: 8px; }
.pg04-hero-cta .pg04-btn { flex: 1; }

/* CTA pulse for醒目 promo blocks */
.pg04-cta-pulse { animation: pg04-pulse 1.8s ease-in-out infinite; }
@keyframes pg04-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,105,180,0.55); }
  50%      { box-shadow: 0 0 0 8px rgba(255,105,180,0); }
}

/* ---------- Sections ---------- */
.pg04-section { margin-bottom: 22px; }
.pg04-section-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.pg04-section-head h2 { margin: 0; font-size: 1.8rem; color: #fff; }
.pg04-section-head .pg04-more { margin-left: auto; font-size: 1.25rem; color: var(--pg04-orange); }
.pg04-pill {
  display: inline-flex; align-items: center;
  background: rgba(255,179,71,0.15);
  color: var(--pg04-orange);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 1.15rem; font-weight: 700;
}

/* ---------- Promo strip ---------- */
.pg04-promo-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pg04-promo-card {
  position: relative;
  border-radius: var(--pg04-radius);
  overflow: hidden;
  min-height: 92px;
  border: 1px solid var(--pg04-line);
}
.pg04-promo-card img { width: 100%; height: 92px; object-fit: cover; }
.pg04-promo-card .pg04-promo-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,26,46,0.05), rgba(26,26,46,0.85));
  padding: 10px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
}
.pg04-promo-card strong { font-size: 1.3rem; }

/* ---------- Tabs + game grid ---------- */
.pg04-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}
.pg04-tab {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--pg04-navy-3);
  color: var(--pg04-text-dim);
  font-size: 1.3rem;
  border: 1px solid var(--pg04-line);
  cursor: pointer;
  white-space: nowrap;
}
.pg04-tab.pg04-tab-active {
  background: linear-gradient(90deg, var(--pg04-pink), var(--pg04-berry));
  color: #fff;
  border-color: transparent;
}

.pg04-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pg04-game {
  display: block;
  background: var(--pg04-navy-2);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--pg04-line);
  cursor: pointer;
  position: relative;
}
.pg04-game img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #111; }
.pg04-game-name {
  display: block;
  text-align: center;
  font-size: 1.15rem;
  color: var(--pg04-text);
  padding: 5px 4px 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pg04-game:hover .pg04-game-name { color: var(--pg04-pink); }
.pg04-game .pg04-game-hot {
  position: absolute; top: 4px; left: 4px;
  background: var(--pg04-orange); color: #1A1A2E;
  font-size: 1rem; font-weight: 800;
  padding: 1px 6px; border-radius: 6px;
}

.pg04-panel-hidden { display: none !important; }

/* ---------- Partners ---------- */
.pg04-partners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.pg04-partners img {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  aspect-ratio: 2 / 1;
  object-fit: contain;
}

/* ---------- SEO article ---------- */
.pg04-prose {
  background: var(--pg04-navy-2);
  border: 1px solid var(--pg04-line);
  border-radius: var(--pg04-radius);
  padding: 16px;
  color: var(--pg04-text-dim);
}
.pg04-prose h2 { color: #fff; font-size: 1.9rem; }
.pg04-prose h3 { color: var(--pg04-pink); font-size: 1.6rem; }
.pg04-prose a { color: var(--pg04-orange); }
.pg04-prose ul { padding-left: 18px; margin: 0 0 1em; }
.pg04-prose li { margin-bottom: 4px; }

/* ---------- FAQ ---------- */
.pg04-faq-item {
  background: var(--pg04-navy-2);
  border: 1px solid var(--pg04-line);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.pg04-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.pg04-faq-q .pg04-faq-icon { color: var(--pg04-orange); }
.pg04-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 14px;
  color: var(--pg04-text-dim);
}
.pg04-faq-open .pg04-faq-a { max-height: 420px; padding: 0 14px 12px; }

/* ---------- Footer ---------- */
.pg04-footer {
  background: var(--pg04-navy-2);
  border-top: 1px solid var(--pg04-line);
  padding: 18px 14px 24px;
  color: var(--pg04-text-dim);
  font-size: 1.3rem;
}
.pg04-footer h3 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.pg04-footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.pg04-footer a { display: block; color: var(--pg04-text-dim); padding: 4px 0; }
.pg04-footer a:hover { color: var(--pg04-pink); }
.pg04-foot-bottom {
  border-top: 1px solid var(--pg04-line);
  padding-top: 10px;
  text-align: center;
  color: var(--pg04-gray);
  font-size: 1.2rem;
}
.pg04-back-top {
  display: inline-block;
  margin-top: 10px;
  color: var(--pg04-orange);
  background: transparent;
  border: 1px solid var(--pg04-orange);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}

/* ---------- Bottom nav (mobile only) ---------- */
.pg04-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(90deg, var(--pg04-navy) 0%, var(--pg04-navy-3) 100%);
  border-top: 1px solid var(--pg04-line);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
}
.pg04-bottom-nav a, .pg04-bottom-nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--pg04-text-dim);
  font-size: 1.05rem;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}
.pg04-bottom-nav a:hover, .pg04-bottom-nav button:hover { color: var(--pg04-pink); text-decoration: none; }
.pg04-bottom-nav .pg04-bn-icon { font-size: 2rem; line-height: 1; }
.pg04-bottom-nav .pg04-bn-center .pg04-bn-icon {
  background: linear-gradient(90deg, var(--pg04-pink), var(--pg04-berry));
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: -18px;
  box-shadow: 0 4px 10px rgba(176,48,96,0.5);
  font-size: 2.4rem;
}
.pg04-bottom-nav .pg04-bn-active { color: var(--pg04-orange); }

/* ---------- Desktop / wider screens ---------- */
@media (min-width: 769px) {
  .pg04-bottom-nav { display: none; }
  .pg04-menu-btn { display: none; }
  .pg04-shell { max-width: 960px; }
  .pg04-header-inner { max-width: 960px; }
  main.pg04-main { padding: 90px 24px 60px; }
  .pg04-grid { grid-template-columns: repeat(6, 1fr); }
  .pg04-promo-strip { grid-template-columns: repeat(4, 1fr); }
  .pg04-partners { grid-template-columns: repeat(7, 1fr); }
  .pg04-footer-cols { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Very small handsets ---------- */
@media (max-width: 360px) {
  .pg04-grid { grid-template-columns: repeat(2, 1fr); }
  .pg04-promo-strip { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
}

/* Touch target baseline >= 44px */
.pg04-btn, .pg04-tab, .pg04-game { min-height: 44px; }
