/* ======= 基礎樣式 (Base Styles) ======= */
body {
  margin: 0;
  background-color: #1a0e03;
  font-family: Arial, sans-serif;
  color: #fff;
}
a {cursor:pointer}
/* ======= 頁首組件 (Header Components) ======= */
/* 頁首容器 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2b1c08;
  padding: 10px 15px;
}

/* Logo 樣式 */
.logo {
  font-weight: bold;
  color: #ffcc00;
  font-size: 1.5em;
}

/* 頁首圖標/按鈕 */
.top-buttons i {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: #ff4444;
  border-radius: 4px;
  margin-left: 10px;
  text-align: center;
  font-style: normal;
  line-height: 24px;
  font-size: 14px;
}

/* 頁首樣式 */
.header-shadow {
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* ======= 背景顏色 (Background Colors) ======= */
.bg-dark {
  background-color: #2b1c08 !important;
}

.bg-brandred {
  background: #C74040;
  color: white;
}

.bg-lightred {
  background: #E45252;
}

.bg-lg {
  background-color: #F0F0F0;
}

.bg-g {
  background-color: #BFBFBF;
}

.text-decoration {
text-decoration:underline
}

/* ======= 背景顏色 (Background Colors) ======= */
.bg-dark {
  background-color: #2b1c08 !important; /* 修改為與新版本匹配的深色背景 */
}

.bg-brandred {
  background: #FF4726; /* 將品牌紅色調整為與新版本一致 */
  color: white;
}

/* ======= 文字顏色 (Text Colors) ======= */
.text-brandred {
  color: #FF4726; /* 將品牌紅色文字調整為與新版本一致 */
}

/* 金色系文字顏色 */
.text-gold, .gold-text {
  color: #F1D789 ; /* 統一金色文字顏色 */
}

.f-color, a.f-color {
  color: #ECC46B; /* 新增與新版本一致的輔助金色 */
}



/* ======= 文字顏色 (Text Colors) ======= */
.text-brandred {
  color: #C74040 !important;
}
/* ======= 字體大小 (Font Sizes) ======= */
.f12 {
  font-size: 12px; /* 使用像素單位而非rem */
}

.f14 {
  font-size: 14px;
}

.f16 {
  font-size: 16px;
}

.f18 {
  font-size: 18px;
}

.f20 {
  font-size: 20px;
}

.f22 {
  font-size: 22px;
}

.f36 {
  font-size: 36px;
}
/* ======= 按鈕懸停效果 (Button Hover Effects) ======= */
.btn:hover {
  background: #C74040;
}

/* ======= 導航連結 (Navigation Links) ======= */
.nav-masthead .nav-link {
  margin-left: 1rem;
  padding: 0.5rem 1rem !important;
}

.nav-masthead .nav-link:hover {
  color: #C74040 !important;
}

/* ======= 邊框樣式 (Border Styles) ======= */
.line-brandred {
  border: 1px solid #FF4726; /* 修改為與新版本一致的紅色 */
}

.rounded-5 {
  border-radius: 8px; /* 新增與新版本一致的圓角大小 */
}

/* ======= 下拉選單 (Dropdown Menu) ======= */
.dropdown-content {
  position: absolute;
  background-color: #3B3834; /* 更改為與新版本一致的背景色 */
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1050;
  border: 1px solid #AE8226; /* 新增金色邊框 */
  border-radius: 8px; /* 增加圓角 */
right:10px;
}



.dropdown-content a {
  color: #ECC46B !important; /* 修改為金色文字 */
  padding: 8px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #000; /* 修改為黑色懸停效果 */
}
/* ======= 移動端選單樣式 (Mobile Menu Styles) ======= */
@media (max-width: 991.98px) {
  #logo {height:15px}
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 1000;
    padding: 2rem;
  }
  
  .mobile-menu {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .mobile-menu .nav-link {
    padding: 1rem 0 !important;
    font-size: 1.2rem;
    color: #333 !important;
  }
  
  .dropdown-content {
    position: static;
    box-shadow: none;
    margin-top: 0.5rem;
    width: 100%;
    left: 0;
  }
  
  .menu-close:hover {
    opacity: 0.7;
  }
}

/* ======= 模態窗口樣式 (Modal Styles) ======= */
.modal-backdrop {
  display: none;
}

.modal-open .modal-backdrop {
  display: block;
  opacity: var(--bs-backdrop-opacity);
}

/* ======= 實用類 (Utility Classes) ======= */
.mbh20 {
  margin-bottom: 20px;
}

main {margin-top:80px;margin-bottom:80px;}



/* ======= 移動端頁尾 (Mobile Footer) ======= */
.fixed-footers {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 70px; /* 使用像素單位而非rem */
  background: linear-gradient(0deg, #000 0%, #443B36 100%);
  border-top: 1px solid #AE8226;
  display: flex;
}

.fixed-footers a {
  padding-top: 5px;
  margin: 0;
  text-decoration: none;
  color: #F1D789;
  width: 20%;
  display: flex;
  flex-direction: column;
}

.fixed-footers a.bg-goldg {
  background: linear-gradient(180deg, #F2E5C3 0%, #715210 100%); /* 修改為與新版本一致的漸變 */
}

.fixed-footers img {
  height: 26px; /* 使用像素單位而非rem */
}

.fixed-footers .white {
  color: #FFFFFF;
}

.fixed-footers .text-center {
  text-align: center;
}

.fixed-footers .f12 {
  font-size: 12px; /* 使用像素單位 */
}

/* ======= 不同螢幕尺寸的媒體查詢 (Media Queries for Different Screen Sizes) ======= */
@media (min-width: 992px) {
  .fixed-footers {
    display: none !important; /* 在桌面版強制隱藏 */
  }
}

@media (max-width: 767px) {
  .fixed-footers {
    height: 64px; /* 在小型移動設備上略小 */
  }
  
  .fixed-footers .f12 {
    font-size: 11px;
  }
  
  .fixed-footers img {
    height: 22px;
  }
}

@media (max-width: 360px) {
  .fixed-footers {
    height: 60px;
  }
  
  .fixed-footers img {
    height: 20px;
  }
  
  .fixed-footers .f12 {
    font-size: 10px;
  }
}



/* ======= 移動端頁首優化 (Mobile Header Optimization) ======= */
/* 一般移動端調整 */
@media (max-width: 991.98px) {
  /* 調整移動端所有頁首圖片 */ 
  .logo-center img
{
height: 20px !important;
}

  /* 較小的箭頭圖標 */
  header img[src*="arrow"] {
    height: 10px !important;
  }
  
  /* 調整頁首內邊距 */
  header.fixed-top {
    padding: 0px !important;
        background-color: #000;
  }
  
  /* 減少圖標容器中的間距 */
  header .p-2 {
    padding: 0.25rem !important;
  }
  
  /* 調整文字容器的行高 */
  header [style*="line-height"] {
    line-height: 20px !important;
  }
  
  /* 調整選單中的間距 */
  .navbar-nav .nav-link {
    padding: 0.5rem 0 !important;
  }
  
  /* 減少元素之間的間隙 */
  header .gap-2 {
    gap: 0.25rem !important;
  }
  
  /* 使頁首占用較少的垂直空間 */
  header .mt-1 {
    margin-top: 0 !important;
  }
  
  /* 調整時鐘文字大小 */
  header .text-light {
    font-size: 0.75rem !important;
  }
  
  /* 調整選單按鈕 */
  .navbar-toggler {
    padding: 0.25rem !important;
  }
  
  /* 修復移動端選單中的間距 */
  .mobile-menu .d-flex {
    margin-bottom: 0.5rem !important;
  }
  
  /* 調整移動端選單頁首間距 */
  .menu-header {
    margin-bottom: 1rem !important;
  }
  
  /* 修復移動端選單中的對齊 */
  .mobile-menu .nav-item {
    margin-bottom: 0.25rem !important;
  }
}

/* ======= 超小設備調整 (Extra Small Device Adjustments) ======= */
@media (max-width: 575.98px) {
  /* 進一步縮小圖片尺寸 */ 
  
  /* 較小的箭頭圖標 */
  header img[src*="arrow"] {
    height: 8px !important;
  }
  
  /* 更緊湊的頁首 */
  header.fixed-top {
    padding: 5px !important;
  }
  
  /* 時間顯示的較小文字 */
  header .text-light {
    font-size: 0.7rem !important;
  }
  
  /* 調整用戶代碼顯示 */
  header .line-brandred {
    font-size: 0.8rem !important;
  }
  
  /* 元素之間的間距更少 */
  header .gap-2 {
    gap: 0.125rem !important;
  }
  
  /* 確保最小可點擊區域 */
  .bg-brandred {
    min-width: 30px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ======= 登錄模態窗口特定樣式 (Login Modal Specific Styles) ======= */
.login .modal-content {
  background-color: #2c2a2a;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.login .modal-header {
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login .modal-title {
  color: #f6d376;
  text-align: center;
  width: 100%;
}

.login .btn-close {
  position: absolute;
    right: 1rem;
    top: 0rem;
    color: #ECC46B !important;
    background: transparent;
    border: 0;
    font-size: 2rem !important;
    filter: none;
    opacity: 1;
}

.login .modal-body {
  border: none;
}

.login .modal-footer {
  border: none;
}

.login .form-control {
  background-color: #3b3939;
  color: #fff;
  border: none;
  border-radius: 10px;
}

.login .form-control::placeholder {
  color: #aaa;
}

.login .btn-brandred {
  background-color: #C74040;
  color: white;
}

.login label {
  color: #f6d376;
  font-weight: bold;
}

/* 登錄模態窗口響應式調整 */
@media (max-width: 575.98px) {
  .login .modal-content {
    padding: 0.5rem !important;
  }
  
  .login .modal-title {
    font-size: 1rem !important;
  }
  
  .login .modal-title img {
    height: 20px !important;
  }
}
/* ======= 登錄模態窗口特定樣式 (Login Modal Specific Styles) ======= */
.login .modal-content {
  background-color: #3B3834; /* 修改為與新版本一致的背景色 */
  border-radius: 12px;
  border: 1px solid #AE8226; /* 新增金色邊框 */
}

.login .modal-title {
  color: #F1D789; /* 修改為與新版本一致的金色 */
}

.login .btn-close {
  color: #ECC46B !important; /* 修改關閉按鈕顏色 */
}

.login .form-control {
  background-color: #2B2924; /* 修改輸入框背景 */
  color: #ECC46B; /* 修改輸入文字顏色 */
}

.login label {
  color: #ECC46B; /* 修改標籤文字顏色 */
}

/* 登錄按鈕 */
.login .modal-footer button {
  background-color: #FF4726; /* 修改為品牌紅色 */
border:none;
}
/* ======= 修復移動端下拉選單定位 (Fix Dropdown Positioning on Mobile) ======= */
@media (max-width: 991.98px) {
  .dropdown-content {
    right: 0;
    left: auto;
  }
}

/* ======= 改善移動端點擊目標 (Improved Tap Targets for Mobile) ======= */
@media (max-width: 575.98px) {
  .navbar-toggler-icon {
    width: 1em;
    height: 1em;
  }
  
  .menu-close svg {
    width: 18px;
    height: 18px;
  }
}

/* ======= 小型手機特殊處理 (Special Handling for Small Phones) ======= */
@media (max-width: 320px) { 
  
  header .text-light {
    font-size: 0.65rem !important;
  }
  
  .navbar-brand img {
    height: 18px !important;
  }
}

/* ======= 移動端未認證頁首樣式 (Mobile Unauthenticated Header Styles) ======= */
@media (max-width: 991.98px) {
  /* 移動端頂部欄的基本樣式 */
  .mobile-top-bar {
    position: relative;
    height: 50px;
    background-color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
  }
  
  /* 左側圖標（語言選擇器） */
  .left-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .language-button {
    background-color: transparent;
    padding: 0;
    border: none;
  }
  
  .language-button img {
    width: 32px;
    height: 32px;
  }
  
  /* 中心Logo */
  .logo-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .logo-center img {
    height: 24px;
  }
  
  /* 右側時間顯示 */
  .right-time {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .gold-text {
    color: #e6c675 !important;
    font-size: 14px;
  }
  
  /* 登錄按鈕 */
  .login-btn {
    display: block;
    width: 90%;
    max-width: 300px;
    margin: 20px auto 10px;
    padding: 10px 0;
    text-align: center;
    background-color: #e6c675;
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    font-size: 16px;
  }
  
  /* 未認證視圖的移動端頁首背景 */
  header[v-if*="!res.my"] {
    background-color: #000 !important;
  }
}

/* ======= Bootstrap 間距和布局工具類 (Bootstrap Spacing and Layout Utilities) ======= */
.d-flex {
  display: flex !important;
}

.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-lg-flex {
  display: flex !important;
}

.d-lg-none {
  display: none !important;
}

.flex-fill {
  flex: 1 1 auto !important;
}

.align-items-center {
  align-items: center !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-end {
  justify-content: flex-end !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.flex-column {
  flex-direction: column !important;
}

.text-start {
  text-align: left !important;
}

.text-center {
  text-align: center !important;
}

.text-end {
  text-align: right !important;
}

.text-decoration-none {
  text-decoration: none !important;
}

.text-light {
  color: #fff !important;
}

.text-white {
  color: #fff !important;
}

.fw-bold {
  font-weight: bold !important;
}

.fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

.py-2 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.px-2 {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

.p-0 {
  padding: 0 !important;
}

.p-1 {
  padding: 0.25rem !important;
}

.p-2 {
  padding: 0.5rem !important;
}

.p-3 {
  padding: 1rem !important;
}

.pt-2 {
  padding-top: 0.5rem !important;
}

.pb-1 {
  padding-bottom: 0.25rem !important;
}

.px-0 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.mb-auto {
  margin-bottom: auto !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mt-1 {
  margin-top: 0.25rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.m-0 {
  margin: 0 !important;
}

.gap-1 {
  gap: 0.25rem !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

.w-100 {
  width: 100% !important;
}

.h-100 {
  height: 100% !important;
}

.border-0 {
  border: 0 !important;
}

.rounded-2 {
  border-radius: 0.25rem !important;
}

.rounded-start-2 {
  border-top-left-radius: 0.25rem !important;
  border-bottom-left-radius: 0.25rem !important;
}

.rounded-end-2 {
  border-top-right-radius: 0.25rem !important;
  border-bottom-right-radius: 0.25rem !important;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0;
  margin-right: 0;
  margin-left: 0;
}

.g-0 {
  --bs-gutter-x: 0;
}

.col {
  flex: 1 0 0%;
}

.container-fluid {
  width: 100%;
  padding-right: var(--bs-gutter-x, 0.75rem);
  padding-left: var(--bs-gutter-x, 0.75rem);
  margin-right: auto;
  margin-left: auto;
}

.show {
  display: block !important;
}

.collapse:not(.show) {
  display: none;
}

/* ======= 導航欄相關樣式 (Navbar Related Styles) ======= */
.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar-brand {
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
  margin-right: 1rem;
  font-size: 1.25rem;
  text-decoration: none;
  white-space: nowrap;
}

.navbar-nav {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.navbar-toggler {
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  transition: box-shadow 0.15s ease-in-out;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

.nav-item {
  margin-bottom: 0.5rem;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: #0d6efd;
  text-decoration: none;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

/* ======= 模態窗口樣式詳細設定 (Modal Styles Detailed) ======= */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1055;
  display: none;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}

.modal.fade {
  transition: opacity 0.15s linear;
}

.modal.show {
  display: block;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 1.75rem auto;
  max-width: 500px;
}

.modal-dialog-scrollable {
  height: calc(100% - 3.5rem);
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #2c2a2a;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.3rem;
  outline: 0;
}

.modal-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
  border-top-left-radius: calc(0.3rem - 1px);
  border-top-right-radius: calc(0.3rem - 1px);
}

.modal-title {
  margin-bottom: 0;
  line-height: 1.5;
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1rem;
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem;
  border-top: 1px solid #dee2e6;
  border-bottom-right-radius: calc(0.3rem - 1px);
  border-bottom-left-radius: calc(0.3rem - 1px);
}

.btn-close {
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: 0.25em 0.25em;
  color: #000;
  background: transparent;
  border: 0;
  border-radius: 0.25rem;
}

.fs-5 {
  font-size: 1.25rem !important;
}

/* ======= 表單控制樣式 (Form Control Styles) ======= */
.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  appearance: none;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* ======= 按鈕樣式 (Button Styles) ======= */
.btn {
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* ======= 移動端特定模態窗口樣式 (Mobile-specific Modal Styling) ======= */
@media (max-width: 991.98px) {
  .modal-content {
  background-color: #2c2a2a;
  }
  
  .modal-header, .modal-body, .modal-footer {
    border-color: #333;
  }
  
  .modal-title, .modal-body label {
    color: #e6c675;
  }
  
  .input-display {
    background-color: #333 !important;
    color: #fff !important;
    border: 1px solid #444 !important;
  }
  
  .input-display::placeholder {
    color: #888 !important;
  }
  
  .btn-close {
    filter: invert(1) brightness(0.8) sepia(100%) saturate(300%) hue-rotate(7deg);
  }
}

/* ======= 媒體查詢調整 (Media Query Adjustments) ======= */
@media (min-width: 992px) {
  .d-lg-flex {
    display: flex !important;
  }
  
  .d-lg-none {
    display: none !important;
  }
}

/* ======= 修復頁首中的響應式顯示問題 (Fix for Responsive Display Issues in the Header) ======= */
@media (max-width: 991.98px) {
  /* 強制在小螢幕上顯示移動端元素 */
  header .d-lg-none {
    display: block !important;
  }
  
  /* 針對移動端上的彈性容器 */
  header .d-lg-none.d-flex,
  header .d-lg-none.mobile-top-bar {
    display: flex !important;
  }
  
  /* 強制在小螢幕上隱藏桌面元素 */
  header .d-none.d-lg-flex {
    display: none !important;
  }
  
  /* 確保登錄按鈕在移動端可見 */
  header .login-btn {
    display: block !important;
width: calc(100% - 2rem + 10px);
    max-width: calc(100% - 2rem + 10px);
    margin: 0 calc(1rem - 5px) 0 calc(1rem - 5px);
  }
}

@media (min-width: 992px) {
  /* 強制在大螢幕上顯示桌面元素 */
  header .d-none.d-lg-flex {
    display: flex !important;
  }
  
  /* 強制在大螢幕上隱藏移動端元素 */
  header .d-lg-none {
    display: none !important;
  }
  
  /* 確保登錄按鈕在桌面版隱藏（由其他元素處理） */
  header .login-btn {
    display: none !important;
  }
}

/* ======= 修復移動端頂部欄以確保正確顯示 (Fix for Mobile Top Bar to Ensure Proper Display) ======= */
.mobile-top-bar {
  width: 100%;
}

/* ======= 確保下拉選單在移動端正確工作 (Ensure the Dropdown Works Correctly on Mobile) ======= */
@media (max-width: 991.98px) {
  .dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 120px;
  }
  
  .left-icon .dropdown-content {
    left: 0;
    right: auto;
  }
}



/* ======= 移動端頂部信息 (Mobile Top Info) ======= */
.index-top-info {
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  margin-top: 8px;
  margin-bottom: 15px;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.index-top-info a,
.index-top-info .user-info {
  width: 33%; /* 改為百分比寬度 */
  display: flex;
  flex-direction: column;
  text-decoration: none;
  height: 40px; /* 增加高度提供更多空間 */
}

.index-top-info .name {
  color: #999999;
  display: flex;
  align-items: center;
  justify-content: center; /* 標籤置中 */
  margin-bottom: 2px;
}

.index-top-info .text-gold {
  font-weight: bold;
  color: #F1D789;
  text-align: right; /* 金額靠右對齊 */
  padding-right: 10px;
}

.index-top-info .mrw4 {
  vertical-align: middle;
  height: 18px;
  margin-right: 4px;
  width: 12px;
}

/* ======= 主體內容 (Main Content) ======= */
.content-spacer {
  height: 100px; /* 添加與新版本一致的間距 */
}





 
/* Light Theme CSS when header.Agent exists */
/* Complete Light Theme CSS when header.Agent exists */

/* Apply light theme when header.Agent exists */
body:has(header.Agent) {
  background-color: #fff !important;
  background-image: url(assets/images/bg-01.jpg) !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
  color: #333 !important;
  box-sizing: border-box !important;
}

/* Header styles */
body:has(header.Agent) header {
  background-color: #fff !important;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1) !important;
}

body:has(header.Agent)  main {margin-top:120px;margin-bottom:0px;}

body:has(header.Agent) header.mb-auto.bg-white.header-shadow.text-end.pt-4.pb-2.px-3.fixed-top {
  --bs-bg-opacity: 1 !important;
  background-color: rgba(var(--bs-white-rgb), var(--bs-bg-opacity)) !important;
  text-align: right !important;
}

/* Nav and link styles */
body:has(header.Agent) .nav {
  --bs-nav-link-padding-x: 1rem !important;
  --bs-nav-link-padding-y: 0.5rem !important;
  --bs-nav-link-font-weight: normal !important;
  --bs-nav-link-color: var(--bs-link-color) !important;
  --bs-nav-link-hover-color: var(--bs-link-hover-color) !important;
  --bs-nav-link-disabled-color: var(--bs-secondary-color) !important;
  display: flex !important;
  flex-wrap: wrap !important;
  padding-left: 0 !important;
  margin-bottom: 0 !important;
  list-style: none !important;
}

body:has(header.Agent) .nav-link {
  display: block !important;
  padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x) !important;
  font-size: var(--bs-nav-link-font-size) !important;
  font-weight: var(--bs-nav-link-font-weight) !important;
      color: #333 !important;
  text-decoration: none !important;
  background: 0 0 !important;
  border: 0 !important;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out !important;
}

body:has(header.Agent) .nav-masthead .nav-link {
  margin-left: 1rem !important;
  padding: 0.5rem 1rem !important;
}

body:has(header.Agent) a {
  color:  #333 !important;
  text-decoration: underline !important;
  cursor: pointer !important;
}

body:has(header.Agent) .btn, 
body:has(header.Agent) a {
  cursor: pointer !important;
}

/* Text formatting */
body:has(header.Agent) .text-black {
  --bs-text-opacity: 1 !important;
  color: rgba(var(--bs-black-rgb), var(--bs-text-opacity)) !important;
}

body:has(header.Agent) .fw-bold {
  font-weight: 700 !important;
}

/* Padding */
body:has(header.Agent) .px-0 {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

/* Background colors */
body:has(header.Agent) .bg-dark {
  background-color: #fff !important;
}

body:has(header.Agent) .bg-brandred {
  background: #C74040 !important;
  color: white !important;
}

body:has(header.Agent) .bg-lightred {
  background: #E45252 !important;
}

/* Text colors */
body:has(header.Agent) .text-brandred {
  color: #C74040 !important;
}

body:has(header.Agent) .text-gold, 
body:has(header.Agent) .gold-text {
  color: #333 !important; /* Dark text for light theme */
}

body:has(header.Agent) .f-color, 
body:has(header.Agent) a.f-color {
  color: #C74040 !important; /* Brand red for links */
}

/* Logo style */
body:has(header.Agent) .logo {
  color: #C74040 !important;
}

/* Button hover effect */
body:has(header.Agent) .btn:hover {
  background: #C74040 !important;
}

/* Navigation links */
body:has(header.Agent) .nav-masthead .nav-link:hover {
  color: #C74040 !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  body:has(header.Agent) .nav-link {
    transition: none !important;
  }
}

/* Border colors */
body:has(header.Agent) .line-brandred {
  border-color: #C74040 !important;
}

/* Box sizing for all elements */
body:has(header.Agent) *, 
body:has(header.Agent) ::after, 
body:has(header.Agent) ::before {
  box-sizing: border-box !important;
}

/* Dropdown menu */
body:has(header.Agent) .dropdown-content {
  background-color: #fff !important;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2) !important;
  border-color: #ddd !important;
}

body:has(header.Agent) .dropdown-content a {
  color: #C74040 !important;
}

body:has(header.Agent) .dropdown-content a:hover {
  background-color: #f8f8f8 !important;
}

/* Modal colors */
body:has(header.Agent) .login .modal-content {
  background-color: #fff !important;
  border-color: #ddd !important;
}

body:has(header.Agent) .login .modal-title {
  color: #333 !important;
}

body:has(header.Agent) .login .btn-close {
  color: #333 !important;
}

body:has(header.Agent) .login .form-control {
  background-color: #f8f8f8 !important;
  color: #333 !important;
}

body:has(header.Agent) .login label {
  color: #333 !important;
}

body:has(header.Agent) .login .modal-footer button {
  background-color: #C74040 !important;
  border: none !important;
}

/* Mobile footer */
body:has(header.Agent) .fixed-footers {
  background: #fff !important;
  border-top-color: #ddd !important;
}

body:has(header.Agent) .fixed-footers a {
  color: #333 !important;
}

body:has(header.Agent) .fixed-footers a.bg-goldg {
  background: #f8f8f8 !important;
}

/* Mobile top info */
body:has(header.Agent) .index-top-info .name {
  color: #666 !important;
}

body:has(header.Agent) .index-top-info .text-gold {
  color: #333;
}

/* Mobile header */
@media (max-width: 991.98px) {
  body:has(header.Agent) header.fixed-top {
    background-color: #fff !important;
  }
  
  body:has(header.Agent) .navbar-collapse {
    background: #fff !important;
  }
  
  body:has(header.Agent) .mobile-menu .nav-link {
    color: #333 !important;
  }
}

/* Modal backdrop fix */
.modal-backdrop {
  display: none;
}

.modal-open .modal-backdrop {
  display: block;
  opacity: var(--bs-backdrop-opacity);
}