/* 基本重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft JhengHei", sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header 樣式更新 */
header {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo .site-name {
    font-size: 1.5rem;
    font-weight: 900;
    background-image: url('../images/textures/wood-texture.jpg');
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    position: relative;
    letter-spacing: 0.05em;
}

.logo .site-name::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    color: rgba(139, 69, 19, 0.2);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}

/* 導航選單 */
.main-nav {
    position: fixed;
    top: 0;
    right: -100%;  /* 初始位置在右側外面 */
    width: 400px;  /* 固定寬度 */
    height: 100vh;
    background: url('../images/textures/main-nav-bg.jpg?v=1790053918);
    background-position: center;
    background-size: cover;
    transition: right 0.5s ease;
    z-index: 999;
}

.main-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);  /* 降低遮罩透明度 */
    z-index: 0;
}

.main-nav.active {
    right: 0;  /* 顯示時滑入 */
}

.nav-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 80px 40px 40px;
    color: white;
    position: relative;  /* 確保內容在遮罩層上方 */
    z-index: 1;
}

/* 主選單樣式 */
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease;
    transition-delay: calc(0.1s * var(--i));
}

.main-nav.active .nav-menu li {
    opacity: 1;
    transform: translateX(0);
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 500;
    display: inline-block;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #c78354;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #c78354;
}

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

/* 公司資訊樣式 */
.nav-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    transition-delay: 0.4s;
}

.main-nav.active .nav-info {
    opacity: 1;
    transform: translateY(0);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-item i {
    color: #635854;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.info-item p {
    margin: 0;
    line-height: 1.5;
}

/* 導航選單中的聯絡資訊連結樣式 */
.nav-info a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-info a:hover {
    color: #c78354;
}

/* 漢堡按鈕樣式 */
.hamburger {
    width: 30px;
    height: 25px;
    position: relative;
    cursor: pointer;
    z-index: 1000;
    padding: 0;
    background: transparent;
    border: none;
    outline: none;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 2px;  /* 降低高度讓線條更細緻 */
    background: #c78354;  /* 改用木紋色 */
    position: absolute;
    left: 0;
    transition: all 0.4s ease;  /* 增加動畫時間 */
    border-radius: 2px;  /* 添加圓角 */
}

.hamburger span:nth-child(1) {
    top: 0;
    transform-origin: left center;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
    transform-origin: center;
}

.hamburger span:nth-child(3) {
    bottom: 0;
    transform-origin: left center;
}

/* 漢堡按鈕動畫效果 */
.hamburger.active span {
    background: #fff;  /* 選單開啟時改為白色 */
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: -2px;
    left: 4px;
}

.hamburger.active span:nth-child(2) {
    transform: scaleX(0);
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: -2px;
    left: 4px;
}

/* 漢堡按鈕懸停效果 */
.hamburger:hover span {
    background: #6B3410;  /* 懸停時顏色變深 */
}

.hamburger.active:hover span {
    background: #f0f0f0;  /* 選單開啟時的懸停顏色 */
}

/* 輪播區域樣式 */
.banner {
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: url('../images/textures/slider-bg.jpg?v=1790053918);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 添加圖片容器 */
.slide-image-container {
    width: 90%;
    height: 90%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* 添加陰影和模糊效果 */
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    /* 添加輕微模糊的邊緣 */
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* 添加漸變邊緣效果 */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        transparent 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
    pointer-events: none;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

.slide-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* 輪播控制按鈕 */
.slider-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    border: none;
}

.slider-dot.active {
    background: white;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
}

.slider-prev {
    left: 1rem;
}

.slider-next {
    right: 1rem;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .main-nav {
        width: 100%;  /* 在手機上全寬 */
    }
    
    .nav-content {
        padding: 60px 20px 20px;
    }
    
    .nav-menu a {
        font-size: 1.5rem;
    }
}

/* 聯絡頁面樣式 */
.contact-page {
    padding: 100px 0 50px;
    background: url('../images/textures/contact-page-bg.jpg?v=1790053918) center/100% fixed;
    position: relative;
}

.contact-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4);
    z-index: 0;
}

.contact-page .container {
    position: relative;
    z-index: 1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.recaptcha-notice {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #888;
    line-height: 1.5;
}

.recaptcha-notice a {
    color: #8B4513;
    text-decoration: underline;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.form-group textarea:focus {
    border-color: #c78354;
}

.required {
    color: #dc3545;
}

/* 聯絡資訊區塊樣式 */
.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-info h2 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.8rem;
}

.contact-info ul {
    list-style: none;
    margin-bottom: 2rem;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contact-info i {
    margin-right: 1rem;
    color: #c78354;
    font-size: 1.2rem;
    margin-top: 0.3rem;
}

/* 聯絡資訊區塊的社群按鈕特定樣式 */
.contact-info .social-links {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.contact-info .social-btn {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.contact-info .social-btn i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* LINE按鈕樣式 */
.contact-info .social-btn.line {
    background-color: #00c300;
}

.contact-info .social-btn.line:hover {
    background-color: #00b300;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 195, 0, 0.2);
}

/* Facebook按鈕樣式 */
.contact-info .social-btn.facebook {
    background-color: #1877f2;
}

.contact-info .social-btn.facebook:hover {
    background-color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(24, 119, 242, 0.2);
}

/* 地圖容器樣式 */
.contact-info .map {
    border-radius: 8px;
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-info .map iframe {
    width: 100%;
    height: 300px;
    border: none;
    display: block;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* 聯絡頁面的聯絡資訊連結樣式 */
.contact-info li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info li a:hover {
    color: #c78354;
}

/* 關於我們頁面樣式 */
.about-page {
    padding: 100px 0 50px;
    background: url('../images/textures/about-page-bg.jpg?v=1790053918) center/100% fixed;
    position: relative;
}

.about-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4);
    z-index: 0;
}

.about-page .container {
    position: relative;
    z-index: 1;
}

/* 公司簡介區塊 */
.company-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;  /* 限制最大寬度 */
    margin: 0 auto;  /* 置中 */
}

.intro-content {
    padding-right: 2rem;
}

.intro-content h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.intro-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.intro-image {
    max-width: 400px;  /* 限制圖片容器最大寬度 */
    margin: 0 auto;  /* 置中 */
}

.intro-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 公司特色區域 */
.features {
    padding: 6rem 0;
    background: url('../images/textures/features-bg.jpg?v=1790053918)center/100% fixed;
    position: relative;
}

/* 關於我們區域 */
.home-about {
    padding: 6rem 0;
    background: url('../images/textures/about-bg.jpg?v=1790053918)center/100% fixed;
    position: relative;
}

/* 修改服務介紹區域的布局 */
.home-services {
    padding: 4rem 0;
    background: url('../images/textures/services-bg.jpg?v=1790053918)center/100% fixed;
    position: relative;
    z-index: 1;
}

.services-tabs {
    display: grid;
    grid-template-columns: 300px 1fr; /* 左側固定 300px 寬度 */
    gap: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* 左側選單樣式 */
.tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-right: 2px solid rgba(199, 131, 84, 0.2);
    padding-right: 2rem;
}

.tab-btn {
    text-align: left;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: none;
    background: none;
    font-size: 1.1rem;
    color: var(--text-color, #666666);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--active-color, #c78354);
    background: rgba(var(--active-color-rgb, 199, 131, 84), 0.1);
}

.tab-btn.active {
    font-weight: 600;
}

.tab-btn.active::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #c78354;
    border-radius: 0 2px 2px 0;
}

/* 內容面板樣式 */
.tab-panel {
    display: none;
    padding: 2rem;
}

.tab-panel.active {
    display: block;
}

.tab-panel img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.service-text {
    order: -1; /* 將文字內容移到圖片上方 */
    text-align: center;
}

.service-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #c78354;
}

.service-description {
    line-height: 1.8;
    color: #444;
}

.service-image {
    text-align: center;
    height: 400px; /* 固定容器高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-image img {
    max-width: 80%;
    max-height: 100%; /* 限制最大高度 */
    width: auto; /* 讓寬度自適應 */
    object-fit: contain; /* 保持圖片比例 */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 響應式調整 */
@media (max-width: 992px) {
    .services-tabs {
        grid-template-columns: 1fr;
    }
    
    .tabs-nav {
        border-right: none;
        border-bottom: 2px solid rgba(199, 131, 84, 0.2);
        padding-right: 0;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* 提供 iOS 更好的滾動體驗 */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        gap: 1rem;
        padding: 0.5rem;
    }
    
    /* 隱藏滾動條但保持功能 */
    .tabs-nav::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        white-space: nowrap;
        flex: 0 0 auto;
        padding: 0.8rem 1.5rem;
        min-width: auto;
    }
    
    .tab-btn.active::before {
        left: 0;
        top: auto;
        bottom: -2px;
        width: 100%;
        height: 4px;
    }
    
    /* 添加漸變效果提示可以滾動 */
    .tabs-nav::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.9));
        pointer-events: none;
    }
}

/* Footer 中的社群按鈕樣式 */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn i {
    font-size: 1.2rem;
}

/* LINE按鈕樣式 */
.social-btn.line {
    background-color: #00c300;
}

.social-btn.line:hover {
    background-color: #00b300;
    transform: translateY(-3px);
}

/* Facebook按鈕樣式 */
.social-btn.facebook {
    background-color: #1877f2;
}

.social-btn.facebook:hover {
    background-color: #0d6efd;
    transform: translateY(-3px);
}

/* 聯絡頁面的社群按鈕特定樣式 */
.contact-info .social-btn {
    padding: 0.8rem 1.5rem;
    width: auto;
    height: auto;
    border-radius: 8px;
    font-size: 1rem;
}

.contact-info .social-btn i {
    margin-right: 0.5rem;
}

/* Footer 聯絡資訊連結樣式 */
.footer-contact a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* 修改關於我們區塊的標題樣式 */
.about-text .wood-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: left;
    margin-bottom: 2rem;
    background-image: url('../images/textures/wood-texture.jpg');
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    position: relative;
    letter-spacing: 0.05em;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .about-text .wood-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}

/* 懸浮按鈕樣式 - 整合版本 */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
}

.floating-btn i {
    font-size: 1.5rem;
}

.floating-btn.line {
    background-color: #00c300;
}

.floating-btn.email {
    background-color: #ea4335;
}

.floating-btn.phone {
    background-color: #4CAF50;
}

.floating-btn.scroll-top {
    background-color: #c78354;
}

.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* 工具提示樣式 */
.floating-btn .tooltip {
    position: absolute;
    right: 60px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* 回到頂部按鈕初始隱藏 */
.scroll-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

/* reCAPTCHA 樣式 */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.g-recaptcha {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: left center;
    }
}

.intro-text p {
    margin-bottom: 1.5rem;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

/* 產品展示區域 */
.home-products {
    padding: 4rem 0;
    background: url('../images/textures/products-page-bg.jpg?v=1790053918)center/100% fixed;
    position: relative;
}

/* 為每個區塊添加遮罩，讓內容更清晰 */
.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);  /* 30% 白色遮罩 */
    z-index: 0;
}

.home-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);  /* 60% 白色遮罩 */
    z-index: 0;
}

.home-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);  /* 30% 白色遮罩 */
    z-index: 0;
}

.home-products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);  /* 60% 白色遮罩 */
    z-index: 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: #333;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #c78354;
    margin: 1rem auto 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(to right bottom, #c78354, #b57245);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.feature-item h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
}

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

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

/* 響應式調整 */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .feature-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .features {
        padding: 4rem 0;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-item {
        padding: 2rem 1.5rem;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }

    .feature-item h3 {
        font-size: 1.2rem;
    }
}

/* 公司歷程時間軸 */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #c78354;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 4rem;
    padding-right: calc(50% + 3rem); /* 增加內容與中線的距離 */
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 3rem); /* 增加內容與中線的距離 */
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #c78354;
    border-radius: 50%;
    right: calc(50% - 8px);
    top: 25px; /* 調整圓點位置對齊標題 */
    transform: translateY(0);
}

.timeline-item:nth-child(even)::before {
    right: auto;
    left: calc(50% - 8px);
}

.year {
    position: absolute;
    width: 120px; /* 固定寬度 */
    text-align: center;
    right: 50%;
    top: 15px; /* 調整年份位置 */
    transform: translateX(60px); /* 向右移動年份 */
    background: #c78354;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
}

.timeline-item:nth-child(even) .year {
    right: auto;
    left: 50%;
    transform: translateX(-180px); /* 向左移動年份 */
}

.content {
    width: 100%;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.content h3 {
    color: #c78354;
    margin-bottom: 1rem;
}

.content p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .company-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .intro-content {
        padding-right: 0;
    }

    .intro-image {
        max-width: 300px;  /* 手機版更小一點 */
    }

    .timeline::before {
        left: 2rem;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 5rem; /* 增加左側間距 */
        padding-right: 0;
    }

    .timeline-item::before,
    .timeline-item:nth-child(even)::before {
        left: 2rem;
        right: auto;
        top: 25px;
    }

    .year,
    .timeline-item:nth-child(even) .year {
        left: 0;
        right: auto;
        top: 15px;
        transform: none;
        width: auto;
        min-width: 100px;
    }

    .content {
        width: 100%;
    }
}

/* 產品列表頁面樣式 */
.products-page {
    padding: 100px 0 50px;
    background: url('../images/textures/products-page-bg.jpg?v=1790053918) center/100% fixed;
    position: relative;
}

.products-page .container {
    position: relative;
    z-index: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

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

.product-image {
    position: relative;
    padding-top: 75%; /* 4:3 比例 */
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    margin-bottom: 1rem;
}

.product-info h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.product-info h3 a:hover {
    color: #c78354;
}

.product-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-info .btn {
    width: 100%;
}

/* 產品詳情頁面樣式 */
.product-detail {
    padding: 100px 0 50px;
    background: url('../images/textures/WhiteWood.jpg') center/100% fixed;
    position: relative;
}

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

.product-detail .container {
    position: relative;
    z-index: 1;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.product-detail-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-detail-info {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-detail-info h1 {
    margin-bottom: 1.5rem;
    color: #333;
}

.product-detail-description {
    margin-bottom: 2rem;
    line-height: 1.8;
    color: #555;
}

/* 產品詳情頁面的按鈕樣式 */
.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-line {
    background-color: #00c300;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-line:hover {
    background-color: #00b300;
    color: #fff;
}

.btn-line i {
    font-size: 1.2rem;
}

/* 確保 footer 的社群按鈕有正確的圖示 */
.social-btn.line i {
    font-size: 1.2rem;
}

.social-btn.facebook i {
    font-size: 1.2rem;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Footer 樣式 */
.site-footer {
    background: url('../images/textures/footer-bg.jpg?v=1790053918)center/100% fixed;
    background-position: center;
    background-size: cover;
    background-blend-mode: overlay;  /* 與背景色混合 */
    color: #fff;
    padding: 2rem 0 0.5rem;
    position: relative;
}

/* 添加遮罩層讓內容更清晰 */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(126 117 95 / 52%);  /* 與背景色相同但帶透明度 */
    z-index: 1;
}

/* 確保內容在遮罩層上方 */
.footer-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    margin-bottom: 0rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.company-info h3 {
    margin: 0;
    font-size: 1.2rem;
}

.footer-contact h3,
.footer-links h3,
.footer-social h3 {
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-contact ul,
.footer-links ul {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-contact i {
    margin-right: 1rem;
    color: #635854;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 0.5rem 0;
}

.footer-links a:hover {
    color: #c78354;
}

.footer-social {
    display: none;
}

/* 確保底部版權資訊在遮罩層上方 */
.footer-bottom {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    margin: 0.5rem 0;
}

.footer-bottom a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #fff;
}

/* 新增聯絡資訊和地圖的包裝容器樣式 */
.footer-contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.footer-map {
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    aspect-ratio: 16/16;  /* 保持 16:9 的比例 */
    min-height: 220px;   /* 設置最小高度 */
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* 響應式調整 */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-contact-wrapper {
        grid-column: span 2;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-contact-wrapper {
        grid-column: auto;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-map {
        min-height: 200px;
    }

    .footer-logo-wrapper {
        justify-content: center;
    }
    
    .company-info {
        text-align: center;
    }
}

/* 首頁特定樣式 */
.home-about {
    padding: 6rem 0;  /* 調整上下間距 */
    background-color: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 首頁產品展示區域 */
.home-products {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

/* 移除原有的產品標題樣式 */
.home-products h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* 移除原有的下劃線 */
.home-products h2:after {
    display: none;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.product-image {
    position: relative;
    padding-top: 75%; /* 4:3 比例 */
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: 1.5rem;
}

.product-title {
    margin: 0 0 1rem;
    font-size: 1.2rem;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.product-title a:hover {
    color: #c78354;
}

.product-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #c78354;
    color: white;
}

.btn-primary:hover {
    background-color: var(--hover-bg, #b57245);
}

.btn-outline {
    border: 2px solid #c78354;
    color: #c78354;
    background: transparent;
}

.btn-outline:hover {
    background-color: #c78354;
    color: white;
}

.text-center {
    text-align: center;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .product-info {
        padding: 1rem;
    }

    .product-title {
        font-size: 1.1rem;
    }
}

.slide[data-url].active {
    cursor: pointer;
    transition: opacity 0.3s;
}

.slide[data-url].active:hover {
    opacity: 0.9;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .features {
        padding: 4rem 0;
    }

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

    .features-grid {
        gap: 2rem;
    }

    .feature-item {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* 通用木紋標題樣式 */
.wood-title {
    font-size: 2.5rem;
    font-weight: 900;
    background-image: url('../images/textures/wood-texture.jpg');
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    position: relative;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 3rem;
}

/* 移除原有的標題樣式 */
.section-title:after {
    display: none;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .wood-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
}

/* 修改服務介紹區域的布局 */
.home-services {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.services-tabs {
    display: grid;
    grid-template-columns: 300px 1fr; /* 左側固定 300px 寬度 */
    gap: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* 左側選單樣式 */
.tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-right: 2px solid rgba(199, 131, 84, 0.2);
    padding-right: 2rem;
}

.tab-btn {
    text-align: left;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: none;
    background: none;
    font-size: 1.1rem;
    color: var(--text-color, #666666);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--active-color, #c78354);
    background: rgba(var(--active-color-rgb, 199, 131, 84), 0.1);
}

.tab-btn.active {
    font-weight: 600;
}

.tab-btn.active::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #c78354;
    border-radius: 0 2px 2px 0;
}

/* 內容面板樣式 */
.tab-panel {
    display: none;
    padding: 2rem;
}

.tab-panel.active {
    display: block;
}

.tab-panel img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.service-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #c78354;
}

.service-description {
    line-height: 1.8;
    color: #444;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 響應式調整 */
@media (max-width: 992px) {
    .services-tabs {
        grid-template-columns: 1fr;
    }
    
    .tabs-nav {
        border-right: none;
        border-bottom: 2px solid rgba(199, 131, 84, 0.2);
        padding-right: 0;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* 提供 iOS 更好的滾動體驗 */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        gap: 1rem;
        padding: 0.5rem;
    }
    
    /* 隱藏滾動條但保持功能 */
    .tabs-nav::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        white-space: nowrap;
        flex: 0 0 auto;
        padding: 0.8rem 1.5rem;
        min-width: auto;
    }
    
    .tab-btn.active::before {
        left: 0;
        top: auto;
        bottom: -2px;
        width: 100%;
        height: 4px;
    }
    
    /* 添加漸變效果提示可以滾動 */
    .tabs-nav::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.9));
        pointer-events: none;
    }
}

/* Footer 中的社群按鈕樣式 */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn i {
    font-size: 1.2rem;
}

/* LINE按鈕樣式 */
.social-btn.line {
    background-color: #00c300;
}

.social-btn.line:hover {
    background-color: #00b300;
    transform: translateY(-3px);
}

/* Facebook按鈕樣式 */
.social-btn.facebook {
    background-color: #1877f2;
}

.social-btn.facebook:hover {
    background-color: #0d6efd;
    transform: translateY(-3px);
}

/* 聯絡頁面的社群按鈕特定樣式 */
.contact-info .social-btn {
    padding: 0.8rem 1.5rem;
    width: auto;
    height: auto;
    border-radius: 8px;
    font-size: 1rem;
}

.contact-info .social-btn i {
    margin-right: 0.5rem;
}

/* Footer 聯絡資訊連結樣式 */
.footer-contact a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* 修改關於我們區塊的標題樣式 */
.about-text .wood-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: left;
    margin-bottom: 2rem;
    background-image: url('../images/textures/wood-texture.jpg');
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    position: relative;
    letter-spacing: 0.05em;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .about-text .wood-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}

/* 懸浮按鈕樣式 - 整合版本 */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
}

.floating-btn i {
    font-size: 1.5rem;
}

.floating-btn.line {
    background-color: #00c300;
}

.floating-btn.email {
    background-color: #ea4335;
}

.floating-btn.phone {
    background-color: #4CAF50;
}

.floating-btn.scroll-top {
    background-color: #c78354;
}

.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* 工具提示樣式 */
.floating-btn .tooltip {
    position: absolute;
    right: 60px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* 回到頂部按鈕初始隱藏 */
.scroll-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

/* reCAPTCHA 樣式 */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.g-recaptcha {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: left center;
    }
}

.intro-text p {
    margin-bottom: 1.5rem;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

/* Email按鈕樣式 */
.social-btn.email {
    background-color: #ea4335;
}

.social-btn.email:hover {
    background-color: #d62516;
    transform: translateY(-3px);
}

.btn.btn-email {
    background-color: #ea4335;
    color: white;
}

.btn.btn-email:hover {
    background-color: #d62516;
} 