/* css/new-nav.css - 導航欄樣式 */

/* 導航欄容器 */
.navbar_box {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar_box.sticky_class {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* 導航欄主體 */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 100px;
}

.navbar-center {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    margin-left: 0;
    margin-right: 20px;
}

.navbar-right {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

/* Logo 樣式 */
.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* 導航菜單 */
.menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.menu a {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.menu a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.menu a.active {
    color: #ffffff;
    position: relative;
}

.menu a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 16px;
    right: 16px;
    height: 3px;
    background: linear-gradient(90deg, #0066cc, #0099ff, #66ccff);
    border-radius: 2px;
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

.menu a:not(.active)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 16px;
    right: 16px;
    height: 3px;
    background: linear-gradient(90deg, #0066cc, #0099ff, #66ccff);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.menu a:hover::after {
    transform: scaleX(1);
}

/* 下拉菜單 */
.menu-item-dropdown {
    position: relative;
}

.dropdown-box {
    position: absolute;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.menu-item-dropdown:hover .dropdown-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 120px;
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
    border-radius: 0;
}

.dropdown-content a:hover {
    color: #8a33ff;
    background: rgba(138, 51, 255, 0.1);
}

/* 去抽賞按鈕 */
.nav_btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #8a33ff, #6a11cb);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(138, 51, 255, 0.3);
}

.nav_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 51, 255, 0.4);
}

.go_icon {
    width: 20px;
    height: 20px;
}

.nav_text {
    white-space: nowrap;
}

/* 漢堡菜單 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #ffffff;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* 移動端菜單遮罩 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .navbar {
        padding: 0 15px;
        height: 60px;
    }

    .navbar-left {
        gap: 20px;
    }

    .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .menu.active {
        display: flex;
    }

    .menu a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        color: #333;
    }

    .menu a.active {
        color: #333;
    }

    .menu a.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #0066cc, #0099ff, #66ccff);
        border-radius: 2px;
        transform: scaleX(1);
    }

    .menu a:not(.active)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #0066cc, #0099ff, #66ccff);
        border-radius: 2px;
        transform: scaleX(0);
    }

    .menu a:hover::after {
        transform: scaleX(1);
    }

    .menu-item-dropdown {
        width: 100%;
    }

    .dropdown-box {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
    }

    .dropdown-content {
        background: rgba(138, 51, 255, 0.05);
        box-shadow: none;
        margin-top: 10px;
    }

    .hamburger {
        display: flex;
    }

    .nav_btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 10px;
    }

    .logo {
        height: 35px;
    }

    .nav_btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}