body{
    width: 100%;
    color: #404040;
}

/* banner */
.header-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.banner-image{
   position: relative;
}

.banner-image img {
    max-width: 100%;
    height: auto; 
}

.banner-text { 
  transform: translate(0, 0); /* 可調整是否置中 */
  color: #FC0800;  /* 根據背景選擇字色 */
  font-size: 7rem; /* 文字大小可調整 */
  font-weight: bold;
  font-style: italic;
  margin-right: 4rem;
  text-shadow:
    -2px -2px 0 #fff,
    2px -2px 0 #fff,
    -2px 2px 0 #fff,
    2px 2px 0 #fff; /* 白色外框 */
}

.banner-text-wrap {
  position: absolute;
  top: 10%;
  right: 2%; /* 或10%等等 */
  display: flex;
  align-items: center;
}

.banner-only-text-wrap{
    position: absolute;
    top: 10%;
    right: 9%; /* 或10%等等 */
    display: flex;
    align-items: center;
}

.icon-overlay {
    position: absolute;
    top: 22%; 
    left: 12%;
    transform: translate(-50%, -50%);
    width: 20%;
    height: 196px;  
}

/* 導覽列 */
.navbar{
    padding: 0;
}
.container-fluid{
    padding: 0;
}
/* .navbar-nav .nav-item {
    margin: 0 2rem;
} */

.nav-item a{
    color: #F6F5F5;
    font-size: 36px;
    font-weight: bold;
}

/* .navbar-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around; 
    width: 100%;
}

.nav-item {
    position: relative; 
    flex: 1;
    min-width: 90px; 
    text-align: center; 
} */

.navbar-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* 項目不平均寬度，置中對齊 */
  width: 100%;
  justify-content: flex-start;
}

.nav-item {
  flex: 0 1 auto;  /* 關鍵：寬度根據內容大小 */
  text-align: center;
  padding: 0.5rem 1rem;
  position: relative;
}

.nav-item:hover {
    background-color: #b02a37; 
    top: 0;
    bottom: 0;
}

.nav-item a:hover{
    color: #F6F5F5;
}

/* .nav-item::after {
    content: '';
    position: absolute;
    right: 0; 
    top: 50%;
    bottom: 0;
    transform: translateY(-50%);
    width: 2px;
    height: 100%;
    background-color: #F6F5F5;
} */

.nav-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 2px;
  height: 5rem; /* 固定高度，不用百分比 */
  background-color: #F6F5F5;
  z-index: 10;
  pointer-events: none;
}

.navbar-brand{
    color: yellow;
    font-size: 38px;
    font-weight: bold;
    text-align: center;
    flex: 1;
}

.navbar-brand:hover{
    color: yellow;
}

/* content */
.content{
    padding: 1% 5% 1% 5%;
}

/* .search-content{
    padding: 1% 10% 1% 10%;
} */

.search-content input {
    width: 15rem!important;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    font-size: 1.25rem; /* 可選，文字也一起變大 */
    border: 2px solid #444444;
}

label{
    width: 10%;
    display: inline-block;
}

.search-label {
  padding: 0 2%;
  font-size: 1.5rem; /* 調整文字大小，可依需求加粗 */
  font-weight: 500;
  white-space: nowrap; /* 防止換行 */
}

.buy-title {
    display: flex;
    align-items: center;
    padding: 0 2%;
    width: 100%;
    height: 3.5rem;
    background-color: rgba(220, 53, 69, 0.25); 
}

.buy-title h2 {
    margin: 0; 
}

.card-content{
    padding: 0 8%;
}

.card-body p{
    font-size: 24px;
}

.card {
    border: 0;
}

.card-img,
.card-img img {
    border-radius: 0 !important; 
}

.card-content .card-img img{
    height: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
}

.text-section a {
    text-decoration: none;
}

.text-section span{
    font-size: 24px;
}

.home-cover {
  height: 380px;
  overflow: hidden;
}

.home-cover img {
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}


.sent-title{
    display: flex;
    align-items: center;
    padding: 0 2%;
    width: 100%;
    height: 3.5rem;
    background-color: rgba(255, 193, 7, 0.25);
}

.sent-title h2 {
    margin: 0; 
}

.home-sent-title{
    display: flex;
    align-items: center;
    padding: 0 2%;
    width: 100%;
    height: 3.5rem;
    background-color: #d4edda;
}

.home-sent-title h2 {
    margin: 0; 
}

/* footer */
footer{
    background-color: #b02a37;
    display: flex;
}
.footer-icon{
    display: flex;
    justify-content: flex-end;
}

.footer-icon img{
    width: 100%;
    height: 196px;
}

.footer-qrcode img{
    width: 28%;
    height: auto;
    max-width: 80%;
    display: block;
}

/* .footer-text{
    flex-direction: column
} */

.footer-text h4{
    font-size: 32px;
}

.footer-text h4, .footer-text h5{
    color: #F6F5F5;
    line-height: 1.8;
}

/* buying */
.card-horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.card-horizontal a {
    width: 35% ;
}

.text-section{
    padding-left: 4%;
}



hr{
    /* width: 80%; */
    margin: 0 6%;
}

.text-padding{
    padding-top: 3%;
}

.section-padding{
    padding-bottom: 6%;
}

/* product */
#thumbnailCarousel{
    margin: 0 10%;
}
.items{
    margin:0px auto;
    margin-top: 3%;
}
.slick-slide{
  margin:10px;
}
.slick-slide img{
  width:100%;
  border: 0px solid #fff;
}

.main-image {
    width: 100%;
    /* height: 32rem; */
    /* max-height: 500px; */
    object-fit: contain;
}
.thumbnail {
    width: auto;
    height: 8rem; 
    cursor: pointer;
    border: 2px solid transparent;
    display: inline-block;
    overflow: hidden;
}
.thumbnail img {
    width: 80%;
    object-fit: cover; 
    object-position: center; 
}

.thumbnail.active {
    border: 2px solid #b02a37;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #343a40; 
}
.carousel-control-prev,
.carousel-control-next {
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%);
}
.carousel-control-prev {
    left: -40px; 
}
.carousel-control-next {
    right: -40px; 
}



.MultiCarousel { 
    float: left; 
    overflow: hidden; 
    padding: 15px; 
    width: 100%; 
    position:relative; 
}

.MultiCarousel .MultiCarousel-inner { 
    transition: 1s ease all; 
    float: left; 
}
.MultiCarousel .MultiCarousel-inner .item { 
    float: left;
}
.MultiCarousel .MultiCarousel-inner .item > div { 
    text-align: center; 
    padding:10px; 
    margin:10px; 
    color:#666;
}
.MultiCarousel .leftLst, .MultiCarousel .rightLst {
    position:absolute; 
    border-radius:50%;
    top:calc(50% - 20px); 
}
.MultiCarousel .leftLst { 
    left:0; 
}
.MultiCarousel .rightLst { 
    right:0; 
}
.MultiCarousel .leftLst.over, .MultiCarousel .rightLst.over {
    pointer-events: none; 
    background:#ccc; 
}

#indexDisplay{
    font-size: 1.5rem;
}

.product-text{
    padding-top: 3%;
}

.product-text p{
    font-size: 24px;
    line-height: 1.2;
}

.sent-product-text{
    padding-top: 7%;
}

.sent-product-text p{
    font-size: 1.5rem;
    line-height: 1.8;
}

.box {
    width: 100%;
    height: fit-content;
    /* border-radius: 20px; */
    text-align: center;
    border: 2px solid #BFBFBF;
}

.box1 {
    margin-top: 10px;
}

/* .content {
    margin: 15px 2px;
} */

.level{
    font-size: 1.5em;
}

.image img {
    height: auto;
    width: 80%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5px;
}

.name {
    font-size: 1.5em;
    font-weight: bold;
    letter-spacing: 1px;
}

.phone {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: -2px;
}

.company {
    font-size: 1em;
    margin: 10px 30px 20px;
}


/* about */
.about hr{
    width: 100%;
    margin: 0;
    padding-bottom: 2%;
}

.about p{
    font-size: 1.25rem;
}

.font-padding{
    padding-left: 145px;
}

.buy-title span{
    font-size: 1.2rem;
}

.buy-title a{
    text-decoration: none;
}

.buy-title h2{
    font-size: 1.5rem;
}

.sent-title h2{
    font-size: 1.5rem;
}

.home-sent-title h2{
    font-size: 1.5rem;
}

.sent-title span{
    font-size: 1.2rem;
}

.sent-title a{
    text-decoration: none;
}

.home-sent-title a{
    text-decoration: none;
}

.footer-qrcode {
  display: flex;
  align-items: center; /* 垂直置中 */
}

.area-interval {
    margin-right: 8%;
}

@media only screen and (max-width: 1600px) {

    

    .home-cover {
        height: 300px;
        overflow: hidden;
    }

    .home-cover img{
        height: 100%;
        aspect-ratio: 3 / 2;
        object-fit: cover;
        object-position: center;
    }

    .footer-icon img{
        width: 90%;
        padding-left: 8%;
    }

    .footer-text h4 {
        font-size: 28px;
    }

    .footer-text h5 {
        font-size: 18px;
    }

    .footer-qrcode img {
        width: 32%;
        height: auto;
        max-width: 80%;
        display: block;
    }
}

@media only screen and (max-width: 1400px) {
    .area-interval {
        margin-right: 5%;
    }
}

@media only screen and (max-width: 1190px) {
    .header-row a img{
        padding:10%  0 0 20%;
        width: 50%;
    }
    .navbar-brand{
        color: yellow;
        font-size: 2rem;
        font-weight: bold;
        text-align: center;
        flex: 1;
    }

    .banner-text {
        top: 10%;    /* 控制文字垂直位置 */
        left: 50%;   /* 控制文字水平位置 */
        transform: translate(0, 0); /* 可調整是否置中 */
        color: #FC0800;  /* 根據背景選擇字色 */
        font-size: 5rem; /* 文字大小可調整 */
        font-weight: bold;
        text-shadow: 1px 1px 5px rgba(0,0,0,0.6); /* 增加可讀性 */
    }
  }

  @media only screen and (max-width: 1150px) {
    .header-row a img{
        padding:10%  0 0 20%;
        width: 50%;
    }
    .navbar-brand{
        color: yellow;
        font-size: 2rem;
        font-weight: bold;
        text-align: center;
        flex: 1;
    }

    .banner-text {
        top: 10%;    /* 控制文字垂直位置 */
        left: 50%;   /* 控制文字水平位置 */
        transform: translate(0, 0); /* 可調整是否置中 */
        color: #FC0800;  /* 根據背景選擇字色 */
        font-size: 4rem; /* 文字大小可調整 */
        font-weight: bold;
        text-shadow: 1px 1px 5px rgba(0,0,0,0.6); /* 增加可讀性 */
    }

    .area-interval {
        margin-right: 8%;
    }
  }

  @media only screen and (max-width: 790px) {
    .header-row a img{
        padding:10%  0 0 20%;
        width: 50%;
    }
    .navbar-brand{
        color: yellow;
        font-size: 2rem;
        font-weight: bold;
        text-align: center;
        flex: 1;
    }

    .banner-text {
        top: 10%;    /* 控制文字垂直位置 */
        left: 50%;   /* 控制文字水平位置 */
        transform: translate(0, 0); /* 可調整是否置中 */
        color: #FC0800;  /* 根據背景選擇字色 */
        font-size: 3rem; /* 文字大小可調整 */
        font-weight: bold;
        text-shadow: 1px 1px 5px rgba(0,0,0,0.6); /* 增加可讀性 */
    }

    .footer-qrcode img{
        width: 40%;
    }
  }

@media only screen and (max-width: 520px) {

    .banner-text-wrap {
        top: 5%;               /* 向上靠一點 */
        right: 5%;             /* 靠右 */
        left: auto;
        transform: none;
        display: flex;         /* 一定要加上！ */
        flex-direction: row;   /* 讓文字在左、圖片在右 */
        align-items: center;   /* 垂直置中對齊 */
        justify-content: flex-end; /* 往右靠攏 */
    }

    .banner-text {
        font-size: 1.8rem !important;
        font-style: italic;
        text-shadow:
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff !important;
        white-space: nowrap;       /* 不換行 */
        margin-right: 0.5rem;
        word-break: break-word;
        max-width: 70vw;           /* 不要太寬，避免擠出去 */
    }

    .banner-side-img {
        width: 3rem;     /* 手機版圖片縮小一點 */
        height: auto;
        margin-left: 0;
    }

    .icon-overlay {
        width: 55%!important;
    }

    .navbar-brand{
        color: yellow;
        font-size: 1.18rem;
        font-weight: bold;
        text-align: center;
        flex: 1;
    }

    .navbar-nav {
        display: flex;
        justify-content: flex-start; /* 靠左 */
        width: 100%;
        flex-wrap: nowrap; /* 不換行 */
        /* overflow-x: auto; */
        -webkit-overflow-scrolling: touch; /* 手機平滑滾動 */
    }

    .nav-item {
        width: auto; /* 不要強制 100% */
        flex: 0 0 auto; /* 不要伸縮 */
        display: flex;
        justify-content: center;
        padding: 0 0.5rem; /* 讓項目間有點距離 */
        position: relative; /* 讓 ::after 可以正常定位 */
    }

    .nav-item a {
        font-size: 16px; /* 字體縮小 */
        white-space: nowrap; /* 不換行 */
    }

    .nav-item:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        width: 2px;
        height: 2.3rem; /* 固定高度，不用百分比 */
        background-color: #F6F5F5;
        z-index: 10;
        pointer-events: none;
    }

    .nav-item:last-child::after {
        content: none; /* 最後一個不要顯示分隔線 */
    }

    .navbar-title {
        white-space: normal;  /* 允許換行 */
        word-break: break-word;  /* 長字自動斷行 */
        text-align: center;
        display: block; /* 讓它佔據整個行寬 */
        padding: 0 10px; /* 加點左右空隙避免貼邊 */
    }

    /* .search-content{
        margin-top: 4%!important;
        padding: 1% 10% 3% 10%;
    } */

    .search-content input {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .MultiCarousel {
        max-width: 100%;
        overflow: hidden;
    }

    .MultiCarousel .item{
        width: 100% !important;
        max-width: 300px;
        display: flex;
        align-items: center; 
        justify-content: center; 
    }

    .MultiCarousel-inner {
        display: flex;
        flex-wrap: nowrap;
    }

    .MultiCarousel .item img{
        width: 100%;
        height: auto;
    }

    /* .MultiCarousel {
    width: 100%;
    overflow: hidden;
    }

    .MultiCarousel-inner {
    display: flex;
    flex-wrap: nowrap;
    }

    .item {
    flex: 0 0 auto;
    width: 40%!important;
    display: flex;
    align-items: center; 
    justify-content: center; 
    }

    .pad15 {
    padding: 15px;
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    } */

    .area-interval input{
        width: 80%!important;
    }

    .price-interval{
        margin-top: 3%;
        margin-bottom: 3.5%;
    }

    .price-interval input{
        width: 42.5%!important;
    }

    .card-content .card-img img{
        height: 19rem;
    }

    .card-horizontal {
        flex-direction: column !important; /* 圖上文字下 */
    }

    .card-horizontal a{
        width: 90%!important;
    }

    .card-horizontal img {
        width: 100%;   /* 圖片佔滿卡片寬度 */
        height: auto;  /* 保持比例 */
    }

    .buying-content .card-body{
        width: 100%;            /* 確保不被縮窄 */
        padding-left: 1rem;     /* 左側留點空間 */
        padding-right: 1rem;    /* 可選：右側也留點 */
        text-align: left; 
    }

    hr {
        border: none;
        border-bottom: 1px solid #999;
        margin: 3rem 0;
    }

    .home-cover {
    height: 300px;
    overflow: hidden;
    }

    .home-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    }

    .about p{
        font-size: 1.1rem;
    }

    .footer-icon{
        display: flex;
        justify-content: center!important;
    }

    .footer-icon img{
        width: 90%;
        padding-left: 8%;
    }

    .footer-text{
        padding: 0 2%;
    }

    .footer-side-img{
        width: 80%;
    }

    .footer-qrcode{
        display: flex;
        justify-content: center!important;
    }

    .footer-qrcode img{
        margin-top: 5%;
        width: 40%;
    }

    .footer-text h5{
        font-size: 1rem;
    }

    .main-image{
        max-height: 300px;
    }

  }