body {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  padding-top: 76px; /* 為固定導航欄留出空間 */
  background-image: linear-gradient(
180deg, rgba(217, 212, 202, 1) 0%, rgba(217, 212, 202, 1) 100%);
}

:root {
    --primary-color: #d3bc92; /* 主色 - 溫暖的淺黃色 */
    --secondary-color: #8b0827; /* 輔色 - 沉穩的珊瑚紅/磚紅 */
    --accent-color: #e03960; /* 點綴色 -  */
    --text-color: #8b0827; /* 主要文字顏色 - 深灰色 */
    --text-color-light: #777777; /* 次要文字顏色 - 中灰色 */
    --light-bg: #f8f5f0; /* 淺色背景 - 非常淺的米黃灰 */
    --dark-bg: #2c3e50; /* 深色背景 - 深藍灰色 */
    --pure-white: #ffffff; /* 純白色 */
    --success-color: #7fb069; /* 成功色 - 柔和的綠色 */
}

/* 導航欄樣式 */
.navbar {
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background-color: rgba(224, 244, 250, 0.589);
    backdrop-filter: blur(5px);
}

.navbar-brand img {
    height: 80px;
}

.nav-link {
    font-size: 1.4rem;
    color: #5a5a5a !important;
    font-weight: bold;
    transition: all 0.2s ease;
    position: relative;
    margin: 0 5px;
}

.nav-link:hover {
    color: #333 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color) !important;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link i {
    vertical-align: middle; /* 使圖示與文本垂直對齊 */
    margin-right: 5px; /* 添加一些右邊距 */
}

.dropdown:hover .dropdown-menu {
    display: block; /* 懸停顯示下拉菜單 */
}

.dropdown-toggle::after {
    color:  var(--secondary-color)!important;
}

.dropdown-item {
    font-size: 1.4rem;
}

.carousel{
    padding-top: 1.7rem;
}

/* 輪播圖樣式 */
.carousel-item {
    height: 700px;
    background-size: cover;
    background-position: center;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
}

/* 公司簡介樣式 */
.about-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.about-img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 產品區域樣式 */
.products-section {
    padding: 80px 0;
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto 30px;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    max-width: 700px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-img {
    height: 250px;
    object-fit: cover;
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-color);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

/* 頁尾樣式 */
footer {
    background-color: white;
    padding: 40px 0 20px;
}

.footer-subtitle {
    font-weight: bolder;
    padding-left: 2rem;
}

.footer-title{
    font-weight: bolder;
}

.footer-section {
    padding: 0 20px;
}

.footer-mid {
    border-right:  1px solid rgba(0, 0, 0, 0.1);
    height: 100%;
}

.collapsed-content {
    transition: all 0.3s ease;
}

.toggle-btn {
    transition: all 0.3s ease;
    font-weight: bolder;
}

.toggle-btn.collapsed .bi-chevron-down {
    transform: rotate(0deg);
}

.toggle-btn .bi-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.remark {
    font-size: 0.7rem!important;
}


/* 产品頁面 */
/* 产品图片区域 */
.product-hero {
    background-color: var(--light-bg);
    padding: 3rem 0 0 0;
    border-radius: 10px;
    margin-bottom: 2rem;
}

/* 产品名称样式 */
.product-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* 目录导航 */
.section-nav {
    position: sticky;
    top: 90px;
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.section-nav .nav-link {
    color: var(--secondary-color);
    border-left: 3px solid transparent;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.section-nav .nav-link:hover,
.section-nav .nav-link.active {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
}



/* 内容区块样式 */
.content-section {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    scroll-margin-top: 90px;
}

.section-title {
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    box-shadow: 0 10px 10px 0 rgba(187,160,100,.2);
}

/* 视频容器 */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 优势卡片样式 */
.advantage-card {
    transition: transform 0.3s;
    height: 100%;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-card .card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.list-hash {
    font-size: 0.8rem!important;
    list-style-type: "#"; /* 去掉預設的符號 */
    padding-left: 0;
}

.list-hash li {
    padding-left: 20px;
}

.list-asterisk {
    font-size: 0.8rem!important;
    list-style-type: "*"; /* 去掉預設的符號 */
    padding-left: 0;
}

.list-asterisk li {
    padding-left: 20px;
}
  
.faq-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.color-green{
    color: #4ee859;
}

.color-icon{
    color: #ffe201;
}


.section-title {
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title:first-of-type {
    margin-top: 0;
}

.section-title:hover {
    color: var(--primary-color);
}

.section-title::after {
    content: '\F282';
    font-family: 'bootstrap-icons';
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.section-title.collapsed::after {
    transform: rotate(-90deg);
}

.subsection {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.subsection-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.subsection-content {
    color: #333;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid #e9ecef;
}

.contact-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
}


/* 聯絡我們 */

.contact-section {
    padding: 4rem 0;
}

.contact-card {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: none;
    overflow: hidden;
}

.contact-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.contact-form {
    background-color: #eee;
    padding: 2rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(58, 110, 165, 0.25);
}
        
.btn-danger{
    background-color: var(--secondary-color)!important;
}   

.btn-danger:hover{
    background-color: var(--accent-color)!important;
}

        .modal-content {
            border-radius: 15px;
            overflow: hidden;
            border: none;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
        }
        .modal-header {
            background: #efea00;
            color: white;
            border-bottom: none;
            padding: 15px 20px;
        }
        .modal-title {
            font-weight: 600;
        }
        .btn-close {
            background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
            opacity: 0.8;
        }
        .btn-close:hover {
            opacity: 1;
        }
        .modal-body {
            padding: 0;
            text-align: center;
        }
        .modal-body img {
            width: 100%;
            height: auto;
            display: block;
        }
/* 響應式調整 */
@media (max-width: 992px) {
    .carousel-item {
        height: 400px;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 10px 0;
    }
    
    .nav-item {
        margin: 5px 0;
    }
    
    .footer-menu li {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }
    
    .about-img {
        margin-bottom: 30px;
    }
    
    .footer-divider {
        border-right: none;
        border-bottom: 1px solid #a1d6ff;
        margin: 15px 0;
        padding-bottom: 15px;
    }

    .footer-section:last-child .footer-divider {
        border-bottom: none;
    }
    
    .section-nav {
        position: static;
        margin-bottom: 2rem;
    }

    .faq-container {
        padding: 1.5rem;
    }
    
    .subsection {
        margin-left: 0.5rem;
    }

    .icon-wrapper {
        width: 70px;
        height: 70px;
        font-size: 1.7rem;
    }
}
