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

body {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* 歡迎頁面 */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.welcome-content {
    position: relative;
    text-align: center;
    color: white;
}

.welcome-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.welcome-text h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.welcome-text .highlight {
    color: #00d4ff;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.welcome-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.enter-btn {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
    position: relative;
    z-index: 9999;
    outline: none;
    user-select: none;
    pointer-events: auto;
}

.enter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.enter-btn:active {
    transform: translateY(0) scale(0.95);
    box-shadow: 0 3px 10px rgba(0, 212, 255, 0.3);
}

.enter-btn:focus {
    outline: 2px solid rgba(0, 212, 255, 0.5);
    outline-offset: 2px;
}

/* 主網站 */
.main-site {
    opacity: 1;
    /* 移除動畫，直接顯示 */
}

.main-site.show {
    opacity: 1;
}

/* 導航欄 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

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

.logo-text .company-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c5aa0;
    display: block;
    margin-bottom: 0.25rem;
}

.logo-text .company-subtitle {
    font-size: 0.9rem;
    color: #666;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主橫幅 */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    text-align: left;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content h2 {
    font-size: 4rem;
    font-weight: 300;
    line-height: 1.2;
}

.tech-text {
    color: #00d4ff;
    font-style: italic;
}

.energy-text {
    color: #4CAF50;
    font-style: italic;
}

.fashion-text {
    color: #FF6B6B;
    font-style: italic;
}

.innovation-text {
    color: #9C27B0;
    font-style: italic;
}

.hero-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
}

.hero-nav button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-nav button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* 公司理念 */
.mission {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.mission h3 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.mission-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 我們在做什麼 */
.what-we-do {
    padding: 6rem 0;
    background: #f8f9fa;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: #2c5aa0;
    font-weight: 300;
}

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

.content-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #555;
}

.read-more {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.read-more:hover {
    border-bottom-color: #2c5aa0;
}

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

/* 客戶證言 */
.testimonial {
    padding: 6rem 0;
    background: white;
}

.testimonial-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-content p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #555;
    font-style: italic;
}

/* 特色項目 */
.featured-project {
    padding: 6rem 0;
    background: #f8f9fa;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.project-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 首頁特色項目輪播樣式 */
.featured-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.featured-carousel .carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.featured-carousel .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.featured-carousel .carousel-slide.active {
    opacity: 1;
}

.featured-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-carousel .carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.featured-carousel .carousel-prev,
.featured-carousel .carousel-next {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    pointer-events: auto;
}

.featured-carousel .carousel-prev:hover,
.featured-carousel .carousel-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.featured-carousel .carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.featured-carousel .carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.featured-carousel .carousel-dots .dot.active {
    background: white;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 2rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.project-date {
    color: #888;
    margin-bottom: 1rem;
}

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

.learn-more {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.learn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}


/* 新聞 */
.news {
    padding: 4rem 0;
    background: white;
}

.news-content {
    text-align: center;
    color: #888;
}

.news-project {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-project:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.news-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-project:hover .news-image img {
    transform: scale(1.05);
}

.news-info {
    text-align: left;
    color: #333;
}

.news-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c5aa0;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

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

.news-link {
    display: inline-block;
    background: linear-gradient(45deg, #2c5aa0, #4a7c7e);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.news-link:hover {
    background: linear-gradient(45deg, #1e3d6f, #3a6365);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.no-news {
    text-align: center;
    color: #666;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.no-news p {
    margin: 0.5rem 0;
}

@media (max-width: 768px) {
    .news-project {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .news-info {
        text-align: center;
    }
    
    .news-info h3 {
        font-size: 1.25rem;
    }
}

/* 聯絡我們樣式 */
.contact {
    padding: 4rem 0;
    background: #f8f9fa;
}

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

.contact-info h3,
.contact-form h3 {
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.contact-map {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

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

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.contact-item .icon {
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 24px;
    text-align: center;
}

.contact-item span {
    color: #333;
    font-size: 0.95rem;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, #2c5aa0, #1e3a5f);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #1e3a5f, #2c5aa0);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(44, 90, 160, 0.3);
}

/* 頁腳 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

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

.footer-text .company-name {
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
}

.footer-text .company-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    display: block;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-nav a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    opacity: 1;
}

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

/* 精選工程實績樣式 */
.featured-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.featured-project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.featured-project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.featured-project-card .project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.featured-project-card .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.project-category {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.featured-project-card .project-info {
    padding: 1.5rem;
}

.featured-project-card .project-info h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
}

.featured-project-card .project-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.featured-project-card .project-description {
    color: #555;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.featured-project-card .learn-more {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.featured-project-card .learn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.featured-projects-footer {
    text-align: center;
    margin: 3rem 0 1rem 0;
}

.view-all-btn {
    display: inline-block;
    background: linear-gradient(135deg, #2c5aa0, #4a7c7e);
    color: white;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(44, 90, 160, 0.3);
}

.no-featured-projects {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state h3 {
    color: #666;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #888;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: left 0.3s ease;
        z-index: 1000;
        padding-top: 2rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-menu .nav-link {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        display: block;
        text-align: center;
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .welcome-text h1 {
        font-size: 2.5rem;
    }
    
    .slide-content h2 {
        font-size: 2.5rem;
    }
    
    .content-grid,
    .project-card,
    .footer-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .contact-details,
    .contact-form {
        padding: 1.5rem;
    }

    /* 精選工程實績響應式 */
    .featured-projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem 0;
    }

    .featured-project-card .project-image {
        height: 200px;
    }

    .project-overlay {
        top: 0.5rem;
        right: 0.5rem;
    }

    .project-category {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .featured-project-card .project-info {
        padding: 1.2rem;
    }

    .view-all-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

