﻿/* ========================================= */
/* === 置頂導覽列 (Home Header) === */
/* ========================================= */
.home-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fcfcfc;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 12px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    height: 100px;
    width: auto;
}

.header-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.header-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s;
}

    .header-nav a:hover {
        color: var(--primary-blue);
    }

.home-header-Enterbtn {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

    .home-header-Enterbtn:hover {
        background-color: var(--hover-yellow);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

/* --- 置頂導覽列 RWD --- */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .header-nav {
        display: block;
        width: 100%;
    }

        .header-nav ul {
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
        }
}

@media (max-width: 800px) {
    .header-brand {
        width: 100%;
        justify-content: space-between;
        padding: 0 10px;
    }

    .brand-logo {
        height: 45px;
    }

    .brand-title {
        font-size: 1.1rem;
    }

    .home-header-Enterbtn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .header-nav a {
        font-size: 1rem;
    }

    .header-nav ul {
        gap: 15px;
    }
}
