/* 重置和基礎樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'Noto Sans TC', 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 導航欄 */
.navbar {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1976d2;
    margin: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 語言切換器 */
.language-switcher {
    display: flex;
    gap: 5px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #1976d2;
    color: #1976d2;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
    min-width: 60px;
    text-align: center;
}

.lang-btn:hover {
    background: #1976d2;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.lang-btn.active {
    background: #1976d2;
    color: white;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

/* 漢堡選單 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #1976d2;
    border-radius: 2px;
    transition: 0.3s;
}

/* 主要內容區域 */
main {
    margin-top: 70px;
}

/* 英雄區域 */
.hero {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1565c0;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-content p {
    font-size: 1.2rem;
    color: #424242;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 關於我們區域 */
.about {
    padding: 80px 0;
    background: white;
}

.about h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #1976d2;
    text-align: center;
    margin-bottom: 40px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: center;
}

/* 公司介紹影片/圖片區域 */
.company-intro {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 100%);
}

.company-intro h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #1976d2;
    text-align: center;
    margin-bottom: 50px;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.intro-media {
    position: relative;
}

.video-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container:hover .video-overlay {
    opacity: 1;
}

.play-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn svg {
    width: 30px;
    height: 30px;
    color: #1976d2;
    margin-left: 5px;
}

.play-btn:hover {
    background: white;
    transform: scale(1.1);
}

.image-fallback {
    display: block;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 300px;
}

.image-fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.8) 0%, rgba(66, 165, 245, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.image-content {
    text-align: center;
    color: white;
}

.image-content h4 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.image-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.intro-text {
    padding: 20px;
}

.intro-text h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1976d2;
    margin-bottom: 20px;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* 公司經驗/案例展示區域 */
.experience {
    padding: 80px 0;
    background: white;
}

.experience h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #1976d2;
    text-align: center;
    margin-bottom: 50px;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.experience-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.experience-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.experience-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.experience-item:hover .experience-image img {
    transform: scale(1.05);
}

.experience-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(25, 118, 210, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.experience-content {
    padding: 25px;
}

.experience-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1976d2;
    margin-bottom: 15px;
}

.experience-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* 聯絡資訊區域 */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #f3f8ff 0%, #e8f4fd 100%);
}

.contact h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #1976d2;
    text-align: center;
    margin-bottom: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1976d2;
    margin-bottom: 15px;
}

.contact-item p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.contact-item a {
    color: #1976d2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #1565c0;
    text-decoration: underline;
}

/* 頁腳 */
.footer {
    background: #1976d2;
    color: white;
    text-align: center;
    padding: 30px 0;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 響應式設計 */
    @media (max-width: 768px) {
        .nav-container {
            height: 60px;
        }
        
        .nav-logo h1 {
            font-size: 1.2rem;
        }
        
        .language-switcher {
            gap: 2px;
            flex-direction: row;
        }
        
        .lang-btn {
            padding: 4px 8px;
            font-size: 0.65rem;
            min-width: auto;
            border-radius: 12px;
        }
        
        .hamburger {
            display: flex;
        }
        
        .nav-menu {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        main {
            margin-top: 60px;
        }
        
        .hero {
            padding: 60px 0;
        }
        
        .hero-content h2 {
            font-size: 2rem;
        }
        
        .hero-content p {
            font-size: 1rem;
        }
        
        .about, .contact, .company-intro, .experience {
            padding: 60px 0;
        }
        
        .about h3, .contact h3, .company-intro h3, .experience h3 {
            font-size: 1.5rem;
        }
        
        .intro-content {
            grid-template-columns: 1fr;
            gap: 30px;
        }
        
        .experience-grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }
        
        .contact-grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }
        
        .contact-item {
            padding: 25px;
        }
        
            .experience-item {
        margin-bottom: 20px;
    }
    
    .image-fallback {
        height: 250px;
    }
    
    .image-content h4 {
        font-size: 1.5rem;
    }
    
    .image-content p {
        font-size: 1rem;
    }
    }

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo h1 {
        font-size: 1rem;
    }
    
    .language-switcher {
        gap: 1px;
    }
    
    .lang-btn {
        padding: 3px 6px;
        font-size: 0.6rem;
        border-radius: 10px;
    }
    
    .nav-menu {
        gap: 8px;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .contact-item {
        padding: 20px;
    }
    
    .contact-item h4 {
        font-size: 1rem;
    }
    
    .contact-item p {
        font-size: 0.9rem;
    }
}

/* 動畫效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content, .about-content, .contact-grid {
    animation: fadeInUp 0.8s ease-out;
}

/* 語言切換動畫 */
[data-ja], [data-zh], [data-en] {
    transition: opacity 0.3s ease;
}

/* 載入動畫 */
.loading {
    opacity: 0.5;
    transition: opacity 0.3s ease;
} 