/*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  $Id: pstyle.css, v5.0.0 2025/04/26 11:00:00 poet Exp $

  Poet Hsiao, a Professional Web Designer

  Copyright(c) 2025 WebCss
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
:root {
    --default-font: "Roboto", "Noto Sans";
}

:root {
    --photomate: #DC4646;
    --primary: #009CFF;
    --secondary: #777777;
    --light: #F8F8F8;
    --dark: #252525;
    --default-color: #444444;
    --heading-color: #ee7680;
}

.bg-photomate {
    background-color: #DC4646 !important
}

.bg-gray {
    background-color: #585858 !important
}

.bg-red {
    background-color: #FF0000 !important
}

.border-red {
    border-color: #FF0000 !important
}

.text-red {
    color: #FF0000 !important
}

.text-orange {
    color: #fd7e14 !important
}
/*** Button ***/
.return-btn:hover {
    color: #FFFFFF;
}

.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}
.table thead th {
    border-top: 1px solid #DC4646 !important;
    border-bottom: 1px solid #FFFFFF !important;
}

.table-subheader {
    background-color: #ff7f7f;
}
.table-subheader th {
    font-weight: bold;
    padding: 0.6rem 1rem;
    text-align: left;
    vertical-align: middle;
}
.table-subheader h5 {
    margin: 0; /* 移除預設上下外距 */
    display: inline-block;
    line-height: 1.5;
}
.table-subheader i {
    vertical-align: middle; /* 圖示與文字對齊 */
    margin-right: 0.5rem;
}

/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 20px 0;
    color: #FFFFFF;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--dark);
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 8px 0;
    }

    .navbar .navbar-nav {
        margin-top: 8px;
        border-top: 1px solid rgba(256, 256, 256, .1)
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.dropdown-item:hover {
    background-color: #F8DADA;
}

/*** Header ***/
#header-carousel .carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    z-index: 1;
}

#header-carousel .carousel-control-prev,
#header-carousel .carousel-control-next {
    width: 10%;
}

#header-carousel .carousel-control-prev-icon,
#header-carousel .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) and (min-width: 576px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 300px;
        overflow: hidden;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        height: 100%;
        width: auto;
        min-width: 100%;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        object-fit: cover;
        object-position: center;
    }
}

/* 手機尺寸 (576px 以下) */
@media (max-width: 575px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 200px;
        overflow: hidden;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: auto;
        min-height: 100%;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        object-fit: cover;
        object-position: center;
    }
}

/* 小圓點樣式 */
#header-carousel .carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

#header-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    margin: 6px;
    border: none;
    border-radius: 50%;
    background-color: #ffffff;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

#header-carousel .carousel-indicators .active {
    opacity: 1;
    background-color: var(--photomate); /* 小圓點色 */
}

#header-carousel .carousel-indicators [data-bs-target]:hover {
    opacity: 0.8;
}


/*** Photomate Title ***/
.mate-title {
    padding-bottom: 60px;
    position: relative;
  }
  
  .mate-title h2 {
    font-size: 15px;
    font-weight: 500;
    padding: 0;
    line-height: 1px;
    margin: 0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--default-color), transparent 50%);
    position: relative;
  }
  
  .mate-title h2::after {
    content: "";
    width: 200px;
    height: 2px;
    display: inline-block;
    background: var(--photomate);
    margin: 4px 10px;
  }
  
  .mate-title p {
    color: var(--heading-color);
    margin: 0;
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    font-family: var(--default-font);
  }
  
  @media (max-width: 768px) {
    .mate-title p {
      font-size: 24px;
    }
  }

/*** Section Title ***/
.section-title {
    text-align: center;
    padding-bottom: 40px;
    position: relative;
  }
  
  .section-title h2 {
    font-size: 24px;
    letter-spacing: 1px;
    font-weight: 500;
    padding: 10px 30px;
    margin: 0;
    background: color-mix(in srgb, var(--photomate), transparent 10%);
    color: #FFFFFF;
    display: inline-block;
    text-transform: uppercase;
    border-radius: 50px;
    font-family: var(--default-font);
  }

/*** About icon ***/
.feature-item {
    font-weight: bold;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.icon-1 {
    color: #EF9292;
    font-size: 24px;
    margin-right: 5px;
}

.icon-2 {
    color: #B94B4A;
    font-size: 24px;
    margin-right: 5px;
}

.text-about {
    color: var(--primary);
    font-size: 26px;
}

/*** Img Border ***/
.img-border {
    position: relative;
    width: 100%;
    text-align: center;
}

.img-border img {
    max-height: 500px;
    width: auto;
    height: auto;
}

/*** Q & A ***/
.que-icon, .ans-icon {
    display: inline-block;
    vertical-align: middle;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    text-align: center;
    line-height: 2rem;
    font-size: 14px;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.que-icon {
    background-color: #003366;
    color: #ffffff;
}

.ans-icon {
    background-color: #EA7500;
    color: #003366;
}

.text-que {
    color: #0000C6;
    font-weight: bold;
}

.table td {
    vertical-align: top;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    line-height: 1.7;
  }

.table {
    border-top: 1px solid #dee2e6;
}

/*** SOP Section ***/
.sop-item {
    background-color: #FFF3EE;
    text-align: center;
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
    padding: 30px 20px;
    transition: border ease-in-out 0.3s;
    height: 100%;
  }
  
  .sop-item .icon {
    margin: 0 auto;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: 0.3s;
  }
   
  .sop-item h3 {
    font-weight: 700;
    margin: 10px 0 15px 0;
    font-size: 26px;
    transition: 0.3s;
  }
  
  .sop-item p {
    line-height: 24px;
    font-size: 15px;
    margin-bottom: 0;
  }
  
  .sop-item:hover {
    border-color: var(--photomate);
  }
  
  .sop-item:hover h3 {
    color: var(--photomate);
  }  

/*** SOP number list ***/
.num-liste {
    position: relative;
    margin: 1em 0px 0px;
    list-style: outside none none;
    counter-reset: big-numba;
    padding-left: 10px;
}

.num-liste-item {
    position: relative;
    margin: 2em 0px 0px 2em;
    list-style: outside none none;
}

.num-liste-item::before {
    content: counter(big-numba, decimal);
    counter-increment: big-numba;
    position: absolute;
    top: -2px;
    font-size: 19px;
    left: -1.9em;
    box-sizing: border-box;
    width: 1.5em;
    height: 1.5em;
    line-height: 1.5;
    color: #FFF;
    background: #0C2675 none repeat scroll 0% 0%;
    font-weight: 600;
    text-align: center;
    border-radius: 50%;
}

.btn-orange {
    color: #000000;
    background-color: #FF7D00;
    border-color: #FF7D00;
    padding: 8px 30px !important;
}
  
.btn-orange:hover {
    color: #000000;
    background-color: #e0a800;
    border-color: #d39e00;
}
  
.btn-orange:focus, .btn-orange.focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5);
}
  
.btn-orange.disabled, .btn-orange:disabled {
    color: #000000;
    background-color: #FF7D00;
    border-color: #FF7D00;
}
  
.btn-orange:not(:disabled):not(.disabled):active, .btn-orange:not(:disabled):not(.disabled).active,
.show > .btn-orange.dropdown-toggle {
    color: #FFFFFF;
    background-color: #d39e00;
    border-color: #c69500;
}
  
.btn-orange:not(:disabled):not(.disabled):active:focus, .btn-orange:not(:disabled):not(.disabled).active:focus,
.show > .btn-orange.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5);
}
/*** Service helpbox ***/
.help-box {
    background-color: var(--photomate);
    color: #FFFFFF;
    margin-top: 30px;
    padding: 30px 15px;
    border-radius: 10px;
  }
  
.help-box .help-icon {
    font-size: 48px;
  }
  
.help-box h4,
.help-box a {
    color: #FFFFFF;
  }

/*** Business Area ***/
.callout {
    border: 1px solid #dee2e6;
    border-left: 4px solid;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background-color: #fff;
    border-radius: 0.25rem;
}
  
.callout-danger {
    border-left-color: #dc3545;
}
  
.callout-primary {
    border-left-color: #0d6efd;
}
  
.callout-success {
    border-left-color: #198754;
}

.callout-orange {
    border-left-color: #fd7e14;
}

/*** Index ***/
.index-item {
    border: 1px solid #E0E0E0;
    transition: .5s;
}

.index-item:hover {
    border: 1px solid var(--photomate);
}

/*** Float Price ***/
.price-float {
    position: absolute;
    top: 15px;
    right: 25px;
    width: 160px;
    z-index: 1000;
}

@media (min-width: 992px) {
    .price-float {
        width: 200px;
    }
}

/*** Jump ***/
.jump-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .1);
    border: 1px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s, border 0.3s;
}

.jump-item:hover {
    transform: translateY(-10px);
    box-shadow: none;
    border: 1px solid #DEE2E6;
}

/*** Footer ***/
.footer {
    padding-top: 2rem;
    padding-bottom: 3rem;
    font-size: 15px;
    letter-spacing: 0.1px;
    line-height: 1.8;
}

.footer a {
    color: var(--light);
}

.footer a:hover {
    color: var(--photomate);
}

@media (max-width: 768px) {
    .footer {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
        font-size: 12px;
        line-height: 1.6;
    }
}

/*** Table-RWD ***/
tr.tr-only-hide {
  color: #D20B2A;
}

@media (max-width: 768px) {
  .table-rwd {
    width: 100%;
    border: 0;
  }

  .table-rwd td.text-center {
    text-align: left !important;
  }

  tr.tr-only-hide {
    display: none !important;
  }

  .table-rwd thead {
    display: none; /* 隱藏表頭 */
  }

  .table-rwd tr:not(.table-subheader) {
    display: block;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin: 10px 0;
    background-color: #fff;
  }

  .table-rwd td {
    position: relative;      /* 讓 :before 絕對定位 */
    display: block;
    width: 100%;
    text-align: left;
    font-size: 15px;
    padding: 10px 10px 10px 6.5em;  /* 左邊留空間給 :before */
    box-sizing: border-box;
  }

  .table-rwd td:before {
    content: attr(data-th) "：";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 6em;
    font-weight: bold;
    color: #444;
    white-space: nowrap;
  }

  /* 確保多行段落不會多出左邊距 */
  .table-rwd td > * {
    margin-left: 0;
  }

  .table-rwd.table-bordered,
  .table-rwd.table-bordered td {
    border: none;
  }

.table-subheader th {
    border-radius: 6px;
    border-bottom: 0px solid transparent;
  }
}