/* 设备信息样式 */
.device-info {
    display: flex;
    align-items: center;
    gap: 0.4vw;
    padding: 0.3vw 0.6vw;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0.5vw;
    font-size: 0.9vw;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: deviceInfoFadeIn 0.5s ease;
}

.device-info i {
    font-size: 1vw;
    color: #4CAF50;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .device-info {
        padding: 0.25vw 0.5vw;
        font-size: 0.8vw;
        gap: 0.3vw;
    }

    .device-info i {
        font-size: 0.9vw;
    }

    .device-info span {
        display: none;  /* 在小屏幕上隐藏文字 */
    }
}

@keyframes deviceInfoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 设备信息悬停效果 */
.device-info {
    display: flex;
    align-items: center;
    gap: 0.4vw;
    padding: 0.3vw 0.6vw;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0.5vw;
    font-size: 0.9vw;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: deviceInfoFadeIn 0.5s ease;
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    .device-info {
        background: rgba(255, 255, 255, 0.1);
        color: #999;
    }

    .device-info:hover {
        background: rgba(255, 255, 255, 0.15);
    }
}

/* 用户头像样式 */
.user-avatar {
    width: 2.2vw;
    height: 2.2vw;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.device-details {
    display: none;  /* 默认隐藏详细信息 */
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 0.6vw;
    padding: 0.6vw;
    box-shadow: 0 0.15vw 0.6vw rgba(0,0,0,0.1);
    margin-top: 0.3vw;
    z-index: 1000;
    min-width: 14vw;
}

.device-info:hover .device-details {
    display: block;  /* 鼠标悬停时显示详细信息 */
}

.device-details div {
    padding: 0.3vw 0;
    font-size: 0.9vw;
    color: #666;
    border-bottom: 0.07vw solid #eee;
}

.device-details div:last-child {
    border-bottom: none;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 22vw;
    max-width: 22vw;
    max-height: 28vw;
    overflow-y: auto;
    padding: 0.55vw 0;
    background: #fff;
    border-radius: 0.7vw;
    box-shadow: 0 0.18vw 0.7vw rgba(0,0,0,0.13);
    z-index: 999;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-40%);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.55vw 0.83vw;
    gap: 0.55vw;
    border-bottom: 0.07vw solid #eee;
    transition: background-color 0.2s;
    min-height: 3.2vw;
    height: 3.2vw;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

/* 统一下载记录和排行榜的图标样式 */
.record-icon,
.rank-icon {
    width: 2.2vw;
    height: 2.2vw;
    object-fit: cover;
    border-radius: 0.55vw;
    background: #f5f5f5;
    box-shadow: 0 0.07vw 0.28vw rgba(0,0,0,0.04);
    margin-right: 0.55vw;
}

.record-content {
    flex: 1;
    min-width: 0;
}

.dropdown-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.record-title {
    font-size: 0.97vw;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.record-time {
    font-size: 0.83vw;
    color: #666;
}

.dropdown-delete {
    border: none;
    background: transparent;
    color: #999;
    padding: 0.28vw;
    cursor: pointer;
    border-radius: 0.28vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-delete:hover {
    background-color: #eee;
    color: #666;
}

/* 空记录提示样式 */
.dropdown-item:only-child {
    color: #999;
    text-align: center;
    padding: 0.83vw;
}

/* 下载记录下拉菜单中的下载按钮样式 */
.record-download-btn {
    display: inline-block;
    background: linear-gradient(90deg, #ff4f4f 0%, #ff1e3c 100%);
    color: #fff;
    border: none;
    border-radius: 0.28vw;
    padding: 0.28vw 1.1vw;
    font-size: 0.97vw;
    cursor: pointer;
    margin-left: 0.83vw;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 0.14vw 0.55vw rgba(255, 30, 60, 0.08);
    outline: none;
}
.record-download-btn:hover {
    background: linear-gradient(90deg, #ff1e3c 0%, #ff4f4f 100%);
    color: #fff;
    box-shadow: 0 0.28vw 1.1vw rgba(255, 30, 60, 0.15);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.28vw;
    color: #333;
    text-decoration: none;
    cursor: pointer;
}