.welcome-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    background: var(--background-color);
}

/* 內容排版 */
.welcome-split {
    width: min(1200px, 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.welcome-photo {
    width: 100%;
    min-height: 400px;
    background-image: url('../images/homebg.jpg');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
}

.welcome-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    gap: 2rem;
}

/* 科技網格背景 */
.tech-grid {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
    opacity: 0.3;
}

.tech-grid .grid-line {
    position: absolute;
    background: linear-gradient(90deg,
        transparent,
        var(--primary-color),
        transparent);
    opacity: 0.15;
    animation: scan 3s ease-in-out infinite;
}

.tech-grid .grid-line:nth-child(1) {
    width: 100%;
    height: 1px;
    top: 25%;
    animation-delay: 0s;
}

.tech-grid .grid-line:nth-child(2) {
    width: 100%;
    height: 1px;
    top: 50%;
    animation-delay: 0.5s;
}

.tech-grid .grid-line:nth-child(3) {
    width: 100%;
    height: 1px;
    top: 75%;
    animation-delay: 1s;
}

/* 標題區塊 */
.content-wrapper {
    animation: slideInUp 0.8s ease-out;
    width: 100%;
}

.title-line {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.welcome-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg,
        var(--primary-color),
        var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    animation: fadeInScale 0.8s ease-out 0.2s both;
    text-align: left;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary, var(--text-color));
    opacity: 0.8;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    animation: fadeIn 0.8s ease-out 0.4s both;
    text-align: left;
}

/* 響應式設計 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes scan {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.3;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-20px);
    }
}


/* 響應式設計 */
@media (max-width: 768px) {
    .welcome-container {
        padding: 1.5rem;
    }

    .welcome-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .welcome-photo {
        background-size: cover;
        min-height: 300px;
    }

    .welcome-content {
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .title-line {
        justify-content: center;
    }

    .tech-grid {
        width: 250px;
        height: 250px;
        top: 20%;
        right: 10%;
        opacity: 0.2;
    }
}
