:root {
    --primary-red: #e64a4a;
    --text-white: #ffffff;
    --bg-gray: #f8f8f8;
    --border-color: #eeeeee;
}

.v3-header {
    background-color: #fff;
    height: 80px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-color);
}

.v3-content-wrapper {
    margin-top: 80px;
}

.v3-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    box-sizing: border-box;
}

.v3-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* User Section */
.v3-user-section {
    position: relative;
    cursor: pointer;
    height: 60px;
    display: flex;
    align-items: center;
}

.v3-user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.3s;
}

.v3-user-badge:hover {
    background: #f5f5f5;
}

.v3-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eee;
}

.v3-user-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
}

.v3-icon-arrow-down {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #666;
    margin-left: 2px;
    transition: transform 0.3s;
}

.v3-user-section:hover .v3-icon-arrow-down {
    transform: rotate(180deg);
}

.v3-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 160px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1000;
}

.v3-user-section:hover .v3-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.v3-user-dropdown a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.v3-user-dropdown a:hover {
    background: #fdf2f2;
    color: var(--primary-red);
}

.v3-user-dropdown a.logout {
    border-top: 1px solid #eee;
    margin-top: 5px;
    color: #999;
}

.v3-user-dropdown a.logout:hover {
    background: #f5f5f5;
    color: #666;
}

.v3-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.v3-header .logo-icon {
    width: 140px;
    height: 40px;
    background: url('/static/pc/index/images/logo.png') no-repeat center;
    background-size: contain;
}

.v3-header .logo-text {
    display: none;
}

.v3-nav-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.v3-nav {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
}

.v3-nav-item {
    padding: 10px 12px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
}

.v3-nav-item.active {
    color: var(--primary-red);
}

.v3-nav-item.active::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 20%;
    width: 60%;
    height: 2px;
    background-color: var(--primary-red);
}

.v3-login-btn {
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 5px 25px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
    display: inline-block;
}

.v3-login-btn:hover {
    background: var(--primary-red);
    color: #fff;
}

/* Floating Menu */
.v3-float-menu {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.v3-float-item {
    width: 50px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    font-size: 11px;
    background: #fff;
    border-bottom: 1px solid #f5f5f5;
    padding: 0;
}

.v3-float-item i {
    font-size: 20px;
    margin-bottom: 3px;
    font-style: normal;
}

.v3-float-item span {
    font-size: 11px;
    line-height: 1;
}

.v3-float-item:hover {
    color: var(--primary-red);
}

/* Back to top fixed */
.v3-backtop {
    width: 40px;
    height: 40px;
    background: #ccc;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 20px;
    bottom: 50px;
    z-index: 99;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0.8;
    transition: all 0.3s;
    font-size: 20px;
}

.v3-backtop:hover {
    background: var(--primary-red);
    opacity: 1;
}

/* Mobile specific nav */
.v3-nav-wrapper {
    display: none;
}

@media (max-width: 991px) {
    .v3-nav-container {
        display: none;
    }

    .v3-nav-wrapper {
        display: block;
        background: #fff;
        position: fixed;
        top: 60px;
        width: 100%;
        z-index: 999;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .v3-nav {
        overflow-x: auto;
        white-space: nowrap;
        display: flex;
        padding: 0 10px;
    }

    .v3-header-inner {
        padding: 0 15px;
    }

    .v3-header {
        height: 60px;
    }

    .v3-content-wrapper {
        margin-top: 60px;
    }

    .v3-user-section {
        height: 40px;
    }

    .v3-header .logo-icon {
        height: 32px;
        width: 110px;
    }

    .v3-float-menu {
        right: 10px;
    }

    .v3-backtop {
        right: 15px;
        bottom: 100px;
        width: 35px;
        height: 35px;
    }
}