/* ===== BASE ===== */
body {
  margin: 0;
}

/* ===== WRAPPER ===== */
.background {
  max-width: 2560px;
  margin: 0 auto;
  overflow: hidden;
  background-image: url('../image/desktop-en.jpg');
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-color: black;
  

}

.result {
  position: relative;
  margin-top: 1980px;
}

.week-header {
  text-align: center;
  color: #fff;
  margin-bottom: -1.75rem;
}

.week-header .diamonds {
  color: #f5a623;
  font-size: 1.1rem;
  letter-spacing: 4px;
}

.week-header h1 {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 2px;
  margin: 0.1rem 0;
  text-transform: uppercase;
}

.week-header .dates {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.9;
  letter-spacing: 1px;
}

.table-container {
  border: 2px solid #3a7bd5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(58, 123, 213, 0.5);
  background: #071540;
  width: 40%;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ── Table ── */
.winners-table {
  margin-bottom: 19px;
  width: 89%;
  margin-left: 40px;
  padding-top: 40px;
}

.winners-table thead th {
  background: linear-gradient(90deg, #c45c0a, #e07a1a, #c45c0a);
  color: #fff ;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  font-size: 0.9rem;
  border: 1px solid #a04a08;
  padding: 0.75rem 0.5rem;
}

.winners-table tbody tr {
  border-bottom: 1px solid #1e3a7a;
}

.winners-table tbody tr:last-child {
  border-bottom: none;
}

.winners-table tbody tr:nth-child(odd) {
  background-color: #0d2060;
}

.winners-table tbody tr:nth-child(even) {
  background-color: #071540;
}

.winners-table tbody td {
  color: #fff ;
  text-align: center;
  vertical-align: middle;
  padding: 0.8rem 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid #1e3a7a;
  background-color: transparent;
}

.winners-table tbody td {
  color: #f5c842 ;
  font-size: 1.05rem;
  font-weight: 700;
}

.winners-table tbody td:nth-child(2) {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.term-container {
  background: linear-gradient(135deg, #0a1a4a 0%, #0d2b7a 60%, #0a1a4a 100%);
  border: 2px solid #3a7bd5;
  border-radius: 10px;
  padding: 1.2rem 1.8rem 1.4rem;
  width: 683px;
  box-shadow: 0 0 24px rgba(58, 123, 213, 0.35);
  margin-left: auto;
  margin-right: auto;
  margin-top: 26px;
}

/* ── Title row with side lines ── */
.term-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.term-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e07a1a);
}

.term-title-wrapper .term-line:last-child {
  background: linear-gradient(90deg, #e07a1a, transparent);
}

.term-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 2px;
  white-space: nowrap;
  margin: 0;
  text-transform: uppercase;
}

/* ── List ── */
.term-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: term-counter;
}

.term-list li {
  counter-increment: term-counter;
  color: #d0e0ff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.6;
  padding: 0.18rem 0 0.18rem 0;
  text-transform: uppercase;
}

.term-list li::before {
  content: counter(term-counter) ": ";
  color: #d0e0ff;
  font-weight: 700;
}



/* ── Winners badge ── */
/* .winners-badge img {
  width: 100%;
  height: auto;
  display: block;
} */
/* @media (max-width: 321px) {
  .result {
    margin-top: 450px !important;
  }
} */


.sticky-btn {
    position: fixed;
    bottom: 8%;
    left: 36.5%;
    z-index: 999;
}
.sticky-btn img {
  width: 48%;
  height: auto;
  display: block;
}


/* ===== MOBILE ≤767px ===== */
@media (max-width: 376px) {
    /* .result {
        margin-top: 426px !important;
    } */
}

@media (max-width: 767px) {
  .background {
    background-image: url('../image/bg-en.jpg');
    height: auto;
    background-color: #000829;
  }

    .result {
        margin-top: 115%;
    }

  .table-container {
    width: 90%;
  }

  .winners-table {
    margin: 35px auto 15px;
    width: 89%;
  }

  .term-container {
    width: 88%;
    max-width: none;
    margin-top: 1%;
  }

     .buton {
        margin-top: 20px;
        padding-bottom: 23px;
        display: block;

    }

  .buton img {
    width: 48%;
  }

  .winners-badge-img {
    position: relative;
    top: 31px;
    width: 60%;
    height: auto;
    display: block;
  }

    .sticky-btn{
    display:none
  }
}


/* ===== TABLET 768px–991px ===== */
@media (min-width: 768px) {
  .background {

    
    background-image: url('../image/bg-en.jpg');
       background-size: 100% auto;
    height: auto;
  }

  .result {
    margin-top: 900px;
  }

  .table-container {
    width: 90%;
  }

  .winners-table {
    margin: 35px auto 53px;
    width: 89%;
  }

  .term-container {
    width: 88%;
    max-width: none;
    margin-top: 1%;
  }

  .buton {
    margin-top: 20px;
    padding-bottom: 40px;
  }

  .buton img {
    width: 48%;
  }

  .winners-badge-img {
    position: relative;
    top: 31px;
    width: 60%;
    height: auto;
    display: block;
  }


}

@media(max-width:768px){
    .sticky-btn{
    display:none
  }
}


/* ===== DESKTOP ≥992px ===== */
/* 992px ~ 1399px：中型桌面 / 笔电 */
@media (min-width: 992px) {
  .background {
    width: 40%;
    background-image: url('../image/desktop-en.jpg');
    background-size: cover;
    background-color: black;
    background-position: center top;  
    height:190vh;

  }
    .result {
        margin-top: 114% !important;
    }
 .table-container {
        width: 90%;
 }
  .term-container {
    max-width: 919px;
    width: 90%;
    margin-top: 26px;
  }
  .buton { margin-top: 40px; }
  .buton img { width: 21%; }


    .winners-badge-img {
        top: 29px;
        width: 35%;
    }
    .winners-table {
        margin: 29px auto 27px;
        width: 89%;
    }

    .buton{
      display:none
    }

    .sticky-btn img {
    width: 33%;
    height: auto;
    display: block;
}
.sticky-btn {
    position: fixed;
    bottom: 3%;
    left: 41%;
    z-index: 999;
}
}

/* 1400px 以上：大屏 */
@media (min-width: 1440px) {
  /* .result {
  margin-top: 1741px !important;
  } */
  /* .table-container { width: 28%; }
  .term-container {
width: 919px;
 
        width: 28%;
   
    margin-top: 26px;
  } */




}
@media (min-width: 2560px) {

.background {
        width: 26%;
        background-image: url(../image/desktop-en.jpg);
        background-size: cover;
        background-color: black;
        background-position: center top;
        height: 156vh;
    }

  .winners-badge-img {
        top: 29px;
        width: 35%;
    }

  .week-header h1 {
    font-size: 4.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin: 0.1rem 0;
    text-transform: uppercase;
}

    .term-container {
        max-width: 919px;
        width: 112%;
        margin-top: 26px;
    }

.week-header .dates

 {
    font-size: 3rem;
    font-weight: 600;
    opacity: 0.9;
    letter-spacing: 1px;
}

    .term-container {
   
        width: 90%;
        margin-top: 26px;
        font-size: 1.3rem;
    }

    .winners-table {
        margin: 49px auto 27px;
        width: 89%;
    }

    .sticky-btn {
    position: fixed;
    bottom: 5%;
    left: 45%;
    z-index: 999;
}

    .sticky-btn img {
    width: 40%;
    height: auto;
    display: block;
}




}