:root {
    --primary: #90C31F;
    --primary-dark: #7ba519;
    --primary-light: #a5d943;
    --secondary: #231815;
    --secondary-light: #3c302e;
    --light: #FFFFFF;
    --light-gray: #f4f4f4;
    --gray: #959da5;
    --dark-gray: #343a40;
}

body {
    font-family: 'Noto Sans TC', 'Poppins', sans-serif;
    color: var(--secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 動畫效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-fadeIn {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

.animate-slideInLeft {
    animation: slideInLeft 1s ease forwards;
    opacity: 0;
}

.animate-slideInRight {
    animation: slideInRight 1s ease forwards;
    opacity: 0;
}

.animate-pulse {
    animation: pulse 2s infinite ease-in-out;
}

.animate-float {
    animation: float 3s infinite ease-in-out;
}

.animate-rotate {
    animation: rotate 8s infinite linear;
}

/* Utility Classes */
.bg-primary-custom {
    background-color: var(--primary);
}

.bg-secondary-custom {
    background-color: var(--secondary);
}

.text-primary-custom {
    color: var(--primary);
}

.text-secondary-custom {
    color: var(--secondary);
}

.btn-primary-custom {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 500;
    padding: 10px 25px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(144, 195, 31, 0.3);
}

.btn-outline-primary-custom {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 500;
    padding: 10px 25px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-outline-primary-custom:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(144, 195, 31, 0.3);
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Header */
.top-bar {
    background-color: var(--secondary);
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.top-bar i {
    color: var(--primary);
    margin-right: 8px;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.top-bar a:hover {
    color: var(--primary);
}

.navbar {
    background-color: white;
    padding: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 50px;
    margin-right: 10px;
}

.navbar-brand h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

.navbar-brand span {
    color: var(--primary);
}

.nav-link {
    color: var(--secondary) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.nav-link:hover:after, .nav-link.active:after {
    width: 70%;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 120px 0;
    background-color: #f9f9f9;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    background: url('/img/bg03.jpg') no-repeat   50% -2%/167% 191%;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary);
}

.hero-title span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-title span:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 10px;
    background-color: rgba(144, 195, 31, 0.2);
    bottom: 5px;
    left: 0;
    z-index: -3;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-bottom: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.hero-buttons .btn {
    margin-right: 15px;
    margin-bottom: 15px;
}

/* About Section */
.about-section {
    position: relative;
    overflow: hidden;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-image:before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border: 5px solid var(--primary);
    bottom: -30px;
    left: -30px;
    z-index: -1;
    border-radius: 10px;
}

.about-image:after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border: 5px solid var(--primary);
    top: -30px;
    right: -30px;
    z-index: -1;
    border-radius: 10px;
}

.about-content {
    padding: 30px 0 0 20px;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary);
    position: relative;
}

.about-content h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    bottom: -10px;
    left: 0;
}

.about-content p {
    margin-top: 20px;
    color: var(--gray);
    margin-bottom: 25px;
}

/* Why Choose Us */
.why-choose-section {
    background-color: #f9f9f9;
    position: relative;
}

.why-choose-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M29 58.58l7.38-7.39A30.95 30.95 0 0 1 29 37.84a30.95 30.95 0 0 1-7.38 13.36l7.37 7.38zm1.4 1.41l.01.01h-2.84l-7.37-7.38A30.95 30.95 0 0 1 6.84 60H0v-1.02a28.9 28.9 0 0 0 18.79-7.78L0 32.41v-4.84L18.78 8.79A28.9 28.9 0 0 0 0 1.02V0h6.84a30.95 30.95 0 0 1 13.35 7.38L27.57 0h2.84l7.39 7.38A30.95 30.95 0 0 1 51.16 0H60v27.58-.01V60h-8.84a30.95 30.95 0 0 1-13.37-7.4L30.4 60zM29 1.41l-7.4 7.38A30.95 30.95 0 0 1 29 22.16 30.95 30.95 0 0 1 36.38 8.8L29 1.4zM58 1A28.9 28.9 0 0 0 39.2 8.8L58 27.58V1.02zm-20.2 9.2A28.9 28.9 0 0 0 30.02 29h26.56L37.8 10.21zM30.02 31a28.9 28.9 0 0 0 7.77 18.79l18.79-18.79H30.02zm9.18 20.2A28.9 28.9 0 0 0 58 59V32.4L39.2 51.19zm-19-1.4a28.9 28.9 0 0 0 7.78-18.8H1.41l18.8 18.8zm7.78-20.8A28.9 28.9 0 0 0 20.2 10.2L1.41 29h26.57z' fill='%2390C31F' fill-opacity='0.05' fill-rule='nonzero'/%3E%3C/svg%3E") repeat;
    z-index: 0;
}

.feature-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    background-color: rgba(144, 195, 31, 0.1);
    border-radius: 50%;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--primary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card:hover .feature-icon {
    background-color: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary);
}

.feature-text {
    color: var(--gray);
}

/* Products Section */
.products-section {
    position: relative;
    background-color: white;
}

.product-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
}

.product-img-container img {
    width: 100%;
    height: auto;
    transition: all 0.5s ease;
}
.product-content{
    padding:0 0 0 20px
}

.product-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary);
    position: relative;
}

.product-content h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
    bottom: -10px;
    left: 0;
}

.product-content p {
    color: var(--gray);
    margin-bottom: 25px;
}

/* Markets Section */
.markets-section {
    background-color: var(--secondary);
    position: relative;
    overflow: hidden;
    color: white;
}

.markets-section:before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: rgba(144, 195, 31, 0.1);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    z-index: 0;
}

.markets-section:after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background-color: rgba(144, 195, 31, 0.1);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    z-index: 0;
}

.markets-section .section-title h2 {
    color: white;
}

.markets-section .section-title p {
    color: rgba(255, 255, 255, 0.7);
}

.market-card {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 10px;
    border-left: 3px solid var(--primary);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    height: 100%;
}

.market-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.market-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.market-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.market-text {
    color: rgba(255, 255, 255, 0.7);
}

/* Services Section */
.services-section {
    position: relative;
    background-color: white;
}

.service-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--primary);
}

.service-card:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary), transparent);
    top: 0;
    left: 0;
    transition: all 0.3s ease;
}

.service-card:hover:before {
    height: 6px;
}

.service-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    background-color: rgba(144, 195, 31, 0.1);
    border-radius: 50%;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: white;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary);
}

.service-text {
    color: var(--gray);
}

/* Call to Action */
.cta-section {
    background-color: var(--primary);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section:before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -200px;
    right: -200px;
}

.cta-section:after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.cta-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    background-color: white;
    color: var(--primary);
    border: 2px solid white;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background-color: var(--secondary);
    padding: 80px 0 20px;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

.footer-about img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 20px;
}

.footer-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
}

.footer-title:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    bottom: -10px;
    left: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: start;
}

.footer-contact i {
    color: var(--primary);
    margin-right: 15px;
    font-size: 1.2rem;
    margin-top: 5px;
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 60px;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-bg {
        clip-path: none;
        width: 100%;
        opacity: 0.1;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .about-image:before, .about-image:after {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .service-card, .feature-card, .market-card {
        padding: 30px 20px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

/*top按鈕*/
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #90C31F;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #7ba519;
    transform: translateY(-5px);
    color: white;
}
/*關於我們*/
/* 關於頁面特定樣式 */
.about-hero {
    background: url('/img/bg07.jpg') no-repeat center center/cover;
    padding: 150px 0 100px;
    position: relative;
    color: white;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(35, 24, 21, 0.4);
}

.about-hero-content {
    position: relative;
    z-index: 1;
}

.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background-color: rgba(144, 195, 31, 0.3);
}


/* 改善時間線視覺效果 */
.timeline-item {
    position: relative;
    margin-bottom: 50px;
    clear: both;
    overflow: hidden;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: absolute;
    left: 50%;
    width: 50px;
    height: 50px;
    margin-left: -25px;
    border-radius: 50%;
    text-align: center;
    background-color: var(--primary);
    color: white;
    font-size: 1.5rem;
    line-height: 50px;
    z-index: 1;
}

.timeline-panel {
    position: relative;
    width: 46%;
    float: left;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: white;
    transition: all 0.3s ease;
}



.timeline-item:nth-child(even) .timeline-panel {
    float: right;
}

.timeline-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.timeline-year {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.timeline-body p {
    color: var(--gray);
}

.about-philosophy,
.about-vision {
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.about-philosophy::before,
.about-vision::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background-color: rgba(144, 195, 31, 0.05);
    border-radius: 50%;
}

.about-philosophy::after,
.about-vision::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background-color: rgba(35, 24, 21, 0.05);
    border-radius: 50%;
}

.about-card {
    padding: 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}


.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.about-card h3 {
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.about-card h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
    bottom: -10px;
    left: 0;
}

@media (max-width: 991.98px) {
    .timeline:before {
        left: 10px;
    }
    
    .timeline-badge {
        left: 10px;
        margin-left: 0;
    }
    
    .timeline-panel {
        width: calc(100% - 40px);
        float: right !important;
        margin-left: 40px;
    }
}

.about-image-card {
    height: 100%;
    transition: all 0.3s ease;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.about-image-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-image-card .about-image {
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}


.about-image img,
.about-image-card .about-image img {
    transition: transform 0.5s ease;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.about-image-card:hover .about-image img {
    transform: scale(1.05);
}

.about-image-text {
    padding: 20px;
}

.about-image-text h4 {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}

.about-image-text h4:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    bottom: 0;
    left: 0;
}

.about-image-text p {
    color: var(--gray);
    margin-bottom: 0;
}



/* 改善行動裝置上的觸控體驗 */
@media (hover: none) {
    .timeline-panel:hover,
    .about-card:hover,
    .about-image-card:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }
    
    .about-image-card:active {
        transform: translateY(-5px);
    }
}
/*我們的產品*/
 /* 產品頁面特定樣式 */
 
/* 產品頁面 - 產品卡片按鈕樣式 */
.btn-product-more {
    display: inline-block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
}
 .products-hero {
    background: url('/img/bg02.jpg') no-repeat center center/cover;
    padding: 150px 0 100px;
    position: relative;
    color: white;
}

.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(35, 24, 21, 0.3);
}

.products-hero-content {
    position: relative;
    z-index: 1;
}

.product-category-section {
    position: relative;
    overflow: hidden;
}

.product-category-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background-color: rgba(144, 195, 31, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.product-category-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
}

.product-category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.product-category-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.product-category-card:hover .product-category-img img {
    transform: scale(1.05);
}

.product-category-content {
    padding: 25px;
}

.product-category-content h4 {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.product-category-content h4::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
    bottom: 0;
    left: 0;
}

.product-category-content p {
    color: var(--gray);
    margin-bottom: 20px;
}

.service-block {
    padding: 80px 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.service-block::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background-color: rgba(144, 195, 31, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.service-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    line-height: 60px;
    text-align: center;
    background-color: rgba(144, 195, 31, 0.1);
    border-radius: 50%;
    margin-right: 20px;
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    background-color: var(--primary);
    color: white;
    transform: rotateY(180deg);
}
.service-content {
    flex: 1;
}

.service-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary);
}

.service-content p {
    color: var(--gray);
    margin-bottom: 0;
}

.contact-banner {
    background-color: var(--primary);
    position: relative;
    overflow: hidden;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.contact-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.contact-banner::after {
    content: '';
    position: absolute;
    bottom: -70px;
    left: -70px;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.contact-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.contact-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact-text {
    font-size: 1.1rem;
    margin-bottom: 25px;
    
}

.btn-contact {
    background-color: white;
    color: var(--primary);
    border: 2px solid white;
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-3px);
}
/* 品質保證頁面樣式 */

/* 品質保證頁面 Hero 部分 */
.quality-hero {
    background: url('/img/bg04.jpg') no-repeat center center/cover;
    padding: 150px 0 100px;
    position: relative;
    color: white;
}

.quality-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(35, 24, 21, 0.4);
}

.quality-hero-content {
    position: relative;
    z-index: 1;
}

/* 品質政策部分 */
.quality-policy-section {
    position: relative;
    overflow: hidden;
}

.quality-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.quality-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.quality-image:hover img {
    transform: scale(1.05);
}

.quality-icon-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1;
    animation: pulse 2s infinite ease-in-out;
}

.quality-content {
    padding: 20px 0;
}

.quality-text {
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.quality-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quality-feature-item {
    display: flex;
    align-items: flex-start;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.quality-feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.quality-feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background-color: rgba(144, 195, 31, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    margin-right: 20px;
    transition: all 0.3s ease;
}

.quality-feature-item:hover .quality-feature-icon {
    background-color: var(--primary);
    color: white;
}

.quality-feature-text {
    flex: 1;
}

.quality-feature-text h4 {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.quality-feature-text p {
    color: var(--gray);
    margin-bottom: 0;
}

/* 環測設備部分 */
.bg-light-gray {
    background-color: #f9f9f9;
}

.equipment-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.equipment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.equipment-img {
    height: 200px;
    overflow: hidden;
}

.equipment-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.equipment-card:hover .equipment-img img {
    transform: scale(1.05);
}

.equipment-content {
    padding: 20px;
}

.equipment-content h4 {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.equipment-content h4::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    bottom: 0;
    left: 0;
}

.equipment-content p {
    color: var(--gray);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* 檢測設備部分 */
.inspection-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.inspection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.inspection-img {
    height: 100%;
    overflow: hidden;
}

.inspection-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.inspection-card:hover .inspection-img img {
    transform: scale(1.05);
}

.inspection-content {
    padding: 20px;
}

.inspection-content h4 {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.inspection-content p {
    color: var(--gray);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.inspection-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.inspection-features li {
    margin-bottom: 5px;
    color: var(--gray);
    font-size: 0.9rem;
}

.inspection-features li i {
    color: var(--primary);
    margin-right: 8px;
}

/* 品質認證部分 */
.certificate-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.certificate-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    margin: 0 auto 20px;
    background-color: rgba(144, 195, 31, 0.1);
    border-radius: 50%;
    font-size: 2.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.certificate-card:hover .certificate-icon {
    background-color: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

.certificate-card h4 {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.certificate-card p {
    color: var(--gray);
    margin-bottom: 0;
}

 /* 動態效果的附加樣式 */
 .lens-glare {
    pointer-events: none;
    z-index: 10;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

.hero-title, .hero-subtitle, .hero-buttons {
    opacity: 0;
}

.feature-card, .service-card, .market-card {
    transition: all 0.3s ease-out !important;
}

.cta-section {
    position: relative;
    overflow: hidden;
}

.particle {
    position: absolute;
    z-index: 0;
    opacity: 0.5;
}

/* Hero section particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    
}

.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(144, 195, 31, 0.2) 2px, transparent 2px),
        radial-gradient(circle, rgba(144, 195, 31, 0.15) 1px, transparent 1px);
    background-size: 30px 30px, 15px 15px;
    background-position: 0 0, 15px 15px;
    animation: particleMove 20s linear infinite;
}
/*
.hero-particles::after {
    background-image: 
        radial-gradient(circle, rgba(35, 24, 21, 0.2) 1px, transparent 1px),
        radial-gradient(circle, rgba(35, 24, 21, 0.1) 1px, transparent 1px);
    background-size: 40px 40px, 20px 20px;
    animation-direction: reverse;
    animation-duration: 30s;
}*/

@keyframes particleMove {
    0% { background-position: 0 0, 15px 15px; }
    100% { background-position: 100px 100px, 115px 115px; }
}

/* Hero image and shapes */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
}

.hero-image {
    position: relative;
    z-index: 3;
    width: 85%;
    margin: 0 auto;
}

.hero-shape-1,
.hero-shape-2,
.hero-shape-3 {
    position: absolute;
    z-index: 1;
}

.hero-shape-1 {
    top: -20px;
    right: 0;
    width: 150px;
    height: 150px;
    background-color: rgba(144, 195, 31, 0.1);
    border-radius: 50%;
    animation: float 5s infinite ease-in-out;
}

.hero-shape-2 {
    bottom: 20px;
    left: 10%;
    width: 80px;
    height: 80px;
    background-color: rgba(35, 24, 21, 0.08);
    border-radius: 10px;
    transform: rotate(45deg);
    animation: float 6s infinite ease-in-out;
    animation-delay: 1s;
}

.hero-shape-3 {
    bottom: 50px;
    right: 15%;
    width: 100px;
    height: 100px;
    border: 2px dashed rgba(144, 195, 31, 0.3);
    border-radius: 50%;
}

/* Hover effects */
.feature-card:hover,
.service-card:hover,
.market-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
}

.btn-primary-custom:hover,
.btn-outline-primary-custom:hover,
.btn-cta:hover {
    transform: translateY(-3px) scale(1.05) !important;
}


/* 聯絡我們頁面樣式  */

/* Hero Section */
.contact-hero {
    background: url('/img/contact-bg.png') no-repeat center 30%/cover;
    padding: 150px 0 100px;
    position: relative;
    color: white;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(35, 24, 21, 0.4);
}

.contact-hero-content {
    position: relative;
    z-index: 1;
}

/* Contact Section */
.contact-section {
    position: relative;
    background-color: #f9f9f9;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background-color: rgba(144, 195, 31, 0.05);
    border-radius: 50%;
}

.contact-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background-color: rgba(35, 24, 21, 0.05);
    border-radius: 50%;
}

/* Contact Info */
.contact-info {
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    color: var(--secondary);
}

.contact-info h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
    bottom: -10px;
    left: 0;
}

.contact-info p {
    color: var(--gray);
    margin-bottom: 30px;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-details li {
    display: flex;
    margin-bottom: 25px;
}

.contact-details li:last-child {
    margin-bottom: 0;
}

.icon-box {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background-color: rgba(144, 195, 31, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.2rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.contact-details li:hover .icon-box {
    background-color: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

.contact-text h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--secondary);
}

.contact-text p {
    margin-bottom: 0;
}

.contact-text a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-text a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.contact-form-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-form-wrapper h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--secondary);
    position: relative;
}

.contact-form-wrapper h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    bottom: -10px;
    left: 0;
}

.contact-form-wrapper p {
    color: var(--gray);
    margin-bottom: 25px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 8px;
}

.contact-form .form-control {
    height: 50px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form textarea.form-control {
    height: auto;
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: var(--primary);
}

.contact-form .btn {
    margin-top: 10px;
    padding: 12px 30px;
}

/* Google Map */
.map-section {
    padding: 80px 0;
    background-color: white;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
}

/* Form validation */
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}