/* 基本重置和變量 */
:root {
    --primary-color: #00b8ff;
    --secondary-color: #6c63ff;
    --accent-color: #fd2155;
    --dark-color: #121212;
    --light-color: #f8f9fa;
    --grey-color: #333;
    --text-color: #e6e6e6;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-color);
    overflow-x: hidden;
}

/* 通用容器和排版 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

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

.highlight {
    color: var(--primary-color);
}

/* 按鈕樣式 */
.btn-primary, .btn-secondary, .btn-tertiary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 導航欄中按鈕的特殊樣式 */
.nav-links .btn-primary {
    padding: 8px 16px;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    margin-top: 0;
    margin-bottom: 0;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--light-color);
    border: 2px solid var(--primary-color);
}

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

.btn-tertiary {
    background: transparent;
    color: var(--primary-color);
    padding: 10px 18px;
    font-size: 0.85rem;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-weight: 500;
}

.btn-tertiary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product-details .btn-tertiary {
    margin-top: 0.5rem;
}

/* 導航欄 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

nav {
    display: flex;
    align-items: center;
    height: 100%;
}

/* 頂部導航欄 logo 樣式 */
.logo {
    display: flex;
    align-items: center;
}

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

.logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--light-color);
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--light-color);
}

/* 英雄區塊 */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--dark-color);
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to right,
        transparent,
        transparent 49px,
        rgba(255, 255, 255, 0.03) 50px,
        rgba(255, 255, 255, 0.03) 50px
    );
    z-index: 1;
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 49px,
        rgba(255, 255, 255, 0.03) 50px,
        rgba(255, 255, 255, 0.03) 50px
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 50%;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

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

.hero-visual {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 100%;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-sphere {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at center, var(--primary-color) 0%, transparent 70%);
    border-radius: 50%;
    position: relative;
    animation: pulse 4s infinite ease-in-out;
}

.tech-sphere::before, .tech-sphere::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--primary-color);
}

.tech-sphere::before {
    width: 450px;
    height: 450px;
    opacity: 0.5;
    animation: rotate 15s infinite linear;
}

.tech-sphere::after {
    width: 500px;
    height: 300px;
    opacity: 0.3;
    animation: rotate-reverse 20s infinite linear;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotate-reverse {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* 節標題 */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--light-color);
    opacity: 0.8;
}

/* 節樣式 */
section {
    padding: 100px 0;
    position: relative;
}

/* 關於我們 */
#about {
    position: relative;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.9) 0%, rgba(18, 18, 18, 0.8) 100%);
    z-index: -1;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
    max-width: 50%;
}

.about-image {
    flex: 1;
    max-width: 50%;
    height: 400px;
    position: relative;
}

.image-container {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.responsive-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover .responsive-img {
    transform: scale(1.05);
}

.tech-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 184, 255, 0.3), rgba(108, 99, 255, 0.3));
    mix-blend-mode: overlay;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

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

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 服務 */
#services {
    background-color: #0c0c0c;
}

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

.service-card {
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* 移動版服務卡片優化 */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.75rem;
        margin-bottom: 0.5rem;
        max-width: 100%;
    }
    
    .service-icon {
        margin-bottom: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 1.5rem;
    }
}

/* 產品 */
#products {
    background-color: var(--dark-color);
    position: relative;
    overflow: hidden;
    padding: 100px 0 80px;
}

.products-slider {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin: 1rem 0 2.5rem;
    transition: var(--transition);
    flex-wrap: wrap;
    padding: 0.75rem;
}

.product-card {
    flex: 0 0 calc(33.333% - 2rem);
    min-width: 280px;
    max-width: 350px;
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #0d0d0d;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 加載中樣式 */
.product-image.loading::after {
    content: '\f110'; /* FontAwesome的轉圈圖標 */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    font-size: 1.5rem;
    animation: fa-spin 2s infinite linear;
    opacity: 1;
    z-index: 3;
}

.product-image:not(.loading)::after {
    content: '\f00e'; /* FontAwesome放大鏡圖標，非loading狀態 */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.product-card:hover .product-image:not(.loading)::after,
.product-card:hover .product-image::before {
    opacity: 1;
}

@keyframes fa-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease, opacity 0.3s ease;
    display: block;
    opacity: 0.95;
}

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

/* 圖片加載失敗後的樣式 */
.product-img.error {
    display: none;
}

.product-image.error::after {
    content: '\f071'; /* 警告圖標 */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--accent-color);
    font-size: 1.5rem;
    opacity: 0.7;
}

.product-image.error::before {
    content: '圖片無法載入';
    position: absolute;
    top: 60%;
    color: var(--light-color);
    font-size: 0.8rem;
    opacity: 0.7;
}

.product-details {
    padding: 1.75rem;
    height: calc(100% - 200px);
    display: flex;
    flex-direction: column;
}

.product-details h3 {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    color: var(--light-color);
}

.product-details p {
    margin-bottom: 1.75rem;
    color: var(--light-color);
    opacity: 0.8;
    line-height: 1.5;
    flex-grow: 1;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
}

.control {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    cursor: pointer;
    transition: var(--transition);
}

.control:hover {
    background: var(--primary-color);
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

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

/* 在較大屏幕上隱藏滑動控制元素 */
@media (min-width: 1025px) {
    .slider-controls {
        display: none;
    }
    
    .products-slider {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* 產品區域移動版優化 */
@media (max-width: 1024px) {
    .products-slider {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 1rem 0.5rem 1.5rem;
        -ms-overflow-style: none;
        scrollbar-width: none;
        scroll-behavior: smooth;
        margin: 0.5rem 0 2rem;
        gap: 1.5rem;
        width: 100%;
    }
    
    .products-slider::-webkit-scrollbar {
        display: none;
    }
    
    .product-card {
        flex: 0 0 calc(80% - 1.5rem);
        min-width: 260px;
        max-width: 320px;
        margin-bottom: 0.5rem;
        transform: none !important;
    }
}

@media (max-width: 768px) {
    #products {
        padding: 80px 0 60px;
    }
    
    #products .section-header {
        margin-bottom: 1.5rem;
    }
    
    .product-card {
        flex: 0 0 75%;
        min-width: 240px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-details {
        padding: 1.25rem;
        height: auto;
    }
    
    .product-details h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }
    
    .product-details p {
        margin-bottom: 1.25rem;
    }
    
    .slider-controls {
        margin-top: 1.5rem;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    #products {
        padding: 60px 0 50px;
    }
    
    .products-slider {
        padding: 0.5rem 0.25rem 1rem;
        gap: 1rem;
        margin: 0.5rem 0 1.5rem;
    }
    
    .product-card {
        flex: 0 0 80%;
        min-width: 200px;
        margin: 0.5rem 0;
        border-radius: 6px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-details {
        padding: 1.2rem;
    }
    
    .product-details h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .product-details p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }
    
    .btn-tertiary {
        font-size: 0.8rem;
        padding: 8px 14px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .control {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .slider-controls {
        margin-top: 1rem;
        gap: 1.2rem;
    }
}

/* 響應式樣式 */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-content {
        width: 60%;
    }

    .hero-visual {
        width: 40%;
    }

    .tech-sphere {
        width: 300px;
        height: 300px;
    }

    .tech-sphere::before {
        width: 350px;
        height: 350px;
    }

    .tech-sphere::after {
        width: 400px;
        height: 250px;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .about-text, .about-image {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .about-image {
        height: 350px;
    }

    .contact-content {
        flex-direction: column;
        gap: 3rem;
    }
    
    /* 產品區域響應式樣式調整 */
    .products-slider {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 1rem 0.5rem 1.5rem;
        -ms-overflow-style: none;
        scrollbar-width: none;
        scroll-behavior: smooth;
        margin: 0.5rem 0 2rem;
        gap: 2rem;
    }
    
    .products-slider::-webkit-scrollbar {
        display: none;
    }
    
    .product-card {
        flex: 0 0 calc(80% - 2rem);
        min-width: 280px;
        margin-bottom: 1rem;
    }
    
    .product-details {
        padding: 1.5rem;
    }
    
    .slider-controls {
        display: flex;
        margin-top: 0.5rem;
    }

    .it-service-container {
        width: 70%;
        right: 10%;
        max-width: 400px;
    }

    .about-sphere {
        width: 250px;
        height: 250px;
    }
    
    .about-it-service {
        width: 85%;
    }
}

/* 導航欄移動版優化 */
@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }
    
    header .container {
        padding: 0 15px;
        height: 45px;
    }
    
    .logo img {
        max-height: 35px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: rgba(12, 12, 12, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 80px 25px 40px;
        transition: all 0.35s ease-in-out;
        z-index: 999;
        overflow-y: auto;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 10px 0;
        font-size: 1.1rem;
    }
    
    .nav-links a.btn-primary {
        margin-top: 10px;
        width: 100%;
        height: 42px;
    }
    
    .language-switcher {
        margin: 20px 0 0;
        justify-content: center;
        width: 100%;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1000;
        font-size: 1.8rem;
        cursor: pointer;
    }
    
    .menu-toggle.active i::before {
        content: '\f00d';
    }

    /* 英雄區域移動版優化 */
    #hero {
        height: auto;
        padding: 110px 0 70px;
        display: flex;
        flex-direction: column;
    }
    
    .hero-content {
        width: 100%;
        text-align: center;
        order: 1;
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        margin: 0 auto 2rem;
        max-width: 100%;
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .hero-visual {
        position: relative;
        width: 100%;
        height: 320px;
        margin-top: 2.5rem;
        transform: none;
        top: 0;
        right: 0;
        order: 2;
        display: flex;
        justify-content: center;
    }
    
    .tech-sphere {
        width: 250px;
        height: 250px;
        position: absolute;
        opacity: 0.6;
    }

    /* 其他部分樣式恢復 */
    .section-header {
        margin-bottom: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* 產品卡片在手機上的樣式 */
    .product-card {
        flex: 0 0 85%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-details {
        padding: 1.25rem;
    }
    
    .product-details h3 {
        font-size: 1.3rem;
    }
    
    #products {
        padding: 80px 0 60px;
    }
    
    #products .section-header {
        margin-bottom: 1.5rem;
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

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

    .footer-links {
        justify-content: space-around;
        gap: 1rem;
    }
    
    .it-service-container {
        position: relative;
        width: 85%;
        max-width: 350px;
        right: auto;
        bottom: auto;
        margin: 0 auto;
        z-index: 7;
    }

    .about-image {
        height: 300px;
        margin-top: 1rem;
    }
    
    .about-visual {
        height: 100%;
    }
    
    .about-sphere {
        width: 200px;
        height: 200px;
        opacity: 0.4;
    }

    .contact-content {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .contact-form, .contact-info {
        width: 100%;
        max-width: 100%;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    .info-item {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
    
    /* 產品卡片在超小屏幕上的樣式 */
    .product-card {
        flex: 0 0 95%;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-details {
        padding: 1.1rem;
    }

    /* 超小屏幕上的Hero區域調整 */
    #hero {
        padding: 100px 0 60px;
    }
    
    .hero-visual {
        height: 300px;
        margin-top: 2rem;
    }
    
    .tech-sphere {
        width: 200px;
        height: 200px;
        opacity: 0.5;
    }
    
    .tech-sphere::before,
    .tech-sphere::after {
        display: none; /* 隱藏外圈動畫，減少視覺複雜度 */
    }
    
    .it-service-container {
        width: 92%;
        max-width: 280px;
        transform: rotateZ(-3deg);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }
    
    .it-service-container:hover {
        transform: rotateZ(-3deg); /* 減少懸停效果，提高移動設備性能 */
    }

    .about-image {
        height: 250px;
    }
    
    .about-content {
        gap: 1.5rem;
    }
    
    .about-sphere {
        width: 180px;
        height: 180px;
        opacity: 0.3;
    }
    
    .about-sphere::before,
    .about-sphere::after {
        display: none;
    }

    .form-group label {
        margin-bottom: 0.3rem;
        font-size: 0.9rem;
    }
    
    .form-group input, 
    .form-group textarea {
        padding: 10px;
    }
    
    .info-item {
        gap: 0.75rem;
    }
    
    .info-item i {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    /* Header & Navigation */
    header .container {
        padding: 0 12px;
        height: 40px;
    }
    
    .nav-links {
        width: 90%;
        padding: 70px 20px 30px;
    }

    /* Hero Section */
    #hero {
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 2.1rem;
    }
    
    .hero-visual {
        height: 280px;
    }
    
    .tech-sphere {
        width: 220px;
        height: 220px;
    }
    
    /* About Section */
    #about {
        padding: 60px 0;
    }
    
    .about-content {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    
    .about-text {
        max-width: 100% !important;
        text-align: center;
    }
    
    .section-tagline {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
    }
    
    .about-image {
        max-width: 100% !important;
        height: 250px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .about-sphere {
        width: 180px;
        height: 180px;
        opacity: 0.3;
    }
    
    .about-sphere::before,
    .about-sphere::after {
        display: none;
    }

    /* Services Section */
    #services {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .service-card {
        padding: 1.25rem;
        margin-bottom: 1.2rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Products Section */
    #products {
        padding: 60px 0;
    }
    
    .product-card {
        flex: 0 0 92%;
        margin: 0 4px;
    }
    
    .product-details h3 {
        font-size: 1.2rem;
    }
    
    .product-details p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    /* Case Studies Section */
    #case-studies {
        padding: 60px 0;
    }
    
    .case-study {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .case-study h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }
    
    .case-study p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .case-study .tag {
        font-size: 0.7rem;
        padding: 3px 8px;
        margin-right: 6px;
        margin-bottom: 6px;
    }
    
    /* Contact Section */
    #contact {
        padding: 60px 0;
    }
    
    .form-group label {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .info-item {
        gap: 12px;
    }
    
    .info-item i {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .info-item .info-content h4 {
        font-size: 1rem;
    }
    
    .info-item .info-content p, 
    .info-item .info-content a {
        font-size: 0.9rem;
    }

    /* Footer Section */
    footer {
        padding: 40px 0 20px;
    }
    
    .footer-logo {
        margin-bottom: 1.5rem;
    }
    
    .footer-logo p {
        font-size: 0.9rem;
        margin-top: 0.75rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
    
    .link-column {
        width: 100%;
        text-align: center;
    }
    
    .link-column h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .link-column ul li {
        margin-bottom: 0.5rem;
    }
    
    .link-column ul li a {
        font-size: 0.9rem;
    }
    
    .copyright {
        margin-top: 2rem;
        font-size: 0.8rem;
        padding-top: 1rem;
    }
}

/* 案例研究 */
#case-studies {
    background-color: #0c0c0c;
}

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

.case-card {
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

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

.case-content {
    padding: 1.5rem;
}

.case-content h3 {
    margin-bottom: 0.5rem;
}

.case-content p {
    margin-bottom: 1.5rem;
    color: var(--light-color);
    opacity: 0.8;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.read-more:hover {
    gap: 0.8rem;
}

/* 聯繫我們 */
#contact {
    background-color: var(--dark-color);
    position: relative;
}

.contact-content {
    display: flex;
    gap: 4rem;
}

.contact-form {
    flex: 1;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--light-color);
    font-family: 'Roboto', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 184, 255, 0.25);
}

.form-actions {
    display: flex;
    gap: 1rem;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background-color: #25D366;
    color: white;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    color: white;
    transform: translateY(-2px);
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.info-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--light-color);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

/* 頁腳 */
footer {
    background-color: #0a0a0a;
    padding: 60px 0 30px;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-logo p {
    margin-top: 1rem;
    color: var(--light-color);
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-column h3 {
    color: var(--light-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.link-column ul {
    list-style: none;
}

.link-column li {
    margin-bottom: 0.8rem;
}

.link-column a {
    color: var(--light-color);
    opacity: 0.8;
    transition: var(--transition);
}

.link-column a:hover {
    color: var(--primary-color);
    opacity: 1;
}

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

.footer-bottom p {
    color: var(--light-color);
    opacity: 0.6;
}

/* 語言切換按鈕樣式 */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px;
    height: 100%;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: var(--light-color);
    font-size: 0.9rem;
    padding: 6px 10px;
    cursor: pointer;
    transition: var(--transition);
    margin: 0 2px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover, .lang-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 產品區域標題間距調整 */
#products .section-header {
    margin-bottom: 2.5rem;
}

#products .section-header h2 {
    margin-bottom: 0.75rem;
}

/* 英雄區塊中的IT服務圖片 */
.it-service-container {
    position: absolute;
    width: 60%;
    max-width: 450px;
    right: 15%;
    bottom: 5%;
    z-index: 6;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    transform: rotateZ(-5deg);
    transition: transform 0.5s ease;
    opacity: 0.9;
}

.it-service-container:hover {
    transform: rotateZ(-2deg) scale(1.02);
    opacity: 1;
}

.it-service-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

/* 關於部分的視覺元素 */
.about-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-sphere {
    width: 300px;
    height: 300px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.6;
}

.about-it-service {
    position: relative;
    max-width: 450px;
    width: 90%;
    margin: 0 auto;
    z-index: 2;
    transform: rotateZ(-5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius);
}

/* 頁腳移動版優化 */
@media (max-width: 768px) {
    footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        flex-direction: column;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .footer-logo {
        margin-bottom: 1.5rem;
    }
    
    .footer-logo img {
        margin: 0 auto;
    }
    
    .footer-links {
        width: 100%;
        justify-content: space-between;
        gap: 1rem;
    }
    
    .link-column {
        flex: 1;
    }
    
    .link-column h3 {
        margin-bottom: 1rem;
        font-size: 1.1rem;
    }
    
    .link-column li {
        margin-bottom: 0.6rem;
    }
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        padding-top: 20px;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
} 