@charset "UTF-8";
/* ============================================================
   萬佶鐵工廠 前台樣式 (RWD / Bootstrap 5)
   由原 App_Themes/Theme2/{mainstyle,datastyle,show}.css 改寫
   ============================================================ */

:root {
  --wc-dark:   #1f1f1f;
  --wc-blue:   #006699;
  --wc-amber:  #ffba00;
  --wc-hover:  #ffc600;
  --wc-line:   #e5e5e5;
}

body {
  font-family: "微軟正黑體", "Microsoft JhengHei", Arial, Helvetica, sans-serif;
  font-size: 15px;
  color: #333;
  background: #fff;
}

a { color: var(--wc-blue); }

/* ---------- 頁首 / 選單 ---------- */
.site-header {
  background: var(--wc-dark) url(../images/topbg.gif) top repeat-x;
}
.site-header .navbar { padding-top: .75rem; padding-bottom: .75rem; }
.navbar-brand img { max-height: 56px; width: auto; }
.site-header .nav-link {
  color: #fff;
  font-size: 1rem;
  padding: .5rem 1.15rem;
}
.site-header .nav-link:hover,
.site-header .nav-link:focus { color: var(--wc-hover); }
.site-header .nav-link.active {
  color: var(--wc-amber);
  font-weight: 700;
}

/* ---------- 內容 ---------- */
.site-main { min-height: 55vh; padding-bottom: 2.5rem; }
.page-banner { background: #fff; }
.page-banner img { display: block; }

.section-title {
  font-size: 1.25rem;
  color: var(--wc-blue);
  padding-bottom: .5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--wc-amber);
}

/* 內文編輯區：CKEditor 產生的舊 HTML 需要能在小螢幕捲動 */
.editbox { line-height: 1.9; }
.editbox img { max-width: 100%; height: auto; }
.editbox iframe { max-width: 100%; }
.editbox table {
  width: 100% !important;
  border-collapse: collapse;
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- 側邊選單 (原 .menuslist) ---------- */
.side-menu .list-group-item {
  border: 0;
  border-bottom: 1px dotted #ccc;
  border-radius: 0;
  padding-left: 1.25rem;
  background: transparent;
}
.side-menu .list-group-item::before {
  content: "\25B8";
  color: var(--wc-amber);
  margin-right: .5rem;
}
.side-menu .list-group-item.active {
  background: transparent;
  color: #217c00;
  font-weight: 700;
}
.side-menu .list-group-item a { color: #333; text-decoration: none; }
.side-menu .list-group-item a:hover { text-decoration: underline; }

/* ---------- 首頁輪播 (原 .abgne-block) ---------- */
.home-carousel { border: 1px solid #ccc; }
.home-carousel .carousel-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.home-tabs {
  border-top: 5px solid var(--wc-amber);
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-tabs li {
  flex: 1 1 0;
  min-width: 50%;
  background: #93acb8;
  border-right: 1px solid #ccc;
  padding: 12px;
  cursor: pointer;
  transition: background .2s;
}
.home-tabs li h3 {
  font-size: 1rem;
  line-height: 1.4;
  color: #fff;
  margin-bottom: .35rem;
}
.home-tabs li p {
  font-size: .85rem;
  color: #fff;
  margin: 0;
}
.home-tabs li.active,
.home-tabs li:hover { background: var(--wc-amber); }
.home-tabs li.active h3, .home-tabs li:hover h3,
.home-tabs li.active p,  .home-tabs li:hover p { color: #000; }

@media (min-width: 768px) {
  .home-tabs li { min-width: 0; }
}

/* ---------- 產品卡片 ---------- */
.product-card { border: 1px solid var(--wc-line); height: 100%; }
.product-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.product-card .card-title { font-size: .95rem; color: var(--wc-blue); }

/* ---------- 表單 ---------- */
.form-required::after { content: " *"; color: #d00; }

/* ---------- 頁尾 ---------- */
.site-footer {
  border-top: 3px solid var(--wc-amber);
  background: #f5f5f5;
  padding: 1.5rem 0;
  font-size: .875rem;
  line-height: 1.8;
  text-align: center;
  color: #555;
}
.site-footer a { color: var(--wc-blue); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-copy { margin-top: .5rem; }

/* ---------- 回到頂端 ---------- */
.btn-gotop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  background: var(--wc-dark);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  z-index: 1030;
}
.btn-gotop.show { opacity: .8; pointer-events: auto; }
.btn-gotop:hover { opacity: 1; color: var(--wc-amber); }
