.welcome-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    background-image: url('../images/homebg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.welcome-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.welcome-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.welcome-content h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-family: 'Consolas', monospace;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color:var(--tertiary-color);
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

/* 淡入動畫 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .welcome-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .welcome-content p {
        font-size: 1.2rem;
    }
}

/* 支援觸控設備的優化 */
@media (hover: none) and (pointer: coarse) {
    .welcome-container {
        background-attachment: scroll;
    }
}