/* static-fixes.css -- 靜態版的版面小修正 */

/* 麵包屑分隔符號: 原本用圖示字型, 該字型檔在原站就缺檔而看不見, 改用文字 > */
.breadcrumbs .items .item:not(:last-child)::after {
  content: ">" !important;
  display: inline !important;
  position: static !important;
  top: auto !important;
  width: auto !important;
  height: auto !important;
  margin: 0 .7em !important;
  padding: 0 !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: 400 !important;
  line-height: inherit !important;
  vertical-align: baseline !important;
  color: #999 !important;
}

/* 回到最上方按鈕: 原本的圖示字型 (FontAwesome) 在原站就載入失敗而是空白, 改用內嵌的向上箭頭 */
a.scroll-to-top .fa-arrow-up::before { content: none !important; }
a.scroll-to-top .fa-arrow-up {
  display: block !important;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 19V6M5.5 11.5 12 5l6.5 6.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 19V6M5.5 11.5 12 5l6.5 6.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
a.scroll-to-top { transition: opacity .25s; }

/* 頁面標題區與麵包屑之間的白色間隙 */
#page-title-wrapper { margin-bottom: 0 !important; }

/* 首頁主視覺: 手機版也依寬度等比縮放 (原本固定 250px 高並裁切圖片) */
.page-header-sliders .owl-carousel .item-image { min-height: 0 !important; height: auto !important; aspect-ratio: 2513 / 700; }

/* 首頁頁籤 (新書上架/最新期刊): 標題換行時, 內容不要蓋到標題, 並恢復膠囊外框 */
@media (min-width: 0px) {
  .mgs-product-tab .mgs-tab.data.items { display: flex !important; flex-wrap: wrap; justify-content: center; height: auto !important; }
  .mgs-product-tab .mgs-tab.data.items > .item.title { order: 0; margin: 0 6px 10px !important; float: none; }
  .mgs-product-tab .mgs-tab.data.items > .item.content { order: 1; flex: 0 0 100%; width: 100% !important; margin: 20px 0 5px !important; text-align: left; }
  .mgs-product-tab .tab-style3.data.items .item.title .switch { border: 1px solid #e3e3e3 !important; padding: 5px 14px !important; width: auto !important; color: #797979; }
  .mgs-product-tab .tab-style3.data.items .item.title.active .switch { border-color: #6e6e6e !important; color: #333; }
}
