/* Reset Styles */


body {
    font-family: Arial, sans-serif;
    padding-top: 142px;
}

/* header Styles - Sky Blue Background */
.header {
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 142px;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 40px;
}

/* Navigation Menu - Dark Text */
.nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-item a {
    text-decoration: none;
    color: #000;
    font-size: 18px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 100%;
}

.nav-item a:hover {
    color: #873EFF;
}

/* Submenu Styles - Lighter Sky Blue Background */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #B0E0E6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0;
    min-width: 150px;
    z-index: 100;
}

.submenu li {
    padding: 8px 20px;
}

.submenu li a {
    color: #333;
    font-size: 16px;
}

.submenu li a:hover {
    color: #000;
}

.nav-item:hover .submenu {
    display: block;
}

/* Actions (Login/Signup) */
.actions {
    display: flex;
    gap: 10px;
}

.btn-login,
.btn-signup {
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-login {
    color: #333;
    border: 1px solid #333;
    background-color: transparent;
}

.btn-login:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.btn-signup {
    background-color: red;
    color: #fff;
    border: 0px solid #007bff;
}

.btn-signup:hover {
    background-color: #004d99;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #000;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    width: 25px;
    height: 3px;
    background-color: #000;
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.wap-logo {
    display: none;
}

/* 手机版样式优化 - 白色背景，间隔线，分级菜单 */
@media (max-width: 768px) {
    .header {
        height: 60px;
        background-color: #f9f9f9;
    }

    .web-logo {
        display: none;
    }

    .wap-logo {
        display: block;
    }

    body {
        padding-top: 60px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #f9f9f9;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 0;
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    /* 顶级菜单项样式 */
    .nav-item {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        padding: 0 15px;
    }

    .nav-item>a {
        color: #333;
        font-size: 16px;
        font-weight: 500;
        padding: 15px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* 子菜单样式 */
    .submenu {
        position: static;
        display: none;
        background-color: #f9f9f9;
        padding-left: 20px;
        border-top: 1px solid #eee;
    }

    .submenu li {
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .submenu li:last-child {
        border-bottom: none;
    }

    .submenu li a {
        color: #666;
        font-size: 15px;
        font-weight: 400;
        padding: 12px 0;
        display: block;
    }

    /* 活动状态样式 */
    .nav-item.active>a {
        color: #0066cc;
    }

    .nav-item.active .submenu {
        display: block;
    }

    /* 下拉箭头指示器 */
    .nav-item.has-submenu>a::after {
        content: '+';
        font-size: 18px;
        color: #999;
        transition: transform 0.3s;
    }

    .nav-item.has-submenu.active>a::after {
        content: '-';
        color: #0066cc;
    }

    /* 手机菜单按钮 */
    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu-toggle.active .hamburger {
        background-color: transparent;
    }

    .mobile-menu-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .mobile-menu-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        top: 0;
    }

    .actions {
        display: none;
    }
}

.head-logo,
.col-full {
    width: 100%;
}

.head-logo .site-branding {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}