/* =====================
   Reset & Base
   ===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  font-family:
    "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  background-color: #050a1e;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* =====================
   星星背景
   ===================== */
.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("../images/bg-universe.png");
  background-size: cover;
  overflow: hidden;
}

.stars::before,
.stars::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 15%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 40%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 8%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 60%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 25%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 50%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 75%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 80%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 90%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 10%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 55%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 70%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 45%, #fff 0%, transparent 100%),
    radial-gradient(
      2px 2px at 50% 30%,
      rgba(255, 255, 255, 0.6) 0%,
      transparent 100%
    ),
    radial-gradient(
      2px 2px at 20% 65%,
      rgba(255, 255, 255, 0.5) 0%,
      transparent 100%
    ),
    radial-gradient(
      2px 2px at 80% 15%,
      rgba(255, 255, 255, 0.5) 0%,
      transparent 100%
    ),
    radial-gradient(
      1.5px 1.5px at 35% 20%,
      rgba(255, 255, 255, 0.8) 0%,
      transparent 100%
    ),
    radial-gradient(1px 1px at 65% 85%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 35%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 8% 42%, #fff 0%, transparent 100%);
  opacity: 0.7;
}

.stars::after {
  transform: rotate(45deg) scale(1.5);
  opacity: 0.3;
}

/* =====================
   Page Wrapper
   ===================== */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1430px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* =====================
   Top Grid: Hero + Side Cards
   ===================== */
.top-grid {
  display: grid;
  grid-template-columns: 950px 1fr;
  gap: 16px;
  align-items: stretch;
  margin-top: 64px;
}

/* ---- Hero Card ---- */
.hero-card {
  background:
    url("../images/banner.png") right / contain no-repeat,
    url("../images/bg-universe.png") top / cover no-repeat,
    linear-gradient(
      129.67deg,
      rgb(255 255 255 / 5%) 0%,
      rgb(255 255 255 / 5%) 51%,
      rgb(0 0 0 / 0%) 100%
    );
  border-radius: 16px 42px 16px 16px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  height: 100%;
  width: 100%;
  cursor: pointer;
}

/* 背景光暈 */
.hero-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: 200px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(50, 100, 220, 0.25) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-info {
  margin-top: 72px;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 400px;
}

.hero-tags {
  font-size: 13px;
  color: rgba(180, 200, 255, 0.8);
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.hero-text h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
  line-height: 1.2;
  text-shadow: 0 0 20px rgba(100, 160, 255, 0.4);
}

.hero-text h1 .icon {
  font-size: 32px;
}

.hero-sub {
  font-size: 15px;
  color: rgba(200, 220, 255, 0.85);
  margin-bottom: 28px;
}

.hero-list {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.hero-list li::before {
  content: "•";
  margin-right: 8px;
  color: #fff;
}

.hero-list li {
  font-size: 13px;
  font-weight: 500;
  list-style: none;
}

.hero-btn {
  display: inline-block;
  padding: 0 24px;
  background: #ffffff;
  color: #324466;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
  letter-spacing: 1px;
  line-height: 40px;
  margin-top: 32px;
}

.hero-btn:hover {
  background: #ffb01b;
  color: #071e5e;
}
.cta-style:hover {
  background-color: #ffb01b;
  box-shadow: 0 2px 16px #ffb01b;
  transition: background-color 0.25s;
}

.hero-img {
  position: absolute;
  right: 20px;
  bottom: 0;
  z-index: 1;
}

.hero-img img {
  width: 340px;
  height: auto;
  object-fit: cover;
  border-radius: 0 0 12px 0;
}

.hero-logo {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 3;
}

.hero-logo img {
  width: 80px;
  height: auto;
  opacity: 0.9;
}

/* ---- Side Cards ---- */
.side-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-card {
  background: #0b123030;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(60, 90, 180, 0.2);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.25s;
}

.side-card .side-card-content {
  width: 100%;
}

.side-card .side-card-logo {
  border-radius: 14px;
  padding: 16px;
  max-width: 164px;
  min-width: 164px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.05);
}

.side-card .side-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.side-card:hover {
  border-color: rgba(140, 90, 255, 0.5);
  background: linear-gradient(135deg, #6b35c8 0%, #4a1f9a 60%, #3a148a 100%);
}

.side-card-info {
  flex: 1;
}

.side-card-info h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 6px;
}

.side-card-info p {
  font-size: 13px;
  color: rgba(180, 200, 255, 0.75);
  margin-bottom: 8px;
  line-height: 1.5;
}

.link-enter {
  font-size: 12px;
  color: #abacfd;
  cursor: pointer;
}

.side-card-arrow {
  font-size: 32px;
  color: rgba(180, 200, 255, 0.5);
  font-weight: 600;
  background-color: rgb(255 255 255 / 4%);
  padding: 0 18px;
  height: 100%;
  text-align: center;
  line-height: 164px;
}

/* =====================
   Wide Card (九游娛樂)
   ===================== */
.wide-card {
  background: linear-gradient(135deg, #0e1f50 0%, #091540 100%);
  border-radius: 14px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(80, 130, 220, 0.18);
  cursor: pointer;
  transition: border-color 0.2s;
}

.wide-card:hover {
  border-color: rgba(100, 160, 255, 0.4);
}

.wide-card-logo img {
  width: 90px;
  height: 90px;
  border-radius: 16px;
  object-fit: cover;
}

.wide-card-info {
  flex: 1;
}

.wide-card-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.wide-card-info p {
  font-size: 14px;
  color: rgba(180, 200, 255, 0.75);
  margin-bottom: 10px;
}

.wide-card-arrow {
  font-size: 26px;
  color: rgba(180, 200, 255, 0.5);
  font-weight: 300;
}

/* =====================
   Download Grid
   ===================== */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dl-card {
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: filter 0.2s;
  height: 200px;
}

.dl-card:hover {
  filter: brightness(1.08);
}

.dl-teal {
  background:
    url("../images/sport-item-bg.png") right / auto 100% no-repeat,
    linear-gradient(90deg, #0c71aa 0%, #0cdddd 100%);
}

.dl-orange {
  background:
    url("../images/sport-item-bg.png") right / auto 100% no-repeat,
    linear-gradient(90deg, #f87700 0%, #f2d53c 100%);
}

.dl-purple {
  background:
    url("../images/sport-item-bg.png") right / auto 100% no-repeat,
    linear-gradient(90deg, #201e93 0%, #5621ed 100%);
}

.dl-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.15);
  object-fit: cover;
}

.dl-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  font-weight: 300;
}

.dl-info h3 {
  font-size: 24px;
  margin-bottom: 6px;
  font-weight: 500;
}

.dl-sub {
  color: #abacfd;
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 900px) {
  .top-grid {
    grid-template-columns: 1fr;
  }

  .side-cards {
    flex-direction: row;
  }

  .hero-img img {
    width: 200px;
  }

  .hero-text h1 {
    font-size: 26px;
  }
}

@media (max-width: 640px) {
  .page-wrapper {
    padding: 16px 12px 32px;
    gap: 12px;
  }

  .side-cards {
    flex-direction: column;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 28px 20px;
    min-height: 220px;
  }

  .hero-img {
    display: none;
  }

  .hero-text h1 {
    font-size: 22px;
  }
}
