/* ===== 重置和基礎樣式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans TC', 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #222222;
    background-color: #ffffff;
}

/* ===== 顏色變數 ===== */
:root {
    --primary-color: #80BF03;
    --secondary-color: #6fa503;
    --accent-color: #9dd203;
    --text-dark: #222222;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --border-color: #e9ecef;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* ===== 通用元素樣式 ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

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

/* ===== 容器和佈局 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 按鈕樣式 ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ===== 語言切換器 ===== */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.language-switcher select {
    border: none;
    background: rgba(255,255,255,0.2);
    font-size: 0.9rem;
    color: white;
    cursor: pointer;
    padding: 8px 12px;
    outline: none;
    font-family: inherit;
    border-radius: 6px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.language-switcher select:focus {
    outline: none;
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

.language-switcher select option {
    background: white;
    color: var(--text-dark);
}



/* ===== 導航欄 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

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

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: rgba(255,255,255,0.8);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* ===== 橫幅廣告輪播 ===== */
.banner-carousel {
    margin-top: 70px; /* 為固定導航欄留出空間 */
    position: relative;
    height: 250px;
    overflow: hidden;
    background: white; /* 移除綠色背景 */
}

.carousel-container {
    position: relative;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-track {
    position: relative;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.slide-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 40px;
    gap: 40px;
}

.slide-image {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.slide-image img {
    width: 100%;
    height: 100%;
    max-width: 800px;
    max-height: 200px;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    object-fit: cover;
}

.slide-text-boxes {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 250px;
    margin-left: -40px;
}

.text-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 15px;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    color: white;
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.text-box h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.text-box p {
    font-size: 0.75rem;
    margin-bottom: 0;
    color: rgba(255,255,255,0.9);
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.text-box .btn {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
    font-weight: 600;
    padding: 6px 16px;
    font-size: 0.75rem;
    display: inline-block;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.text-box .btn:hover {
    background-color: transparent;
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

/* 輪播控制按鈕 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: var(--transition);
    z-index: 10;
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-medium);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: -15px;
}

/* 輪播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 40%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active,
.indicator:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ===== 主內容區域 ===== */
.main-content {
    margin-top: 1;
}

/* ===== 首頁樣式 ===== */
.hero-section {
    padding: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    min-height: 50vh;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--text-dark), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-slogan {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-10px) rotate(45deg); }
    60% { transform: translateY(-5px) rotate(45deg); }
}

/* ===== 特色區域 ===== */
.features-section {
    padding: 80px 0;
    background: var(--bg-white);
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background: var(--bg-light);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

/* ===== 服務項目預覽 ===== */
.services-preview-section {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.service-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.service-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.service-content {
    padding: 1.5rem;
}

.services-cta-section {
    padding: 40px 0;
    background: #f8f9fa;
    text-align: center;
}

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

/* ===== 統計區域 ===== */
.stats-section {
    padding: 80px 0;
    background: var(--primary-color);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.stat-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== 聯絡CTA區域 ===== */
.contact-cta-section {
    padding: 80px 0;
    background: var(--bg-dark);
    color: white;
    text-align: center;
}

.contact-cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.contact-cta-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== 頁腳 ===== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 20px;
}

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

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

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== 響應式設計 ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-light);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .language-switcher {
        margin: 20px 0;
        margin-left: 0;
    }
    
    .language-switcher select {
        background: rgba(255,255,255,0.1);
        color: white;
        border: 1px solid rgba(255,255,255,0.2);
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    /* 輪播響應式設計 */
    .banner-carousel {
        height: 200px; /* 從400px改為200px */
    }
    
    .slide-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
        gap: 2rem;
    }
    
    .slide-text {
        max-width: 100%;
    }
    
    .slide-text h2 {
        font-size: 2rem;
    }
    
    .slide-text p {
        font-size: 1rem;
    }
    
    .slide-image img {
        max-height: 120px; /* 從250px改為120px */
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-slogan {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* 小螢幕輪播設計 */
    .banner-carousel {
        height: 175px; /* 從350px改為175px */
    }
    
    .slide-text h2 {
        font-size: 1.75rem;
    }
    
    .slide-text p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .slide-text .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .slide-image img {
        max-height: 100px; /* 從200px改為100px */
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* 頁面標題區域 */
.page-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.page-header-text {
    flex: 1;
}

.page-header-text h1 {
    margin: 0 0 10px 0;
}

.page-header-text p {
    margin: 0;
}

.page-header-image {
    flex-shrink: 0;
}

.contact-header-image {
    width: 500px;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .page-header-content {
        gap: 20px;
    }
    
    .contact-header-image {
        width: 150px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .page-header-content {
        gap: 15px;
    }
    
    .contact-header-image {
        width: 120px;
        height: 90px;
    }
}

/* ===== 多語言文字調整 ===== */
/* 英文文字調整 */
html[lang="en"] .text-box h3,
html[lang="en"] .text-box p {
    font-size: 0.9rem;
    line-height: 1.2;
}

html[lang="en"] .text-box {
    min-height: 90px;
    padding: 12px 10px;
}

/* 日文文字調整 */
html[lang="ja"] .text-box h3,
html[lang="ja"] .text-box p {
    font-size: 0.85rem;
    line-height: 1.4;
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
}

html[lang="ja"] .text-box {
    min-height: 95px;
    padding: 12px 8px;
}

/* 韓文文字調整 */
html[lang="ko"] .text-box h3,
html[lang="ko"] .text-box p {
    font-size: 0.85rem;
    line-height: 1.4;
    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

html[lang="ko"] .text-box {
    min-height: 95px;
    padding: 12px 8px;
}

/* 簡體中文文字調整 */
html[lang="zh-hans"] .text-box h3,
html[lang="zh-hans"] .text-box p {
    font-size: 0.9rem;
    line-height: 1.3;
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

html[lang="zh-hans"] .text-box {
    min-height: 85px;
    padding: 12px 10px;
}

/* 繁體中文文字調整 */
html[lang="zh-hant"] .text-box h3,
html[lang="zh-hant"] .text-box p {
    font-size: 0.9rem;
    line-height: 1.3;
    font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
}

html[lang="zh-hant"] .text-box {
    min-height: 85px;
    padding: 12px 10px;
}

/* 響應式調整 */
@media (max-width: 768px) {
    /* 英文 */
    html[lang="en"] .text-box {
        min-height: 100px;
        padding: 10px 8px;
    }
    
    html[lang="en"] .text-box h3 {
        font-size: 0.85rem;
    }
    
    html[lang="en"] .text-box p {
        font-size: 0.75rem;
    }
    
    /* 日文 */
    html[lang="ja"] .text-box {
        min-height: 110px;
        padding: 10px 6px;
    }
    
    html[lang="ja"] .text-box h3 {
        font-size: 0.8rem;
    }
    
    html[lang="ja"] .text-box p {
        font-size: 0.7rem;
    }
    
    /* 韓文 */
    html[lang="ko"] .text-box {
        min-height: 110px;
        padding: 10px 6px;
    }
    
    html[lang="ko"] .text-box h3 {
        font-size: 0.8rem;
    }
    
    html[lang="ko"] .text-box p {
        font-size: 0.7rem;
    }
    
    /* 中文 */
    html[lang="zh-hans"] .text-box,
    html[lang="zh-hant"] .text-box {
        min-height: 95px;
        padding: 10px 8px;
    }
    
    html[lang="zh-hans"] .text-box h3,
    html[lang="zh-hant"] .text-box h3 {
        font-size: 0.85rem;
    }
    
    html[lang="zh-hans"] .text-box p,
    html[lang="zh-hant"] .text-box p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    /* 所有語言在小螢幕上的調整 */
    .text-box {
        min-height: 100px !important;
        padding: 8px 6px !important;
    }
    
    .text-box h3 {
        font-size: 0.8rem !important;
        margin-bottom: 6px !important;
    }
    
    .text-box p {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
    }
} 