/* 首页特定样式 */

/* 用户信息卡片 */
.user-card {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 20px;
    margin-bottom: 20px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.user-info h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.user-info p {
    font-size: 14px;
    color: #8896b8;
}

.settings-btn {
    background-color: #f0f7ff;
    color: #3b91ff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.settings-btn:hover {
    background-color: #e0f0ff;
}

/* 文件柜列表 */
.cabinets-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.cabinet-item {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: all 0.3s ease;
}

.cabinet-item.opened {
    border: 1px solid #3b91ff;
}

.cabinet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cabinet-header h3 {
    font-size: 24px;
    font-weight: 500;
    color: #3b91ff;
}

.cabinet-header p {
    font-size: 16px;
    color: #5c6c85;
}

.cabinet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f5f7fa;
    border-radius: 12px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn i {
    font-size: 32px;
    margin-bottom: 10px;
    color: #ff9b2f;
}

.action-btn span {
    font-size: 16px;
    color: #ff9b2f;
    font-weight: 500;
}

.action-btn.view-btn i,
.action-btn.view-btn span {
    color: #ff9b2f;
}

.action-btn.unlock-btn i,
.action-btn.unlock-btn span {
    color: #3b91ff;
}

.action-btn.opened-btn i,
.action-btn.opened-btn span {
    color: #3b91ff;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

/* 响应式设计适配 */
@media (max-width: 768px) {
    .cabinets-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .user-avatar {
        width: 50px;
        height: 50px;
    }
    
    .user-info h3 {
        font-size: 16px;
    }
    
    .user-info p {
        font-size: 12px;
    }
    
    .cabinet-header h3 {
        font-size: 20px;
    }
    
    .cabinet-header p {
        font-size: 14px;
    }
    
    .action-btn i {
        font-size: 28px;
    }
    
    .action-btn span {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .cabinets-list {
        grid-template-columns: 1fr;
    }
    
    .user-card {
        padding: 12px 15px;
    }
    
    .settings-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .cabinet-actions {
        gap: 10px;
    }
    
    .action-btn {
        padding: 12px 8px;
    }
    
    .action-btn i {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .action-btn span {
        font-size: 13px;
    }
}