/* 下拉菜单样式 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    min-width: 480px;
    padding: 20px;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-container {
    display: flex;
    gap: 40px;
}

.dropdown-section {
    flex: 1;
}

.dropdown-section h3 {
    font-size: 14px;
    color: #999;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.dropdown-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.dropdown-section ul li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 6px 0;
    transition: color 0.3s;
}

.dropdown-section ul li a:hover {
    color: #1890ff;
}




/* 用户菜单相关样式 */
.header-user-menu {
    position: relative;
    cursor: pointer;
}

.header-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.header-user-info:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.header-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.header-user-name {
    color: #1d2129;
    font-size: 14px;
}

.header-user-menu .fa-chevron-down {
    font-size: 12px;
    color: #86909c;
    transition: transform 0.3s;
}

.header-user-menu:hover .fa-chevron-down {
    transform: rotate(180deg);
}

/* 用户菜单下拉框 */
.header-user-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    width: 120px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 4px 0;
    display: none;
    z-index: 1000;
}

.header-user-dropdown::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
}

.header-user-dropdown::before {
    content: '';
    position: absolute;
    top: -4px;
    right: 24px;
    width: 8px;
    height: 8px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.06);
}

.header-user-menu:hover .header-user-dropdown {
    display: block;
}

.header-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #1d2129;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 13px;
}

.header-user-dropdown-item i {
    font-size: 14px;
    width: 14px;
    text-align: center;
    color: #86909c;
}

.header-user-dropdown-item:first-child {
    border-bottom: 1px solid #e5e6eb;
    padding-bottom: 8px;
    margin-bottom: 4px;
}

.header-user-dropdown-item:last-child {
    padding-top: 8px;
    margin-top: 4px;
}

.header-user-dropdown-item:hover {
    background-color: #f5f6f7;
    color: #1677ff;
}

.header-user-dropdown-item:hover i {
    color: #1677ff;
}

/* 未登录状态的按钮样式 */
.header-btn-login, .header-btn-register {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.header-btn-login {
    background: transparent;
    border: 1px solid #1677ff;
    color: #1677ff;
    margin-right: 8px;
}

.header-btn-login:hover {
    background: rgba(22, 119, 255, 0.1);
}

.header-btn-register {
    background: #1677ff;
    border: none;
    color: #fff;
}

.header-btn-register:hover {
    background: #0958d9;
}

