/* 針對錨點定位的修復 */
#about, #products, #contact {
    scroll-margin-top: 100px;
}

/* 全局樣式 */
body {
    font-family: 'Noto Sans TC', 'Microsoft JhengHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

/* 導航欄樣式 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    padding: 0;
}

.logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
    font-size: 1.1rem;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #4CAF50;
    transition: width 0.3s ease;
}

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

.navbar-nav .nav-link:hover {
    color: #4CAF50;
}

/* 主視覺橫幅 */
.hero-banner {
    background-image: url('../images/banner.jpg');
    background-size: cover;
    background-position: bottom;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 80px;
}

.hero-banner::before {
    display: none;
}

.banner-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 0 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: 10%;
    text-align: right;
}

.banner-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.4;
}

/* 關於我們區塊 */
.about-section {
    padding: 60px 0;
    background-image: url('../images/bg_01.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    max-height: 700px;
    display: flex;
    align-items: center;
}

.about-section::before {
    display: none;
}

.about-section .row {
    min-height: 300px;
    align-items: center;
}

.about-section .section-title {
    text-align: left;
    margin-bottom: 30px;
    margin-left: 15px;
    color: #4caf50;
}

.about-section .section-title::after {
    left: 0;
    transform: none;
}

.about-content {
    padding: 20px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    background: transparent;
    border-radius: 15px;
}

.about-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 1.1rem;
    color: #333;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.9);
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-images {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    position: relative;
    z-index: 2;
    height: 100%;
}

.about-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    box-shadow: none;
    border-radius: 0;
    max-height: 300px;
}

.about-img:hover {
    transform: scale(1.02);
}

/* 產品展示區塊 */
.products-section {
    padding: 100px 0;
    background-image: url('../images/bg_02.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.products-section::before {
    display: none;
}

.products-section .container {
    position: relative;
    z-index: 2;
}

.product-category {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    height: auto;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-category:hover {
    transform: translateY(-10px);
}

.product-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
    border-radius: 8px;
    margin: 0 auto 15px;
    display: block;
}

.product-category:hover .product-img {
    transform: scale(1.05);
}

.product-category h3 {
    margin: 5px 0;
    font-weight: bold;
    font-size: 1.3rem;
    color: #333;
}

.category-description {
    margin: 8px 0;
    font-size: 0.9rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.product-category .btn {
    margin-top: 10px;
    margin-bottom: 5px;
}

/* 聯絡資訊區塊 */
.contact-section {
    padding: 100px 0 0 0;
    background-image: url('../images/bg_01.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.contact-info {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-info h3 {
    margin-bottom: 30px;
    font-weight: bold;
    color: #333;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-info i {
    margin-right: 15px;
    color: #4CAF50;
    font-size: 1.2rem;
}

.contact-info a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #388E3C;
}

.map-container {
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    width: 100vw;
    line-height: 0;
    margin-left: calc(-50vw + 50%);
    position: relative;
    left: 0;
}

.map-container iframe {
    width: 100%;
    height: 350px;
    display: block;
    margin-bottom: -7px;
}

/* 頁腳 */
.footer {
    background-color: #fff;
    color: #333;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #eee;
}

.social-links {
    margin-bottom: 25px;
}

.social-link {
    color: #4CAF50;
    font-size: 28px;
    margin: 0 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-link:hover {
    color: #388E3C;
    transform: translateY(-3px);
}

.copyright {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .hero-banner {
        height: 350px;
        margin-top: 60px;
    }

    .banner-content h1 {
        font-size: 2rem;
    }

    .about-images {
        grid-template-columns: 1fr;
    }

    .product-img {
        height: 140px;
    }

    .navbar {
        padding: 10px 0;
        background-color: rgba(255, 255, 255, 0.98);
    }

    .logo {
        height: 45px;
    }

    .section-title {
        font-size: 2rem;
    }

    .product-category {
        height: 250px;
    }

    .product-category h3 {
        font-size: 1.1rem;
        margin: 5px 0;
    }
}

/* 按鈕樣式 */
.btn-primary {
    background-color: #4CAF50;
    border-color: #4CAF50;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1.1rem;
}

.btn-primary:hover {
    background-color: #388E3C;
    border-color: #388E3C;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* 產品展示頁面樣式 */
.product-banner {
    height: 300px;
    background-image: url('../images/products_top.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.product-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.product-banner .banner-content {
    position: relative;
    z-index: 1;
}

.product-banner h1 {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.product-categories-nav {
    background-color: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.categories-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.category-link {
    font-size: 1.1rem;
    color: #333;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.category-link:hover {
    background-color: #e9ecef;
    color: #198754;
}

.category-link.active {
    background-color: #198754;
    color: white;
}

.products-list-section {
    padding: 60px 0;
}

.product-series-title {
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    color: #4caf50;
    border-bottom: 2px solid #198754;
    padding-bottom: 15px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.product-item {
    margin-bottom: 50px;
    padding: 30px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-detail-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    max-height: 250px;
}

.product-specs {
    display: flex;
    margin-top: 20px;
}

.feature-list, .spec-list {
    flex: 1;
}

.product-specs h4 {
    font-weight: bold;
    color: #198754;
    margin-bottom: 15px;
}

.product-specs ul {
    padding-left: 20px;
}

.product-specs li {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .categories-wrapper {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .category-link {
        font-size: 1rem;
        padding: 8px 15px;
    }
    
    .product-specs {
        flex-direction: column;
    }
    
    .feature-list {
        margin-bottom: 20px;
    }
    
    .product-item {
        padding: 20px;
    }
}

.products-section .section-title {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    color: #4caf50;
    position: relative;
    padding-bottom: 15px;
    font-size: 2.5rem;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #4CAF50;
}

.about-section .section-title {
    text-align: left;
    margin-bottom: 30px;
    margin-left: 15px;
}

.about-section .section-title::after {
    left: 0;
    transform: none;
}

.products-section .section-title::after {
    background-color: #ffffff;
} 