/* 顶部导航栏 */
.glass-style {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.navbar-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 左侧和右侧的圆圈 */
.circle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.circle-btn:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.85); /* 悬浮时稍微变白一点 */
}

.circle-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 中间胶囊 */
.nav-pill {
    padding: 0 30px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 25px;
    margin-right: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #7abda0; /* 文字颜色稍微加深一点点，保证在半透明背景上清晰 */
    font-size: 16px;
    font-weight: 600; /* 加粗一点 */
    transition: color 0.3s;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5); /* 文字加一点点白光，更像玻璃上的字 */
}

.nav-links a:hover {
    color: #5da888;
}

.divider {
    width: 1px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.1); /* 分割线也变淡一点 */
    margin-right: 25px;
}

.nav-icons {
    display: flex;
    gap: 15px;
    color: #7abda0;
}

.nav-icons i {
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s;
}

.nav-icons i:hover {
    transform: scale(1.1);
}

/* 右上角容器，设为相对定位，方便菜单定位 */
.user-dropdown-container {
    position: relative;
}

/* 下拉菜单本体 */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 60px; 
    left: 50%; 
    transform: translateX(-50%); /* 向回移动自身宽度的一半，居中 */
    width: 160px;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 12px;
    padding: 10px 0;     
    flex-direction: column;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); 
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px); 
    animation: fadeIn 0.2s ease;
}

/* 简单的淡入动画 */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateX(-50%) translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(-50%) translateY(0); 
    }
}

/* 菜单显示时的状态类 */
.dropdown-menu.show {
    display: flex;
}

/* 顶部用户信息 */
.menu-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.menu-status {
    font-size: 0.8rem;
    color: #81c9a9; 
}

.menu-username {
    font-size: 1.2rem;
    font-weight: bold;
    color: #5da888; 
}

/* 分割线 */
.menu-divider {
    width: 80%;
    height: 1px;
    background: #eee;
    margin: 10px 0;
}

/* 菜单项 */
.menu-item {
    text-decoration: none;
    color: #81c9a9;
    font-size: 1rem;
    padding: 8px 0;
    width: 100%;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.menu-item:hover {
    color: #5da888;
    background: rgba(129, 201, 169, 0.1);
}

/* 退出登录 */
.logout-item {
    color: #e74c3c; /* 红色 */
}
.logout-item:hover {
    color: #c0392b;
    background: rgba(231, 76, 60, 0.1);
}

/* 下拉菜单顶部的小三角 */
.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -6px; /* 顶出头 */
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 6px 6px 6px; /* 三角形大小 */
    border-style: solid;
    border-color: transparent transparent rgba(255, 255, 255, 0.95) transparent; 
    z-index: 1001;
}