/* 導航欄樣式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
}

.navbar.scrolled {
    background: rgba(26, 26, 26, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: white;
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffc107, #ff8f00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.3);
}

.brand-logo i {
    color: white;
    font-size: 1.2rem;
}

.navbar-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 50%;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    font-family: 'Noto Serif JP', serif;
}

.navbar-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: #ffc107;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffc107, #ff8f00);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #ffc107;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        gap: 40px;
        transition: left 0.3s ease;
        backdrop-filter: blur(10px);
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .navbar-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 15px 0;
    }
}

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

    .brand-name {
        font-size: 1.3rem;
    }

    .brand-logo {
        width: 35px;
        height: 35px;
    }
}
