* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 70px;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #87CEEB;
}

.nav-link.active {
    color: #87CEEB;
    text-decoration: underline;
}

.company-name-nav {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.product-panel {
    position: fixed;
    top: 70px;
    right: -500px;
    width: 500px;
    height: calc(100vh - 70px);
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.product-panel.active {
    right: 0;
}

.panel-content {
    display: flex;
    height: 100%;
}

.panel-left {
    width: 40%;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
}

.panel-menu {
    list-style: none;
    padding: 20px 0;
}

.panel-menu-item {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.panel-menu-item:hover {
    background: #e9ecef;
}

.panel-menu-item.active {
    background: #87CEEB;
    color: white;
    border-left-color: #5DADE2;
}

.panel-right {
    width: 60%;
    padding: 30px;
    overflow-y: auto;
}

.panel-content-item {
    display: none;
}

.panel-content-item.active {
    display: block;
}

.panel-content-item ul {
    list-style: none;
}

.panel-content-item li {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

.banner {
    margin-top: 70px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #f5f5f5;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-intro {
    padding: 80px 0;
    background: white;
}

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

.intro-header {
    position: relative;
    margin-bottom: 50px;
    padding-left: 20px;
}

.main-title {
    font-size: 42px;
    font-weight: bold;
    color: #333;
    margin-bottom: 0;
    line-height: 1.2;
}

.intro-content {
    text-align: left;
    line-height: 2;
    color: #333;
}

.intro-content p {
    margin-bottom: 20px;
    font-size: 16px;
}

.engineering-cases {
    padding: 80px 0;
    background: #f8f9fa;
}

.cases-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.cases-title {
    text-align: center;
    font-size: 42px;
    font-weight: bold;
    color: #333;
    margin-bottom: 50px;
}

.cases-slider {
    overflow: hidden;
    position: relative;
}

.cases-track {
    display: flex;
    animation: slide 20s linear infinite;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.cases-track:hover {
    animation-play-state: paused;
}

.case-item {
    flex: 0 0 calc(12.5% - 20px);
    display: flex;
    flex-direction: column;
    margin: 0 10px;
}

.case-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 4/3;
}

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

.case-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #ddd;
}

.case-title {
    padding: 12px 10px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin: 8px 0 0 0;
}

.footer {
    background: #333;
    color: white;
    padding: 40px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.contact-info {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    font-size: 16px;
    color: white;
    padding: 5px 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
}

.copyright {
    font-size: 12px;
    color: #999;
}

@media (max-width: 1200px) {
    .case-card {
        flex: 0 0 calc(25% - 20px);
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 15px;
    }

    .nav-menu {
        gap: 20px;
        position: static;
        transform: none;
    }

    .nav-link {
        font-size: 14px;
    }

    .company-name-nav {
        display: none;
    }

    .banner-content h1 {
        font-size: 32px;
    }

    .banner-content p {
        font-size: 18px;
    }

    .main-title {
        font-size: 32px;
    }

    .sub-title {
        font-size: 20px;
        top: 25px;
        left: 140px;
    }

    .cases-title {
        font-size: 32px;
    }

    .case-item {
        flex: 0 0 calc(50% - 20px);
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .product-panel {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 480px) {
    .case-card {
        flex: 0 0 calc(100% - 20px);
    }

    .nav-menu {
        gap: 10px;
        position: static;
        transform: none;
    }

    .logo img {
        height: 40px;
    }
}