/* ===========================================================
   custom.css — 雙欣科技官網補丁樣式
   說明：main.a3f694c0.css 為 Mashup Templates 打包產物，請勿直接改動。
        所有新增樣式集中於本檔，載入順序必須排在 main.a3f694c0.css 之後。
   =========================================================== */

/* -----------------------------------------------------------
   一、補上專案中已被使用、但 CSS 未定義的 class
   （medical.html 目前已使用 case-badge / feature-box /
     product-spec-table，之前沒有對應樣式）
   ----------------------------------------------------------- */

.case-badge {
  display: inline-block;
  padding: 4px 12px;
  background-color: #001F5F;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  border-radius: 3px;
}

.feature-box {
  padding: 28px 20px;
  height: 100%;
  background-color: #fff;
  border: 1px solid #e6ecf2;
  border-radius: 6px;
  transition: box-shadow .25s ease, transform .25s ease;
}

.feature-box:hover {
  box-shadow: 0 6px 18px rgba(0, 31, 95, .10);
  transform: translateY(-3px);
}

.feature-box h4 {
  color: #001F5F;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-box p {
  color: #52616f;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 0;
}

.product-spec-table {
  border: 1px solid #e6ecf2;
}

.product-spec-table > tbody > tr > th {
  width: 30%;
  background-color: #f4f8fc;
  color: #001F5F;
  font-weight: 700;
  vertical-align: middle;
  border-color: #e6ecf2;
}

.product-spec-table > tbody > tr > td {
  vertical-align: middle;
  border-color: #e6ecf2;
}

/* -----------------------------------------------------------
   二、navbar 下拉選單（智慧醫療 → 子頁面）
   Bootstrap 3 已內建 .dropdown-menu，這裡只調整配色
   ----------------------------------------------------------- */

.navbar-default .navbar-nav > .dropdown > a .caret {
  margin-left: 4px;
}

.navbar-default .navbar-nav .dropdown-menu {
  border: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
  padding: 6px 0;
  min-width: 190px;
}

.navbar-default .navbar-nav .dropdown-menu > li > a {
  padding: 9px 20px;
  font-size: 15px;
  color: #22364f;
}

.navbar-default .navbar-nav .dropdown-menu > li > a:hover,
.navbar-default .navbar-nav .dropdown-menu > li > a:focus {
  background-color: #f4f8fc;
  color: #001F5F;
}

/* 手機版收合選單中的下拉，改為內縮清單而非浮層 */
@media (max-width: 767px) {
  .navbar-default .navbar-nav .open .dropdown-menu {
    box-shadow: none;
    background-color: transparent;
  }
  .navbar-default .navbar-nav .open .dropdown-menu > li > a {
    padding-left: 34px;
  }
}

/* -----------------------------------------------------------
   三、電子紙頁面（epaper.html）專用
   ----------------------------------------------------------- */

/* 尺寸規格表：強調主推的兩個尺寸 */
.spec-table > tbody > tr.spec-highlight > td,
.spec-table > tbody > tr.spec-highlight > th {
  background-color: #fff8f6;
  color: #c0392b;
  font-weight: 700;
}

.spec-table > thead > tr > th {
  background-color: #001F5F;
  color: #fff;
  border-bottom: none;
  text-align: center;
  font-weight: 600;
}

.spec-table > tbody > tr > td {
  text-align: center;
  vertical-align: middle;
}

/* 應用場域六宮格 */
.scene-card {
  padding: 22px 18px;
  margin-bottom: 24px;
  background-color: #fff;
  border: 1px solid #e6ecf2;
  border-radius: 6px;
  min-height: 148px;
}

.scene-card .scene-icon {
  float: left;
  width: 46px;
  font-size: 26px;
  color: #2f6fb0;
  line-height: 1.2;
}

.scene-card .scene-body {
  margin-left: 56px;
}

.scene-card h4 {
  margin: 0 0 8px;
  color: #001F5F;
  font-weight: 700;
  font-size: 18px;
}

.scene-card p {
  margin: 0;
  color: #52616f;
  font-size: 14px;
  line-height: 1.7;
}

/* 導入效益條列 */
.benefit-list {
  list-style: none;
  padding-left: 0;
  margin-top: 18px;
}

.benefit-list > li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 16px;
  color: #52616f;
  font-size: 15px;
  line-height: 1.75;
}

.benefit-list > li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  background-color: #2f6fb0;
  border-radius: 2px;
}

.benefit-list > li strong {
  display: block;
  color: #001F5F;
  font-size: 16px;
  margin-bottom: 2px;
}

/* 整合來源標籤（HIS / NIS / MIS …） */
.integration-tag {
  display: inline-block;
  margin: 0 8px 10px 0;
  padding: 8px 18px;
  background-color: #fff;
  border: 1px solid #c3d4e6;
  border-radius: 20px;
  color: #001F5F;
  font-weight: 600;
  font-size: 15px;
}

/* 圖片區塊統一外框 */
.figure-frame {
  padding: 16px;
  background-color: #fff;
  border: 1px solid #e6ecf2;
  border-radius: 6px;
}

.figure-caption {
  margin-top: 12px;
  text-align: center;
  color: #7b8794;
  font-size: 13px;
}

/* 案例輪播：與 medical.html 共用，補上左右間距避免貼邊 */
.carousel-indicators li {
  border-color: #001F5F;
}

.carousel-indicators .active {
  background-color: #001F5F;
}

/* CTA 區塊 */
.cta-container {
  background-color: #001F5F;
  color: #fff;
  padding: 56px 0;
}

.cta-container h2 {
  color: #fff;
  font-weight: 700;
  margin-top: 0;
}

.cta-container p {
  color: rgba(255, 255, 255, .82);
  font-size: 17px;
  line-height: 1.7;
}

.cta-container .btn {
  margin: 6px 10px 6px 0;
  padding: 12px 30px;
  font-size: 16px;
}

.cta-phone {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

/* 行動裝置調整 */
@media (max-width: 767px) {
  .scene-card {
    min-height: 0;
  }
  .cta-container {
    text-align: center;
    padding: 40px 0;
  }
  .cta-container .btn {
    display: block;
    margin: 10px 0;
  }
}
