

html,
body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: "Noto Sans TC", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #2d2d2d;
  background: #1f1f1f;
}

.page-loading #scaleViewport {
  visibility: hidden;
}

.page-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 15, 15, 0.82);
}

.page-loading-overlay.is-hidden {
  display: none;
}

.loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  color: #fff;
}

.spinner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.24);
  border-top-color: #ffffff;
  animation: spin 1s linear infinite;
}

.loading-text {
  font-size: 24px;
  letter-spacing: 1px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#scaleViewport {
  width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: visible;
}

.page-shell {
  width: 2800px;
  min-height: 2800px;
  position: relative;
  left: 0;
  top: 0;
  background: #1f1f1f;
  transform-origin: top left;
}

.top-navbar {
  width: 2800px;
  height: 144px;
  background: #ffffff;
  box-sizing: border-box;
  position: relative;
  z-index: 20;
}

.top-navbar-inner {
  width: 2400px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-wrap {
    margin-left: 120px;
  display: flex;
  align-items: center;
}

.nav-logo {
  width: 360px;
  height: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 120px;
}

.nav-link {
  border: 0;
  background: transparent;
  font-size: 46px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  padding: 0;
    letter-spacing: 8px;
}

.nav-link:hover {
  color: #333;
}

.nav-link.is-active {
  font-weight: 500;
  color: #333;
}

.nav-link-logout {
  letter-spacing: 2px;
}

.container {
  width: 2600px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.landing-stage {
  display: flex;
  justify-content: center;
  padding: 2000px 0 20px;
}

.stage-content {
  width: 2400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.banner-panel { width: 2600px; position: relative;  }
.banner-panel img {
    width: 800px;
}
.menu-panel { width: 2400px; position: relative; }
.menu-image { width: 100%; display: block; }

.menu-hit {
  position: absolute;
  top: 10%;
  width: 31%;
  height: 80%;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-hit-left { left: 2%; }
.menu-hit-mid { left: 34.5%; }
.menu-hit-right { left: 67%; }

.main { padding: 10px 0 40px; }
.panel-section {
    display: block;
}
.is-hidden { display: none; }

.rules-image {
  display: block;
  width: 2400px;
  margin: 0 auto;
}
.statement-image {
    margin: 140px auto;
    display: block;
    width: 2400px;
}
.info-image {
    display: block;
    width: 2200px;
    margin: 0 auto 100px auto;
}
.info-image.small{
    width: 1600px;
}
.info-image.tiny{
    width: 600px;
}
.underline {
    display: block;
    width: 1400px;
    margin: 0px auto 100px auto;
    height: 2px;
    border-bottom: solid 2px white;
}

.function-section {
  width: 2600px;
  height: 260px;
  margin: 0 auto 80px;
  padding: 34px 80px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.function-left, .function-right { display: flex; flex-direction: column; }
.func-title { display: block; margin-bottom: 18px; }
.search-title { width: 300px; }
.order-title { width: 230px; margin-left: auto; }
.search-row, .order-row { display: flex; gap: 20px; align-items: center; }
.keyword-input {
  width: 700px;
  height: 100px;
  font-size: 58px;
  padding: 0 20px;
  border: none;
  outline: none;
  box-sizing: border-box;
}
.func-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.func-btn img {
  width: 200px;
  height: auto;
  display: block;
}
.order-row .func-btn img { width: 210px; }
.section-title {
  margin: 22px 0 14px;
  color: #7a3a0f;
  border-left: 8px solid #c67a2f;
  padding-left: 12px;
  font-size: 42px;
}

.vote-title-pill {
    width: 700px;
    height: 210px;
    margin: 150px auto 50px auto;
    position: relative;
}

.vote-title-bg {
    width: 100%;
    height: auto;
    display: block;
}

.vote-title-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    font-size: 80px;
    letter-spacing: 10px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
}

.card-shell {
  position: relative;
  height: 1600px;
  margin-top: 150px;
  display: flex;
  flex-direction: column;
}

.card {
  border-radius: 16px;
  padding: 20px;
  position: relative;
  height: 1080px;
  z-index: 5;
  /*flex: 0 0 1080px;*/
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/images/2-2026米投票網頁1-20.png') center / 100% auto no-repeat;
  z-index: 3;
  pointer-events: none;
}

.product-headline {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  z-index: 8;
  text-align: center;
  color: yellow;
  height: 130px;
  margin: 0 20px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-title {
  display: block;
  width: 100%;
  font-size: 45px;
  line-height: 1.2;
  font-weight: 800;
    transform: scaleX(0.9);
  letter-spacing: 2px;
  white-space: nowrap;
  /*overflow: hidden;*/
  text-overflow: clip;
  transform-origin: center center;
}

.product-subtitle {
  display: block;
  width: 100%;
  margin-top: 10px;
  font-size: 38px;
  line-height: 1.3;
    transform: scaleX(0.95);
  font-weight: 400;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  transform-origin: center center;
}

.card .product-img {
  position: absolute;
  inset: 0;
  width: 640px;
  height: 640px;
  z-index: 1;
  object-fit: cover;
  border-radius: 12px;
  margin: 100px auto 80px auto;
}

.product-desc {
  transform: scaleX(0.95);
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  z-index: 6;
  color: #fff;
  text-align: justify;
  text-justify: inter-ideograph;
  height: 300px;
  margin: 0 90px 0;
  letter-spacing: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-desc-long {
    font-size: 40px;
    line-height: 1.3;
    overflow: hidden;
}

.product-desc-short {
    font-size: 48px;
    line-height: 1.3;
    font-weight: 500;
    padding-bottom: 20px;
    overflow: hidden;
}

.group-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #d9480f;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 700;
}
.group-badge.non { background: #2563eb; }

.card h3 { margin: 0; font-size: 60px; color: #fff; }
.card p { margin: 0; font-size: 48px; color: #eee; min-height: 60px; }
.product-info {
    height: 340px;
}
.actions {
  display: flex;
  gap: 0;
  position: absolute;
  left: 60px;
  right: 60px;
  bottom: 140px;
  z-index: 4;
  align-items: center;
}
.count {
    width: 160px;
    padding-left: 130px;
    color: #eee !important;
    font-size: 40px;
    overflow: hidden;
    min-height: auto !important;
}

.vote-btn {
    width: 140px;
    height: 140px;
  cursor: pointer;
    margin-right: 40px;
}
.btn-outline {
    width: 140px;
    height: 140px;
    cursor: pointer;
    margin-right: 20px;
}

.auth-box {
  margin: 0 auto;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  background: rgba(255,255,255,.92);
  border: 1px solid #f2c58a;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 20px;
}

.footer {
    z-index: 1;
    width: 100%;
    position: relative;
    bottom: 0;
}

.footer-image {
    width: 100%;
}

.home-banner-wrap {
  width: 100%;
  margin: 0 auto;
}

.home-banner {
    width: 100%;
  display: block;
  margin: 0 auto;
}

.home-intro-wrap {
  width: 2300px;
  margin: 90px auto 0;
  text-align: left;
}

.home-title {
  width: 600px;
  min-height: 100px;
  margin: 80px auto 20px;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  font-size: 80px;
  line-height: 1.25;
  color: #ffffff;
  background: url('/images/2-2026米投票網頁1-13.png') center/100% 100% no-repeat;
}

.home-subtitle {
  margin: 36px 0 0;
  font-size: 68px;
  line-height: 1.6;
  color: #ececec;
    text-align: justify;
    text-justify: inter-ideograph;
}

.vote-guide-box {
  width: 2400px;
    z-index: 2;
  min-height: 1014px;
  box-sizing: border-box;
  margin: 120px auto 0;
  padding: 120px 120px 120px;
  position: relative;
  background: url('/images/2-2026米投票網頁1-15.png') center/100% 100% no-repeat;
}

.vote-guide-title-pill {
  width: 580px;
  height: 170px;
  position: absolute;
  left: 50%;
  top: 30px;
  transform: translateX(-50%);
}

.vote-guide-title-bg {
  width: 100%;
  height: auto;
  display: block;
}

.vote-guide-title-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 80px;
  letter-spacing: 2px;
}

.vote-guide-content {
  margin-top: 120px;
}

.vote-guide-content p {
  margin: 0;
    color: #111;
  font-size: 68px;
  line-height: 1.7;
  text-align: center;
}

.group-switch-wrap {
  width: 1600px;
  margin: 120px auto 80px;
  display: flex;
  justify-content: center;
  gap: 90px;
}

.group-switch-btn {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity .2s ease;
}

.group-switch-btn.is-active,
.group-switch-btn:hover {
  opacity: 1;
}

.group-switch-btn img {
  width: 800px;
  height: auto;
  display: block;
}

.home-page .main {
  padding-top: 0;
}

.home-page .grid {
  width: 2600px;
  margin: 0 auto;
}

.back-home-btn {
  width: 480px;
  height: 140px;
  margin: 70px auto 40px;
  display: block;
  border: 0;
  background: url('/images/2-2026米投票網頁1-24.png') center/100% 100% no-repeat;
  color: #111;
  font-size: 54px;
  letter-spacing: 4px;
  cursor: pointer;
}

.back-home-btn:hover {
  filter: brightness(1.06);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay.is-hidden {
  display: none;
}

.modal-card,
.result-card {
  width: 860px;
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  box-sizing: border-box;
}

.agreement-card {
  position: relative;
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agreement-image-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: calc(100vh - 150px);
    padding: 20px 20px 0 20px;
}

.agreement-image {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.agreement-btn {
  position: absolute;
  left: 50%;
  bottom: -5%;
  transform: translateX(-50%);
  width: 20%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 2;
}

.agreement-btn-image {
  width: 100%;
  display: block;
}

.agreement-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.modal-title {
  margin: 0 0 20px;
  font-size: 36px;
}

.modal-form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.modal-form-row label {
  font-size: 22px;
  color: #333;
}

.modal-form-row input {
  height: 56px;
  padding: 0 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 24px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.modal-btn {
  border: 0;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 22px;
  cursor: pointer;
}

.modal-btn.primary {
  background: #1f1f1f;
  color: #fff;
}

.modal-btn.secondary {
  background: #ececec;
  color: #333;
}

.modal-tip {
  margin: 14px 0 0;
  font-size: 18px;
  color: #666;
}

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

.result-image {
  width: 100%;
  max-width: 760px;
  display: block;
  margin: 0 auto 20px;
}

.result-text {
  font-size: 30px;
  color: #222;
  margin-bottom: 20px;
}

.image-only-overlay {
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

.success-vote-image {
    width: 400px;
    max-width: 50vw;
    height: auto;
    display: block;
}

.limit-overlay-image {
  width: 1030px;
  max-width: 92vw;
  height: auto;
  display: block;
}

.rules-content-section,
.winners-content-section {
  width: 2300px;
  margin: 80px auto 120px;
}

.rules-title-wrap,
.winners-title-wrap {
  width: 700px;
  margin: 0 auto 80px;
  position: relative;
}

.rules-title-bg,
.winners-title-bg {
  width: 100%;
  display: block;
}

.rules-title-text,
.winners-title-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 80px;
  font-weight: 500;
  letter-spacing: 4px;
}

.rules-text-block,
.winners-text-block {
  width: 100%;
  min-height: 1200px;
  padding: 80px 90px;
  box-sizing: border-box;
  border-radius: 16px;
}

.rules-text-block p,
.winners-text-block p {
  margin: 0 0 32px;
  font-size: 60px;
  line-height: 1.8;
  color: #ffffff;
  text-align: justify;
  text-justify: inter-ideograph;
}

.winners-text-block p {
    text-align: center;
}

.rules-text-block p:last-child,
.winners-text-block p:last-child {
  margin-bottom: 0;
}

.award-table {
    width:100%;
    border-collapse:collapse;
    table-layout:fixed;
    color:#fff;
    margin-top:8px;
    text-align:center;
    font-size: 48px;
}
.award-table tr td {
    width:25%;
    border:1px solid #fff;
    padding:8px;"
}
.award-table td img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.comp-register-name {
    font-size: 32px;
    color: white;
    text-align: center;
    letter-spacing: 6px;
}

@media (max-width: 900px) {
  .home-page .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 2400px;
    gap: 90px;
  }

  .card-shell {
    transform-origin: top center;
    height: 2320px;
  }
  .card {
      height: 1530px;
  }
    .card .product-img {
        width: 920px;
        height: 920px;
        margin-top: 140px;
    }
    .actions {
        left: 100px;
        right: 100px;
        margin-bottom: 30px;
    }
    .actions .count{
        padding-left: 160px;
        width: 270px;
        font-size: 56px
    }
    .actions .vote-btn{
        width: 240px;
        height: 240px;
    }
    .actions .btn-outline {
        width: 240px;
        height: 240px;
    }
    .product-headline {
        height: 200px;
        margin: 0 20px 0;
    }
    .product-title {
        font-size: 72px;
    }
    .product-subtitle {
        font-size: 62px;
    }
    .product-desc {
        height: 430px;
        margin: 20px 90px 0;
    }
    .product-desc-short {
        font-size: 72px;
    }
    .product-desc-long {
        font-size: 62px;
    }
}

/*@media (max-width: 430px) {*/
/*  .home-page .grid {*/
/*    grid-template-columns: 1fr;*/
/*    width: 2200px;*/
/*    gap: 80px;*/
/*  }*/

/*  .card-shell {*/
/*    height: 4500px;*/
/*  }*/

/*  .card {*/
/*    height: 3500px;*/
/*  }*/

/*  .card .product-img {*/
/*    width: 1800px;*/
/*    height: 1800px;*/
/*    margin-top: 280px;*/
/*  }*/

/*  .actions {*/
/*    left: 90px;*/
/*    right: 90px;*/
/*      margin-bottom: 260px;*/
/*  }*/

/*  .actions .count {*/
/*    width: 480px;*/
/*    padding-left: 410px;*/
/*    font-size: 104px;*/
/*  }*/

/*  .actions .vote-btn,*/
/*  .actions .btn-outline {*/
/*    width: 440px;*/
/*    height: 440px;*/
/*  }*/

/*  .product-headline {*/
/*    height: 280px;*/
/*    margin: 0 60px 30px;*/
/*  }*/

/*  .product-title {*/
/*    font-size: 126px;*/
/*  }*/

/*  .product-subtitle {*/
/*    font-size: 108px;*/
/*  }*/

/*  .product-desc {*/
/*    height: 1200px;*/
/*    margin: 16px 220px 0;*/
/*  }*/

/*  .product-desc-short {*/
/*      font-size: 140px;*/
/*  }*/

/*  .product-desc-long {*/
/*      font-size: 120px;*/
/*  }*/

/*  .back-home-btn {*/
/*      width: 960px;*/
/*      height: 280px;*/
/*      font-size: 108px;*/
/*      letter-spacing: 8px;*/
/*  }*/
/*}*/
