/* ===== PC端下拉菜单 - 纯新增，不修改现有样式 ===== */

/* 导航菜单ul结构 */
.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 0;
}

/* 顶级菜单项 */
.nav-menu > .nav-item {
    position: relative;
}

/* 下拉箭头 */
.dropdown-arrow {
    font-size: 0.6em;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

/* 下拉菜单容器 - 默认隐藏 */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 8px 0;
    z-index: 1000;
    list-style: none;
    margin: 0;
    margin-top: 8px;
}

/* 下拉菜单三角指示 */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
}

/* Hover显示下拉菜单 */
.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown:focus-within .dropdown-menu {
    display: block;
}

/* Hover时箭头旋转 */
.nav-item.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* 下拉菜单项样式 */
.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 20px;
    color: #333;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: #f0f5ff;
    color: #0066CC;
}
