﻿*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: auto; /* 視窗 < 1920 時出現 X 軸 */
  overflow-y: auto;
}

body {
  margin: 0;
  font-family: "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}

/* ========== PC ========== */
.page {
  /* 背景固定 1920×995；超寬時左右留白置中，縮小時出現 X 軸 */
  width: 1920px;
  min-width: 1920px;
  min-height: 995px;
  margin: 0 auto;
  background: url("../img/bg-pc.jpg") left top / 1920px 995px no-repeat;
  position: relative;
}

/* ≥1920：隱藏多餘 X 軸（避開 Y 軸佔寬）；版面仍維持 1920 置中 */
@media (min-width: 1920px) {
  html {
    overflow-x: hidden;
  }
}

.btn {
  display: block;
  line-height: 0;
  text-decoration: none;
  transition: filter 0.2s ease;
}

.btn:hover {
  filter: brightness(1.15);
}

.btn img {
  width: auto;
  height: auto;
  max-width: 100%;
}

/* PC：只顯示 pc 圖，隱藏 mb 圖 */
.btn .img-pc {
  display: block;
}

.btn .img-mb {
  display: none;
}

/* 線上客服 */
.btn-cs {
  position: absolute;
  top: 36px;
  right: 200px;
  z-index: 10;
}

.btn-cs img {
  width: 107px;
  height: 39px;
}

.btn-group {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 10;
}

/* 網址文字（內容見 index.html → SITE_URL_TEXT） */
.url-text {
  --url-color: #3c2b22;
  margin: 0;
  color: var(--url-color);
  font-size: 36px;
  font-weight: bolder;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn-enter img {
  width: 263px;
  height: 61px;
}

.btn-download img {
  width: 265px;
  height: 67px;
}

/**
 * ========== MB ==========
 * 設計稿 bg-mb：1242×2100
 * cover 鋪滿螢幕，避免下方留白
 */
@media (max-width: 768px) {
  /* MB：只顯示 mb 圖，隱藏 pc 圖 */
  .btn .img-pc {
    display: none;
  }

  .btn .img-mb {
    display: block;
  }

  .page {
    width: 100%;
    min-width: 0;
    min-height: 100dvh;
    height: auto;
    background-image: url("../img/bg-mb.jpg");
    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .btn-cs {
    top: 3.5vw;
    right: 4vw;
  }

  .btn-cs img {
    width: calc(92 / 1242 * 100vw);
    height: auto;
  }

  .btn-group {
    top: 52%;
    gap: 3.5vw;
  }

  .url-text {
    margin-left: 0;
    font-size: 7.5vw;
    text-align: center;
  }

  .btn-enter img {
    width: calc(521 / 1242 * 100vw);
    height: auto;
  }

  .btn-download img {
    width: calc(524 / 1242 * 100vw);
    height: auto;
  }
}
