/*!
 * 達豐儀器 - 維修頁面專用樣式
 * repair-custom.css
 * 此檔案僅包含維修頁面的自訂樣式，不重複 Bootstrap Creative 模板內容
 */

/* === 頁面 Header 背景覆寫 === */
header {
  background-image: url("../img/header1.jpg") !important;
}

/* === 維修流程與報價區塊樣式 === */
.text-blue {
  color: rgb(0, 120, 241);
}

.container-padding-small {
  padding-top: 20px;
}

.card-pricing {
  max-width: 50rem;
  margin: 0 auto;
}

/* === 共通工具類別 === */
.row-padding {
  padding: 20px;
}

.margin-bottom-small {
  margin-bottom: 10px;
}

.text-left {
  text-align: left;
}

/* === 導航列調整 === */
.navbar-toggler {
  z-index: 1;
}

/* === 智能響應式導航列 === */

/* 預設狀態：顯示完整品牌名稱 */
.brand-full { display: inline; }
.brand-short { display: none; }

/* 階段 1：較大螢幕時品牌名稱縮短 */
@media (max-width: 1199px) {
    .brand-full { display: none; }
    .brand-short { display: inline; }
}

/* 階段 2：小螢幕時的佈局優化 */
@media (max-width: 991px) {
    /* 確保 container 使用 flexbox 佈局 */
    #mainNav .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* 品牌區域佈局 */
    #mainNav .navbar-brand {
        display: flex;
        align-items: center;
        white-space: nowrap;
    }
    
    #mainNav img {
        margin-right: 10px;
    }
}

/* 階段 3：極小螢幕時進一步調整 */
@media (max-width: 480px) {
    .navbar-brand { 
        font-size: 0.9rem;
    }
    
    #mainNav img {
        height: 1.1rem !important;
        margin-right: 8px !important;
    }
    
    /* 極小螢幕時調整容器間距 */
    #mainNav .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* 縮小 toggler 與文字間距 */
    #mainNav .navbar-toggler {
        margin-left: 10px;
        padding: 0.2rem 0.4rem;
    }
}

/* 極小螢幕時隱藏品牌文字，只保留 Logo */
@media (max-width: 360px) {
    .brand-short { 
        display: none; 
    }
}

/* === 委託流程表格式佈局 === */
/* 預設桌面版：顯示原結構，隱藏表格 */
.delegation-original {
    display: block;
}

.delegation-table {
    display: none;
}

/* 表格樣式 */
.delegation-table table {
    width: 100%;
    margin: 0 auto;
}

.delegation-table td {
    text-align: center;
    vertical-align: middle;
    padding: 15px 10px;
}

.delegation-main {
    width: 40%;
}

.delegation-branch-arrow {
    width: 20%;
}

.delegation-branch {
    width: 40%;
}

.delegation-arrow {
    padding: 10px 0;
}



/* 滾動時的特殊處理 */
@media (max-width: 991px) {
    .navbar-shrink.show-toggler .navbar-brand {
        transition: all 0.3s ease;
    }
}

/* 選單按鈕基本樣式 */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(240, 95, 64, 0.25);
}

/* === Header 內容間距 === */
.header-padding-bottom {
  padding-bottom: 20px;
}

/* === 標題寬度控制 === */
.section-heading-narrow {
  max-width: 600px;
  margin: 0px auto;
}

.section-heading-wide {
  max-width: 700px;
  margin: 0px auto;
}

/* === 流程箭頭容器 === */
.arrow-container {
  margin: 0px auto;
  padding: 10px;
}

/* === 頁面背景樣式 === */
.bgg {
  width: 100%;
  min-height: auto;
  background-size: auto;
  background-repeat: repeat-x;
  background-position: center;
  background-image: linear-gradient(to top, #ffffffba, #ffffffcc), url("../img/header2.webp");
  text-align: center;
}

/* === 步驟文字與流程樣式 === */
.steptext {
  height: 50px;
  display: flex;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
}

.stepaaa {
  display: flex;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
}

/* === 卡片樣式 === */
.cardd {
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  margin-bottom: 20px;
}

.cardd-header {
  background: hsla(0, 0%, 100%, 0.907);
  color: black;
  max-width: 450px;
  margin: 0px auto;
  padding: 10px;
}

.header-card {
  background: hsla(0, 0%, 100%, 0.907) !important;
  color: black !important;
  max-width: 450px;
  margin: 0px auto;
  padding: 10px;
}

.cardd-note {
  background: hsla(0, 0%, 100%, 0.907);
  color: black;
  margin: 0px auto;
}

.cardd-pricing {
  max-width: 50rem;
  margin: 0 auto;
}

.cardd-warranty {
  max-width: 25rem;
  margin: 0 auto;
}

/* === 按鈕樣式覆寫 === */
.btn {
  border-radius: 25px;
}

/* === 標題樣式 === */
.steptext, .section-heading {
  margin-bottom: 15px;
}

/* 使用高特定性選擇器覆寫 creative.min.css */
header .header-content p.header-title {
  font-weight: 400 !important;
  font-size: 30px !important;
  color: black !important;
}

header .header-content p.header-subtitle {
  font-weight: 400 !important;
  font-size: 24px !important;
  color: black !important;
}

header .header-content p.header-desc {
  font-weight: 350 !important;
  font-size: 15px !important;
  color: black !important;
  line-height: 25px !important;
}

/* 通用覆寫作為備選 */
header .header-content p {
  color: black !important;
}

/* === 內容區塊樣式 === */
.header-content-inner-padding {
  padding-bottom: 20px;
}

.section-heading-max-width {
  max-width: 600px;
  margin: 0px auto;
}

.section-heading-max-width-700 {
  max-width: 700px;
  margin: 0px auto;
}

.section-heading-center {
  margin: 0px auto;
}

.section-heading-contact {
  padding-top: 20px;
  font-weight: 900;
  max-width: 400px;
  margin: 0px auto;
}

/* === 間距工具類別 === */
.container-padding-top {
  padding-top: 50px;
}

.container-padding-top-20 {
  padding-top: 20px;
}

.container-padding-top-40 {
  padding-top: 40px;
}

.container-padding-10 {
  padding: 10px;
}

.mb-2-center {
  margin: 0px auto;
  padding: 10px;
}

.justify-content-center-padding {
  padding: 20px;
}

.justify-content-center-padding-top {
  padding-top: 20px;
}

.steptext-padding-top {
  padding-top: 50px;
}

.section-padding-top {
  padding-top: 50px;
  margin-bottom: -50px;
}

.row-padding-top {
  padding-top: 30px;
}

.btn-padding-top {
  padding-top: 20px;
}

/* === 文字樣式工具 === */
.padding-right-10 {
  padding-right: 10px;
}

.text-align-left {
  text-align: left;
}

.color-blue {
  color: rgb(0, 120, 241);
}

.margin-bottom-10 {
  margin-bottom: 10px;
}

.img-center {
  margin: 0px auto;
}

/* === 聯絡區段樣式 === */
.section-contact {
  background-color: #e3e1e0;
  padding-top: 50px;
  margin-bottom: -100px;
}

/* === 響應式設計 === */
@media (max-width: 991px) {
  #about #arrow { 
    transform: rotate(90deg) !important; 
  }
  
  #about #other { 
    transform: rotate(-90deg) !important; 
  }
  
  #about2 #arrow { 
    transform: rotate(90deg) !important; 
  }
  
  .btn { 
    font-size: 24px !important; 
    padding: 18px 36px !important; 
  }
  
  .section-heading { 
    font-size: 27px !important; 
  }
  
  .steptext { 
    font-size: 21px !important; 
  }
  
  p { 
    font-size: 24px !important; 
  }
  
  h5 { 
    font-size: 30px !important; 
  }
  
  h6 { 
    font-size: 22.5px !important; 
  }
  
  .header-content-inner p[style*="font-size:25px"] { 
    font-size: 37.5px !important; 
  }
  
  .header-content-inner p[style*="font-size:15px"] { 
    font-size: 22.5px !important; 
  }
  
  /* 手機版價格區塊文字大小調整 - 匹配烘乾文字大小 */
  .pricing-flow-mobile .mobile-price-box,
  .pricing-flow-mobile .mobile-result-box,
  .pricing-flow-mobile .mobile-column > div[style*="font-size"] {
    font-size: 21px !important;
  }
  
  .pricing-flow-mobile .mobile-result-box span {
    font-size: 18px !important;
  }
  
  /* 委託流程手機版：隱藏原結構，顯示表格 */
  .delegation-original {
    display: none;
  }
  
  .delegation-table {
    display: block;
  }
}

/* === 六箭頭價格流程設計 === */

/* 響應式佈局控制 */
.pricing-flow-desktop {
    display: block;
}

.pricing-flow-mobile {
    display: none;
}

/* 小螢幕時切換為直排佈局 */
@media (max-width: 991px) {
    .pricing-flow-desktop {
        display: none;
    }
    
    .pricing-flow-mobile {
        display: block;
    }
    
    .mobile-column {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .mobile-arrow-down {
        margin: 15px 0;
        color: #17a2b8;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .mobile-split-arrows {
        display: flex;
        justify-content: space-around;
        margin: 20px 0;
    }
    
    .mobile-price-column {
        flex: 1;
        padding: 0 12px;
        text-align: center;
    }
    
    .mobile-price-box {
        padding: 8px;
        background: #f8f9fa;
        border-radius: 6px;
        margin-bottom: 10px;
        margin-left: 8px;
        margin-right: 8px;
        font-size: 12px;
        font-weight: 500;
    }
    
    .mobile-result-box {
        padding: 8px;
        border-radius: 6px;
        margin-left: 8px;
        margin-right: 8px;
        font-size: 11px;
        font-weight: 500;
        line-height: 1.3;
    }
}