/* 共通 */

/* --- 核心變數 --- */
:root {
  --brand-red-top: #68070C;
  --brand-red-bottom: #4F0002;
  --brand-red-darker: #3B0001;
  --brand-gold: #b5791b;
  --sidebar-gray: #f5f5f5;
  --nav-height-pc: 85px;
  --transition-speed: 0.3s;

  --bg-color: #3b0001;
  /* 深褐色背景 */
  --primary-gold: #E5A83F;
  /* 金色按鈕 */
  --text-white: #ffffff;
  --text-muted: #918077;
  --card-maroon: #68070c;
  /* 卡片底部深紅 */
}

input:focus,
a:focus,
button:focus {
  outline: none !important;
}

a:hover,
a:active,
a:focus {
  text-decoration: none;
}

body {
  font-family: "Microsoft JhengHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding-top: 0;
}

.cursor {
  cursor: pointer;
}

/* 佈局容器：確保左右兩側等高以延伸背景色 */
.page-all {
  display: flex;
  align-items: stretch;
  width: 100%;
}

/* 內頁左側導覽列 (桌機版) */
.list-slide {
  display: block;
  width: 320px;
  flex: 0 0 320px;
  position: relative;
  min-height: 100vh;
  background-color: var(--sidebar-gray);
  z-index: 99;
}

/* 手機版遮罩 */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

/* 麵包屑樣式：位於左側灰色區域內 */
.breadcrumb-container-inner {
  padding: 30px 15px 15px 40px;
  text-align: left;
}

.breadcrumb-line {
  font-size: 14px;
  color: #888;
}

.breadcrumb-line a {
  color: #888;
}

.breadcrumb-line>.bread-active {
  color: var(--brand-red-top);
  font-weight: bold;
}

/* 手機版專用麵包屑樣式 */
.mobile-breadcrumb {
  display: none;
  /* 預設隱藏 (桌機版) */
}

#left-list {
  width: 320px;
  background-color: var(--sidebar-gray);
  margin-top: 10px;
}

/* 選單按鈕基礎樣式 */
.list-slide li>a {
  font-size: 18px;
  color: #333;
  width: 100%;
  display: inline-block;
  background: transparent;
  padding: 15px 15px 15px 40px;
  text-align: left;
  transition: all var(--transition-speed);
}

/* 啟動與滑過狀態：紅色漸層 */
.list-slide li>a:hover,
.list-slide li>a.active-silde {
  color: white !important;
  background: linear-gradient(to bottom, var(--brand-red-top), var(--brand-red-bottom)) !important;
}

/* 右側內容區塊 */
.inner-page-contain {
  flex: 1;
  padding: 40px;
  padding-bottom: 80px;
  background-color: white;
}

/* 固定側欄狀態的寬度 (桌機) */
.left-bar-fixed {
  position: fixed;
  top: 20px;
  width: 320px;
  z-index: 10;
}

/* 手機版收合按鈕 */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(to bottom, var(--brand-red-top), var(--brand-red-bottom));
  color: white;
  border-radius: 50%;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.mobile-menu-toggle span {
  font-size: 10px;
  margin-top: 2px;
}

/* 響應式調整 */
@media only screen and (max-width: 767px) {

  /* 手機版顯示麵包屑 */
  .mobile-breadcrumb {
    display: block;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
  }

  .page-all {
    display: block;
  }

  /* 左側選單變為側邊滑出 */
  .list-slide {
    position: fixed;
    top: 0;
    left: -300px;
    /* 初始隱藏 */
    width: 280px;
    height: 100%;
    min-height: 100vh;
    flex: none;
    transition: left var(--transition-speed) ease;
    z-index: 999;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
  }

  /* 選單展開狀態 */
  .list-slide.open {
    left: 0;
  }

  .list-slide.open+.menu-overlay {
    display: block;
  }

  .breadcrumb-container-inner {
    padding: 20px;
  }

  #left-list {
    width: 100%;
    margin-top: 0;
  }

  .list-slide li>a {
    padding: 15px 20px;
    font-size: 16px;
  }

  .inner-page-contain {
    width: 100% !important;
    padding: 20px;
    flex: none;
  }

  .mobile-menu-toggle {
    display: flex;
    /* 顯示切換按鈕 */
  }

  .left-bar-fixed {
    position: relative;
    /* 手機版不固定 */
    top: 0;
    width: 100%;
  }
}

@media only screen and (min-width: 768px) and (max-width: 992px) {

  .list-slide,
  .left-bar-fixed {
    width: 240px;
    flex: 0 0 240px;
  }

  #left-list {
    width: 240px;
  }

  .list-slide li>a {
    padding-left: 25px;
  }
}

@media only screen and (min-width: 993px) and (max-width: 1200px) {

  .list-slide,
  .left-bar-fixed {
    width: 280px;
    flex: 0 0 280px;
  }

  #left-list {
    width: 280px;
  }

  .list-slide li>a {
    padding-left: 30px;
  }
}


.btn-news {
  color: #f6f1e7;
  background: #b5791b;
  border: 2px solid #b5791b;
  border-radius: 161px;
  font-size: 17px;
  /*19*/
  padding: 6px 0;
  margin: 10px 0 10px 20px;
  width: 152px;
  /*160 */
  font-weight: 600;
  letter-spacing: 1px;
}

.btn-news:focus {
  color: #f6f1e7;
}

.btn-news:hover {
  background: white;
  color: #b5791b;
}

.btn-product {
  color: #f6f1e7 !important;
  background: #b5791b;
  border: 2px solid #b5791b;
  border-radius: 161px;
  font-size: 19px;
  padding: 6px 0;
  /* margin: 10px 0 10px 20px; */
  width: 160px;
  font-weight: 600;
  letter-spacing: 1px;
  position: absolute;
  bottom: 0;
  left: calc((100% - 160px)/2);
}

.inner-page-contain {
  display: inline-block;
  width: calc(100% - 320px);
  padding-bottom: 50px;
}

.modal-body,
.modal-title {
  color: black;
}

.btn-pill {
  padding: 8px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s;
  border: 2px solid var(--primary-gold);
  text-align: center;
}

.btn-gold {
  background-color: var(--primary-gold);
  color: var(--card-maroon) !important;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-gold);
}

.btn-pill:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}