@charset "utf-8";

/* ========== 色彩變數 ========== */
:root {
  --main-red: #d80000;
}

/* ========== 全站基礎設定 ========== */
html, body {
  margin: 0;
  padding: 0;
  font-family: "微軟正黑體", sans-serif;
  font-size: 14px;
  background: linear-gradient(to bottom, #dee6ed, #c9d5de);
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow-x: hidden;
}

/* 分隔線 */
.line {
  border: none;
  height: 6px;
  background-color: #e7e9eb;
  margin: 10px 0 25px 0;
  border-radius: 3px;

}

/* 條列式數字文字 */
.note li {
  margin: 20px 0;
  line-height: 2; /* 讓文字也更舒適可讀 */
  letter-spacing:1px;
}

/* ========== Banner 樣式 ========== */
.banner {
  display: block;
  max-width: 830px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 0;
  border: none;
}

.banner-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  box-shadow: 0 0 10px rgba(187, 202, 216, 0.5);
  position: relative; /* 加這行方便放置分隔線 */
    background: url('../img/bg.png') repeat-x center top; /* 背景圖片左右重複 */
}


.banner-center {
  max-width: 830px;
  width: 100%;
}

.banner-center img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== 容器與主要區塊 ========== */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 30px;
}

.box {
  background: white;
  padding: 30px 0;
  margin: 0px 0 10px 0;
  box-shadow: 0 0 10px rgba(187, 202, 216, 0.5);
  font-size: 14px;
  border-radius: 12px; /* 圓角 */
}

.box-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 60px;
}


/* ========== 標題文字 ========== */
.section-title {
  color: #346897;
  font-weight: bold;
  text-align: center;
  font-size: 15px;
  margin-bottom: 25px;
}

.game-title {
  font-weight: 600;
  font-size: 25px;
  letter-spacing: 0.05em;
  color: #222;
  text-align: center;
  margin-bottom: 12px;
}

    /* 下拉選單樣式 */
    .game-title select {
        width: 170px; /* 適中寬度，可調整 */
        height: 40px;
        padding: 0 36px 0 12px;
        border: 1px solid #c0d3e8;
        border-radius: 6px;
        background-color: #fff;
        font-size: 16px; /* 下拉選單字體大小 */
        color: #2a3b4c;
        outline: none;
        /* 移除瀏覽器預設外觀 */
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        /* 自訂下拉箭頭 */
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236e879b' stroke-width='2'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 12px 8px;
    }

    /* 只調整 .game-title 裡的文字（請選擇遊戲：） */
    .game-title span {
        font-size: 16px;
        font-weight: bold;
        color: #1d4262;
    }

.icon-title {
  color: #346897;
  font-size: 18px;
  margin-bottom:20px;
  font-weight: bold;
  display: flex;            /* 用 flex 排版 */
  align-items: center;      /* 垂直置中 */
  gap: 8px;                   /* 圖片和文字間距 */
}

/* ========== 登入頁加入會員文字 ========== */
.join-tip  {
  text-align: center;
  font-size: 14px;
  color: #444;
  margin: 20px 0 20px 0;
}

.join-tip  a {
  color: #996600;
  text-decoration: none;
}

.join-tip  a:hover {
  text-decoration: underline;
}

/* ========== 表單欄位 ========== */

.error-message {
  color: var(--main-red);
  font-weight: bold;
  text-align: center;
  font-size: 16px;
  letter-spacing: 1px;
}


.form-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  width: 90%;
}

.label {
  width: 120px;
  text-align: right;
  margin-right: 10px;
  font-weight: bold;
  white-space: nowrap;
  color: #1d4262;
}

.input {
  width: 240px;
  display: flex;
  align-items: center; /* 將 input + 圖片垂直置中 */
  gap: 10px;
}

.input input {
  width: 100%;
  padding: 10px;
  background-color: #fff;
  border: 1px solid #c0d3e8; /* 淺藍色描邊 */
  border-radius: 6px; /* 圓角 */
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.05), /* 內陰影：微微下凹 */
    0 0 4px rgba(0, 128, 255, 0.08);    /* 外陰影：淡藍色暈染 */
  box-sizing: border-box;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.input input::placeholder {
  color: #969797;  /* 較淡的灰 */
  opacity: 1;
}

.input input:focus {
  outline: none; /* 清除瀏覽器預設黑框 */
  border-color: #77a5c4; /* 輕柔聚焦邊框 */
  background-color: #f9fcff;
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, 0.05),
    0 0 4px rgba(102, 170, 255, 0.25); /* 藍色柔光暈染 */
}

/* ========== 超連結區 ========== */
.links {
  font-size: 14px;
  color: var(--main-red);
  text-align: center;
}

.links a {
  text-decoration: none;
  margin: 0 5px;
  color: var(--main-red);
}

.links a:hover {
  text-decoration: underline;
}

/* ========== 綁定帳號 ========== */
.bind-row {
 display: flex;
  justify-content: center;
  align-items: center; /* ✅ 關鍵：讓內容垂直置中 */
  margin-bottom: 10px;
  width: 100%;
}

.bind-label {
  width: 120px;
  text-align: right;
  margin-right: 10px;
  font-weight: bold;
  white-space: nowrap;
  color: #1d4262;
}

.input-select {
  width: 60%;
  padding: 10px;
  background-color: #fff;
  border: 1px solid #c0d3e8;
  border-radius: 6px;
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.05),
    0 0 4px rgba(0, 128, 255, 0.08);
  box-sizing: border-box;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  appearance: none; /* 移除原生箭頭樣式，可視需要保留 */
  font-size: 14px;
}

.input-select:focus {
  outline: none;
  border-color: #77a5c4;
  background-color: #f9fcff;
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, 0.05),
    0 0 4px rgba(102, 170, 255, 0.25);
}

/* ========== 按鈕樣式 ========== */
.btn-wrapper {
  display: flex;
  justify-content: center;
}

.btn-blue  {
  background-color: #1e4362;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 2px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  margin:20px 0 ;
  padding: 10px 30px;
  border: none;
  width: 140px;
}

.btn-green {
  padding: 6px 16px;
  border: none;
  width: 80px;
  background-color: #05a835;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 2px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

/* 按鈕滑過時 */
.btn-green:hover {
  background-color: #1ac64d; /* 較亮的綠色 */
}

/* 按鈕滑過時 */
.btn-blue button:hover {
  background-color: #1a62a3; /* 較亮的藍色 */
}

/* ========== 區塊提示與強調文字 ========== */
.gray-box {
  background-color: #f1f2f5;
  padding: 12px;
  text-align: center;
  border-radius: 30px;
  margin-bottom: 20px;
}

.blue-bold {
  color: #346897;
  font-weight: bold;
}

.red-bold {
  color: var(--main-red);
  font-weight: bold;
}

.alert-bold {
    color: var(--main-red);
    font-weight: bold;
    font-size: 20px;
}

.arrow-down {
  width: 0;
  height: 0;
  margin: 15px auto;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #999;
}

/* ========== 頁尾樣式 ========== */
.footer {
  text-align: center;
  font-size: 13px;
  color: #333;
  padding: 20px 0 32px 30px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(222, 230, 237, 0.6) 100%
  );
  border-top: 2px solid rgba(255, 255, 255, 0.5);
}

.footer img {
  display: block;
  margin: 0 auto 10px;
}

/* ========== 手機版 RWD ========== */
@media (max-width: 480px) {
  .form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .label {
    width: 100%;
    text-align: left;
    margin-bottom: 5px;
  }

  .input {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
  }

  .input input,
  .input select {
    flex: 1;
    min-width: 0;
  }

  .captcha-img {
    margin-left: 10px;
    height: 24px;
    max-width: 80px;
  }
}

.qr-code-image {
    margin-top: 10px;
    border: 1px solid #ccc;
    padding: 5px;
    background-color: white;
}

/* 動態載入提示的 CSS 動畫 */
.loading-dots::after {
    content: '.';
    animation: dots 1.5s steps(5, end) infinite;
    /* 或者使用更平滑的動畫 */
    /* animation: loading-fade 1.5s infinite; */
}

@keyframes dots {
    0%, 20% {
        color: rgba(0,0,0,0);
        text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0);
    }

    40% {
        color: blue;
        text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0);
    }

    60% {
        text-shadow: .25em 0 0 blue, .5em 0 0 rgba(0,0,0,0);
    }

    80%, 100% {
        text-shadow: .25em 0 0 blue, .5em 0 0 blue;
    }
}